mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
## Summary - Closes https://github.com/elastic/kibana/issues/166854 by disabling the Observability Log Explorer plugin in the es and security serverless projects. - Closes https://github.com/elastic/kibana/issues/166912 by expanding results with `keywords`. --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
40 lines
1.1 KiB
TypeScript
40 lines
1.1 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 { schema, offeringBasedSchema } from '@kbn/config-schema';
|
|
import { PluginConfigDescriptor } from '@kbn/core/server';
|
|
import { ObservabilityLogExplorerConfig } from '../common/plugin_config';
|
|
|
|
export const configSchema = schema.object({
|
|
enabled: schema.boolean({ defaultValue: true }),
|
|
navigation: schema.object({
|
|
showAppLink: offeringBasedSchema({
|
|
serverless: schema.boolean({
|
|
defaultValue: true,
|
|
}),
|
|
options: {
|
|
defaultValue: false,
|
|
},
|
|
}),
|
|
}),
|
|
});
|
|
|
|
export const config: PluginConfigDescriptor<ObservabilityLogExplorerConfig> = {
|
|
schema: configSchema,
|
|
deprecations: ({ renameFromRoot }) => [
|
|
renameFromRoot(
|
|
'xpack.discoverLogExplorer.featureFlags.deepLinkVisible',
|
|
'xpack.observabilityLogExplorer.navigation.showAppLink',
|
|
{ level: 'warning' }
|
|
),
|
|
],
|
|
exposeToBrowser: {
|
|
navigation: {
|
|
showAppLink: true,
|
|
},
|
|
},
|
|
};
|