Skip to content

Commit

Permalink
[8.x] SKA: Relocate new response-ops packages (#211241) (#211400)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.x`:
- [SKA: Relocate new response-ops packages
(#211241)](#211241)

<!--- Backport version: 9.6.4 -->

### 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-17T09:57:15Z","message":"SKA:
Relocate new response-ops packages (#211241)\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####
3 packages(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/response-ops-alerts-apis`
|\r\n`src/platform/packages/shared/response-ops/alerts-apis` |\r\n|
`@kbn/response-ops-alerts-fields-browser`
|\r\n`src/platform/packages/shared/response-ops/alerts-fields-browser`
|\r\n| `@kbn/response-ops-alerts-table`
|\r\n`src/platform/packages/shared/response-ops/alerts-table`
|\r\n\r\n\r\n<details >\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./package.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/platform/packages/private/kbn-repo-packages/package-map.json\r\n./src/platform/packages/shared/response-ops/alerts-apis/jest.config.js\r\n./src/platform/packages/shared/response-ops/alerts-fields-browser/jest.config.js\r\n./src/platform/packages/shared/response-ops/alerts-table/jest.config.js\r\n./tsconfig.base.json\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/response-ops/alerts-apis/jest.config.js:12\r\nsrc/platform/packages/shared/response-ops/alerts-apis/tsconfig.json:2\r\nsrc/platform/packages/shared/response-ops/alerts-fields-browser/jest.config.js:12\r\nsrc/platform/packages/shared/response-ops/alerts-fields-browser/tsconfig.json:2\r\nsrc/platform/packages/shared/response-ops/alerts-table/jest.config.js:12\r\nsrc/platform/packages/shared/response-ops/alerts-table/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>\r\nCo-authored-by:
Umberto Pepato
<umbopepato@users.noreply.github.com>","sha":"e527f2b79a02d9f4b3eea00dad149c8b05ea85de","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","v9.0.0","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"SKA:
Relocate new response-ops
packages","number":211241,"url":"https://github.com/elastic/kibana/pull/211241","mergeCommit":{"message":"SKA:
Relocate new response-ops packages (#211241)\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####
3 packages(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/response-ops-alerts-apis`
|\r\n`src/platform/packages/shared/response-ops/alerts-apis` |\r\n|
`@kbn/response-ops-alerts-fields-browser`
|\r\n`src/platform/packages/shared/response-ops/alerts-fields-browser`
|\r\n| `@kbn/response-ops-alerts-table`
|\r\n`src/platform/packages/shared/response-ops/alerts-table`
|\r\n\r\n\r\n<details >\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./package.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/platform/packages/private/kbn-repo-packages/package-map.json\r\n./src/platform/packages/shared/response-ops/alerts-apis/jest.config.js\r\n./src/platform/packages/shared/response-ops/alerts-fields-browser/jest.config.js\r\n./src/platform/packages/shared/response-ops/alerts-table/jest.config.js\r\n./tsconfig.base.json\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/response-ops/alerts-apis/jest.config.js:12\r\nsrc/platform/packages/shared/response-ops/alerts-apis/tsconfig.json:2\r\nsrc/platform/packages/shared/response-ops/alerts-fields-browser/jest.config.js:12\r\nsrc/platform/packages/shared/response-ops/alerts-fields-browser/tsconfig.json:2\r\nsrc/platform/packages/shared/response-ops/alerts-table/jest.config.js:12\r\nsrc/platform/packages/shared/response-ops/alerts-table/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>\r\nCo-authored-by:
Umberto Pepato
<umbopepato@users.noreply.github.com>","sha":"e527f2b79a02d9f4b3eea00dad149c8b05ea85de"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"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/211241","number":211241,"mergeCommit":{"message":"SKA:
Relocate new response-ops packages (#211241)\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####
3 packages(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/response-ops-alerts-apis`
|\r\n`src/platform/packages/shared/response-ops/alerts-apis` |\r\n|
`@kbn/response-ops-alerts-fields-browser`
|\r\n`src/platform/packages/shared/response-ops/alerts-fields-browser`
|\r\n| `@kbn/response-ops-alerts-table`
|\r\n`src/platform/packages/shared/response-ops/alerts-table`
|\r\n\r\n\r\n<details >\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./package.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/platform/packages/private/kbn-repo-packages/package-map.json\r\n./src/platform/packages/shared/response-ops/alerts-apis/jest.config.js\r\n./src/platform/packages/shared/response-ops/alerts-fields-browser/jest.config.js\r\n./src/platform/packages/shared/response-ops/alerts-table/jest.config.js\r\n./tsconfig.base.json\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/response-ops/alerts-apis/jest.config.js:12\r\nsrc/platform/packages/shared/response-ops/alerts-apis/tsconfig.json:2\r\nsrc/platform/packages/shared/response-ops/alerts-fields-browser/jest.config.js:12\r\nsrc/platform/packages/shared/response-ops/alerts-fields-browser/tsconfig.json:2\r\nsrc/platform/packages/shared/response-ops/alerts-table/jest.config.js:12\r\nsrc/platform/packages/shared/response-ops/alerts-table/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>\r\nCo-authored-by:
Umberto Pepato
<umbopepato@users.noreply.github.com>","sha":"e527f2b79a02d9f4b3eea00dad149c8b05ea85de"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
  • Loading branch information
gsoldevila authored Feb 17, 2025
1 parent a4e5dab commit 9181d0c
Show file tree
Hide file tree
Showing 171 changed files with 33 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -759,9 +759,9 @@ src/platform/packages/private/kbn-reporting/server @elastic/appex-sharedux
src/platform/packages/shared/kbn-resizable-layout @elastic/kibana-data-discovery
examples/resizable_layout_examples @elastic/kibana-data-discovery
x-pack/test/plugin_functional/plugins/resolver_test @elastic/security-solution
packages/response-ops/alerts_apis @elastic/response-ops
packages/response-ops/alerts_fields_browser @elastic/response-ops
packages/response-ops/alerts_table @elastic/response-ops
src/platform/packages/shared/response-ops/alerts-apis @elastic/response-ops
src/platform/packages/shared/response-ops/alerts-fields-browser @elastic/response-ops
src/platform/packages/shared/response-ops/alerts-table @elastic/response-ops
src/platform/packages/shared/response-ops/rule_form @elastic/response-ops
src/platform/packages/shared/response-ops/rule_params @elastic/response-ops
examples/response_stream @elastic/ml-ui
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -764,9 +764,9 @@
"@kbn/resizable-layout": "link:src/platform/packages/shared/kbn-resizable-layout",
"@kbn/resizable-layout-examples-plugin": "link:examples/resizable_layout_examples",
"@kbn/resolver-test-plugin": "link:x-pack/test/plugin_functional/plugins/resolver_test",
"@kbn/response-ops-alerts-apis": "link:packages/response-ops/alerts_apis",
"@kbn/response-ops-alerts-fields-browser": "link:packages/response-ops/alerts_fields_browser",
"@kbn/response-ops-alerts-table": "link:packages/response-ops/alerts_table",
"@kbn/response-ops-alerts-apis": "link:src/platform/packages/shared/response-ops/alerts-apis",
"@kbn/response-ops-alerts-fields-browser": "link:src/platform/packages/shared/response-ops/alerts-fields-browser",
"@kbn/response-ops-alerts-table": "link:src/platform/packages/shared/response-ops/alerts-table",
"@kbn/response-ops-rule-form": "link:src/platform/packages/shared/response-ops/rule_form",
"@kbn/response-ops-rule-params": "link:src/platform/packages/shared/response-ops/rule_params",
"@kbn/response-stream-plugin": "link:examples/response_stream",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/packages/response-ops/alerts_apis'],
setupFilesAfterEnv: ['<rootDir>/packages/response-ops/alerts_apis/setup_tests.ts'],
rootDir: '../../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/response-ops/alerts-apis'],
setupFilesAfterEnv: [
'<rootDir>/src/platform/packages/shared/response-ops/alerts-apis/setup_tests.ts',
],
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.base.json",
"extends": "../../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/packages/response-ops/alerts_fields_browser'],
setupFilesAfterEnv: ['<rootDir>/packages/response-ops/alerts_fields_browser/setup_tests.ts'],
rootDir: '../../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/response-ops/alerts-fields-browser'],
setupFilesAfterEnv: [
'<rootDir>/src/platform/packages/shared/response-ops/alerts-fields-browser/setup_tests.ts',
],
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.base.json",
"extends": "../../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/packages/response-ops/alerts_table'],
setupFilesAfterEnv: ['<rootDir>/packages/response-ops/alerts_table/setup_tests.ts'],
rootDir: '../../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/response-ops/alerts-table'],
setupFilesAfterEnv: [
'<rootDir>/src/platform/packages/shared/response-ops/alerts-table/setup_tests.ts',
],
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.base.json",
"extends": "../../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -1512,12 +1512,12 @@
"@kbn/resizable-layout-examples-plugin/*": ["examples/resizable_layout_examples/*"],
"@kbn/resolver-test-plugin": ["x-pack/test/plugin_functional/plugins/resolver_test"],
"@kbn/resolver-test-plugin/*": ["x-pack/test/plugin_functional/plugins/resolver_test/*"],
"@kbn/response-ops-alerts-apis": ["packages/response-ops/alerts_apis"],
"@kbn/response-ops-alerts-apis/*": ["packages/response-ops/alerts_apis/*"],
"@kbn/response-ops-alerts-fields-browser": ["packages/response-ops/alerts_fields_browser"],
"@kbn/response-ops-alerts-fields-browser/*": ["packages/response-ops/alerts_fields_browser/*"],
"@kbn/response-ops-alerts-table": ["packages/response-ops/alerts_table"],
"@kbn/response-ops-alerts-table/*": ["packages/response-ops/alerts_table/*"],
"@kbn/response-ops-alerts-apis": ["src/platform/packages/shared/response-ops/alerts-apis"],
"@kbn/response-ops-alerts-apis/*": ["src/platform/packages/shared/response-ops/alerts-apis/*"],
"@kbn/response-ops-alerts-fields-browser": ["src/platform/packages/shared/response-ops/alerts-fields-browser"],
"@kbn/response-ops-alerts-fields-browser/*": ["src/platform/packages/shared/response-ops/alerts-fields-browser/*"],
"@kbn/response-ops-alerts-table": ["src/platform/packages/shared/response-ops/alerts-table"],
"@kbn/response-ops-alerts-table/*": ["src/platform/packages/shared/response-ops/alerts-table/*"],
"@kbn/response-ops-rule-form": ["src/platform/packages/shared/response-ops/rule_form"],
"@kbn/response-ops-rule-form/*": ["src/platform/packages/shared/response-ops/rule_form/*"],
"@kbn/response-ops-rule-params": ["src/platform/packages/shared/response-ops/rule_params"],
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6878,15 +6878,15 @@
version "0.0.0"
uid ""

"@kbn/response-ops-alerts-apis@link:packages/response-ops/alerts_apis":
"@kbn/response-ops-alerts-apis@link:src/platform/packages/shared/response-ops/alerts-apis":
version "0.0.0"
uid ""

"@kbn/response-ops-alerts-fields-browser@link:packages/response-ops/alerts_fields_browser":
"@kbn/response-ops-alerts-fields-browser@link:src/platform/packages/shared/response-ops/alerts-fields-browser":
version "0.0.0"
uid ""

"@kbn/response-ops-alerts-table@link:packages/response-ops/alerts_table":
"@kbn/response-ops-alerts-table@link:src/platform/packages/shared/response-ops/alerts-table":
version "0.0.0"
uid ""

Expand Down

0 comments on commit 9181d0c

Please sign in to comment.