From ec1a722504b5c09ba01b96b95907a3bdd1c0b106 Mon Sep 17 00:00:00 2001 From: Juan Cabanas Date: Thu, 14 Nov 2024 17:08:03 -0300 Subject: [PATCH] Reporting: useReportRawTimeRange FF (#95683) --- .../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 | 16 ++++++++++++++++ 6 files changed, 30 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 551c0d4c4b8..1bcfa719474 100644 --- a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md +++ b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md @@ -115,6 +115,7 @@ Most [generally available](https://grafana.com/docs/release-life-cycle/#general- | `azureMonitorPrometheusExemplars` | Allows configuration of Azure Monitor as a data source that can provide Prometheus exemplars | | `ssoSettingsLDAP` | Use the new SSO Settings API to configure LDAP | | `useSessionStorageForRedirection` | Use session storage for handling the redirection after login | +| `reportingUseRawTimeRange` | Uses the original report or dashboard time range instead of making an absolute transformation | ## Experimental feature toggles diff --git a/packages/grafana-data/src/types/featureToggles.gen.ts b/packages/grafana-data/src/types/featureToggles.gen.ts index ba8de8b3b64..3d27b8456cf 100644 --- a/packages/grafana-data/src/types/featureToggles.gen.ts +++ b/packages/grafana-data/src/types/featureToggles.gen.ts @@ -237,4 +237,5 @@ export interface FeatureToggles { zipkinBackendMigration?: boolean; enableSCIM?: boolean; crashDetection?: boolean; + reportingUseRawTimeRange?: boolean; } diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index bcab9ab8b19..fe74f5ca2a6 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -1637,6 +1637,13 @@ var ( Owner: grafanaObservabilityTracesAndProfilingSquad, FrontendOnly: true, }, + { + Name: "reportingUseRawTimeRange", + Description: "Uses the original report or dashboard time range instead of making an absolute transformation", + Stage: FeatureStagePublicPreview, + Owner: grafanaSharingSquad, + Expression: "false", // disabled by default + }, } ) diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index 6dd0ad0be18..4a15d02f7e2 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -218,3 +218,4 @@ enableExtensionsAdminPage,experimental,@grafana/plugins-platform-backend,false,t zipkinBackendMigration,experimental,@grafana/oss-big-tent,false,false,false enableSCIM,experimental,@grafana/identity-access-team,false,false,false crashDetection,experimental,@grafana/observability-traces-and-profiling,false,false,true +reportingUseRawTimeRange,preview,@grafana/sharing-squad,false,false,false diff --git a/pkg/services/featuremgmt/toggles_gen.go b/pkg/services/featuremgmt/toggles_gen.go index 6e3364ba7d1..37231dcc9d4 100644 --- a/pkg/services/featuremgmt/toggles_gen.go +++ b/pkg/services/featuremgmt/toggles_gen.go @@ -882,4 +882,8 @@ const ( // FlagCrashDetection // Enables browser crash detection reporting to Faro. FlagCrashDetection = "crashDetection" + + // FlagReportingUseRawTimeRange + // Uses the original report or dashboard time range instead of making an absolute transformation + FlagReportingUseRawTimeRange = "reportingUseRawTimeRange" ) diff --git a/pkg/services/featuremgmt/toggles_gen.json b/pkg/services/featuremgmt/toggles_gen.json index 586608d8eec..90e8a881f8b 100644 --- a/pkg/services/featuremgmt/toggles_gen.json +++ b/pkg/services/featuremgmt/toggles_gen.json @@ -3017,6 +3017,22 @@ "requiresRestart": true } }, + { + "metadata": { + "name": "reportingUseRawTimeRange", + "resourceVersion": "1731604692461", + "creationTimestamp": "2024-11-13T15:48:28Z", + "annotations": { + "grafana.app/updatedTimestamp": "2024-11-14 17:18:12.461446 +0000 UTC" + } + }, + "spec": { + "description": "Uses the original report or dashboard time range instead of making an absolute transformation", + "stage": "preview", + "codeowner": "@grafana/sharing-squad", + "expression": "false" + } + }, { "metadata": { "name": "rolePickerDrawer",