Adds support for public routes on shared boards (#22710)
* Adds support for public routes on shared boards * Fix linter * Address review comments * Update playbooks registerProduct call * Use boards product config for setting * update additional product locations for parameter changes * fixes for read-only when logged in * turn off global header and don't initialize plugin if shared board * fix unit tests * revert package-lock.json * more fixes * Remove FF check for system console setting for boards * update tests, Product boards is displayed in system console * only check products section of config * update test for config change --------- Co-authored-by: Scott Bishel <scott.bishel@mattermost.com> Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
71923fe311
Коммит
4cc2fed079
@@ -77,10 +77,13 @@ func TestSetConfiguration(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("test enable shared boards", func(t *testing.T) {
|
||||
baseProductSettings := &model.ProductSettings{
|
||||
EnablePublicSharedBoards: &falseRef,
|
||||
}
|
||||
|
||||
mmConfig := baseConfig
|
||||
mmConfig.PluginSettings.Plugins = make(map[string]map[string]interface{})
|
||||
mmConfig.PluginSettings.Plugins[server.PluginName] = make(map[string]interface{})
|
||||
mmConfig.PluginSettings.Plugins[server.PluginName][server.SharedBoardsName] = true
|
||||
mmConfig.ProductSettings = *baseProductSettings
|
||||
mmConfig.ProductSettings.EnablePublicSharedBoards = &boolTrue
|
||||
config := server.CreateBoardsConfig(*mmConfig, "", "")
|
||||
assert.Equal(t, true, config.EnablePublicSharedBoards)
|
||||
})
|
||||
|
||||
Ссылка в новой задаче
Block a user