Alerting: Add a feature toggle to fetch rules with compact=true (#115533)
This commit is contained in:
@@ -828,6 +828,10 @@ export interface FeatureToggles {
|
||||
*/
|
||||
fetchRulesUsingPost?: boolean;
|
||||
/**
|
||||
* Add compact=true when fetching rules
|
||||
*/
|
||||
fetchRulesInCompactMode?: boolean;
|
||||
/**
|
||||
* Enables the new logs panel
|
||||
* @default true
|
||||
*/
|
||||
|
||||
@@ -1360,6 +1360,13 @@ var (
|
||||
Owner: grafanaAlertingSquad,
|
||||
HideFromDocs: true,
|
||||
},
|
||||
{
|
||||
Name: "fetchRulesInCompactMode",
|
||||
Description: "Add compact=true when fetching rules",
|
||||
Stage: FeatureStageExperimental,
|
||||
Owner: grafanaAlertingSquad,
|
||||
HideFromDocs: true,
|
||||
},
|
||||
{
|
||||
Name: "newLogsPanel",
|
||||
Description: "Enables the new logs panel",
|
||||
|
||||
Generated
+1
@@ -188,6 +188,7 @@ grafanaAdvisor,privatePreview,@grafana/plugins-platform-backend,false,false,fals
|
||||
elasticsearchImprovedParsing,experimental,@grafana/partner-datasources,false,false,false
|
||||
datasourceConnectionsTab,privatePreview,@grafana/plugins-platform-backend,false,false,true
|
||||
fetchRulesUsingPost,experimental,@grafana/alerting-squad,false,false,false
|
||||
fetchRulesInCompactMode,experimental,@grafana/alerting-squad,false,false,false
|
||||
newLogsPanel,GA,@grafana/observability-logs,false,false,true
|
||||
grafanaconThemes,GA,@grafana/grafana-frontend-platform,false,true,false
|
||||
alertingJiraIntegration,experimental,@grafana/alerting-squad,false,false,true
|
||||
|
||||
|
Generated
+4
@@ -571,6 +571,10 @@ const (
|
||||
// Use a POST request to list rules by passing down the namespaces user has access to
|
||||
FlagFetchRulesUsingPost = "fetchRulesUsingPost"
|
||||
|
||||
// FlagFetchRulesInCompactMode
|
||||
// Add compact=true when fetching rules
|
||||
FlagFetchRulesInCompactMode = "fetchRulesInCompactMode"
|
||||
|
||||
// FlagGrafanaconThemes
|
||||
// Enables the temporary themes for GrafanaCon
|
||||
FlagGrafanaconThemes = "grafanaconThemes"
|
||||
|
||||
+13
@@ -1457,6 +1457,19 @@
|
||||
"expression": "false"
|
||||
}
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"name": "fetchRulesInCompactMode",
|
||||
"resourceVersion": "1766045288124",
|
||||
"creationTimestamp": "2025-12-18T08:08:08Z"
|
||||
},
|
||||
"spec": {
|
||||
"description": "Add compact=true when fetching rules",
|
||||
"stage": "experimental",
|
||||
"codeowner": "@grafana/alerting-squad",
|
||||
"hideFromDocs": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"name": "fetchRulesUsingPost",
|
||||
|
||||
Reference in New Issue
Block a user