MM-53029 - Remove default (true) for channelExport and Apps plugin (#23682)

* remove default (true) for channelExport and Apps plugin

* readd constant, still used

* more cleanup of constants

* revert usage, constants changes

* update tests expecting Apps on by default

* remove defaults from tests

* revert package-lock.json

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Scott Bishel
2023-06-13 17:48:11 -06:00
коммит произвёл GitHub
родитель d693f88043
Коммит 6063f51b0f
4 изменённых файлов: 2 добавлений и 24 удалений

Просмотреть файл

@@ -2933,16 +2933,6 @@ func (s *PluginSettings) SetDefaults(ls LogSettings) {
s.PluginStates[PluginIdNPS] = &PluginState{Enable: ls.EnableDiagnostics == nil || *ls.EnableDiagnostics}
}
if s.PluginStates[PluginIdChannelExport] == nil && BuildEnterpriseReady == "true" {
// Enable the channel export plugin by default
s.PluginStates[PluginIdChannelExport] = &PluginState{Enable: true}
}
if s.PluginStates[PluginIdApps] == nil {
// Enable the Apps plugin by default
s.PluginStates[PluginIdApps] = &PluginState{Enable: true}
}
if s.PluginStates[PluginIdCalls] == nil {
// Enable the calls plugin by default
s.PluginStates[PluginIdCalls] = &PluginState{Enable: true}