mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
## Summary Closes #142514 #142389 This PR does the following: - Enables to create `esQuery` (in KQL or Lucene mode) using adhoc data views from discover and management pages - Adds `explore matching indices` button to data view picker in alert flyout - Adding adhoc data views from alert flyout should propage them to a main discover picker ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [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] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [x] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US)) - [x] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) Co-authored-by: Davis McPhee <davis.mcphee@elastic.co>
37 lines
1.4 KiB
TypeScript
37 lines
1.4 KiB
TypeScript
/*
|
|
* 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 { get } from 'lodash';
|
|
import { schema, TypeOf } from '@kbn/config-schema';
|
|
import { PluginConfigDescriptor, PluginInitializerContext } from '@kbn/core/server';
|
|
import { AlertingBuiltinsPlugin } from './plugin';
|
|
export { ID as INDEX_THRESHOLD_ID } from './rule_types/index_threshold/rule_type';
|
|
|
|
export const configSchema = schema.object({});
|
|
|
|
export type Config = TypeOf<typeof configSchema>;
|
|
|
|
export const config: PluginConfigDescriptor<Config> = {
|
|
exposeToBrowser: {},
|
|
schema: configSchema,
|
|
deprecations: () => [
|
|
(settings, fromPath, addDeprecation) => {
|
|
const stackAlerts = get(settings, fromPath);
|
|
if (stackAlerts?.enabled === false || stackAlerts?.enabled === true) {
|
|
addDeprecation({
|
|
level: 'critical',
|
|
configPath: 'xpack.stack_alerts.enabled',
|
|
message: `"xpack.stack_alerts.enabled" is deprecated. The ability to disable this plugin will be removed in 8.0.0.`,
|
|
correctiveActions: {
|
|
manualSteps: [`Remove "xpack.stack_alerts.enabled" from your kibana configs.`],
|
|
},
|
|
});
|
|
}
|
|
},
|
|
],
|
|
};
|
|
|
|
export const plugin = (ctx: PluginInitializerContext) => new AlertingBuiltinsPlugin(ctx);
|