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 f9267ad1eb5..8c25a54b410 100644 --- a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md +++ b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md @@ -232,6 +232,7 @@ Experimental features might be changed or removed without prior notice. | `k8SFolderCounts` | Enable folder's api server counts | | `k8SFolderMove` | Enable folder's api server move | | `teamHttpHeadersMimir` | Enables LBAC for datasources for Mimir to apply LBAC filtering of metrics to the client requests for users in teams | +| `queryLibraryDashboards` | Enables Query Library feature in Dashboards | ## Development feature toggles diff --git a/packages/grafana-data/src/types/featureToggles.gen.ts b/packages/grafana-data/src/types/featureToggles.gen.ts index 8c01b34d83e..f1dff9d6a38 100644 --- a/packages/grafana-data/src/types/featureToggles.gen.ts +++ b/packages/grafana-data/src/types/featureToggles.gen.ts @@ -252,4 +252,5 @@ export interface FeatureToggles { teamHttpHeadersMimir?: boolean; ABTestFeatureToggleA?: boolean; ABTestFeatureToggleB?: boolean; + queryLibraryDashboards?: boolean; } diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index 5fd9f61794d..f68c5134c7b 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -1743,6 +1743,13 @@ var ( Expression: "false", HideFromDocs: true, }, + { + Name: "queryLibraryDashboards", + Description: "Enables Query Library feature in Dashboards", + Stage: FeatureStageExperimental, + Owner: grafanaFrontendPlatformSquad, + AllowSelfServe: false, + }, } ) diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index c414b28d25a..2eba503f6f5 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -233,3 +233,4 @@ improvedExternalSessionHandlingSAML,preview,@grafana/identity-access-team,false, teamHttpHeadersMimir,experimental,@grafana/identity-access-team,false,false,false ABTestFeatureToggleA,experimental,@grafana/sharing-squad,false,false,false ABTestFeatureToggleB,experimental,@grafana/sharing-squad,false,false,false +queryLibraryDashboards,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 8ff9b539d28..f74b6bcdb13 100644 --- a/pkg/services/featuremgmt/toggles_gen.go +++ b/pkg/services/featuremgmt/toggles_gen.go @@ -942,4 +942,8 @@ const ( // FlagABTestFeatureToggleB // Test feature toggle to see how cohorts could be set up AB testing FlagABTestFeatureToggleB = "ABTestFeatureToggleB" + + // FlagQueryLibraryDashboards + // Enables Query Library feature in Dashboards + FlagQueryLibraryDashboards = "queryLibraryDashboards" ) diff --git a/pkg/services/featuremgmt/toggles_gen.json b/pkg/services/featuremgmt/toggles_gen.json index a5704c0ffa0..0ee59b47d73 100644 --- a/pkg/services/featuremgmt/toggles_gen.json +++ b/pkg/services/featuremgmt/toggles_gen.json @@ -3210,6 +3210,21 @@ "codeowner": "@grafana/grafana-frontend-platform" } }, + { + "metadata": { + "name": "queryLibraryDashboards", + "resourceVersion": "1736850377404", + "creationTimestamp": "2025-01-14T10:24:54Z", + "annotations": { + "grafana.app/updatedTimestamp": "2025-01-14 10:26:17.404592 +0000 UTC" + } + }, + "spec": { + "description": "Enables Query Library feature in Dashboards", + "stage": "experimental", + "codeowner": "@grafana/grafana-frontend-platform" + } + }, { "metadata": { "name": "queryOverLive",