Scopes: Adds feature toggle used by grafana-enterprise (#103870)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
pull/103574/head^2
Carl Bergquist 2 months ago committed by GitHub
parent 1125f36f4f
commit ed65c99e54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/grafana-data/src/types/featureToggles.gen.ts
  2. 21
      pkg/services/featuremgmt/registry.go
  3. 1
      pkg/services/featuremgmt/toggles_gen.csv
  4. 4
      pkg/services/featuremgmt/toggles_gen.go
  5. 25
      pkg/services/featuremgmt/toggles_gen.json

@ -942,6 +942,10 @@ export interface FeatureToggles {
*/
useScopesNavigationEndpoint?: boolean;
/**
* Enable scope search to include all levels of the scope node tree
*/
scopeSearchAllLevels?: boolean;
/**
* Enables the alert rule version history restore feature
* @default true
*/

@ -1596,12 +1596,21 @@ var (
HideFromDocs: true,
},
{
Name: "useScopesNavigationEndpoint",
Description: "Use the scopes navigation endpoint instead of the dashboardbindings endpoint",
Stage: FeatureStageExperimental,
Owner: grafanaFrontendPlatformSquad,
FrontendOnly: true,
HideFromDocs: true,
Name: "useScopesNavigationEndpoint",
Description: "Use the scopes navigation endpoint instead of the dashboardbindings endpoint",
Stage: FeatureStageExperimental,
Owner: grafanaFrontendPlatformSquad,
FrontendOnly: true,
HideFromDocs: true,
HideFromAdminPage: true,
},
{
Name: "scopeSearchAllLevels",
Description: "Enable scope search to include all levels of the scope node tree",
Stage: FeatureStageExperimental,
Owner: grafanaFrontendPlatformSquad,
HideFromDocs: true,
HideFromAdminPage: true,
},
{
Name: "alertingRuleVersionHistoryRestore",

@ -211,6 +211,7 @@ grafanaconThemes,GA,@grafana/grafana-frontend-platform,false,true,false
pluginsCDNSyncLoader,experimental,@grafana/plugins-platform-backend,false,false,false
alertingJiraIntegration,experimental,@grafana/alerting-squad,false,false,true
useScopesNavigationEndpoint,experimental,@grafana/grafana-frontend-platform,false,false,true
scopeSearchAllLevels,experimental,@grafana/grafana-frontend-platform,false,false,false
alertingRuleVersionHistoryRestore,GA,@grafana/alerting-squad,false,false,true
newShareReportDrawer,experimental,@grafana/sharing-squad,false,false,false
rendererDisableAppPluginsPreload,experimental,@grafana/sharing-squad,false,false,true

1 Name Stage Owner requiresDevMode RequiresRestart FrontendOnly
211 pluginsCDNSyncLoader experimental @grafana/plugins-platform-backend false false false
212 alertingJiraIntegration experimental @grafana/alerting-squad false false true
213 useScopesNavigationEndpoint experimental @grafana/grafana-frontend-platform false false true
214 scopeSearchAllLevels experimental @grafana/grafana-frontend-platform false false false
215 alertingRuleVersionHistoryRestore GA @grafana/alerting-squad false false true
216 newShareReportDrawer experimental @grafana/sharing-squad false false false
217 rendererDisableAppPluginsPreload experimental @grafana/sharing-squad false false true

@ -855,6 +855,10 @@ const (
// Use the scopes navigation endpoint instead of the dashboardbindings endpoint
FlagUseScopesNavigationEndpoint = "useScopesNavigationEndpoint"
// FlagScopeSearchAllLevels
// Enable scope search to include all levels of the scope node tree
FlagScopeSearchAllLevels = "scopeSearchAllLevels"
// FlagAlertingRuleVersionHistoryRestore
// Enables the alert rule version history restore feature
FlagAlertingRuleVersionHistoryRestore = "alertingRuleVersionHistoryRestore"

@ -2900,6 +2900,23 @@
"hideFromDocs": true
}
},
{
"metadata": {
"name": "scopeSearchAllLevels",
"resourceVersion": "1744370973814",
"creationTimestamp": "2025-04-10T12:49:09Z",
"annotations": {
"grafana.app/updatedTimestamp": "2025-04-11 11:29:33.814419 +0000 UTC"
}
},
"spec": {
"description": "Enable scope search to include all levels of the scope node tree",
"stage": "experimental",
"codeowner": "@grafana/grafana-frontend-platform",
"hideFromAdminPage": true,
"hideFromDocs": true
}
},
{
"metadata": {
"name": "secretsManagementAppPlatform",
@ -3272,14 +3289,18 @@
{
"metadata": {
"name": "useScopesNavigationEndpoint",
"resourceVersion": "1743693517832",
"creationTimestamp": "2025-04-03T15:18:37Z"
"resourceVersion": "1744289349951",
"creationTimestamp": "2025-04-03T15:18:37Z",
"annotations": {
"grafana.app/updatedTimestamp": "2025-04-10 12:49:09.951013 +0000 UTC"
}
},
"spec": {
"description": "Use the scopes navigation endpoint instead of the dashboardbindings endpoint",
"stage": "experimental",
"codeowner": "@grafana/grafana-frontend-platform",
"frontend": true,
"hideFromAdminPage": true,
"hideFromDocs": true
}
},

Loading…
Cancel
Save