[Search] Fix notebooks config path (#210538)

## Summary

This updates the Search notebooks config path to fix a config conflict,
now that the main search plugin owns `xpack.search`. This config should
only have been used in Serverless and was never pushed to other users,
but I've added a rename and deprecation warning just in case anyone used
it..
This commit is contained in:
Sander Philipse 2025-02-11 14:14:19 +01:00 committed by GitHub
parent 9545d6b127
commit 633fad00f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 5 deletions

View file

@ -113,7 +113,7 @@ xpack.ml.compatibleModuleType: 'search'
data_visualizer.resultLinks.fileBeat.enabled: false
# Search Notebooks
xpack.search.notebooks.catalog.url: https://elastic-enterprise-search.s3.us-east-2.amazonaws.com/serverless/catalog.json
xpack.searchNotebooks.catalog.url: https://elastic-enterprise-search.s3.us-east-2.amazonaws.com/serverless/catalog.json
# Semantic text UI

View file

@ -6,7 +6,7 @@ xpack.cloudSecurityPosture.enabled: false
xpack.infra.enabled: true
xpack.uptime.enabled: true
xpack.securitySolution.enabled: false
xpack.search.notebooks.enabled: false
xpack.searchNotebooks.enabled: false
xpack.searchPlayground.enabled: false
xpack.searchInferenceEndpoints.enabled: false
xpack.searchIndices.enabled: false

View file

@ -7,7 +7,7 @@ xpack.infra.enabled: false
xpack.observabilityLogsExplorer.enabled: false
xpack.observability.enabled: false
xpack.observabilityAIAssistant.enabled: false
xpack.search.notebooks.enabled: false
xpack.searchNotebooks.enabled: false
xpack.searchPlayground.enabled: false
xpack.searchInferenceEndpoints.enabled: false
xpack.inventory.enabled: false

View file

@ -11,8 +11,7 @@
"browser": true,
"configPath": [
"xpack",
"search",
"notebooks"
"searchNotebooks"
],
"requiredPlugins": [
"console"

View file

@ -24,6 +24,9 @@ const configSchema = schema.object({
type SearchNotebooksSchema = TypeOf<typeof configSchema>;
export const config: PluginConfigDescriptor<SearchNotebooksSchema> = {
deprecations: ({ renameFromRoot }) => [
renameFromRoot('xpack.search.notebooks', 'xpack.searchNotebooks', { level: 'critical' }),
],
schema: configSchema,
};