From eb4b6b748461a305eed7e28a7175a37c9e98e907 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Tue, 24 Oct 2023 09:32:42 -0400 Subject: [PATCH] [8.10] Add unused AI Assistant feature flags to unusedFromRoot (#169626) (#169642) # Backport This will backport the following commits from `main` to `8.10`: - [Add unused AI Assistant feature flags to unusedFromRoot (#169626)](https://github.com/elastic/kibana/pull/169626) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Coen Warmer --- .../server/index.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/x-pack/plugins/observability_ai_assistant/server/index.ts b/x-pack/plugins/observability_ai_assistant/server/index.ts index 38a2caffca3e4..a6747758268b0 100644 --- a/x-pack/plugins/observability_ai_assistant/server/index.ts +++ b/x-pack/plugins/observability_ai_assistant/server/index.ts @@ -14,6 +14,26 @@ export type { ObservabilityAIAssistantServerRouteRepository } from './routes/get import { config as configSchema } from './config'; export const config: PluginConfigDescriptor = { + deprecations: ({ unusedFromRoot }) => [ + unusedFromRoot('xpack.observability.aiAssistant.enabled', { + level: 'warning', + }), + unusedFromRoot('xpack.observability.aiAssistant.provider.azureOpenAI.deploymentId', { + level: 'warning', + }), + unusedFromRoot('xpack.observability.aiAssistant.provider.azureOpenAI.resourceName', { + level: 'warning', + }), + unusedFromRoot('xpack.observability.aiAssistant.provider.azureOpenAI.apiKey', { + level: 'warning', + }), + unusedFromRoot('xpack.observability.aiAssistant.provider.openAI.apiKey', { + level: 'warning', + }), + unusedFromRoot('xpack.observability.aiAssistant.provider.openAI.model', { + level: 'warning', + }), + ], exposeToBrowser: {}, schema: configSchema, };