Prepackage Apps plugin and enable Apps feature flag by default (#19870)
* prepackage with apps 0.7.0 * fix config comparison test * update apps plugin version to 1.0.0 * remove irrelevant whitespace change * change apps plugin version to 1.0.1 Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d40d216b57
Коммит
7631035165
1
Makefile
1
Makefile
@@ -130,6 +130,7 @@ PLUGIN_PACKAGES += mattermost-plugin-nps-v1.1.0
|
|||||||
PLUGIN_PACKAGES += mattermost-plugin-welcomebot-v1.2.0
|
PLUGIN_PACKAGES += mattermost-plugin-welcomebot-v1.2.0
|
||||||
PLUGIN_PACKAGES += mattermost-plugin-zoom-v1.5.0
|
PLUGIN_PACKAGES += mattermost-plugin-zoom-v1.5.0
|
||||||
PLUGIN_PACKAGES += focalboard-v0.15.0
|
PLUGIN_PACKAGES += focalboard-v0.15.0
|
||||||
|
PLUGIN_PACKAGES += mattermost-plugin-apps-v1.0.1
|
||||||
|
|
||||||
# Prepares the enterprise build if exists. The IGNORE stuff is a hack to get the Makefile to execute the commands outside a target
|
# Prepares the enterprise build if exists. The IGNORE stuff is a hack to get the Makefile to execute the commands outside a target
|
||||||
ifeq ($(BUILD_ENTERPRISE_READY),true)
|
ifeq ($(BUILD_ENTERPRISE_READY),true)
|
||||||
|
|||||||
@@ -813,6 +813,9 @@ func TestDiff(t *testing.T) {
|
|||||||
"playbooks": {
|
"playbooks": {
|
||||||
Enable: true,
|
Enable: true,
|
||||||
},
|
},
|
||||||
|
"com.mattermost.apps": {
|
||||||
|
Enable: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -845,6 +848,9 @@ func TestDiff(t *testing.T) {
|
|||||||
"playbooks": {
|
"playbooks": {
|
||||||
Enable: true,
|
Enable: true,
|
||||||
},
|
},
|
||||||
|
"com.mattermost.apps": {
|
||||||
|
Enable: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -869,6 +875,9 @@ func TestDiff(t *testing.T) {
|
|||||||
"playbooks": {
|
"playbooks": {
|
||||||
Enable: true,
|
Enable: true,
|
||||||
},
|
},
|
||||||
|
"com.mattermost.apps": {
|
||||||
|
Enable: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2752,6 +2752,11 @@ func (s *PluginSettings) SetDefaults(ls LogSettings) {
|
|||||||
s.PluginStates["focalboard"] = &PluginState{Enable: true}
|
s.PluginStates["focalboard"] = &PluginState{Enable: true}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.PluginStates["com.mattermost.apps"] == nil {
|
||||||
|
// Enable the Apps plugin by default
|
||||||
|
s.PluginStates["com.mattermost.apps"] = &PluginState{Enable: true}
|
||||||
|
}
|
||||||
|
|
||||||
if s.EnableMarketplace == nil {
|
if s.EnableMarketplace == nil {
|
||||||
s.EnableMarketplace = NewBool(PluginSettingsDefaultEnableMarketplace)
|
s.EnableMarketplace = NewBool(PluginSettingsDefaultEnableMarketplace)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ func (f *FeatureFlags) SetDefaults() {
|
|||||||
f.TestBoolFeature = false
|
f.TestBoolFeature = false
|
||||||
f.CollapsedThreads = true
|
f.CollapsedThreads = true
|
||||||
f.EnableRemoteClusterService = false
|
f.EnableRemoteClusterService = false
|
||||||
f.AppsEnabled = false
|
f.AppsEnabled = true
|
||||||
f.AppBarEnabled = false
|
f.AppBarEnabled = false
|
||||||
f.PluginApps = ""
|
f.PluginApps = ""
|
||||||
f.PluginFocalboard = ""
|
f.PluginFocalboard = ""
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user