Feature Highlights: move setting to a feature toggle (#44780)

* Add toggle

* Use the toggle

* Cleanup
This commit is contained in:
Alex Khomenko
2022-02-03 13:53:23 +02:00
committed by GitHub
parent c23bc1e7b7
commit a79c048344
8 changed files with 16 additions and 15 deletions

View File

@@ -273,9 +273,6 @@ func (hs *HTTPServer) getFrontendSettingsMap(c *models.ReqContext) (map[string]i
"enabled": hs.Cfg.SectionWithEnvOverrides("recorded_queries").Key("enabled").MustBool(true),
},
"unifiedAlertingEnabled": hs.Cfg.UnifiedAlerting.Enabled,
"featureHighlights": map[string]bool{
"enabled": hs.SettingsProvider.Section("feature_highlights").KeyValue("enabled").MustBool(false),
},
}
if hs.Cfg.GeomapDefaultBaseLayerConfig != nil {