Angular: Rename autoMigrateGraphPanels feature flag to autoMigrateOldPanels (#65243)

This commit is contained in:
Ryan McKinley
2023-03-22 21:02:36 -07:00
committed by GitHub
parent 7835aacc8f
commit baf5a1d141
9 changed files with 384 additions and 25 deletions

View File

@@ -42,11 +42,17 @@ func ProvideManagerService(cfg *setting.Cfg, licensing licensing.Licensing) (*Fe
for key, val := range flags {
flag, ok := mgmt.flags[key]
if !ok {
flag = &FeatureFlag{
Name: key,
State: FeatureStateUnknown,
switch key {
// renamed the flag so it supports more panels
case "autoMigrateGraphPanels":
flag = mgmt.flags[FlagAutoMigrateOldPanels]
default:
flag = &FeatureFlag{
Name: key,
State: FeatureStateUnknown,
}
mgmt.flags[key] = flag
}
mgmt.flags[key] = flag
}
flag.Expression = fmt.Sprintf("%t", val) // true | false
}