kibana/x-pack/plugins/observability_log_explorer/server/config.ts
Kerry Gallagher d7e88167fa
[Logs+] Improve observability log explorer global search behaviour (#167164)
## 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>
2023-09-27 12:01:36 +01:00

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,
},
},
};