Commit graph

1253 commits

Author SHA1 Message Date
Gerard Soldevila
24447a49e2
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/obs-ai-assistant (#202763) (#204032)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Move modules owned by
`@elastic/obs-ai-assistant`
(#202763)](https://github.com/elastic/kibana/pull/202763)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-12-12T10:35:10Z","message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/obs-ai-assistant`
(#202763)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> * This PR has been
auto-generated.\r\n> * Any manual contributions will be lost if the
'relocate' script is\r\nre-run.\r\n> * Try to obtain the missing reviews
/ approvals before applying manual\r\nfixes, and/or keep your changes in
a .patch / git stash.\r\n> * Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n#### 5 plugin(s) are going to be
relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n|
`@kbn/ai-assistant-management-plugin`
|\r\n`src/platform/plugins/shared/ai_assistant_management/selection`
|\r\n| `@kbn/data-usage-plugin`
|\r\n`x-pack/platform/plugins/private/data_usage` |\r\n|
`@kbn/observability-ai-assistant-app-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_ai_assistant_app`\r\n|\r\n|
`@kbn/observability-ai-assistant-management-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_ai_assistant_management`\r\n|\r\n|
`@kbn/observability-ai-assistant-plugin`
|\r\n`x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant`\r\n|\r\n\r\n\r\n\r\n\r\n####
2 packages(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/observability-ai-common`
|\r\n`x-pack/solutions/observability/packages/observability_ai/observability_ai_common`\r\n|\r\n|
`@kbn/observability-ai-server`
|\r\n`x-pack/solutions/observability/packages/observability_ai/observability_ai_server`\r\n|\r\n\r\n\r\n<details
>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.github/paths-labeller.yml\r\n./.i18nrc.json\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/plugins/shared/ai_assistant_management/selection/jest.config.js\r\n./src/platform/plugins/shared/discover/tsconfig.type_check.json\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/plugins/private/data_usage/jest.config.js\r\n./x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js\r\n./x-pack/plugins/enterprise_search/kibana.jsonc\r\n./x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/index.ts\r\n./x-pack/plugins/observability_solution/observability_ai_assistant_app/tsconfig.type_check.json\r\n./x-pack/plugins/search_connectors/kibana.jsonc\r\n./x-pack/solutions/observability/packages/observability_ai/observability_ai_common/jest.config.js\r\n./x-pack/solutions/observability/packages/observability_ai/observability_ai_server/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/README.md\r\n./x-pack/solutions/observability/plugins/observability_ai_assistant_management/jest.config.js\r\n./x-pack/test/tsconfig.type_check.json\r\n./x-pack/test_serverless/tsconfig.type_check.json\r\n./yarn.lock\r\n```\r\n\r\n</details><details
>\r\n<summary>Updated relative
paths</summary>\r\n\r\n```\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/jest.config.js:12\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.json:2\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:18\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:2\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:21\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:24\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:27\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:30\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:33\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:36\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:39\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:42\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:45\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:48\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:51\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:54\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:57\r\nx-pack/platform/plugins/private/data_usage/jest.config.js:10\r\nx-pack/platform/plugins/private/data_usage/tsconfig.json:11\r\nx-pack/platform/plugins/private/data_usage/tsconfig.json:2\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js:10\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.json:2\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.json:7\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:100\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:103\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:2\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:22\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:25\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:28\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:31\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:34\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:37\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:40\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:43\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:46\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:49\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:52\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:55\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:58\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:61\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:64\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:67\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:70\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:73\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:76\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:79\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:82\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:85\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:88\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:9\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:91\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:94\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:97\r\nx-pack/solutions/observability/packages/observability_ai/observability_ai_common/jest.config.js:10\r\nx-pack/solutions/observability/packages/observability_ai/observability_ai_common/tsconfig.json:2\r\nx-pack/solutions/observability/packages/observability_ai/observability_ai_server/jest.config.js:10\r\nx-pack/solutions/observability/packages/observability_ai/observability_ai_server/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js:10\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/read_kibana_config.ts:16\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:100\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:103\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:106\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:109\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:112\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:118\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:121\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:124\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:127\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:130\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:133\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:136\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:139\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:142\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:145\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:148\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:151\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:154\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:157\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:160\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:163\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:166\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:169\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:172\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:175\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:178\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:181\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:184\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:190\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:193\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:22\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:28\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:31\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:34\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:37\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:40\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:43\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:46\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:49\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:52\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:55\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:58\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:61\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:64\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:67\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:70\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:73\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:76\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:79\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:82\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:85\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:88\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:9\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:91\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:94\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:97\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/jest.config.js:10\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:18\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:21\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:24\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:27\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:30\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:33\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:36\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:39\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:45\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:48\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:51\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:54\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:60\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:63\r\n```\r\n\r\n</details>","sha":"84b19ec3eae0f0b13ad4c08e2927db811d39a263","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor","Team:Obs
AI
Assistant","ci:project-deploy-observability"],"number":202763,"url":"https://github.com/elastic/kibana/pull/202763","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/obs-ai-assistant`
(#202763)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> * This PR has been
auto-generated.\r\n> * Any manual contributions will be lost if the
'relocate' script is\r\nre-run.\r\n> * Try to obtain the missing reviews
/ approvals before applying manual\r\nfixes, and/or keep your changes in
a .patch / git stash.\r\n> * Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n#### 5 plugin(s) are going to be
relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n|
`@kbn/ai-assistant-management-plugin`
|\r\n`src/platform/plugins/shared/ai_assistant_management/selection`
|\r\n| `@kbn/data-usage-plugin`
|\r\n`x-pack/platform/plugins/private/data_usage` |\r\n|
`@kbn/observability-ai-assistant-app-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_ai_assistant_app`\r\n|\r\n|
`@kbn/observability-ai-assistant-management-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_ai_assistant_management`\r\n|\r\n|
`@kbn/observability-ai-assistant-plugin`
|\r\n`x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant`\r\n|\r\n\r\n\r\n\r\n\r\n####
2 packages(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/observability-ai-common`
|\r\n`x-pack/solutions/observability/packages/observability_ai/observability_ai_common`\r\n|\r\n|
`@kbn/observability-ai-server`
|\r\n`x-pack/solutions/observability/packages/observability_ai/observability_ai_server`\r\n|\r\n\r\n\r\n<details
>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.github/paths-labeller.yml\r\n./.i18nrc.json\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/plugins/shared/ai_assistant_management/selection/jest.config.js\r\n./src/platform/plugins/shared/discover/tsconfig.type_check.json\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/plugins/private/data_usage/jest.config.js\r\n./x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js\r\n./x-pack/plugins/enterprise_search/kibana.jsonc\r\n./x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/index.ts\r\n./x-pack/plugins/observability_solution/observability_ai_assistant_app/tsconfig.type_check.json\r\n./x-pack/plugins/search_connectors/kibana.jsonc\r\n./x-pack/solutions/observability/packages/observability_ai/observability_ai_common/jest.config.js\r\n./x-pack/solutions/observability/packages/observability_ai/observability_ai_server/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/README.md\r\n./x-pack/solutions/observability/plugins/observability_ai_assistant_management/jest.config.js\r\n./x-pack/test/tsconfig.type_check.json\r\n./x-pack/test_serverless/tsconfig.type_check.json\r\n./yarn.lock\r\n```\r\n\r\n</details><details
>\r\n<summary>Updated relative
paths</summary>\r\n\r\n```\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/jest.config.js:12\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.json:2\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:18\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:2\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:21\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:24\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:27\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:30\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:33\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:36\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:39\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:42\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:45\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:48\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:51\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:54\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:57\r\nx-pack/platform/plugins/private/data_usage/jest.config.js:10\r\nx-pack/platform/plugins/private/data_usage/tsconfig.json:11\r\nx-pack/platform/plugins/private/data_usage/tsconfig.json:2\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js:10\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.json:2\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.json:7\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:100\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:103\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:2\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:22\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:25\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:28\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:31\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:34\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:37\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:40\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:43\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:46\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:49\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:52\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:55\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:58\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:61\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:64\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:67\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:70\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:73\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:76\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:79\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:82\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:85\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:88\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:9\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:91\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:94\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:97\r\nx-pack/solutions/observability/packages/observability_ai/observability_ai_common/jest.config.js:10\r\nx-pack/solutions/observability/packages/observability_ai/observability_ai_common/tsconfig.json:2\r\nx-pack/solutions/observability/packages/observability_ai/observability_ai_server/jest.config.js:10\r\nx-pack/solutions/observability/packages/observability_ai/observability_ai_server/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js:10\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/read_kibana_config.ts:16\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:100\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:103\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:106\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:109\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:112\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:118\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:121\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:124\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:127\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:130\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:133\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:136\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:139\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:142\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:145\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:148\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:151\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:154\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:157\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:160\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:163\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:166\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:169\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:172\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:175\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:178\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:181\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:184\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:190\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:193\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:22\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:28\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:31\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:34\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:37\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:40\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:43\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:46\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:49\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:52\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:55\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:58\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:61\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:64\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:67\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:70\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:73\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:76\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:79\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:82\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:85\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:88\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:9\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:91\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:94\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:97\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/jest.config.js:10\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:18\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:21\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:24\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:27\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:30\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:33\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:36\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:39\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:45\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:48\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:51\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:54\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:60\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:63\r\n```\r\n\r\n</details>","sha":"84b19ec3eae0f0b13ad4c08e2927db811d39a263"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202763","number":202763,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/obs-ai-assistant`
(#202763)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> * This PR has been
auto-generated.\r\n> * Any manual contributions will be lost if the
'relocate' script is\r\nre-run.\r\n> * Try to obtain the missing reviews
/ approvals before applying manual\r\nfixes, and/or keep your changes in
a .patch / git stash.\r\n> * Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n#### 5 plugin(s) are going to be
relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n|
`@kbn/ai-assistant-management-plugin`
|\r\n`src/platform/plugins/shared/ai_assistant_management/selection`
|\r\n| `@kbn/data-usage-plugin`
|\r\n`x-pack/platform/plugins/private/data_usage` |\r\n|
`@kbn/observability-ai-assistant-app-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_ai_assistant_app`\r\n|\r\n|
`@kbn/observability-ai-assistant-management-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_ai_assistant_management`\r\n|\r\n|
`@kbn/observability-ai-assistant-plugin`
|\r\n`x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant`\r\n|\r\n\r\n\r\n\r\n\r\n####
2 packages(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/observability-ai-common`
|\r\n`x-pack/solutions/observability/packages/observability_ai/observability_ai_common`\r\n|\r\n|
`@kbn/observability-ai-server`
|\r\n`x-pack/solutions/observability/packages/observability_ai/observability_ai_server`\r\n|\r\n\r\n\r\n<details
>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.github/paths-labeller.yml\r\n./.i18nrc.json\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/plugins/shared/ai_assistant_management/selection/jest.config.js\r\n./src/platform/plugins/shared/discover/tsconfig.type_check.json\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/plugins/private/data_usage/jest.config.js\r\n./x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js\r\n./x-pack/plugins/enterprise_search/kibana.jsonc\r\n./x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/index.ts\r\n./x-pack/plugins/observability_solution/observability_ai_assistant_app/tsconfig.type_check.json\r\n./x-pack/plugins/search_connectors/kibana.jsonc\r\n./x-pack/solutions/observability/packages/observability_ai/observability_ai_common/jest.config.js\r\n./x-pack/solutions/observability/packages/observability_ai/observability_ai_server/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/README.md\r\n./x-pack/solutions/observability/plugins/observability_ai_assistant_management/jest.config.js\r\n./x-pack/test/tsconfig.type_check.json\r\n./x-pack/test_serverless/tsconfig.type_check.json\r\n./yarn.lock\r\n```\r\n\r\n</details><details
>\r\n<summary>Updated relative
paths</summary>\r\n\r\n```\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/jest.config.js:12\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.json:2\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:18\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:2\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:21\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:24\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:27\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:30\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:33\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:36\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:39\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:42\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:45\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:48\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:51\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:54\r\nsrc/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:57\r\nx-pack/platform/plugins/private/data_usage/jest.config.js:10\r\nx-pack/platform/plugins/private/data_usage/tsconfig.json:11\r\nx-pack/platform/plugins/private/data_usage/tsconfig.json:2\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js:10\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.json:2\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.json:7\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:100\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:103\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:2\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:22\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:25\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:28\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:31\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:34\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:37\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:40\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:43\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:46\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:49\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:52\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:55\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:58\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:61\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:64\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:67\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:70\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:73\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:76\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:79\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:82\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:85\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:88\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:9\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:91\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:94\r\nx-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:97\r\nx-pack/solutions/observability/packages/observability_ai/observability_ai_common/jest.config.js:10\r\nx-pack/solutions/observability/packages/observability_ai/observability_ai_common/tsconfig.json:2\r\nx-pack/solutions/observability/packages/observability_ai/observability_ai_server/jest.config.js:10\r\nx-pack/solutions/observability/packages/observability_ai/observability_ai_server/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js:10\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/read_kibana_config.ts:16\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:100\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:103\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:106\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:109\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:112\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:118\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:121\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:124\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:127\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:130\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:133\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:136\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:139\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:142\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:145\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:148\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:151\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:154\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:157\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:160\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:163\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:166\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:169\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:172\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:175\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:178\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:181\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:184\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:190\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:193\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:22\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:28\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:31\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:34\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:37\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:40\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:43\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:46\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:49\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:52\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:55\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:58\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:61\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:64\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:67\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:70\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:73\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:76\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:79\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:82\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:85\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:88\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:9\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:91\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:94\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:97\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/jest.config.js:10\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:18\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:2\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:21\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:24\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:27\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:30\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:33\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:36\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:39\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:45\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:48\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:51\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:54\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:60\r\nx-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:63\r\n```\r\n\r\n</details>","sha":"84b19ec3eae0f0b13ad4c08e2927db811d39a263"}}]}]
BACKPORT-->
2024-12-12 11:22:21 -06:00
Gerard Soldevila
1bad1ec5de
[8.x] Sustainable Kibana Architecture: Move modules under x-pack/packages/security-solution (#203522) (#204006)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Move modules under
`x-pack/packages/security-solution`
(#203522)](https://github.com/elastic/kibana/pull/203522)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-12-12T11:18:10Z","message":"Sustainable
Kibana Architecture: Move modules under
`x-pack/packages/security-solution` (#203522)\n\n## Summary\r\n\r\nThis
PR aims at relocating some of the Kibana modules (plugins
and\r\npackages) into a new folder structure, according to the
_Sustainable\r\nKibana Architecture_ initiative.\r\n\r\n>
[!IMPORTANT]\r\n> * We kindly ask you to:\r\n> * Manually fix the errors
in the error section below (if there are\r\nany).\r\n> * Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\r\nsource
code (Babel and Eslint config files), and update
them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n#### 7 package(s) are going to be
relocated:\r\n\r\n | Id | Target folder |\r\n | -- | -------------
|\r\n| `@kbn/ecs-data-quality-dashboard`
|\r\n`x-pack/solutions/security/packages/ecs_data_quality_dashboard`
|\r\n| `@kbn/security-solution-distribution-bar`
|\r\n`x-pack/solutions/security/packages/distribution_bar` |\r\n|
`@kbn/security-solution-features`
|\r\n`x-pack/solutions/security/packages/features` |\r\n|
`@kbn/security-solution-navigation`
|\r\n`x-pack/solutions/security/packages/navigation` |\r\n|
`@kbn/security-solution-side-nav`
|\r\n`x-pack/solutions/security/packages/side_nav` |\r\n|
`@kbn/security-solution-upselling`
|\r\n`x-pack/solutions/security/packages/upselling` |\r\n|
`@kbn/securitysolution-data-table`
|\r\n`x-pack/solutions/security/packages/data_table`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.eslintrc.js\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/solutions/security/packages/data_table/jest.config.js\r\n./x-pack/solutions/security/packages/distribution_bar/jest.config.js\r\n./x-pack/solutions/security/packages/ecs_data_quality_dashboard/jest.config.js\r\n./x-pack/solutions/security/packages/features/jest.config.js\r\n./x-pack/solutions/security/packages/navigation/jest.config.js\r\n./x-pack/solutions/security/packages/side_nav/jest.config.js\r\n./x-pack/solutions/security/packages/upselling/jest.config.js\r\n./x-pack/solutions/security/plugins/security_solution_serverless/tsconfig.type_check.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/solutions/security/packages/data_table/jest.config.js:11\r\nx-pack/solutions/security/packages/data_table/tsconfig.json:2\r\nx-pack/solutions/security/packages/distribution_bar/jest.config.js:11\r\nx-pack/solutions/security/packages/distribution_bar/tsconfig.json:2\r\nx-pack/solutions/security/packages/ecs_data_quality_dashboard/jest.config.js:21\r\nx-pack/solutions/security/packages/ecs_data_quality_dashboard/tsconfig.json:2\r\nx-pack/solutions/security/packages/features/jest.config.js:10\r\nx-pack/solutions/security/packages/features/tsconfig.json:2\r\nx-pack/solutions/security/packages/navigation/jest.config.js:10\r\nx-pack/solutions/security/packages/navigation/tsconfig.json:2\r\nx-pack/solutions/security/packages/side_nav/jest.config.js:10\r\nx-pack/solutions/security/packages/side_nav/src/solution_side_nav.stories.tsx:11\r\nx-pack/solutions/security/packages/side_nav/tsconfig.json:2\r\nx-pack/solutions/security/packages/upselling/jest.config.js:10\r\nx-pack/solutions/security/packages/upselling/tsconfig.json:2\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Angela Chuang <yi-chun.chuang@elastic.co>\r\nCo-authored-by: Karen
Grigoryan
<karen.grigoryan@elastic.co>","sha":"50068fd9bae6791594bd9d25cfef1f07d2b5ceab","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","Team:
SecuritySolution","backport:prev-minor"],"number":203522,"url":"https://github.com/elastic/kibana/pull/203522","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules under
`x-pack/packages/security-solution` (#203522)\n\n## Summary\r\n\r\nThis
PR aims at relocating some of the Kibana modules (plugins
and\r\npackages) into a new folder structure, according to the
_Sustainable\r\nKibana Architecture_ initiative.\r\n\r\n>
[!IMPORTANT]\r\n> * We kindly ask you to:\r\n> * Manually fix the errors
in the error section below (if there are\r\nany).\r\n> * Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\r\nsource
code (Babel and Eslint config files), and update
them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n#### 7 package(s) are going to be
relocated:\r\n\r\n | Id | Target folder |\r\n | -- | -------------
|\r\n| `@kbn/ecs-data-quality-dashboard`
|\r\n`x-pack/solutions/security/packages/ecs_data_quality_dashboard`
|\r\n| `@kbn/security-solution-distribution-bar`
|\r\n`x-pack/solutions/security/packages/distribution_bar` |\r\n|
`@kbn/security-solution-features`
|\r\n`x-pack/solutions/security/packages/features` |\r\n|
`@kbn/security-solution-navigation`
|\r\n`x-pack/solutions/security/packages/navigation` |\r\n|
`@kbn/security-solution-side-nav`
|\r\n`x-pack/solutions/security/packages/side_nav` |\r\n|
`@kbn/security-solution-upselling`
|\r\n`x-pack/solutions/security/packages/upselling` |\r\n|
`@kbn/securitysolution-data-table`
|\r\n`x-pack/solutions/security/packages/data_table`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.eslintrc.js\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/solutions/security/packages/data_table/jest.config.js\r\n./x-pack/solutions/security/packages/distribution_bar/jest.config.js\r\n./x-pack/solutions/security/packages/ecs_data_quality_dashboard/jest.config.js\r\n./x-pack/solutions/security/packages/features/jest.config.js\r\n./x-pack/solutions/security/packages/navigation/jest.config.js\r\n./x-pack/solutions/security/packages/side_nav/jest.config.js\r\n./x-pack/solutions/security/packages/upselling/jest.config.js\r\n./x-pack/solutions/security/plugins/security_solution_serverless/tsconfig.type_check.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/solutions/security/packages/data_table/jest.config.js:11\r\nx-pack/solutions/security/packages/data_table/tsconfig.json:2\r\nx-pack/solutions/security/packages/distribution_bar/jest.config.js:11\r\nx-pack/solutions/security/packages/distribution_bar/tsconfig.json:2\r\nx-pack/solutions/security/packages/ecs_data_quality_dashboard/jest.config.js:21\r\nx-pack/solutions/security/packages/ecs_data_quality_dashboard/tsconfig.json:2\r\nx-pack/solutions/security/packages/features/jest.config.js:10\r\nx-pack/solutions/security/packages/features/tsconfig.json:2\r\nx-pack/solutions/security/packages/navigation/jest.config.js:10\r\nx-pack/solutions/security/packages/navigation/tsconfig.json:2\r\nx-pack/solutions/security/packages/side_nav/jest.config.js:10\r\nx-pack/solutions/security/packages/side_nav/src/solution_side_nav.stories.tsx:11\r\nx-pack/solutions/security/packages/side_nav/tsconfig.json:2\r\nx-pack/solutions/security/packages/upselling/jest.config.js:10\r\nx-pack/solutions/security/packages/upselling/tsconfig.json:2\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Angela Chuang <yi-chun.chuang@elastic.co>\r\nCo-authored-by: Karen
Grigoryan
<karen.grigoryan@elastic.co>","sha":"50068fd9bae6791594bd9d25cfef1f07d2b5ceab"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203522","number":203522,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules under
`x-pack/packages/security-solution` (#203522)\n\n## Summary\r\n\r\nThis
PR aims at relocating some of the Kibana modules (plugins
and\r\npackages) into a new folder structure, according to the
_Sustainable\r\nKibana Architecture_ initiative.\r\n\r\n>
[!IMPORTANT]\r\n> * We kindly ask you to:\r\n> * Manually fix the errors
in the error section below (if there are\r\nany).\r\n> * Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\r\nsource
code (Babel and Eslint config files), and update
them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n#### 7 package(s) are going to be
relocated:\r\n\r\n | Id | Target folder |\r\n | -- | -------------
|\r\n| `@kbn/ecs-data-quality-dashboard`
|\r\n`x-pack/solutions/security/packages/ecs_data_quality_dashboard`
|\r\n| `@kbn/security-solution-distribution-bar`
|\r\n`x-pack/solutions/security/packages/distribution_bar` |\r\n|
`@kbn/security-solution-features`
|\r\n`x-pack/solutions/security/packages/features` |\r\n|
`@kbn/security-solution-navigation`
|\r\n`x-pack/solutions/security/packages/navigation` |\r\n|
`@kbn/security-solution-side-nav`
|\r\n`x-pack/solutions/security/packages/side_nav` |\r\n|
`@kbn/security-solution-upselling`
|\r\n`x-pack/solutions/security/packages/upselling` |\r\n|
`@kbn/securitysolution-data-table`
|\r\n`x-pack/solutions/security/packages/data_table`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.eslintrc.js\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/solutions/security/packages/data_table/jest.config.js\r\n./x-pack/solutions/security/packages/distribution_bar/jest.config.js\r\n./x-pack/solutions/security/packages/ecs_data_quality_dashboard/jest.config.js\r\n./x-pack/solutions/security/packages/features/jest.config.js\r\n./x-pack/solutions/security/packages/navigation/jest.config.js\r\n./x-pack/solutions/security/packages/side_nav/jest.config.js\r\n./x-pack/solutions/security/packages/upselling/jest.config.js\r\n./x-pack/solutions/security/plugins/security_solution_serverless/tsconfig.type_check.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/solutions/security/packages/data_table/jest.config.js:11\r\nx-pack/solutions/security/packages/data_table/tsconfig.json:2\r\nx-pack/solutions/security/packages/distribution_bar/jest.config.js:11\r\nx-pack/solutions/security/packages/distribution_bar/tsconfig.json:2\r\nx-pack/solutions/security/packages/ecs_data_quality_dashboard/jest.config.js:21\r\nx-pack/solutions/security/packages/ecs_data_quality_dashboard/tsconfig.json:2\r\nx-pack/solutions/security/packages/features/jest.config.js:10\r\nx-pack/solutions/security/packages/features/tsconfig.json:2\r\nx-pack/solutions/security/packages/navigation/jest.config.js:10\r\nx-pack/solutions/security/packages/navigation/tsconfig.json:2\r\nx-pack/solutions/security/packages/side_nav/jest.config.js:10\r\nx-pack/solutions/security/packages/side_nav/src/solution_side_nav.stories.tsx:11\r\nx-pack/solutions/security/packages/side_nav/tsconfig.json:2\r\nx-pack/solutions/security/packages/upselling/jest.config.js:10\r\nx-pack/solutions/security/packages/upselling/tsconfig.json:2\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Angela Chuang <yi-chun.chuang@elastic.co>\r\nCo-authored-by: Karen
Grigoryan
<karen.grigoryan@elastic.co>","sha":"50068fd9bae6791594bd9d25cfef1f07d2b5ceab"}}]}]
BACKPORT-->
2024-12-12 09:25:16 -06:00
Kibana Machine
8dcbb64d73
[8.x] [Data Usage] functional tests (#203166) (#204019)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Data Usage] functional tests
(#203166)](https://github.com/elastic/kibana/pull/203166)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Sandra
G","email":"neptunian@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-12-12T13:08:08Z","message":"[Data
Usage] functional tests (#203166)\n\n## Summary\r\n\r\nFunctional tests
for data usage UI.\r\n\r\n- `data_streams` route is intercepted, due to
filtering out zero size\r\ndata streams which will happen because
metering api needs time to\r\naggregate data\r\n- `autoops_api` is using
the mock server as there will be no data for it\r\nto return\r\n- tests
will only run in local serverless and not MKI due to using
the\r\nautoops mock server that won't return data for created data
streams\r\n- adds `interceptRequest` functionality to FTR `browser`
service\r\n\r\n## Tests\r\n- data stream filter dropdown renders with
created data streams of\r\n`data_streams` response and are checked\r\n-
data stream filter dropdown renders badge with correct number
of\r\nselected data streams\r\n- charts render from `data_streams` route
response\r\n- chart legends render with correct items\r\n- popover
renders for legend items\r\n- links in popovers correctly navigate and
update navigation between\r\ndifferent data stream
items","sha":"ba945c98510dc6de460b297beaa55e980456fc30","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Data
Usage] functional
tests","number":203166,"url":"https://github.com/elastic/kibana/pull/203166","mergeCommit":{"message":"[Data
Usage] functional tests (#203166)\n\n## Summary\r\n\r\nFunctional tests
for data usage UI.\r\n\r\n- `data_streams` route is intercepted, due to
filtering out zero size\r\ndata streams which will happen because
metering api needs time to\r\naggregate data\r\n- `autoops_api` is using
the mock server as there will be no data for it\r\nto return\r\n- tests
will only run in local serverless and not MKI due to using
the\r\nautoops mock server that won't return data for created data
streams\r\n- adds `interceptRequest` functionality to FTR `browser`
service\r\n\r\n## Tests\r\n- data stream filter dropdown renders with
created data streams of\r\n`data_streams` response and are checked\r\n-
data stream filter dropdown renders badge with correct number
of\r\nselected data streams\r\n- charts render from `data_streams` route
response\r\n- chart legends render with correct items\r\n- popover
renders for legend items\r\n- links in popovers correctly navigate and
update navigation between\r\ndifferent data stream
items","sha":"ba945c98510dc6de460b297beaa55e980456fc30"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203166","number":203166,"mergeCommit":{"message":"[Data
Usage] functional tests (#203166)\n\n## Summary\r\n\r\nFunctional tests
for data usage UI.\r\n\r\n- `data_streams` route is intercepted, due to
filtering out zero size\r\ndata streams which will happen because
metering api needs time to\r\naggregate data\r\n- `autoops_api` is using
the mock server as there will be no data for it\r\nto return\r\n- tests
will only run in local serverless and not MKI due to using
the\r\nautoops mock server that won't return data for created data
streams\r\n- adds `interceptRequest` functionality to FTR `browser`
service\r\n\r\n## Tests\r\n- data stream filter dropdown renders with
created data streams of\r\n`data_streams` response and are checked\r\n-
data stream filter dropdown renders badge with correct number
of\r\nselected data streams\r\n- charts render from `data_streams` route
response\r\n- chart legends render with correct items\r\n- popover
renders for legend items\r\n- links in popovers correctly navigate and
update navigation between\r\ndifferent data stream
items","sha":"ba945c98510dc6de460b297beaa55e980456fc30"}}]}] BACKPORT-->

Co-authored-by: Sandra G <neptunian@users.noreply.github.com>
2024-12-12 09:07:51 -06:00
Dario Gieselaar
b3ba62a972
[8.x] [RCA] AI-assisted root cause analysis (#197200) (#203767)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[RCA] AI-assisted root cause analysis
(#197200)](https://github.com/elastic/kibana/pull/197200)

<!--- Backport version: 7.3.2 -->

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

<!--BACKPORT {commits} BACKPORT-->
2024-12-12 09:00:12 -05:00
Gerard Soldevila
35488c3f6a
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/security-asset-management (#202839) (#203819)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Move modules owned by
`@elastic/security-asset-management`
(#202839)](https://github.com/elastic/kibana/pull/202839)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-12-10T10:06:05Z","message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/security-asset-management` (#202839)\n\n## Summary\r\n\r\nThis
PR aims at relocating some of the Kibana modules (plugins
and\r\npackages) into a new folder structure, according to the
_Sustainable\r\nKibana Architecture_ initiative.\r\n\r\n>
[!IMPORTANT]\r\n> * We kindly ask you to:\r\n> * Manually fix the errors
in the error section below (if there are\r\nany).\r\n> * Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\r\nsource
code (Babel and Eslint config files), and update
them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n#### 1 package(s) are going to be
relocated:\r\n\r\n | Id | Target folder |\r\n | -- | -------------
|\r\n| `@kbn/osquery-io-ts-types`
|\r\n`src/platform/packages/shared/kbn-osquery-io-ts-types`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/platform/packages/shared/kbn-osquery-io-ts-types/jest.config.js\r\n./tsconfig.base.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/kbn-osquery-io-ts-types/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-osquery-io-ts-types/tsconfig.json:2\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>","sha":"11b27f3016b6a43731c32a1f750b8a8810f0df7e","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport
missing","v9.0.0","Team:Asset
Management","backport:prev-minor"],"number":202839,"url":"https://github.com/elastic/kibana/pull/202839","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/security-asset-management` (#202839)\n\n## Summary\r\n\r\nThis
PR aims at relocating some of the Kibana modules (plugins
and\r\npackages) into a new folder structure, according to the
_Sustainable\r\nKibana Architecture_ initiative.\r\n\r\n>
[!IMPORTANT]\r\n> * We kindly ask you to:\r\n> * Manually fix the errors
in the error section below (if there are\r\nany).\r\n> * Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\r\nsource
code (Babel and Eslint config files), and update
them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n#### 1 package(s) are going to be
relocated:\r\n\r\n | Id | Target folder |\r\n | -- | -------------
|\r\n| `@kbn/osquery-io-ts-types`
|\r\n`src/platform/packages/shared/kbn-osquery-io-ts-types`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/platform/packages/shared/kbn-osquery-io-ts-types/jest.config.js\r\n./tsconfig.base.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/kbn-osquery-io-ts-types/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-osquery-io-ts-types/tsconfig.json:2\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>","sha":"11b27f3016b6a43731c32a1f750b8a8810f0df7e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202839","number":202839,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/security-asset-management` (#202839)\n\n## Summary\r\n\r\nThis
PR aims at relocating some of the Kibana modules (plugins
and\r\npackages) into a new folder structure, according to the
_Sustainable\r\nKibana Architecture_ initiative.\r\n\r\n>
[!IMPORTANT]\r\n> * We kindly ask you to:\r\n> * Manually fix the errors
in the error section below (if there are\r\nany).\r\n> * Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\r\nsource
code (Babel and Eslint config files), and update
them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n#### 1 package(s) are going to be
relocated:\r\n\r\n | Id | Target folder |\r\n | -- | -------------
|\r\n| `@kbn/osquery-io-ts-types`
|\r\n`src/platform/packages/shared/kbn-osquery-io-ts-types`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/platform/packages/shared/kbn-osquery-io-ts-types/jest.config.js\r\n./tsconfig.base.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/kbn-osquery-io-ts-types/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-osquery-io-ts-types/tsconfig.json:2\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>","sha":"11b27f3016b6a43731c32a1f750b8a8810f0df7e"}}]}]
BACKPORT-->
2024-12-11 11:06:49 -06:00
Kibana Machine
5a6fcab5a3
[8.x] Make link to es deprecation logs more useful (#203487) (#203785)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Make link to es deprecation logs more useful
(#203487)](https://github.com/elastic/kibana/pull/203487)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Jesus
Wahrman","email":"41008968+jesuswr@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-12-11T12:40:27Z","message":"Make
link to es deprecation logs more useful (#203487)\n\n##
Summary\r\n\r\nresolves
https://github.com/elastic/kibana/issues/201538\r\n\r\nAdded a profile
to the deprecation logs so by default it shows the\r\ncolumns. Decided
to allow this behaviour if the pattern contains\r\nmultiple patterns for
deprecation logs like:\r\n`.logs-deprecation.abc,.logs-deprecation.def`
, this can be easily\r\nchanged if we prefer not to do it this
way.\r\n\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"c423e3e9d3bd61041d4e10e72cef01ea663ca5bf","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","Team:DataDiscovery","backport:prev-minor"],"title":"Make
link to es deprecation logs more
useful","number":203487,"url":"https://github.com/elastic/kibana/pull/203487","mergeCommit":{"message":"Make
link to es deprecation logs more useful (#203487)\n\n##
Summary\r\n\r\nresolves
https://github.com/elastic/kibana/issues/201538\r\n\r\nAdded a profile
to the deprecation logs so by default it shows the\r\ncolumns. Decided
to allow this behaviour if the pattern contains\r\nmultiple patterns for
deprecation logs like:\r\n`.logs-deprecation.abc,.logs-deprecation.def`
, this can be easily\r\nchanged if we prefer not to do it this
way.\r\n\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"c423e3e9d3bd61041d4e10e72cef01ea663ca5bf"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203487","number":203487,"mergeCommit":{"message":"Make
link to es deprecation logs more useful (#203487)\n\n##
Summary\r\n\r\nresolves
https://github.com/elastic/kibana/issues/201538\r\n\r\nAdded a profile
to the deprecation logs so by default it shows the\r\ncolumns. Decided
to allow this behaviour if the pattern contains\r\nmultiple patterns for
deprecation logs like:\r\n`.logs-deprecation.abc,.logs-deprecation.def`
, this can be easily\r\nchanged if we prefer not to do it this
way.\r\n\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"c423e3e9d3bd61041d4e10e72cef01ea663ca5bf"}}]}]
BACKPORT-->

Co-authored-by: Jesus Wahrman <41008968+jesuswr@users.noreply.github.com>
2024-12-11 08:36:48 -06:00
Joe Reuter
b4e83ba8bc
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/streams-program-team (#203731)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Move modules owned by
@elastic/streams-program-team](https://github.com/elastic/kibana/pull/203180)

Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co>
2024-12-11 11:24:32 +00:00
Gerard Soldevila
a139ae940d
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-localization (#202725) (#203564)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Move modules owned by
`@elastic/kibana-localization`
(#202725)](https://github.com/elastic/kibana/pull/202725)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-12-10T12:56:15Z","message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/kibana-localization` (#202725)\n\n## Summary\r\n\r\nThis PR
aims at relocating some of the Kibana modules (plugins and\r\npackages)
into a new folder structure, according to the _Sustainable\r\nKibana
Architecture_ initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you
to:\r\n> * Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 1 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/translations-plugin`
|\r\n`x-pack/platform/plugins/private/translations`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-synthetic-package-map/synthetic-packages.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/i18n_tools/README.md\r\n./tsconfig.base.json\r\n./tsconfig.refs.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/platform/plugins/private/translations/tsconfig.json:2\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>","sha":"c609daa97c2b0aa94aebc3fce76c9439e8a4d95c","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor"],"number":202725,"url":"https://github.com/elastic/kibana/pull/202725","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/kibana-localization` (#202725)\n\n## Summary\r\n\r\nThis PR
aims at relocating some of the Kibana modules (plugins and\r\npackages)
into a new folder structure, according to the _Sustainable\r\nKibana
Architecture_ initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you
to:\r\n> * Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 1 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/translations-plugin`
|\r\n`x-pack/platform/plugins/private/translations`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-synthetic-package-map/synthetic-packages.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/i18n_tools/README.md\r\n./tsconfig.base.json\r\n./tsconfig.refs.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/platform/plugins/private/translations/tsconfig.json:2\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>","sha":"c609daa97c2b0aa94aebc3fce76c9439e8a4d95c"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202725","number":202725,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/kibana-localization` (#202725)\n\n## Summary\r\n\r\nThis PR
aims at relocating some of the Kibana modules (plugins and\r\npackages)
into a new folder structure, according to the _Sustainable\r\nKibana
Architecture_ initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you
to:\r\n> * Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 1 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/translations-plugin`
|\r\n`x-pack/platform/plugins/private/translations`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-synthetic-package-map/synthetic-packages.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/i18n_tools/README.md\r\n./tsconfig.base.json\r\n./tsconfig.refs.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/platform/plugins/private/translations/tsconfig.json:2\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>","sha":"c609daa97c2b0aa94aebc3fce76c9439e8a4d95c"}}]}]
BACKPORT-->
2024-12-10 08:56:39 -06:00
Gerard Soldevila
e2c0e91d10
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/appex-ai-infra (#202410) (#203541)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Move modules owned by
`@elastic/appex-ai-infra`
(#202410)](https://github.com/elastic/kibana/pull/202410)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-12-10T10:36:23Z","message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/appex-ai-infra`
(#202410)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 3 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/inference-plugin` |
`x-pack/platform/plugins/shared/inference` |\r\n|
`@kbn/llm-tasks-plugin`
|\r\n`x-pack/platform/plugins/shared/ai_infra/llm_tasks` |\r\n|
`@kbn/product-doc-base-plugin`
|\r\n`x-pack/platform/plugins/shared/ai_infra/product_doc_base`
|\r\n\r\n\r\n#### 2 package(s) are going to be relocated:\r\n\r\n | Id |
Target folder |\r\n | -- | ------------- |\r\n| `@kbn/inference-common`
|\r\n`x-pack/platform/packages/shared/ai-infra/inference-common` |\r\n|
`@kbn/product-doc-common`
|\r\n`x-pack/platform/packages/shared/ai-infra/product-doc-common`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./tsconfig.base.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js\r\n./x-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js\r\n./x-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js\r\n./x-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js\r\n./x-pack/platform/plugins/shared/inference/jest.config.js\r\n./x-pack/platform/plugins/shared/inference/scripts/evaluation/README.md\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js:10\r\nx-pack/platform/packages/shared/ai-infra/inference-common/tsconfig.json:2\r\nx-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js:10\r\nx-pack/platform/packages/shared/ai-infra/product-doc-common/tsconfig.json:2\r\nx-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js:10\r\nx-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json:2\r\nx-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json:7\r\nx-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js:10\r\nx-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json:2\r\nx-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json:7\r\nx-pack/platform/plugins/shared/inference/jest.config.js:10\r\nx-pack/platform/plugins/shared/inference/scripts/util/read_kibana_config.ts:16\r\nx-pack/platform/plugins/shared/inference/tsconfig.json:2\r\nx-pack/platform/plugins/shared/inference/tsconfig.json:7\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
pgayvallet
<pierre.gayvallet@elastic.co>","sha":"a0f5a7f3fc23d4ba241bc511ddd2987a679ec00d","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor","Team:AI
Infra","ci:all-gen-ai-suites"],"number":202410,"url":"https://github.com/elastic/kibana/pull/202410","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/appex-ai-infra`
(#202410)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 3 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/inference-plugin` |
`x-pack/platform/plugins/shared/inference` |\r\n|
`@kbn/llm-tasks-plugin`
|\r\n`x-pack/platform/plugins/shared/ai_infra/llm_tasks` |\r\n|
`@kbn/product-doc-base-plugin`
|\r\n`x-pack/platform/plugins/shared/ai_infra/product_doc_base`
|\r\n\r\n\r\n#### 2 package(s) are going to be relocated:\r\n\r\n | Id |
Target folder |\r\n | -- | ------------- |\r\n| `@kbn/inference-common`
|\r\n`x-pack/platform/packages/shared/ai-infra/inference-common` |\r\n|
`@kbn/product-doc-common`
|\r\n`x-pack/platform/packages/shared/ai-infra/product-doc-common`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./tsconfig.base.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js\r\n./x-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js\r\n./x-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js\r\n./x-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js\r\n./x-pack/platform/plugins/shared/inference/jest.config.js\r\n./x-pack/platform/plugins/shared/inference/scripts/evaluation/README.md\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js:10\r\nx-pack/platform/packages/shared/ai-infra/inference-common/tsconfig.json:2\r\nx-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js:10\r\nx-pack/platform/packages/shared/ai-infra/product-doc-common/tsconfig.json:2\r\nx-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js:10\r\nx-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json:2\r\nx-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json:7\r\nx-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js:10\r\nx-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json:2\r\nx-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json:7\r\nx-pack/platform/plugins/shared/inference/jest.config.js:10\r\nx-pack/platform/plugins/shared/inference/scripts/util/read_kibana_config.ts:16\r\nx-pack/platform/plugins/shared/inference/tsconfig.json:2\r\nx-pack/platform/plugins/shared/inference/tsconfig.json:7\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
pgayvallet
<pierre.gayvallet@elastic.co>","sha":"a0f5a7f3fc23d4ba241bc511ddd2987a679ec00d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202410","number":202410,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/appex-ai-infra`
(#202410)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 3 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/inference-plugin` |
`x-pack/platform/plugins/shared/inference` |\r\n|
`@kbn/llm-tasks-plugin`
|\r\n`x-pack/platform/plugins/shared/ai_infra/llm_tasks` |\r\n|
`@kbn/product-doc-base-plugin`
|\r\n`x-pack/platform/plugins/shared/ai_infra/product_doc_base`
|\r\n\r\n\r\n#### 2 package(s) are going to be relocated:\r\n\r\n | Id |
Target folder |\r\n | -- | ------------- |\r\n| `@kbn/inference-common`
|\r\n`x-pack/platform/packages/shared/ai-infra/inference-common` |\r\n|
`@kbn/product-doc-common`
|\r\n`x-pack/platform/packages/shared/ai-infra/product-doc-common`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./tsconfig.base.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js\r\n./x-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js\r\n./x-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js\r\n./x-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js\r\n./x-pack/platform/plugins/shared/inference/jest.config.js\r\n./x-pack/platform/plugins/shared/inference/scripts/evaluation/README.md\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js:10\r\nx-pack/platform/packages/shared/ai-infra/inference-common/tsconfig.json:2\r\nx-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js:10\r\nx-pack/platform/packages/shared/ai-infra/product-doc-common/tsconfig.json:2\r\nx-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js:10\r\nx-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json:2\r\nx-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json:7\r\nx-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js:10\r\nx-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json:2\r\nx-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json:7\r\nx-pack/platform/plugins/shared/inference/jest.config.js:10\r\nx-pack/platform/plugins/shared/inference/scripts/util/read_kibana_config.ts:16\r\nx-pack/platform/plugins/shared/inference/tsconfig.json:2\r\nx-pack/platform/plugins/shared/inference/tsconfig.json:7\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
pgayvallet
<pierre.gayvallet@elastic.co>","sha":"a0f5a7f3fc23d4ba241bc511ddd2987a679ec00d"}}]}]
BACKPORT-->
2024-12-10 14:07:01 +01:00
Walter Rafelsberger
39d7292748
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/ml-ui (#202764) (#203480)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Move modules owned by
`@elastic/ml-ui`
(#202764)](https://github.com/elastic/kibana/pull/202764)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-12-09T16:36:25Z","message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/ml-ui`
(#202764)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 4 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/aiops-plugin` | `x-pack/platform/plugins/shared/aiops`
|\r\n| `@kbn/data-visualizer-plugin`
|\r\n`x-pack/platform/plugins/private/data_visualizer` |\r\n|
`@kbn/ml-plugin` | `x-pack/platform/plugins/shared/ml` |\r\n|
`@kbn/transform-plugin` |
`x-pack/platform/plugins/private/transform`\r\n|\r\n\r\n\r\n#### 42
package(s) are going to be relocated:\r\n\r\n | Id | Target folder |\r\n
| -- | ------------- |\r\n| `@kbn/aiops-change-point-detection`
|\r\n`x-pack/platform/packages/private/ml/aiops_change_point_detection`
|\r\n| `@kbn/aiops-common`
|\r\n`x-pack/platform/packages/shared/ml/aiops_common` |\r\n|
`@kbn/aiops-components`
|\r\n`x-pack/platform/packages/private/ml/aiops_components` |\r\n|
`@kbn/aiops-log-pattern-analysis`
|\r\n`x-pack/platform/packages/shared/ml/aiops_log_pattern_analysis`
|\r\n| `@kbn/aiops-log-rate-analysis`
|\r\n`x-pack/platform/packages/shared/ml/aiops_log_rate_analysis` |\r\n|
`@kbn/aiops-test-utils`
|\r\n`x-pack/platform/packages/private/ml/aiops_test_utils` |\r\n|
`@kbn/deeplinks-ml` | `src/platform/packages/shared/deeplinks/ml` |\r\n|
`@kbn/default-nav-ml` |
`src/platform/packages/private/default-nav/ml`\r\n|\r\n|
`@kbn/inference_integration_flyout`
|\r\n`x-pack/platform/packages/private/ml/inference_integration_flyout`
|\r\n| `@kbn/json-schemas`
|\r\n`x-pack/platform/packages/private/ml/json_schemas` |\r\n|
`@kbn/ml-agg-utils` |
`x-pack/platform/packages/private/ml/agg_utils`\r\n|\r\n|
`@kbn/ml-anomaly-utils`
|\r\n`x-pack/platform/packages/shared/ml/anomaly_utils` |\r\n|
`@kbn/ml-cancellable-search`
|\r\n`x-pack/platform/packages/private/ml/cancellable_search` |\r\n|
`@kbn/ml-category-validator`
|\r\n`x-pack/platform/packages/private/ml/category_validator` |\r\n|
`@kbn/ml-chi2test` | `x-pack/platform/packages/shared/ml/chi2test`
|\r\n| `@kbn/ml-creation-wizard-utils`
|\r\n`x-pack/platform/packages/private/ml/creation_wizard_utils` |\r\n|
`@kbn/ml-data-frame-analytics-utils`
|\r\n`x-pack/platform/packages/private/ml/data_frame_analytics_utils`
|\r\n| `@kbn/ml-data-grid` |
`x-pack/platform/packages/private/ml/data_grid`\r\n|\r\n|
`@kbn/ml-data-view-utils`
|\r\n`x-pack/platform/packages/private/ml/data_view_utils` |\r\n|
`@kbn/ml-date-picker`
|\r\n`x-pack/platform/packages/private/ml/date_picker` |\r\n|
`@kbn/ml-date-utils`
|\r\n`x-pack/platform/packages/private/ml/date_utils` |\r\n|
`@kbn/ml-error-utils`
|\r\n`x-pack/platform/packages/shared/ml/error_utils` |\r\n|
`@kbn/ml-field-stats-flyout`
|\r\n`x-pack/platform/packages/private/ml/field_stats_flyout` |\r\n|
`@kbn/ml-in-memory-table`
|\r\n`x-pack/platform/packages/private/ml/in_memory_table` |\r\n|
`@kbn/ml-is-defined`
|\r\n`x-pack/platform/packages/private/ml/is_defined` |\r\n|
`@kbn/ml-is-populated-object`
|\r\n`x-pack/platform/packages/private/ml/is_populated_object` |\r\n|
`@kbn/ml-kibana-theme`
|\r\n`x-pack/platform/packages/private/ml/kibana_theme` |\r\n|
`@kbn/ml-local-storage`
|\r\n`x-pack/platform/packages/private/ml/local_storage` |\r\n|
`@kbn/ml-nested-property`
|\r\n`x-pack/platform/packages/private/ml/nested_property` |\r\n|
`@kbn/ml-number-utils`
|\r\n`x-pack/platform/packages/private/ml/number_utils` |\r\n|
`@kbn/ml-parse-interval`
|\r\n`x-pack/platform/packages/private/ml/parse_interval` |\r\n|
`@kbn/ml-query-utils`
|\r\n`x-pack/platform/packages/private/ml/query_utils` |\r\n|
`@kbn/ml-random-sampler-utils`
|\r\n`x-pack/platform/packages/shared/ml/random_sampler_utils` |\r\n|
`@kbn/ml-response-stream`
|\r\n`x-pack/platform/packages/shared/ml/response_stream` |\r\n|
`@kbn/ml-route-utils`
|\r\n`x-pack/platform/packages/private/ml/route_utils` |\r\n|
`@kbn/ml-runtime-field-utils`
|\r\n`x-pack/platform/packages/shared/ml/runtime_field_utils` |\r\n|
`@kbn/ml-string-hash`
|\r\n`x-pack/platform/packages/private/ml/string_hash` |\r\n|
`@kbn/ml-time-buckets`
|\r\n`x-pack/platform/packages/private/ml/time_buckets` |\r\n|
`@kbn/ml-trained-models-utils`
|\r\n`x-pack/platform/packages/shared/ml/trained_models_utils` |\r\n|
`@kbn/ml-ui-actions`
|\r\n`x-pack/platform/packages/private/ml/ui_actions` |\r\n|
`@kbn/ml-url-state` |
`x-pack/platform/packages/private/ml/url_state`\r\n|\r\n|
`@kbn/ml-validators`
|\r\n`x-pack/platform/packages/private/ml/validators`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.eslintrc.js\r\n./docs/developer/plugin-list.asciidoc\r\n./docs/redirects.asciidoc\r\n./oas_docs/scripts/merge_ess_oas.js\r\n./oas_docs/scripts/merge_serverless_oas.js\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-synthetic-package-map/synthetic-packages.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/platform/packages/private/default-nav/ml/jest.config.js\r\n./src/platform/packages/shared/deeplinks/ml/jest.config.js\r\n./tsconfig.base.json\r\n./tsconfig.refs.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/packages/security-solution/navigation/src/constants.ts\r\n./x-pack/platform/packages/private/ml/agg_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/aiops_change_point_detection/jest.config.js\r\n./x-pack/platform/packages/private/ml/aiops_components/jest.config.js\r\n./x-pack/platform/packages/private/ml/aiops_test_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/cancellable_search/jest.config.js\r\n./x-pack/platform/packages/private/ml/category_validator/jest.config.js\r\n./x-pack/platform/packages/private/ml/creation_wizard_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/data_frame_analytics_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/data_grid/jest.config.js\r\n./x-pack/platform/packages/private/ml/data_view_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/date_picker/jest.config.js\r\n./x-pack/platform/packages/private/ml/date_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/field_stats_flyout/jest.config.js\r\n./x-pack/platform/packages/private/ml/in_memory_table/jest.config.js\r\n./x-pack/platform/packages/private/ml/inference_integration_flyout/jest.config.js\r\n./x-pack/platform/packages/private/ml/is_defined/jest.config.js\r\n./x-pack/platform/packages/private/ml/is_populated_object/jest.config.js\r\n./x-pack/platform/packages/private/ml/json_schemas/jest.config.js\r\n./x-pack/platform/packages/private/ml/kibana_theme/jest.config.js\r\n./x-pack/platform/packages/private/ml/local_storage/jest.config.js\r\n./x-pack/platform/packages/private/ml/nested_property/jest.config.js\r\n./x-pack/platform/packages/private/ml/number_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/parse_interval/jest.config.js\r\n./x-pack/platform/packages/private/ml/query_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/route_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/string_hash/jest.config.js\r\n./x-pack/platform/packages/private/ml/time_buckets/jest.config.js\r\n./x-pack/platform/packages/private/ml/ui_actions/jest.config.js\r\n./x-pack/platform/packages/private/ml/url_state/jest.config.js\r\n./x-pack/platform/packages/private/ml/validators/jest.config.js\r\n./x-pack/platform/packages/shared/ml/aiops_common/jest.config.js\r\n./x-pack/platform/packages/shared/ml/aiops_log_pattern_analysis/jest.config.js\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/jest.config.js\r\n./x-pack/platform/packages/shared/ml/anomaly_utils/jest.config.js\r\n./x-pack/platform/packages/shared/ml/chi2test/jest.config.js\r\n./x-pack/platform/packages/shared/ml/error_utils/jest.config.js\r\n./x-pack/platform/packages/shared/ml/random_sampler_utils/jest.config.js\r\n./x-pack/platform/packages/shared/ml/response_stream/jest.config.js\r\n./x-pack/platform/packages/shared/ml/runtime_field_utils/jest.config.js\r\n./x-pack/platform/packages/shared/ml/trained_models_utils/jest.config.js\r\n./x-pack/platform/plugins/private/data_visualizer/jest.config.js\r\n./x-pack/platform/plugins/private/transform/jest.config.js\r\n./x-pack/platform/plugins/private/transform/readme.md\r\n./x-pack/platform/plugins/shared/aiops/README.md\r\n./x-pack/platform/plugins/shared/aiops/jest.config.js\r\n./x-pack/platform/plugins/shared/aiops/public/application/utils/build_extended_base_filter_criteria.ts\r\n./x-pack/platform/plugins/shared/aiops/public/application/utils/search_utils.ts\r\n./x-pack/platform/plugins/shared/ml/jest.config.js\r\n./x-pack/platform/plugins/shared/ml/readme.md\r\n./x-pack/plugins/aiops/README.md\r\n./x-pack/plugins/security_solution/common/machine_learning/affected_job_ids.ts\r\n./x-pack/plugins/security_solution/common/machine_learning/helpers.ts\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/private/default-nav/ml/jest.config.js:12\r\nsrc/platform/packages/private/default-nav/ml/tsconfig.json:2\r\nsrc/platform/packages/shared/deeplinks/ml/jest.config.js:12\r\nsrc/platform/packages/shared/deeplinks/ml/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/agg_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/agg_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/aiops_change_point_detection/jest.config.js:10\r\nx-pack/platform/packages/private/ml/aiops_change_point_detection/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/aiops_components/jest.config.js:10\r\nx-pack/platform/packages/private/ml/aiops_components/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/aiops_test_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/aiops_test_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/cancellable_search/jest.config.js:10\r\nx-pack/platform/packages/private/ml/cancellable_search/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/category_validator/jest.config.js:10\r\nx-pack/platform/packages/private/ml/category_validator/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/creation_wizard_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/creation_wizard_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/data_frame_analytics_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/data_frame_analytics_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/data_grid/jest.config.js:10\r\nx-pack/platform/packages/private/ml/data_grid/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/data_view_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/data_view_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/date_picker/jest.config.js:10\r\nx-pack/platform/packages/private/ml/date_picker/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/date_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/date_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/field_stats_flyout/jest.config.js:10\r\nx-pack/platform/packages/private/ml/field_stats_flyout/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/in_memory_table/jest.config.js:10\r\nx-pack/platform/packages/private/ml/in_memory_table/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/inference_integration_flyout/jest.config.js:10\r\nx-pack/platform/packages/private/ml/inference_integration_flyout/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/is_defined/jest.config.js:10\r\nx-pack/platform/packages/private/ml/is_defined/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/is_populated_object/jest.config.js:10\r\nx-pack/platform/packages/private/ml/is_populated_object/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/json_schemas/jest.config.js:10\r\nx-pack/platform/packages/private/ml/json_schemas/package.json:7\r\nx-pack/platform/packages/private/ml/json_schemas/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/kibana_theme/jest.config.js:10\r\nx-pack/platform/packages/private/ml/kibana_theme/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/local_storage/jest.config.js:10\r\nx-pack/platform/packages/private/ml/local_storage/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/nested_property/jest.config.js:10\r\nx-pack/platform/packages/private/ml/nested_property/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/number_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/number_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/parse_interval/jest.config.js:10\r\nx-pack/platform/packages/private/ml/parse_interval/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/query_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/query_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/route_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/route_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/string_hash/jest.config.js:10\r\nx-pack/platform/packages/private/ml/string_hash/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/time_buckets/jest.config.js:10\r\nx-pack/platform/packages/private/ml/time_buckets/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/ui_actions/jest.config.js:10\r\nx-pack/platform/packages/private/ml/ui_actions/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/url_state/jest.config.js:10\r\nx-pack/platform/packages/private/ml/url_state/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/validators/jest.config.js:10\r\nx-pack/platform/packages/private/ml/validators/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/aiops_common/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/aiops_common/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/aiops_log_pattern_analysis/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/aiops_log_pattern_analysis/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/aiops_log_rate_analysis/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/aiops_log_rate_analysis/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/anomaly_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/anomaly_utils/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/chi2test/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/chi2test/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/error_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/error_utils/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/random_sampler_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/random_sampler_utils/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/response_stream/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/response_stream/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/runtime_field_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/runtime_field_utils/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/trained_models_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/trained_models_utils/tsconfig.json:2\r\nx-pack/platform/plugins/private/data_visualizer/jest.config.js:10\r\nx-pack/platform/plugins/private/data_visualizer/tsconfig.json:2\r\nx-pack/platform/plugins/private/data_visualizer/tsconfig.json:7\r\nx-pack/platform/plugins/private/transform/jest.config.js:10\r\nx-pack/platform/plugins/private/transform/tsconfig.json:10\r\nx-pack/platform/plugins/private/transform/tsconfig.json:2\r\nx-pack/platform/plugins/shared/aiops/jest.config.js:10\r\nx-pack/platform/plugins/shared/aiops/tsconfig.json:2\r\nx-pack/platform/plugins/shared/aiops/tsconfig.json:7\r\nx-pack/platform/plugins/shared/ml/jest.config.js:10\r\nx-pack/platform/plugins/shared/ml/readme.md:186\r\nx-pack/platform/plugins/shared/ml/readme.md:192\r\nx-pack/platform/plugins/shared/ml/tsconfig.json:12\r\nx-pack/platform/plugins/shared/ml/tsconfig.json:2\r\nx-pack/platform/plugins/shared/ml/tsconfig.json:24\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Walter Rafelsberger
<walter.rafelsberger@elastic.co>","sha":"58b8b47928288d87c7c9d28368e110e2f3bb423d","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core",":ml","release_note:skip","v9.0.0","Team:ML","backport:prev-minor","backport:version","v8.18.0"],"number":202764,"url":"https://github.com/elastic/kibana/pull/202764","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/ml-ui`
(#202764)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 4 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/aiops-plugin` | `x-pack/platform/plugins/shared/aiops`
|\r\n| `@kbn/data-visualizer-plugin`
|\r\n`x-pack/platform/plugins/private/data_visualizer` |\r\n|
`@kbn/ml-plugin` | `x-pack/platform/plugins/shared/ml` |\r\n|
`@kbn/transform-plugin` |
`x-pack/platform/plugins/private/transform`\r\n|\r\n\r\n\r\n#### 42
package(s) are going to be relocated:\r\n\r\n | Id | Target folder |\r\n
| -- | ------------- |\r\n| `@kbn/aiops-change-point-detection`
|\r\n`x-pack/platform/packages/private/ml/aiops_change_point_detection`
|\r\n| `@kbn/aiops-common`
|\r\n`x-pack/platform/packages/shared/ml/aiops_common` |\r\n|
`@kbn/aiops-components`
|\r\n`x-pack/platform/packages/private/ml/aiops_components` |\r\n|
`@kbn/aiops-log-pattern-analysis`
|\r\n`x-pack/platform/packages/shared/ml/aiops_log_pattern_analysis`
|\r\n| `@kbn/aiops-log-rate-analysis`
|\r\n`x-pack/platform/packages/shared/ml/aiops_log_rate_analysis` |\r\n|
`@kbn/aiops-test-utils`
|\r\n`x-pack/platform/packages/private/ml/aiops_test_utils` |\r\n|
`@kbn/deeplinks-ml` | `src/platform/packages/shared/deeplinks/ml` |\r\n|
`@kbn/default-nav-ml` |
`src/platform/packages/private/default-nav/ml`\r\n|\r\n|
`@kbn/inference_integration_flyout`
|\r\n`x-pack/platform/packages/private/ml/inference_integration_flyout`
|\r\n| `@kbn/json-schemas`
|\r\n`x-pack/platform/packages/private/ml/json_schemas` |\r\n|
`@kbn/ml-agg-utils` |
`x-pack/platform/packages/private/ml/agg_utils`\r\n|\r\n|
`@kbn/ml-anomaly-utils`
|\r\n`x-pack/platform/packages/shared/ml/anomaly_utils` |\r\n|
`@kbn/ml-cancellable-search`
|\r\n`x-pack/platform/packages/private/ml/cancellable_search` |\r\n|
`@kbn/ml-category-validator`
|\r\n`x-pack/platform/packages/private/ml/category_validator` |\r\n|
`@kbn/ml-chi2test` | `x-pack/platform/packages/shared/ml/chi2test`
|\r\n| `@kbn/ml-creation-wizard-utils`
|\r\n`x-pack/platform/packages/private/ml/creation_wizard_utils` |\r\n|
`@kbn/ml-data-frame-analytics-utils`
|\r\n`x-pack/platform/packages/private/ml/data_frame_analytics_utils`
|\r\n| `@kbn/ml-data-grid` |
`x-pack/platform/packages/private/ml/data_grid`\r\n|\r\n|
`@kbn/ml-data-view-utils`
|\r\n`x-pack/platform/packages/private/ml/data_view_utils` |\r\n|
`@kbn/ml-date-picker`
|\r\n`x-pack/platform/packages/private/ml/date_picker` |\r\n|
`@kbn/ml-date-utils`
|\r\n`x-pack/platform/packages/private/ml/date_utils` |\r\n|
`@kbn/ml-error-utils`
|\r\n`x-pack/platform/packages/shared/ml/error_utils` |\r\n|
`@kbn/ml-field-stats-flyout`
|\r\n`x-pack/platform/packages/private/ml/field_stats_flyout` |\r\n|
`@kbn/ml-in-memory-table`
|\r\n`x-pack/platform/packages/private/ml/in_memory_table` |\r\n|
`@kbn/ml-is-defined`
|\r\n`x-pack/platform/packages/private/ml/is_defined` |\r\n|
`@kbn/ml-is-populated-object`
|\r\n`x-pack/platform/packages/private/ml/is_populated_object` |\r\n|
`@kbn/ml-kibana-theme`
|\r\n`x-pack/platform/packages/private/ml/kibana_theme` |\r\n|
`@kbn/ml-local-storage`
|\r\n`x-pack/platform/packages/private/ml/local_storage` |\r\n|
`@kbn/ml-nested-property`
|\r\n`x-pack/platform/packages/private/ml/nested_property` |\r\n|
`@kbn/ml-number-utils`
|\r\n`x-pack/platform/packages/private/ml/number_utils` |\r\n|
`@kbn/ml-parse-interval`
|\r\n`x-pack/platform/packages/private/ml/parse_interval` |\r\n|
`@kbn/ml-query-utils`
|\r\n`x-pack/platform/packages/private/ml/query_utils` |\r\n|
`@kbn/ml-random-sampler-utils`
|\r\n`x-pack/platform/packages/shared/ml/random_sampler_utils` |\r\n|
`@kbn/ml-response-stream`
|\r\n`x-pack/platform/packages/shared/ml/response_stream` |\r\n|
`@kbn/ml-route-utils`
|\r\n`x-pack/platform/packages/private/ml/route_utils` |\r\n|
`@kbn/ml-runtime-field-utils`
|\r\n`x-pack/platform/packages/shared/ml/runtime_field_utils` |\r\n|
`@kbn/ml-string-hash`
|\r\n`x-pack/platform/packages/private/ml/string_hash` |\r\n|
`@kbn/ml-time-buckets`
|\r\n`x-pack/platform/packages/private/ml/time_buckets` |\r\n|
`@kbn/ml-trained-models-utils`
|\r\n`x-pack/platform/packages/shared/ml/trained_models_utils` |\r\n|
`@kbn/ml-ui-actions`
|\r\n`x-pack/platform/packages/private/ml/ui_actions` |\r\n|
`@kbn/ml-url-state` |
`x-pack/platform/packages/private/ml/url_state`\r\n|\r\n|
`@kbn/ml-validators`
|\r\n`x-pack/platform/packages/private/ml/validators`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.eslintrc.js\r\n./docs/developer/plugin-list.asciidoc\r\n./docs/redirects.asciidoc\r\n./oas_docs/scripts/merge_ess_oas.js\r\n./oas_docs/scripts/merge_serverless_oas.js\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-synthetic-package-map/synthetic-packages.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/platform/packages/private/default-nav/ml/jest.config.js\r\n./src/platform/packages/shared/deeplinks/ml/jest.config.js\r\n./tsconfig.base.json\r\n./tsconfig.refs.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/packages/security-solution/navigation/src/constants.ts\r\n./x-pack/platform/packages/private/ml/agg_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/aiops_change_point_detection/jest.config.js\r\n./x-pack/platform/packages/private/ml/aiops_components/jest.config.js\r\n./x-pack/platform/packages/private/ml/aiops_test_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/cancellable_search/jest.config.js\r\n./x-pack/platform/packages/private/ml/category_validator/jest.config.js\r\n./x-pack/platform/packages/private/ml/creation_wizard_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/data_frame_analytics_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/data_grid/jest.config.js\r\n./x-pack/platform/packages/private/ml/data_view_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/date_picker/jest.config.js\r\n./x-pack/platform/packages/private/ml/date_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/field_stats_flyout/jest.config.js\r\n./x-pack/platform/packages/private/ml/in_memory_table/jest.config.js\r\n./x-pack/platform/packages/private/ml/inference_integration_flyout/jest.config.js\r\n./x-pack/platform/packages/private/ml/is_defined/jest.config.js\r\n./x-pack/platform/packages/private/ml/is_populated_object/jest.config.js\r\n./x-pack/platform/packages/private/ml/json_schemas/jest.config.js\r\n./x-pack/platform/packages/private/ml/kibana_theme/jest.config.js\r\n./x-pack/platform/packages/private/ml/local_storage/jest.config.js\r\n./x-pack/platform/packages/private/ml/nested_property/jest.config.js\r\n./x-pack/platform/packages/private/ml/number_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/parse_interval/jest.config.js\r\n./x-pack/platform/packages/private/ml/query_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/route_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/string_hash/jest.config.js\r\n./x-pack/platform/packages/private/ml/time_buckets/jest.config.js\r\n./x-pack/platform/packages/private/ml/ui_actions/jest.config.js\r\n./x-pack/platform/packages/private/ml/url_state/jest.config.js\r\n./x-pack/platform/packages/private/ml/validators/jest.config.js\r\n./x-pack/platform/packages/shared/ml/aiops_common/jest.config.js\r\n./x-pack/platform/packages/shared/ml/aiops_log_pattern_analysis/jest.config.js\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/jest.config.js\r\n./x-pack/platform/packages/shared/ml/anomaly_utils/jest.config.js\r\n./x-pack/platform/packages/shared/ml/chi2test/jest.config.js\r\n./x-pack/platform/packages/shared/ml/error_utils/jest.config.js\r\n./x-pack/platform/packages/shared/ml/random_sampler_utils/jest.config.js\r\n./x-pack/platform/packages/shared/ml/response_stream/jest.config.js\r\n./x-pack/platform/packages/shared/ml/runtime_field_utils/jest.config.js\r\n./x-pack/platform/packages/shared/ml/trained_models_utils/jest.config.js\r\n./x-pack/platform/plugins/private/data_visualizer/jest.config.js\r\n./x-pack/platform/plugins/private/transform/jest.config.js\r\n./x-pack/platform/plugins/private/transform/readme.md\r\n./x-pack/platform/plugins/shared/aiops/README.md\r\n./x-pack/platform/plugins/shared/aiops/jest.config.js\r\n./x-pack/platform/plugins/shared/aiops/public/application/utils/build_extended_base_filter_criteria.ts\r\n./x-pack/platform/plugins/shared/aiops/public/application/utils/search_utils.ts\r\n./x-pack/platform/plugins/shared/ml/jest.config.js\r\n./x-pack/platform/plugins/shared/ml/readme.md\r\n./x-pack/plugins/aiops/README.md\r\n./x-pack/plugins/security_solution/common/machine_learning/affected_job_ids.ts\r\n./x-pack/plugins/security_solution/common/machine_learning/helpers.ts\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/private/default-nav/ml/jest.config.js:12\r\nsrc/platform/packages/private/default-nav/ml/tsconfig.json:2\r\nsrc/platform/packages/shared/deeplinks/ml/jest.config.js:12\r\nsrc/platform/packages/shared/deeplinks/ml/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/agg_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/agg_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/aiops_change_point_detection/jest.config.js:10\r\nx-pack/platform/packages/private/ml/aiops_change_point_detection/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/aiops_components/jest.config.js:10\r\nx-pack/platform/packages/private/ml/aiops_components/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/aiops_test_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/aiops_test_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/cancellable_search/jest.config.js:10\r\nx-pack/platform/packages/private/ml/cancellable_search/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/category_validator/jest.config.js:10\r\nx-pack/platform/packages/private/ml/category_validator/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/creation_wizard_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/creation_wizard_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/data_frame_analytics_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/data_frame_analytics_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/data_grid/jest.config.js:10\r\nx-pack/platform/packages/private/ml/data_grid/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/data_view_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/data_view_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/date_picker/jest.config.js:10\r\nx-pack/platform/packages/private/ml/date_picker/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/date_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/date_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/field_stats_flyout/jest.config.js:10\r\nx-pack/platform/packages/private/ml/field_stats_flyout/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/in_memory_table/jest.config.js:10\r\nx-pack/platform/packages/private/ml/in_memory_table/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/inference_integration_flyout/jest.config.js:10\r\nx-pack/platform/packages/private/ml/inference_integration_flyout/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/is_defined/jest.config.js:10\r\nx-pack/platform/packages/private/ml/is_defined/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/is_populated_object/jest.config.js:10\r\nx-pack/platform/packages/private/ml/is_populated_object/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/json_schemas/jest.config.js:10\r\nx-pack/platform/packages/private/ml/json_schemas/package.json:7\r\nx-pack/platform/packages/private/ml/json_schemas/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/kibana_theme/jest.config.js:10\r\nx-pack/platform/packages/private/ml/kibana_theme/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/local_storage/jest.config.js:10\r\nx-pack/platform/packages/private/ml/local_storage/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/nested_property/jest.config.js:10\r\nx-pack/platform/packages/private/ml/nested_property/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/number_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/number_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/parse_interval/jest.config.js:10\r\nx-pack/platform/packages/private/ml/parse_interval/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/query_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/query_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/route_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/route_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/string_hash/jest.config.js:10\r\nx-pack/platform/packages/private/ml/string_hash/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/time_buckets/jest.config.js:10\r\nx-pack/platform/packages/private/ml/time_buckets/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/ui_actions/jest.config.js:10\r\nx-pack/platform/packages/private/ml/ui_actions/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/url_state/jest.config.js:10\r\nx-pack/platform/packages/private/ml/url_state/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/validators/jest.config.js:10\r\nx-pack/platform/packages/private/ml/validators/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/aiops_common/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/aiops_common/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/aiops_log_pattern_analysis/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/aiops_log_pattern_analysis/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/aiops_log_rate_analysis/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/aiops_log_rate_analysis/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/anomaly_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/anomaly_utils/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/chi2test/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/chi2test/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/error_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/error_utils/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/random_sampler_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/random_sampler_utils/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/response_stream/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/response_stream/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/runtime_field_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/runtime_field_utils/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/trained_models_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/trained_models_utils/tsconfig.json:2\r\nx-pack/platform/plugins/private/data_visualizer/jest.config.js:10\r\nx-pack/platform/plugins/private/data_visualizer/tsconfig.json:2\r\nx-pack/platform/plugins/private/data_visualizer/tsconfig.json:7\r\nx-pack/platform/plugins/private/transform/jest.config.js:10\r\nx-pack/platform/plugins/private/transform/tsconfig.json:10\r\nx-pack/platform/plugins/private/transform/tsconfig.json:2\r\nx-pack/platform/plugins/shared/aiops/jest.config.js:10\r\nx-pack/platform/plugins/shared/aiops/tsconfig.json:2\r\nx-pack/platform/plugins/shared/aiops/tsconfig.json:7\r\nx-pack/platform/plugins/shared/ml/jest.config.js:10\r\nx-pack/platform/plugins/shared/ml/readme.md:186\r\nx-pack/platform/plugins/shared/ml/readme.md:192\r\nx-pack/platform/plugins/shared/ml/tsconfig.json:12\r\nx-pack/platform/plugins/shared/ml/tsconfig.json:2\r\nx-pack/platform/plugins/shared/ml/tsconfig.json:24\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Walter Rafelsberger
<walter.rafelsberger@elastic.co>","sha":"58b8b47928288d87c7c9d28368e110e2f3bb423d"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202764","number":202764,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/ml-ui`
(#202764)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 4 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/aiops-plugin` | `x-pack/platform/plugins/shared/aiops`
|\r\n| `@kbn/data-visualizer-plugin`
|\r\n`x-pack/platform/plugins/private/data_visualizer` |\r\n|
`@kbn/ml-plugin` | `x-pack/platform/plugins/shared/ml` |\r\n|
`@kbn/transform-plugin` |
`x-pack/platform/plugins/private/transform`\r\n|\r\n\r\n\r\n#### 42
package(s) are going to be relocated:\r\n\r\n | Id | Target folder |\r\n
| -- | ------------- |\r\n| `@kbn/aiops-change-point-detection`
|\r\n`x-pack/platform/packages/private/ml/aiops_change_point_detection`
|\r\n| `@kbn/aiops-common`
|\r\n`x-pack/platform/packages/shared/ml/aiops_common` |\r\n|
`@kbn/aiops-components`
|\r\n`x-pack/platform/packages/private/ml/aiops_components` |\r\n|
`@kbn/aiops-log-pattern-analysis`
|\r\n`x-pack/platform/packages/shared/ml/aiops_log_pattern_analysis`
|\r\n| `@kbn/aiops-log-rate-analysis`
|\r\n`x-pack/platform/packages/shared/ml/aiops_log_rate_analysis` |\r\n|
`@kbn/aiops-test-utils`
|\r\n`x-pack/platform/packages/private/ml/aiops_test_utils` |\r\n|
`@kbn/deeplinks-ml` | `src/platform/packages/shared/deeplinks/ml` |\r\n|
`@kbn/default-nav-ml` |
`src/platform/packages/private/default-nav/ml`\r\n|\r\n|
`@kbn/inference_integration_flyout`
|\r\n`x-pack/platform/packages/private/ml/inference_integration_flyout`
|\r\n| `@kbn/json-schemas`
|\r\n`x-pack/platform/packages/private/ml/json_schemas` |\r\n|
`@kbn/ml-agg-utils` |
`x-pack/platform/packages/private/ml/agg_utils`\r\n|\r\n|
`@kbn/ml-anomaly-utils`
|\r\n`x-pack/platform/packages/shared/ml/anomaly_utils` |\r\n|
`@kbn/ml-cancellable-search`
|\r\n`x-pack/platform/packages/private/ml/cancellable_search` |\r\n|
`@kbn/ml-category-validator`
|\r\n`x-pack/platform/packages/private/ml/category_validator` |\r\n|
`@kbn/ml-chi2test` | `x-pack/platform/packages/shared/ml/chi2test`
|\r\n| `@kbn/ml-creation-wizard-utils`
|\r\n`x-pack/platform/packages/private/ml/creation_wizard_utils` |\r\n|
`@kbn/ml-data-frame-analytics-utils`
|\r\n`x-pack/platform/packages/private/ml/data_frame_analytics_utils`
|\r\n| `@kbn/ml-data-grid` |
`x-pack/platform/packages/private/ml/data_grid`\r\n|\r\n|
`@kbn/ml-data-view-utils`
|\r\n`x-pack/platform/packages/private/ml/data_view_utils` |\r\n|
`@kbn/ml-date-picker`
|\r\n`x-pack/platform/packages/private/ml/date_picker` |\r\n|
`@kbn/ml-date-utils`
|\r\n`x-pack/platform/packages/private/ml/date_utils` |\r\n|
`@kbn/ml-error-utils`
|\r\n`x-pack/platform/packages/shared/ml/error_utils` |\r\n|
`@kbn/ml-field-stats-flyout`
|\r\n`x-pack/platform/packages/private/ml/field_stats_flyout` |\r\n|
`@kbn/ml-in-memory-table`
|\r\n`x-pack/platform/packages/private/ml/in_memory_table` |\r\n|
`@kbn/ml-is-defined`
|\r\n`x-pack/platform/packages/private/ml/is_defined` |\r\n|
`@kbn/ml-is-populated-object`
|\r\n`x-pack/platform/packages/private/ml/is_populated_object` |\r\n|
`@kbn/ml-kibana-theme`
|\r\n`x-pack/platform/packages/private/ml/kibana_theme` |\r\n|
`@kbn/ml-local-storage`
|\r\n`x-pack/platform/packages/private/ml/local_storage` |\r\n|
`@kbn/ml-nested-property`
|\r\n`x-pack/platform/packages/private/ml/nested_property` |\r\n|
`@kbn/ml-number-utils`
|\r\n`x-pack/platform/packages/private/ml/number_utils` |\r\n|
`@kbn/ml-parse-interval`
|\r\n`x-pack/platform/packages/private/ml/parse_interval` |\r\n|
`@kbn/ml-query-utils`
|\r\n`x-pack/platform/packages/private/ml/query_utils` |\r\n|
`@kbn/ml-random-sampler-utils`
|\r\n`x-pack/platform/packages/shared/ml/random_sampler_utils` |\r\n|
`@kbn/ml-response-stream`
|\r\n`x-pack/platform/packages/shared/ml/response_stream` |\r\n|
`@kbn/ml-route-utils`
|\r\n`x-pack/platform/packages/private/ml/route_utils` |\r\n|
`@kbn/ml-runtime-field-utils`
|\r\n`x-pack/platform/packages/shared/ml/runtime_field_utils` |\r\n|
`@kbn/ml-string-hash`
|\r\n`x-pack/platform/packages/private/ml/string_hash` |\r\n|
`@kbn/ml-time-buckets`
|\r\n`x-pack/platform/packages/private/ml/time_buckets` |\r\n|
`@kbn/ml-trained-models-utils`
|\r\n`x-pack/platform/packages/shared/ml/trained_models_utils` |\r\n|
`@kbn/ml-ui-actions`
|\r\n`x-pack/platform/packages/private/ml/ui_actions` |\r\n|
`@kbn/ml-url-state` |
`x-pack/platform/packages/private/ml/url_state`\r\n|\r\n|
`@kbn/ml-validators`
|\r\n`x-pack/platform/packages/private/ml/validators`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.eslintrc.js\r\n./docs/developer/plugin-list.asciidoc\r\n./docs/redirects.asciidoc\r\n./oas_docs/scripts/merge_ess_oas.js\r\n./oas_docs/scripts/merge_serverless_oas.js\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-synthetic-package-map/synthetic-packages.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/platform/packages/private/default-nav/ml/jest.config.js\r\n./src/platform/packages/shared/deeplinks/ml/jest.config.js\r\n./tsconfig.base.json\r\n./tsconfig.refs.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/packages/security-solution/navigation/src/constants.ts\r\n./x-pack/platform/packages/private/ml/agg_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/aiops_change_point_detection/jest.config.js\r\n./x-pack/platform/packages/private/ml/aiops_components/jest.config.js\r\n./x-pack/platform/packages/private/ml/aiops_test_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/cancellable_search/jest.config.js\r\n./x-pack/platform/packages/private/ml/category_validator/jest.config.js\r\n./x-pack/platform/packages/private/ml/creation_wizard_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/data_frame_analytics_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/data_grid/jest.config.js\r\n./x-pack/platform/packages/private/ml/data_view_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/date_picker/jest.config.js\r\n./x-pack/platform/packages/private/ml/date_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/field_stats_flyout/jest.config.js\r\n./x-pack/platform/packages/private/ml/in_memory_table/jest.config.js\r\n./x-pack/platform/packages/private/ml/inference_integration_flyout/jest.config.js\r\n./x-pack/platform/packages/private/ml/is_defined/jest.config.js\r\n./x-pack/platform/packages/private/ml/is_populated_object/jest.config.js\r\n./x-pack/platform/packages/private/ml/json_schemas/jest.config.js\r\n./x-pack/platform/packages/private/ml/kibana_theme/jest.config.js\r\n./x-pack/platform/packages/private/ml/local_storage/jest.config.js\r\n./x-pack/platform/packages/private/ml/nested_property/jest.config.js\r\n./x-pack/platform/packages/private/ml/number_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/parse_interval/jest.config.js\r\n./x-pack/platform/packages/private/ml/query_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/route_utils/jest.config.js\r\n./x-pack/platform/packages/private/ml/string_hash/jest.config.js\r\n./x-pack/platform/packages/private/ml/time_buckets/jest.config.js\r\n./x-pack/platform/packages/private/ml/ui_actions/jest.config.js\r\n./x-pack/platform/packages/private/ml/url_state/jest.config.js\r\n./x-pack/platform/packages/private/ml/validators/jest.config.js\r\n./x-pack/platform/packages/shared/ml/aiops_common/jest.config.js\r\n./x-pack/platform/packages/shared/ml/aiops_log_pattern_analysis/jest.config.js\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/jest.config.js\r\n./x-pack/platform/packages/shared/ml/anomaly_utils/jest.config.js\r\n./x-pack/platform/packages/shared/ml/chi2test/jest.config.js\r\n./x-pack/platform/packages/shared/ml/error_utils/jest.config.js\r\n./x-pack/platform/packages/shared/ml/random_sampler_utils/jest.config.js\r\n./x-pack/platform/packages/shared/ml/response_stream/jest.config.js\r\n./x-pack/platform/packages/shared/ml/runtime_field_utils/jest.config.js\r\n./x-pack/platform/packages/shared/ml/trained_models_utils/jest.config.js\r\n./x-pack/platform/plugins/private/data_visualizer/jest.config.js\r\n./x-pack/platform/plugins/private/transform/jest.config.js\r\n./x-pack/platform/plugins/private/transform/readme.md\r\n./x-pack/platform/plugins/shared/aiops/README.md\r\n./x-pack/platform/plugins/shared/aiops/jest.config.js\r\n./x-pack/platform/plugins/shared/aiops/public/application/utils/build_extended_base_filter_criteria.ts\r\n./x-pack/platform/plugins/shared/aiops/public/application/utils/search_utils.ts\r\n./x-pack/platform/plugins/shared/ml/jest.config.js\r\n./x-pack/platform/plugins/shared/ml/readme.md\r\n./x-pack/plugins/aiops/README.md\r\n./x-pack/plugins/security_solution/common/machine_learning/affected_job_ids.ts\r\n./x-pack/plugins/security_solution/common/machine_learning/helpers.ts\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/private/default-nav/ml/jest.config.js:12\r\nsrc/platform/packages/private/default-nav/ml/tsconfig.json:2\r\nsrc/platform/packages/shared/deeplinks/ml/jest.config.js:12\r\nsrc/platform/packages/shared/deeplinks/ml/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/agg_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/agg_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/aiops_change_point_detection/jest.config.js:10\r\nx-pack/platform/packages/private/ml/aiops_change_point_detection/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/aiops_components/jest.config.js:10\r\nx-pack/platform/packages/private/ml/aiops_components/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/aiops_test_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/aiops_test_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/cancellable_search/jest.config.js:10\r\nx-pack/platform/packages/private/ml/cancellable_search/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/category_validator/jest.config.js:10\r\nx-pack/platform/packages/private/ml/category_validator/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/creation_wizard_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/creation_wizard_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/data_frame_analytics_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/data_frame_analytics_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/data_grid/jest.config.js:10\r\nx-pack/platform/packages/private/ml/data_grid/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/data_view_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/data_view_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/date_picker/jest.config.js:10\r\nx-pack/platform/packages/private/ml/date_picker/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/date_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/date_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/field_stats_flyout/jest.config.js:10\r\nx-pack/platform/packages/private/ml/field_stats_flyout/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/in_memory_table/jest.config.js:10\r\nx-pack/platform/packages/private/ml/in_memory_table/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/inference_integration_flyout/jest.config.js:10\r\nx-pack/platform/packages/private/ml/inference_integration_flyout/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/is_defined/jest.config.js:10\r\nx-pack/platform/packages/private/ml/is_defined/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/is_populated_object/jest.config.js:10\r\nx-pack/platform/packages/private/ml/is_populated_object/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/json_schemas/jest.config.js:10\r\nx-pack/platform/packages/private/ml/json_schemas/package.json:7\r\nx-pack/platform/packages/private/ml/json_schemas/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/kibana_theme/jest.config.js:10\r\nx-pack/platform/packages/private/ml/kibana_theme/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/local_storage/jest.config.js:10\r\nx-pack/platform/packages/private/ml/local_storage/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/nested_property/jest.config.js:10\r\nx-pack/platform/packages/private/ml/nested_property/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/number_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/number_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/parse_interval/jest.config.js:10\r\nx-pack/platform/packages/private/ml/parse_interval/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/query_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/query_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/route_utils/jest.config.js:10\r\nx-pack/platform/packages/private/ml/route_utils/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/string_hash/jest.config.js:10\r\nx-pack/platform/packages/private/ml/string_hash/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/time_buckets/jest.config.js:10\r\nx-pack/platform/packages/private/ml/time_buckets/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/ui_actions/jest.config.js:10\r\nx-pack/platform/packages/private/ml/ui_actions/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/url_state/jest.config.js:10\r\nx-pack/platform/packages/private/ml/url_state/tsconfig.json:2\r\nx-pack/platform/packages/private/ml/validators/jest.config.js:10\r\nx-pack/platform/packages/private/ml/validators/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/aiops_common/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/aiops_common/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/aiops_log_pattern_analysis/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/aiops_log_pattern_analysis/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/aiops_log_rate_analysis/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/aiops_log_rate_analysis/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/anomaly_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/anomaly_utils/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/chi2test/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/chi2test/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/error_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/error_utils/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/random_sampler_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/random_sampler_utils/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/response_stream/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/response_stream/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/runtime_field_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/runtime_field_utils/tsconfig.json:2\r\nx-pack/platform/packages/shared/ml/trained_models_utils/jest.config.js:10\r\nx-pack/platform/packages/shared/ml/trained_models_utils/tsconfig.json:2\r\nx-pack/platform/plugins/private/data_visualizer/jest.config.js:10\r\nx-pack/platform/plugins/private/data_visualizer/tsconfig.json:2\r\nx-pack/platform/plugins/private/data_visualizer/tsconfig.json:7\r\nx-pack/platform/plugins/private/transform/jest.config.js:10\r\nx-pack/platform/plugins/private/transform/tsconfig.json:10\r\nx-pack/platform/plugins/private/transform/tsconfig.json:2\r\nx-pack/platform/plugins/shared/aiops/jest.config.js:10\r\nx-pack/platform/plugins/shared/aiops/tsconfig.json:2\r\nx-pack/platform/plugins/shared/aiops/tsconfig.json:7\r\nx-pack/platform/plugins/shared/ml/jest.config.js:10\r\nx-pack/platform/plugins/shared/ml/readme.md:186\r\nx-pack/platform/plugins/shared/ml/readme.md:192\r\nx-pack/platform/plugins/shared/ml/tsconfig.json:12\r\nx-pack/platform/plugins/shared/ml/tsconfig.json:2\r\nx-pack/platform/plugins/shared/ml/tsconfig.json:24\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Walter Rafelsberger
<walter.rafelsberger@elastic.co>","sha":"58b8b47928288d87c7c9d28368e110e2f3bb423d"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co>
2024-12-09 14:11:04 -07:00
Gerard Soldevila
609f61d1d5
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/obs-entities (#202713) (#203402)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Move modules owned by
`@elastic/obs-entities`
(#202713)](https://github.com/elastic/kibana/pull/202713)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-12-06T18:59:17Z","message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/obs-entities`
(#202713)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 3 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/entities-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_solution/entities_data_access`\r\n|\r\n|
`@kbn/entityManager-app-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_solution/entity_manager_app`\r\n|\r\n|
`@kbn/entityManager-plugin`
|\r\n`x-pack/platform/plugins/shared/entity_manager` |\r\n\r\n\r\n#### 1
package(s) are going to be relocated:\r\n\r\n | Id | Target folder |\r\n
| -- | ------------- |\r\n| `@kbn/entities-schema`
|\r\n`x-pack/platform/packages/shared/kbn-entities-schema`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./tsconfig.base.json\r\n./x-pack/platform/packages/shared/kbn-entities-schema/jest.config.js\r\n./x-pack/platform/plugins/shared/entity_manager/jest.config.js\r\n./x-pack/plugins/entity_manager/docs/entity_definitions.md\r\n./x-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/platform/packages/shared/kbn-entities-schema/jest.config.js:10\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:65\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/serve_oas_ui.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/tsconfig.json:2\r\nx-pack/platform/plugins/shared/entity_manager/jest.config.js:10\r\nx-pack/platform/plugins/shared/entity_manager/tsconfig.json:2\r\nx-pack/platform/plugins/shared/entity_manager/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/observability_solution/entities_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js:12\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:7\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Rudolf Meijering
<skaapgif@gmail.com>","sha":"df3b18214f893ef587a59a64ffe5c3dc533abc8b","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-entities"],"number":202713,"url":"https://github.com/elastic/kibana/pull/202713","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/obs-entities`
(#202713)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 3 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/entities-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_solution/entities_data_access`\r\n|\r\n|
`@kbn/entityManager-app-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_solution/entity_manager_app`\r\n|\r\n|
`@kbn/entityManager-plugin`
|\r\n`x-pack/platform/plugins/shared/entity_manager` |\r\n\r\n\r\n#### 1
package(s) are going to be relocated:\r\n\r\n | Id | Target folder |\r\n
| -- | ------------- |\r\n| `@kbn/entities-schema`
|\r\n`x-pack/platform/packages/shared/kbn-entities-schema`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./tsconfig.base.json\r\n./x-pack/platform/packages/shared/kbn-entities-schema/jest.config.js\r\n./x-pack/platform/plugins/shared/entity_manager/jest.config.js\r\n./x-pack/plugins/entity_manager/docs/entity_definitions.md\r\n./x-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/platform/packages/shared/kbn-entities-schema/jest.config.js:10\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:65\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/serve_oas_ui.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/tsconfig.json:2\r\nx-pack/platform/plugins/shared/entity_manager/jest.config.js:10\r\nx-pack/platform/plugins/shared/entity_manager/tsconfig.json:2\r\nx-pack/platform/plugins/shared/entity_manager/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/observability_solution/entities_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js:12\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:7\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Rudolf Meijering
<skaapgif@gmail.com>","sha":"df3b18214f893ef587a59a64ffe5c3dc533abc8b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202713","number":202713,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/obs-entities`
(#202713)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 3 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/entities-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_solution/entities_data_access`\r\n|\r\n|
`@kbn/entityManager-app-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_solution/entity_manager_app`\r\n|\r\n|
`@kbn/entityManager-plugin`
|\r\n`x-pack/platform/plugins/shared/entity_manager` |\r\n\r\n\r\n#### 1
package(s) are going to be relocated:\r\n\r\n | Id | Target folder |\r\n
| -- | ------------- |\r\n| `@kbn/entities-schema`
|\r\n`x-pack/platform/packages/shared/kbn-entities-schema`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./tsconfig.base.json\r\n./x-pack/platform/packages/shared/kbn-entities-schema/jest.config.js\r\n./x-pack/platform/plugins/shared/entity_manager/jest.config.js\r\n./x-pack/plugins/entity_manager/docs/entity_definitions.md\r\n./x-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/platform/packages/shared/kbn-entities-schema/jest.config.js:10\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:65\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/serve_oas_ui.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/tsconfig.json:2\r\nx-pack/platform/plugins/shared/entity_manager/jest.config.js:10\r\nx-pack/platform/plugins/shared/entity_manager/tsconfig.json:2\r\nx-pack/platform/plugins/shared/entity_manager/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/observability_solution/entities_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js:12\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:7\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Rudolf Meijering
<skaapgif@gmail.com>","sha":"df3b18214f893ef587a59a64ffe5c3dc533abc8b"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-09 12:25:21 -06:00
Anton Dosov
6d5c816fff
[8.x] [React@18] Env variable to use React@18 (#193113) (#203419)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[React@18] Env variable to use React@18
(#193113)](https://github.com/elastic/kibana/pull/193113)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Clint Andrew
Hall","email":"clint.hall@elastic.co"},"sourceCommit":{"committedDate":"2024-12-09T12:55:14Z","message":"[React@18]
Env variable to use React@18 (#193113)\n\nPart
of\r\nhttps://github.com/elastic/kibana-team/issues/1016#issuecomment-2454845292\r\n\r\nOur
plan for React@18 packages upgrade is to let kibana contributors
now\r\nthat we're going to bump React packages couple weeks in advance.
In\r\naddtion to the final PR with green tests and Kibana deployed, we
want to\r\ngive simple instructions on how to run React@18 locally
easilly:\r\n\r\nThis PR allows to quickly toggle between version of
React locally\r\nwithout having to do anything beyond an environment
variable.\r\n\r\n`REACT_18=true yarn bootstrap` will alias `react` and
`react-dom` to v18\r\nin the build.\r\n\r\nI check that this works as
expected when starting from: \r\n\r\n- local dev server `yarn start`
\r\n- local ftr `node scripts/functional_tests_server.js`\r\n- local
unit tests `REACT_18=true yarn test:jest ...`\r\n\r\nPlease note: \r\n-
**This PR doesn't implement this switch for dist build, as I
don't\r\nthink we need this for our purposes.**\r\n- The plan is that we
remove this switch soon after we merge React@18\r\nupgrade to
main.\r\n\r\nIn addition to the switch this PR mutes a very noisy
warning from\r\nReact@18 about legacy root `Warning: ReactDOM.render is
no longer\r\nsupported in React 18. Use createRoot instead. Until you
switch to the\r\nnew API, your app will behave as if it's running React
17.`. This\r\nwarning is expected as after we upgrade to React@18
packages (Phase 1)\r\nwe will be in the process of migrating to the new
createRoot API (Phase\r\n2). However, it is very noisy and we want to
mute it for now.\r\n\r\n\r\nCo-authored-by: Anton Dosov
<anton.dosov@elastic.co>","sha":"d0fde5f8e12709c08b5486359b98699637dba80d","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","React@18"],"number":193113,"url":"https://github.com/elastic/kibana/pull/193113","mergeCommit":{"message":"[React@18]
Env variable to use React@18 (#193113)\n\nPart
of\r\nhttps://github.com/elastic/kibana-team/issues/1016#issuecomment-2454845292\r\n\r\nOur
plan for React@18 packages upgrade is to let kibana contributors
now\r\nthat we're going to bump React packages couple weeks in advance.
In\r\naddtion to the final PR with green tests and Kibana deployed, we
want to\r\ngive simple instructions on how to run React@18 locally
easilly:\r\n\r\nThis PR allows to quickly toggle between version of
React locally\r\nwithout having to do anything beyond an environment
variable.\r\n\r\n`REACT_18=true yarn bootstrap` will alias `react` and
`react-dom` to v18\r\nin the build.\r\n\r\nI check that this works as
expected when starting from: \r\n\r\n- local dev server `yarn start`
\r\n- local ftr `node scripts/functional_tests_server.js`\r\n- local
unit tests `REACT_18=true yarn test:jest ...`\r\n\r\nPlease note: \r\n-
**This PR doesn't implement this switch for dist build, as I
don't\r\nthink we need this for our purposes.**\r\n- The plan is that we
remove this switch soon after we merge React@18\r\nupgrade to
main.\r\n\r\nIn addition to the switch this PR mutes a very noisy
warning from\r\nReact@18 about legacy root `Warning: ReactDOM.render is
no longer\r\nsupported in React 18. Use createRoot instead. Until you
switch to the\r\nnew API, your app will behave as if it's running React
17.`. This\r\nwarning is expected as after we upgrade to React@18
packages (Phase 1)\r\nwe will be in the process of migrating to the new
createRoot API (Phase\r\n2). However, it is very noisy and we want to
mute it for now.\r\n\r\n\r\nCo-authored-by: Anton Dosov
<anton.dosov@elastic.co>","sha":"d0fde5f8e12709c08b5486359b98699637dba80d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193113","number":193113,"mergeCommit":{"message":"[React@18]
Env variable to use React@18 (#193113)\n\nPart
of\r\nhttps://github.com/elastic/kibana-team/issues/1016#issuecomment-2454845292\r\n\r\nOur
plan for React@18 packages upgrade is to let kibana contributors
now\r\nthat we're going to bump React packages couple weeks in advance.
In\r\naddtion to the final PR with green tests and Kibana deployed, we
want to\r\ngive simple instructions on how to run React@18 locally
easilly:\r\n\r\nThis PR allows to quickly toggle between version of
React locally\r\nwithout having to do anything beyond an environment
variable.\r\n\r\n`REACT_18=true yarn bootstrap` will alias `react` and
`react-dom` to v18\r\nin the build.\r\n\r\nI check that this works as
expected when starting from: \r\n\r\n- local dev server `yarn start`
\r\n- local ftr `node scripts/functional_tests_server.js`\r\n- local
unit tests `REACT_18=true yarn test:jest ...`\r\n\r\nPlease note: \r\n-
**This PR doesn't implement this switch for dist build, as I
don't\r\nthink we need this for our purposes.**\r\n- The plan is that we
remove this switch soon after we merge React@18\r\nupgrade to
main.\r\n\r\nIn addition to the switch this PR mutes a very noisy
warning from\r\nReact@18 about legacy root `Warning: ReactDOM.render is
no longer\r\nsupported in React 18. Use createRoot instead. Until you
switch to the\r\nnew API, your app will behave as if it's running React
17.`. This\r\nwarning is expected as after we upgrade to React@18
packages (Phase 1)\r\nwe will be in the process of migrating to the new
createRoot API (Phase\r\n2). However, it is very noisy and we want to
mute it for now.\r\n\r\n\r\nCo-authored-by: Anton Dosov
<anton.dosov@elastic.co>","sha":"d0fde5f8e12709c08b5486359b98699637dba80d"}}]}]
BACKPORT-->

---------

Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-09 17:57:18 +01:00
Gerard Soldevila
61dfcaa89f
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/docs (#202416) (#203401)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Move modules owned by
`@elastic/docs`
(#202416)](https://github.com/elastic/kibana/pull/202416)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-12-05T13:54:58Z","message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/docs`
(#202416)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_ initiative. We
kindly ask you to:\r\n\r\n* Review the moved files, as some of them
contain relative paths that\r\nhave been updated.\r\n* Review the
updated files, as some of them contain references that have\r\nbeen
updated.\r\n* Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n * customised eslint rules\r\n * docs pointing to
source code\r\n* We kindly ask you to:\r\n* Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\r\nsource
code (Babel and Eslint config files), and update
them\r\nappropriately.\r\n* Manually review
.buildkite/scripts/pipelines/pull_request/pipeline.ts\r\nto ensure that
any CI pipeline customizations continue to be correctly\r\napplied after
the changed path names\r\n* Review all of the updated files, specially
the `.ts` and `.js` files\r\nlisted in the sections
below.\r\n\r\n\r\n#### 1 package(s) are going to be relocated:\r\n\r\n |
Id | Target folder |\r\n | -- | ------------- |\r\n | `@kbn/doc-links` |
`src/platform/packages/shared/kbn-doc-links`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/upgrade-notes.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/core/tsconfig.type_check.json\r\n./src/platform/packages/shared/kbn-doc-links/jest.config.js\r\n./src/plugins/ai_assistant_management/selection/tsconfig.type_check.json\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/plugins/alerting/tsconfig.type_check.json\r\n./x-pack/plugins/search_connectors/tsconfig.type_check.json\r\n./x-pack/plugins/search_inference_endpoints/tsconfig.type_check.json\r\n./x-pack/plugins/search_playground/tsconfig.type_check.json\r\n./x-pack/plugins/security_solution/tsconfig.type_check.json\r\n./x-pack/plugins/serverless_search/tsconfig.type_check.json\r\n./x-pack/plugins/threat_intelligence/tsconfig.type_check.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/kbn-doc-links/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-doc-links/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-doc-links/tsconfig.type_check.json:2\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>","sha":"b2d49b8beb1d92bc2af45f67c6170bc58f26cec9","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","Team:Core","release_note:skip","backport
missing","v9.0.0","backport:prev-minor"],"number":202416,"url":"https://github.com/elastic/kibana/pull/202416","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/docs`
(#202416)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_ initiative. We
kindly ask you to:\r\n\r\n* Review the moved files, as some of them
contain relative paths that\r\nhave been updated.\r\n* Review the
updated files, as some of them contain references that have\r\nbeen
updated.\r\n* Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n * customised eslint rules\r\n * docs pointing to
source code\r\n* We kindly ask you to:\r\n* Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\r\nsource
code (Babel and Eslint config files), and update
them\r\nappropriately.\r\n* Manually review
.buildkite/scripts/pipelines/pull_request/pipeline.ts\r\nto ensure that
any CI pipeline customizations continue to be correctly\r\napplied after
the changed path names\r\n* Review all of the updated files, specially
the `.ts` and `.js` files\r\nlisted in the sections
below.\r\n\r\n\r\n#### 1 package(s) are going to be relocated:\r\n\r\n |
Id | Target folder |\r\n | -- | ------------- |\r\n | `@kbn/doc-links` |
`src/platform/packages/shared/kbn-doc-links`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/upgrade-notes.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/core/tsconfig.type_check.json\r\n./src/platform/packages/shared/kbn-doc-links/jest.config.js\r\n./src/plugins/ai_assistant_management/selection/tsconfig.type_check.json\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/plugins/alerting/tsconfig.type_check.json\r\n./x-pack/plugins/search_connectors/tsconfig.type_check.json\r\n./x-pack/plugins/search_inference_endpoints/tsconfig.type_check.json\r\n./x-pack/plugins/search_playground/tsconfig.type_check.json\r\n./x-pack/plugins/security_solution/tsconfig.type_check.json\r\n./x-pack/plugins/serverless_search/tsconfig.type_check.json\r\n./x-pack/plugins/threat_intelligence/tsconfig.type_check.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/kbn-doc-links/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-doc-links/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-doc-links/tsconfig.type_check.json:2\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>","sha":"b2d49b8beb1d92bc2af45f67c6170bc58f26cec9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202416","number":202416,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/docs`
(#202416)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_ initiative. We
kindly ask you to:\r\n\r\n* Review the moved files, as some of them
contain relative paths that\r\nhave been updated.\r\n* Review the
updated files, as some of them contain references that have\r\nbeen
updated.\r\n* Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n * customised eslint rules\r\n * docs pointing to
source code\r\n* We kindly ask you to:\r\n* Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\r\nsource
code (Babel and Eslint config files), and update
them\r\nappropriately.\r\n* Manually review
.buildkite/scripts/pipelines/pull_request/pipeline.ts\r\nto ensure that
any CI pipeline customizations continue to be correctly\r\napplied after
the changed path names\r\n* Review all of the updated files, specially
the `.ts` and `.js` files\r\nlisted in the sections
below.\r\n\r\n\r\n#### 1 package(s) are going to be relocated:\r\n\r\n |
Id | Target folder |\r\n | -- | ------------- |\r\n | `@kbn/doc-links` |
`src/platform/packages/shared/kbn-doc-links`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/upgrade-notes.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/core/tsconfig.type_check.json\r\n./src/platform/packages/shared/kbn-doc-links/jest.config.js\r\n./src/plugins/ai_assistant_management/selection/tsconfig.type_check.json\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/plugins/alerting/tsconfig.type_check.json\r\n./x-pack/plugins/search_connectors/tsconfig.type_check.json\r\n./x-pack/plugins/search_inference_endpoints/tsconfig.type_check.json\r\n./x-pack/plugins/search_playground/tsconfig.type_check.json\r\n./x-pack/plugins/security_solution/tsconfig.type_check.json\r\n./x-pack/plugins/serverless_search/tsconfig.type_check.json\r\n./x-pack/plugins/threat_intelligence/tsconfig.type_check.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/kbn-doc-links/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-doc-links/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-doc-links/tsconfig.type_check.json:2\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>","sha":"b2d49b8beb1d92bc2af45f67c6170bc58f26cec9"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-09 09:29:01 -07:00
Gerard Soldevila
da80d01ab5
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-esql (#202722) (#203390)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Move modules owned by
`@elastic/kibana-esql`
(#202722)](https://github.com/elastic/kibana/pull/202722)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-12-09T10:33:55Z","message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/kibana-esql`
(#202722)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 2 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/esql` | `src/platform/plugins/shared/esql` |\r\n|
`@kbn/esql-datagrid` | `src/platform/plugins/shared/esql_datagrid`
|\r\n\r\n\r\n#### 5 package(s) are going to be relocated:\r\n\r\n | Id |
Target folder |\r\n | -- | ------------- |\r\n | `@kbn/esql-ast` |
`src/platform/packages/shared/kbn-esql-ast` |\r\n| `@kbn/esql-editor` |
`src/platform/packages/private/kbn-esql-editor` |\r\n| `@kbn/esql-utils`
| `src/platform/packages/shared/kbn-esql-utils` |\r\n|
`@kbn/esql-validation-autocomplete`
|\r\n`src/platform/packages/shared/kbn-esql-validation-autocomplete`
|\r\n| `@kbn/language-documentation`
|\r\n`src/platform/packages/private/kbn-language-documentation`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.buildkite/scripts/steps/esql_generate_function_metadata.sh\r\n./.buildkite/scripts/steps/esql_grammar_sync.sh\r\n./.eslintignore\r\n./.eslintrc.js\r\n./.i18nrc.json\r\n./docs/developer/plugin-list.asciidoc\r\n./examples/esql_ast_inspector/public/plugin.ts\r\n./examples/esql_validation_example/public/plugin.ts\r\n./package.json\r\n./packages/kbn-esql-validation-autocomplete/src/validation/validation.test.ts\r\n./packages/kbn-monaco/BUILD.bazel\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./packages/kbn-ui-shared-deps-src/BUILD.bazel\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/private/kbn-esql-editor/jest.config.js\r\n./src/platform/packages/private/kbn-language-documentation/jest.config.js\r\n./src/platform/packages/private/kbn-language-documentation/package.json\r\n./src/platform/packages/shared/kbn-esql-ast/jest.config.js\r\n./src/platform/packages/shared/kbn-esql-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/README.md\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.config.js\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.integration.config.js\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/package.json\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/helper.ts\r\n./src/platform/plugins/shared/esql/jest.config.js\r\n./src/platform/plugins/shared/esql_datagrid/jest.config.js\r\n./tsconfig.base.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/private/kbn-esql-editor/jest.config.js:12\r\nsrc/platform/packages/private/kbn-esql-editor/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-language-documentation/jest.config.js:12\r\nsrc/platform/packages/private/kbn-language-documentation/package.json:12\r\nsrc/platform/packages/private/kbn-language-documentation/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-esql-ast/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-esql-ast/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-esql-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-esql-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/jest.integration.config.js:12\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/package.json:10\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/package.json:11\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/scripts/generate_function_definitions.ts:389\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/tsconfig.json:2\r\nsrc/platform/plugins/shared/esql/jest.config.js:12\r\nsrc/platform/plugins/shared/esql/tsconfig.json:2\r\nsrc/platform/plugins/shared/esql/tsconfig.json:7\r\nsrc/platform/plugins/shared/esql_datagrid/jest.config.js:12\r\nsrc/platform/plugins/shared/esql_datagrid/tsconfig.json:2\r\nsrc/platform/plugins/shared/esql_datagrid/tsconfig.json:7\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Rudolf Meijering
<skaapgif@gmail.com>","sha":"313f973aecac80f7eb6340ba517870999e0da1a3","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor","Team:ESQL"],"number":202722,"url":"https://github.com/elastic/kibana/pull/202722","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/kibana-esql`
(#202722)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 2 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/esql` | `src/platform/plugins/shared/esql` |\r\n|
`@kbn/esql-datagrid` | `src/platform/plugins/shared/esql_datagrid`
|\r\n\r\n\r\n#### 5 package(s) are going to be relocated:\r\n\r\n | Id |
Target folder |\r\n | -- | ------------- |\r\n | `@kbn/esql-ast` |
`src/platform/packages/shared/kbn-esql-ast` |\r\n| `@kbn/esql-editor` |
`src/platform/packages/private/kbn-esql-editor` |\r\n| `@kbn/esql-utils`
| `src/platform/packages/shared/kbn-esql-utils` |\r\n|
`@kbn/esql-validation-autocomplete`
|\r\n`src/platform/packages/shared/kbn-esql-validation-autocomplete`
|\r\n| `@kbn/language-documentation`
|\r\n`src/platform/packages/private/kbn-language-documentation`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.buildkite/scripts/steps/esql_generate_function_metadata.sh\r\n./.buildkite/scripts/steps/esql_grammar_sync.sh\r\n./.eslintignore\r\n./.eslintrc.js\r\n./.i18nrc.json\r\n./docs/developer/plugin-list.asciidoc\r\n./examples/esql_ast_inspector/public/plugin.ts\r\n./examples/esql_validation_example/public/plugin.ts\r\n./package.json\r\n./packages/kbn-esql-validation-autocomplete/src/validation/validation.test.ts\r\n./packages/kbn-monaco/BUILD.bazel\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./packages/kbn-ui-shared-deps-src/BUILD.bazel\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/private/kbn-esql-editor/jest.config.js\r\n./src/platform/packages/private/kbn-language-documentation/jest.config.js\r\n./src/platform/packages/private/kbn-language-documentation/package.json\r\n./src/platform/packages/shared/kbn-esql-ast/jest.config.js\r\n./src/platform/packages/shared/kbn-esql-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/README.md\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.config.js\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.integration.config.js\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/package.json\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/helper.ts\r\n./src/platform/plugins/shared/esql/jest.config.js\r\n./src/platform/plugins/shared/esql_datagrid/jest.config.js\r\n./tsconfig.base.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/private/kbn-esql-editor/jest.config.js:12\r\nsrc/platform/packages/private/kbn-esql-editor/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-language-documentation/jest.config.js:12\r\nsrc/platform/packages/private/kbn-language-documentation/package.json:12\r\nsrc/platform/packages/private/kbn-language-documentation/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-esql-ast/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-esql-ast/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-esql-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-esql-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/jest.integration.config.js:12\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/package.json:10\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/package.json:11\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/scripts/generate_function_definitions.ts:389\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/tsconfig.json:2\r\nsrc/platform/plugins/shared/esql/jest.config.js:12\r\nsrc/platform/plugins/shared/esql/tsconfig.json:2\r\nsrc/platform/plugins/shared/esql/tsconfig.json:7\r\nsrc/platform/plugins/shared/esql_datagrid/jest.config.js:12\r\nsrc/platform/plugins/shared/esql_datagrid/tsconfig.json:2\r\nsrc/platform/plugins/shared/esql_datagrid/tsconfig.json:7\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Rudolf Meijering
<skaapgif@gmail.com>","sha":"313f973aecac80f7eb6340ba517870999e0da1a3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202722","number":202722,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/kibana-esql`
(#202722)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 2 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/esql` | `src/platform/plugins/shared/esql` |\r\n|
`@kbn/esql-datagrid` | `src/platform/plugins/shared/esql_datagrid`
|\r\n\r\n\r\n#### 5 package(s) are going to be relocated:\r\n\r\n | Id |
Target folder |\r\n | -- | ------------- |\r\n | `@kbn/esql-ast` |
`src/platform/packages/shared/kbn-esql-ast` |\r\n| `@kbn/esql-editor` |
`src/platform/packages/private/kbn-esql-editor` |\r\n| `@kbn/esql-utils`
| `src/platform/packages/shared/kbn-esql-utils` |\r\n|
`@kbn/esql-validation-autocomplete`
|\r\n`src/platform/packages/shared/kbn-esql-validation-autocomplete`
|\r\n| `@kbn/language-documentation`
|\r\n`src/platform/packages/private/kbn-language-documentation`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.buildkite/scripts/steps/esql_generate_function_metadata.sh\r\n./.buildkite/scripts/steps/esql_grammar_sync.sh\r\n./.eslintignore\r\n./.eslintrc.js\r\n./.i18nrc.json\r\n./docs/developer/plugin-list.asciidoc\r\n./examples/esql_ast_inspector/public/plugin.ts\r\n./examples/esql_validation_example/public/plugin.ts\r\n./package.json\r\n./packages/kbn-esql-validation-autocomplete/src/validation/validation.test.ts\r\n./packages/kbn-monaco/BUILD.bazel\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./packages/kbn-ui-shared-deps-src/BUILD.bazel\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/private/kbn-esql-editor/jest.config.js\r\n./src/platform/packages/private/kbn-language-documentation/jest.config.js\r\n./src/platform/packages/private/kbn-language-documentation/package.json\r\n./src/platform/packages/shared/kbn-esql-ast/jest.config.js\r\n./src/platform/packages/shared/kbn-esql-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/README.md\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.config.js\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.integration.config.js\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/package.json\r\n./src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/helper.ts\r\n./src/platform/plugins/shared/esql/jest.config.js\r\n./src/platform/plugins/shared/esql_datagrid/jest.config.js\r\n./tsconfig.base.json\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/private/kbn-esql-editor/jest.config.js:12\r\nsrc/platform/packages/private/kbn-esql-editor/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-language-documentation/jest.config.js:12\r\nsrc/platform/packages/private/kbn-language-documentation/package.json:12\r\nsrc/platform/packages/private/kbn-language-documentation/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-esql-ast/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-esql-ast/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-esql-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-esql-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/jest.integration.config.js:12\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/package.json:10\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/package.json:11\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/scripts/generate_function_definitions.ts:389\r\nsrc/platform/packages/shared/kbn-esql-validation-autocomplete/tsconfig.json:2\r\nsrc/platform/plugins/shared/esql/jest.config.js:12\r\nsrc/platform/plugins/shared/esql/tsconfig.json:2\r\nsrc/platform/plugins/shared/esql/tsconfig.json:7\r\nsrc/platform/plugins/shared/esql_datagrid/jest.config.js:12\r\nsrc/platform/plugins/shared/esql_datagrid/tsconfig.json:2\r\nsrc/platform/plugins/shared/esql_datagrid/tsconfig.json:7\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Rudolf Meijering
<skaapgif@gmail.com>","sha":"313f973aecac80f7eb6340ba517870999e0da1a3"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-09 10:20:46 -06:00
Kibana Machine
ba9ba62dbb
[8.x] [Security Solution] Allow users to save rule query with non critical validation errors (#202544) (#203233)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] Allow users to save rule query with non critical
validation errors
(#202544)](https://github.com/elastic/kibana/pull/202544)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Maxim
Palenov","email":"maxim.palenov@elastic.co"},"sourceCommit":{"committedDate":"2024-12-06T12:06:39Z","message":"[Security
Solution] Allow users to save rule query with non critical validation
errors (#202544)\n\n**Addresses:**
https://github.com/elastic/kibana/issues/171520\r\n\r\n##
Summary\r\n\r\nThis PR adds functionality to allow users save EQL and
ES|QL queries in Prebuilt Rule Customization workflow by displaying a
confirmation modal with non critical validation errors (a.k.a warnings).
It also refactors confirmation modal usage in rule creation/editing
forms for better reusability.\r\n\r\n## Screenshots\r\n\r\n<img
width=\"1909\" alt=\"Screenshot 2024-12-03 at 14 01 36\"
src=\"50b5cf5a-ea3f-4c22-a443-b5d4056a92c8\r\n\r\n<img
width=\"2541\" alt=\"Screenshot 2024-12-03 at 14 06 29\"
src=\"https://github.com/user-attachments/assets/dde3fd60-6c69-4f8e-a65a-837b2319e4ac\">\r\n\r\n<img
width=\"2552\" alt=\"Screenshot 2024-12-03 at 14 06 51\"
src=\"https://github.com/user-attachments/assets/220817a6-991f-4361-88d2-ee3a47a36ad6\">\r\n\r\n<img
width=\"2555\" alt=\"Screenshot 2024-12-03 at 14 07 52\"
src=\"https://github.com/user-attachments/assets/c46fc49c-9ce1-4472-bdea-f9507aa62ece\">\r\n\r\n<img
width=\"2553\" alt=\"Screenshot 2024-12-03 at 14 08 18\"
src=\"https://github.com/user-attachments/assets/92388c56-8644-4c54-8727-b9a73b3497d1\">","sha":"b0c7a8ce4f0ea528a7f96246e7f2a46d17f61d3f","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","Feature:Prebuilt Detection
Rules","backport:version","v8.18.0"],"title":"[Security Solution] Allow
users to save rule query with non critical validation
errors","number":202544,"url":"https://github.com/elastic/kibana/pull/202544","mergeCommit":{"message":"[Security
Solution] Allow users to save rule query with non critical validation
errors (#202544)\n\n**Addresses:**
https://github.com/elastic/kibana/issues/171520\r\n\r\n##
Summary\r\n\r\nThis PR adds functionality to allow users save EQL and
ES|QL queries in Prebuilt Rule Customization workflow by displaying a
confirmation modal with non critical validation errors (a.k.a warnings).
It also refactors confirmation modal usage in rule creation/editing
forms for better reusability.\r\n\r\n## Screenshots\r\n\r\n<img
width=\"1909\" alt=\"Screenshot 2024-12-03 at 14 01 36\"
src=\"50b5cf5a-ea3f-4c22-a443-b5d4056a92c8\r\n\r\n<img
width=\"2541\" alt=\"Screenshot 2024-12-03 at 14 06 29\"
src=\"https://github.com/user-attachments/assets/dde3fd60-6c69-4f8e-a65a-837b2319e4ac\">\r\n\r\n<img
width=\"2552\" alt=\"Screenshot 2024-12-03 at 14 06 51\"
src=\"https://github.com/user-attachments/assets/220817a6-991f-4361-88d2-ee3a47a36ad6\">\r\n\r\n<img
width=\"2555\" alt=\"Screenshot 2024-12-03 at 14 07 52\"
src=\"https://github.com/user-attachments/assets/c46fc49c-9ce1-4472-bdea-f9507aa62ece\">\r\n\r\n<img
width=\"2553\" alt=\"Screenshot 2024-12-03 at 14 08 18\"
src=\"https://github.com/user-attachments/assets/92388c56-8644-4c54-8727-b9a73b3497d1\">","sha":"b0c7a8ce4f0ea528a7f96246e7f2a46d17f61d3f"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202544","number":202544,"mergeCommit":{"message":"[Security
Solution] Allow users to save rule query with non critical validation
errors (#202544)\n\n**Addresses:**
https://github.com/elastic/kibana/issues/171520\r\n\r\n##
Summary\r\n\r\nThis PR adds functionality to allow users save EQL and
ES|QL queries in Prebuilt Rule Customization workflow by displaying a
confirmation modal with non critical validation errors (a.k.a warnings).
It also refactors confirmation modal usage in rule creation/editing
forms for better reusability.\r\n\r\n## Screenshots\r\n\r\n<img
width=\"1909\" alt=\"Screenshot 2024-12-03 at 14 01 36\"
src=\"50b5cf5a-ea3f-4c22-a443-b5d4056a92c8\r\n\r\n<img
width=\"2541\" alt=\"Screenshot 2024-12-03 at 14 06 29\"
src=\"https://github.com/user-attachments/assets/dde3fd60-6c69-4f8e-a65a-837b2319e4ac\">\r\n\r\n<img
width=\"2552\" alt=\"Screenshot 2024-12-03 at 14 06 51\"
src=\"https://github.com/user-attachments/assets/220817a6-991f-4361-88d2-ee3a47a36ad6\">\r\n\r\n<img
width=\"2555\" alt=\"Screenshot 2024-12-03 at 14 07 52\"
src=\"https://github.com/user-attachments/assets/c46fc49c-9ce1-4472-bdea-f9507aa62ece\">\r\n\r\n<img
width=\"2553\" alt=\"Screenshot 2024-12-03 at 14 08 18\"
src=\"https://github.com/user-attachments/assets/92388c56-8644-4c54-8727-b9a73b3497d1\">","sha":"b0c7a8ce4f0ea528a7f96246e7f2a46d17f61d3f"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
2024-12-06 07:55:43 -06:00
Bharat Pasupula
da176d3c3f
[8.x] [Automatic Import] Add serverless availability cypress test (#202872) (#203207)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Automatic Import] Add serverless availability cypress test
(#202872)](https://github.com/elastic/kibana/pull/202872)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Bharat
Pasupula","email":"123897612+bhapas@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-12-05T20:25:07Z","message":"[Automatic
Import] Add serverless availability cypress test
(#202872)","sha":"5145d76fb1159b7a574eafaacbcf57e51cf00273","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","release_note:skip","v9.0.0","backport:prev-minor","Team:Security-Scalability","Feature:AutomaticImport"],"number":202872,"url":"https://github.com/elastic/kibana/pull/202872","mergeCommit":{"message":"[Automatic
Import] Add serverless availability cypress test
(#202872)","sha":"5145d76fb1159b7a574eafaacbcf57e51cf00273"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202872","number":202872,"mergeCommit":{"message":"[Automatic
Import] Add serverless availability cypress test
(#202872)","sha":"5145d76fb1159b7a574eafaacbcf57e51cf00273"}}]}]
BACKPORT-->
2024-12-06 12:19:44 +01:00
Pierre Gayvallet
4ffcaedaa9
[8.x] Add base FTR test coverage for inference APIs (#198000) (#202916)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Add base FTR test coverage for inference APIs
(#198000)](https://github.com/elastic/kibana/pull/198000)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Pierre
Gayvallet","email":"pierre.gayvallet@elastic.co"},"sourceCommit":{"committedDate":"2024-12-04T12:39:45Z","message":"Add
base FTR test coverage for inference APIs (#198000)\n\n##
Summary\r\n\r\nPart of
https://github.com/elastic/kibana-team/issues/1271\r\n\r\nThis PR
introduces the first set of end to end integration test for
the\r\ninference APIs, and the tooling required to do so (see issue for
more\r\ncontext)\r\n\r\n- Add a dedicated pipeline for ai-infra GenAI
tests. pipeline is\r\ntriggered when:\r\n - genAI stack connectors, or
ai-infra owned code is changed\r\n - when the `ci:all-gen-ai-suites`
label is present on a PR\r\n - on merge\r\n- adapt the `ftr_configs.sh`
script to load GenAI connector\r\nconfiguration from vault when a
specific var env is set\r\n- create the `@kbn/gen-ai-functional-testing`
package, which for now\r\nonly contains utilities to load the GenAI
connector configuration in FTR\r\ntests\r\n- Add FTR integration tests
for the `chatComplete` API of the\r\n`inference`
plugin\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"14ad13b6a3d7a87f4dfa9d7c1ed6c055242c9808","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:version","Team:AI
Infra","v8.18.0","ci:all-gen-ai-suites"],"number":198000,"url":"https://github.com/elastic/kibana/pull/198000","mergeCommit":{"message":"Add
base FTR test coverage for inference APIs (#198000)\n\n##
Summary\r\n\r\nPart of
https://github.com/elastic/kibana-team/issues/1271\r\n\r\nThis PR
introduces the first set of end to end integration test for
the\r\ninference APIs, and the tooling required to do so (see issue for
more\r\ncontext)\r\n\r\n- Add a dedicated pipeline for ai-infra GenAI
tests. pipeline is\r\ntriggered when:\r\n - genAI stack connectors, or
ai-infra owned code is changed\r\n - when the `ci:all-gen-ai-suites`
label is present on a PR\r\n - on merge\r\n- adapt the `ftr_configs.sh`
script to load GenAI connector\r\nconfiguration from vault when a
specific var env is set\r\n- create the `@kbn/gen-ai-functional-testing`
package, which for now\r\nonly contains utilities to load the GenAI
connector configuration in FTR\r\ntests\r\n- Add FTR integration tests
for the `chatComplete` API of the\r\n`inference`
plugin\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"14ad13b6a3d7a87f4dfa9d7c1ed6c055242c9808"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198000","number":198000,"mergeCommit":{"message":"Add
base FTR test coverage for inference APIs (#198000)\n\n##
Summary\r\n\r\nPart of
https://github.com/elastic/kibana-team/issues/1271\r\n\r\nThis PR
introduces the first set of end to end integration test for
the\r\ninference APIs, and the tooling required to do so (see issue for
more\r\ncontext)\r\n\r\n- Add a dedicated pipeline for ai-infra GenAI
tests. pipeline is\r\ntriggered when:\r\n - genAI stack connectors, or
ai-infra owned code is changed\r\n - when the `ci:all-gen-ai-suites`
label is present on a PR\r\n - on merge\r\n- adapt the `ftr_configs.sh`
script to load GenAI connector\r\nconfiguration from vault when a
specific var env is set\r\n- create the `@kbn/gen-ai-functional-testing`
package, which for now\r\nonly contains utilities to load the GenAI
connector configuration in FTR\r\ntests\r\n- Add FTR integration tests
for the `chatComplete` API of the\r\n`inference`
plugin\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"14ad13b6a3d7a87f4dfa9d7c1ed6c055242c9808"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-05 07:03:22 -06:00
Zacqary Adam Xeper
4beeb723a3
[8.x] [ResponseOps][Rules] Move Rule Form code into @kbn/response-ops-rule-form (#198725) (#202907)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[ResponseOps][Rules] Move Rule Form code into
@kbn/response-ops-rule-form
(#198725)](https://github.com/elastic/kibana/pull/198725)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Zacqary Adam
Xeper","email":"Zacqary@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-12-03T18:40:48Z","message":"[ResponseOps][Rules]
Move Rule Form code into @kbn/response-ops-rule-form (#198725)\n\n##
Summary\r\n\r\nPart of #195211\r\n\r\nMoves Rule Form code out of
`@kbn/alerts-ui-shared` and into a new\r\npackage called
`@kbn/response-ops-rule-form`.\r\n\r\nSome types and hooks that are used
by multiple features or solutions are\r\nstill in
`@kbn/alerts-ui-shared` and have been rerouted. The bulk of\r\nRule
Form-specific code is in this new package.\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Kevin Delemme
<kevin.delemme@elastic.co>","sha":"8f267fd83c05c3c7c97a07e7abb671c35fc7a617","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Team:Fleet","v9.0.0","Feature:Alerting/RulesManagement","ci:project-deploy-observability","Team:obs-ux-management","backport:version","v8.18.0"],"number":198725,"url":"https://github.com/elastic/kibana/pull/198725","mergeCommit":{"message":"[ResponseOps][Rules]
Move Rule Form code into @kbn/response-ops-rule-form (#198725)\n\n##
Summary\r\n\r\nPart of #195211\r\n\r\nMoves Rule Form code out of
`@kbn/alerts-ui-shared` and into a new\r\npackage called
`@kbn/response-ops-rule-form`.\r\n\r\nSome types and hooks that are used
by multiple features or solutions are\r\nstill in
`@kbn/alerts-ui-shared` and have been rerouted. The bulk of\r\nRule
Form-specific code is in this new package.\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Kevin Delemme
<kevin.delemme@elastic.co>","sha":"8f267fd83c05c3c7c97a07e7abb671c35fc7a617"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198725","number":198725,"mergeCommit":{"message":"[ResponseOps][Rules]
Move Rule Form code into @kbn/response-ops-rule-form (#198725)\n\n##
Summary\r\n\r\nPart of #195211\r\n\r\nMoves Rule Form code out of
`@kbn/alerts-ui-shared` and into a new\r\npackage called
`@kbn/response-ops-rule-form`.\r\n\r\nSome types and hooks that are used
by multiple features or solutions are\r\nstill in
`@kbn/alerts-ui-shared` and have been rerouted. The bulk of\r\nRule
Form-specific code is in this new package.\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Kevin Delemme
<kevin.delemme@elastic.co>","sha":"8f267fd83c05c3c7c97a07e7abb671c35fc7a617"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2024-12-04 16:28:21 -06:00
Alberto Blázquez
692b9b1e5a
[8.x] Create the "Asset Inventory" Kibana Plugin (#202291) (#202827)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Create the "Asset Inventory" Kibana Plugin
(#202291)](https://github.com/elastic/kibana/pull/202291)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Alberto
Blázquez","email":"albertoblaz@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-12-03T10:29:53Z","message":"Create
the \"Asset Inventory\" Kibana Plugin (#202291)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/201704.\r\n\r\nCreate an empty
\"Asset Inventory\" plugin with the minimal boilerplate\r\nrequired to
set it up, install it and run it on Kibana with a
blank\r\nslate.\r\n\r\nI generated the files using the `node
scripts/generate_plugin <NAME>`\r\nscript as per [this
documentation\r\npage](https://docs.elastic.dev/kibana-dev-docs/getting-started/hello-world-app#2-option-2---use-the-automatic-plugin-generator).\r\n\r\n###
Screenshots\r\n\r\n\r\n<details><summary>Main page (Sample
page)</summary>\r\n<img width=\"2498\" alt=\"Screenshot 2024-11-29 at 14
20
57\"\r\nsrc=\"https://github.com/user-attachments/assets/9d8a3751-519b-4661-bc90-cbb1e836b111\">\r\n</details>
\r\n\r\n### Implementation details\r\n\r\n- [x] Generated a new Kibana
plugin with minimal boilerplate and zero\r\ndependencies\r\n- [x] Use
[Cloud
Security\r\nPosture](https://github.com/elastic/kibana/tree/main/x-pack/plugins/cloud_security_posture)\r\nplugin
as configuration reference\r\n- [x] Render \"Inventory\" title on the
main page\r\n- [x] Ensure the plugin is properly integrated into
Kibana's build and\r\ncan be loaded without errors\r\n- [x] Place the
plugin under the `x-pack/plugins` directory\r\n- [x] Include Readme
file\r\n- [x] Introduce placeholders for initialization of pipelines
and\r\ntransforms following [Cloud
Security\r\nPosture](https://github.com/elastic/kibana/blob/main/x-pack/plugins/cloud_security_posture/server/plugin.ts)\r\nplugin
initialize function.\r\n\r\n### PR Checklist\r\n\r\n- [ ] No docs for
now\r\n~~[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials~~\r\n- [x] The
PR description includes the appropriate Release Notes section,\r\nand
the correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n###
Risks\r\n\r\nNo risks at all since this is totally green-field and will
be hidden by\r\na feature
toggle.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Paulo Silva
<paulo.henrique@elastic.co>","sha":"e5b1773971656ad9529935832675b5f9c1849594","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Cloud
Security","backport:prev-minor","backport:version","v8.18.0"],"number":202291,"url":"https://github.com/elastic/kibana/pull/202291","mergeCommit":{"message":"Create
the \"Asset Inventory\" Kibana Plugin (#202291)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/201704.\r\n\r\nCreate an empty
\"Asset Inventory\" plugin with the minimal boilerplate\r\nrequired to
set it up, install it and run it on Kibana with a
blank\r\nslate.\r\n\r\nI generated the files using the `node
scripts/generate_plugin <NAME>`\r\nscript as per [this
documentation\r\npage](https://docs.elastic.dev/kibana-dev-docs/getting-started/hello-world-app#2-option-2---use-the-automatic-plugin-generator).\r\n\r\n###
Screenshots\r\n\r\n\r\n<details><summary>Main page (Sample
page)</summary>\r\n<img width=\"2498\" alt=\"Screenshot 2024-11-29 at 14
20
57\"\r\nsrc=\"https://github.com/user-attachments/assets/9d8a3751-519b-4661-bc90-cbb1e836b111\">\r\n</details>
\r\n\r\n### Implementation details\r\n\r\n- [x] Generated a new Kibana
plugin with minimal boilerplate and zero\r\ndependencies\r\n- [x] Use
[Cloud
Security\r\nPosture](https://github.com/elastic/kibana/tree/main/x-pack/plugins/cloud_security_posture)\r\nplugin
as configuration reference\r\n- [x] Render \"Inventory\" title on the
main page\r\n- [x] Ensure the plugin is properly integrated into
Kibana's build and\r\ncan be loaded without errors\r\n- [x] Place the
plugin under the `x-pack/plugins` directory\r\n- [x] Include Readme
file\r\n- [x] Introduce placeholders for initialization of pipelines
and\r\ntransforms following [Cloud
Security\r\nPosture](https://github.com/elastic/kibana/blob/main/x-pack/plugins/cloud_security_posture/server/plugin.ts)\r\nplugin
initialize function.\r\n\r\n### PR Checklist\r\n\r\n- [ ] No docs for
now\r\n~~[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials~~\r\n- [x] The
PR description includes the appropriate Release Notes section,\r\nand
the correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n###
Risks\r\n\r\nNo risks at all since this is totally green-field and will
be hidden by\r\na feature
toggle.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Paulo Silva
<paulo.henrique@elastic.co>","sha":"e5b1773971656ad9529935832675b5f9c1849594"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202291","number":202291,"mergeCommit":{"message":"Create
the \"Asset Inventory\" Kibana Plugin (#202291)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/201704.\r\n\r\nCreate an empty
\"Asset Inventory\" plugin with the minimal boilerplate\r\nrequired to
set it up, install it and run it on Kibana with a
blank\r\nslate.\r\n\r\nI generated the files using the `node
scripts/generate_plugin <NAME>`\r\nscript as per [this
documentation\r\npage](https://docs.elastic.dev/kibana-dev-docs/getting-started/hello-world-app#2-option-2---use-the-automatic-plugin-generator).\r\n\r\n###
Screenshots\r\n\r\n\r\n<details><summary>Main page (Sample
page)</summary>\r\n<img width=\"2498\" alt=\"Screenshot 2024-11-29 at 14
20
57\"\r\nsrc=\"https://github.com/user-attachments/assets/9d8a3751-519b-4661-bc90-cbb1e836b111\">\r\n</details>
\r\n\r\n### Implementation details\r\n\r\n- [x] Generated a new Kibana
plugin with minimal boilerplate and zero\r\ndependencies\r\n- [x] Use
[Cloud
Security\r\nPosture](https://github.com/elastic/kibana/tree/main/x-pack/plugins/cloud_security_posture)\r\nplugin
as configuration reference\r\n- [x] Render \"Inventory\" title on the
main page\r\n- [x] Ensure the plugin is properly integrated into
Kibana's build and\r\ncan be loaded without errors\r\n- [x] Place the
plugin under the `x-pack/plugins` directory\r\n- [x] Include Readme
file\r\n- [x] Introduce placeholders for initialization of pipelines
and\r\ntransforms following [Cloud
Security\r\nPosture](https://github.com/elastic/kibana/blob/main/x-pack/plugins/cloud_security_posture/server/plugin.ts)\r\nplugin
initialize function.\r\n\r\n### PR Checklist\r\n\r\n- [ ] No docs for
now\r\n~~[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials~~\r\n- [x] The
PR description includes the appropriate Release Notes section,\r\nand
the correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n###
Risks\r\n\r\nNo risks at all since this is totally green-field and will
be hidden by\r\na feature
toggle.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Paulo Silva
<paulo.henrique@elastic.co>","sha":"e5b1773971656ad9529935832675b5f9c1849594"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-03 16:37:49 -08:00
Kibana Machine
f3da0dccd4
[8.x] [Automatic Import] Add base for ftr api tests (#200169) (#202752)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Automatic Import] Add base for ftr api tests
(#200169)](https://github.com/elastic/kibana/pull/200169)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Bharat
Pasupula","email":"123897612+bhapas@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-12-03T14:56:10Z","message":"[Automatic
Import] Add base for ftr api tests (#200169)\n\n## Summary\r\n\r\nThis
PR adds a baseline for FTR API tests for Automatic Import.\r\n\r\n-
Relates
https://github.com/elastic/kibana/issues/196063\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6ef0284bce0e2fb86d2de6377916dce647aace26","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test_api","release_note:skip","v9.0.0","backport:prev-minor","Team:Security-Scalability","Feature:AutomaticImport"],"title":"[Automatic
Import] Add base for ftr api
tests","number":200169,"url":"https://github.com/elastic/kibana/pull/200169","mergeCommit":{"message":"[Automatic
Import] Add base for ftr api tests (#200169)\n\n## Summary\r\n\r\nThis
PR adds a baseline for FTR API tests for Automatic Import.\r\n\r\n-
Relates
https://github.com/elastic/kibana/issues/196063\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6ef0284bce0e2fb86d2de6377916dce647aace26"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200169","number":200169,"mergeCommit":{"message":"[Automatic
Import] Add base for ftr api tests (#200169)\n\n## Summary\r\n\r\nThis
PR adds a baseline for FTR API tests for Automatic Import.\r\n\r\n-
Relates
https://github.com/elastic/kibana/issues/196063\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6ef0284bce0e2fb86d2de6377916dce647aace26"}}]}]
BACKPORT-->

Co-authored-by: Bharat Pasupula <123897612+bhapas@users.noreply.github.com>
2024-12-03 10:51:38 -06:00
jennypavlova
edeed14fce
[8.x] [Infra] Unskip infra serverless tests (#202146) (#202640)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Infra] Unskip infra serverless tests
(#202146)](https://github.com/elastic/kibana/pull/202146)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Carlos
Crespo","email":"crespocarlos@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-11-29T17:45:48Z","message":"[Infra]
Unskip infra serverless tests (#202146)\n\nfixes
[191809](https://github.com/elastic/kibana/issues/191809)\r\n\r\n##
Summary\r\n\r\nUnskip infra e2e serverless
tests","sha":"bedc0660d8dab074aa488bccbab662269f7f21df","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport
missing","v9.0.0","backport:prev-minor","Team:obs-ux-infra_services"],"number":202146,"url":"https://github.com/elastic/kibana/pull/202146","mergeCommit":{"message":"[Infra]
Unskip infra serverless tests (#202146)\n\nfixes
[191809](https://github.com/elastic/kibana/issues/191809)\r\n\r\n##
Summary\r\n\r\nUnskip infra e2e serverless
tests","sha":"bedc0660d8dab074aa488bccbab662269f7f21df"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202146","number":202146,"mergeCommit":{"message":"[Infra]
Unskip infra serverless tests (#202146)\n\nfixes
[191809](https://github.com/elastic/kibana/issues/191809)\r\n\r\n##
Summary\r\n\r\nUnskip infra e2e serverless
tests","sha":"bedc0660d8dab074aa488bccbab662269f7f21df"}}]}] BACKPORT-->

Co-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>
2024-12-03 05:27:57 -06:00
Kerry Gallagher
5d73f2fca3
[8.x] [Discover / Logs] Add new "Saved Search component" (#199787) (#202588)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Discover / Logs] Add new "Saved Search component"
(#199787)](https://github.com/elastic/kibana/pull/199787)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Kerry
Gallagher","email":"kerry.gallagher@elastic.co"},"sourceCommit":{"committedDate":"2024-11-29T23:09:24Z","message":"[Discover
/ Logs] Add new \"Saved Search component\" (#199787)\n\n##
Summary\r\n\r\nImplements\r\nhttps://github.com/elastic/logs-dev/issues/111#issuecomment-2446470635.\r\n\r\nThis
adds a new \"Saved Search component\". The component is a
wrapper\r\naround the current Saved Search Embeddable, but
uses\r\n`ReactEmbeddableRenderer` directly to render the embeddable
outside of\r\nDashboard contexts. It monitors changes to things like
`index`,\r\n`filters` etc and communicates these changes through the
embeddable API.\r\n\r\nFor this PoC two locations were changed to use
this component 1) Logs\r\nOverview flyout 2) APM Logs tab (when the Logs
Overview isn't enabled\r\nvia advanced settings).\r\n\r\nThe component
itself is technically beyond a PoC, and resides in it's\r\nown package.
~I'd like to get eyes from the Discover folks etc on the\r\napproach,
and if we're happy I can fix the remaining known issues (apart\r\nfrom
the mixing of columns point as I believe this exists on the
roadmap\r\nanyway) and we can merge this for the initial two replacement
points.~\r\n[Thanks
Davis\r\n👌](https://github.com/elastic/logs-dev/issues/111#issuecomment-2475350199).\r\n\r\n`nonPersistedDisplayOptions`
is added to facilitate some configurable\r\noptions via runtime state,
but without the complexity of altering the\r\nactual saved search saved
object.\r\n\r\nOn the whole I've tried to keep this as clean as possible
whilst working\r\nwithin the embeddable framework, outside of a
dashboard context.\r\n\r\n## Known issues\r\n\r\n- ~\"Flyout on flyout\"
in the logs overview flyout (e.g. triggering the\r\ntable's flyout in
this context).~ Fixed with `enableFlyout` option.\r\n- ~Filter buttons
should be disabled via pills (e.g. in Summary\r\ncolumn).~ Fixed with
`enableFilters` option.\r\n- Summary (`_source`) column cannot be used
alongside other columns,\r\ne.g. log level, so column customisation
isn't currently enabled. You'll\r\njust get timestamp and summary. This
requires changes in the Unified\r\nData Table. **Won't be fixed in this
PR**\r\n\r\n- We are left with this panel button that technically
doesn't do\r\nanything outside of a dashboard. I don't *think* there's
an easy way to\r\ndisable this. **Won't be fixed in this
PR**\r\n![Screenshot 2024-11-20 at 11
50\r\n43](https://github.com/user-attachments/assets/e43a47cd-e36e-4511-ba88-c928a4acd634)\r\n\r\n\r\n##
Followups\r\n\r\n- ~The Logs Overview details state machine can be
cleaned up (it doesn't\r\nneed to fetch documents etc anymore).~ The
state machine no longer\r\nfetches it's own documents. Some scaffolding
is left in place as it'll\r\nbe needed for showing category details
anyway.\r\n\r\n## Example\r\n\r\n![Screenshot 2024-11-20 at 12
20\r\n08](https://github.com/user-attachments/assets/3b25d591-e3e2-4e8a-98a8-1bfc849d3bc1)\r\n![Screenshot
2024-11-20 at 12
23\r\n34](https://github.com/user-attachments/assets/a2d28036-98c5-4404-934e-2298cf4a66bf)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b0122f547dc916ee5ccaad369968738d92596eaf","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-logs","Team:obs-ux-infra_services","backport:version","v8.18.0"],"number":199787,"url":"https://github.com/elastic/kibana/pull/199787","mergeCommit":{"message":"[Discover
/ Logs] Add new \"Saved Search component\" (#199787)\n\n##
Summary\r\n\r\nImplements\r\nhttps://github.com/elastic/logs-dev/issues/111#issuecomment-2446470635.\r\n\r\nThis
adds a new \"Saved Search component\". The component is a
wrapper\r\naround the current Saved Search Embeddable, but
uses\r\n`ReactEmbeddableRenderer` directly to render the embeddable
outside of\r\nDashboard contexts. It monitors changes to things like
`index`,\r\n`filters` etc and communicates these changes through the
embeddable API.\r\n\r\nFor this PoC two locations were changed to use
this component 1) Logs\r\nOverview flyout 2) APM Logs tab (when the Logs
Overview isn't enabled\r\nvia advanced settings).\r\n\r\nThe component
itself is technically beyond a PoC, and resides in it's\r\nown package.
~I'd like to get eyes from the Discover folks etc on the\r\napproach,
and if we're happy I can fix the remaining known issues (apart\r\nfrom
the mixing of columns point as I believe this exists on the
roadmap\r\nanyway) and we can merge this for the initial two replacement
points.~\r\n[Thanks
Davis\r\n👌](https://github.com/elastic/logs-dev/issues/111#issuecomment-2475350199).\r\n\r\n`nonPersistedDisplayOptions`
is added to facilitate some configurable\r\noptions via runtime state,
but without the complexity of altering the\r\nactual saved search saved
object.\r\n\r\nOn the whole I've tried to keep this as clean as possible
whilst working\r\nwithin the embeddable framework, outside of a
dashboard context.\r\n\r\n## Known issues\r\n\r\n- ~\"Flyout on flyout\"
in the logs overview flyout (e.g. triggering the\r\ntable's flyout in
this context).~ Fixed with `enableFlyout` option.\r\n- ~Filter buttons
should be disabled via pills (e.g. in Summary\r\ncolumn).~ Fixed with
`enableFilters` option.\r\n- Summary (`_source`) column cannot be used
alongside other columns,\r\ne.g. log level, so column customisation
isn't currently enabled. You'll\r\njust get timestamp and summary. This
requires changes in the Unified\r\nData Table. **Won't be fixed in this
PR**\r\n\r\n- We are left with this panel button that technically
doesn't do\r\nanything outside of a dashboard. I don't *think* there's
an easy way to\r\ndisable this. **Won't be fixed in this
PR**\r\n![Screenshot 2024-11-20 at 11
50\r\n43](https://github.com/user-attachments/assets/e43a47cd-e36e-4511-ba88-c928a4acd634)\r\n\r\n\r\n##
Followups\r\n\r\n- ~The Logs Overview details state machine can be
cleaned up (it doesn't\r\nneed to fetch documents etc anymore).~ The
state machine no longer\r\nfetches it's own documents. Some scaffolding
is left in place as it'll\r\nbe needed for showing category details
anyway.\r\n\r\n## Example\r\n\r\n![Screenshot 2024-11-20 at 12
20\r\n08](https://github.com/user-attachments/assets/3b25d591-e3e2-4e8a-98a8-1bfc849d3bc1)\r\n![Screenshot
2024-11-20 at 12
23\r\n34](https://github.com/user-attachments/assets/a2d28036-98c5-4404-934e-2298cf4a66bf)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b0122f547dc916ee5ccaad369968738d92596eaf"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199787","number":199787,"mergeCommit":{"message":"[Discover
/ Logs] Add new \"Saved Search component\" (#199787)\n\n##
Summary\r\n\r\nImplements\r\nhttps://github.com/elastic/logs-dev/issues/111#issuecomment-2446470635.\r\n\r\nThis
adds a new \"Saved Search component\". The component is a
wrapper\r\naround the current Saved Search Embeddable, but
uses\r\n`ReactEmbeddableRenderer` directly to render the embeddable
outside of\r\nDashboard contexts. It monitors changes to things like
`index`,\r\n`filters` etc and communicates these changes through the
embeddable API.\r\n\r\nFor this PoC two locations were changed to use
this component 1) Logs\r\nOverview flyout 2) APM Logs tab (when the Logs
Overview isn't enabled\r\nvia advanced settings).\r\n\r\nThe component
itself is technically beyond a PoC, and resides in it's\r\nown package.
~I'd like to get eyes from the Discover folks etc on the\r\napproach,
and if we're happy I can fix the remaining known issues (apart\r\nfrom
the mixing of columns point as I believe this exists on the
roadmap\r\nanyway) and we can merge this for the initial two replacement
points.~\r\n[Thanks
Davis\r\n👌](https://github.com/elastic/logs-dev/issues/111#issuecomment-2475350199).\r\n\r\n`nonPersistedDisplayOptions`
is added to facilitate some configurable\r\noptions via runtime state,
but without the complexity of altering the\r\nactual saved search saved
object.\r\n\r\nOn the whole I've tried to keep this as clean as possible
whilst working\r\nwithin the embeddable framework, outside of a
dashboard context.\r\n\r\n## Known issues\r\n\r\n- ~\"Flyout on flyout\"
in the logs overview flyout (e.g. triggering the\r\ntable's flyout in
this context).~ Fixed with `enableFlyout` option.\r\n- ~Filter buttons
should be disabled via pills (e.g. in Summary\r\ncolumn).~ Fixed with
`enableFilters` option.\r\n- Summary (`_source`) column cannot be used
alongside other columns,\r\ne.g. log level, so column customisation
isn't currently enabled. You'll\r\njust get timestamp and summary. This
requires changes in the Unified\r\nData Table. **Won't be fixed in this
PR**\r\n\r\n- We are left with this panel button that technically
doesn't do\r\nanything outside of a dashboard. I don't *think* there's
an easy way to\r\ndisable this. **Won't be fixed in this
PR**\r\n![Screenshot 2024-11-20 at 11
50\r\n43](https://github.com/user-attachments/assets/e43a47cd-e36e-4511-ba88-c928a4acd634)\r\n\r\n\r\n##
Followups\r\n\r\n- ~The Logs Overview details state machine can be
cleaned up (it doesn't\r\nneed to fetch documents etc anymore).~ The
state machine no longer\r\nfetches it's own documents. Some scaffolding
is left in place as it'll\r\nbe needed for showing category details
anyway.\r\n\r\n## Example\r\n\r\n![Screenshot 2024-11-20 at 12
20\r\n08](https://github.com/user-attachments/assets/3b25d591-e3e2-4e8a-98a8-1bfc849d3bc1)\r\n![Screenshot
2024-11-20 at 12
23\r\n34](https://github.com/user-attachments/assets/a2d28036-98c5-4404-934e-2298cf4a66bf)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b0122f547dc916ee5ccaad369968738d92596eaf"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-03 11:47:49 +01:00
Dario Gieselaar
39929f132e
[8.x] [Streams] App plugin (#200060) (#201999)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Streams] App plugin
(#200060)](https://github.com/elastic/kibana/pull/200060)

<!--- Backport version: 7.3.2 -->

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

<!--BACKPORT {commits} BACKPORT-->

---------

Co-authored-by: Caue Marcondes <caue.marcondes@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-02 16:34:30 +01:00
Milton Hultgren
7c0c54f245
[8.x] Reduce obs knowledge code ownership (#202010) (#202322)
Manual backport

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-29 17:50:49 +01:00
Kibana Machine
fd2e0ea97c
[8.x] [Discover] Add context awareness telemetry tests for Observability profiles (#201310) (#202246)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Discover] Add context awareness telemetry tests for Observability
profiles (#201310)](https://github.com/elastic/kibana/pull/201310)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Davis
McPhee","email":"davis.mcphee@elastic.co"},"sourceCommit":{"committedDate":"2024-11-29T00:12:26Z","message":"[Discover]
Add context awareness telemetry tests for Observability profiles
(#201310)\n\n## Summary\r\n\r\nAs suggested
in\r\nhttps://github.com/elastic/kibana/pull/199255#discussion_r1842804292,\r\nI've
copied and modified the existing Discover context awareness\r\ntelemetry
tests to work for Observability profiles. This helps test
that\r\nsolution root profiles are picked up as expected, as well as
giving us\r\nsome serverless coverage.\r\n\r\n@elastic/appex-qa It
didn't seem like there were any config specific\r\nservices for
serverless tests yet, so I added the EBT to services to the\r\nmain
serverless config. If there's a better way to do this, please let\r\nme
know and I can update it.\r\n\r\n### Checklist\r\n\r\n- [ ] Any text
added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] If a plugin
configuration key changed, check if it needs to be\r\nallowlisted in the
cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\r\nchanges have been approved by the breaking-change committee.
The\r\n`release_note:breaking` label should be applied in these
situations.\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] The PR description includes
the appropriate Release Notes section,\r\nand the correct
`release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"be7d748845d4238b644d9ec2dc2880739700ddad","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Discover","release_note:skip","v9.0.0","Team:DataDiscovery","backport:prev-minor","Team:obs-ux-logs","Project:OneDiscover"],"title":"[Discover]
Add context awareness telemetry tests for Observability
profiles","number":201310,"url":"https://github.com/elastic/kibana/pull/201310","mergeCommit":{"message":"[Discover]
Add context awareness telemetry tests for Observability profiles
(#201310)\n\n## Summary\r\n\r\nAs suggested
in\r\nhttps://github.com/elastic/kibana/pull/199255#discussion_r1842804292,\r\nI've
copied and modified the existing Discover context awareness\r\ntelemetry
tests to work for Observability profiles. This helps test
that\r\nsolution root profiles are picked up as expected, as well as
giving us\r\nsome serverless coverage.\r\n\r\n@elastic/appex-qa It
didn't seem like there were any config specific\r\nservices for
serverless tests yet, so I added the EBT to services to the\r\nmain
serverless config. If there's a better way to do this, please let\r\nme
know and I can update it.\r\n\r\n### Checklist\r\n\r\n- [ ] Any text
added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] If a plugin
configuration key changed, check if it needs to be\r\nallowlisted in the
cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\r\nchanges have been approved by the breaking-change committee.
The\r\n`release_note:breaking` label should be applied in these
situations.\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] The PR description includes
the appropriate Release Notes section,\r\nand the correct
`release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"be7d748845d4238b644d9ec2dc2880739700ddad"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201310","number":201310,"mergeCommit":{"message":"[Discover]
Add context awareness telemetry tests for Observability profiles
(#201310)\n\n## Summary\r\n\r\nAs suggested
in\r\nhttps://github.com/elastic/kibana/pull/199255#discussion_r1842804292,\r\nI've
copied and modified the existing Discover context awareness\r\ntelemetry
tests to work for Observability profiles. This helps test
that\r\nsolution root profiles are picked up as expected, as well as
giving us\r\nsome serverless coverage.\r\n\r\n@elastic/appex-qa It
didn't seem like there were any config specific\r\nservices for
serverless tests yet, so I added the EBT to services to the\r\nmain
serverless config. If there's a better way to do this, please let\r\nme
know and I can update it.\r\n\r\n### Checklist\r\n\r\n- [ ] Any text
added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] If a plugin
configuration key changed, check if it needs to be\r\nallowlisted in the
cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\r\nchanges have been approved by the breaking-change committee.
The\r\n`release_note:breaking` label should be applied in these
situations.\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] The PR description includes
the appropriate Release Notes section,\r\nand the correct
`release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"be7d748845d4238b644d9ec2dc2880739700ddad"}}]}]
BACKPORT-->

Co-authored-by: Davis McPhee <davis.mcphee@elastic.co>
2024-11-28 20:05:30 -06:00
Kevin Lacabane
337ab20ad3
[8.x] [eem] _search endpoint / initial entity manager UI (#199609) (#202050)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[eem] _search endpoint / initial entity manager UI
(#199609)](https://github.com/elastic/kibana/pull/199609)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Kevin
Lacabane","email":"kevin.lacabane@elastic.co"},"sourceCommit":{"committedDate":"2024-11-22T15:12:04Z","message":"[eem]
_search endpoint / initial entity manager UI (#199609)\n\n##
Summary\r\n\r\n- create `_search` endpoint to discover entities with
esql queries. It\r\ncurrently reads sources of the provided `type`
from\r\n`kibana_entity_definitions` index. Run this query to insert
a\r\ndefinition:\r\n```\r\nPOST kibana_entity_definitions/_doc\r\n{\r\n
\"entity_type\": \"service\",\r\n \"index_patterns\":
[\"remote_cluster:logs-*\"],\r\n \"metadata_fields\": [],\r\n
\"identity_fields\": [\"service.name\"],\r\n \"filters\": [],\r\n
\"timestamp_field\": \"@timestamp\"\r\n}\r\n```\r\n\r\nBy default
`_search` will look at data in the last 5m. The lookup period\r\ncan be
overriden by providing `start`/`end` parameters in ISO format.
It\r\nalso accepts a `limit` to specify the number of entities returned
which\r\ndefaults to 10\r\n\r\n```\r\nPOST
kbn:/internal/entities/v2/_search\r\n{\r\n \"type\": \"service\",\r\n
\"start\": \"2024-11-19T20:40:00.000Z\",\r\n \"end\":
\"2024-11-19T20:50:00.000Z\",\r\n \"limit\": 20\r\n}\r\n```\r\n\r\n-
create `_search/preview` endpoint to preview output of entity
sources\r\nwithout persisting them\r\n \r\n- create UI to preview
results of an entity definition at\r\n`/app/entity_manager`. The
application is living in its own plugin
at\r\n`observability_solution/entity_manager_app`\r\n![Screenshot
2024-11-11 at 11
37\r\n18](https://github.com/user-attachments/assets/f284342d-21a3-4ba1-be94-38cff311266c)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Milton Hultgren
<miltonhultgren@gmail.com>","sha":"0b3f4fbd3cd60663289fc13f8f01e3f4c9131479","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport
missing","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-entities"],"number":199609,"url":"https://github.com/elastic/kibana/pull/199609","mergeCommit":{"message":"[eem]
_search endpoint / initial entity manager UI (#199609)\n\n##
Summary\r\n\r\n- create `_search` endpoint to discover entities with
esql queries. It\r\ncurrently reads sources of the provided `type`
from\r\n`kibana_entity_definitions` index. Run this query to insert
a\r\ndefinition:\r\n```\r\nPOST kibana_entity_definitions/_doc\r\n{\r\n
\"entity_type\": \"service\",\r\n \"index_patterns\":
[\"remote_cluster:logs-*\"],\r\n \"metadata_fields\": [],\r\n
\"identity_fields\": [\"service.name\"],\r\n \"filters\": [],\r\n
\"timestamp_field\": \"@timestamp\"\r\n}\r\n```\r\n\r\nBy default
`_search` will look at data in the last 5m. The lookup period\r\ncan be
overriden by providing `start`/`end` parameters in ISO format.
It\r\nalso accepts a `limit` to specify the number of entities returned
which\r\ndefaults to 10\r\n\r\n```\r\nPOST
kbn:/internal/entities/v2/_search\r\n{\r\n \"type\": \"service\",\r\n
\"start\": \"2024-11-19T20:40:00.000Z\",\r\n \"end\":
\"2024-11-19T20:50:00.000Z\",\r\n \"limit\": 20\r\n}\r\n```\r\n\r\n-
create `_search/preview` endpoint to preview output of entity
sources\r\nwithout persisting them\r\n \r\n- create UI to preview
results of an entity definition at\r\n`/app/entity_manager`. The
application is living in its own plugin
at\r\n`observability_solution/entity_manager_app`\r\n![Screenshot
2024-11-11 at 11
37\r\n18](https://github.com/user-attachments/assets/f284342d-21a3-4ba1-be94-38cff311266c)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Milton Hultgren
<miltonhultgren@gmail.com>","sha":"0b3f4fbd3cd60663289fc13f8f01e3f4c9131479"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199609","number":199609,"mergeCommit":{"message":"[eem]
_search endpoint / initial entity manager UI (#199609)\n\n##
Summary\r\n\r\n- create `_search` endpoint to discover entities with
esql queries. It\r\ncurrently reads sources of the provided `type`
from\r\n`kibana_entity_definitions` index. Run this query to insert
a\r\ndefinition:\r\n```\r\nPOST kibana_entity_definitions/_doc\r\n{\r\n
\"entity_type\": \"service\",\r\n \"index_patterns\":
[\"remote_cluster:logs-*\"],\r\n \"metadata_fields\": [],\r\n
\"identity_fields\": [\"service.name\"],\r\n \"filters\": [],\r\n
\"timestamp_field\": \"@timestamp\"\r\n}\r\n```\r\n\r\nBy default
`_search` will look at data in the last 5m. The lookup period\r\ncan be
overriden by providing `start`/`end` parameters in ISO format.
It\r\nalso accepts a `limit` to specify the number of entities returned
which\r\ndefaults to 10\r\n\r\n```\r\nPOST
kbn:/internal/entities/v2/_search\r\n{\r\n \"type\": \"service\",\r\n
\"start\": \"2024-11-19T20:40:00.000Z\",\r\n \"end\":
\"2024-11-19T20:50:00.000Z\",\r\n \"limit\": 20\r\n}\r\n```\r\n\r\n-
create `_search/preview` endpoint to preview output of entity
sources\r\nwithout persisting them\r\n \r\n- create UI to preview
results of an entity definition at\r\n`/app/entity_manager`. The
application is living in its own plugin
at\r\n`observability_solution/entity_manager_app`\r\n![Screenshot
2024-11-11 at 11
37\r\n18](https://github.com/user-attachments/assets/f284342d-21a3-4ba1-be94-38cff311266c)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Milton Hultgren
<miltonhultgren@gmail.com>","sha":"0b3f4fbd3cd60663289fc13f8f01e3f4c9131479"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-28 11:14:38 +01:00
Jonathan Budzenski
bd321578ff regenerate codeowners 2024-11-26 15:09:42 -06:00
Jon
55433a4678
[8.x] Restore CODEOWNERS (#199686)
Restores the most recent available CODEOWNERS from
c84d92dd39.

Adds a global assignment override to kibanamachine.

Depends on https://github.com/elastic/kibana/pull/199404

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-26 12:18:56 -06:00
Jonathan Budzenski
ed448ddac6 Remove codeowners 2024-11-07 07:20:06 -06:00
Ash
feab4ef51b
[8.x] [Security Solution] Removing cypress folder (#197273) (#199260)
> [!Warning]
> `.github/CODEOWNERS` and
`.buildkite/pipelines/pull_request/security_solution/defend_workflows.yml`
were updated as part of merge conflicts so would need a thorough review.

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] Removing cypress folder
(#197273)](https://github.com/elastic/kibana/pull/197273)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Gloria
Hornero","email":"gloria.hornero@elastic.co"},"sourceCommit":{"committedDate":"2024-10-24T15:26:33Z","message":"[Security
Solution] Removing cypress folder (#197273)\n\n##
Summary\r\n\r\nDeleting the Cypress folder that was added in
`test_serverless` as a\r\nPOC.\r\n\r\nCurrently is not used and this can
create misunderstandings regarding\r\nownership of
it.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"86e6c74f7c39a512eaa43cc025434dc6a53d55f6","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport
missing","v9.0.0","Team:
SecuritySolution","v8.16.0","backport:version","v8.17.0"],"number":197273,"url":"https://github.com/elastic/kibana/pull/197273","mergeCommit":{"message":"[Security
Solution] Removing cypress folder (#197273)\n\n##
Summary\r\n\r\nDeleting the Cypress folder that was added in
`test_serverless` as a\r\nPOC.\r\n\r\nCurrently is not used and this can
create misunderstandings regarding\r\nownership of
it.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"86e6c74f7c39a512eaa43cc025434dc6a53d55f6"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197273","number":197273,"mergeCommit":{"message":"[Security
Solution] Removing cypress folder (#197273)\n\n##
Summary\r\n\r\nDeleting the Cypress folder that was added in
`test_serverless` as a\r\nPOC.\r\n\r\nCurrently is not used and this can
create misunderstandings regarding\r\nownership of
it.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"86e6c74f7c39a512eaa43cc025434dc6a53d55f6"}},{"branch":"8.16","label":"v8.16.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","labelRegex":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Gloria Hornero <gloria.hornero@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-11-07 04:16:34 -06:00
Brad White
c84d92dd39
[8.x] Remove codeowners (#198445)
Temporary removal of `CODEOWNERS` to stop review notifications until
#197710 issues are resolved.
2024-10-30 17:47:13 -05:00
Kibana Machine
c4f03aeb64
[8.x] [Logs Overview] Add a flyout to show category document examples (#194867) (#197966)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Logs Overview] Add a flyout to show category document examples
(#194867)](https://github.com/elastic/kibana/pull/194867)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Kerry
Gallagher","email":"kerry.gallagher@elastic.co"},"sourceCommit":{"committedDate":"2024-10-24T14:49:27Z","message":"[Logs
Overview] Add a flyout to show category document examples
(#194867)\n\n## Summary\r\n\r\nImplements
https://github.com/elastic/kibana/issues/193450.\r\n\r\n## Discover
changes ⚠️ \r\n\r\nAs part of this we need to render a basic table with
the log level and\r\nsummary columns, which is technically context aware
but only in the\r\nsense we know we want it to be a logs context up
front.\r\n\r\nThe \"correct\" solution here (or at least from recent
conversations) is\r\nto use the saved search embeddable. There is
upcoming work planned to\r\nmove log stream component usages over to the
saved search embeddable.\r\nHowever, currently this isn't in a place to
just be dropped in without\r\nsome pretty extensive work. I didn't feel
comfortable doing a big push\r\non that work as a side effort to this
work, especially with a loose (if\r\npossible) 8.16 aim for
this.\r\n\r\nWhat I've done (and which isn't ideal I appreciate) is used
the start\r\ncontract of the Discover plugin to export the columns /
cells\r\npre-wrapped with the Discover services. It's not ideal in the
sense of\r\ndependencies, but technically Discover doesn't use logs
shared. I\r\nconsidered Discover shared but that's for registering
functionality for\r\nDiscover, rather than the other way
around.\r\n\r\nEventually we'll be able to remove this and convert over
to the new\r\nsolution. I'm all ears to a better solution, but there's a
big mismatch\r\nbetween the needs here and dropping in something that
exists currently.\r\nThankfully the changeset for Discover is small if
we're happy to keep\r\nthis temporarily.\r\n\r\nEdit: I've made some
notes
here:\r\nhttps://github.com/elastic/logs-dev/issues/111#issuecomment-2411096251\r\n\r\nEdit:
New package added
here:\r\nc290819c1c\r\n\r\n##
Overview\r\n\r\nFrom a high level:\r\n\r\n- Adds a new state machine for
handling \"details\" to show in the flyout\r\n(document examples now,
plus details and a timeline later).\r\n\r\n- Hooks this up to a flyout
expanded from the categories table.\r\n\r\n- Provides linking to
Discover to view documents from the category in\r\nthe
flyout.\r\n\r\nI've also left some comments inline.\r\n\r\n## UI / UX
\r\n\r\n![Screenshot 2024-10-10 at 15
05\r\n21](249ef269-0105-48af-9c81-ebae1cfb1680)\r\n\r\n---------\r\n\r\nCo-authored-by:
Felix Stürmer <felix.stuermer@elastic.co>\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Felix
Stürmer <weltenwort@users.noreply.github.com>\r\nCo-authored-by: Julia
Rechkunova
<julia.rechkunova@gmail.com>","sha":"6b63f7f6314e9c05525df32629be7ba769c6ab4c","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport
missing","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-logs","backport:version"],"title":"[Logs
Overview] Add a flyout to show category document examples
","number":194867,"url":"https://github.com/elastic/kibana/pull/194867","mergeCommit":{"message":"[Logs
Overview] Add a flyout to show category document examples
(#194867)\n\n## Summary\r\n\r\nImplements
https://github.com/elastic/kibana/issues/193450.\r\n\r\n## Discover
changes ⚠️ \r\n\r\nAs part of this we need to render a basic table with
the log level and\r\nsummary columns, which is technically context aware
but only in the\r\nsense we know we want it to be a logs context up
front.\r\n\r\nThe \"correct\" solution here (or at least from recent
conversations) is\r\nto use the saved search embeddable. There is
upcoming work planned to\r\nmove log stream component usages over to the
saved search embeddable.\r\nHowever, currently this isn't in a place to
just be dropped in without\r\nsome pretty extensive work. I didn't feel
comfortable doing a big push\r\non that work as a side effort to this
work, especially with a loose (if\r\npossible) 8.16 aim for
this.\r\n\r\nWhat I've done (and which isn't ideal I appreciate) is used
the start\r\ncontract of the Discover plugin to export the columns /
cells\r\npre-wrapped with the Discover services. It's not ideal in the
sense of\r\ndependencies, but technically Discover doesn't use logs
shared. I\r\nconsidered Discover shared but that's for registering
functionality for\r\nDiscover, rather than the other way
around.\r\n\r\nEventually we'll be able to remove this and convert over
to the new\r\nsolution. I'm all ears to a better solution, but there's a
big mismatch\r\nbetween the needs here and dropping in something that
exists currently.\r\nThankfully the changeset for Discover is small if
we're happy to keep\r\nthis temporarily.\r\n\r\nEdit: I've made some
notes
here:\r\nhttps://github.com/elastic/logs-dev/issues/111#issuecomment-2411096251\r\n\r\nEdit:
New package added
here:\r\nc290819c1c\r\n\r\n##
Overview\r\n\r\nFrom a high level:\r\n\r\n- Adds a new state machine for
handling \"details\" to show in the flyout\r\n(document examples now,
plus details and a timeline later).\r\n\r\n- Hooks this up to a flyout
expanded from the categories table.\r\n\r\n- Provides linking to
Discover to view documents from the category in\r\nthe
flyout.\r\n\r\nI've also left some comments inline.\r\n\r\n## UI / UX
\r\n\r\n![Screenshot 2024-10-10 at 15
05\r\n21](249ef269-0105-48af-9c81-ebae1cfb1680)\r\n\r\n---------\r\n\r\nCo-authored-by:
Felix Stürmer <felix.stuermer@elastic.co>\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Felix
Stürmer <weltenwort@users.noreply.github.com>\r\nCo-authored-by: Julia
Rechkunova
<julia.rechkunova@gmail.com>","sha":"6b63f7f6314e9c05525df32629be7ba769c6ab4c"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194867","number":194867,"mergeCommit":{"message":"[Logs
Overview] Add a flyout to show category document examples
(#194867)\n\n## Summary\r\n\r\nImplements
https://github.com/elastic/kibana/issues/193450.\r\n\r\n## Discover
changes ⚠️ \r\n\r\nAs part of this we need to render a basic table with
the log level and\r\nsummary columns, which is technically context aware
but only in the\r\nsense we know we want it to be a logs context up
front.\r\n\r\nThe \"correct\" solution here (or at least from recent
conversations) is\r\nto use the saved search embeddable. There is
upcoming work planned to\r\nmove log stream component usages over to the
saved search embeddable.\r\nHowever, currently this isn't in a place to
just be dropped in without\r\nsome pretty extensive work. I didn't feel
comfortable doing a big push\r\non that work as a side effort to this
work, especially with a loose (if\r\npossible) 8.16 aim for
this.\r\n\r\nWhat I've done (and which isn't ideal I appreciate) is used
the start\r\ncontract of the Discover plugin to export the columns /
cells\r\npre-wrapped with the Discover services. It's not ideal in the
sense of\r\ndependencies, but technically Discover doesn't use logs
shared. I\r\nconsidered Discover shared but that's for registering
functionality for\r\nDiscover, rather than the other way
around.\r\n\r\nEventually we'll be able to remove this and convert over
to the new\r\nsolution. I'm all ears to a better solution, but there's a
big mismatch\r\nbetween the needs here and dropping in something that
exists currently.\r\nThankfully the changeset for Discover is small if
we're happy to keep\r\nthis temporarily.\r\n\r\nEdit: I've made some
notes
here:\r\nhttps://github.com/elastic/logs-dev/issues/111#issuecomment-2411096251\r\n\r\nEdit:
New package added
here:\r\nc290819c1c\r\n\r\n##
Overview\r\n\r\nFrom a high level:\r\n\r\n- Adds a new state machine for
handling \"details\" to show in the flyout\r\n(document examples now,
plus details and a timeline later).\r\n\r\n- Hooks this up to a flyout
expanded from the categories table.\r\n\r\n- Provides linking to
Discover to view documents from the category in\r\nthe
flyout.\r\n\r\nI've also left some comments inline.\r\n\r\n## UI / UX
\r\n\r\n![Screenshot 2024-10-10 at 15
05\r\n21](249ef269-0105-48af-9c81-ebae1cfb1680)\r\n\r\n---------\r\n\r\nCo-authored-by:
Felix Stürmer <felix.stuermer@elastic.co>\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Felix
Stürmer <weltenwort@users.noreply.github.com>\r\nCo-authored-by: Julia
Rechkunova
<julia.rechkunova@gmail.com>","sha":"6b63f7f6314e9c05525df32629be7ba769c6ab4c"}}]}]
BACKPORT-->

Co-authored-by: Kerry Gallagher <kerry.gallagher@elastic.co>
2024-10-28 07:19:04 -05:00
Kibana Machine
41e67d0844
[8.x] [Cloud Security] Added graph visualization in alert&#x27;s flyout (#196034) (#197837)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] Added graph visualization in alert&#x27;s flyout
(#196034)](https://github.com/elastic/kibana/pull/196034)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Kfir
Peled","email":"61654899+kfirpeled@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-25T14:30:15Z","message":"[Cloud
Security] Added graph visualization in alert's flyout (#196034)\n\n##
Summary\r\n\r\nEnables a new experimental feature. To visualize an
alert/event by a\r\ngraph.\r\n\r\nWhen the alert/event does not contain
the relevant data the graph\r\npreview will not be visible (confirmed by
@tinnytintin10)\r\n\r\nTo enable the feature through kibana's
config:\r\n\r\n```yaml\r\nxpack.securitySolution.enableExperimental:
['graphVisualizationInFlyoutEnabled']\r\n```\r\n\r\n<details>\r\n<summary>Event's
graph visualization: 🎥
</summary>\r\n\r\n\r\nhttps://github.com/user-attachments/assets/4cee2032-173e-4b44-b371-a8e187763764\r\n\r\n</details>\r\n\r\n\r\n<details>\r\n<summary>Alert's
graph visualization: 🎥
</summary>\r\n\r\n\r\nhttps://github.com/user-attachments/assets/4fb942d0-6704-4c79-862c-956821ce59b6\r\n\r\n</details>\r\n\r\n<details>\r\n<summary>Alert
in rule preview: 🎥
</summary>\r\n\r\n\r\nhttps://github.com/user-attachments/assets/4f8d086e-1ee4-414f-8efa-4715c1d5e1f6\r\n\r\n</details>\r\n\r\n**List
of TODO's**\r\n- Add FTR test to host's flyout\r\n- Add FTR test to
alerts preview\r\n- Enhance graph_preview_container UT to cover all edge
cases\r\n- Enhance visualization_section UT to cover all edge
cases\r\n\r\n**List of open issues (will be tracked in a different
ticket):**\r\n\r\n- Graph preview search on the past 60 days, which can
lead to an empty\r\ngraph\r\n- API should return 404 when the feature is
not enabled\r\n- ~Empty state message~ Not showing the graph preview
instead.\r\n\r\n**How to test:**\r\n\r\nFirst, enable the feature, add
to
`config/kibana.dev.yml`:\r\n\r\n```yaml\r\nxpack.securitySolution.enableExperimental:
['graphVisualizationInFlyoutEnabled']\r\n```\r\n\r\nSecond, load mocked
data\r\n\r\n```bash\r\nnode scripts/es_archiver load
x-pack/test/cloud_security_posture_functional/es_archives/logs_gcp_audit
\\ \r\n --es-url http://elastic:changeme@localhost:9200 \\\r\n
--kibana-url http://elastic:changeme@localhost:5601\r\n\r\nnode
scripts/es_archiver load
x-pack/test/cloud_security_posture_functional/es_archives/security_alerts
\\\r\n --es-url http://elastic:changeme@localhost:9200 \\\r\n
--kibana-url http://elastic:changeme@localhost:5601\r\n```\r\n\r\n1. Go
to the alerts page\r\n2. Change the query time range to show alerts from
the 13th of October\r\n2024\r\n3. Open the alerts flyout\r\n4. Scroll to
see the graph visualization : D\r\n\r\n### Checklist\r\n\r\nDelete any
items that are not applicable to this PR.\r\n\r\n- [x] Any text added
follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[x]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [x] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b4a80d8d506dd474b4dfb599fc123cb612a5d79b","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Cloud
Security] Added graph visualization in alert's
flyout","number":196034,"url":"https://github.com/elastic/kibana/pull/196034","mergeCommit":{"message":"[Cloud
Security] Added graph visualization in alert's flyout (#196034)\n\n##
Summary\r\n\r\nEnables a new experimental feature. To visualize an
alert/event by a\r\ngraph.\r\n\r\nWhen the alert/event does not contain
the relevant data the graph\r\npreview will not be visible (confirmed by
@tinnytintin10)\r\n\r\nTo enable the feature through kibana's
config:\r\n\r\n```yaml\r\nxpack.securitySolution.enableExperimental:
['graphVisualizationInFlyoutEnabled']\r\n```\r\n\r\n<details>\r\n<summary>Event's
graph visualization: 🎥
</summary>\r\n\r\n\r\nhttps://github.com/user-attachments/assets/4cee2032-173e-4b44-b371-a8e187763764\r\n\r\n</details>\r\n\r\n\r\n<details>\r\n<summary>Alert's
graph visualization: 🎥
</summary>\r\n\r\n\r\nhttps://github.com/user-attachments/assets/4fb942d0-6704-4c79-862c-956821ce59b6\r\n\r\n</details>\r\n\r\n<details>\r\n<summary>Alert
in rule preview: 🎥
</summary>\r\n\r\n\r\nhttps://github.com/user-attachments/assets/4f8d086e-1ee4-414f-8efa-4715c1d5e1f6\r\n\r\n</details>\r\n\r\n**List
of TODO's**\r\n- Add FTR test to host's flyout\r\n- Add FTR test to
alerts preview\r\n- Enhance graph_preview_container UT to cover all edge
cases\r\n- Enhance visualization_section UT to cover all edge
cases\r\n\r\n**List of open issues (will be tracked in a different
ticket):**\r\n\r\n- Graph preview search on the past 60 days, which can
lead to an empty\r\ngraph\r\n- API should return 404 when the feature is
not enabled\r\n- ~Empty state message~ Not showing the graph preview
instead.\r\n\r\n**How to test:**\r\n\r\nFirst, enable the feature, add
to
`config/kibana.dev.yml`:\r\n\r\n```yaml\r\nxpack.securitySolution.enableExperimental:
['graphVisualizationInFlyoutEnabled']\r\n```\r\n\r\nSecond, load mocked
data\r\n\r\n```bash\r\nnode scripts/es_archiver load
x-pack/test/cloud_security_posture_functional/es_archives/logs_gcp_audit
\\ \r\n --es-url http://elastic:changeme@localhost:9200 \\\r\n
--kibana-url http://elastic:changeme@localhost:5601\r\n\r\nnode
scripts/es_archiver load
x-pack/test/cloud_security_posture_functional/es_archives/security_alerts
\\\r\n --es-url http://elastic:changeme@localhost:9200 \\\r\n
--kibana-url http://elastic:changeme@localhost:5601\r\n```\r\n\r\n1. Go
to the alerts page\r\n2. Change the query time range to show alerts from
the 13th of October\r\n2024\r\n3. Open the alerts flyout\r\n4. Scroll to
see the graph visualization : D\r\n\r\n### Checklist\r\n\r\nDelete any
items that are not applicable to this PR.\r\n\r\n- [x] Any text added
follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[x]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [x] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b4a80d8d506dd474b4dfb599fc123cb612a5d79b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196034","number":196034,"mergeCommit":{"message":"[Cloud
Security] Added graph visualization in alert's flyout (#196034)\n\n##
Summary\r\n\r\nEnables a new experimental feature. To visualize an
alert/event by a\r\ngraph.\r\n\r\nWhen the alert/event does not contain
the relevant data the graph\r\npreview will not be visible (confirmed by
@tinnytintin10)\r\n\r\nTo enable the feature through kibana's
config:\r\n\r\n```yaml\r\nxpack.securitySolution.enableExperimental:
['graphVisualizationInFlyoutEnabled']\r\n```\r\n\r\n<details>\r\n<summary>Event's
graph visualization: 🎥
</summary>\r\n\r\n\r\nhttps://github.com/user-attachments/assets/4cee2032-173e-4b44-b371-a8e187763764\r\n\r\n</details>\r\n\r\n\r\n<details>\r\n<summary>Alert's
graph visualization: 🎥
</summary>\r\n\r\n\r\nhttps://github.com/user-attachments/assets/4fb942d0-6704-4c79-862c-956821ce59b6\r\n\r\n</details>\r\n\r\n<details>\r\n<summary>Alert
in rule preview: 🎥
</summary>\r\n\r\n\r\nhttps://github.com/user-attachments/assets/4f8d086e-1ee4-414f-8efa-4715c1d5e1f6\r\n\r\n</details>\r\n\r\n**List
of TODO's**\r\n- Add FTR test to host's flyout\r\n- Add FTR test to
alerts preview\r\n- Enhance graph_preview_container UT to cover all edge
cases\r\n- Enhance visualization_section UT to cover all edge
cases\r\n\r\n**List of open issues (will be tracked in a different
ticket):**\r\n\r\n- Graph preview search on the past 60 days, which can
lead to an empty\r\ngraph\r\n- API should return 404 when the feature is
not enabled\r\n- ~Empty state message~ Not showing the graph preview
instead.\r\n\r\n**How to test:**\r\n\r\nFirst, enable the feature, add
to
`config/kibana.dev.yml`:\r\n\r\n```yaml\r\nxpack.securitySolution.enableExperimental:
['graphVisualizationInFlyoutEnabled']\r\n```\r\n\r\nSecond, load mocked
data\r\n\r\n```bash\r\nnode scripts/es_archiver load
x-pack/test/cloud_security_posture_functional/es_archives/logs_gcp_audit
\\ \r\n --es-url http://elastic:changeme@localhost:9200 \\\r\n
--kibana-url http://elastic:changeme@localhost:5601\r\n\r\nnode
scripts/es_archiver load
x-pack/test/cloud_security_posture_functional/es_archives/security_alerts
\\\r\n --es-url http://elastic:changeme@localhost:9200 \\\r\n
--kibana-url http://elastic:changeme@localhost:5601\r\n```\r\n\r\n1. Go
to the alerts page\r\n2. Change the query time range to show alerts from
the 13th of October\r\n2024\r\n3. Open the alerts flyout\r\n4. Scroll to
see the graph visualization : D\r\n\r\n### Checklist\r\n\r\nDelete any
items that are not applicable to this PR.\r\n\r\n- [x] Any text added
follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[x]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [x] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b4a80d8d506dd474b4dfb599fc123cb612a5d79b"}}]}]
BACKPORT-->

Co-authored-by: Kfir Peled <61654899+kfirpeled@users.noreply.github.com>
2024-10-25 11:22:03 -05:00
Kibana Machine
8876584690
[8.x] Set mget task claim strategy as the default (#197070) (#197826)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Set mget task claim strategy as the default
(#197070)](https://github.com/elastic/kibana/pull/197070)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Mike
Côté","email":"mikecote@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-25T12:57:46Z","message":"Set
mget task claim strategy as the default (#197070)\n\nResolves
https://github.com/elastic/kibana/issues/194625\r\n\r\nIn this PR, I'm
setting `mget` as the default task claiming strategy\r\nalong the
following changes:\r\n- Given we no longer need the 8.16 specific
PRs\r\n(https://github.com/elastic/kibana/pull/196317
and\r\nhttps://github.com/elastic/kibana/pull/196757), I've also
reverted them.\r\n- Given we now use `met` as the default, I've
renamed\r\n`task_manager_claimer_mget` to
`task_manager_claimer_update_by_query`\r\nand made tests in that folder
test using the `update_by_query` claim\r\nstrategy.\r\n- Stabilize flaky
tests caused by mget + polling for tasks more\r\nfrequently\r\n\r\nFlaky
test
runners:\r\n-\r\n[[59b71bc](dd7773aeba)]\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7224\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"c31f11e7d8c5c586258399c5e702e2247e05d0e4","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:Task
Manager","Team:ResponseOps","v9.0.0","backport:prev-minor","v8.17.0"],"title":"Set
mget task claim strategy as the
default","number":197070,"url":"https://github.com/elastic/kibana/pull/197070","mergeCommit":{"message":"Set
mget task claim strategy as the default (#197070)\n\nResolves
https://github.com/elastic/kibana/issues/194625\r\n\r\nIn this PR, I'm
setting `mget` as the default task claiming strategy\r\nalong the
following changes:\r\n- Given we no longer need the 8.16 specific
PRs\r\n(https://github.com/elastic/kibana/pull/196317
and\r\nhttps://github.com/elastic/kibana/pull/196757), I've also
reverted them.\r\n- Given we now use `met` as the default, I've
renamed\r\n`task_manager_claimer_mget` to
`task_manager_claimer_update_by_query`\r\nand made tests in that folder
test using the `update_by_query` claim\r\nstrategy.\r\n- Stabilize flaky
tests caused by mget + polling for tasks more\r\nfrequently\r\n\r\nFlaky
test
runners:\r\n-\r\n[[59b71bc](dd7773aeba)]\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7224\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"c31f11e7d8c5c586258399c5e702e2247e05d0e4"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197070","number":197070,"mergeCommit":{"message":"Set
mget task claim strategy as the default (#197070)\n\nResolves
https://github.com/elastic/kibana/issues/194625\r\n\r\nIn this PR, I'm
setting `mget` as the default task claiming strategy\r\nalong the
following changes:\r\n- Given we no longer need the 8.16 specific
PRs\r\n(https://github.com/elastic/kibana/pull/196317
and\r\nhttps://github.com/elastic/kibana/pull/196757), I've also
reverted them.\r\n- Given we now use `met` as the default, I've
renamed\r\n`task_manager_claimer_mget` to
`task_manager_claimer_update_by_query`\r\nand made tests in that folder
test using the `update_by_query` claim\r\nstrategy.\r\n- Stabilize flaky
tests caused by mget + polling for tasks more\r\nfrequently\r\n\r\nFlaky
test
runners:\r\n-\r\n[[59b71bc](dd7773aeba)]\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7224\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"c31f11e7d8c5c586258399c5e702e2247e05d0e4"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
2024-10-25 09:42:26 -05:00
Gerard Soldevila
7b820130ab
[8.x] Add ESLINT constraints to detect inter-group dependencies (#194810) (#197670)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Add ESLINT constraints to detect inter-group dependencies
(#194810)](https://github.com/elastic/kibana/pull/194810)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-10-22T11:34:19Z","message":"Add
ESLINT constraints to detect inter-group dependencies (#194810)\n\n##
Summary\r\n\r\nAddresses
https://github.com/elastic/kibana-team/issues/1175\r\n\r\nAs part of the
**Sustainable Kibana Architecture** initiative, this PR\r\nsets the
foundation to start classifying plugins in isolated groups,\r\nmatching
our current solutions / project types:\r\n\r\n* It adds support for the
following fields in the packages' manifests\r\n(kibana.jsonc):\r\n*
`group?: 'search' | 'security' | 'observability' | 'platform'
|\r\n'common'`\r\n * `visibility?: 'private' | 'shared'`\r\n\r\n* It
proposes a folder structure to automatically infer
groups:\r\n```javascript\r\n 'src/platform/plugins/shared': {\r\n group:
'platform',\r\n visibility: 'shared',\r\n },\r\n
'src/platform/plugins/internal': {\r\n group: 'platform',\r\n
visibility: 'private',\r\n },\r\n 'x-pack/platform/plugins/shared':
{\r\n group: 'platform',\r\n visibility: 'shared',\r\n },\r\n
'x-pack/platform/plugins/internal': {\r\n group: 'platform',\r\n
visibility: 'private',\r\n },\r\n
'x-pack/solutions/observability/plugins': {\r\n group:
'observability',\r\n visibility: 'private',\r\n },\r\n
'x-pack/solutions/security/plugins': {\r\n group: 'security',\r\n
visibility: 'private',\r\n },\r\n 'x-pack/solutions/search/plugins':
{\r\n group: 'search',\r\n visibility: 'private',\r\n },\r\n```\r\n\r\n*
If a plugin is moved to one of the specific locations above, the
group\r\nand visibility in the manifest (if specified) must match those
inferred\r\nfrom the path.\r\n* Plugins that are not relocated are
considered: `group: 'common',\r\nvisibility: 'shared'` by default. As
soon as we specify a custom\r\n`group`, the ESLINT rules will check
violations against dependencies /\r\ndependants.\r\n\r\nThe ESLINT rules
are pretty simple:\r\n* Plugins can only depend on:\r\n * Plugins in the
same group\r\n * OR plugins with `'shared'` visibility\r\n* Plugins in
`'observability', 'security', 'search'` groups are\r\nmandatorily
`'private'`.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"2a085e103afe8c7bdfb626d0dc683fc8be0e6c05","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","backport
missing","v9.0.0","release_note:feature","backport:prev-minor"],"number":194810,"url":"https://github.com/elastic/kibana/pull/194810","mergeCommit":{"message":"Add
ESLINT constraints to detect inter-group dependencies (#194810)\n\n##
Summary\r\n\r\nAddresses
https://github.com/elastic/kibana-team/issues/1175\r\n\r\nAs part of the
**Sustainable Kibana Architecture** initiative, this PR\r\nsets the
foundation to start classifying plugins in isolated groups,\r\nmatching
our current solutions / project types:\r\n\r\n* It adds support for the
following fields in the packages' manifests\r\n(kibana.jsonc):\r\n*
`group?: 'search' | 'security' | 'observability' | 'platform'
|\r\n'common'`\r\n * `visibility?: 'private' | 'shared'`\r\n\r\n* It
proposes a folder structure to automatically infer
groups:\r\n```javascript\r\n 'src/platform/plugins/shared': {\r\n group:
'platform',\r\n visibility: 'shared',\r\n },\r\n
'src/platform/plugins/internal': {\r\n group: 'platform',\r\n
visibility: 'private',\r\n },\r\n 'x-pack/platform/plugins/shared':
{\r\n group: 'platform',\r\n visibility: 'shared',\r\n },\r\n
'x-pack/platform/plugins/internal': {\r\n group: 'platform',\r\n
visibility: 'private',\r\n },\r\n
'x-pack/solutions/observability/plugins': {\r\n group:
'observability',\r\n visibility: 'private',\r\n },\r\n
'x-pack/solutions/security/plugins': {\r\n group: 'security',\r\n
visibility: 'private',\r\n },\r\n 'x-pack/solutions/search/plugins':
{\r\n group: 'search',\r\n visibility: 'private',\r\n },\r\n```\r\n\r\n*
If a plugin is moved to one of the specific locations above, the
group\r\nand visibility in the manifest (if specified) must match those
inferred\r\nfrom the path.\r\n* Plugins that are not relocated are
considered: `group: 'common',\r\nvisibility: 'shared'` by default. As
soon as we specify a custom\r\n`group`, the ESLINT rules will check
violations against dependencies /\r\ndependants.\r\n\r\nThe ESLINT rules
are pretty simple:\r\n* Plugins can only depend on:\r\n * Plugins in the
same group\r\n * OR plugins with `'shared'` visibility\r\n* Plugins in
`'observability', 'security', 'search'` groups are\r\nmandatorily
`'private'`.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"2a085e103afe8c7bdfb626d0dc683fc8be0e6c05"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194810","number":194810,"mergeCommit":{"message":"Add
ESLINT constraints to detect inter-group dependencies (#194810)\n\n##
Summary\r\n\r\nAddresses
https://github.com/elastic/kibana-team/issues/1175\r\n\r\nAs part of the
**Sustainable Kibana Architecture** initiative, this PR\r\nsets the
foundation to start classifying plugins in isolated groups,\r\nmatching
our current solutions / project types:\r\n\r\n* It adds support for the
following fields in the packages' manifests\r\n(kibana.jsonc):\r\n*
`group?: 'search' | 'security' | 'observability' | 'platform'
|\r\n'common'`\r\n * `visibility?: 'private' | 'shared'`\r\n\r\n* It
proposes a folder structure to automatically infer
groups:\r\n```javascript\r\n 'src/platform/plugins/shared': {\r\n group:
'platform',\r\n visibility: 'shared',\r\n },\r\n
'src/platform/plugins/internal': {\r\n group: 'platform',\r\n
visibility: 'private',\r\n },\r\n 'x-pack/platform/plugins/shared':
{\r\n group: 'platform',\r\n visibility: 'shared',\r\n },\r\n
'x-pack/platform/plugins/internal': {\r\n group: 'platform',\r\n
visibility: 'private',\r\n },\r\n
'x-pack/solutions/observability/plugins': {\r\n group:
'observability',\r\n visibility: 'private',\r\n },\r\n
'x-pack/solutions/security/plugins': {\r\n group: 'security',\r\n
visibility: 'private',\r\n },\r\n 'x-pack/solutions/search/plugins':
{\r\n group: 'search',\r\n visibility: 'private',\r\n },\r\n```\r\n\r\n*
If a plugin is moved to one of the specific locations above, the
group\r\nand visibility in the manifest (if specified) must match those
inferred\r\nfrom the path.\r\n* Plugins that are not relocated are
considered: `group: 'common',\r\nvisibility: 'shared'` by default. As
soon as we specify a custom\r\n`group`, the ESLINT rules will check
violations against dependencies /\r\ndependants.\r\n\r\nThe ESLINT rules
are pretty simple:\r\n* Plugins can only depend on:\r\n * Plugins in the
same group\r\n * OR plugins with `'shared'` visibility\r\n* Plugins in
`'observability', 'security', 'search'` groups are\r\nmandatorily
`'private'`.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"2a085e103afe8c7bdfb626d0dc683fc8be0e6c05"}}]}]
BACKPORT-->
2024-10-24 13:20:30 -07:00
Kibana Machine
c7a27b86bd
[8.x] [Lens][Datatable] Fix share export and inspect data (#193780) (#197696)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Lens][Datatable] Fix share export and inspect data
(#193780)](https://github.com/elastic/kibana/pull/193780)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Nick
Partridge","email":"nicholas.partridge@elastic.co"},"sourceCommit":{"committedDate":"2024-10-24T16:51:38Z","message":"[Lens][Datatable]
Fix share export and inspect data (#193780)\n\nThe exported table data
table provided in the inspector and the share export now match what was
visible in the
UI.","sha":"a854ff8a4e4f81397cebde70adc31e4ee893ce34","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:ExpressionLanguage","Team:Visualizations","Feature:Lens","v9.0.0","backport:prev-minor"],"title":"[Lens][Datatable]
Fix share export and inspect
data","number":193780,"url":"https://github.com/elastic/kibana/pull/193780","mergeCommit":{"message":"[Lens][Datatable]
Fix share export and inspect data (#193780)\n\nThe exported table data
table provided in the inspector and the share export now match what was
visible in the
UI.","sha":"a854ff8a4e4f81397cebde70adc31e4ee893ce34"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193780","number":193780,"mergeCommit":{"message":"[Lens][Datatable]
Fix share export and inspect data (#193780)\n\nThe exported table data
table provided in the inspector and the share export now match what was
visible in the
UI.","sha":"a854ff8a4e4f81397cebde70adc31e4ee893ce34"}}]}] BACKPORT-->

Co-authored-by: Nick Partridge <nicholas.partridge@elastic.co>
2024-10-24 13:35:53 -05:00
Kibana Machine
166a07cd37
[8.x] [Cloud Security] Cypress Test for Misconfiguration Preview and Table for Contextual Flyout (#193125) (#197631)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] Cypress Test for Misconfiguration Preview and Table
for Contextual Flyout
(#193125)](https://github.com/elastic/kibana/pull/193125)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Rickyanto
Ang","email":"rickyangwyn@gmail.com"},"sourceCommit":{"committedDate":"2024-10-19T08:39:50Z","message":"[Cloud
Security] Cypress Test for Misconfiguration Preview and Table for
Contextual Flyout (#193125)\n\n## Summary\r\nThis PR is for Cypress test
for the Misconfiguration Preview and
Data\r\ntable\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"2de1f4a55805d4a6d4d3560e3025798e33db87b5","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Cloud
Security","backport:prev-minor","v8.16.0","backport:version"],"title":"[Cloud
Security] Cypress Test for Misconfiguration Preview and Table for
Contextual Flyout
","number":193125,"url":"https://github.com/elastic/kibana/pull/193125","mergeCommit":{"message":"[Cloud
Security] Cypress Test for Misconfiguration Preview and Table for
Contextual Flyout (#193125)\n\n## Summary\r\nThis PR is for Cypress test
for the Misconfiguration Preview and
Data\r\ntable\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"2de1f4a55805d4a6d4d3560e3025798e33db87b5"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193125","number":193125,"mergeCommit":{"message":"[Cloud
Security] Cypress Test for Misconfiguration Preview and Table for
Contextual Flyout (#193125)\n\n## Summary\r\nThis PR is for Cypress test
for the Misconfiguration Preview and
Data\r\ntable\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"2de1f4a55805d4a6d4d3560e3025798e33db87b5"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/196974","number":196974,"state":"MERGED","mergeCommit":{"sha":"29333f8587a711562785cf98d32dc7f6d819bb28","message":"[8.16]
[Cloud Security] Cypress Test for Misconfiguration Preview and Table for
Contextual Flyout (#193125) (#196974)\n\n# Backport\r\n\r\nThis will
backport the following commits from `main` to `8.16`:\r\n- [[Cloud
Security] Cypress Test for Misconfiguration Preview and Table\r\nfor
Contextual
Flyout\r\n(#193125)](https://github.com/elastic/kibana/pull/193125)\r\n\r\n<!---
Backport version: 8.9.8 -->\r\n\r\n### Questions ?\r\nPlease refer to
the [Backport
tool\r\ndocumentation](https://github.com/sqren/backport)\r\n\r\n<!--BACKPORT
[{\"author\":{\"name\":\"Rickyanto\r\nAng\",\"email\":\"rickyangwyn@gmail.com\"},\"sourceCommit\":{\"committedDate\":\"2024-10-19T08:39:50Z\",\"message\":\"[Cloud\r\nSecurity]
Cypress Test for Misconfiguration Preview and Table for\r\nContextual
Flyout (#193125)\\n\\n## Summary\\r\\nThis PR is for Cypress test\r\nfor
the Misconfiguration Preview
and\r\nData\\r\\ntable\\r\\n\\r\\n---------\\r\\n\\r\\nCo-authored-by:
kibanamachine\r\n<42973632+kibanamachine@users.noreply.github.com>\",\"sha\":\"2de1f4a55805d4a6d4d3560e3025798e33db87b5\",\"branchLabelMapping\":{\"^v9.0.0$\":\"main\",\"^v8.17.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"release_note:skip\",\"v9.0.0\",\"Team:Cloud\r\nSecurity\",\"v8.16.0\",\"backport:version\"],\"number\":193125,\"url\":\"https://github.com/elastic/kibana/pull/193125\",\"mergeCommit\":{\"message\":\"[Cloud\r\nSecurity]
Cypress Test for Misconfiguration Preview and Table for\r\nContextual
Flyout (#193125)\\n\\n## Summary\\r\\nThis PR is for Cypress test\r\nfor
the Misconfiguration Preview
and\r\nData\\r\\ntable\\r\\n\\r\\n---------\\r\\n\\r\\nCo-authored-by:
kibanamachine\r\n<42973632+kibanamachine@users.noreply.github.com>\",\"sha\":\"2de1f4a55805d4a6d4d3560e3025798e33db87b5\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"8.16\"],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v9.0.0\",\"labelRegex\":\"^v9.0.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/193125\",\"number\":193125,\"mergeCommit\":{\"message\":\"[Cloud\r\nSecurity]
Cypress Test for Misconfiguration Preview and Table for\r\nContextual
Flyout (#193125)\\n\\n## Summary\\r\\nThis PR is for Cypress test\r\nfor
the Misconfiguration Preview
and\r\nData\\r\\ntable\\r\\n\\r\\n---------\\r\\n\\r\\nCo-authored-by:
kibanamachine\r\n<42973632+kibanamachine@users.noreply.github.com>\",\"sha\":\"2de1f4a55805d4a6d4d3560e3025798e33db87b5\"}},{\"branch\":\"8.16\",\"label\":\"v8.16.0\",\"labelRegex\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"}]}]\r\nBACKPORT-->\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine <42973632+kibanamachine@users.noreply.github.com>"}}]}]
BACKPORT-->

Co-authored-by: Rickyanto Ang <rickyangwyn@gmail.com>
2024-10-24 09:31:39 -05:00
Sergi Massaneda
177854df2a
[8.x] [SecuritySolution][SIEM Migrations] Rule migrations storage (#197032) (#197603)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[SecuritySolution][SIEM Migrations] Rule migrations storage
(#197032)](https://github.com/elastic/kibana/pull/197032)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Sergi
Massaneda","email":"sergi.massaneda@elastic.co"},"sourceCommit":{"committedDate":"2024-10-24T09:56:08Z","message":"[SecuritySolution][SIEM
Migrations] Rule migrations storage (#197032)\n\n##
Summary\r\n\r\nissue:
https://github.com/elastic/security-team/issues/10654?reload=1\r\n\r\nImplements
the persistence layer for the rule migrations from other\r\nvendors, as
part of the SIEM Rule migrations effort.\r\n\r\n### Changes\r\n\r\n-
Schemas created for `SiemRuleMigration` document entity, along
with\r\n`ElasticRule` and `OriginalRule`.\r\n\r\n- New API
`/internal/siem_migrations/rules` was created:\r\n- `POST` -> Receives
an array of (original) rules and stores them with\r\n`status: pending`
to be processed. Responds with the `migration_id` that\r\nwill be used
to start the migration background task (implementation\r\ndetails here:
https://github.com/elastic/security-team/issues/10850).\r\n - `GET` ->
(to be implemented later)\r\n\r\n- New `SiemMigrationsService` added to
the `securitySolution` route\r\ncontext, to encapsulate all operations
related to SIEM migrations (We\r\nstart with _rule_ migrations, but
there are more \"kinds\" of SIEM\r\nmigrations in the pipeline:
_dashboards_, _saved queries_...). It\r\ncontains:\r\n\r\n-
`SiemRuleMigrationsService` to encapsulate all operations related
to\r\nSIEM rule migrations.\r\n- `RuleMigrationsDataStream` class to
manage the\r\n`.kibana.siem-rule-migrations-<spaceId>` data stream
operations using\r\n`DataStreamSpacesAdapter`.\r\n- It exposes a client
with abstracted operations that are exposed to the\r\nAPI routes:\r\n-
`create`: indexes an array of _SiemRuleMigration_ documents to
the\r\ndata stream\r\n- `search`: searches _SiemRuleMigration_ documents
by specific terms.\r\n\r\n> [!NOTE] \r\n> Without
`siemMigrationsEnabled` experimental flag the new API route\r\nwon't be
registered, and the `SiemRuleMigrationsService` _setup_ won't\r\nbe
called, so no index/component template will be installed to
ES.\r\n\r\n### Testing locally\r\n\r\nEnable the
flag\r\n```\r\nxpack.securitySolution.enableExperimental:
['siemMigrationsEnabled']\r\n```\r\n\r\n<details>\r\n <summary>Example
curl request</summary>\r\n\r\n```\r\ncurl --location
'http://elastic:changeme@localhost:5601/internal/siem_migrations/rules'
\\\r\n--header 'kbn-xsrf;' \\\r\n--header 'x-elastic-internal-origin:
security-solution' \\\r\n--header 'elastic-api-version: 1'
\\\r\n--header 'Content-Type: application/json' \\\r\n--data '[\r\n
{\r\n \"id\": \"f8c325ea-506e-4105-8ccf-da1492e90115\",\r\n \"vendor\":
\"splunk\",\r\n \"title\": \"Linux Auditd Add User Account Type\",\r\n
\"description\": \"The following analytic detects the suspicious add
user account type. This behavior is critical for a SOC to monitor
because it may indicate attempts to gain unauthorized access or maintain
control over a system. Such actions could be signs of malicious
activity. If confirmed, this could lead to serious consequences,
including a compromised system, unauthorized access to sensitive data,
or even a wider breach affecting the entire network. Detecting and
responding to these signs early is essential to prevent potential
security incidents.\",\r\n \"query\": \"sourcetype=\\\"linux:audit\\\"
type=ADD_USER \\n| rename hostname as dest \\n| stats count min(_time)
as firstTime max(_time) as lastTime by exe pid dest res UID type \\n|
`security_content_ctime(firstTime)` \\n|
`security_content_ctime(lastTime)`\\n| search *\",\r\n
\"query_language\":\"spl\",\r\n \"mitre_attack_ids\": [\r\n
\"T1136\"\r\n ]\r\n },\r\n {\r\n \"id\":
\"7b87c556-0ca4-47e0-b84c-6cd62a0a3e90\",\r\n \"vendor\":
\"splunk\",\r\n \"title\": \"Linux Auditd Change File Owner To
Root\",\r\n \"description\": \"The following analytic detects the use of
the '\\''chown'\\'' command to change a file owner to '\\''root'\\'' on
a Linux system. It leverages Linux Auditd telemetry, specifically
monitoring command-line executions and process details. This activity is
significant as it may indicate an attempt to escalate privileges by
adversaries, malware, or red teamers. If confirmed malicious, this
action could allow an attacker to gain root-level access, leading to
full control over the compromised host and potential persistence within
the environment.\",\r\n \"query\": \"`linux_auditd`
`linux_auditd_normalized_proctitle_process`\\r\\n| rename host as dest
\\r\\n| where LIKE (process_exec, \\\"%chown %root%\\\") \\r\\n| stats
count min(_time) as firstTime max(_time) as lastTime by process_exec
proctitle normalized_proctitle_delimiter dest \\r\\n|
`security_content_ctime(firstTime)` \\r\\n|
`security_content_ctime(lastTime)`\\r\\n|
`linux_auditd_change_file_owner_to_root_filter`\",\r\n
\"query_language\": \"spl\",\r\n \"mitre_attack_ids\": [\r\n
\"T1222\"\r\n ]\r\n }\r\n]'\r\n```\r\n</details>\r\n\r\nThe newly
created documents can be retrieved using Kibana
DevTools\r\nconsole:\r\n```\r\nGET
.kibana.siem-rule-migrations-default/_search\r\n```\r\n\r\n###
Screenshots\r\n\r\n\r\n![postman_screenshot](https://github.com/user-attachments/assets/9d3852d2-48ef-4955-b621-fdba6b249c65)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"d7109d67810cedfce1ad2bf9e8fd826b20aee06b","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat
Hunting","Team: SecuritySolution","backport:prev-minor","8.18
candidate","v8.17.0"],"number":197032,"url":"https://github.com/elastic/kibana/pull/197032","mergeCommit":{"message":"[SecuritySolution][SIEM
Migrations] Rule migrations storage (#197032)\n\n##
Summary\r\n\r\nissue:
https://github.com/elastic/security-team/issues/10654?reload=1\r\n\r\nImplements
the persistence layer for the rule migrations from other\r\nvendors, as
part of the SIEM Rule migrations effort.\r\n\r\n### Changes\r\n\r\n-
Schemas created for `SiemRuleMigration` document entity, along
with\r\n`ElasticRule` and `OriginalRule`.\r\n\r\n- New API
`/internal/siem_migrations/rules` was created:\r\n- `POST` -> Receives
an array of (original) rules and stores them with\r\n`status: pending`
to be processed. Responds with the `migration_id` that\r\nwill be used
to start the migration background task (implementation\r\ndetails here:
https://github.com/elastic/security-team/issues/10850).\r\n - `GET` ->
(to be implemented later)\r\n\r\n- New `SiemMigrationsService` added to
the `securitySolution` route\r\ncontext, to encapsulate all operations
related to SIEM migrations (We\r\nstart with _rule_ migrations, but
there are more \"kinds\" of SIEM\r\nmigrations in the pipeline:
_dashboards_, _saved queries_...). It\r\ncontains:\r\n\r\n-
`SiemRuleMigrationsService` to encapsulate all operations related
to\r\nSIEM rule migrations.\r\n- `RuleMigrationsDataStream` class to
manage the\r\n`.kibana.siem-rule-migrations-<spaceId>` data stream
operations using\r\n`DataStreamSpacesAdapter`.\r\n- It exposes a client
with abstracted operations that are exposed to the\r\nAPI routes:\r\n-
`create`: indexes an array of _SiemRuleMigration_ documents to
the\r\ndata stream\r\n- `search`: searches _SiemRuleMigration_ documents
by specific terms.\r\n\r\n> [!NOTE] \r\n> Without
`siemMigrationsEnabled` experimental flag the new API route\r\nwon't be
registered, and the `SiemRuleMigrationsService` _setup_ won't\r\nbe
called, so no index/component template will be installed to
ES.\r\n\r\n### Testing locally\r\n\r\nEnable the
flag\r\n```\r\nxpack.securitySolution.enableExperimental:
['siemMigrationsEnabled']\r\n```\r\n\r\n<details>\r\n <summary>Example
curl request</summary>\r\n\r\n```\r\ncurl --location
'http://elastic:changeme@localhost:5601/internal/siem_migrations/rules'
\\\r\n--header 'kbn-xsrf;' \\\r\n--header 'x-elastic-internal-origin:
security-solution' \\\r\n--header 'elastic-api-version: 1'
\\\r\n--header 'Content-Type: application/json' \\\r\n--data '[\r\n
{\r\n \"id\": \"f8c325ea-506e-4105-8ccf-da1492e90115\",\r\n \"vendor\":
\"splunk\",\r\n \"title\": \"Linux Auditd Add User Account Type\",\r\n
\"description\": \"The following analytic detects the suspicious add
user account type. This behavior is critical for a SOC to monitor
because it may indicate attempts to gain unauthorized access or maintain
control over a system. Such actions could be signs of malicious
activity. If confirmed, this could lead to serious consequences,
including a compromised system, unauthorized access to sensitive data,
or even a wider breach affecting the entire network. Detecting and
responding to these signs early is essential to prevent potential
security incidents.\",\r\n \"query\": \"sourcetype=\\\"linux:audit\\\"
type=ADD_USER \\n| rename hostname as dest \\n| stats count min(_time)
as firstTime max(_time) as lastTime by exe pid dest res UID type \\n|
`security_content_ctime(firstTime)` \\n|
`security_content_ctime(lastTime)`\\n| search *\",\r\n
\"query_language\":\"spl\",\r\n \"mitre_attack_ids\": [\r\n
\"T1136\"\r\n ]\r\n },\r\n {\r\n \"id\":
\"7b87c556-0ca4-47e0-b84c-6cd62a0a3e90\",\r\n \"vendor\":
\"splunk\",\r\n \"title\": \"Linux Auditd Change File Owner To
Root\",\r\n \"description\": \"The following analytic detects the use of
the '\\''chown'\\'' command to change a file owner to '\\''root'\\'' on
a Linux system. It leverages Linux Auditd telemetry, specifically
monitoring command-line executions and process details. This activity is
significant as it may indicate an attempt to escalate privileges by
adversaries, malware, or red teamers. If confirmed malicious, this
action could allow an attacker to gain root-level access, leading to
full control over the compromised host and potential persistence within
the environment.\",\r\n \"query\": \"`linux_auditd`
`linux_auditd_normalized_proctitle_process`\\r\\n| rename host as dest
\\r\\n| where LIKE (process_exec, \\\"%chown %root%\\\") \\r\\n| stats
count min(_time) as firstTime max(_time) as lastTime by process_exec
proctitle normalized_proctitle_delimiter dest \\r\\n|
`security_content_ctime(firstTime)` \\r\\n|
`security_content_ctime(lastTime)`\\r\\n|
`linux_auditd_change_file_owner_to_root_filter`\",\r\n
\"query_language\": \"spl\",\r\n \"mitre_attack_ids\": [\r\n
\"T1222\"\r\n ]\r\n }\r\n]'\r\n```\r\n</details>\r\n\r\nThe newly
created documents can be retrieved using Kibana
DevTools\r\nconsole:\r\n```\r\nGET
.kibana.siem-rule-migrations-default/_search\r\n```\r\n\r\n###
Screenshots\r\n\r\n\r\n![postman_screenshot](https://github.com/user-attachments/assets/9d3852d2-48ef-4955-b621-fdba6b249c65)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"d7109d67810cedfce1ad2bf9e8fd826b20aee06b"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197032","number":197032,"mergeCommit":{"message":"[SecuritySolution][SIEM
Migrations] Rule migrations storage (#197032)\n\n##
Summary\r\n\r\nissue:
https://github.com/elastic/security-team/issues/10654?reload=1\r\n\r\nImplements
the persistence layer for the rule migrations from other\r\nvendors, as
part of the SIEM Rule migrations effort.\r\n\r\n### Changes\r\n\r\n-
Schemas created for `SiemRuleMigration` document entity, along
with\r\n`ElasticRule` and `OriginalRule`.\r\n\r\n- New API
`/internal/siem_migrations/rules` was created:\r\n- `POST` -> Receives
an array of (original) rules and stores them with\r\n`status: pending`
to be processed. Responds with the `migration_id` that\r\nwill be used
to start the migration background task (implementation\r\ndetails here:
https://github.com/elastic/security-team/issues/10850).\r\n - `GET` ->
(to be implemented later)\r\n\r\n- New `SiemMigrationsService` added to
the `securitySolution` route\r\ncontext, to encapsulate all operations
related to SIEM migrations (We\r\nstart with _rule_ migrations, but
there are more \"kinds\" of SIEM\r\nmigrations in the pipeline:
_dashboards_, _saved queries_...). It\r\ncontains:\r\n\r\n-
`SiemRuleMigrationsService` to encapsulate all operations related
to\r\nSIEM rule migrations.\r\n- `RuleMigrationsDataStream` class to
manage the\r\n`.kibana.siem-rule-migrations-<spaceId>` data stream
operations using\r\n`DataStreamSpacesAdapter`.\r\n- It exposes a client
with abstracted operations that are exposed to the\r\nAPI routes:\r\n-
`create`: indexes an array of _SiemRuleMigration_ documents to
the\r\ndata stream\r\n- `search`: searches _SiemRuleMigration_ documents
by specific terms.\r\n\r\n> [!NOTE] \r\n> Without
`siemMigrationsEnabled` experimental flag the new API route\r\nwon't be
registered, and the `SiemRuleMigrationsService` _setup_ won't\r\nbe
called, so no index/component template will be installed to
ES.\r\n\r\n### Testing locally\r\n\r\nEnable the
flag\r\n```\r\nxpack.securitySolution.enableExperimental:
['siemMigrationsEnabled']\r\n```\r\n\r\n<details>\r\n <summary>Example
curl request</summary>\r\n\r\n```\r\ncurl --location
'http://elastic:changeme@localhost:5601/internal/siem_migrations/rules'
\\\r\n--header 'kbn-xsrf;' \\\r\n--header 'x-elastic-internal-origin:
security-solution' \\\r\n--header 'elastic-api-version: 1'
\\\r\n--header 'Content-Type: application/json' \\\r\n--data '[\r\n
{\r\n \"id\": \"f8c325ea-506e-4105-8ccf-da1492e90115\",\r\n \"vendor\":
\"splunk\",\r\n \"title\": \"Linux Auditd Add User Account Type\",\r\n
\"description\": \"The following analytic detects the suspicious add
user account type. This behavior is critical for a SOC to monitor
because it may indicate attempts to gain unauthorized access or maintain
control over a system. Such actions could be signs of malicious
activity. If confirmed, this could lead to serious consequences,
including a compromised system, unauthorized access to sensitive data,
or even a wider breach affecting the entire network. Detecting and
responding to these signs early is essential to prevent potential
security incidents.\",\r\n \"query\": \"sourcetype=\\\"linux:audit\\\"
type=ADD_USER \\n| rename hostname as dest \\n| stats count min(_time)
as firstTime max(_time) as lastTime by exe pid dest res UID type \\n|
`security_content_ctime(firstTime)` \\n|
`security_content_ctime(lastTime)`\\n| search *\",\r\n
\"query_language\":\"spl\",\r\n \"mitre_attack_ids\": [\r\n
\"T1136\"\r\n ]\r\n },\r\n {\r\n \"id\":
\"7b87c556-0ca4-47e0-b84c-6cd62a0a3e90\",\r\n \"vendor\":
\"splunk\",\r\n \"title\": \"Linux Auditd Change File Owner To
Root\",\r\n \"description\": \"The following analytic detects the use of
the '\\''chown'\\'' command to change a file owner to '\\''root'\\'' on
a Linux system. It leverages Linux Auditd telemetry, specifically
monitoring command-line executions and process details. This activity is
significant as it may indicate an attempt to escalate privileges by
adversaries, malware, or red teamers. If confirmed malicious, this
action could allow an attacker to gain root-level access, leading to
full control over the compromised host and potential persistence within
the environment.\",\r\n \"query\": \"`linux_auditd`
`linux_auditd_normalized_proctitle_process`\\r\\n| rename host as dest
\\r\\n| where LIKE (process_exec, \\\"%chown %root%\\\") \\r\\n| stats
count min(_time) as firstTime max(_time) as lastTime by process_exec
proctitle normalized_proctitle_delimiter dest \\r\\n|
`security_content_ctime(firstTime)` \\r\\n|
`security_content_ctime(lastTime)`\\r\\n|
`linux_auditd_change_file_owner_to_root_filter`\",\r\n
\"query_language\": \"spl\",\r\n \"mitre_attack_ids\": [\r\n
\"T1222\"\r\n ]\r\n }\r\n]'\r\n```\r\n</details>\r\n\r\nThe newly
created documents can be retrieved using Kibana
DevTools\r\nconsole:\r\n```\r\nGET
.kibana.siem-rule-migrations-default/_search\r\n```\r\n\r\n###
Screenshots\r\n\r\n\r\n![postman_screenshot](https://github.com/user-attachments/assets/9d3852d2-48ef-4955-b621-fdba6b249c65)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"d7109d67810cedfce1ad2bf9e8fd826b20aee06b"}},{"branch":"8.x","label":"v8.17.0","labelRegex":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
2024-10-24 07:34:55 -05:00
Kibana Machine
4c620992ab
[8.x] [Security Solution] Removes unmaintained tests (#197408) (#197600)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] Removes unmaintained tests
(#197408)](https://github.com/elastic/kibana/pull/197408)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Gloria
Hornero","email":"gloria.hornero@elastic.co"},"sourceCommit":{"committedDate":"2024-10-24T10:46:30Z","message":"[Security
Solution] Removes unmaintained tests (#197408)\n\n##
Summary\r\n\r\nDeleting some tests that we don't maintain since we don't
use the\r\n`test_serverless` folder for our serverless tests, in that
way we'll\r\nprevent misunderstandings regarding ownership of
it.","sha":"6ae07b382dc134a50b854c56f61cbc78225acbd9","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:
SecuritySolution","backport:prev-major","v8.16.0","v8.17.0"],"title":"[Security
Solution] Removes unmaintained
tests","number":197408,"url":"https://github.com/elastic/kibana/pull/197408","mergeCommit":{"message":"[Security
Solution] Removes unmaintained tests (#197408)\n\n##
Summary\r\n\r\nDeleting some tests that we don't maintain since we don't
use the\r\n`test_serverless` folder for our serverless tests, in that
way we'll\r\nprevent misunderstandings regarding ownership of
it.","sha":"6ae07b382dc134a50b854c56f61cbc78225acbd9"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197408","number":197408,"mergeCommit":{"message":"[Security
Solution] Removes unmaintained tests (#197408)\n\n##
Summary\r\n\r\nDeleting some tests that we don't maintain since we don't
use the\r\n`test_serverless` folder for our serverless tests, in that
way we'll\r\nprevent misunderstandings regarding ownership of
it.","sha":"6ae07b382dc134a50b854c56f61cbc78225acbd9"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Gloria Hornero <gloria.hornero@elastic.co>
2024-10-24 07:31:54 -05:00
Kibana Machine
7e238131e6
[8.x] [ResponseOps][Rules] Create the rule params package (#196971) (#197367)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[ResponseOps][Rules] Create the rule params package
(#196971)](https://github.com/elastic/kibana/pull/196971)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Christos
Nasikas","email":"christos.nasikas@elastic.co"},"sourceCommit":{"committedDate":"2024-10-23T06:44:38Z","message":"[ResponseOps][Rules]
Create the rule params package (#196971)\n\n## Summary\r\n\r\nThis PR
creates a package containing the schema of the params of all\r\nrule
types. It starts as
`schema.recordOf(schema.string(),\r\nschema.maybe(schema.any()))` which
is the current one. In subsequent\r\nPRs, the schema will be updated to
`schema.oneOf([apmRuleType,\r\nesQueryRuleType, ....])`. I also
substituted the definition of `params`\r\nin the alerting plugin with
the `params` exported from the package.\r\n\r\nTowards:
https://github.com/elastic/kibana/issues/187356\r\nFixes:
https://github.com/elastic/kibana/issues/195183\r\n\r\n### For
maintainers\r\n\r\n- [x] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)\r\n-
[ ] This will appear in the **Release Notes** and follow
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a7a81c28973fd9b5bfc585b8e9b3cb7c5a86eb0b","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","v9.0.0","Feature:Alerting/RulesFramework","backport:prev-minor","v8.17.0"],"title":"[ResponseOps][Rules]
Create the rule params
package","number":196971,"url":"https://github.com/elastic/kibana/pull/196971","mergeCommit":{"message":"[ResponseOps][Rules]
Create the rule params package (#196971)\n\n## Summary\r\n\r\nThis PR
creates a package containing the schema of the params of all\r\nrule
types. It starts as
`schema.recordOf(schema.string(),\r\nschema.maybe(schema.any()))` which
is the current one. In subsequent\r\nPRs, the schema will be updated to
`schema.oneOf([apmRuleType,\r\nesQueryRuleType, ....])`. I also
substituted the definition of `params`\r\nin the alerting plugin with
the `params` exported from the package.\r\n\r\nTowards:
https://github.com/elastic/kibana/issues/187356\r\nFixes:
https://github.com/elastic/kibana/issues/195183\r\n\r\n### For
maintainers\r\n\r\n- [x] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)\r\n-
[ ] This will appear in the **Release Notes** and follow
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a7a81c28973fd9b5bfc585b8e9b3cb7c5a86eb0b"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196971","number":196971,"mergeCommit":{"message":"[ResponseOps][Rules]
Create the rule params package (#196971)\n\n## Summary\r\n\r\nThis PR
creates a package containing the schema of the params of all\r\nrule
types. It starts as
`schema.recordOf(schema.string(),\r\nschema.maybe(schema.any()))` which
is the current one. In subsequent\r\nPRs, the schema will be updated to
`schema.oneOf([apmRuleType,\r\nesQueryRuleType, ....])`. I also
substituted the definition of `params`\r\nin the alerting plugin with
the `params` exported from the package.\r\n\r\nTowards:
https://github.com/elastic/kibana/issues/187356\r\nFixes:
https://github.com/elastic/kibana/issues/195183\r\n\r\n### For
maintainers\r\n\r\n- [x] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)\r\n-
[ ] This will appear in the **Release Notes** and follow
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a7a81c28973fd9b5bfc585b8e9b3cb7c5a86eb0b"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2024-10-23 03:28:43 -05:00
Cauê Marcondes
0641343906
[8.x] [Inventory] Adding initial e2e structure (#196560) (#196808)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Inventory] Adding initial e2e structure
(#196560)](https://github.com/elastic/kibana/pull/196560)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Cauê
Marcondes","email":"55978943+cauemarcondes@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-17T13:50:11Z","message":"[Inventory]
Adding initial e2e structure (#196560)\n\ncloses
https://github.com/elastic/kibana/issues/193992\r\n\r\nHow to open
cypress dashboard locally:\r\n```\r\nnode
x-pack/plugins/observability_solution/inventory/scripts/test/e2e.js
--open \r\n```\r\n\r\nHow to run cypress tests:\r\n```\r\nnode
x-pack/plugins/observability_solution/inventory/scripts/test/e2e.js\r\n```\r\n\r\nHow
to run cypress tests multiple times:\r\n```\r\nnode
x-pack/plugins/observability_solution/inventory/scripts/test/e2e.js
--server\r\nnode
x-pack/plugins/observability_solution/inventory/scripts/test/e2e.js
--runner --times=X\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"3bfa7c00181599541c924d36b593205fd5d9fed4","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","v8.16.0"],"number":196560,"url":"https://github.com/elastic/kibana/pull/196560","mergeCommit":{"message":"[Inventory]
Adding initial e2e structure (#196560)\n\ncloses
https://github.com/elastic/kibana/issues/193992\r\n\r\nHow to open
cypress dashboard locally:\r\n```\r\nnode
x-pack/plugins/observability_solution/inventory/scripts/test/e2e.js
--open \r\n```\r\n\r\nHow to run cypress tests:\r\n```\r\nnode
x-pack/plugins/observability_solution/inventory/scripts/test/e2e.js\r\n```\r\n\r\nHow
to run cypress tests multiple times:\r\n```\r\nnode
x-pack/plugins/observability_solution/inventory/scripts/test/e2e.js
--server\r\nnode
x-pack/plugins/observability_solution/inventory/scripts/test/e2e.js
--runner --times=X\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"3bfa7c00181599541c924d36b593205fd5d9fed4"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196560","number":196560,"mergeCommit":{"message":"[Inventory]
Adding initial e2e structure (#196560)\n\ncloses
https://github.com/elastic/kibana/issues/193992\r\n\r\nHow to open
cypress dashboard locally:\r\n```\r\nnode
x-pack/plugins/observability_solution/inventory/scripts/test/e2e.js
--open \r\n```\r\n\r\nHow to run cypress tests:\r\n```\r\nnode
x-pack/plugins/observability_solution/inventory/scripts/test/e2e.js\r\n```\r\n\r\nHow
to run cypress tests multiple times:\r\n```\r\nnode
x-pack/plugins/observability_solution/inventory/scripts/test/e2e.js
--server\r\nnode
x-pack/plugins/observability_solution/inventory/scripts/test/e2e.js
--runner --times=X\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"3bfa7c00181599541c924d36b593205fd5d9fed4"}},{"branch":"8.16","label":"v8.16.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-10-18 09:02:09 -05:00
Alex Szabo
df228d4a7c
[8.x] Remove CODEOWNERS (#196073)
## Summary
Remove CODEOWNERS. It shouldn't be present in legacy branches.
2024-10-14 12:09:47 +02:00
Kibana Machine
0c6ab08a02
[8.x] [Connectors][GenAI] Inference Service Kibana connector (#189027) (#196035)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Connectors][GenAI] Inference Service Kibana connector
(#189027)](https://github.com/elastic/kibana/pull/189027)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Yuliia
Naumenko","email":"jo.naumenko@gmail.com"},"sourceCommit":{"committedDate":"2024-10-13T20:39:09Z","message":"[Connectors][GenAI]
Inference Service Kibana connector (#189027)\n\n## Summary\r\nResolves
https://github.com/elastic/kibana/issues/188043\r\n\r\nThis PR adds new
connector which is define integration with Elastic\r\nInference Endpoint
via
[Inference\r\nAPIs](https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html)\r\nThe
lifecycle of the Inference Endpoint are managed by the
connector\r\nregistered handlers:\r\n\r\n- `preSaveHook`
-\r\n[create](https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference-api.html)\r\nnew
Inference Endpoint in the connector create mode (`isEdit ===
false`)\r\nand\r\n[delete](https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference-api.html)+[create](https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference-api.html)\r\nin
the connector edit mode (`isEdit === true`)\r\n- `postSaveHook` - check
if the connector SO was created/updated and if\r\nnot removes Inference
Endpoint from preSaveHook\r\n- `postDeleteHook`
-\r\n[delete](https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference-api.html)\r\nInference
Endpoint if connector was deleted.\r\n\r\nIn the Kibana Stack Management
Connectors, its represented with the new\r\ncard (Technical preview
badge):\r\n\r\n<img width=\"1261\" alt=\"Screenshot 2024-09-27 at 2 11
12 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/dcbcce1f-06e7-4d08-8b77-0ba4105354f8\">\r\n\r\nTo
simplify the future integration with AI Assistants, the
Connector\r\nconsists from the two main UI parts: provider selector and
required\r\nprovider settings, which will be always displayed\r\n<img
width=\"862\" alt=\"Screenshot 2024-10-07 at 7 59
09 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/87bae493-c642-479e-b28f-6150354608dd\">\r\n\r\nand
Additional options, which contains optional provider settings
and\r\nTask Type configuration:\r\n\r\n<img width=\"861\"
alt=\"Screenshot 2024-10-07 at 8 00
15 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/2341c034-6198-4731-8ce7-e22e6c6fb20f\">\r\n\r\n\r\nsubActions
corresponds to the different taskTypes Inference API\r\nsupports. Each
of the task type has its own Inference Perform params.\r\nCurrently
added:\r\n\r\n- completion & completionStream\r\n- rerank\r\n-
text_embedding\r\n- sparse_embedding\r\n\r\nFollow up work:\r\n\r\n1.
Collapse/expand Additional options, when the connector
flyout/modal\r\nhas AI Assistant as a context (path through the
extending context\r\nimplementation on the connector framework
level)\r\n2. Add support for additional params for Completion subAction
to be able\r\nto path functions\r\n3. Add support for tokens usage
Dashboard, when inference API will\r\ninclude the used tokens count in
the response\r\n4. Add functionality and UX for migration from existing
specific AI\r\nconnectors to the Inference connector with proper
provider and\r\ncompletion task\r\n5. Integrate Connector with the AI
Assistants\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
István Zoltán Szabó <istvan.szabo@elastic.co>\r\nCo-authored-by: Liam
Thompson
<32779855+leemthompo@users.noreply.github.com>\r\nCo-authored-by: Steph
Milovic
<stephanie.milovic@elastic.co>","sha":"288d41d61ec2389b2e8856da75fd0f3107f9c484","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["v9.0.0","release_note:feature","Feature:Actions/ConnectorTypes","8.16
candidate","v8.16.0","backport:version"],"title":"[Connectors][GenAI]
Inference Service Kibana
connector","number":189027,"url":"https://github.com/elastic/kibana/pull/189027","mergeCommit":{"message":"[Connectors][GenAI]
Inference Service Kibana connector (#189027)\n\n## Summary\r\nResolves
https://github.com/elastic/kibana/issues/188043\r\n\r\nThis PR adds new
connector which is define integration with Elastic\r\nInference Endpoint
via
[Inference\r\nAPIs](https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html)\r\nThe
lifecycle of the Inference Endpoint are managed by the
connector\r\nregistered handlers:\r\n\r\n- `preSaveHook`
-\r\n[create](https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference-api.html)\r\nnew
Inference Endpoint in the connector create mode (`isEdit ===
false`)\r\nand\r\n[delete](https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference-api.html)+[create](https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference-api.html)\r\nin
the connector edit mode (`isEdit === true`)\r\n- `postSaveHook` - check
if the connector SO was created/updated and if\r\nnot removes Inference
Endpoint from preSaveHook\r\n- `postDeleteHook`
-\r\n[delete](https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference-api.html)\r\nInference
Endpoint if connector was deleted.\r\n\r\nIn the Kibana Stack Management
Connectors, its represented with the new\r\ncard (Technical preview
badge):\r\n\r\n<img width=\"1261\" alt=\"Screenshot 2024-09-27 at 2 11
12 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/dcbcce1f-06e7-4d08-8b77-0ba4105354f8\">\r\n\r\nTo
simplify the future integration with AI Assistants, the
Connector\r\nconsists from the two main UI parts: provider selector and
required\r\nprovider settings, which will be always displayed\r\n<img
width=\"862\" alt=\"Screenshot 2024-10-07 at 7 59
09 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/87bae493-c642-479e-b28f-6150354608dd\">\r\n\r\nand
Additional options, which contains optional provider settings
and\r\nTask Type configuration:\r\n\r\n<img width=\"861\"
alt=\"Screenshot 2024-10-07 at 8 00
15 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/2341c034-6198-4731-8ce7-e22e6c6fb20f\">\r\n\r\n\r\nsubActions
corresponds to the different taskTypes Inference API\r\nsupports. Each
of the task type has its own Inference Perform params.\r\nCurrently
added:\r\n\r\n- completion & completionStream\r\n- rerank\r\n-
text_embedding\r\n- sparse_embedding\r\n\r\nFollow up work:\r\n\r\n1.
Collapse/expand Additional options, when the connector
flyout/modal\r\nhas AI Assistant as a context (path through the
extending context\r\nimplementation on the connector framework
level)\r\n2. Add support for additional params for Completion subAction
to be able\r\nto path functions\r\n3. Add support for tokens usage
Dashboard, when inference API will\r\ninclude the used tokens count in
the response\r\n4. Add functionality and UX for migration from existing
specific AI\r\nconnectors to the Inference connector with proper
provider and\r\ncompletion task\r\n5. Integrate Connector with the AI
Assistants\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
István Zoltán Szabó <istvan.szabo@elastic.co>\r\nCo-authored-by: Liam
Thompson
<32779855+leemthompo@users.noreply.github.com>\r\nCo-authored-by: Steph
Milovic
<stephanie.milovic@elastic.co>","sha":"288d41d61ec2389b2e8856da75fd0f3107f9c484"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/189027","number":189027,"mergeCommit":{"message":"[Connectors][GenAI]
Inference Service Kibana connector (#189027)\n\n## Summary\r\nResolves
https://github.com/elastic/kibana/issues/188043\r\n\r\nThis PR adds new
connector which is define integration with Elastic\r\nInference Endpoint
via
[Inference\r\nAPIs](https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html)\r\nThe
lifecycle of the Inference Endpoint are managed by the
connector\r\nregistered handlers:\r\n\r\n- `preSaveHook`
-\r\n[create](https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference-api.html)\r\nnew
Inference Endpoint in the connector create mode (`isEdit ===
false`)\r\nand\r\n[delete](https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference-api.html)+[create](https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference-api.html)\r\nin
the connector edit mode (`isEdit === true`)\r\n- `postSaveHook` - check
if the connector SO was created/updated and if\r\nnot removes Inference
Endpoint from preSaveHook\r\n- `postDeleteHook`
-\r\n[delete](https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference-api.html)\r\nInference
Endpoint if connector was deleted.\r\n\r\nIn the Kibana Stack Management
Connectors, its represented with the new\r\ncard (Technical preview
badge):\r\n\r\n<img width=\"1261\" alt=\"Screenshot 2024-09-27 at 2 11
12 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/dcbcce1f-06e7-4d08-8b77-0ba4105354f8\">\r\n\r\nTo
simplify the future integration with AI Assistants, the
Connector\r\nconsists from the two main UI parts: provider selector and
required\r\nprovider settings, which will be always displayed\r\n<img
width=\"862\" alt=\"Screenshot 2024-10-07 at 7 59
09 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/87bae493-c642-479e-b28f-6150354608dd\">\r\n\r\nand
Additional options, which contains optional provider settings
and\r\nTask Type configuration:\r\n\r\n<img width=\"861\"
alt=\"Screenshot 2024-10-07 at 8 00
15 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/2341c034-6198-4731-8ce7-e22e6c6fb20f\">\r\n\r\n\r\nsubActions
corresponds to the different taskTypes Inference API\r\nsupports. Each
of the task type has its own Inference Perform params.\r\nCurrently
added:\r\n\r\n- completion & completionStream\r\n- rerank\r\n-
text_embedding\r\n- sparse_embedding\r\n\r\nFollow up work:\r\n\r\n1.
Collapse/expand Additional options, when the connector
flyout/modal\r\nhas AI Assistant as a context (path through the
extending context\r\nimplementation on the connector framework
level)\r\n2. Add support for additional params for Completion subAction
to be able\r\nto path functions\r\n3. Add support for tokens usage
Dashboard, when inference API will\r\ninclude the used tokens count in
the response\r\n4. Add functionality and UX for migration from existing
specific AI\r\nconnectors to the Inference connector with proper
provider and\r\ncompletion task\r\n5. Integrate Connector with the AI
Assistants\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
István Zoltán Szabó <istvan.szabo@elastic.co>\r\nCo-authored-by: Liam
Thompson
<32779855+leemthompo@users.noreply.github.com>\r\nCo-authored-by: Steph
Milovic
<stephanie.milovic@elastic.co>","sha":"288d41d61ec2389b2e8856da75fd0f3107f9c484"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Yuliia Naumenko <jo.naumenko@gmail.com>
2024-10-13 17:21:49 -05:00
Kibana Machine
73d98d3d8e
[8.x] [Cloud Security] Graph visualization and API (#195307) (#196015)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] Graph visualization and API
(#195307)](https://github.com/elastic/kibana/pull/195307)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Kfir
Peled","email":"61654899+kfirpeled@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-12T03:37:02Z","message":"[Cloud
Security] Graph visualization and API (#195307)\n\n##
Summary\r\n\r\nThis PR adds:\r\n- Graph visualization component using
`xyflow`, and layouts the graph\r\nusing `dagre`.\r\n- API that supports
the graph visualization\r\n- API tests\r\n- Serverless API
tests\r\n\r\n**List of open issues (will be tracked in a different
ticket):**\r\n- Identify if `related.hosts`, `related.ip` and
`related.user` are\r\nmapped before the query. (can be fixed
by\r\nhttps://github.com/elastic/elasticsearch/issues/112912)\r\n-
Update nodes rendering to match recent figma changes\r\n- Return 404
when feature is not enabled\r\n- Add keyboard accessibility\r\n- Resolve
axe failures (run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n\r\n###
How to test\r\n\r\nYou can view the graph using
storybook's\r\n[playground](https://supreme-adventure-8qjmlp1.pages.github.io/graph-storybook/?path=/story/components-graph-components-dagree-layout-graph--graph-stacked-edge-cases).\r\n\r\nTo
test this PR you can run\r\n\r\n```\r\nyarn storybook
cloud_security_posture_packages\r\n```\r\n\r\nTo test the API you can
use the mocked data\r\n\r\n```bash\r\nnode scripts/es_archiver load
x-pack/test/cloud_security_posture_api/es_archives/logs_gcp_audit \\
\r\n--es-url http://elastic:changeme@localhost:9200 \\\r\n--kibana-url
http://elastic:changeme@localhost:5601\r\n```\r\n\r\nAnd through dev
tools:\r\n\r\n```\r\nPOST
kbn:/internal/cloud_security_posture/graph?apiVersion=1\r\n{\r\n
\"query\": {\r\n \"actorIds\": [\"admin@example.com\"],\r\n
\"eventIds\": [\"\"],\r\n \"start\": \"now-1y/y\",\r\n \"end\":
\"now/d\"\r\n }\r\n}\r\n```\r\n\r\n### Checklist\r\n\r\nDelete any items
that are not applicable to this PR.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[x] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"be0eadfb9fa08f0d73383884dc67bf2005b7daba","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Cloud
Security] Graph visualization and
API","number":195307,"url":"https://github.com/elastic/kibana/pull/195307","mergeCommit":{"message":"[Cloud
Security] Graph visualization and API (#195307)\n\n##
Summary\r\n\r\nThis PR adds:\r\n- Graph visualization component using
`xyflow`, and layouts the graph\r\nusing `dagre`.\r\n- API that supports
the graph visualization\r\n- API tests\r\n- Serverless API
tests\r\n\r\n**List of open issues (will be tracked in a different
ticket):**\r\n- Identify if `related.hosts`, `related.ip` and
`related.user` are\r\nmapped before the query. (can be fixed
by\r\nhttps://github.com/elastic/elasticsearch/issues/112912)\r\n-
Update nodes rendering to match recent figma changes\r\n- Return 404
when feature is not enabled\r\n- Add keyboard accessibility\r\n- Resolve
axe failures (run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n\r\n###
How to test\r\n\r\nYou can view the graph using
storybook's\r\n[playground](https://supreme-adventure-8qjmlp1.pages.github.io/graph-storybook/?path=/story/components-graph-components-dagree-layout-graph--graph-stacked-edge-cases).\r\n\r\nTo
test this PR you can run\r\n\r\n```\r\nyarn storybook
cloud_security_posture_packages\r\n```\r\n\r\nTo test the API you can
use the mocked data\r\n\r\n```bash\r\nnode scripts/es_archiver load
x-pack/test/cloud_security_posture_api/es_archives/logs_gcp_audit \\
\r\n--es-url http://elastic:changeme@localhost:9200 \\\r\n--kibana-url
http://elastic:changeme@localhost:5601\r\n```\r\n\r\nAnd through dev
tools:\r\n\r\n```\r\nPOST
kbn:/internal/cloud_security_posture/graph?apiVersion=1\r\n{\r\n
\"query\": {\r\n \"actorIds\": [\"admin@example.com\"],\r\n
\"eventIds\": [\"\"],\r\n \"start\": \"now-1y/y\",\r\n \"end\":
\"now/d\"\r\n }\r\n}\r\n```\r\n\r\n### Checklist\r\n\r\nDelete any items
that are not applicable to this PR.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[x] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"be0eadfb9fa08f0d73383884dc67bf2005b7daba"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195307","number":195307,"mergeCommit":{"message":"[Cloud
Security] Graph visualization and API (#195307)\n\n##
Summary\r\n\r\nThis PR adds:\r\n- Graph visualization component using
`xyflow`, and layouts the graph\r\nusing `dagre`.\r\n- API that supports
the graph visualization\r\n- API tests\r\n- Serverless API
tests\r\n\r\n**List of open issues (will be tracked in a different
ticket):**\r\n- Identify if `related.hosts`, `related.ip` and
`related.user` are\r\nmapped before the query. (can be fixed
by\r\nhttps://github.com/elastic/elasticsearch/issues/112912)\r\n-
Update nodes rendering to match recent figma changes\r\n- Return 404
when feature is not enabled\r\n- Add keyboard accessibility\r\n- Resolve
axe failures (run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n\r\n###
How to test\r\n\r\nYou can view the graph using
storybook's\r\n[playground](https://supreme-adventure-8qjmlp1.pages.github.io/graph-storybook/?path=/story/components-graph-components-dagree-layout-graph--graph-stacked-edge-cases).\r\n\r\nTo
test this PR you can run\r\n\r\n```\r\nyarn storybook
cloud_security_posture_packages\r\n```\r\n\r\nTo test the API you can
use the mocked data\r\n\r\n```bash\r\nnode scripts/es_archiver load
x-pack/test/cloud_security_posture_api/es_archives/logs_gcp_audit \\
\r\n--es-url http://elastic:changeme@localhost:9200 \\\r\n--kibana-url
http://elastic:changeme@localhost:5601\r\n```\r\n\r\nAnd through dev
tools:\r\n\r\n```\r\nPOST
kbn:/internal/cloud_security_posture/graph?apiVersion=1\r\n{\r\n
\"query\": {\r\n \"actorIds\": [\"admin@example.com\"],\r\n
\"eventIds\": [\"\"],\r\n \"start\": \"now-1y/y\",\r\n \"end\":
\"now/d\"\r\n }\r\n}\r\n```\r\n\r\n### Checklist\r\n\r\nDelete any items
that are not applicable to this PR.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[x] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"be0eadfb9fa08f0d73383884dc67bf2005b7daba"}},{"url":"https://github.com/elastic/kibana/pull/196012","number":196012,"branch":"8.x","state":"OPEN"}]}]
BACKPORT-->

Co-authored-by: Kfir Peled <61654899+kfirpeled@users.noreply.github.com>
2024-10-12 12:41:22 -05:00
Kibana Machine
4951ab959c
[8.x] [Search Assistant] Use scopes to modify behavior contextually (#195785) (#196014)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Search Assistant] Use scopes to modify behavior contextually
(#195785)](https://github.com/elastic/kibana/pull/195785)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Sander
Philipse","email":"94373878+sphilipse@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-11T23:09:06Z","message":"[Search
Assistant] Use scopes to modify behavior contextually (#195785)\n\n##
Summary\r\n\r\nThis actually uses the Search Assistant scope to modify
the assistant's\r\nbehavior depending on the context they're in. The
assistant now:\r\n- Defaults to Observability mode\r\n- Is a Search
assistant in the Search pages\r\n- Switches dynamically, changing
available functions, prompts and\r\ninstructions based on
context\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"ee341d5f801ca42ed26acf0544b0bc59948d0214","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","Team:Obs
AI
Assistant","ci:project-deploy-observability","v8.16.0","backport:version"],"title":"[Search
Assistant] Use scopes to modify behavior
contextually","number":195785,"url":"https://github.com/elastic/kibana/pull/195785","mergeCommit":{"message":"[Search
Assistant] Use scopes to modify behavior contextually (#195785)\n\n##
Summary\r\n\r\nThis actually uses the Search Assistant scope to modify
the assistant's\r\nbehavior depending on the context they're in. The
assistant now:\r\n- Defaults to Observability mode\r\n- Is a Search
assistant in the Search pages\r\n- Switches dynamically, changing
available functions, prompts and\r\ninstructions based on
context\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"ee341d5f801ca42ed26acf0544b0bc59948d0214"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195785","number":195785,"mergeCommit":{"message":"[Search
Assistant] Use scopes to modify behavior contextually (#195785)\n\n##
Summary\r\n\r\nThis actually uses the Search Assistant scope to modify
the assistant's\r\nbehavior depending on the context they're in. The
assistant now:\r\n- Defaults to Observability mode\r\n- Is a Search
assistant in the Search pages\r\n- Switches dynamically, changing
available functions, prompts and\r\ninstructions based on
context\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"ee341d5f801ca42ed26acf0544b0bc59948d0214"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/196013","number":196013,"state":"OPEN"}]}]
BACKPORT-->

Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
2024-10-12 10:42:43 -05:00
Sander Philipse
8fef06fa55
[8.x] Extract AI assistant to package (#194552) (#196011)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Extract AI assistant to package
(#194552)](https://github.com/elastic/kibana/pull/194552)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Sander
Philipse","email":"94373878+sphilipse@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-10T13:11:49Z","message":"Extract
AI assistant to package (#194552)\n\n## Summary\r\n\r\nThis extracts the
Observability AI Assistant into a shared package so\r\nSearch and
Observability can both consume it.\r\n\r\nA few notes:\r\n\r\nThis still
relies on significantly tight coupling with the Obs AI\r\nassistant
plugin, which we will want to slowly decouple over time. It\r\nmeans
that currently to consume this in multiple places, you need
to\r\nprovide a number of plugins for useKibana. Hopefully we can get
rid of\r\nthat and replace them with props eventually and make the
interface a\r\nlittle less
plugin-dependent.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8a3a05927bdbe264c491b4034ff5d81674f3db73","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","Team:Obs
AI
Assistant","ci:project-deploy-observability","v8.16.0","backport:version"],"number":194552,"url":"https://github.com/elastic/kibana/pull/194552","mergeCommit":{"message":"Extract
AI assistant to package (#194552)\n\n## Summary\r\n\r\nThis extracts the
Observability AI Assistant into a shared package so\r\nSearch and
Observability can both consume it.\r\n\r\nA few notes:\r\n\r\nThis still
relies on significantly tight coupling with the Obs AI\r\nassistant
plugin, which we will want to slowly decouple over time. It\r\nmeans
that currently to consume this in multiple places, you need
to\r\nprovide a number of plugins for useKibana. Hopefully we can get
rid of\r\nthat and replace them with props eventually and make the
interface a\r\nlittle less
plugin-dependent.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8a3a05927bdbe264c491b4034ff5d81674f3db73"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194552","number":194552,"mergeCommit":{"message":"Extract
AI assistant to package (#194552)\n\n## Summary\r\n\r\nThis extracts the
Observability AI Assistant into a shared package so\r\nSearch and
Observability can both consume it.\r\n\r\nA few notes:\r\n\r\nThis still
relies on significantly tight coupling with the Obs AI\r\nassistant
plugin, which we will want to slowly decouple over time. It\r\nmeans
that currently to consume this in multiple places, you need
to\r\nprovide a number of plugins for useKibana. Hopefully we can get
rid of\r\nthat and replace them with props eventually and make the
interface a\r\nlittle less
plugin-dependent.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8a3a05927bdbe264c491b4034ff5d81674f3db73"}},{"branch":"8.x","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-10-12 13:19:36 +02:00
Jon
a56ad4924b
[8.x] Prepare branch (#192528) 2024-09-12 16:24:06 -05:00
Philippe Oberti
8377275c44
[Security Solution] remove old and skipped Threat Intelligence Cypress tests (#191166) 2024-09-12 08:59:56 -05:00
Dario Gieselaar
98aa1ab769
[Inventory] Inventory plugin (#191798)
## Description

This PR adds an inventory plugin, which renders an inventory UI.
Currently only data streams are rendered. This is part of the LogsAI
initiative - basically we need a UI for tasks like structuring data,
extracting entities, listing the results etc. This is mostly POC-level
stuff. Eventually some of this code might be handed over to ECO but
let's cross that bridge when we get to it.

## Notes for reviewers:

@elastic/appex-ai-infra @elastic/security-generative-ai: added a
`truncateList` utility function that takes the first n elements of an
array and appends a `{l-n} more` string value if there are more values
than n. Really simple but I expect will also be very often used because
we cannot send a huge amount of items to the LLM.

@elastic/kibana-core @elastic/kibana-operations: just boiler plate stuff
for adding a new plugin (and thank you for enabling us to run
`quick_checks` locally!

@elastic/obs-knowledge-team: added support for streaming using an
Observable.

@elastic/obs-ux-management-team: added links to the Inventory UI in the
Observability plugin

@elastic/obs-entities: I've added an entity manager client to be able to
fetch entity definitions on the server. Maybe there's a better way? LMK.

@elastic/obs-ux-logs-team: added a deeplink to the Inventory UI. I've
also moved CODEOWNERS for this package to
@elastic/obs-ux-management-team as they own the Observability plugin
where this is mostly used.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-09-12 15:07:09 +02:00
Lisa Cawley
f558291554
Update oas_docs ownership (#192647) 2024-09-11 18:29:48 -05:00