Adds ConnectedWorkspacesSettings configuration block (#27820)
* Adds ServerFederationSettings configuration block The Server Federation related configuration properties were located in the `ExperimentalSettings` config block. Now that the feature is going to get out of beta, and foreseeing more configuration properties being added to it, we're moving them to a block of its own. If the properties were set in the old location, their values should be carried over to the new ones. The old properties are left in place and marked as deprecated not to cause issues with the model. * Update System Console to include Server Federation section * Remove system console section * Move the configuration properties to ConnectedWorkspaces * Add ConnectedWorkspacesSettings to the telemetry --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0c585bdac6
Коммит
d5e9aa9fb3
@@ -215,8 +215,8 @@ func GenerateClientConfig(c *model.Config, telemetryID string, license *model.Li
|
||||
}
|
||||
|
||||
if license.HasSharedChannels() {
|
||||
props["ExperimentalSharedChannels"] = strconv.FormatBool(*c.ExperimentalSettings.EnableSharedChannels)
|
||||
props["ExperimentalRemoteClusterService"] = strconv.FormatBool(c.FeatureFlags.EnableRemoteClusterService && *c.ExperimentalSettings.EnableRemoteClusterService)
|
||||
props["ExperimentalSharedChannels"] = strconv.FormatBool(*c.ConnectedWorkspacesSettings.EnableSharedChannels)
|
||||
props["ExperimentalRemoteClusterService"] = strconv.FormatBool(c.FeatureFlags.EnableRemoteClusterService && *c.ConnectedWorkspacesSettings.EnableRemoteClusterService)
|
||||
}
|
||||
|
||||
if license.SkuShortName == model.LicenseShortSkuProfessional || license.SkuShortName == model.LicenseShortSkuEnterprise {
|
||||
|
||||
@@ -189,7 +189,7 @@ func TestGetClientConfig(t *testing.T) {
|
||||
{
|
||||
"Shared channels other license",
|
||||
&model.Config{
|
||||
ExperimentalSettings: model.ExperimentalSettings{
|
||||
ConnectedWorkspacesSettings: model.ConnectedWorkspacesSettings{
|
||||
EnableSharedChannels: model.NewPointer(true),
|
||||
},
|
||||
},
|
||||
@@ -207,7 +207,7 @@ func TestGetClientConfig(t *testing.T) {
|
||||
{
|
||||
"licensed for shared channels",
|
||||
&model.Config{
|
||||
ExperimentalSettings: model.ExperimentalSettings{
|
||||
ConnectedWorkspacesSettings: model.ConnectedWorkspacesSettings{
|
||||
EnableSharedChannels: model.NewPointer(true),
|
||||
},
|
||||
},
|
||||
@@ -225,7 +225,7 @@ func TestGetClientConfig(t *testing.T) {
|
||||
{
|
||||
"Shared channels professional license",
|
||||
&model.Config{
|
||||
ExperimentalSettings: model.ExperimentalSettings{
|
||||
ConnectedWorkspacesSettings: model.ConnectedWorkspacesSettings{
|
||||
EnableSharedChannels: model.NewPointer(true),
|
||||
},
|
||||
},
|
||||
@@ -256,7 +256,7 @@ func TestGetClientConfig(t *testing.T) {
|
||||
{
|
||||
"Shared channels enterprise license",
|
||||
&model.Config{
|
||||
ExperimentalSettings: model.ExperimentalSettings{
|
||||
ConnectedWorkspacesSettings: model.ConnectedWorkspacesSettings{
|
||||
EnableSharedChannels: model.NewPointer(true),
|
||||
},
|
||||
},
|
||||
|
||||
Ссылка в новой задаче
Block a user