From b9b34223a7e8cd40a496c0d4a2c8386f46136ca7 Mon Sep 17 00:00:00 2001 From: Will Assis <35489495+gassiss@users.noreply.github.com> Date: Wed, 13 Aug 2025 10:05:15 -0400 Subject: [PATCH] Unified-storage: search after write feature flag (#109597) create feature flag for experimental search-after-write changes --- .../src/types/featureToggles.gen.ts | 5 +++++ pkg/services/featuremgmt/registry.go | 10 ++++++++++ pkg/services/featuremgmt/toggles_gen.csv | 1 + pkg/services/featuremgmt/toggles_gen.go | 4 ++++ pkg/services/featuremgmt/toggles_gen.json | 19 +++++++++++++++++++ 5 files changed, 39 insertions(+) diff --git a/packages/grafana-data/src/types/featureToggles.gen.ts b/packages/grafana-data/src/types/featureToggles.gen.ts index 9e53b6cb08b..6b8812ee68e 100644 --- a/packages/grafana-data/src/types/featureToggles.gen.ts +++ b/packages/grafana-data/src/types/featureToggles.gen.ts @@ -1093,4 +1093,9 @@ export interface FeatureToggles { * @default false */ newClickhouseConfigPageDesign?: boolean; + /** + * Enable experimental search-after-write guarantees to unified-storage search endpoints + * @default false + */ + unifiedStorageSearchAfterWriteExperimentalAPI?: boolean; } diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index 44ff23ec99d..e2ee8daad09 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -1894,6 +1894,16 @@ var ( Owner: grafanaPartnerPluginsSquad, Expression: "false", }, + { + Name: "unifiedStorageSearchAfterWriteExperimentalAPI", + Description: "Enable experimental search-after-write guarantees to unified-storage search endpoints", + Stage: FeatureStageExperimental, + Owner: grafanaSearchAndStorageSquad, + HideFromAdminPage: true, + HideFromDocs: true, + RequiresRestart: true, + Expression: "false", + }, } ) diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index da4ec52ac27..fa1853ebe62 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -245,3 +245,4 @@ adhocFiltersInTooltips,experimental,@grafana/datapro,false,false,true favoriteDatasources,experimental,@grafana/plugins-platform-backend,false,false,true newLogContext,experimental,@grafana/observability-logs,false,false,true newClickhouseConfigPageDesign,privatePreview,@grafana/partner-datasources,false,false,false +unifiedStorageSearchAfterWriteExperimentalAPI,experimental,@grafana/search-and-storage,false,true,false diff --git a/pkg/services/featuremgmt/toggles_gen.go b/pkg/services/featuremgmt/toggles_gen.go index 19fd4691ef5..c77c705182f 100644 --- a/pkg/services/featuremgmt/toggles_gen.go +++ b/pkg/services/featuremgmt/toggles_gen.go @@ -990,4 +990,8 @@ const ( // FlagNewClickhouseConfigPageDesign // Enables new design for the Clickhouse data source configuration page FlagNewClickhouseConfigPageDesign = "newClickhouseConfigPageDesign" + + // FlagUnifiedStorageSearchAfterWriteExperimentalAPI + // Enable experimental search-after-write guarantees to unified-storage search endpoints + FlagUnifiedStorageSearchAfterWriteExperimentalAPI = "unifiedStorageSearchAfterWriteExperimentalAPI" ) diff --git a/pkg/services/featuremgmt/toggles_gen.json b/pkg/services/featuremgmt/toggles_gen.json index dab955c2ce5..272c58a23ca 100644 --- a/pkg/services/featuremgmt/toggles_gen.json +++ b/pkg/services/featuremgmt/toggles_gen.json @@ -3243,6 +3243,25 @@ "hideFromDocs": true } }, + { + "metadata": { + "name": "unifiedStorageSearchAfterWriteExperimentalAPI", + "resourceVersion": "1755089543487", + "creationTimestamp": "2025-08-13T12:35:14Z", + "annotations": { + "grafana.app/updatedTimestamp": "2025-08-13 12:52:23.487521 +0000 UTC" + } + }, + "spec": { + "description": "Enable experimental search-after-write guarantees to unified-storage search endpoints", + "stage": "experimental", + "codeowner": "@grafana/search-and-storage", + "requiresRestart": true, + "hideFromAdminPage": true, + "hideFromDocs": true, + "expression": "false" + } + }, { "metadata": { "name": "unifiedStorageSearchDualReaderEnabled",