adding new feature flag (#17308)
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local> Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
@@ -36,6 +36,9 @@ type FeatureFlags struct {
|
|||||||
FilesSearch bool
|
FilesSearch bool
|
||||||
// Feature flag to control setting the TCP_NO_DELAY setting for websockets.
|
// Feature flag to control setting the TCP_NO_DELAY setting for websockets.
|
||||||
WebSocketDelay bool
|
WebSocketDelay bool
|
||||||
|
|
||||||
|
// Control support for custom data retention policies
|
||||||
|
CustomDataRetentionEnabled bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *FeatureFlags) SetDefaults() {
|
func (f *FeatureFlags) SetDefaults() {
|
||||||
@@ -50,6 +53,7 @@ func (f *FeatureFlags) SetDefaults() {
|
|||||||
f.PluginIncidentManagement = "1.7.0"
|
f.PluginIncidentManagement = "1.7.0"
|
||||||
f.PluginApps = ""
|
f.PluginApps = ""
|
||||||
f.WebSocketDelay = false
|
f.WebSocketDelay = false
|
||||||
|
f.CustomDataRetentionEnabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *FeatureFlags) Plugins() map[string]string {
|
func (f *FeatureFlags) Plugins() map[string]string {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user