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:
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user