Adds a ConnectedWorkspaces.MaxPostsPerSync configuration property (#28154)
* Adds a ConnectedWorkspaces.MaxPostsPerSync configuration property * Fix linter
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d1557271f1
Коммит
d1ae710d45
@@ -265,6 +265,8 @@ const (
|
||||
OpenidSettingsDefaultScope = "profile openid email"
|
||||
|
||||
LocalModeSocketPath = "/var/tmp/mattermost_local.socket"
|
||||
|
||||
ConnectedWorkspacesSettingsDefaultMaxPostsPerSync = 50 // a bit more than 4 typical screenfulls of posts
|
||||
)
|
||||
|
||||
func GetDefaultAppCustomURLSchemes() []string {
|
||||
@@ -3278,6 +3280,7 @@ type ConnectedWorkspacesSettings struct {
|
||||
EnableSharedChannels *bool
|
||||
EnableRemoteClusterService *bool
|
||||
DisableSharedChannelsStatusSync *bool
|
||||
MaxPostsPerSync *int
|
||||
}
|
||||
|
||||
func (c *ConnectedWorkspacesSettings) SetDefaults(isUpdate bool, e ExperimentalSettings) {
|
||||
@@ -3300,6 +3303,10 @@ func (c *ConnectedWorkspacesSettings) SetDefaults(isUpdate bool, e ExperimentalS
|
||||
if c.DisableSharedChannelsStatusSync == nil {
|
||||
c.DisableSharedChannelsStatusSync = NewPointer(false)
|
||||
}
|
||||
|
||||
if c.MaxPostsPerSync == nil {
|
||||
c.MaxPostsPerSync = NewPointer(ConnectedWorkspacesSettingsDefaultMaxPostsPerSync)
|
||||
}
|
||||
}
|
||||
|
||||
type GlobalRelayMessageExportSettings struct {
|
||||
|
||||
Ссылка в новой задаче
Block a user