Move playbooks to plugin (#23732)
* Remove build references * Remove playbooks webapp and server, and add the prepackaged plugin * Remove translations * Add ProductSettings to the playwright type * Restore playbooks as a prepackaged plugin for cypress e2e tests
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f386ef1ea8
Коммит
44a99d1736
@@ -2864,13 +2864,9 @@ func (s *CloudSettings) SetDefaults() {
|
||||
}
|
||||
|
||||
type ProductSettings struct {
|
||||
EnablePlaybooks *bool
|
||||
}
|
||||
|
||||
func (s *ProductSettings) SetDefaults() {
|
||||
if s.EnablePlaybooks == nil {
|
||||
s.EnablePlaybooks = NewBool(true)
|
||||
}
|
||||
}
|
||||
|
||||
type PluginState struct {
|
||||
@@ -2938,6 +2934,11 @@ func (s *PluginSettings) SetDefaults(ls LogSettings) {
|
||||
s.PluginStates[PluginIdCalls] = &PluginState{Enable: true}
|
||||
}
|
||||
|
||||
if s.PluginStates[PluginIdPlaybooks] == nil {
|
||||
// Enable the playbooks plugin by default
|
||||
s.PluginStates[PluginIdPlaybooks] = &PluginState{Enable: true}
|
||||
}
|
||||
|
||||
if s.EnableMarketplace == nil {
|
||||
s.EnableMarketplace = NewBool(PluginSettingsDefaultEnableMarketplace)
|
||||
}
|
||||
|
||||
@@ -104,7 +104,6 @@ func scanSearchPath(path string) ([]*model.BundleInfo, error) {
|
||||
}
|
||||
|
||||
var pluginIDBlocklist = map[string]bool{
|
||||
"playbooks": true,
|
||||
"com.mattermost.plugin-incident-response": true,
|
||||
"com.mattermost.plugin-incident-management": true,
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user