From 403b60723d9960b29c1ad9b1fd5b22b3bc340bef Mon Sep 17 00:00:00 2001 From: Todd Treece <360020+toddtreece@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:47:24 -0400 Subject: [PATCH] Playlist: Add watch feature toggle (#95730) --- .../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 | 13 +++++++++++++ 6 files changed, 27 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 11e735e2ad3..32846859797 100644 --- a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md +++ b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md @@ -215,6 +215,7 @@ Experimental features might be changed or removed without prior notice. | `timeRangeProvider` | Enables time pickers sync | | `prometheusUsesCombobox` | Use new combobox component for Prometheus query editor | | `dashboardSchemaV2` | Enables the new dashboard schema version 2, implementing changes necessary for dynamic dashboards and dashboards as code. | +| `playlistsWatcher` | Enables experimental watcher for playlists | ## Development feature toggles diff --git a/packages/grafana-data/src/types/featureToggles.gen.ts b/packages/grafana-data/src/types/featureToggles.gen.ts index a0c8882dc55..d12c8339c54 100644 --- a/packages/grafana-data/src/types/featureToggles.gen.ts +++ b/packages/grafana-data/src/types/featureToggles.gen.ts @@ -226,4 +226,5 @@ export interface FeatureToggles { prometheusUsesCombobox?: boolean; azureMonitorDisableLogLimit?: boolean; dashboardSchemaV2?: boolean; + playlistsWatcher?: boolean; } diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index 68ab526a782..7db2410a519 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -1556,6 +1556,13 @@ var ( Owner: grafanaDashboardsSquad, FrontendOnly: true, }, + { + Name: "playlistsWatcher", + Description: "Enables experimental watcher for playlists", + Stage: FeatureStageExperimental, + Owner: grafanaAppPlatformSquad, + RequiresRestart: true, + }, } ) diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index 73c477d901e..5aea0ebe9ed 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -207,3 +207,4 @@ timeRangeProvider,experimental,@grafana/grafana-frontend-platform,false,false,fa prometheusUsesCombobox,experimental,@grafana/observability-metrics,false,false,false azureMonitorDisableLogLimit,GA,@grafana/partner-datasources,false,false,false dashboardSchemaV2,experimental,@grafana/dashboards-squad,false,false,true +playlistsWatcher,experimental,@grafana/grafana-app-platform-squad,false,true,false diff --git a/pkg/services/featuremgmt/toggles_gen.go b/pkg/services/featuremgmt/toggles_gen.go index ed2f55d395a..b40bd2a9f67 100644 --- a/pkg/services/featuremgmt/toggles_gen.go +++ b/pkg/services/featuremgmt/toggles_gen.go @@ -838,4 +838,8 @@ const ( // FlagDashboardSchemaV2 // Enables the new dashboard schema version 2, implementing changes necessary for dynamic dashboards and dashboards as code. FlagDashboardSchemaV2 = "dashboardSchemaV2" + + // FlagPlaylistsWatcher + // Enables experimental watcher for playlists + FlagPlaylistsWatcher = "playlistsWatcher" ) diff --git a/pkg/services/featuremgmt/toggles_gen.json b/pkg/services/featuremgmt/toggles_gen.json index 0a4bd6bd861..e517a9aefe5 100644 --- a/pkg/services/featuremgmt/toggles_gen.json +++ b/pkg/services/featuremgmt/toggles_gen.json @@ -2416,6 +2416,19 @@ "expression": "true" } }, + { + "metadata": { + "name": "playlistsWatcher", + "resourceVersion": "1730462910506", + "creationTimestamp": "2024-11-01T12:08:30Z" + }, + "spec": { + "description": "Enables experimental watcher for playlists", + "stage": "experimental", + "codeowner": "@grafana/grafana-app-platform-squad", + "requiresRestart": true + } + }, { "metadata": { "name": "pluginProxyPreserveTrailingSlash",