Remove alerting feature flag from advanced settings (#97265)

* Remove alerting feature flag from advanced settings

Make it so the alerting UI in Observability can only be turned on and off in kibana.yml with `xpack.observability.enableAlertingExperience`.

We no longer:

* Allow turning this on and off for the current space in the advanced settings in Kibana
* Allow turning this on on cloud
* Send telemetry on whether or not the flag is enabled

Add some docs in READMEs as well.
This commit is contained in:
Nathan L Smith 2021-04-19 22:09:51 -05:00 committed by GitHub
parent 1fc1bcdb08
commit 042fa1a2ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 84 additions and 46 deletions

View file

@ -31,6 +31,8 @@ export const core = ({
},
} as unknown) as CoreStart;
const config = { unsafe: { alertingExperience: { enabled: true } } };
const plugins = ({
data: { query: { timefilter: { timefilter: { setTime: jest.fn() } } } },
} as unknown) as ObservabilityPublicPluginsStart;
@ -42,7 +44,7 @@ export const render = (component: React.ReactNode) => {
<IntlProvider locale="en-US" messages={translations.messages}>
<KibanaContextProvider services={{ ...core }}>
<PluginContext.Provider
value={{ appMountParameters, core, plugins, observabilityRuleRegistry }}
value={{ appMountParameters, config, core, plugins, observabilityRuleRegistry }}
>
<EuiThemeProvider>{component}</EuiThemeProvider>
</PluginContext.Provider>