Chore: Remove topnav feature flag (#72337)

* Remove topnav feature flag

* Allow deprecated flags to be enabled by default

* change topnav feature flag to deprecated instead

* fix lint
This commit is contained in:
Josh Hunt
2023-07-26 11:07:18 +00:00
committed by GitHub
parent 600b930c47
commit 488eac0e49
6 changed files with 9 additions and 9 deletions
+4 -2
View File
@@ -166,9 +166,11 @@ var (
Owner: grafanaPluginsPlatformSquad,
},
{
// Some plugins rely on topnav feature flag being enabled, so we cannot remove this until we
// can afford the breaking change, or we've detemined no one else is relying on it
Name: "topnav",
Description: "Enables new top navigation and page layouts",
Stage: FeatureStageGeneralAvailability,
Description: "Enables topnav support in external plugins. The new Grafana navigation cannot be disabled.",
Stage: FeatureStageDeprecated,
Expression: "true", // enabled by default
Owner: grafanaFrontendPlatformSquad,
},
+1 -1
View File
@@ -23,7 +23,7 @@ scenes,experimental,@grafana/dashboards-squad,false,false,false,true
disableSecretsCompatibility,experimental,@grafana/hosted-grafana-team,false,false,true,false
logRequestsInstrumentedAsUnknown,experimental,@grafana/hosted-grafana-team,false,false,false,false
dataConnectionsConsole,GA,@grafana/plugins-platform-backend,false,false,false,false
topnav,GA,@grafana/grafana-frontend-platform,false,false,false,false
topnav,deprecated,@grafana/grafana-frontend-platform,false,false,false,false
grpcServer,preview,@grafana/grafana-app-platform-squad,false,false,false,false
entityStore,experimental,@grafana/grafana-app-platform-squad,true,false,false,false
cloudWatchCrossAccountQuerying,GA,@grafana/aws-datasources,false,false,false,false
1 Name Stage Owner requiresDevMode RequiresLicense RequiresRestart FrontendOnly
23 disableSecretsCompatibility experimental @grafana/hosted-grafana-team false false true false
24 logRequestsInstrumentedAsUnknown experimental @grafana/hosted-grafana-team false false false false
25 dataConnectionsConsole GA @grafana/plugins-platform-backend false false false false
26 topnav GA deprecated @grafana/grafana-frontend-platform false false false false
27 grpcServer preview @grafana/grafana-app-platform-squad false false false false
28 entityStore experimental @grafana/grafana-app-platform-squad true false false false
29 cloudWatchCrossAccountQuerying GA @grafana/aws-datasources false false false false
+1 -1
View File
@@ -104,7 +104,7 @@ const (
FlagDataConnectionsConsole = "dataConnectionsConsole"
// FlagTopnav
// Enables new top navigation and page layouts
// Enables topnav support in external plugins. The new Grafana navigation cannot be disabled.
FlagTopnav = "topnav"
// FlagGrpcServer
+2 -2
View File
@@ -30,8 +30,8 @@ func TestFeatureToggleFiles(t *testing.T) {
t.Run("check registry constraints", func(t *testing.T) {
for _, flag := range standardFeatureFlags {
if flag.Expression == "true" && flag.Stage != FeatureStageGeneralAvailability {
t.Errorf("only FeatureStageGeneralAvailability features can be enabled by default. See: %s", flag.Name)
if flag.Expression == "true" && !(flag.Stage == FeatureStageGeneralAvailability || flag.Stage == FeatureStageDeprecated) {
t.Errorf("only FeatureStageGeneralAvailability or FeatureStageDeprecated features can be enabled by default. See: %s", flag.Name)
}
if flag.RequiresDevMode && flag.Stage != FeatureStageExperimental {
t.Errorf("only alpha features can require dev mode. See: %s", flag.Name)