From 34fe7a1119c0f649d3e9df866353438ff2177fdc Mon Sep 17 00:00:00 2001 From: Kevin Yu Date: Mon, 5 Sep 2022 08:39:45 -0700 Subject: [PATCH] Plugins: Add feature toggles for long running queries (#54349) * Add feature toggles for long running queries * update feature flag name * make feature toggle frontend only --- .../grafana-data/src/types/featureToggles.gen.ts | 2 ++ pkg/services/featuremgmt/registry.go | 12 ++++++++++++ pkg/services/featuremgmt/toggles_gen.go | 8 ++++++++ 3 files changed, 22 insertions(+) diff --git a/packages/grafana-data/src/types/featureToggles.gen.ts b/packages/grafana-data/src/types/featureToggles.gen.ts index 051a302ee6e..f04e6139c7f 100644 --- a/packages/grafana-data/src/types/featureToggles.gen.ts +++ b/packages/grafana-data/src/types/featureToggles.gen.ts @@ -65,4 +65,6 @@ export interface FeatureToggles { topnav?: boolean; customBranding?: boolean; traceqlEditor?: boolean; + redshiftAsyncQueryDataSupport?: boolean; + athenaAsyncQueryDataSupport?: boolean; } diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index 7a982011832..397bdcd7dc4 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -273,5 +273,17 @@ var ( Description: "Show the TraceQL editor in the explore page", State: FeatureStateAlpha, }, + { + Name: "redshiftAsyncQueryDataSupport", + Description: "Enable async query data support for Redshift", + State: FeatureStateAlpha, + FrontendOnly: true, + }, + { + Name: "athenaAsyncQueryDataSupport", + Description: "Enable async query data support for Athena", + State: FeatureStateAlpha, + FrontendOnly: true, + }, } ) diff --git a/pkg/services/featuremgmt/toggles_gen.go b/pkg/services/featuremgmt/toggles_gen.go index 2c946e5ca87..7e2101488f2 100644 --- a/pkg/services/featuremgmt/toggles_gen.go +++ b/pkg/services/featuremgmt/toggles_gen.go @@ -202,4 +202,12 @@ const ( // FlagTraceqlEditor // Show the TraceQL editor in the explore page FlagTraceqlEditor = "traceqlEditor" + + // FlagRedshiftAsyncQueryDataSupport + // Enable async query data support for Redshift + FlagRedshiftAsyncQueryDataSupport = "redshiftAsyncQueryDataSupport" + + // FlagAthenaAsyncQueryDataSupport + // Enable async query data support for Athena + FlagAthenaAsyncQueryDataSupport = "athenaAsyncQueryDataSupport" )