From f3953b4955c218cc4678e842faa3d3380fd0f8f7 Mon Sep 17 00:00:00 2001 From: Alex Khomenko Date: Mon, 13 May 2024 11:32:34 +0200 Subject: [PATCH] Notification Banner: Add feature toggle (#87686) --- .../configure-grafana/feature-toggles/index.md | 1 + .../grafana-data/src/types/featureToggles.gen.ts | 1 + pkg/services/featuremgmt/registry.go | 7 +++++++ pkg/services/featuremgmt/toggles_gen.csv | 1 + pkg/services/featuremgmt/toggles_gen.go | 4 ++++ pkg/services/featuremgmt/toggles_gen.json | 12 ++++++++++++ 6 files changed, 26 insertions(+) diff --git a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md index 95ff2873974..44879c127e0 100644 --- a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md +++ b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md @@ -180,6 +180,7 @@ Experimental features might be changed or removed without prior notice. | `autofixDSUID` | Automatically migrates invalid datasource UIDs | | `logsExploreTableDefaultVisualization` | Sets the logs table as default visualisation in logs explore | | `newDashboardSharingComponent` | Enables the new sharing drawer design | +| `notificationBanner` | Enables the notification banner UI and API | ## Development feature toggles diff --git a/packages/grafana-data/src/types/featureToggles.gen.ts b/packages/grafana-data/src/types/featureToggles.gen.ts index b1402f91eed..2e67c8418e9 100644 --- a/packages/grafana-data/src/types/featureToggles.gen.ts +++ b/packages/grafana-data/src/types/featureToggles.gen.ts @@ -185,4 +185,5 @@ export interface FeatureToggles { autofixDSUID?: boolean; logsExploreTableDefaultVisualization?: boolean; newDashboardSharingComponent?: boolean; + notificationBanner?: boolean; } diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index 4cd5a1c531e..331c4cc97f7 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -1248,6 +1248,13 @@ var ( Owner: grafanaSharingSquad, FrontendOnly: true, }, + { + Name: "notificationBanner", + Description: "Enables the notification banner UI and API", + Stage: FeatureStageExperimental, + Owner: grafanaFrontendPlatformSquad, + FrontendOnly: false, + }, } ) diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index c79df118b6d..27696e5b9ca 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -166,3 +166,4 @@ queryLibrary,experimental,@grafana/explore-squad,false,false,false autofixDSUID,experimental,@grafana/plugins-platform-backend,false,false,false logsExploreTableDefaultVisualization,experimental,@grafana/observability-logs,false,false,true newDashboardSharingComponent,experimental,@grafana/sharing-squad,false,false,true +notificationBanner,experimental,@grafana/grafana-frontend-platform,false,false,false diff --git a/pkg/services/featuremgmt/toggles_gen.go b/pkg/services/featuremgmt/toggles_gen.go index 6a32db3ec32..d28d2e341ad 100644 --- a/pkg/services/featuremgmt/toggles_gen.go +++ b/pkg/services/featuremgmt/toggles_gen.go @@ -674,4 +674,8 @@ const ( // FlagNewDashboardSharingComponent // Enables the new sharing drawer design FlagNewDashboardSharingComponent = "newDashboardSharingComponent" + + // FlagNotificationBanner + // Enables the notification banner UI and API + FlagNotificationBanner = "notificationBanner" ) diff --git a/pkg/services/featuremgmt/toggles_gen.json b/pkg/services/featuremgmt/toggles_gen.json index 4c516b58498..8cc7bfa349c 100644 --- a/pkg/services/featuremgmt/toggles_gen.json +++ b/pkg/services/featuremgmt/toggles_gen.json @@ -2167,6 +2167,18 @@ "codeowner": "@grafana/grafana-operator-experience-squad", "hideFromDocs": true } + }, + { + "metadata": { + "name": "notificationBanner", + "resourceVersion": "1715582792356", + "creationTimestamp": "2024-05-13T06:46:32Z" + }, + "spec": { + "description": "Enables the notification banner UI and API", + "stage": "experimental", + "codeowner": "@grafana/grafana-frontend-platform" + } } ] } \ No newline at end of file