Provisioning: Enable search when provisioning is enabled (#103208)

This commit is contained in:
Ryan McKinley
2025-04-02 11:20:28 +03:00
committed by GitHub
parent aea7f87732
commit 6781612335
4 changed files with 3 additions and 4 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ import (
func NewSearchOptions(features featuremgmt.FeatureToggles, cfg *setting.Cfg, tracer tracing.Tracer, docs resource.DocumentBuilderSupplier, indexMetrics *resource.BleveIndexMetrics) (resource.SearchOptions, error) {
// Setup the search server
if features.IsEnabledGlobally(featuremgmt.FlagUnifiedStorageSearch) {
if features.IsEnabledGlobally(featuremgmt.FlagUnifiedStorageSearch) ||
features.IsEnabledGlobally(featuremgmt.FlagProvisioning) {
root := cfg.IndexPath
if root == "" {
root = filepath.Join(cfg.DataPath, "unified-search", "bleve")
@@ -201,7 +201,6 @@ func runGrafana(t *testing.T, options ...grafanaOption) *provisioningTestHelper
AppModeProduction: false, // required for experimental APIs
EnableFeatureToggles: []string{
featuremgmt.FlagProvisioning,
featuremgmt.FlagUnifiedStorageSearch,
featuremgmt.FlagKubernetesClientDashboardsFolders,
},
UnifiedStorageConfig: map[string]setting.UnifiedStorageConfig{
@@ -5,7 +5,6 @@ export const requiredFeatureToggles: Array<keyof FeatureToggles> = [
'provisioning',
'kubernetesDashboards',
'kubernetesClientDashboardsFolders',
'unifiedStorageSearch',
];
/**
@@ -82,7 +82,7 @@ export class UnthemedQueryEditor extends PureComponent<Props, State> {
description: 'Search for grafana resources',
});
}
if (config.featureToggles.unifiedStorageSearch) {
if (config.featureToggles.unifiedStorageSearchUI) {
this.queryTypes.push({
label: 'Search (experimental)',
value: GrafanaQueryType.SearchNext,