From 2f4fbf89cac96b74c2375b9ec9710a2c890dcf8f Mon Sep 17 00:00:00 2001 From: Nathan Marrs Date: Wed, 30 Aug 2023 22:22:05 +0200 Subject: [PATCH] Chore: Create `dashgpt` feature flag (#73971) --- .../configure-grafana/feature-toggles/index.md | 1 + packages/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 ++++ 5 files changed, 14 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 7f7e01735ad..a11d99a80a9 100644 --- a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md +++ b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md @@ -131,6 +131,7 @@ Experimental features might be changed or removed without prior notice. | `influxdbSqlSupport` | Enable InfluxDB SQL query language support with new querying UI | | `noBasicRole` | Enables a new role that has no permissions by default | | `angularDeprecationUI` | Display new Angular deprecation-related UI features | +| `dashgpt` | Enable AI powered features 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 f9df87b34f9..262ba06b3a0 100644 --- a/packages/grafana-data/src/types/featureToggles.gen.ts +++ b/packages/grafana-data/src/types/featureToggles.gen.ts @@ -121,4 +121,5 @@ export interface FeatureToggles { noBasicRole?: boolean; alertingNoDataErrorExecution?: boolean; angularDeprecationUI?: boolean; + dashgpt?: boolean; } diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index 1c4b124b676..2e967527795 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -715,5 +715,12 @@ var ( FrontendOnly: true, Owner: grafanaPluginsPlatformSquad, }, + { + Name: "dashgpt", + Description: "Enable AI powered features in dashboards", + Stage: FeatureStageExperimental, + FrontendOnly: true, + Owner: grafanaDashboardsSquad, + }, } ) diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index 01af90df3ac..7708284437e 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -102,3 +102,4 @@ influxdbSqlSupport,experimental,@grafana/observability-metrics,false,false,false noBasicRole,experimental,@grafana/grafana-authnz-team,false,false,true,true alertingNoDataErrorExecution,privatePreview,@grafana/alerting-squad,false,false,true,false angularDeprecationUI,experimental,@grafana/plugins-platform-backend,false,false,false,true +dashgpt,experimental,@grafana/dashboards-squad,false,false,false,true diff --git a/pkg/services/featuremgmt/toggles_gen.go b/pkg/services/featuremgmt/toggles_gen.go index b871cd85e05..806d81b39f8 100644 --- a/pkg/services/featuremgmt/toggles_gen.go +++ b/pkg/services/featuremgmt/toggles_gen.go @@ -418,4 +418,8 @@ const ( // FlagAngularDeprecationUI // Display new Angular deprecation-related UI features FlagAngularDeprecationUI = "angularDeprecationUI" + + // FlagDashgpt + // Enable AI powered features in dashboards + FlagDashgpt = "dashgpt" )