MM-49485: Set BoardsProduct FF to on by default (#22006)
https://mattermost.atlassian.net/browse/MM-49485 ```release-note Boards will be served as an in-built product from within Mattermost server instead of a plugin. If you want to disable this, please set the MM_FEATUREFLAGS_BoardsProduct env var to "false" (without the quotes). In this mode, the boards plugin will remain disabled. ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
27a702e29a
Коммит
d27d7bc8f7
@@ -2867,8 +2867,8 @@ func (s *PluginSettings) SetDefaults(ls LogSettings) {
|
||||
}
|
||||
|
||||
if s.PluginStates[PluginIdFocalboard] == nil {
|
||||
// Enable the focalboard plugin by default
|
||||
s.PluginStates[PluginIdFocalboard] = &PluginState{Enable: true}
|
||||
// Disable the focalboard plugin by default
|
||||
s.PluginStates[PluginIdFocalboard] = &PluginState{Enable: false}
|
||||
}
|
||||
|
||||
if s.PluginStates[PluginIdApps] == nil {
|
||||
|
||||
@@ -387,11 +387,11 @@ func TestConfigDefaultChannelExportPluginState(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestConfigDefaultFocalboardPluginState(t *testing.T) {
|
||||
t.Run("should enable Focalboard plugin by default", func(t *testing.T) {
|
||||
t.Run("should not enable Focalboard plugin by default", func(t *testing.T) {
|
||||
c1 := Config{}
|
||||
c1.SetDefaults()
|
||||
|
||||
assert.True(t, c1.PluginSettings.PluginStates["focalboard"].Enable)
|
||||
assert.False(t, c1.PluginSettings.PluginStates["focalboard"].Enable)
|
||||
})
|
||||
|
||||
t.Run("should not re-enable focalboard plugin after it has been disabled", func(t *testing.T) {
|
||||
|
||||
@@ -95,7 +95,7 @@ func (f *FeatureFlags) SetDefaults() {
|
||||
f.InsightsEnabled = true
|
||||
f.CommandPalette = false
|
||||
f.CallsEnabled = true
|
||||
f.BoardsProduct = false
|
||||
f.BoardsProduct = true
|
||||
f.SendWelcomePost = true
|
||||
f.PostPriority = true
|
||||
f.PeopleProduct = false
|
||||
|
||||
Ссылка в новой задаче
Block a user