mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
183 commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
|
5acb5506ac
|
[8.x] SKA: Relocate "platform" packages that remain on /packages (#208704) (#212474)
# Backport This will backport the following commits from `main` to `8.x`: - [SKA: Relocate "platform" packages that remain on `/packages` (#208704)](https://github.com/elastic/kibana/pull/208704) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Gerard Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2025-02-24T11:03:30Z","message":"SKA: Relocate \"platform\" packages that remain on `/packages` (#208704)\n\n## Summary\n\nThe `/packages` folder at the root of the Kibana repository used to\ncontain a lot of packages.\nIn the context of SKA, they have been gradually moved to various\nlocations:\n* `src/platform/packages`\n* `x-pack/platform/packages`\n* `src/core/packages`\n\nCurrently, only `devOnly: true` packages are left in this folder. This\ncomprises libraries for CLI scripts as well as testing utilities.\n\nWith this PR, we are moving ~half of these packages under\n`src/platform/packages/(private|shared)/`.\nIn particular, we are moving those packages that are being used from\nplatform and/or solutions.\n\nSince they are `\"devOnly\": true`, this means they are ONLY used from\ntests, cypress tests, storybook configs, ./scripts/ folders inside some\nmodules, or other non-prod-time logic. Nonetheless, they are effectively\nreferenced from platform and/or solutions code, hence I decided they\nshould be placed under `platform` folders.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a7c904f921434fe21dfa00eceabfb5e64e915dc","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-infra_services","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"SKA: Relocate \"platform\" packages that remain on `/packages`","number":208704,"url":"https://github.com/elastic/kibana/pull/208704","mergeCommit":{"message":"SKA: Relocate \"platform\" packages that remain on `/packages` (#208704)\n\n## Summary\n\nThe `/packages` folder at the root of the Kibana repository used to\ncontain a lot of packages.\nIn the context of SKA, they have been gradually moved to various\nlocations:\n* `src/platform/packages`\n* `x-pack/platform/packages`\n* `src/core/packages`\n\nCurrently, only `devOnly: true` packages are left in this folder. This\ncomprises libraries for CLI scripts as well as testing utilities.\n\nWith this PR, we are moving ~half of these packages under\n`src/platform/packages/(private|shared)/`.\nIn particular, we are moving those packages that are being used from\nplatform and/or solutions.\n\nSince they are `\"devOnly\": true`, this means they are ONLY used from\ntests, cypress tests, storybook configs, ./scripts/ folders inside some\nmodules, or other non-prod-time logic. Nonetheless, they are effectively\nreferenced from platform and/or solutions code, hence I decided they\nshould be placed under `platform` folders.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a7c904f921434fe21dfa00eceabfb5e64e915dc"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/212224","number":212224,"state":"OPEN"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/208704","number":208704,"mergeCommit":{"message":"SKA: Relocate \"platform\" packages that remain on `/packages` (#208704)\n\n## Summary\n\nThe `/packages` folder at the root of the Kibana repository used to\ncontain a lot of packages.\nIn the context of SKA, they have been gradually moved to various\nlocations:\n* `src/platform/packages`\n* `x-pack/platform/packages`\n* `src/core/packages`\n\nCurrently, only `devOnly: true` packages are left in this folder. This\ncomprises libraries for CLI scripts as well as testing utilities.\n\nWith this PR, we are moving ~half of these packages under\n`src/platform/packages/(private|shared)/`.\nIn particular, we are moving those packages that are being used from\nplatform and/or solutions.\n\nSince they are `\"devOnly\": true`, this means they are ONLY used from\ntests, cypress tests, storybook configs, ./scripts/ folders inside some\nmodules, or other non-prod-time logic. Nonetheless, they are effectively\nreferenced from platform and/or solutions code, hence I decided they\nshould be placed under `platform` folders.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a7c904f921434fe21dfa00eceabfb5e64e915dc"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
60d378b893
|
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-operations (#202739) (#205320)
# Backport This will backport the following commits from `main` to `8.x`: - [Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-operations` (#202739)](https://github.com/elastic/kibana/pull/202739) <!--- 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-31T12:47:59Z","message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-operations` (#202739)\n\n## Summary\n\nThis PR aims at relocating some of the Kibana modules (plugins and\npackages) into a new folder structure, according to the _Sustainable\nKibana Architecture_ initiative.\n\n> [!IMPORTANT]\n> * We kindly ask you to:\n> * Manually fix the errors in the error section below (if there are\nany).\n> * Search for the `packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\nsource code (Babel and Eslint config files), and update them\nappropriately.\n> * Manually review\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that\nany CI pipeline customizations continue to be correctly applied after\nthe changed path names\n> * Review all of the updated files, specially the `.ts` and `.js` files\nlisted in the sections below, as some of them contain relative paths\nthat have been updated.\n> * Think of potential impact of the move, including tooling and\nconfiguration files that can be pointing to the relocated modules. E.g.:\n> * customised eslint rules\n> * docs pointing to source code\n\n> [!NOTE]\n> * This PR has been auto-generated.\n> * Any manual contributions will be lost if the 'relocate' script is\nre-run.\n> * Try to obtain the missing reviews / approvals before applying manual\nfixes, and/or keep your changes in a .patch / git stash.\n> * Please use\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\nSlack channel for feedback.\n\nAre you trying to rebase this PR to solve merge conflicts? Please follow\nthe steps describe\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\n\n#### 9 packages(s) are going to be relocated:\n\n| Id | Target folder |\n| -- | ------------- |\n| `@kbn/cbor` | `src/platform/packages/shared/kbn-cbor` |\n| `@kbn/repo-info` | `src/platform/packages/shared/kbn-repo-info` |\n| `@kbn/repo-packages` |\n`src/platform/packages/private/kbn-repo-packages` |\n| `@kbn/rison` | `src/platform/packages/shared/kbn-rison` |\n| `@kbn/ui-shared-deps-npm` |\n`src/platform/packages/private/kbn-ui-shared-deps-npm` |\n| `@kbn/ui-shared-deps-src` |\n`src/platform/packages/private/kbn-ui-shared-deps-src` |\n| `@kbn/ui-theme` | `src/platform/packages/shared/kbn-ui-theme` |\n| `@kbn/utility-types-jest` |\n`src/platform/packages/shared/kbn-utility-types-jest` |\n| `@kbn/utils` | `src/platform/packages/shared/kbn-utils` |\n\n\n<details >\n<summary>Updated references</summary>\n\n```\n./kbn_pm/src/lib/bazel.mjs\n./kbn_pm/src/lib/external_packages.js\n./package.json\n./packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.ts\n./packages/kbn-babel-register/BUILD.bazel\n./packages/kbn-eslint-plugin-imports/src/helpers/groups.ts\n./packages/kbn-monaco/BUILD.bazel\n./packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts\n./packages/kbn-repo-packages/package-map.json\n./packages/kbn-ts-projects/config-paths.json\n./packages/kbn-ui-shared-deps-npm/BUILD.bazel\n./packages/kbn-ui-shared-deps-src/BUILD.bazel\n./src/dev/build/tasks/build_packages_task.ts\n./src/platform/packages/private/kbn-repo-packages/jest.config.js\n./src/platform/packages/private/kbn-repo-packages/package-map.json\n./src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel\n./src/platform/packages/shared/kbn-cbor/jest.config.js\n./src/platform/packages/shared/kbn-repo-info/jest.config.js\n./src/platform/packages/shared/kbn-rison/jest.config.js\n./src/platform/packages/shared/kbn-utils/jest.config.js\n./tsconfig.base.json\n./yarn.lock\n.github/CODEOWNERS\n```\n\n</details><details >\n<summary>Updated relative paths</summary>\n\n```\nsrc/platform/packages/private/kbn-repo-packages/jest.config.js:12\nsrc/platform/packages/private/kbn-repo-packages/tsconfig.json:2\nsrc/platform/packages/private/kbn-ui-shared-deps-npm/tsconfig.json:2\nsrc/platform/packages/private/kbn-ui-shared-deps-src/tsconfig.json:2\nsrc/platform/packages/shared/kbn-cbor/jest.config.js:12\nsrc/platform/packages/shared/kbn-cbor/tsconfig.json:12\nsrc/platform/packages/shared/kbn-cbor/tsconfig.json:2\nsrc/platform/packages/shared/kbn-repo-info/jest.config.js:12\nsrc/platform/packages/shared/kbn-repo-info/tsconfig.json:2\nsrc/platform/packages/shared/kbn-rison/jest.config.js:12\nsrc/platform/packages/shared/kbn-rison/tsconfig.json:2\nsrc/platform/packages/shared/kbn-ui-theme/tsconfig.json:2\nsrc/platform/packages/shared/kbn-utility-types-jest/tsconfig.json:2\nsrc/platform/packages/shared/kbn-utils/jest.config.js:12\nsrc/platform/packages/shared/kbn-utils/tsconfig.json:2\n```\n\n</details>\n\n---------\n\nCo-authored-by: Alex Szabo <alex.szabo@elastic.co>\nCo-authored-by: Jonathan Budzenski <jon@elastic.co>\nCo-authored-by: Michael Dokolin <mikhail.dokolin@elastic.co>","sha":"6a25db96053ae5dd39a7f2d4c4ac27182fd92bc4","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Team:Operations","release_note:skip","v9.0.0","backport:version","v8.18.0","plugin groups"],"number":202739,"url":"https://github.com/elastic/kibana/pull/202739","mergeCommit":{"message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-operations` (#202739)\n\n## Summary\n\nThis PR aims at relocating some of the Kibana modules (plugins and\npackages) into a new folder structure, according to the _Sustainable\nKibana Architecture_ initiative.\n\n> [!IMPORTANT]\n> * We kindly ask you to:\n> * Manually fix the errors in the error section below (if there are\nany).\n> * Search for the `packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\nsource code (Babel and Eslint config files), and update them\nappropriately.\n> * Manually review\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that\nany CI pipeline customizations continue to be correctly applied after\nthe changed path names\n> * Review all of the updated files, specially the `.ts` and `.js` files\nlisted in the sections below, as some of them contain relative paths\nthat have been updated.\n> * Think of potential impact of the move, including tooling and\nconfiguration files that can be pointing to the relocated modules. E.g.:\n> * customised eslint rules\n> * docs pointing to source code\n\n> [!NOTE]\n> * This PR has been auto-generated.\n> * Any manual contributions will be lost if the 'relocate' script is\nre-run.\n> * Try to obtain the missing reviews / approvals before applying manual\nfixes, and/or keep your changes in a .patch / git stash.\n> * Please use\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\nSlack channel for feedback.\n\nAre you trying to rebase this PR to solve merge conflicts? Please follow\nthe steps describe\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\n\n#### 9 packages(s) are going to be relocated:\n\n| Id | Target folder |\n| -- | ------------- |\n| `@kbn/cbor` | `src/platform/packages/shared/kbn-cbor` |\n| `@kbn/repo-info` | `src/platform/packages/shared/kbn-repo-info` |\n| `@kbn/repo-packages` |\n`src/platform/packages/private/kbn-repo-packages` |\n| `@kbn/rison` | `src/platform/packages/shared/kbn-rison` |\n| `@kbn/ui-shared-deps-npm` |\n`src/platform/packages/private/kbn-ui-shared-deps-npm` |\n| `@kbn/ui-shared-deps-src` |\n`src/platform/packages/private/kbn-ui-shared-deps-src` |\n| `@kbn/ui-theme` | `src/platform/packages/shared/kbn-ui-theme` |\n| `@kbn/utility-types-jest` |\n`src/platform/packages/shared/kbn-utility-types-jest` |\n| `@kbn/utils` | `src/platform/packages/shared/kbn-utils` |\n\n\n<details >\n<summary>Updated references</summary>\n\n```\n./kbn_pm/src/lib/bazel.mjs\n./kbn_pm/src/lib/external_packages.js\n./package.json\n./packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.ts\n./packages/kbn-babel-register/BUILD.bazel\n./packages/kbn-eslint-plugin-imports/src/helpers/groups.ts\n./packages/kbn-monaco/BUILD.bazel\n./packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts\n./packages/kbn-repo-packages/package-map.json\n./packages/kbn-ts-projects/config-paths.json\n./packages/kbn-ui-shared-deps-npm/BUILD.bazel\n./packages/kbn-ui-shared-deps-src/BUILD.bazel\n./src/dev/build/tasks/build_packages_task.ts\n./src/platform/packages/private/kbn-repo-packages/jest.config.js\n./src/platform/packages/private/kbn-repo-packages/package-map.json\n./src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel\n./src/platform/packages/shared/kbn-cbor/jest.config.js\n./src/platform/packages/shared/kbn-repo-info/jest.config.js\n./src/platform/packages/shared/kbn-rison/jest.config.js\n./src/platform/packages/shared/kbn-utils/jest.config.js\n./tsconfig.base.json\n./yarn.lock\n.github/CODEOWNERS\n```\n\n</details><details >\n<summary>Updated relative paths</summary>\n\n```\nsrc/platform/packages/private/kbn-repo-packages/jest.config.js:12\nsrc/platform/packages/private/kbn-repo-packages/tsconfig.json:2\nsrc/platform/packages/private/kbn-ui-shared-deps-npm/tsconfig.json:2\nsrc/platform/packages/private/kbn-ui-shared-deps-src/tsconfig.json:2\nsrc/platform/packages/shared/kbn-cbor/jest.config.js:12\nsrc/platform/packages/shared/kbn-cbor/tsconfig.json:12\nsrc/platform/packages/shared/kbn-cbor/tsconfig.json:2\nsrc/platform/packages/shared/kbn-repo-info/jest.config.js:12\nsrc/platform/packages/shared/kbn-repo-info/tsconfig.json:2\nsrc/platform/packages/shared/kbn-rison/jest.config.js:12\nsrc/platform/packages/shared/kbn-rison/tsconfig.json:2\nsrc/platform/packages/shared/kbn-ui-theme/tsconfig.json:2\nsrc/platform/packages/shared/kbn-utility-types-jest/tsconfig.json:2\nsrc/platform/packages/shared/kbn-utils/jest.config.js:12\nsrc/platform/packages/shared/kbn-utils/tsconfig.json:2\n```\n\n</details>\n\n---------\n\nCo-authored-by: Alex Szabo <alex.szabo@elastic.co>\nCo-authored-by: Jonathan Budzenski <jon@elastic.co>\nCo-authored-by: Michael Dokolin <mikhail.dokolin@elastic.co>","sha":"6a25db96053ae5dd39a7f2d4c4ac27182fd92bc4"}},"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/202739","number":202739,"mergeCommit":{"message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-operations` (#202739)\n\n## Summary\n\nThis PR aims at relocating some of the Kibana modules (plugins and\npackages) into a new folder structure, according to the _Sustainable\nKibana Architecture_ initiative.\n\n> [!IMPORTANT]\n> * We kindly ask you to:\n> * Manually fix the errors in the error section below (if there are\nany).\n> * Search for the `packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\nsource code (Babel and Eslint config files), and update them\nappropriately.\n> * Manually review\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that\nany CI pipeline customizations continue to be correctly applied after\nthe changed path names\n> * Review all of the updated files, specially the `.ts` and `.js` files\nlisted in the sections below, as some of them contain relative paths\nthat have been updated.\n> * Think of potential impact of the move, including tooling and\nconfiguration files that can be pointing to the relocated modules. E.g.:\n> * customised eslint rules\n> * docs pointing to source code\n\n> [!NOTE]\n> * This PR has been auto-generated.\n> * Any manual contributions will be lost if the 'relocate' script is\nre-run.\n> * Try to obtain the missing reviews / approvals before applying manual\nfixes, and/or keep your changes in a .patch / git stash.\n> * Please use\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\nSlack channel for feedback.\n\nAre you trying to rebase this PR to solve merge conflicts? Please follow\nthe steps describe\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\n\n#### 9 packages(s) are going to be relocated:\n\n| Id | Target folder |\n| -- | ------------- |\n| `@kbn/cbor` | `src/platform/packages/shared/kbn-cbor` |\n| `@kbn/repo-info` | `src/platform/packages/shared/kbn-repo-info` |\n| `@kbn/repo-packages` |\n`src/platform/packages/private/kbn-repo-packages` |\n| `@kbn/rison` | `src/platform/packages/shared/kbn-rison` |\n| `@kbn/ui-shared-deps-npm` |\n`src/platform/packages/private/kbn-ui-shared-deps-npm` |\n| `@kbn/ui-shared-deps-src` |\n`src/platform/packages/private/kbn-ui-shared-deps-src` |\n| `@kbn/ui-theme` | `src/platform/packages/shared/kbn-ui-theme` |\n| `@kbn/utility-types-jest` |\n`src/platform/packages/shared/kbn-utility-types-jest` |\n| `@kbn/utils` | `src/platform/packages/shared/kbn-utils` |\n\n\n<details >\n<summary>Updated references</summary>\n\n```\n./kbn_pm/src/lib/bazel.mjs\n./kbn_pm/src/lib/external_packages.js\n./package.json\n./packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.ts\n./packages/kbn-babel-register/BUILD.bazel\n./packages/kbn-eslint-plugin-imports/src/helpers/groups.ts\n./packages/kbn-monaco/BUILD.bazel\n./packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts\n./packages/kbn-repo-packages/package-map.json\n./packages/kbn-ts-projects/config-paths.json\n./packages/kbn-ui-shared-deps-npm/BUILD.bazel\n./packages/kbn-ui-shared-deps-src/BUILD.bazel\n./src/dev/build/tasks/build_packages_task.ts\n./src/platform/packages/private/kbn-repo-packages/jest.config.js\n./src/platform/packages/private/kbn-repo-packages/package-map.json\n./src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel\n./src/platform/packages/shared/kbn-cbor/jest.config.js\n./src/platform/packages/shared/kbn-repo-info/jest.config.js\n./src/platform/packages/shared/kbn-rison/jest.config.js\n./src/platform/packages/shared/kbn-utils/jest.config.js\n./tsconfig.base.json\n./yarn.lock\n.github/CODEOWNERS\n```\n\n</details><details >\n<summary>Updated relative paths</summary>\n\n```\nsrc/platform/packages/private/kbn-repo-packages/jest.config.js:12\nsrc/platform/packages/private/kbn-repo-packages/tsconfig.json:2\nsrc/platform/packages/private/kbn-ui-shared-deps-npm/tsconfig.json:2\nsrc/platform/packages/private/kbn-ui-shared-deps-src/tsconfig.json:2\nsrc/platform/packages/shared/kbn-cbor/jest.config.js:12\nsrc/platform/packages/shared/kbn-cbor/tsconfig.json:12\nsrc/platform/packages/shared/kbn-cbor/tsconfig.json:2\nsrc/platform/packages/shared/kbn-repo-info/jest.config.js:12\nsrc/platform/packages/shared/kbn-repo-info/tsconfig.json:2\nsrc/platform/packages/shared/kbn-rison/jest.config.js:12\nsrc/platform/packages/shared/kbn-rison/tsconfig.json:2\nsrc/platform/packages/shared/kbn-ui-theme/tsconfig.json:2\nsrc/platform/packages/shared/kbn-utility-types-jest/tsconfig.json:2\nsrc/platform/packages/shared/kbn-utils/jest.config.js:12\nsrc/platform/packages/shared/kbn-utils/tsconfig.json:2\n```\n\n</details>\n\n---------\n\nCo-authored-by: Alex Szabo <alex.szabo@elastic.co>\nCo-authored-by: Jonathan Budzenski <jon@elastic.co>\nCo-authored-by: Michael Dokolin <mikhail.dokolin@elastic.co>","sha":"6a25db96053ae5dd39a7f2d4c4ac27182fd92bc4"}},{"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> |
||
|
8a9992969a
|
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/obs-ux-infra_services-team (#202830) (#205231)
# Backport This will backport the following commits from `main` to `8.x`: - [Sustainable Kibana Architecture: Move modules owned by `@elastic/obs-ux-infra_services-team` (#202830)](https://github.com/elastic/kibana/pull/202830) <!--- 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-29T08:58:37Z","message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/obs-ux-infra_services-team` (#202830)\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\nAre you trying to rebase this PR to solve merge conflicts? Please follow\r\nthe steps describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n#### 6 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n| `@kbn/apm-data-access-plugin` |\r\n`x-pack/solutions/observability/plugins/apm_data_access` |\r\n| `@kbn/apm-plugin` | `x-pack/solutions/observability/plugins/apm` |\r\n| `@kbn/inventory-plugin` |\r\n`x-pack/solutions/observability/plugins/inventory` |\r\n| `@kbn/metrics-data-access-plugin` |\r\n`x-pack/solutions/observability/plugins/metrics_data_access` |\r\n| `@kbn/profiling-data-access-plugin` |\r\n`x-pack/solutions/observability/plugins/profiling_data_access` |\r\n| `@kbn/profiling-plugin` |\r\n`x-pack/solutions/observability/plugins/profiling` |\r\n\r\n\r\n\r\n\r\n#### 6 packages(s) are going to be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n| `@kbn/apm-data-view` |\r\n`src/platform/packages/shared/kbn-apm-data-view` |\r\n| `@kbn/apm-types` |\r\n`x-pack/solutions/observability/packages/kbn-apm-types` |\r\n| `@kbn/apm-utils` | `src/platform/packages/shared/kbn-apm-utils` |\r\n| `@kbn/lens-embeddable-utils` |\r\n`src/platform/packages/shared/kbn-lens-embeddable-utils` |\r\n| `@kbn/profiling-utils` |\r\n`src/platform/packages/shared/kbn-profiling-utils` |\r\n| `@kbn/shared-svg` | `src/platform/packages/shared/kbn-shared-svg` |\r\n\r\n\r\n<details >\r\n<summary>Updated references</summary>\r\n\r\n```\r\n./.buildkite/ftr_oblt_stateful_configs.yml\r\n./.buildkite/scripts/steps/functional/apm_cypress.sh\r\n./.buildkite/scripts/steps/functional/inventory_cypress.sh\r\n./.buildkite/scripts/steps/functional/profiling_cypress.sh\r\n./.eslintrc.js\r\n./.github/paths-labeller.yml\r\n./.gitignore\r\n./docs/developer/plugin-list.asciidoc\r\n./oas_docs/overlays/alerting.overlays.yaml\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-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts\r\n./packages/kbn-eslint-plugin-telemetry/helpers/get_app_name.test.ts\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/precommit_hook/casing_check_config.js\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/shared/kbn-lens-embeddable-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-profiling-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-shared-svg/jest.config.js\r\n./tsconfig.base.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_index_info.ts\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_significant_term_p_values.ts\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_top_terms.ts\r\n./x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts\r\n./x-pack/solutions/observability/plugins/apm/common/rules/apm_rule_types.ts\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/apm_queries.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/linting.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/local_setup.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/testing.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/updating_functional_tests_archives.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/vscode_setup.md\r\n./x-pack/solutions/observability/plugins/apm/ftr_e2e/README.md\r\n./x-pack/solutions/observability/plugins/apm/jest.config.js\r\n./x-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts\r\n./x-pack/solutions/observability/plugins/apm/scripts/precommit.js\r\n./x-pack/solutions/observability/plugins/apm/scripts/telemetry/main.ts\r\n./x-pack/solutions/observability/plugins/apm_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/exploratory_view/common/annotations.ts\r\n./x-pack/solutions/observability/plugins/inventory/README.md\r\n./x-pack/solutions/observability/plugins/inventory/jest.config.js\r\n./x-pack/solutions/observability/plugins/metrics_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability/common/annotations.ts\r\n./x-pack/solutions/observability/plugins/profiling/README.md\r\n./x-pack/solutions/observability/plugins/profiling/e2e/README.md\r\n./x-pack/solutions/observability/plugins/profiling/jest.config.js\r\n./x-pack/solutions/observability/plugins/profiling_data_access/jest.config.js\r\n./x-pack/solutions/security/plugins/security_solution/server/utils/build_query/calculate_timeseries_interval.ts\r\n./yarn.lock\r\n.github/CODEOWNERS\r\n```\r\n\r\n</details><details >\r\n<summary>Updated relative paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/kbn-apm-data-view/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-apm-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-lens-embeddable-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-lens-embeddable-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-profiling-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-profiling-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-shared-svg/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-shared-svg/tsconfig.json:2\r\nx-pack/solutions/observability/packages/kbn-apm-types/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md:17\r\nx-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md:22\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:130\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:222\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:78\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:96\r\nx-pack/solutions/observability/plugins/apm/dev_docs/vscode_setup.md:42\r\nx-pack/solutions/observability/plugins/apm/ftr_e2e/README.md:3\r\nx-pack/solutions/observability/plugins/apm/ftr_e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/jest.config.js:12\r\nx-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts:125\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:15\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:33\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:38\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:50\r\nx-pack/solutions/observability/plugins/apm/scripts/shared/read_kibana_config.ts:16\r\nx-pack/solutions/observability/plugins/apm/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/apm_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/apm_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm_data_access/tsconfig.json:6\r\nx-pack/solutions/observability/plugins/inventory/e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/inventory/jest.config.js:10\r\nx-pack/solutions/observability/plugins/inventory/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/inventory/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/metrics_data_access/jest.config.js:10\r\nx-pack/solutions/observability/plugins/metrics_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/metrics_data_access/tsconfig.json:6\r\nx-pack/solutions/observability/plugins/profiling/README.md:52\r\nx-pack/solutions/observability/plugins/profiling/e2e/README.md:3\r\nx-pack/solutions/observability/plugins/profiling/e2e/tsconfig.json:11\r\nx-pack/solutions/observability/plugins/profiling/e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/profiling/jest.config.js:10\r\nx-pack/solutions/observability/plugins/profiling/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/profiling_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/profiling_data_access/tsconfig.json:2\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"8899fb8fa2d667d3ee36a3be28fb284de5056afc","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-infra_services","Team:obs-ux-management","plugin groups"],"number":202830,"url":"https://github.com/elastic/kibana/pull/202830","mergeCommit":{"message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/obs-ux-infra_services-team` (#202830)\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\nAre you trying to rebase this PR to solve merge conflicts? Please follow\r\nthe steps describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n#### 6 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n| `@kbn/apm-data-access-plugin` |\r\n`x-pack/solutions/observability/plugins/apm_data_access` |\r\n| `@kbn/apm-plugin` | `x-pack/solutions/observability/plugins/apm` |\r\n| `@kbn/inventory-plugin` |\r\n`x-pack/solutions/observability/plugins/inventory` |\r\n| `@kbn/metrics-data-access-plugin` |\r\n`x-pack/solutions/observability/plugins/metrics_data_access` |\r\n| `@kbn/profiling-data-access-plugin` |\r\n`x-pack/solutions/observability/plugins/profiling_data_access` |\r\n| `@kbn/profiling-plugin` |\r\n`x-pack/solutions/observability/plugins/profiling` |\r\n\r\n\r\n\r\n\r\n#### 6 packages(s) are going to be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n| `@kbn/apm-data-view` |\r\n`src/platform/packages/shared/kbn-apm-data-view` |\r\n| `@kbn/apm-types` |\r\n`x-pack/solutions/observability/packages/kbn-apm-types` |\r\n| `@kbn/apm-utils` | `src/platform/packages/shared/kbn-apm-utils` |\r\n| `@kbn/lens-embeddable-utils` |\r\n`src/platform/packages/shared/kbn-lens-embeddable-utils` |\r\n| `@kbn/profiling-utils` |\r\n`src/platform/packages/shared/kbn-profiling-utils` |\r\n| `@kbn/shared-svg` | `src/platform/packages/shared/kbn-shared-svg` |\r\n\r\n\r\n<details >\r\n<summary>Updated references</summary>\r\n\r\n```\r\n./.buildkite/ftr_oblt_stateful_configs.yml\r\n./.buildkite/scripts/steps/functional/apm_cypress.sh\r\n./.buildkite/scripts/steps/functional/inventory_cypress.sh\r\n./.buildkite/scripts/steps/functional/profiling_cypress.sh\r\n./.eslintrc.js\r\n./.github/paths-labeller.yml\r\n./.gitignore\r\n./docs/developer/plugin-list.asciidoc\r\n./oas_docs/overlays/alerting.overlays.yaml\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-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts\r\n./packages/kbn-eslint-plugin-telemetry/helpers/get_app_name.test.ts\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/precommit_hook/casing_check_config.js\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/shared/kbn-lens-embeddable-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-profiling-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-shared-svg/jest.config.js\r\n./tsconfig.base.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_index_info.ts\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_significant_term_p_values.ts\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_top_terms.ts\r\n./x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts\r\n./x-pack/solutions/observability/plugins/apm/common/rules/apm_rule_types.ts\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/apm_queries.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/linting.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/local_setup.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/testing.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/updating_functional_tests_archives.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/vscode_setup.md\r\n./x-pack/solutions/observability/plugins/apm/ftr_e2e/README.md\r\n./x-pack/solutions/observability/plugins/apm/jest.config.js\r\n./x-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts\r\n./x-pack/solutions/observability/plugins/apm/scripts/precommit.js\r\n./x-pack/solutions/observability/plugins/apm/scripts/telemetry/main.ts\r\n./x-pack/solutions/observability/plugins/apm_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/exploratory_view/common/annotations.ts\r\n./x-pack/solutions/observability/plugins/inventory/README.md\r\n./x-pack/solutions/observability/plugins/inventory/jest.config.js\r\n./x-pack/solutions/observability/plugins/metrics_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability/common/annotations.ts\r\n./x-pack/solutions/observability/plugins/profiling/README.md\r\n./x-pack/solutions/observability/plugins/profiling/e2e/README.md\r\n./x-pack/solutions/observability/plugins/profiling/jest.config.js\r\n./x-pack/solutions/observability/plugins/profiling_data_access/jest.config.js\r\n./x-pack/solutions/security/plugins/security_solution/server/utils/build_query/calculate_timeseries_interval.ts\r\n./yarn.lock\r\n.github/CODEOWNERS\r\n```\r\n\r\n</details><details >\r\n<summary>Updated relative paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/kbn-apm-data-view/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-apm-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-lens-embeddable-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-lens-embeddable-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-profiling-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-profiling-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-shared-svg/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-shared-svg/tsconfig.json:2\r\nx-pack/solutions/observability/packages/kbn-apm-types/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md:17\r\nx-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md:22\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:130\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:222\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:78\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:96\r\nx-pack/solutions/observability/plugins/apm/dev_docs/vscode_setup.md:42\r\nx-pack/solutions/observability/plugins/apm/ftr_e2e/README.md:3\r\nx-pack/solutions/observability/plugins/apm/ftr_e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/jest.config.js:12\r\nx-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts:125\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:15\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:33\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:38\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:50\r\nx-pack/solutions/observability/plugins/apm/scripts/shared/read_kibana_config.ts:16\r\nx-pack/solutions/observability/plugins/apm/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/apm_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/apm_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm_data_access/tsconfig.json:6\r\nx-pack/solutions/observability/plugins/inventory/e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/inventory/jest.config.js:10\r\nx-pack/solutions/observability/plugins/inventory/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/inventory/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/metrics_data_access/jest.config.js:10\r\nx-pack/solutions/observability/plugins/metrics_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/metrics_data_access/tsconfig.json:6\r\nx-pack/solutions/observability/plugins/profiling/README.md:52\r\nx-pack/solutions/observability/plugins/profiling/e2e/README.md:3\r\nx-pack/solutions/observability/plugins/profiling/e2e/tsconfig.json:11\r\nx-pack/solutions/observability/plugins/profiling/e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/profiling/jest.config.js:10\r\nx-pack/solutions/observability/plugins/profiling/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/profiling_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/profiling_data_access/tsconfig.json:2\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"8899fb8fa2d667d3ee36a3be28fb284de5056afc"}},"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/202830","number":202830,"mergeCommit":{"message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/obs-ux-infra_services-team` (#202830)\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\nAre you trying to rebase this PR to solve merge conflicts? Please follow\r\nthe steps describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n#### 6 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n| `@kbn/apm-data-access-plugin` |\r\n`x-pack/solutions/observability/plugins/apm_data_access` |\r\n| `@kbn/apm-plugin` | `x-pack/solutions/observability/plugins/apm` |\r\n| `@kbn/inventory-plugin` |\r\n`x-pack/solutions/observability/plugins/inventory` |\r\n| `@kbn/metrics-data-access-plugin` |\r\n`x-pack/solutions/observability/plugins/metrics_data_access` |\r\n| `@kbn/profiling-data-access-plugin` |\r\n`x-pack/solutions/observability/plugins/profiling_data_access` |\r\n| `@kbn/profiling-plugin` |\r\n`x-pack/solutions/observability/plugins/profiling` |\r\n\r\n\r\n\r\n\r\n#### 6 packages(s) are going to be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n| `@kbn/apm-data-view` |\r\n`src/platform/packages/shared/kbn-apm-data-view` |\r\n| `@kbn/apm-types` |\r\n`x-pack/solutions/observability/packages/kbn-apm-types` |\r\n| `@kbn/apm-utils` | `src/platform/packages/shared/kbn-apm-utils` |\r\n| `@kbn/lens-embeddable-utils` |\r\n`src/platform/packages/shared/kbn-lens-embeddable-utils` |\r\n| `@kbn/profiling-utils` |\r\n`src/platform/packages/shared/kbn-profiling-utils` |\r\n| `@kbn/shared-svg` | `src/platform/packages/shared/kbn-shared-svg` |\r\n\r\n\r\n<details >\r\n<summary>Updated references</summary>\r\n\r\n```\r\n./.buildkite/ftr_oblt_stateful_configs.yml\r\n./.buildkite/scripts/steps/functional/apm_cypress.sh\r\n./.buildkite/scripts/steps/functional/inventory_cypress.sh\r\n./.buildkite/scripts/steps/functional/profiling_cypress.sh\r\n./.eslintrc.js\r\n./.github/paths-labeller.yml\r\n./.gitignore\r\n./docs/developer/plugin-list.asciidoc\r\n./oas_docs/overlays/alerting.overlays.yaml\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-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts\r\n./packages/kbn-eslint-plugin-telemetry/helpers/get_app_name.test.ts\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/precommit_hook/casing_check_config.js\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/shared/kbn-lens-embeddable-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-profiling-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-shared-svg/jest.config.js\r\n./tsconfig.base.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_index_info.ts\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_significant_term_p_values.ts\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_top_terms.ts\r\n./x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts\r\n./x-pack/solutions/observability/plugins/apm/common/rules/apm_rule_types.ts\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/apm_queries.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/linting.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/local_setup.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/testing.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/updating_functional_tests_archives.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/vscode_setup.md\r\n./x-pack/solutions/observability/plugins/apm/ftr_e2e/README.md\r\n./x-pack/solutions/observability/plugins/apm/jest.config.js\r\n./x-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts\r\n./x-pack/solutions/observability/plugins/apm/scripts/precommit.js\r\n./x-pack/solutions/observability/plugins/apm/scripts/telemetry/main.ts\r\n./x-pack/solutions/observability/plugins/apm_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/exploratory_view/common/annotations.ts\r\n./x-pack/solutions/observability/plugins/inventory/README.md\r\n./x-pack/solutions/observability/plugins/inventory/jest.config.js\r\n./x-pack/solutions/observability/plugins/metrics_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability/common/annotations.ts\r\n./x-pack/solutions/observability/plugins/profiling/README.md\r\n./x-pack/solutions/observability/plugins/profiling/e2e/README.md\r\n./x-pack/solutions/observability/plugins/profiling/jest.config.js\r\n./x-pack/solutions/observability/plugins/profiling_data_access/jest.config.js\r\n./x-pack/solutions/security/plugins/security_solution/server/utils/build_query/calculate_timeseries_interval.ts\r\n./yarn.lock\r\n.github/CODEOWNERS\r\n```\r\n\r\n</details><details >\r\n<summary>Updated relative paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/kbn-apm-data-view/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-apm-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-lens-embeddable-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-lens-embeddable-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-profiling-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-profiling-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-shared-svg/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-shared-svg/tsconfig.json:2\r\nx-pack/solutions/observability/packages/kbn-apm-types/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md:17\r\nx-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md:22\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:130\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:222\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:78\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:96\r\nx-pack/solutions/observability/plugins/apm/dev_docs/vscode_setup.md:42\r\nx-pack/solutions/observability/plugins/apm/ftr_e2e/README.md:3\r\nx-pack/solutions/observability/plugins/apm/ftr_e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/jest.config.js:12\r\nx-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts:125\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:15\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:33\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:38\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:50\r\nx-pack/solutions/observability/plugins/apm/scripts/shared/read_kibana_config.ts:16\r\nx-pack/solutions/observability/plugins/apm/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/apm_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/apm_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm_data_access/tsconfig.json:6\r\nx-pack/solutions/observability/plugins/inventory/e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/inventory/jest.config.js:10\r\nx-pack/solutions/observability/plugins/inventory/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/inventory/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/metrics_data_access/jest.config.js:10\r\nx-pack/solutions/observability/plugins/metrics_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/metrics_data_access/tsconfig.json:6\r\nx-pack/solutions/observability/plugins/profiling/README.md:52\r\nx-pack/solutions/observability/plugins/profiling/e2e/README.md:3\r\nx-pack/solutions/observability/plugins/profiling/e2e/tsconfig.json:11\r\nx-pack/solutions/observability/plugins/profiling/e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/profiling/jest.config.js:10\r\nx-pack/solutions/observability/plugins/profiling/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/profiling_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/profiling_data_access/tsconfig.json:2\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"8899fb8fa2d667d3ee36a3be28fb284de5056afc"}}]}] BACKPORT--> --------- Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
d7c2caf486
|
backport [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/search-kibana (#202837) (#205215)
Backport #202837 to 8.x --------- Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
1672b335f7
|
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/fleet (#202422) (#205145)
# Backport This will backport the following commits from `main` to `8.x`: - [Sustainable Kibana Architecture: Move modules owned by `@elastic/fleet` (#202422)](https://github.com/elastic/kibana/pull/202422) <!--- 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-24T14:32:43Z","message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/fleet` (#202422)\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\nAre you trying to rebase this PR to solve merge conflicts? Please follow\r\nthe steps describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n#### 2 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n| `@kbn/custom-integrations-plugin` |\r\n`src/platform/plugins/shared/custom_integrations` |\r\n| `@kbn/fleet-plugin` | `x-pack/platform/plugins/shared/fleet` |\r\n\r\n\r\n\r\n\r\n#### 1 packages(s) are going to be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n| `@kbn/deeplinks-fleet` |\r\n`src/platform/packages/shared/deeplinks/fleet` |\r\n\r\n\r\n<details open>\r\n<summary>Script errors</summary>\r\n\r\n```\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/cypress/README.md:122\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/cypress/README.md:128\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:12\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:12\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:8\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:8\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/cypress/README.md:122\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/cypress/README.md:128\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\n```\r\n\r\n</details><details >\r\n<summary>Updated relative paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/deeplinks/fleet/jest.config.js:12\r\nsrc/platform/packages/shared/deeplinks/fleet/tsconfig.json:2\r\nsrc/platform/packages/shared/deeplinks/fleet/tsconfig.type_check.json:2\r\nsrc/platform/plugins/shared/custom_integrations/jest.config.js:12\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.json:2\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.json:7\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:2\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:20\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:26\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:29\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:32\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:35\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:38\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:41\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:9\r\nx-pack/platform/plugins/shared/fleet/cypress.config.js:22\r\nx-pack/platform/plugins/shared/fleet/cypress.config.js:25\r\nx-pack/platform/plugins/shared/fleet/cypress.config.space_awareness.ts:26\r\nx-pack/platform/plugins/shared/fleet/cypress.config.space_awareness.ts:29\r\nx-pack/platform/plugins/shared/fleet/cypress.config.ts:25\r\nx-pack/platform/plugins/shared/fleet/cypress.config.ts:28\r\nx-pack/platform/plugins/shared/fleet/cypress/README.md:122\r\nx-pack/platform/plugins/shared/fleet/cypress/README.md:128\r\nx-pack/platform/plugins/shared/fleet/cypress/reporter_config.json:6\r\nx-pack/platform/plugins/shared/fleet/cypress/reporter_config.json:8\r\nx-pack/platform/plugins/shared/fleet/cypress/tasks/login.ts:21\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.json:2\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.json:7\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:2\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:25\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:28\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:31\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:37\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:40\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:7\r\nx-pack/platform/plugins/shared/fleet/jest.config.js:10\r\nx-pack/platform/plugins/shared/fleet/jest.integration.config.js:10\r\nx-pack/platform/plugins/shared/fleet/package.json:11\r\nx-pack/platform/plugins/shared/fleet/package.json:12\r\nx-pack/platform/plugins/shared/fleet/package.json:15\r\nx-pack/platform/plugins/shared/fleet/package.json:16\r\nx-pack/platform/plugins/shared/fleet/package.json:8\r\nx-pack/platform/plugins/shared/fleet/scripts/create_agent_policies/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/create_agents/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/get_all_packages/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/install_all_packages/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.ts:25\r\nx-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.ts:26\r\nx-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.ts:27\r\nx-pack/platform/plugins/shared/fleet/tsconfig.json:2\r\nx-pack/platform/plugins/shared/fleet/tsconfig.json:22\r\nx-pack/platform/plugins/shared/fleet/tsconfig.json:26\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:102\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:105\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:111\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:114\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:120\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:123\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:126\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:129\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:132\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:135\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:144\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:147\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:150\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:153\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:156\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:159\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:162\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:165\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:168\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:171\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:174\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:177\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:180\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:183\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:186\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:189\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:192\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:195\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:198\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:2\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:201\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:204\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:207\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:210\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:213\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:216\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:219\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:222\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:225\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:228\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:23\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:231\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:234\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:237\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:240\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:243\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:246\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:249\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:252\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:255\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:261\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:264\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:27\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:270\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:273\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:276\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:279\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:30\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:36\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:42\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:45\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:57\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:60\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:63\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:66\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:72\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:75\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:78\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:81\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:84\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:87\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:90\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:93\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:96\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:99\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by: pgayvallet <pierre.gayvallet@elastic.co>\r\nCo-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fce686bc88ae4eb9606279f34ce097bd17900949","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","Team:Fleet","v9.0.0","backport:prev-minor","plugin groups"],"number":202422,"url":"https://github.com/elastic/kibana/pull/202422","mergeCommit":{"message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/fleet` (#202422)\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\nAre you trying to rebase this PR to solve merge conflicts? Please follow\r\nthe steps describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n#### 2 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n| `@kbn/custom-integrations-plugin` |\r\n`src/platform/plugins/shared/custom_integrations` |\r\n| `@kbn/fleet-plugin` | `x-pack/platform/plugins/shared/fleet` |\r\n\r\n\r\n\r\n\r\n#### 1 packages(s) are going to be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n| `@kbn/deeplinks-fleet` |\r\n`src/platform/packages/shared/deeplinks/fleet` |\r\n\r\n\r\n<details open>\r\n<summary>Script errors</summary>\r\n\r\n```\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/cypress/README.md:122\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/cypress/README.md:128\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:12\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:12\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:8\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:8\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/cypress/README.md:122\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/cypress/README.md:128\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\n```\r\n\r\n</details><details >\r\n<summary>Updated relative paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/deeplinks/fleet/jest.config.js:12\r\nsrc/platform/packages/shared/deeplinks/fleet/tsconfig.json:2\r\nsrc/platform/packages/shared/deeplinks/fleet/tsconfig.type_check.json:2\r\nsrc/platform/plugins/shared/custom_integrations/jest.config.js:12\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.json:2\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.json:7\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:2\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:20\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:26\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:29\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:32\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:35\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:38\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:41\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:9\r\nx-pack/platform/plugins/shared/fleet/cypress.config.js:22\r\nx-pack/platform/plugins/shared/fleet/cypress.config.js:25\r\nx-pack/platform/plugins/shared/fleet/cypress.config.space_awareness.ts:26\r\nx-pack/platform/plugins/shared/fleet/cypress.config.space_awareness.ts:29\r\nx-pack/platform/plugins/shared/fleet/cypress.config.ts:25\r\nx-pack/platform/plugins/shared/fleet/cypress.config.ts:28\r\nx-pack/platform/plugins/shared/fleet/cypress/README.md:122\r\nx-pack/platform/plugins/shared/fleet/cypress/README.md:128\r\nx-pack/platform/plugins/shared/fleet/cypress/reporter_config.json:6\r\nx-pack/platform/plugins/shared/fleet/cypress/reporter_config.json:8\r\nx-pack/platform/plugins/shared/fleet/cypress/tasks/login.ts:21\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.json:2\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.json:7\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:2\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:25\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:28\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:31\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:37\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:40\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:7\r\nx-pack/platform/plugins/shared/fleet/jest.config.js:10\r\nx-pack/platform/plugins/shared/fleet/jest.integration.config.js:10\r\nx-pack/platform/plugins/shared/fleet/package.json:11\r\nx-pack/platform/plugins/shared/fleet/package.json:12\r\nx-pack/platform/plugins/shared/fleet/package.json:15\r\nx-pack/platform/plugins/shared/fleet/package.json:16\r\nx-pack/platform/plugins/shared/fleet/package.json:8\r\nx-pack/platform/plugins/shared/fleet/scripts/create_agent_policies/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/create_agents/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/get_all_packages/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/install_all_packages/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.ts:25\r\nx-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.ts:26\r\nx-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.ts:27\r\nx-pack/platform/plugins/shared/fleet/tsconfig.json:2\r\nx-pack/platform/plugins/shared/fleet/tsconfig.json:22\r\nx-pack/platform/plugins/shared/fleet/tsconfig.json:26\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:102\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:105\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:111\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:114\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:120\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:123\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:126\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:129\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:132\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:135\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:144\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:147\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:150\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:153\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:156\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:159\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:162\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:165\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:168\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:171\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:174\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:177\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:180\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:183\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:186\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:189\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:192\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:195\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:198\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:2\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:201\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:204\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:207\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:210\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:213\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:216\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:219\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:222\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:225\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:228\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:23\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:231\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:234\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:237\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:240\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:243\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:246\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:249\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:252\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:255\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:261\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:264\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:27\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:270\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:273\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:276\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:279\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:30\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:36\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:42\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:45\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:57\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:60\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:63\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:66\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:72\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:75\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:78\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:81\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:84\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:87\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:90\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:93\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:96\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:99\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by: pgayvallet <pierre.gayvallet@elastic.co>\r\nCo-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fce686bc88ae4eb9606279f34ce097bd17900949"}},"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/202422","number":202422,"mergeCommit":{"message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/fleet` (#202422)\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\nAre you trying to rebase this PR to solve merge conflicts? Please follow\r\nthe steps describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n#### 2 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n| `@kbn/custom-integrations-plugin` |\r\n`src/platform/plugins/shared/custom_integrations` |\r\n| `@kbn/fleet-plugin` | `x-pack/platform/plugins/shared/fleet` |\r\n\r\n\r\n\r\n\r\n#### 1 packages(s) are going to be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n| `@kbn/deeplinks-fleet` |\r\n`src/platform/packages/shared/deeplinks/fleet` |\r\n\r\n\r\n<details open>\r\n<summary>Script errors</summary>\r\n\r\n```\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/cypress/README.md:122\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/cypress/README.md:128\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:12\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:12\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:8\r\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:8\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/cypress/README.md:122\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/cypress/README.md:128\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\nCannot replace multiple occurrences of \"../../..\" in the same line, please fix manually:\t/Users/pgayvallet/DEV/workspaces/elastic/kibana/x-pack/platform/plugins/shared/fleet/package.json:16\r\n```\r\n\r\n</details><details >\r\n<summary>Updated relative paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/deeplinks/fleet/jest.config.js:12\r\nsrc/platform/packages/shared/deeplinks/fleet/tsconfig.json:2\r\nsrc/platform/packages/shared/deeplinks/fleet/tsconfig.type_check.json:2\r\nsrc/platform/plugins/shared/custom_integrations/jest.config.js:12\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.json:2\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.json:7\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:2\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:20\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:26\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:29\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:32\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:35\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:38\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:41\r\nsrc/platform/plugins/shared/custom_integrations/tsconfig.type_check.json:9\r\nx-pack/platform/plugins/shared/fleet/cypress.config.js:22\r\nx-pack/platform/plugins/shared/fleet/cypress.config.js:25\r\nx-pack/platform/plugins/shared/fleet/cypress.config.space_awareness.ts:26\r\nx-pack/platform/plugins/shared/fleet/cypress.config.space_awareness.ts:29\r\nx-pack/platform/plugins/shared/fleet/cypress.config.ts:25\r\nx-pack/platform/plugins/shared/fleet/cypress.config.ts:28\r\nx-pack/platform/plugins/shared/fleet/cypress/README.md:122\r\nx-pack/platform/plugins/shared/fleet/cypress/README.md:128\r\nx-pack/platform/plugins/shared/fleet/cypress/reporter_config.json:6\r\nx-pack/platform/plugins/shared/fleet/cypress/reporter_config.json:8\r\nx-pack/platform/plugins/shared/fleet/cypress/tasks/login.ts:21\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.json:2\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.json:7\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:2\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:25\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:28\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:31\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:37\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:40\r\nx-pack/platform/plugins/shared/fleet/cypress/tsconfig.type_check.json:7\r\nx-pack/platform/plugins/shared/fleet/jest.config.js:10\r\nx-pack/platform/plugins/shared/fleet/jest.integration.config.js:10\r\nx-pack/platform/plugins/shared/fleet/package.json:11\r\nx-pack/platform/plugins/shared/fleet/package.json:12\r\nx-pack/platform/plugins/shared/fleet/package.json:15\r\nx-pack/platform/plugins/shared/fleet/package.json:16\r\nx-pack/platform/plugins/shared/fleet/package.json:8\r\nx-pack/platform/plugins/shared/fleet/scripts/create_agent_policies/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/create_agents/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/get_all_packages/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/install_all_packages/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/index.js:8\r\nx-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.ts:25\r\nx-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.ts:26\r\nx-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.ts:27\r\nx-pack/platform/plugins/shared/fleet/tsconfig.json:2\r\nx-pack/platform/plugins/shared/fleet/tsconfig.json:22\r\nx-pack/platform/plugins/shared/fleet/tsconfig.json:26\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:102\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:105\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:111\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:114\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:120\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:123\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:126\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:129\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:132\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:135\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:144\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:147\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:150\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:153\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:156\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:159\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:162\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:165\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:168\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:171\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:174\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:177\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:180\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:183\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:186\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:189\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:192\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:195\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:198\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:2\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:201\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:204\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:207\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:210\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:213\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:216\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:219\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:222\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:225\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:228\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:23\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:231\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:234\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:237\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:240\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:243\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:246\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:249\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:252\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:255\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:261\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:264\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:27\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:270\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:273\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:276\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:279\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:30\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:36\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:42\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:45\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:57\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:60\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:63\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:66\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:72\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:75\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:78\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:81\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:84\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:87\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:90\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:93\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:96\r\nx-pack/platform/plugins/shared/fleet/tsconfig.type_check.json:99\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by: pgayvallet <pierre.gayvallet@elastic.co>\r\nCo-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fce686bc88ae4eb9606279f34ce097bd17900949"}}]}] BACKPORT--> --------- Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
1c7e33a4c7
|
[8.x] [kbn-scout] initial package implementation (playwright-test POC) (#194006) (#204572)
# Backport This will backport the following commits from `main` to `8.x`: - [[kbn-scout] initial package implementation (playwright-test POC) (#194006)](https://github.com/elastic/kibana/pull/194006) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dzmitry Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2024-11-26T16:33:49Z","message":"[kbn-scout] initial package implementation (playwright-test POC) (#194006)\n\n## Summary\r\n\r\nThis PR introduces a new package, **kbn-scout**, designed to streamline\r\nthe setup and execution of Playwright tests for Kibana. The `kbn-scout`\r\npackage consolidates server management and testing capabilities by\r\nwrapping both the Kibana/Elasticsearch server launcher and the\r\nPlaywright test runner. It includes:\r\n\r\n- Test and worker-scoped fixtures for reliable setup across test suites\r\n- Page objects combined into the fixture for Kibana UI interactions\r\n- Configurations for seamless test execution in both local and CI\r\nenvironments (`Cloud` execution is out of scope)\r\n- This package aims to simplify test setup and enhance modularity,\r\nmaking it easier to create, run, and maintain deployment-agnostic tests,\r\nthat are located in the plugin they actually test.\r\n\r\nTests example is available in `x-pack/plugins/discover_enhanced` plugin\r\nunder `ui_tests` folder\r\n\r\nHow to run:\r\n1) As a single script (servers + tests): \r\n```\r\nnode scripts/scout_test.js --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --serverless=es\r\n```\r\n\r\n2) Start servers first\r\n```\r\nnode scripts/scout_start_servers.js --serverless=es\r\n```\r\nthen run tests:\r\n```\r\nnpx playwright test --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts\r\n```\r\nif you have Playwright plugin in IDEA, just use it to run tests files\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"310d922f137ed5c1117e2660ffa8af618810f350","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","v9.0.0","test:scout"],"number":194006,"url":"https://github.com/elastic/kibana/pull/194006","mergeCommit":{"message":"[kbn-scout] initial package implementation (playwright-test POC) (#194006)\n\n## Summary\r\n\r\nThis PR introduces a new package, **kbn-scout**, designed to streamline\r\nthe setup and execution of Playwright tests for Kibana. The `kbn-scout`\r\npackage consolidates server management and testing capabilities by\r\nwrapping both the Kibana/Elasticsearch server launcher and the\r\nPlaywright test runner. It includes:\r\n\r\n- Test and worker-scoped fixtures for reliable setup across test suites\r\n- Page objects combined into the fixture for Kibana UI interactions\r\n- Configurations for seamless test execution in both local and CI\r\nenvironments (`Cloud` execution is out of scope)\r\n- This package aims to simplify test setup and enhance modularity,\r\nmaking it easier to create, run, and maintain deployment-agnostic tests,\r\nthat are located in the plugin they actually test.\r\n\r\nTests example is available in `x-pack/plugins/discover_enhanced` plugin\r\nunder `ui_tests` folder\r\n\r\nHow to run:\r\n1) As a single script (servers + tests): \r\n```\r\nnode scripts/scout_test.js --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --serverless=es\r\n```\r\n\r\n2) Start servers first\r\n```\r\nnode scripts/scout_start_servers.js --serverless=es\r\n```\r\nthen run tests:\r\n```\r\nnpx playwright test --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts\r\n```\r\nif you have Playwright plugin in IDEA, just use it to run tests files\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"310d922f137ed5c1117e2660ffa8af618810f350"}},"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/194006","number":194006,"mergeCommit":{"message":"[kbn-scout] initial package implementation (playwright-test POC) (#194006)\n\n## Summary\r\n\r\nThis PR introduces a new package, **kbn-scout**, designed to streamline\r\nthe setup and execution of Playwright tests for Kibana. The `kbn-scout`\r\npackage consolidates server management and testing capabilities by\r\nwrapping both the Kibana/Elasticsearch server launcher and the\r\nPlaywright test runner. It includes:\r\n\r\n- Test and worker-scoped fixtures for reliable setup across test suites\r\n- Page objects combined into the fixture for Kibana UI interactions\r\n- Configurations for seamless test execution in both local and CI\r\nenvironments (`Cloud` execution is out of scope)\r\n- This package aims to simplify test setup and enhance modularity,\r\nmaking it easier to create, run, and maintain deployment-agnostic tests,\r\nthat are located in the plugin they actually test.\r\n\r\nTests example is available in `x-pack/plugins/discover_enhanced` plugin\r\nunder `ui_tests` folder\r\n\r\nHow to run:\r\n1) As a single script (servers + tests): \r\n```\r\nnode scripts/scout_test.js --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --serverless=es\r\n```\r\n\r\n2) Start servers first\r\n```\r\nnode scripts/scout_start_servers.js --serverless=es\r\n```\r\nthen run tests:\r\n```\r\nnpx playwright test --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts\r\n```\r\nif you have Playwright plugin in IDEA, just use it to run tests files\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"310d922f137ed5c1117e2660ffa8af618810f350"}}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
9ecc8186dd
|
[8.x] SKA: Relocate modules owned by @elastic/security-solution (#204523)
## Summary This PR aims at relocating some of the Kibana modules (plugins and packages) into a new folder structure, according to the _Sustainable Kibana Architecture_ initiative. > [!IMPORTANT] > * We kindly ask you to: > * Manually fix the errors in the error section below (if there are any). > * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the source code (Babel and Eslint config files), and update them appropriately. > * Manually review `.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that any CI pipeline customizations continue to be correctly applied after the changed path names > * Review all of the updated files, specially the `.ts` and `.js` files listed in the sections below, as some of them contain relative paths that have been updated. > * Think of potential impact of the move, including tooling and configuration files that can be pointing to the relocated modules. E.g.: > * customised eslint rules > * docs pointing to source code > [!NOTE] > * This PR has been auto-generated. > * Any manual contributions will be lost if the 'relocate' script is re-run. > * Try to obtain the missing reviews / approvals before applying manual fixes, and/or keep your changes in a .patch / git stash. > * Please use [#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E) Slack channel for feedback. Are you trying to rebase this PR to solve merge conflicts? Please follow the steps describe [here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E). #### 3 plugin(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/security-solution-ess` | `x-pack/solutions/security/plugins/security_solution_ess` | | `@kbn/security-solution-plugin` | `x-pack/solutions/security/plugins/security_solution` | | `@kbn/security-solution-serverless` | `x-pack/solutions/security/plugins/security_solution_serverless` | #### 2 packages(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/deeplinks-security` | `src/platform/packages/shared/deeplinks/security` | | `@kbn/serverless-security-settings` | `src/platform/packages/shared/serverless/settings/security_project` | <details open> <summary>Script errors</summary> ``` Cannot replace multiple occurrences of "../../.." in the same line, please fix manually: /Users/gsoldevila/.backport/repositories/elastic/kibana/x-pack/solutions/security/plugins/security_solution/package.json:25 Cannot replace multiple occurrences of "../../.." in the same line, please fix manually: /Users/gsoldevila/.backport/repositories/elastic/kibana/x-pack/solutions/security/plugins/security_solution/package.json:25 Cannot replace multiple occurrences of "../../.." in the same line, please fix manually: /Users/gsoldevila/.backport/repositories/elastic/kibana/x-pack/solutions/security/plugins/security_solution/package.json:25 Cannot replace multiple occurrences of "../../.." in the same line, please fix manually: /Users/gsoldevila/.backport/repositories/elastic/kibana/x-pack/solutions/security/plugins/security_solution/package.json:25 Cannot replace multiple occurrences of "../../.." in the same line, please fix manually: /Users/gsoldevila/.backport/repositories/elastic/kibana/x-pack/solutions/security/plugins/security_solution/package.json:25 Cannot replace multiple occurrences of "../../.." in the same line, please fix manually: /Users/gsoldevila/.backport/repositories/elastic/kibana/x-pack/solutions/security/plugins/security_solution/package.json:25 Cannot replace multiple occurrences of "../../.." in the same line, please fix manually: /Users/gsoldevila/.backport/repositories/elastic/kibana/x-pack/solutions/security/plugins/security_solution/package.json:25 Cannot replace multiple occurrences of "../../.." in the same line, please fix manually: /Users/gsoldevila/.backport/repositories/elastic/kibana/x-pack/solutions/security/plugins/security_solution/package.json:25 Cannot replace multiple occurrences of "../../.." in the same line, please fix manually: /Users/gsoldevila/.backport/repositories/elastic/kibana/x-pack/solutions/security/plugins/security_solution/package.json:31 ``` </details><details > <summary>Updated references</summary> ``` ./.buildkite/scripts/packer_cache.sh ./.buildkite/scripts/pipelines/security_solution_quality_gate/edr_workflows/mki_security_solution_defend_workflows.sh ./.buildkite/scripts/steps/code_generation/security_solution_codegen.sh ./.buildkite/scripts/steps/functional/defend_workflows.sh ./.buildkite/scripts/steps/functional/defend_workflows_burn.sh ./.buildkite/scripts/steps/functional/defend_workflows_serverless.sh ./.buildkite/scripts/steps/functional/defend_workflows_serverless_burn.sh ./.buildkite/scripts/steps/openapi_bundling/security_solution_openapi_bundling.sh ./.eslintrc.js ./.github/codeql/codeql-config.yml ./.gitignore ./docs/developer/plugin-list.asciidoc ./oas_docs/scripts/merge_ess_oas.js ./package.json ./packages/kbn-dependency-usage/README.md ./packages/kbn-dependency-usage/src/dependency_graph/providers/cruiser.test.ts ./packages/kbn-openapi-generator/README.md ./packages/kbn-repo-packages/package-map.json ./packages/kbn-securitysolution-io-ts-types/src/version/index.ts ./packages/kbn-ts-projects/config-paths.json ./packages/kbn-zod-helpers/README.md ./src/dev/code_coverage/docs/team_assignment/README.md ./src/dev/precommit_hook/casing_check_config.js ./src/dev/storybook/aliases.ts ./src/platform/packages/shared/deeplinks/security/jest.config.js ./src/plugins/data/server/search/search_service.ts ./src/plugins/guided_onboarding/README.md ./tsconfig.base.json ./tsconfig.refs.json ./x-pack/.i18nrc.json ./x-pack/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant-common/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_context/types.ts ./x-pack/platform/packages/shared/kbn-elastic-assistant/index.ts ./x-pack/platform/plugins/shared/osquery/package.json ./x-pack/plugins/cloud_defend/public/common/navigation/types.ts ./x-pack/plugins/cloud_security_posture/public/common/navigation/types.ts ./x-pack/plugins/fleet/dev_docs/fleet_ui_extensions.md ./x-pack/plugins/fleet/server/services/epm/archive/parse.ts ./x-pack/plugins/fleet/server/telemetry/sender.ts ./x-pack/plugins/lists/server/routes/utils/build_siem_response.ts ./x-pack/plugins/lists/server/routes/utils/route_validation.test.ts ./x-pack/plugins/lists/server/routes/utils/route_validation.ts ./x-pack/plugins/rule_registry/common/schemas/README.md ./x-pack/plugins/rule_registry/server/routes/utils/route_validation.ts ./x-pack/solutions/observability/plugins/synthetics/server/telemetry/sender.ts ./x-pack/solutions/security/packages/data_table/README.md ./x-pack/solutions/security/packages/expandable-flyout/README.md ./x-pack/solutions/security/packages/features/src/security/types.ts ./x-pack/solutions/security/packages/navigation/src/constants.ts ./x-pack/solutions/security/plugins/elastic_assistant/server/routes/user_conversations/find_route.ts ./x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/model/alerts/README.md ./x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/prebuilt_rules/model/diff/three_way_diff/three_way_diff_conflict.ts ./x-pack/solutions/security/plugins/security_solution/common/api/endpoint/README.md ./x-pack/solutions/security/plugins/security_solution/common/api/endpoint/actions/response_actions/kill_process/kill_process.ts ./x-pack/solutions/security/plugins/security_solution/common/endpoint/service/response_actions/constants.ts ./x-pack/solutions/security/plugins/security_solution/common/endpoint/utils/kibana_status.ts ./x-pack/solutions/security/plugins/security_solution/common/jest.config.js ./x-pack/solutions/security/plugins/security_solution/docs/adrs/threat_hunting/0001_saving_of_timeline_associated_saved_objects.md ./x-pack/solutions/security/plugins/security_solution/docs/openapi/README.md ./x-pack/solutions/security/plugins/security_solution/docs/rfcs/detection_response/prebuilt_rules_customization.md ./x-pack/solutions/security/plugins/security_solution/jest.config.dev.js ./x-pack/solutions/security/plugins/security_solution/jest.integration.config.js ./x-pack/solutions/security/plugins/security_solution/public/app/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/assistant/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/attack_discovery/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/cases/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/cloud_security_posture/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/common/components/toasters/utils.ts ./x-pack/solutions/security/plugins/security_solution/public/common/components/with_security_context/store.ts ./x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.ts ./x-pack/solutions/security/plugins/security_solution/public/common/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/dashboards/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/detection_engine/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/detections/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/entity_analytics/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/exceptions/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/explore/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/flyout/README.md ./x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/right/hooks/use_fetch_threat_intelligence.ts ./x-pack/solutions/security/plugins/security_solution/public/flyout/document_details/shared/mocks/mock_get_fields_data.ts ./x-pack/solutions/security/plugins/security_solution/public/flyout/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/management/cypress/README.md ./x-pack/solutions/security/plugins/security_solution/public/management/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/notes/api/api.ts ./x-pack/solutions/security/plugins/security_solution/public/notes/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/onboarding/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/overview/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/resolver/documentation/schema.md ./x-pack/solutions/security/plugins/security_solution/public/resolver/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/security_integrations/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/siem_migrations/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/sourcerer/jest.config.js ./x-pack/solutions/security/plugins/security_solution/public/threat_intelligence/use_investigate_in_timeline.ts ./x-pack/solutions/security/plugins/security_solution/public/timelines/jest.config.js ./x-pack/solutions/security/plugins/security_solution/scripts/endpoint/README.md ./x-pack/solutions/security/plugins/security_solution/scripts/endpoint/api_emulator/README.md ./x-pack/solutions/security/plugins/security_solution/scripts/endpoint/common/roles_users/serverless/es_serverless_resources/README.md ./x-pack/solutions/security/plugins/security_solution/scripts/endpoint/common/vm_services.ts ./x-pack/solutions/security/plugins/security_solution/scripts/jest.config.js ./x-pack/solutions/security/plugins/security_solution/scripts/junit_transformer/__snapshots__/junit_transformer.test.ts.snap ./x-pack/solutions/security/plugins/security_solution/scripts/junit_transformer/fixtures/suite_with_failing_test.xml ./x-pack/solutions/security/plugins/security_solution/scripts/mappings/README.md ./x-pack/solutions/security/plugins/security_solution/scripts/openapi/generate.js ./x-pack/solutions/security/plugins/security_solution/scripts/quickstart/README.md ./x-pack/solutions/security/plugins/security_solution/scripts/run_cypress/utils.ts ./x-pack/solutions/security/plugins/security_solution/scripts/telemetry/README.md ./x-pack/solutions/security/plugins/security_solution/server/__mocks__/module_name_map.js ./x-pack/solutions/security/plugins/security_solution/server/assistant/jest.config.js ./x-pack/solutions/security/plugins/security_solution/server/client/jest.config.js ./x-pack/solutions/security/plugins/security_solution/server/config.ts ./x-pack/solutions/security/plugins/security_solution/server/endpoint/jest.config.js ./x-pack/solutions/security/plugins/security_solution/server/endpoint/services/agent/clients/endpoint/endpoint_agent_status_client.test.ts ./x-pack/solutions/security/plugins/security_solution/server/endpoint/services/metadata/mocks.ts ./x-pack/solutions/security/plugins/security_solution/server/fleet_integration/jest.config.js ./x-pack/solutions/security/plugins/security_solution/server/integration_tests/lib/helpers.ts ./x-pack/solutions/security/plugins/security_solution/server/jest.config.js ./x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/README.md ./x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/prebuilt_rules/content/prepackaged_timelines/README.md ./x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/rule_monitoring/logic/detection_engine_health/README.md ./x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/rule_types/new_terms/bulk_create_suppressed_alerts_in_memory.ts ./x-pack/solutions/security/plugins/security_solution/server/lib/entity_analytics/risk_score/painless/index.test.ts ./x-pack/solutions/security/plugins/security_solution/server/lib/jest.config.js ./x-pack/solutions/security/plugins/security_solution/server/lib/risk_score/readme.md ./x-pack/solutions/security/plugins/security_solution/server/lib/telemetry/artifact.test.ts ./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/routes/notes/get_notes.ts ./x-pack/solutions/security/plugins/security_solution/server/lists_integration/jest.config.js ./x-pack/solutions/security/plugins/security_solution/server/search_strategy/jest.config.js ./x-pack/solutions/security/plugins/security_solution/server/usage/jest.config.js ./x-pack/solutions/security/plugins/security_solution/server/utils/jest.config.js ./x-pack/solutions/security/plugins/security_solution_ess/jest.config.dev.js ./x-pack/solutions/security/plugins/security_solution_ess/public/jest.config.js ./x-pack/solutions/security/plugins/security_solution_serverless/common/config.ts ./x-pack/solutions/security/plugins/security_solution_serverless/common/jest.config.js ./x-pack/solutions/security/plugins/security_solution_serverless/jest.config.dev.js ./x-pack/solutions/security/plugins/security_solution_serverless/public/jest.config.js ./x-pack/solutions/security/plugins/security_solution_serverless/server/config.ts ./x-pack/solutions/security/plugins/security_solution_serverless/server/jest.config.js ./x-pack/solutions/security/plugins/threat_intelligence/README.md ./x-pack/solutions/security/plugins/threat_intelligence/common/types/indicator.ts ./x-pack/solutions/security/plugins/threat_intelligence/public/modules/timeline/hooks/use_add_to_timeline.ts ./x-pack/solutions/security/plugins/threat_intelligence/public/modules/timeline/hooks/use_investigate_in_timeline.ts ./x-pack/solutions/security/plugins/threat_intelligence/public/types.ts ./x-pack/solutions/security/plugins/threat_intelligence/public/utils/security_solution_links.ts ./x-pack/solutions/security/plugins/timelines/common/types/timeline/cells/index.ts ./x-pack/solutions/security/plugins/timelines/common/types/timeline/rows/index.ts ./x-pack/solutions/security/plugins/timelines/public/hooks/use_app_toasts.ts ./x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/eql/trial_license_complete_tier/eql_alert_suppression.ts ./x-pack/test/security_solution_cypress/cypress/tsconfig.json ./x-pack/test/security_solution_cypress/package.json ./x-pack/test/security_solution_endpoint/page_objects/policy_page.ts ./x-pack/test/security_solution_playwright/package.json ./x-pack/test/security_solution_playwright/tsconfig.json ./yarn.lock .github/CODEOWNERS ``` </details><details > <summary>Updated relative paths</summary> ``` src/platform/packages/shared/deeplinks/security/jest.config.js:12 src/platform/packages/shared/deeplinks/security/tsconfig.json:2 src/platform/packages/shared/serverless/settings/security_project/tsconfig.json:2 x-pack/solutions/security/plugins/security_solution/README.md:100 x-pack/solutions/security/plugins/security_solution/README.md:22 x-pack/solutions/security/plugins/security_solution/README.md:26 x-pack/solutions/security/plugins/security_solution/README.md:31 x-pack/solutions/security/plugins/security_solution/common/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/docs/openapi/README.md:3 x-pack/solutions/security/plugins/security_solution/docs/openapi/README.md:7 x-pack/solutions/security/plugins/security_solution/jest.config.dev.js:10 x-pack/solutions/security/plugins/security_solution/jest.integration.config.js:10 x-pack/solutions/security/plugins/security_solution/package.json:10 x-pack/solutions/security/plugins/security_solution/package.json:13 x-pack/solutions/security/plugins/security_solution/package.json:16 x-pack/solutions/security/plugins/security_solution/package.json:25 x-pack/solutions/security/plugins/security_solution/package.json:31 x-pack/solutions/security/plugins/security_solution/package.json:8 x-pack/solutions/security/plugins/security_solution/package.json:9 x-pack/solutions/security/plugins/security_solution/public/app/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/assistant/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/attack_discovery/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/cases/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/cloud_security_posture/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/common/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/dashboards/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/detection_engine/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/detections/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/entity_analytics/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/exceptions/hooks/use_import_exception_list/index.tsx:25 x-pack/solutions/security/plugins/security_solution/public/exceptions/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/explore/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/flyout/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/management/cypress/cypress_base.config.ts:27 x-pack/solutions/security/plugins/security_solution/public/management/cypress/tsconfig.json:2 x-pack/solutions/security/plugins/security_solution/public/management/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/management/reporter_config.json:12 x-pack/solutions/security/plugins/security_solution/public/management/reporter_config.json:14 x-pack/solutions/security/plugins/security_solution/public/notes/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/onboarding/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/overview/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/resolver/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/security_integrations/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/siem_migrations/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/sourcerer/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/public/timelines/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/scripts/beat_docs/build.js:8 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/agent_downloader.js:8 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/endpoint_agent_emulator.js:8 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/load_agent_policies.js:10 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/load_blocklists.js:10 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/load_endpoint_policies.js:8 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/load_env_data.js:8 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/load_event_filters.js:10 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/load_host_isolation_exceptions.js:10 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/load_trusted_apps.js:10 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/resolver_generator.js:8 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/run_endpoint_agent.js:8 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/run_sentinelone_host.js:8 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/start_es_serverless_with_security_users.js:8 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/start_external_edr_server_emulator.js:8 x-pack/solutions/security/plugins/security_solution/scripts/endpoint/start_fleet_server.js:8 x-pack/solutions/security/plugins/security_solution/scripts/extract_tactics_techniques_mitre.js:8 x-pack/solutions/security/plugins/security_solution/scripts/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/scripts/junit_transformer/index.js:8 x-pack/solutions/security/plugins/security_solution/scripts/mappings/mappings_generator.js:8 x-pack/solutions/security/plugins/security_solution/scripts/mappings/mappings_loader.js:8 x-pack/solutions/security/plugins/security_solution/scripts/mappings/mappings_loader_script.ts:20 x-pack/solutions/security/plugins/security_solution/scripts/mappings/mappings_loader_script.ts:21 x-pack/solutions/security/plugins/security_solution/scripts/openapi/bundle_detections.js:8 x-pack/solutions/security/plugins/security_solution/scripts/openapi/bundle_endpoint_management.js:8 x-pack/solutions/security/plugins/security_solution/scripts/openapi/bundle_entity_analytics.js:8 x-pack/solutions/security/plugins/security_solution/scripts/openapi/bundle_timeline.js:8 x-pack/solutions/security/plugins/security_solution/scripts/openapi/generate.js:8 x-pack/solutions/security/plugins/security_solution/scripts/quickstart/run.js:8 x-pack/solutions/security/plugins/security_solution/scripts/run_playwright/playwright.ts:327 x-pack/solutions/security/plugins/security_solution/scripts/run_playwright/playwright.ts:337 x-pack/solutions/security/plugins/security_solution/scripts/run_playwright/start_playwright.js:8 x-pack/solutions/security/plugins/security_solution/scripts/siem_migration/draw_graphs.js:8 x-pack/solutions/security/plugins/security_solution/scripts/start_cypress_parallel.js:8 x-pack/solutions/security/plugins/security_solution/scripts/start_cypress_parallel_serverless.js:8 x-pack/solutions/security/plugins/security_solution/server/assistant/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/server/client/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/server/endpoint/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/server/fleet_integration/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/server/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/routes/__mocks__/request_context.ts:18 x-pack/solutions/security/plugins/security_solution/server/lib/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/server/lists_integration/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/server/search_strategy/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/server/usage/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/server/utils/jest.config.js:10 x-pack/solutions/security/plugins/security_solution/tsconfig.json:16 x-pack/solutions/security/plugins/security_solution/tsconfig.json:2 x-pack/solutions/security/plugins/security_solution/tsconfig.json:22 x-pack/solutions/security/plugins/security_solution_ess/README.md:76 x-pack/solutions/security/plugins/security_solution_ess/jest.config.dev.js:10 x-pack/solutions/security/plugins/security_solution_ess/package.json:8 x-pack/solutions/security/plugins/security_solution_ess/package.json:9 x-pack/solutions/security/plugins/security_solution_ess/public/jest.config.js:9 x-pack/solutions/security/plugins/security_solution_ess/tsconfig.json:12 x-pack/solutions/security/plugins/security_solution_ess/tsconfig.json:2 x-pack/solutions/security/plugins/security_solution_serverless/README.md:78 x-pack/solutions/security/plugins/security_solution_serverless/common/jest.config.js:10 x-pack/solutions/security/plugins/security_solution_serverless/jest.config.dev.js:10 x-pack/solutions/security/plugins/security_solution_serverless/package.json:8 x-pack/solutions/security/plugins/security_solution_serverless/package.json:9 x-pack/solutions/security/plugins/security_solution_serverless/public/jest.config.js:10 x-pack/solutions/security/plugins/security_solution_serverless/server/jest.config.js:11 x-pack/solutions/security/plugins/security_solution_serverless/tsconfig.json:12 x-pack/solutions/security/plugins/security_solution_serverless/tsconfig.json:2 ``` </details> --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
5ee2c6a488
|
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/security-defend-workflows (#202840) (#204232)
# Backport This will backport the following commits from `main` to `8.x`: - [Sustainable Kibana Architecture: Move modules owned by `@elastic/security-defend-workflows` (#202840)](https://github.com/elastic/kibana/pull/202840) <!--- 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-13T11:08:36Z","message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/security-defend-workflows` (#202840)","sha":"42af4e60a42380a27e10927fa62af15dfd239c57","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:Defend Workflows","backport:prev-minor"],"number":202840,"url":"https://github.com/elastic/kibana/pull/202840","mergeCommit":{"message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/security-defend-workflows` (#202840)","sha":"42af4e60a42380a27e10927fa62af15dfd239c57"}},"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/202840","number":202840,"mergeCommit":{"message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/security-defend-workflows` (#202840)","sha":"42af4e60a42380a27e10927fa62af15dfd239c57"}}]}] BACKPORT--> |
||
|
09ab870c89
|
[Backport] Dependency Usage CLI (#201815)
## Summary Backport of https://github.com/elastic/kibana/pull/198920 |
||
|
9a7dafcf38
|
[8.x] [CodeQL] Local run script (#194272) (#197989)
# Backport This will backport the following commits from `main` to `8.x`: - [[CodeQL] Local run script (#194272)](https://github.com/elastic/kibana/pull/194272) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Elena Shostak","email":"165678770+elena-shostak@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-28T12:40:27Z","message":"[CodeQL] Local run script (#194272)\n\n## Summary\r\n\r\nThis PR introduces a script that allows developers to run CodeQL\r\nanalysis locally. It uses a Docker container with prebuilt CodeQL\r\nqueries to facilitate easy setup and execution.\r\nThe script has the following key steps:\r\n- Creating a CodeQL database from the source code. The database is\r\nessentially a representation of the codebase that CodeQL uses to analyze\r\nfor potential issues.\r\n- Running the analysis on the created database,\r\n`javascript-security-and-quality` suit is used.\r\n\r\n### Usage\r\n```\r\nbash scripts/codeql/quick_check.sh -s path/to/your-source-dir\r\n```\r\nFor example\r\n```\r\nbash scripts/codeql/quick_check.sh -s ./x-pack/plugins/security_solution/public/common/components/ml/conditional_links\r\n```\r\n\r\nThe `-s` option allows you to specify the path to the source code\r\ndirectory that you wish to analyze.\r\n\r\n### Why custom Docker file?\r\nChecked the ability to use MSFT image for local run\r\nhttps://github.com/microsoft/codeql-container. Turned out it has several\r\nproblems:\r\n1. The published one has an error with [execute\r\npermissions](https://github.com/microsoft/codeql-container/issues/53).\r\n2. Container has outdated nodejs version, so it didn't parse our syntax\r\n(like `??`) and failed.\r\n3. The technique used in the repository to download the CodeQL binaries\r\nand precompile the queries is outdated in the sense that GitHub now\r\noffers pre-compiled queries you can just download. Follow this\r\n[comment](https://github.com/microsoft/codeql-container/issues/53#issuecomment-1875879512).\r\n\r\nTaking this into consideration I have created a lightweight docker image\r\nwithout extraneous dependencies for go/.net/java.\r\n\r\n## Context and interdependencies issues\r\nThere are issues sometimes when analyze run returns no results,\r\nparticularly when analyzing a single folder.\r\nIt might be due to the missing context for the data flow graph CodeQL\r\ngenerates or context for interdependencies. This is actually a trade off\r\nof running it locally for a subset of source directories. We need to\r\nexplicitly state that in the documentation and advise to expand the\r\nscope of source code directories involved for local scan.\r\n\r\nDocumentation for triaging issues will be updated separately.\r\n\r\n__Closes: https://github.com/elastic/kibana/issues/195740__","sha":"9dd4205639ed16f9086a7c5d70e077b6db21d73b","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","enhancement","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[CodeQL] Local run script","number":194272,"url":"https://github.com/elastic/kibana/pull/194272","mergeCommit":{"message":"[CodeQL] Local run script (#194272)\n\n## Summary\r\n\r\nThis PR introduces a script that allows developers to run CodeQL\r\nanalysis locally. It uses a Docker container with prebuilt CodeQL\r\nqueries to facilitate easy setup and execution.\r\nThe script has the following key steps:\r\n- Creating a CodeQL database from the source code. The database is\r\nessentially a representation of the codebase that CodeQL uses to analyze\r\nfor potential issues.\r\n- Running the analysis on the created database,\r\n`javascript-security-and-quality` suit is used.\r\n\r\n### Usage\r\n```\r\nbash scripts/codeql/quick_check.sh -s path/to/your-source-dir\r\n```\r\nFor example\r\n```\r\nbash scripts/codeql/quick_check.sh -s ./x-pack/plugins/security_solution/public/common/components/ml/conditional_links\r\n```\r\n\r\nThe `-s` option allows you to specify the path to the source code\r\ndirectory that you wish to analyze.\r\n\r\n### Why custom Docker file?\r\nChecked the ability to use MSFT image for local run\r\nhttps://github.com/microsoft/codeql-container. Turned out it has several\r\nproblems:\r\n1. The published one has an error with [execute\r\npermissions](https://github.com/microsoft/codeql-container/issues/53).\r\n2. Container has outdated nodejs version, so it didn't parse our syntax\r\n(like `??`) and failed.\r\n3. The technique used in the repository to download the CodeQL binaries\r\nand precompile the queries is outdated in the sense that GitHub now\r\noffers pre-compiled queries you can just download. Follow this\r\n[comment](https://github.com/microsoft/codeql-container/issues/53#issuecomment-1875879512).\r\n\r\nTaking this into consideration I have created a lightweight docker image\r\nwithout extraneous dependencies for go/.net/java.\r\n\r\n## Context and interdependencies issues\r\nThere are issues sometimes when analyze run returns no results,\r\nparticularly when analyzing a single folder.\r\nIt might be due to the missing context for the data flow graph CodeQL\r\ngenerates or context for interdependencies. This is actually a trade off\r\nof running it locally for a subset of source directories. We need to\r\nexplicitly state that in the documentation and advise to expand the\r\nscope of source code directories involved for local scan.\r\n\r\nDocumentation for triaging issues will be updated separately.\r\n\r\n__Closes: https://github.com/elastic/kibana/issues/195740__","sha":"9dd4205639ed16f9086a7c5d70e077b6db21d73b"}},"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/194272","number":194272,"mergeCommit":{"message":"[CodeQL] Local run script (#194272)\n\n## Summary\r\n\r\nThis PR introduces a script that allows developers to run CodeQL\r\nanalysis locally. It uses a Docker container with prebuilt CodeQL\r\nqueries to facilitate easy setup and execution.\r\nThe script has the following key steps:\r\n- Creating a CodeQL database from the source code. The database is\r\nessentially a representation of the codebase that CodeQL uses to analyze\r\nfor potential issues.\r\n- Running the analysis on the created database,\r\n`javascript-security-and-quality` suit is used.\r\n\r\n### Usage\r\n```\r\nbash scripts/codeql/quick_check.sh -s path/to/your-source-dir\r\n```\r\nFor example\r\n```\r\nbash scripts/codeql/quick_check.sh -s ./x-pack/plugins/security_solution/public/common/components/ml/conditional_links\r\n```\r\n\r\nThe `-s` option allows you to specify the path to the source code\r\ndirectory that you wish to analyze.\r\n\r\n### Why custom Docker file?\r\nChecked the ability to use MSFT image for local run\r\nhttps://github.com/microsoft/codeql-container. Turned out it has several\r\nproblems:\r\n1. The published one has an error with [execute\r\npermissions](https://github.com/microsoft/codeql-container/issues/53).\r\n2. Container has outdated nodejs version, so it didn't parse our syntax\r\n(like `??`) and failed.\r\n3. The technique used in the repository to download the CodeQL binaries\r\nand precompile the queries is outdated in the sense that GitHub now\r\noffers pre-compiled queries you can just download. Follow this\r\n[comment](https://github.com/microsoft/codeql-container/issues/53#issuecomment-1875879512).\r\n\r\nTaking this into consideration I have created a lightweight docker image\r\nwithout extraneous dependencies for go/.net/java.\r\n\r\n## Context and interdependencies issues\r\nThere are issues sometimes when analyze run returns no results,\r\nparticularly when analyzing a single folder.\r\nIt might be due to the missing context for the data flow graph CodeQL\r\ngenerates or context for interdependencies. This is actually a trade off\r\nof running it locally for a subset of source directories. We need to\r\nexplicitly state that in the documentation and advise to expand the\r\nscope of source code directories involved for local scan.\r\n\r\nDocumentation for triaging issues will be updated separately.\r\n\r\n__Closes: https://github.com/elastic/kibana/issues/195740__","sha":"9dd4205639ed16f9086a7c5d70e077b6db21d73b"}}]}] BACKPORT--> Co-authored-by: Elena Shostak <165678770+elena-shostak@users.noreply.github.com> |
||
|
4041d274b3
|
[ON-WEEK][POC] Playwright (#190803)
## UPDATE It has been removed the execution of the playwright tests on buildkite, the execution will be re-enabled as soon as we are ready and as described below in the PR, there are still steps pending to be done. ## Motivation **Cypress is not performing well lately.** * We have been facing significant performance issues with Cypress. For instance, it takes a long time to open the visual interface and start executing tests. **Teams are finding it increasingly challenging to write new tests and debug existing ones.** * The time and effort required to create new tests or troubleshoot existing ones have become burdensome. **Concern about the impact this could have on our testing practices.** * Lose motivation to write tests or, worse, skip writing crucial tests. ## Why Playwright? * Compared to Cypress, Playwright seems to be known for its faster execution times and lower resource consumption. What could have a positive impact by having faster feedback during development and execution of new tests as well as more efficient use of CI resources. * Provides powerful debugging tools which can make easier to write, debug and execute tests. * Seems to provide the same capabilities we currently use in our Cypress tests. * Given Playwright's active development and backing by Microsoft, it is likely to continue evolving rapidly, making it a safe long-term choice. Considering all the above, Playwright seems to be a strong candidate to replace Cypress and address all the issues we are facing lately regarding UI test automation. ## Objective of this POC To write in Playwright a couple of tests we currently have on Cypress to check the performance of the tool as well as the development experience. The tests selected have been: - [enable_risk_score_redirect.cy.ts](https://github.com/elastic/kibana/blob/main/x-pack/test/security_solution_cypress/cypress/e2e/entity_analytics/dashboards/enable_risk_score_redirect.cy.ts) - Owned by Entity Analytics team and selected by its simplicity since it does not need any special setup to be executed and is short. - [manual_rule_run.cy.ts](https://github.com/elastic/kibana/blob/main/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_gaps/manual_rule_run.cy.ts) - Owned by Detection Engine team and selected because is short and adds a bit more of complexity due to it needs of clean-up and setting up initial data through the API. ## How to execute the tests ### Visual mode - Navigate to: `x-pack/test/security_solution_playwright` - Execute: `yarn open:ess` for ESS environment or `yarn open:serverless` for serverless environment. ### Headless mode - Navigate to: `x-pack/test/security_solution_playwright` - Execute: `yarn run:ess` for ESS environment or `yarn run:serverless` for serverless environment. ### From VScode - Install `Playwright Test for VScode` extension by Microsoft - Navigate to: `x-pack/test/security_solution_playwright` - Execute: `yarn open:ess` for ESS environment or `yarn open:serverless` for serverless environment. - Open your IDE - Click on the `Testing` icon - On the `Test Explorer` click on the three dots to select the profile you are going to execute `ess` or `serverless` - Click on the test you want to execute or navigate to the spec file of the test and execute it from the same spec. ## My experience - Tests are way easier to implement than with Cypress. - Playwright does not rely on chainable commands. Chainable commands on Cypress can lead to confusing code. - Without chainable commands, the flow of the tests is more explicit and easier to understand. - You can notice that the tool has been designed with Typescript in mind. - Is super easy to implement the Page Object Model pattern (POM). - With POM the test code is clean and focused on "what" rather than "how". - Love the fact that you can execute the tests from the same IDE without having to switch windows during test development. - The visual mode execution gives you lots of information out of the box. ## The scope of this PR - Sets the initial infrastructure to write and execute tests with Playwright. - Has examples and set a basis about how to write tests using the POM. - Allows the execution of the tests in ESS and serverless (just stateless environment). - Integrates the execution of the tests with buildkite. ## Pending to be done/investigate - Proper readme - How to split tests and PO between the different teams - Good reports on CI - Upload screenshots on CI - Flaky test suite runner - Complete the labeling - Execution of the tests on MKI environments ## FAQ **Can I start adding tests to playwright?** Currently, you can explore and experiment with Playwright, but there is still work pending to be done to make the tool officially usable. **Why security engineering productivity is the owner of the playwright folder?** This is something temporary to make sure that good practices are followed. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: dkirchan <diamantis.kirchantzoglou@elastic.co> Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com> Co-authored-by: Jon <jon@budzenski.me> |
||
|
86f9af8243
|
[OAS][DOCS] Add overlays for connector config and examples (#191791) | ||
|
bc084f91c2
|
[DOCS][OAS] Update API documentation license (#191563) | ||
|
d07ffe2a04
|
Add Kibana Dev Container (#188887)
## Summary
- Closes elastic/kibana-operations#101
This PR adds a [Dev Container](https://containers.dev/) to utilize for
Kibana local development in an isolated environment. The original
intention was to create a local environment for FIPS development because
setting up Kibana in FIPS mode is complicated and has the potential to
break the user's OS. However, it has been altered to allow for general
development if an engineer chooses as well. The idea is for this be a
cost efficient replacement for
[kibana-remote-dev](https://github.com/elastic/kibana-remote-dev)
eventually.
### Testing
- In VS Code you should be able to use the `Dev Containers: Clone GitHub
Pull Request in Named Container Volume...` command from the Command
Palette (F1) to easily test this PR.
- See the
[docs](
|
||
|
0770e947e2
|
[OAS][DOCS] Add feedback links for Kibana APIs (#191145) | ||
|
d738c2cf2e
|
[Moving] Move APM and APM_Data_Access folders into /x-pack/observability_solution/ (#177433)
## Summary This PR is part of the initiative to consolidate Observability plugins into `x-pack/plugins/observability_solution`. This was discussed and agreed upon with the Observability org in the Observability Office Hours meeting at the end of 2023. ## Related PRs: - [ ] [Move APM ](https://github.com/elastic/kibana/pull/177433) <-- you are here - [x] [Move Data Quality](https://github.com/elastic/kibana/pull/177456) - [x] [Move Exploratory View](https://github.com/elastic/kibana/pull/177440) - [ ] [Move Infra](https://github.com/elastic/kibana/pull/177443) - [X] Move Logs Explorer - [x] [Move Observability AI Assistant](https://github.com/elastic/kibana/pull/177427) - [ ] [Move Observability App](https://github.com/elastic/kibana/pull/177437) - [x] [Move Observability Onboarding](https://github.com/elastic/kibana/pull/177458) - [x] [Move Observability Shared](https://github.com/elastic/kibana/pull/177463) - [x] [Move Profiling](https://github.com/elastic/kibana/pull/177453) - [x] [Move Synthetics](https://github.com/elastic/kibana/pull/177464) - [x] [Move Uptime](https://github.com/elastic/kibana/pull/177466) - [x] [Move UX](https://github.com/elastic/kibana/pull/177470) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
9c2a677f7f
|
Remove references to deleted .ci folder (#177168) | ||
|
d75103eacb
|
[FTR] add service to test user roles on serverless (#170417)
## Summary ### This PR enables user roles testing in FTR We use SAML authentication to get session cookie for user with the specific role. The cookie is cached on FTR service side so we only make SAML auth one time per user within FTR config run. For Kibana CI service relies on changes coming in #170852 In order to run FTR tests locally against existing MKI project: - add `.ftr/role_users.json` in Kibana root dir ``` { "viewer": { "email": "...", "password": "..." }, "developer": { "email": "...", "password": "..." } } ``` - set Cloud hostname (!not project hostname!) with TEST_CLOUD_HOST_NAME, e.g. `export TEST_CLOUD_HOST_NAME=console.qa.cld.elstc.co` ### How to use: - functional tests: ``` const svlCommonPage = getPageObject('svlCommonPage'); before(async () => { // login with Viewer role await svlCommonPage.loginWithRole('viewer'); // you are logged in in browser and on project home page, start the test }); it('has project header', async () => { await svlCommonPage.assertProjectHeaderExists(); }); ``` - API integration tests: ``` const svlUserManager = getService('svlUserManager'); const supertestWithoutAuth = getService('supertestWithoutAuth'); let credentials: { Cookie: string }; before(async () => { // get auth header for Viewer role credentials = await svlUserManager.getApiCredentialsForRole('viewer'); }); it('returns full status payload for authenticated request', async () => { const { body } = await supertestWithoutAuth .get('/api/status') .set(credentials) .set('kbn-xsrf', 'kibana'); expect(body.name).to.be.a('string'); expect(body.uuid).to.be.a('string'); expect(body.version.number).to.be.a('string'); }); ``` Flaky-test-runner: #1 https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4081 #2 https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4114 --------- Co-authored-by: Robert Oskamp <traeluki@gmail.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com> |
||
|
1ada79ede7
|
[APM] Add snapshots to visual regression tests (#165834)
Added snapshots to the service map e2e test and other improvements. Due to flakiness of the visual regression tests, we leave them skipped, and we can continue investigating, this issue https://github.com/elastic/kibana/issues/166050 was created with this porpoise. --------- Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co> |
||
|
70b337a135
|
Fix @kbn/import-resolver detection of nested node_modules (#162391)
Ensure that a plugin containing a nested `node_modules` folder correctly identifies imports from that folder as regular node modules instead of relative imports. Kibana should currently only have a single root `node_modules` folder, so this should not be a real issue. However, if for some reason a stray `node_modules` folder is created, this commit will make sure it's not introducing hard to debug ESLint errors. |
||
|
50c31c47d1
|
Update gitignore (#161975)
Includes a few compiled cypress typescript files generated during `node scripts/type_check`. We're not using a global glob due to some plugins using a javascript base. |
||
|
6ffc38065b
|
[APM] Add data section to Diagnostics tool (#159884)
This adds an overview of the number of documents per document type. It's
possible to filter the data via search bar and time range.
<img width="1478" alt="image"
src="
|
||
|
8f6469a48b
|
[APM] Initial diagnostics tool (#157500)
Pitch: https://github.com/elastic/apm-dev/issues/872 (_internal_) Introduces the Diagnostics tool under a hidden page: `/app/apm/diagnostics`. The Diagnostics tool can help find problems with missing index templates, data streams with incorrect index templates and indices with incorrect mappings. It will be released in 8.9 but customers can take advantage of it as soon as this PR is merged. They can export a diagnostics bundle from their system by running this script: ``` node x-pack/plugins/apm/scripts/diagnostics_bundle \ --kbHost https://foo.kb.europe-west2.gcp.elastic-cloud.com:9243 \ --esHost https://foo.es.europe-west2.gcp.elastic-cloud.com:9243 \ --username elastic --password changeme ``` 
## Summary This PR adds boilerplate code and a few initial end-to-end tests to serverless plugins. Note that the tests defined in this PR are not part of any CI run yet, this will be done in a follow-up after this PR is merged. ### Details The serverless test structure corresponds to what we have in `x-pack/test` with API tests in `api_integration` and UI tests in `functional`, each with their set of helper methods and sub-directories for - `common` functionality shared across serverless projects (core, shared UX, ...) - `observability` project specific functionality - `search` project specific functionality - `security` project specific functionality The `shared` directory contains fixtures, services, ... that are shared across `api_integration` abd `functional` tests. ``` x-pack/test_serverless/ ├─ api_integration │ ├─ services │ ├─ test_suites │ │ ├─ common │ │ ├─ observability │ │ ├─ search │ │ ├─ security ├─ functional │ ├─ page_objects │ ├─ services │ ├─ test_suites │ │ ├─ common │ │ ├─ observability │ │ ├─ search │ │ ├─ security ├─ shared │ ├─ services │ ├─ types ``` See also `x-pack/test_serverless/README.md` ### Run tests Similar to how functional tests are run in `x-pack/test`, you can point the functional tests server and test runner to config files in this `x-pack/test_serverless` directory, e.g. from the `x-pack` directory run: ``` node scripts/functional_tests_server.js --config test_serverless/api_integration/test_suites/common/config.ts ``` and ``` node scripts/functional_test_runner.js --config test_serverless/api_integration/test_suites/common/config.ts ``` ### Additional changes - The stateful `common_page` page object used the existence of the global nav to determine `isChromeVisible` and `isChromeHidden`, which is not working when the global nav is disabled. To solve this, a `data-test-subj` that indicates the chrome visible state is added to the Kibana app wrapper and is used for the checks. - Add a few `data-test-subj` entries to the Observability overview page. - Add optional `dataTestSubj` to the `Navigation` component and use that for the serverless search nav. - Add optional `titleDataTestSubj` to the `SolutionNav` component and use it for the serverless security nav. - Add a data-test-subj entry to the Search overview page. |
||
|
1b85815402
|
[packages] migrate all plugins to packages (#148130)
Fixes https://github.com/elastic/kibana/issues/149344 This PR migrates all plugins to packages automatically. It does this using `node scripts/lint_packages` to automatically migrate `kibana.json` files to `kibana.jsonc` files. By doing this automatically we can simplify many build and testing procedures to only support packages, and not both "packages" and "synthetic packages" (basically pointers to plugins). The majority of changes are in operations related code, so we'll be having operations review this before marking it ready for review. The vast majority of the code owners are simply pinged because we deleted all `kibana.json` files and replaced them with `kibana.jsonc` files, so we plan on leaving the PR ready-for-review for about 24 hours before merging (after feature freeze), assuming we don't have any blockers (especially from @elastic/kibana-core since there are a few core specific changes, though the majority were handled in #149370). --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
065dbe759c
|
[serverless] split serverless config files (#150616)
We are currently expecting serverless environments to be broken up into several different envs, this config structure allows us to customize the config based on that environment without major modifications to the config loading system. |
||
|
e07a65ef05
|
[serverless] add support for loading serverless specific config locally (#149878)
This adds the `--serverless` CLI arg (only available in dev mode, you can also use `yarn start-serverless`), which will load the new `config/kibana.serverless.yml` file. For now, this file is not included in the build artifact, though we might include a `--serverless` flag which replaces the `kibana.yml` file with `kibana.serverless.yml`. @jbudz will follow up after this PR with the build related changes to get this working with PR cloud deploys, which will be enough changes for us to start iterating on UI specific changes based on running in a serverless environment. Additionally, support for the undocumented `KBN_CONFIG_PATHS` env var is added, which should contain a comma-separated list of paths to kibana config files. These files are loaded, in the specified order, before any of the config files listed in the CLI but after the kibana.yml config file. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
c8f83ed2eb
|
Move real plugins out of 'fixtures' dirs (#148756)
The location of plugins was previously somewhat irrelevant, but as we move into packages it's more important that we can find all plugins in the repository, and we would like to be able to do that without needing to maintain a manifest somewhere to accomplish this. In order to make this possible we plan to find any plugin/package by spotting all kibana.json files which are not "fixtures". This allows plugin-like code (but not actual plugin code) to exist for testing purposes, but it must be within some form of "fixtures" directory, and any plugin that isn't in a fixtures directory will be automatically pulled into the system (though test plugins, examples, etc. will still only be loaded when the plugin's path is passed via `--plugin-path`, the system will know about them and use that knowledge for other things). Since this is just a rename Operations will review and merge by EOD Jan 12th unless someone has a blocking concern. Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
d6be4a4b06
|
Implement package linter (#148496)
This PR implements a linter like the TS Project linter, except for packages in the repo. It does this by extracting the reusable bits from the TS Project linter and reusing them for the project linter. The only rule that exists for packages right now is that the "name" in the package.json file matches the "id" in Kibana.jsonc. The goal is to use a rule to migrate kibana.json files on the future. Additionally, a new rule for validating the indentation of tsconfig.json files was added. Validating and fixing violations is what has triggered review by so many teams, but we plan to treat those review requests as notifications of the changes and not as blockers for merging. Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
14f8e87665
|
[Synthetics] Fix settings data retention update (#148437)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Fixes https://github.com/elastic/kibana/issues/146343 |
||
|
86527753a2
|
[Synthetics] Initial monitor status alert (#147672)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Fixes https://github.com/elastic/kibana/issues/145980 |
||
|
afb09ccf8a
|
Transpile packages on demand, validate all TS projects (#146212)
## Dearest Reviewers 👋 I've been working on this branch with @mistic and @tylersmalley and we're really confident in these changes. Additionally, this changes code in nearly every package in the repo so we don't plan to wait for reviews to get in before merging this. If you'd like to have a concern addressed, please feel free to leave a review, but assuming that nobody raises a blocker in the next 24 hours we plan to merge this EOD pacific tomorrow, 12/22. We'll be paying close attention to any issues this causes after merging and work on getting those fixed ASAP. 🚀 --- The operations team is not confident that we'll have the time to achieve what we originally set out to accomplish by moving to Bazel with the time and resources we have available. We have also bought ourselves some headroom with improvements to babel-register, optimizer caching, and typescript project structure. In order to make sure we deliver packages as quickly as possible (many teams really want them), with a usable and familiar developer experience, this PR removes Bazel for building packages in favor of using the same JIT transpilation we use for plugins. Additionally, packages now use `kbn_references` (again, just copying the dx from plugins to packages). Because of the complex relationships between packages/plugins and in order to prepare ourselves for automatic dependency detection tools we plan to use in the future, this PR also introduces a "TS Project Linter" which will validate that every tsconfig.json file meets a few requirements: 1. the chain of base config files extended by each config includes `tsconfig.base.json` and not `tsconfig.json` 1. the `include` config is used, and not `files` 2. the `exclude` config includes `target/**/*` 3. the `outDir` compiler option is specified as `target/types` 1. none of these compiler options are specified: `declaration`, `declarationMap`, `emitDeclarationOnly`, `skipLibCheck`, `target`, `paths` 4. all references to other packages/plugins use their pkg id, ie: ```js // valid { "kbn_references": ["@kbn/core"] } // not valid { "kbn_references": [{ "path": "../../../src/core/tsconfig.json" }] } ``` 5. only packages/plugins which are imported somewhere in the ts code are listed in `kbn_references` This linter is not only validating all of the tsconfig.json files, but it also will fix these config files to deal with just about any violation that can be produced. Just run `node scripts/ts_project_linter --fix` locally to apply these fixes, or let CI take care of automatically fixing things and pushing the changes to your PR. > **Example:** [` |
||
|
68893b7e61
|
chore(NA): include .ijwb folder into the .gitignore file (#144755) | ||
|
e5d186a6f0
|
[ts] stop building @types packages in bootstrap | ||
|
be432c0d89
|
Upgrade to Jest 27 (#139335)
* Upgrade to Jest 27 * fix test |
||
|
7274c27218
|
[ci/build] Add label for building example plugins (#139720)
* [ci/build] Add label for building example plugins * update snapshots * remove plugins before tests * fix * fix again * fix formatting |
||
|
de9b7c6f48
|
Remove file-type dependency via jimp (#137214)
* Removed file-type from package.json deps. Updated jimp to 0.16.1. Updated light & dark dashboard baseline screenshots to resolve failure due to resize degradation. * Replaced jimp with sharp and pixelmatch. Eliminates several deps, including file-type. Eliminates quality degradation from image resizing. * Fixed copy paste error, which lead to pass positives and errors. * Integrated updateBaselines flag into dashboards report testing. Fixed sharp resize to fit and not truncate the original image. * Removed accidental '.only' * Reverted area chart baseline. * Removed explicit declaration of sharp from package.json. * Adjusted dashboard screenshot size in attempt to eliminate layout scaling issues in CI testing. * Reverted dashboard screenshot size. Lowered tolerance in dashboard PNG reporting tests to force failure and collect CI screenshots. * Changed session save location for dashboard report images for better CI reporting. * Fixed small dashboard baseline screenshot with correct aspect ratio. * Updated 2 basline screenshots from CI. Lowered PNG match tolerance for dashboard screenshots to 1% for investigation of remaining screens. * Update of dashboard controls light mode baseline. Change of forced container width size in large dashboard layout test. * Updated dashboard controls dark mode baseline screenshot. Adjusted forced container width in large dashboard layout test for troubleshooting. * Lowering tolerance of PNG compare tests from 9% to 1% for troubleshooting. Replaced references to dedundant image service with existing, more adopted reporting service. Ideally, the PNG functions of the reporting service would be merged with the screenshot service as an image service. * Reverting tolerance of PNG compares to 0.09. Will create GH issues for specific teams to investigate. * Implemented PngService to provide an accessible single reference to PNG compare testing. Removed redundant implementations and references. * Updated service reference and call to png compare function left out of last commit. * Updated another missed PNG reference. * Removed superfluous parameter. * Update after bootstrap * Updated area chart baseline to match new render with panel filters. * Reverted limits in dashboard snapshot tests to original values. * Merge and rebuild. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> |
||
|
0b37272c8e
|
[jest] automatically determine run order (attempt 2) (#131091) | ||
|
f149a17871 |
Revert "[jest] automatically determine run order (#130857)"
This reverts commit
|
||
|
1a05ce5cab
|
[jest] automatically determine run order (#130857) | ||
|
bd8171c13e | [plugins] use module ids to import across plugins | ||
|
5b682e093c
|
git: Ingore local snyk cache (#127586)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> |
||
|
eb68e95acd
|
[ts] enable sourcemaps in summarized types of @kbn/crypto (#126410)
* [ts] enable sourcemaps in summarized types of @kbn/crypto * update snapshots * remove unnecessary exports of @kbn/type-summarizer package * remove tsc from the build process * use `@kbn/type-summarizer` to summarize its own types * add tests for interface and function * switch to export type where necessary * ignore __tmp__ in global jest preset * ignore __tmp__ globally * remove `@kbn/crypto` types path |
||
|
31261df6ad
|
[Fleet] Add functional tests for bundled packages (#126595)
* Add first pass functional tests for bundled packages * Address PR feedback + fix TS errors * Move docker wait hook * Move setupFleetAndAgents call in test * Try disabling bundled tests to debug CI * Fix failing jest tests * Fix type errors * Fix type errors Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> |
||
|
178e7a7e4c
|
[TSVB] add rison helper and URL encoding for drilldown urls (#124185) | ||
|
68466226b3
|
[Fleet] Support bundling packages as zip archives with Kibana source (#122297)
* Support installing bundled packages during Fleet setup
* Fix failing API integration test
* Sort packages in test
* Move get bundled packages + add tests
* Fix mock installPackage type
* Don't attempt to install already-installed bundled packageS
* Use unique installation status for bundled packages
* Fix failing tests
* Fix type error
* Fix logic for latest value
* Remove bundled packages from test since they no longer come back from list endpoint
* Change assertion for empty preconfiguration update request
* Add all bundled packages + refactor install to use Promise.allSettled
* Fix name comparison again
* Rework approach to use preferred source at install-time instead
* Add helper script + update bundled packages + allow updates for upload path
* Fix failing test
* Address code review + add additional tests for update cases
* Fix type error
* Remove configOverride concept for now
* Fix another type error 🙃
* Add build step for bundling fleet packages
* Fix unused import in build step
* Keep bundled_packages directory in place to prevent setup failures
* Remove gitkeep + make bundled package directory lookup fault tolerant
* Update gitignore
* Add doc comment + use build.resolvePath
* Add --use-snapshot-registry CLI flag
* Update snapshots
* Rename arg to use-snapshot-epr
* Don't fail the build on failure to bundled packages
* Update all checksums + don't attempt download multiple times
* Skip checksum process for bundled packages for now
* mkdirp destination directory to fix tests
* Revert build_distributables file
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
|
||
|
e39faea65d
|
[bazel] Setup remote cache settings on bootstrap (#121445) | ||
|
4385ac4d83
|
[eslint] enable type-specific lint rules (#114184)
* [eslint] enable type-specific lint rules * autofix violations * duplicate eslint-disable to new export statement Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> |
||
|
157a37114f
|
[Fleet] cypress setup (#113106)
* added cypress setup for fleet * updated readme * fixed types * fix unused * starting up fleet server in cypress * added more fleet tests * added package update test * updated readme * trying jenkins run * trying jenkins run * trying jenkins run * fix types, cypress config * example of mocked requests * added getBySel * fix test after refactor * removed duplication * fix tests * added to buildkite * updated tests * starting agent with docker * trying to fix ip address * ifconfig * ip address * ip address * ip address * type fix * remove extra logging * fixed test * fix buildkite * cleanup * cleanup * using docker for fleet_server * fix * fix * trying to fix * update config * test * test * test * test * revert changes * test * test * static ip on linux * docker version * try again * fixed review comments * fixed types Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com> |
||
|
163fa7d2e0
|
[build] Add cloud docker images (#107949)
Co-authored-by: Przemysław Hejman <przemyslaw.hejman@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> |