Skip to content

Commit

Permalink
[8.11] Add unused AI Assistant feature flags to unusedFromRoot (elast…
Browse files Browse the repository at this point in the history
…ic#169626) (elastic#169643)

# Backport

This will backport the following commits from `main` to `8.11`:
- [Add unused AI Assistant feature flags to unusedFromRoot
(elastic#169626)](elastic#169626)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Coen
Warmer","email":"coen.warmer@gmail.com"},"sourceCommit":{"committedDate":"2023-10-24T12:06:01Z","message":"Add
unused AI Assistant feature flags to unusedFromRoot (elastic#169626)\n\n##
Summary\r\n\r\nThe following feature flags for the Observability AI
Assistant are no\r\nlonger used:\r\n\r\n*
`xpack.observability.aiAssistant.enabled`\r\n*
`xpack.observability.aiAssistant.provider.azureOpenAI.deploymentId`\r\n*
`xpack.observability.aiAssistant.provider.azureOpenAI.resourceName`\r\n*
`xpack.observability.aiAssistant.provider.azureOpenAI.apiKey`\r\n*
`xpack.observability.aiAssistant.provider.openAI.apiKey`\r\n*
`xpack.observability.aiAssistant.provider.openAI.model`\r\n\r\nHaving
them configured in Kibana config will trigger a warning in
the\r\nconsole.","sha":"e027f7ab730a0c032558099200ddac8e86e8cd9a","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v8.11.0","v8.12.0","v8.11.1","v8.10.5"],"number":169626,"url":"https://github.com/elastic/kibana/pull/169626","mergeCommit":{"message":"Add
unused AI Assistant feature flags to unusedFromRoot (elastic#169626)\n\n##
Summary\r\n\r\nThe following feature flags for the Observability AI
Assistant are no\r\nlonger used:\r\n\r\n*
`xpack.observability.aiAssistant.enabled`\r\n*
`xpack.observability.aiAssistant.provider.azureOpenAI.deploymentId`\r\n*
`xpack.observability.aiAssistant.provider.azureOpenAI.resourceName`\r\n*
`xpack.observability.aiAssistant.provider.azureOpenAI.apiKey`\r\n*
`xpack.observability.aiAssistant.provider.openAI.apiKey`\r\n*
`xpack.observability.aiAssistant.provider.openAI.model`\r\n\r\nHaving
them configured in Kibana config will trigger a warning in
the\r\nconsole.","sha":"e027f7ab730a0c032558099200ddac8e86e8cd9a"}},"sourceBranch":"main","suggestedTargetBranches":["8.11","8.10"],"targetPullRequestStates":[{"branch":"8.11","label":"v8.11.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/169626","number":169626,"mergeCommit":{"message":"Add
unused AI Assistant feature flags to unusedFromRoot (elastic#169626)\n\n##
Summary\r\n\r\nThe following feature flags for the Observability AI
Assistant are no\r\nlonger used:\r\n\r\n*
`xpack.observability.aiAssistant.enabled`\r\n*
`xpack.observability.aiAssistant.provider.azureOpenAI.deploymentId`\r\n*
`xpack.observability.aiAssistant.provider.azureOpenAI.resourceName`\r\n*
`xpack.observability.aiAssistant.provider.azureOpenAI.apiKey`\r\n*
`xpack.observability.aiAssistant.provider.openAI.apiKey`\r\n*
`xpack.observability.aiAssistant.provider.openAI.model`\r\n\r\nHaving
them configured in Kibana config will trigger a warning in
the\r\nconsole.","sha":"e027f7ab730a0c032558099200ddac8e86e8cd9a"}},{"branch":"8.10","label":"v8.10.5","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Coen Warmer <coen.warmer@gmail.com>
  • Loading branch information
kibanamachine and CoenWarmer authored Oct 24, 2023
1 parent 9e4577f commit 5329488
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions x-pack/plugins/observability_ai_assistant/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,26 @@ export type { ObservabilityAIAssistantServerRouteRepository } from './routes/get
import { config as configSchema } from './config';

export const config: PluginConfigDescriptor<ObservabilityAIAssistantConfig> = {
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,
};
Expand Down

0 comments on commit 5329488

Please sign in to comment.