[MM-63513] Turn Cross team search feature flag into a setting option (#30518)
* feat: Add EnableCrossTeamSearch configuration option to ServiceSettings * feat: Add EnableCrossTeamSearch configuration option to ServiceSettings * feat: Enable cross-team search by default * include old FF in client config
Этот коммит содержится в:
@@ -392,6 +392,7 @@ type ServiceSettings struct {
|
||||
EnableEmojiPicker *bool `access:"site_emoji"`
|
||||
PostEditTimeLimit *int `access:"user_management_permissions"`
|
||||
TimeBetweenUserTypingUpdatesMilliseconds *int64 `access:"experimental_features,write_restrictable,cloud_restrictable"`
|
||||
EnableCrossTeamSearch *bool `access:"write_restrictable,cloud_restrictable"`
|
||||
EnablePostSearch *bool `access:"write_restrictable,cloud_restrictable"`
|
||||
EnableFileSearch *bool `access:"write_restrictable"`
|
||||
MinimumHashtagLength *int `access:"environment_database,write_restrictable,cloud_restrictable"`
|
||||
@@ -620,6 +621,10 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) {
|
||||
s.TimeBetweenUserTypingUpdatesMilliseconds = NewPointer(int64(5000))
|
||||
}
|
||||
|
||||
if s.EnableCrossTeamSearch == nil {
|
||||
s.EnableCrossTeamSearch = NewPointer(true)
|
||||
}
|
||||
|
||||
if s.EnablePostSearch == nil {
|
||||
s.EnablePostSearch = NewPointer(true)
|
||||
}
|
||||
@@ -3645,9 +3650,11 @@ func (s *ExportSettings) SetDefaults() {
|
||||
|
||||
type ConfigFunc func() *Config
|
||||
|
||||
const ConfigAccessTagType = "access"
|
||||
const ConfigAccessTagWriteRestrictable = "write_restrictable"
|
||||
const ConfigAccessTagCloudRestrictable = "cloud_restrictable"
|
||||
const (
|
||||
ConfigAccessTagType = "access"
|
||||
ConfigAccessTagWriteRestrictable = "write_restrictable"
|
||||
ConfigAccessTagCloudRestrictable = "cloud_restrictable"
|
||||
)
|
||||
|
||||
// Allows read access if any PermissionSysconsoleRead* is allowed
|
||||
const ConfigAccessTagAnySysConsoleRead = "*_read"
|
||||
|
||||
@@ -56,8 +56,6 @@ type FeatureFlags struct {
|
||||
|
||||
ExperimentalAuditSettingsSystemConsoleUI bool
|
||||
|
||||
ExperimentalCrossTeamSearch bool
|
||||
|
||||
CustomProfileAttributes bool
|
||||
}
|
||||
|
||||
@@ -82,7 +80,6 @@ func (f *FeatureFlags) SetDefaults() {
|
||||
f.WebSocketEventScope = true
|
||||
f.NotificationMonitoring = true
|
||||
f.ExperimentalAuditSettingsSystemConsoleUI = false
|
||||
f.ExperimentalCrossTeamSearch = true
|
||||
f.CustomProfileAttributes = false
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user