Provisioning: Enable search when provisioning is enabled (#103208)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user