-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Search][Onboarding] Enable search indices & gate with a feature flag (…
…#195802) ## Summary This PR enables the `search_indices` plugin in serverless search. But then gates it with a UI settings feature flag until we are ready to ship the new onboarding experience to all users. ### Testing Locally you can add this to your `kibana.dev.yml` to enable the FF: ``` uiSettings.overrides.searchIndices:globalEmptyStateEnabled: true ``` Or you can enable the ui setting via Dev Tools and refresh the browser: ``` POST kbn:/internal/kibana/settings/searchIndices:globalEmptyStateEnabled {"value": true} ``` ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Jean-Louis Leysens <[email protected]>
- Loading branch information
1 parent
ac2a5d2
commit 8577d13
Showing
6 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { IUiSettingsClient } from '@kbn/core/public'; | ||
import { GLOBAL_EMPTY_STATE_FEATURE_FLAG_ID } from '../common'; | ||
|
||
export function isGlobalEmptyStateEnabled(uiSettings: IUiSettingsClient): boolean { | ||
return uiSettings.get<boolean>(GLOBAL_EMPTY_STATE_FEATURE_FLAG_ID, false); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters