Merge branch 'master' into MM-47853-true-up-review-telemetry-off-non-air-gapped
Этот коммит содержится в:
@@ -10,7 +10,6 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mattermost/mattermost-server/v6/app"
|
|
||||||
"github.com/mattermost/mattermost-server/v6/app/platform"
|
"github.com/mattermost/mattermost-server/v6/app/platform"
|
||||||
"github.com/mattermost/mattermost-server/v6/einterfaces/mocks"
|
"github.com/mattermost/mattermost-server/v6/einterfaces/mocks"
|
||||||
"github.com/mattermost/mattermost-server/v6/model"
|
"github.com/mattermost/mattermost-server/v6/model"
|
||||||
@@ -242,7 +241,6 @@ func TestRequestTrialLicense(t *testing.T) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
t.Run("trial license user count less than current users", func(t *testing.T) {
|
t.Run("trial license user count less than current users", func(t *testing.T) {
|
||||||
t.Skip("MM-48416")
|
|
||||||
nUsers := 1
|
nUsers := 1
|
||||||
license := model.NewTestLicense()
|
license := model.NewTestLicense()
|
||||||
license.Features.Users = model.NewInt(nUsers)
|
license.Features.Users = model.NewInt(nUsers)
|
||||||
@@ -268,9 +266,9 @@ func TestRequestTrialLicense(t *testing.T) {
|
|||||||
th.App.Srv().Platform().SetLicenseManager(licenseManagerMock)
|
th.App.Srv().Platform().SetLicenseManager(licenseManagerMock)
|
||||||
|
|
||||||
defer func(requestTrialURL string) {
|
defer func(requestTrialURL string) {
|
||||||
app.RequestTrialURL = requestTrialURL
|
platform.RequestTrialURL = requestTrialURL
|
||||||
}(app.RequestTrialURL)
|
}(platform.RequestTrialURL)
|
||||||
app.RequestTrialURL = testServer.URL
|
platform.RequestTrialURL = testServer.URL
|
||||||
|
|
||||||
resp, err := th.SystemAdminClient.RequestTrialLicense(nUsers)
|
resp, err := th.SystemAdminClient.RequestTrialLicense(nUsers)
|
||||||
CheckErrorID(t, err, "api.license.add_license.unique_users.app_error")
|
CheckErrorID(t, err, "api.license.add_license.unique_users.app_error")
|
||||||
|
|||||||
20
i18n/en.json
20
i18n/en.json
@@ -7383,6 +7383,26 @@
|
|||||||
"id": "ent.elasticsearch.aggregator_worker.index_job_failed.error",
|
"id": "ent.elasticsearch.aggregator_worker.index_job_failed.error",
|
||||||
"translation": "Elasticsearch aggregator worker failed due to the indexing job failing"
|
"translation": "Elasticsearch aggregator worker failed due to the indexing job failing"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "ent.elasticsearch.create_client.ca_cert_malformed",
|
||||||
|
"translation": "Decoding of the CA for Elasticsearch failed"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ent.elasticsearch.create_client.ca_cert_missing",
|
||||||
|
"translation": "Could not open the CA file for Elasticsearch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ent.elasticsearch.create_client.client_cert_malformed",
|
||||||
|
"translation": "Decoding of the client certificate for Elasticsearch failed"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ent.elasticsearch.create_client.client_cert_missing",
|
||||||
|
"translation": "Could not open the client certificate file for Elasticsearch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ent.elasticsearch.create_client.client_key_missing",
|
||||||
|
"translation": "Could not open the client key file for Elasticsearch"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "ent.elasticsearch.create_client.connect_failed",
|
"id": "ent.elasticsearch.create_client.connect_failed",
|
||||||
"translation": "Setting up Elasticsearch Client Failed"
|
"translation": "Setting up Elasticsearch Client Failed"
|
||||||
|
|||||||
@@ -2563,6 +2563,9 @@ type ElasticsearchSettings struct {
|
|||||||
BatchSize *int `access:"environment_elasticsearch,write_restrictable,cloud_restrictable"`
|
BatchSize *int `access:"environment_elasticsearch,write_restrictable,cloud_restrictable"`
|
||||||
RequestTimeoutSeconds *int `access:"environment_elasticsearch,write_restrictable,cloud_restrictable"`
|
RequestTimeoutSeconds *int `access:"environment_elasticsearch,write_restrictable,cloud_restrictable"`
|
||||||
SkipTLSVerification *bool `access:"environment_elasticsearch,write_restrictable,cloud_restrictable"`
|
SkipTLSVerification *bool `access:"environment_elasticsearch,write_restrictable,cloud_restrictable"`
|
||||||
|
CA *string `access:"environment_elasticsearch,write_restrictable,cloud_restrictable"`
|
||||||
|
ClientCert *string `access:"environment_elasticsearch,write_restrictable,cloud_restrictable"`
|
||||||
|
ClientKey *string `access:"environment_elasticsearch,write_restrictable,cloud_restrictable"`
|
||||||
Trace *string `access:"environment_elasticsearch,write_restrictable,cloud_restrictable"`
|
Trace *string `access:"environment_elasticsearch,write_restrictable,cloud_restrictable"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2579,6 +2582,18 @@ func (s *ElasticsearchSettings) SetDefaults() {
|
|||||||
s.Password = NewString(ElasticsearchSettingsDefaultPassword)
|
s.Password = NewString(ElasticsearchSettingsDefaultPassword)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.CA == nil {
|
||||||
|
s.CA = NewString("")
|
||||||
|
}
|
||||||
|
|
||||||
|
if s.ClientCert == nil {
|
||||||
|
s.ClientCert = NewString("")
|
||||||
|
}
|
||||||
|
|
||||||
|
if s.ClientKey == nil {
|
||||||
|
s.ClientKey = NewString("")
|
||||||
|
}
|
||||||
|
|
||||||
if s.EnableIndexing == nil {
|
if s.EnableIndexing == nil {
|
||||||
s.EnableIndexing = NewBool(false)
|
s.EnableIndexing = NewBool(false)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -777,6 +777,9 @@ func (ts *TelemetryService) trackConfig() {
|
|||||||
"bulk_indexing_batch_size": *cfg.ElasticsearchSettings.BatchSize,
|
"bulk_indexing_batch_size": *cfg.ElasticsearchSettings.BatchSize,
|
||||||
"request_timeout_seconds": *cfg.ElasticsearchSettings.RequestTimeoutSeconds,
|
"request_timeout_seconds": *cfg.ElasticsearchSettings.RequestTimeoutSeconds,
|
||||||
"skip_tls_verification": *cfg.ElasticsearchSettings.SkipTLSVerification,
|
"skip_tls_verification": *cfg.ElasticsearchSettings.SkipTLSVerification,
|
||||||
|
"isdefault_ca": isDefault(*cfg.ElasticsearchSettings.CA, ""),
|
||||||
|
"isdefault_client_cert": isDefault(*cfg.ElasticsearchSettings.ClientCert, ""),
|
||||||
|
"isdefault_client_key": isDefault(*cfg.ElasticsearchSettings.ClientKey, ""),
|
||||||
"trace": *cfg.ElasticsearchSettings.Trace,
|
"trace": *cfg.ElasticsearchSettings.Trace,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -577,7 +577,7 @@ func (s SqlChannelStore) upsertPublicChannelT(transaction *sqlxTxWrapper, channe
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save writes the (non-direct) channel channel to the database.
|
// Save writes the (non-direct) channel to the database.
|
||||||
func (s SqlChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (_ *model.Channel, err error) {
|
func (s SqlChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (_ *model.Channel, err error) {
|
||||||
if channel.DeleteAt != 0 {
|
if channel.DeleteAt != 0 {
|
||||||
return nil, store.NewErrInvalidInput("Channel", "DeleteAt", channel.DeleteAt)
|
return nil, store.NewErrInvalidInput("Channel", "DeleteAt", channel.DeleteAt)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user