[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-security (#202748) (#205569)

# Backport

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

<!--- 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":"2025-01-05T11:57:01Z","message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/kibana-security`
(#202748)\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####
4 plugin(s) are going to be relocated:\n\n| Id | Target folder |\n| -- |
------------- |\n| `@kbn/encrypted-saved-objects-plugin`
|\n`x-pack/platform/plugins/shared/encrypted_saved_objects` |\n|
`@kbn/interactive-setup-plugin`
|\n`src/platform/plugins/private/interactive_setup` |\n|
`@kbn/security-plugin` | `x-pack/platform/plugins/shared/security` |\n|
`@kbn/spaces-plugin` | `x-pack/platform/plugins/shared/spaces`
|\n\n\n\n\n#### 14 packages(s) are going to be relocated:\n\n| Id |
Target folder |\n| -- | ------------- |\n| `@kbn/crypto` |
`src/platform/packages/shared/kbn-crypto` |\n| `@kbn/handlebars` |
`src/platform/packages/private/kbn-handlebars` |\n|
`@kbn/safer-lodash-set`
|\n`src/platform/packages/shared/kbn-safer-lodash-set` |\n|
`@kbn/security-api-key-management`
|\n`x-pack/platform/packages/shared/security/api_key_management` |\n|
`@kbn/security-authorization-core`
|\n`x-pack/platform/packages/private/security/authorization_core` |\n|
`@kbn/security-authorization-core-common`
|\n`x-pack/platform/packages/private/security/authorization_core_common`
|\n| `@kbn/security-form-components`
|\n`x-pack/platform/packages/shared/security/form_components` |\n|
`@kbn/security-hardening`
|\n`src/platform/packages/shared/kbn-security-hardening` |\n|
`@kbn/security-plugin-types-common`
|\n`x-pack/platform/packages/shared/security/plugin_types_common` |\n|
`@kbn/security-plugin-types-public`
|\n`x-pack/platform/packages/shared/security/plugin_types_public` |\n|
`@kbn/security-plugin-types-server`
|\n`x-pack/platform/packages/shared/security/plugin_types_server` |\n|
`@kbn/security-role-management-model`
|\n`x-pack/platform/packages/private/security/role_management_model`
|\n| `@kbn/security-ui-components`
|\n`x-pack/platform/packages/private/security/ui_components` |\n|
`@kbn/user-profile-components`
|\n`src/platform/packages/shared/kbn-user-profile-components`
|\n\n\n<details open>\n<summary>Script errors</summary>\n\n```\nCannot
replace multiple occurrences of \"../..\" in the same line, please fix
manually:\t/Users/dokmic/work/elastic/kibana/src/platform/packages/shared/kbn-safer-lodash-set/package.json:6\n```\n\n</details><details
>\n<summary>Updated
references</summary>\n\n```\n./.buildkite/scripts/steps/test/kbn_handlebars.sh\n./.eslintrc.js\n./.i18nrc.json\n./docs/developer/advanced/sharing-saved-objects.asciidoc\n./docs/developer/plugin-list.asciidoc\n./legacy_rfcs/text/0007_lifecycle_unblocked.md\n./legacy_rfcs/text/0016_ols_phase_1.md\n./package.json\n./packages/kbn-dependency-usage/src/dependency_graph/providers/cruiser.test.ts\n./packages/kbn-ts-projects/config-paths.json\n./packages/kbn-user-profile-components/src/user_profile.ts\n./src/core/packages/saved-objects/common/src/types.ts\n./src/core/packages/security/server/src/audit_logging/audit_logger.ts\n./src/core/packages/user-profile/common/src/user_profile.ts\n./src/dev/precommit_hook/casing_check_config.js\n./src/platform/packages/private/kbn-handlebars/README.md\n./src/platform/packages/private/kbn-handlebars/index.test.ts\n./src/platform/packages/private/kbn-handlebars/index.ts\n./src/platform/packages/private/kbn-handlebars/jest.config.js\n./src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh\n./src/platform/packages/private/kbn-handlebars/scripts/print_ast.js\n./src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh\n./src/platform/packages/private/kbn-handlebars/src/__jest__/test_bench.ts\n./src/platform/packages/private/kbn-handlebars/src/handlebars.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.basic.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.blocks.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.builtins.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.compiler.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.data.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.helpers.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.partials.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.security.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.strict.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.subexpressions.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.utils.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.whitespace_control.test.ts\n./src/platform/packages/private/kbn-handlebars/src/symbols.ts\n./src/platform/packages/private/kbn-handlebars/src/types.ts\n./src/platform/packages/private/kbn-handlebars/src/utils.ts\n./src/platform/packages/private/kbn-handlebars/src/visitor.ts\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-crypto/jest.config.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/index.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/index.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/_baseSet.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/package.json\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/_get_lodash.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/license-header.txt\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/save_state.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/update.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/set.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/setWith.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assoc.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assocPath.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_patch_test.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_set.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_setWith.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/index.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/patch_test.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/set.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/setWith.ts\n./src/platform/packages/shared/kbn-user-profile-components/jest.config.js\n./src/platform/plugins/private/interactive_setup/jest.config.js\n./tsconfig.base.json\n./x-pack/.i18nrc.json\n./x-pack/platform/packages/private/security/authorization_core/jest.config.js\n./x-pack/platform/packages/private/security/authorization_core_common/jest.config.js\n./x-pack/platform/packages/private/security/role_management_model/jest.config.js\n./x-pack/platform/packages/private/security/ui_components/jest.config.js\n./x-pack/platform/packages/shared/security/api_key_management/jest.config.js\n./x-pack/platform/packages/shared/security/form_components/jest.config.js\n./x-pack/platform/plugins/shared/cases/server/authorization/index.ts\n./x-pack/platform/plugins/shared/cases/server/authorization/types.ts\n./x-pack/platform/plugins/shared/cases/server/connectors/cases/utils.ts\n./x-pack/platform/plugins/shared/cases/server/routes/api/utils.ts\n./x-pack/platform/plugins/shared/encrypted_saved_objects/README.md\n./x-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js\n./x-pack/platform/plugins/shared/fleet/common/http_authorization_header.ts\n./x-pack/platform/plugins/shared/rule_registry/server/lib/get_is_kibana_request.ts\n./x-pack/platform/plugins/shared/security/jest.config.js\n./x-pack/platform/plugins/shared/spaces/jest.config.js\n./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/routes/notes/get_notes.ts\n./yarn.lock\n.github/CODEOWNERS\n```\n\n</details><details
>\n<summary>Updated relative
paths</summary>\n\n```\nsrc/platform/packages/private/kbn-handlebars/jest.config.js:8\nsrc/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:276\nsrc/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:277\nsrc/platform/packages/private/kbn-handlebars/tsconfig.json:2\nsrc/platform/packages/shared/kbn-crypto/jest.config.js:12\nsrc/platform/packages/shared/kbn-crypto/tsconfig.json:2\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:6\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:7\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:8\nsrc/platform/packages/shared/kbn-safer-lodash-set/tsconfig.json:2\nsrc/platform/packages/shared/kbn-security-hardening/tsconfig.json:2\nsrc/platform/packages/shared/kbn-user-profile-components/jest.config.js:12\nsrc/platform/packages/shared/kbn-user-profile-components/tsconfig.json:2\nsrc/platform/plugins/private/interactive_setup/jest.config.js:12\nsrc/platform/plugins/private/interactive_setup/tsconfig.json:2\nx-pack/platform/packages/private/security/authorization_core/jest.config.js:13\nx-pack/platform/packages/private/security/authorization_core/tsconfig.json:2\nx-pack/platform/packages/private/security/authorization_core_common/jest.config.js:15\nx-pack/platform/packages/private/security/authorization_core_common/tsconfig.json:2\nx-pack/platform/packages/private/security/role_management_model/jest.config.js:14\nx-pack/platform/packages/private/security/role_management_model/tsconfig.json:2\nx-pack/platform/packages/private/security/ui_components/jest.config.js:13\nx-pack/platform/packages/private/security/ui_components/tsconfig.json:2\nx-pack/platform/packages/shared/security/api_key_management/jest.config.js:14\nx-pack/platform/packages/shared/security/api_key_management/tsconfig.json:2\nx-pack/platform/packages/shared/security/form_components/jest.config.js:14\nx-pack/platform/packages/shared/security/form_components/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_common/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_public/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_server/tsconfig.json:2\nx-pack/platform/plugins/shared/encrypted_saved_objects/README.md:8\nx-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js:10\nx-pack/platform/plugins/shared/encrypted_saved_objects/tsconfig.json:2\nx-pack/platform/plugins/shared/security/jest.config.js:10\nx-pack/platform/plugins/shared/security/tsconfig.json:2\nx-pack/platform/plugins/shared/spaces/jest.config.js:10\nx-pack/platform/plugins/shared/spaces/tsconfig.json:2\n```\n\n</details>\n\n---------\n\nCo-authored-by:
Michael Dokolin <mikhail.dokolin@elastic.co>\nCo-authored-by:
“jeramysoucy” <jeramy.soucy@elastic.co>\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"ca5a08db0029d5b9e2cd5139b23a05c5ae09ddad","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Team:Security","release_note:skip","v9.0.0","backport:version","v8.18.0","plugin
groups"],"number":202748,"url":"https://github.com/elastic/kibana/pull/202748","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/kibana-security`
(#202748)\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####
4 plugin(s) are going to be relocated:\n\n| Id | Target folder |\n| -- |
------------- |\n| `@kbn/encrypted-saved-objects-plugin`
|\n`x-pack/platform/plugins/shared/encrypted_saved_objects` |\n|
`@kbn/interactive-setup-plugin`
|\n`src/platform/plugins/private/interactive_setup` |\n|
`@kbn/security-plugin` | `x-pack/platform/plugins/shared/security` |\n|
`@kbn/spaces-plugin` | `x-pack/platform/plugins/shared/spaces`
|\n\n\n\n\n#### 14 packages(s) are going to be relocated:\n\n| Id |
Target folder |\n| -- | ------------- |\n| `@kbn/crypto` |
`src/platform/packages/shared/kbn-crypto` |\n| `@kbn/handlebars` |
`src/platform/packages/private/kbn-handlebars` |\n|
`@kbn/safer-lodash-set`
|\n`src/platform/packages/shared/kbn-safer-lodash-set` |\n|
`@kbn/security-api-key-management`
|\n`x-pack/platform/packages/shared/security/api_key_management` |\n|
`@kbn/security-authorization-core`
|\n`x-pack/platform/packages/private/security/authorization_core` |\n|
`@kbn/security-authorization-core-common`
|\n`x-pack/platform/packages/private/security/authorization_core_common`
|\n| `@kbn/security-form-components`
|\n`x-pack/platform/packages/shared/security/form_components` |\n|
`@kbn/security-hardening`
|\n`src/platform/packages/shared/kbn-security-hardening` |\n|
`@kbn/security-plugin-types-common`
|\n`x-pack/platform/packages/shared/security/plugin_types_common` |\n|
`@kbn/security-plugin-types-public`
|\n`x-pack/platform/packages/shared/security/plugin_types_public` |\n|
`@kbn/security-plugin-types-server`
|\n`x-pack/platform/packages/shared/security/plugin_types_server` |\n|
`@kbn/security-role-management-model`
|\n`x-pack/platform/packages/private/security/role_management_model`
|\n| `@kbn/security-ui-components`
|\n`x-pack/platform/packages/private/security/ui_components` |\n|
`@kbn/user-profile-components`
|\n`src/platform/packages/shared/kbn-user-profile-components`
|\n\n\n<details open>\n<summary>Script errors</summary>\n\n```\nCannot
replace multiple occurrences of \"../..\" in the same line, please fix
manually:\t/Users/dokmic/work/elastic/kibana/src/platform/packages/shared/kbn-safer-lodash-set/package.json:6\n```\n\n</details><details
>\n<summary>Updated
references</summary>\n\n```\n./.buildkite/scripts/steps/test/kbn_handlebars.sh\n./.eslintrc.js\n./.i18nrc.json\n./docs/developer/advanced/sharing-saved-objects.asciidoc\n./docs/developer/plugin-list.asciidoc\n./legacy_rfcs/text/0007_lifecycle_unblocked.md\n./legacy_rfcs/text/0016_ols_phase_1.md\n./package.json\n./packages/kbn-dependency-usage/src/dependency_graph/providers/cruiser.test.ts\n./packages/kbn-ts-projects/config-paths.json\n./packages/kbn-user-profile-components/src/user_profile.ts\n./src/core/packages/saved-objects/common/src/types.ts\n./src/core/packages/security/server/src/audit_logging/audit_logger.ts\n./src/core/packages/user-profile/common/src/user_profile.ts\n./src/dev/precommit_hook/casing_check_config.js\n./src/platform/packages/private/kbn-handlebars/README.md\n./src/platform/packages/private/kbn-handlebars/index.test.ts\n./src/platform/packages/private/kbn-handlebars/index.ts\n./src/platform/packages/private/kbn-handlebars/jest.config.js\n./src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh\n./src/platform/packages/private/kbn-handlebars/scripts/print_ast.js\n./src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh\n./src/platform/packages/private/kbn-handlebars/src/__jest__/test_bench.ts\n./src/platform/packages/private/kbn-handlebars/src/handlebars.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.basic.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.blocks.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.builtins.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.compiler.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.data.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.helpers.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.partials.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.security.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.strict.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.subexpressions.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.utils.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.whitespace_control.test.ts\n./src/platform/packages/private/kbn-handlebars/src/symbols.ts\n./src/platform/packages/private/kbn-handlebars/src/types.ts\n./src/platform/packages/private/kbn-handlebars/src/utils.ts\n./src/platform/packages/private/kbn-handlebars/src/visitor.ts\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-crypto/jest.config.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/index.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/index.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/_baseSet.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/package.json\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/_get_lodash.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/license-header.txt\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/save_state.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/update.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/set.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/setWith.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assoc.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assocPath.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_patch_test.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_set.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_setWith.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/index.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/patch_test.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/set.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/setWith.ts\n./src/platform/packages/shared/kbn-user-profile-components/jest.config.js\n./src/platform/plugins/private/interactive_setup/jest.config.js\n./tsconfig.base.json\n./x-pack/.i18nrc.json\n./x-pack/platform/packages/private/security/authorization_core/jest.config.js\n./x-pack/platform/packages/private/security/authorization_core_common/jest.config.js\n./x-pack/platform/packages/private/security/role_management_model/jest.config.js\n./x-pack/platform/packages/private/security/ui_components/jest.config.js\n./x-pack/platform/packages/shared/security/api_key_management/jest.config.js\n./x-pack/platform/packages/shared/security/form_components/jest.config.js\n./x-pack/platform/plugins/shared/cases/server/authorization/index.ts\n./x-pack/platform/plugins/shared/cases/server/authorization/types.ts\n./x-pack/platform/plugins/shared/cases/server/connectors/cases/utils.ts\n./x-pack/platform/plugins/shared/cases/server/routes/api/utils.ts\n./x-pack/platform/plugins/shared/encrypted_saved_objects/README.md\n./x-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js\n./x-pack/platform/plugins/shared/fleet/common/http_authorization_header.ts\n./x-pack/platform/plugins/shared/rule_registry/server/lib/get_is_kibana_request.ts\n./x-pack/platform/plugins/shared/security/jest.config.js\n./x-pack/platform/plugins/shared/spaces/jest.config.js\n./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/routes/notes/get_notes.ts\n./yarn.lock\n.github/CODEOWNERS\n```\n\n</details><details
>\n<summary>Updated relative
paths</summary>\n\n```\nsrc/platform/packages/private/kbn-handlebars/jest.config.js:8\nsrc/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:276\nsrc/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:277\nsrc/platform/packages/private/kbn-handlebars/tsconfig.json:2\nsrc/platform/packages/shared/kbn-crypto/jest.config.js:12\nsrc/platform/packages/shared/kbn-crypto/tsconfig.json:2\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:6\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:7\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:8\nsrc/platform/packages/shared/kbn-safer-lodash-set/tsconfig.json:2\nsrc/platform/packages/shared/kbn-security-hardening/tsconfig.json:2\nsrc/platform/packages/shared/kbn-user-profile-components/jest.config.js:12\nsrc/platform/packages/shared/kbn-user-profile-components/tsconfig.json:2\nsrc/platform/plugins/private/interactive_setup/jest.config.js:12\nsrc/platform/plugins/private/interactive_setup/tsconfig.json:2\nx-pack/platform/packages/private/security/authorization_core/jest.config.js:13\nx-pack/platform/packages/private/security/authorization_core/tsconfig.json:2\nx-pack/platform/packages/private/security/authorization_core_common/jest.config.js:15\nx-pack/platform/packages/private/security/authorization_core_common/tsconfig.json:2\nx-pack/platform/packages/private/security/role_management_model/jest.config.js:14\nx-pack/platform/packages/private/security/role_management_model/tsconfig.json:2\nx-pack/platform/packages/private/security/ui_components/jest.config.js:13\nx-pack/platform/packages/private/security/ui_components/tsconfig.json:2\nx-pack/platform/packages/shared/security/api_key_management/jest.config.js:14\nx-pack/platform/packages/shared/security/api_key_management/tsconfig.json:2\nx-pack/platform/packages/shared/security/form_components/jest.config.js:14\nx-pack/platform/packages/shared/security/form_components/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_common/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_public/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_server/tsconfig.json:2\nx-pack/platform/plugins/shared/encrypted_saved_objects/README.md:8\nx-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js:10\nx-pack/platform/plugins/shared/encrypted_saved_objects/tsconfig.json:2\nx-pack/platform/plugins/shared/security/jest.config.js:10\nx-pack/platform/plugins/shared/security/tsconfig.json:2\nx-pack/platform/plugins/shared/spaces/jest.config.js:10\nx-pack/platform/plugins/shared/spaces/tsconfig.json:2\n```\n\n</details>\n\n---------\n\nCo-authored-by:
Michael Dokolin <mikhail.dokolin@elastic.co>\nCo-authored-by:
“jeramysoucy” <jeramy.soucy@elastic.co>\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"ca5a08db0029d5b9e2cd5139b23a05c5ae09ddad"}},"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/202748","number":202748,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/kibana-security`
(#202748)\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####
4 plugin(s) are going to be relocated:\n\n| Id | Target folder |\n| -- |
------------- |\n| `@kbn/encrypted-saved-objects-plugin`
|\n`x-pack/platform/plugins/shared/encrypted_saved_objects` |\n|
`@kbn/interactive-setup-plugin`
|\n`src/platform/plugins/private/interactive_setup` |\n|
`@kbn/security-plugin` | `x-pack/platform/plugins/shared/security` |\n|
`@kbn/spaces-plugin` | `x-pack/platform/plugins/shared/spaces`
|\n\n\n\n\n#### 14 packages(s) are going to be relocated:\n\n| Id |
Target folder |\n| -- | ------------- |\n| `@kbn/crypto` |
`src/platform/packages/shared/kbn-crypto` |\n| `@kbn/handlebars` |
`src/platform/packages/private/kbn-handlebars` |\n|
`@kbn/safer-lodash-set`
|\n`src/platform/packages/shared/kbn-safer-lodash-set` |\n|
`@kbn/security-api-key-management`
|\n`x-pack/platform/packages/shared/security/api_key_management` |\n|
`@kbn/security-authorization-core`
|\n`x-pack/platform/packages/private/security/authorization_core` |\n|
`@kbn/security-authorization-core-common`
|\n`x-pack/platform/packages/private/security/authorization_core_common`
|\n| `@kbn/security-form-components`
|\n`x-pack/platform/packages/shared/security/form_components` |\n|
`@kbn/security-hardening`
|\n`src/platform/packages/shared/kbn-security-hardening` |\n|
`@kbn/security-plugin-types-common`
|\n`x-pack/platform/packages/shared/security/plugin_types_common` |\n|
`@kbn/security-plugin-types-public`
|\n`x-pack/platform/packages/shared/security/plugin_types_public` |\n|
`@kbn/security-plugin-types-server`
|\n`x-pack/platform/packages/shared/security/plugin_types_server` |\n|
`@kbn/security-role-management-model`
|\n`x-pack/platform/packages/private/security/role_management_model`
|\n| `@kbn/security-ui-components`
|\n`x-pack/platform/packages/private/security/ui_components` |\n|
`@kbn/user-profile-components`
|\n`src/platform/packages/shared/kbn-user-profile-components`
|\n\n\n<details open>\n<summary>Script errors</summary>\n\n```\nCannot
replace multiple occurrences of \"../..\" in the same line, please fix
manually:\t/Users/dokmic/work/elastic/kibana/src/platform/packages/shared/kbn-safer-lodash-set/package.json:6\n```\n\n</details><details
>\n<summary>Updated
references</summary>\n\n```\n./.buildkite/scripts/steps/test/kbn_handlebars.sh\n./.eslintrc.js\n./.i18nrc.json\n./docs/developer/advanced/sharing-saved-objects.asciidoc\n./docs/developer/plugin-list.asciidoc\n./legacy_rfcs/text/0007_lifecycle_unblocked.md\n./legacy_rfcs/text/0016_ols_phase_1.md\n./package.json\n./packages/kbn-dependency-usage/src/dependency_graph/providers/cruiser.test.ts\n./packages/kbn-ts-projects/config-paths.json\n./packages/kbn-user-profile-components/src/user_profile.ts\n./src/core/packages/saved-objects/common/src/types.ts\n./src/core/packages/security/server/src/audit_logging/audit_logger.ts\n./src/core/packages/user-profile/common/src/user_profile.ts\n./src/dev/precommit_hook/casing_check_config.js\n./src/platform/packages/private/kbn-handlebars/README.md\n./src/platform/packages/private/kbn-handlebars/index.test.ts\n./src/platform/packages/private/kbn-handlebars/index.ts\n./src/platform/packages/private/kbn-handlebars/jest.config.js\n./src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh\n./src/platform/packages/private/kbn-handlebars/scripts/print_ast.js\n./src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh\n./src/platform/packages/private/kbn-handlebars/src/__jest__/test_bench.ts\n./src/platform/packages/private/kbn-handlebars/src/handlebars.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.basic.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.blocks.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.builtins.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.compiler.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.data.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.helpers.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.partials.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.security.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.strict.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.subexpressions.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.utils.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.whitespace_control.test.ts\n./src/platform/packages/private/kbn-handlebars/src/symbols.ts\n./src/platform/packages/private/kbn-handlebars/src/types.ts\n./src/platform/packages/private/kbn-handlebars/src/utils.ts\n./src/platform/packages/private/kbn-handlebars/src/visitor.ts\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-crypto/jest.config.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/index.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/index.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/_baseSet.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/package.json\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/_get_lodash.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/license-header.txt\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/save_state.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/update.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/set.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/setWith.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assoc.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assocPath.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_patch_test.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_set.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_setWith.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/index.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/patch_test.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/set.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/setWith.ts\n./src/platform/packages/shared/kbn-user-profile-components/jest.config.js\n./src/platform/plugins/private/interactive_setup/jest.config.js\n./tsconfig.base.json\n./x-pack/.i18nrc.json\n./x-pack/platform/packages/private/security/authorization_core/jest.config.js\n./x-pack/platform/packages/private/security/authorization_core_common/jest.config.js\n./x-pack/platform/packages/private/security/role_management_model/jest.config.js\n./x-pack/platform/packages/private/security/ui_components/jest.config.js\n./x-pack/platform/packages/shared/security/api_key_management/jest.config.js\n./x-pack/platform/packages/shared/security/form_components/jest.config.js\n./x-pack/platform/plugins/shared/cases/server/authorization/index.ts\n./x-pack/platform/plugins/shared/cases/server/authorization/types.ts\n./x-pack/platform/plugins/shared/cases/server/connectors/cases/utils.ts\n./x-pack/platform/plugins/shared/cases/server/routes/api/utils.ts\n./x-pack/platform/plugins/shared/encrypted_saved_objects/README.md\n./x-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js\n./x-pack/platform/plugins/shared/fleet/common/http_authorization_header.ts\n./x-pack/platform/plugins/shared/rule_registry/server/lib/get_is_kibana_request.ts\n./x-pack/platform/plugins/shared/security/jest.config.js\n./x-pack/platform/plugins/shared/spaces/jest.config.js\n./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/routes/notes/get_notes.ts\n./yarn.lock\n.github/CODEOWNERS\n```\n\n</details><details
>\n<summary>Updated relative
paths</summary>\n\n```\nsrc/platform/packages/private/kbn-handlebars/jest.config.js:8\nsrc/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:276\nsrc/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:277\nsrc/platform/packages/private/kbn-handlebars/tsconfig.json:2\nsrc/platform/packages/shared/kbn-crypto/jest.config.js:12\nsrc/platform/packages/shared/kbn-crypto/tsconfig.json:2\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:6\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:7\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:8\nsrc/platform/packages/shared/kbn-safer-lodash-set/tsconfig.json:2\nsrc/platform/packages/shared/kbn-security-hardening/tsconfig.json:2\nsrc/platform/packages/shared/kbn-user-profile-components/jest.config.js:12\nsrc/platform/packages/shared/kbn-user-profile-components/tsconfig.json:2\nsrc/platform/plugins/private/interactive_setup/jest.config.js:12\nsrc/platform/plugins/private/interactive_setup/tsconfig.json:2\nx-pack/platform/packages/private/security/authorization_core/jest.config.js:13\nx-pack/platform/packages/private/security/authorization_core/tsconfig.json:2\nx-pack/platform/packages/private/security/authorization_core_common/jest.config.js:15\nx-pack/platform/packages/private/security/authorization_core_common/tsconfig.json:2\nx-pack/platform/packages/private/security/role_management_model/jest.config.js:14\nx-pack/platform/packages/private/security/role_management_model/tsconfig.json:2\nx-pack/platform/packages/private/security/ui_components/jest.config.js:13\nx-pack/platform/packages/private/security/ui_components/tsconfig.json:2\nx-pack/platform/packages/shared/security/api_key_management/jest.config.js:14\nx-pack/platform/packages/shared/security/api_key_management/tsconfig.json:2\nx-pack/platform/packages/shared/security/form_components/jest.config.js:14\nx-pack/platform/packages/shared/security/form_components/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_common/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_public/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_server/tsconfig.json:2\nx-pack/platform/plugins/shared/encrypted_saved_objects/README.md:8\nx-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js:10\nx-pack/platform/plugins/shared/encrypted_saved_objects/tsconfig.json:2\nx-pack/platform/plugins/shared/security/jest.config.js:10\nx-pack/platform/plugins/shared/security/tsconfig.json:2\nx-pack/platform/plugins/shared/spaces/jest.config.js:10\nx-pack/platform/plugins/shared/spaces/tsconfig.json:2\n```\n\n</details>\n\n---------\n\nCo-authored-by:
Michael Dokolin <mikhail.dokolin@elastic.co>\nCo-authored-by:
“jeramysoucy” <jeramy.soucy@elastic.co>\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"ca5a08db0029d5b9e2cd5139b23a05c5ae09ddad"}},{"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>
This commit is contained in:
Michael Dokolin 2025-01-06 14:48:09 +01:00 committed by GitHub
parent d34a22119d
commit 8f66e213cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
1495 changed files with 752 additions and 730 deletions

View file

@ -51,7 +51,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/base.yml', false)); pipeline.push(getPipeline('.buildkite/pipelines/pull_request/base.yml', false));
if (await doAnyChangesMatch([/^packages\/kbn-handlebars/])) { if (await doAnyChangesMatch([/^src\/platform\/packages\/private\/kbn-handlebars/])) {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/kbn_handlebars.yml')); pipeline.push(getPipeline('.buildkite/pipelines/pull_request/kbn_handlebars.yml'));
} }
@ -236,7 +236,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
if ( if (
(await doAnyChangesMatch([ (await doAnyChangesMatch([
/^packages\/kbn-securitysolution-.*/, /^packages\/kbn-securitysolution-.*/,
/^x-pack\/solutions\/security\/plugins\/security_solution/, /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution/,
/^x-pack\/test\/defend_workflows_cypress/, /^x-pack\/test\/defend_workflows_cypress/,
/^x-pack\/test\/security_solution_cypress/, /^x-pack\/test\/security_solution_cypress/,
/^fleet_packages\.json/, /^fleet_packages\.json/,
@ -256,9 +256,9 @@ const getPipeline = (filename: string, removeSteps = true) => {
/^x-pack\/platform\/plugins\/shared\/data_views\/common/, /^x-pack\/platform\/plugins\/shared\/data_views\/common/,
/^x-pack\/solutions\/security\/plugins\/lists/, /^x-pack\/solutions\/security\/plugins\/lists/,
/^x-pack\/platform\/plugins\/shared\/rule_registry\/common/, /^x-pack\/platform\/plugins\/shared\/rule_registry\/common/,
/^x-pack\/solutions\/security\/plugins\/security_solution/, /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution/,
/^x-pack\/solutions\/security\/plugins\/security_solution_ess/, /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution_ess/,
/^x-pack\/solutions\/security\/plugins\/security_solution_serverless/, /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution_serverless/,
/^x-pack\/platform\/plugins\/shared\/task_manager/, /^x-pack\/platform\/plugins\/shared\/task_manager/,
/^x-pack\/solutions\/security\/plugins\/timelines/, /^x-pack\/solutions\/security\/plugins\/timelines/,
/^x-pack\/platform\/plugins\/shared\/triggers_actions_ui\/public\/application\/sections\/action_connector_form/, /^x-pack\/platform\/plugins\/shared\/triggers_actions_ui\/public\/application\/sections\/action_connector_form/,
@ -306,7 +306,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
/^src\/platform\/packages\/shared\/kbn-resizable-layout/, /^src\/platform\/packages\/shared\/kbn-resizable-layout/,
/^src\/platform\/packages\/shared\/kbn-rison/, /^src\/platform\/packages\/shared\/kbn-rison/,
/^src\/platform\/packages\/shared\/kbn-rule-data-utils/, /^src\/platform\/packages\/shared\/kbn-rule-data-utils/,
/^packages\/kbn-safer-lodash-set/, /^src\/platform\/packages\/shared\/kbn-safer-lodash-set/,
/^src\/platform\/packages\/shared\/kbn-search-types/, /^src\/platform\/packages\/shared\/kbn-search-types/,
/^packages\/kbn-securitysolution-.*/, /^packages\/kbn-securitysolution-.*/,
/^src\/platform\/packages\/shared\/kbn-securitysolution-ecs/, /^src\/platform\/packages\/shared\/kbn-securitysolution-ecs/,
@ -341,9 +341,9 @@ const getPipeline = (filename: string, removeSteps = true) => {
/^x-pack\/solutions\/security\/plugins\/elastic_assistant/, /^x-pack\/solutions\/security\/plugins\/elastic_assistant/,
/^x-pack\/solutions\/security\/plugins\/lists/, /^x-pack\/solutions\/security\/plugins\/lists/,
/^x-pack\/platform\/plugins\/shared\/rule_registry\/common/, /^x-pack\/platform\/plugins\/shared\/rule_registry\/common/,
/^x-pack\/solutions\/security\/plugins\/security_solution/, /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution/,
/^x-pack\/solutions\/security\/plugins\/security_solution_ess/, /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution_ess/,
/^x-pack\/solutions\/security\/plugins\/security_solution_serverless/, /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution_serverless/,
/^x-pack\/platform\/plugins\/shared\/task_manager/, /^x-pack\/platform\/plugins\/shared\/task_manager/,
/^x-pack\/solutions\/security\/plugins\/threat_intelligence/, /^x-pack\/solutions\/security\/plugins\/threat_intelligence/,
/^x-pack\/solutions\/security\/plugins\/timelines/, /^x-pack\/solutions\/security\/plugins\/timelines/,
@ -363,7 +363,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
((await doAnyChangesMatch([ ((await doAnyChangesMatch([
/^x-pack\/platform\/plugins\/shared\/osquery/, /^x-pack\/platform\/plugins\/shared\/osquery/,
/^x-pack\/test\/osquery_cypress/, /^x-pack\/test\/osquery_cypress/,
/^x-pack\/solutions\/security\/plugins\/security_solution/, /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution/,
])) || ])) ||
GITHUB_PR_LABELS.includes('ci:all-cypress-suites')) && GITHUB_PR_LABELS.includes('ci:all-cypress-suites')) &&
!GITHUB_PR_LABELS.includes('ci:skip-cypress-osquery') !GITHUB_PR_LABELS.includes('ci:skip-cypress-osquery')
@ -377,7 +377,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
(await doAnyChangesMatch([ (await doAnyChangesMatch([
/^x-pack\/packages\/kbn-cloud-security-posture/, /^x-pack\/packages\/kbn-cloud-security-posture/,
/^x-pack\/solutions\/security\/platform\/plugins\/shared\/cloud_security_posture/, /^x-pack\/solutions\/security\/platform\/plugins\/shared\/cloud_security_posture/,
/^x-pack\/solutions\/security\/plugins\/security_solution/, /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution/,
/^x-pack\/test\/security_solution_cypress/, /^x-pack\/test\/security_solution_cypress/,
])) || ])) ||
GITHUB_PR_LABELS.includes('ci:all-cypress-suites') GITHUB_PR_LABELS.includes('ci:all-cypress-suites')

View file

@ -5,4 +5,4 @@ set -euo pipefail
source .buildkite/scripts/common/util.sh source .buildkite/scripts/common/util.sh
echo '--- Checking for @kbn/handlebars upstream updates' echo '--- Checking for @kbn/handlebars upstream updates'
packages/kbn-handlebars/scripts/check_for_upstream_updates.sh src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh

View file

@ -84,7 +84,7 @@ const ELV2_LICENSE_HEADER = `
const SAFER_LODASH_SET_HEADER = ` const SAFER_LODASH_SET_HEADER = `
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See \`packages/kbn-safer-lodash-set/LICENSE\` for more information. * See \`src/platform/packages/shared/kbn-safer-lodash-set/LICENSE\` for more information.
*/ */
`; `;
@ -93,7 +93,7 @@ const SAFER_LODASH_SET_LODASH_HEADER = `
* This file is forked from the lodash project (https://lodash.com/), * This file is forked from the lodash project (https://lodash.com/),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See \`packages/kbn-safer-lodash-set/LICENSE\` for more information. * See \`src/platform/packages/shared/kbn-safer-lodash-set/LICENSE\` for more information.
*/ */
`; `;
@ -102,14 +102,14 @@ const SAFER_LODASH_SET_DEFINITELYTYPED_HEADER = `
* This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See \`packages/kbn-safer-lodash-set/LICENSE\` for more information. * See \`src/platform/packages/shared/kbn-safer-lodash-set/LICENSE\` for more information.
*/ */
`; `;
const KBN_HANDLEBARS_HEADER = ` const KBN_HANDLEBARS_HEADER = `
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See \`packages/kbn-handlebars/LICENSE\` for more information. * See \`src/platform/packages/private/kbn-handlebars/LICENSE\` for more information.
*/ */
`; `;
@ -118,7 +118,7 @@ const KBN_HANDLEBARS_HANDLEBARS_HEADER = `
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See \`packages/kbn-handlebars/LICENSE\` for more information. * See \`src/platform/packages/private/kbn-handlebars/LICENSE\` for more information.
*/ */
`; `;
@ -441,7 +441,7 @@ module.exports = {
* safer-lodash-set package requires special license headers * safer-lodash-set package requires special license headers
*/ */
{ {
files: ['packages/kbn-safer-lodash-set/**/*.{js,mjs,ts,tsx}'], files: ['src/platform/packages/shared/kbn-safer-lodash-set/**/*.{js,mjs,ts,tsx}'],
rules: { rules: {
'@kbn/eslint/require-license-header': [ '@kbn/eslint/require-license-header': [
'error', 'error',
@ -471,7 +471,7 @@ module.exports = {
}, },
{ {
files: ['packages/kbn-safer-lodash-set/test/*.{js,mjs,ts,tsx}'], files: ['src/platform/packages/shared/kbn-safer-lodash-set/test/*.{js,mjs,ts,tsx}'],
rules: { rules: {
'@kbn/eslint/require-license-header': [ '@kbn/eslint/require-license-header': [
'error', 'error',
@ -500,7 +500,7 @@ module.exports = {
}, },
}, },
{ {
files: ['packages/kbn-safer-lodash-set/**/*.d.ts'], files: ['src/platform/packages/shared/kbn-safer-lodash-set/**/*.d.ts'],
rules: { rules: {
'@kbn/eslint/require-license-header': [ '@kbn/eslint/require-license-header': [
'error', 'error',
@ -533,7 +533,7 @@ module.exports = {
* @kbn/handlebars package requires special license headers * @kbn/handlebars package requires special license headers
*/ */
{ {
files: ['packages/kbn-handlebars/**/*.{js,mjs,ts,tsx}'], files: ['src/platform/packages/private/kbn-handlebars/**/*.{js,mjs,ts,tsx}'],
rules: { rules: {
'@kbn/eslint/require-license-header': [ '@kbn/eslint/require-license-header': [
'error', 'error',
@ -562,7 +562,7 @@ module.exports = {
}, },
}, },
{ {
files: ['packages/kbn-handlebars/src/spec/**/*.{js,mjs,ts,tsx}'], files: ['src/platform/packages/private/kbn-handlebars/src/spec/**/*.{js,mjs,ts,tsx}'],
rules: { rules: {
'@kbn/eslint/require-license-header': [ '@kbn/eslint/require-license-header': [
'error', 'error',
@ -778,7 +778,7 @@ module.exports = {
* Harden specific rules * Harden specific rules
*/ */
{ {
files: ['test/harden/*.js', 'packages/kbn-safer-lodash-set/test/*.js'], files: ['test/harden/*.js', 'src/platform/packages/shared/kbn-safer-lodash-set/test/*.js'],
rules: { rules: {
'mocha/handle-done-callback': 'off', 'mocha/handle-done-callback': 'off',
}, },
@ -1840,24 +1840,24 @@ module.exports = {
*/ */
{ {
files: [ files: [
'src/plugins/interactive_setup/**/*.{js,mjs,ts,tsx}', 'src/platform/plugins/private/interactive_setup/**/*.{js,mjs,ts,tsx}',
'test/interactive_setup_api_integration/**/*.{js,mjs,ts,tsx}', 'test/interactive_setup_api_integration/**/*.{js,mjs,ts,tsx}',
'test/interactive_setup_functional/**/*.{js,mjs,ts,tsx}', 'test/interactive_setup_functional/**/*.{js,mjs,ts,tsx}',
'packages/kbn-mock-idp-plugin/**/*.{js,mjs,ts,tsx}', 'packages/kbn-mock-idp-plugin/**/*.{js,mjs,ts,tsx}',
'packages/kbn-mock-idp-utils/**/*.{js,mjs,ts,tsx}', 'packages/kbn-mock-idp-utils/**/*.{js,mjs,ts,tsx}',
'packages/kbn-security-hardening/**/*.{js,mjs,ts,tsx}', 'src/platform/packages/shared/kbn-security-hardening/**/*.{js,mjs,ts,tsx}',
'packages/kbn-user-profile-components/**/*.{js,mjs,ts,tsx}', 'src/platform/packages/shared/kbn-user-profile-components/**/*.{js,mjs,ts,tsx}',
'x-pack/plugins/encrypted_saved_objects/**/*.{js,mjs,ts,tsx}', 'x-pack/platform/plugins/shared/encrypted_saved_objects/**/*.{js,mjs,ts,tsx}',
'x-pack/test/encrypted_saved_objects_api_integration/**/*.{js,mjs,ts,tsx}', 'x-pack/test/encrypted_saved_objects_api_integration/**/*.{js,mjs,ts,tsx}',
'x-pack/plugins/security/**/*.{js,mjs,ts,tsx}', 'x-pack/platform/plugins/shared/security/**/*.{js,mjs,ts,tsx}',
'x-pack/packages/security/**/*.{js,mjs,ts,tsx}', 'x-pack/packages/security/**/*.{js,mjs,ts,tsx}',
'x-pack/test/security_api_integration/**/*.{js,mjs,ts,tsx}', 'x-pack/test/security_api_integration/**/*.{js,mjs,ts,tsx}',
'x-pack/test/security_functional/**/*.{js,mjs,ts,tsx}', 'x-pack/test/security_functional/**/*.{js,mjs,ts,tsx}',
'x-pack/plugins/spaces/**/*.{js,mjs,ts,tsx}', 'x-pack/platform/plugins/shared/spaces/**/*.{js,mjs,ts,tsx}',
'x-pack/test/spaces_api_integration/**/*.{js,mjs,ts,tsx}', 'x-pack/test/spaces_api_integration/**/*.{js,mjs,ts,tsx}',
], ],
rules: { rules: {

39
.github/CODEOWNERS vendored
View file

@ -344,7 +344,7 @@ packages/core/user-settings/core-user-settings-server @elastic/kibana-security
packages/core/user-settings/core-user-settings-server-internal @elastic/kibana-security packages/core/user-settings/core-user-settings-server-internal @elastic/kibana-security
packages/core/user-settings/core-user-settings-server-mocks @elastic/kibana-security packages/core/user-settings/core-user-settings-server-mocks @elastic/kibana-security
x-pack/platform/plugins/private/cross_cluster_replication @elastic/kibana-management x-pack/platform/plugins/private/cross_cluster_replication @elastic/kibana-management
packages/kbn-crypto @elastic/kibana-security src/platform/packages/shared/kbn-crypto @elastic/kibana-security
src/platform/packages/shared/kbn-crypto-browser @elastic/kibana-core src/platform/packages/shared/kbn-crypto-browser @elastic/kibana-core
x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux
src/platform/packages/shared/kbn-custom-icons @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-custom-icons @elastic/obs-ux-logs-team
@ -411,7 +411,7 @@ x-pack/platform/plugins/shared/embeddable_enhanced @elastic/kibana-presentation
examples/embeddable_examples @elastic/kibana-presentation examples/embeddable_examples @elastic/kibana-presentation
src/platform/plugins/shared/embeddable @elastic/kibana-presentation src/platform/plugins/shared/embeddable @elastic/kibana-presentation
x-pack/examples/embedded_lens_example @elastic/kibana-visualizations x-pack/examples/embedded_lens_example @elastic/kibana-visualizations
x-pack/plugins/encrypted_saved_objects @elastic/kibana-security x-pack/platform/plugins/shared/encrypted_saved_objects @elastic/kibana-security
x-pack/solutions/search/plugins/enterprise_search @elastic/search-kibana x-pack/solutions/search/plugins/enterprise_search @elastic/search-kibana
x-pack/solutions/observability/plugins/observability_solution/entities_data_access @elastic/obs-entities x-pack/solutions/observability/plugins/observability_solution/entities_data_access @elastic/obs-entities
x-pack/platform/packages/shared/kbn-entities-schema @elastic/obs-entities x-pack/platform/packages/shared/kbn-entities-schema @elastic/obs-entities
@ -512,7 +512,7 @@ src/platform/packages/shared/kbn-grouping @elastic/response-ops
packages/kbn-guided-onboarding @elastic/appex-sharedux packages/kbn-guided-onboarding @elastic/appex-sharedux
examples/guided_onboarding_example @elastic/appex-sharedux examples/guided_onboarding_example @elastic/appex-sharedux
src/platform/plugins/shared/guided_onboarding @elastic/appex-sharedux src/platform/plugins/shared/guided_onboarding @elastic/appex-sharedux
packages/kbn-handlebars @elastic/kibana-security src/platform/packages/private/kbn-handlebars @elastic/kibana-security
src/platform/packages/private/kbn-hapi-mocks @elastic/kibana-core src/platform/packages/private/kbn-hapi-mocks @elastic/kibana-core
test/plugin_functional/plugins/hardening @elastic/kibana-security test/plugin_functional/plugins/hardening @elastic/kibana-security
src/platform/packages/private/kbn-health-gateway-server @elastic/kibana-core src/platform/packages/private/kbn-health-gateway-server @elastic/kibana-core
@ -543,7 +543,7 @@ x-pack/platform/plugins/shared/ingest_pipelines @elastic/kibana-management
src/platform/plugins/private/input_control_vis @elastic/kibana-presentation src/platform/plugins/private/input_control_vis @elastic/kibana-presentation
src/platform/plugins/shared/inspector @elastic/kibana-presentation src/platform/plugins/shared/inspector @elastic/kibana-presentation
x-pack/platform/plugins/shared/integration_assistant @elastic/security-scalability x-pack/platform/plugins/shared/integration_assistant @elastic/security-scalability
src/plugins/interactive_setup @elastic/kibana-security src/platform/plugins/private/interactive_setup @elastic/kibana-security
test/interactive_setup_api_integration/plugins/test_endpoints @elastic/kibana-security test/interactive_setup_api_integration/plugins/test_endpoints @elastic/kibana-security
packages/kbn-interpreter @elastic/kibana-visualizations packages/kbn-interpreter @elastic/kibana-visualizations
x-pack/solutions/observability/plugins/inventory/e2e @elastic/obs-ux-infra_services-team x-pack/solutions/observability/plugins/inventory/e2e @elastic/obs-ux-infra_services-team
@ -762,7 +762,7 @@ src/platform/packages/shared/kbn-rrule @elastic/response-ops
src/platform/packages/shared/kbn-rule-data-utils @elastic/security-detections-response @elastic/response-ops @elastic/obs-ux-management-team src/platform/packages/shared/kbn-rule-data-utils @elastic/security-detections-response @elastic/response-ops @elastic/obs-ux-management-team
x-pack/platform/plugins/shared/rule_registry @elastic/response-ops @elastic/obs-ux-management-team x-pack/platform/plugins/shared/rule_registry @elastic/response-ops @elastic/obs-ux-management-team
x-pack/platform/plugins/private/runtime_fields @elastic/kibana-management x-pack/platform/plugins/private/runtime_fields @elastic/kibana-management
packages/kbn-safer-lodash-set @elastic/kibana-security src/platform/packages/shared/kbn-safer-lodash-set @elastic/kibana-security
x-pack/test/security_api_integration/plugins/saml_provider @elastic/kibana-security x-pack/test/security_api_integration/plugins/saml_provider @elastic/kibana-security
x-pack/test/plugin_api_integration/plugins/sample_task_plugin @elastic/response-ops x-pack/test/plugin_api_integration/plugins/sample_task_plugin @elastic/response-ops
x-pack/test/task_manager_claimer_update_by_query/plugins/sample_task_plugin_mget @elastic/response-ops x-pack/test/task_manager_claimer_update_by_query/plugins/sample_task_plugin_mget @elastic/response-ops
@ -807,16 +807,16 @@ x-pack/solutions/search/packages/search/shared_ui @elastic/search-kibana
src/platform/packages/shared/kbn-search-types @elastic/kibana-data-discovery src/platform/packages/shared/kbn-search-types @elastic/kibana-data-discovery
x-pack/platform/plugins/shared/searchprofiler @elastic/kibana-management x-pack/platform/plugins/shared/searchprofiler @elastic/kibana-management
x-pack/test/security_api_integration/packages/helpers @elastic/kibana-security x-pack/test/security_api_integration/packages/helpers @elastic/kibana-security
x-pack/packages/security/api_key_management @elastic/kibana-security x-pack/platform/packages/shared/security/api_key_management @elastic/kibana-security
x-pack/packages/security/authorization_core @elastic/kibana-security x-pack/platform/packages/private/security/authorization_core @elastic/kibana-security
x-pack/packages/security/authorization_core_common @elastic/kibana-security x-pack/platform/packages/private/security/authorization_core_common @elastic/kibana-security
x-pack/packages/security/form_components @elastic/kibana-security x-pack/platform/packages/shared/security/form_components @elastic/kibana-security
packages/kbn-security-hardening @elastic/kibana-security src/platform/packages/shared/kbn-security-hardening @elastic/kibana-security
x-pack/plugins/security @elastic/kibana-security x-pack/platform/plugins/shared/security @elastic/kibana-security
x-pack/packages/security/plugin_types_common @elastic/kibana-security x-pack/platform/packages/shared/security/plugin_types_common @elastic/kibana-security
x-pack/packages/security/plugin_types_public @elastic/kibana-security x-pack/platform/packages/shared/security/plugin_types_public @elastic/kibana-security
x-pack/packages/security/plugin_types_server @elastic/kibana-security x-pack/platform/packages/shared/security/plugin_types_server @elastic/kibana-security
x-pack/packages/security/role_management_model @elastic/kibana-security x-pack/platform/packages/private/security/role_management_model @elastic/kibana-security
x-pack/solutions/security/packages/distribution_bar @elastic/kibana-cloud-security-posture x-pack/solutions/security/packages/distribution_bar @elastic/kibana-cloud-security-posture
x-pack/solutions/security/plugins/security_solution_ess @elastic/security-solution x-pack/solutions/security/plugins/security_solution_ess @elastic/security-solution
x-pack/solutions/security/packages/features @elastic/security-threat-hunting-explore x-pack/solutions/security/packages/features @elastic/security-threat-hunting-explore
@ -828,7 +828,7 @@ x-pack/solutions/security/packages/side_nav @elastic/security-threat-hunting-exp
x-pack/solutions/security/packages/storybook/config @elastic/security-threat-hunting-explore x-pack/solutions/security/packages/storybook/config @elastic/security-threat-hunting-explore
x-pack/solutions/security/packages/upselling @elastic/security-threat-hunting-explore x-pack/solutions/security/packages/upselling @elastic/security-threat-hunting-explore
x-pack/test/security_functional/plugins/test_endpoints @elastic/kibana-security x-pack/test/security_functional/plugins/test_endpoints @elastic/kibana-security
x-pack/packages/security/ui_components @elastic/kibana-security x-pack/platform/packages/private/security/ui_components @elastic/kibana-security
x-pack/solutions/security/packages/kbn-securitysolution-autocomplete @elastic/security-detection-engine x-pack/solutions/security/packages/kbn-securitysolution-autocomplete @elastic/security-detection-engine
x-pack/solutions/security/packages/data_table @elastic/security-threat-hunting-investigations x-pack/solutions/security/packages/data_table @elastic/security-threat-hunting-investigations
src/platform/packages/shared/kbn-securitysolution-ecs @elastic/security-threat-hunting-explore src/platform/packages/shared/kbn-securitysolution-ecs @elastic/security-threat-hunting-explore
@ -925,7 +925,7 @@ x-pack/platform/plugins/private/snapshot_restore @elastic/kibana-management
packages/kbn-some-dev-log @elastic/kibana-operations packages/kbn-some-dev-log @elastic/kibana-operations
packages/kbn-sort-package-json @elastic/kibana-operations packages/kbn-sort-package-json @elastic/kibana-operations
packages/kbn-sort-predicates @elastic/kibana-visualizations packages/kbn-sort-predicates @elastic/kibana-visualizations
x-pack/plugins/spaces @elastic/kibana-security x-pack/platform/plugins/shared/spaces @elastic/kibana-security
x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin @elastic/kibana-security x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin @elastic/kibana-security
packages/kbn-spec-to-console @elastic/kibana-management packages/kbn-spec-to-console @elastic/kibana-management
src/platform/packages/shared/kbn-sse-utils @elastic/obs-knowledge-team src/platform/packages/shared/kbn-sse-utils @elastic/obs-knowledge-team
@ -1010,7 +1010,7 @@ src/plugins/url_forwarding @elastic/kibana-visualizations
src/platform/plugins/shared/usage_collection @elastic/kibana-core src/platform/plugins/shared/usage_collection @elastic/kibana-core
test/plugin_functional/plugins/usage_collection @elastic/kibana-core test/plugin_functional/plugins/usage_collection @elastic/kibana-core
packages/kbn-use-tracked-promise @elastic/obs-ux-logs-team packages/kbn-use-tracked-promise @elastic/obs-ux-logs-team
packages/kbn-user-profile-components @elastic/kibana-security src/platform/packages/shared/kbn-user-profile-components @elastic/kibana-security
examples/user_profile_examples @elastic/kibana-security examples/user_profile_examples @elastic/kibana-security
x-pack/test/security_api_integration/plugins/user_profiles_consumer @elastic/kibana-security x-pack/test/security_api_integration/plugins/user_profiles_consumer @elastic/kibana-security
src/platform/packages/shared/kbn-utility-types @elastic/kibana-core src/platform/packages/shared/kbn-utility-types @elastic/kibana-core
@ -1482,7 +1482,7 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi
/x-pack/test_serverless/**/test_suites/security/platform_security/ @elastic/kibana-security /x-pack/test_serverless/**/test_suites/security/platform_security/ @elastic/kibana-security
/x-pack/test_serverless/**/test_suites/observability/platform_security/ @elastic/kibana-security /x-pack/test_serverless/**/test_suites/observability/platform_security/ @elastic/kibana-security
/src/core/packages/http/server-internal/src/cdn_config/ @elastic/kibana-security @elastic/kibana-core /src/core/packages/http/server-internal/src/cdn_config/ @elastic/kibana-security @elastic/kibana-core
#CC# /x-pack/plugins/security/ @elastic/kibana-security #CC# /x-pack/platform/plugins/shared/security/ @elastic/kibana-security
# Response Ops team # Response Ops team
/x-pack/test/functional/es_archives/cases/default @elastic/response-ops /x-pack/test/functional/es_archives/cases/default @elastic/response-ops
@ -1894,7 +1894,6 @@ x-pack/plugins/osquery @elastic/security-defend-workflows
/x-pack/solutions/security/plugins/security_solution/public/cloud_defend @elastic/kibana-cloud-security-posture /x-pack/solutions/security/plugins/security_solution/public/cloud_defend @elastic/kibana-cloud-security-posture
# Cloud Security Posture # Cloud Security Posture
x-pack/solutions/security/packages/distribution_bar @elastic/kibana-cloud-security-posture
x-pack/packages/kbn-cloud-security-posture @elastic/kibana-cloud-security-posture x-pack/packages/kbn-cloud-security-posture @elastic/kibana-cloud-security-posture
/x-pack/test_serverless/functional/test_suites/security/config.cloud_security_posture.* @elastic/kibana-cloud-security-posture /x-pack/test_serverless/functional/test_suites/security/config.cloud_security_posture.* @elastic/kibana-cloud-security-posture
/x-pack/solutions/security/plugins/security_solution/public/cloud_security_posture @elastic/kibana-cloud-security-posture /x-pack/solutions/security/plugins/security_solution/public/cloud_security_posture @elastic/kibana-cloud-security-posture

View file

@ -76,7 +76,7 @@
"inputControl": "src/platform/plugins/private/input_control_vis", "inputControl": "src/platform/plugins/private/input_control_vis",
"inspector": "src/platform/plugins/shared/inspector", "inspector": "src/platform/plugins/shared/inspector",
"inspectorViews": "src/legacy/core_plugins/inspector_views", "inspectorViews": "src/legacy/core_plugins/inspector_views",
"interactiveSetup": "src/plugins/interactive_setup", "interactiveSetup": "src/platform/plugins/private/interactive_setup",
"interpreter": "src/legacy/core_plugins/interpreter", "interpreter": "src/legacy/core_plugins/interpreter",
"imageEmbeddable": "src/platform/plugins/private/image_embeddable", "imageEmbeddable": "src/platform/plugins/private/image_embeddable",
"kbn": "src/legacy/core_plugins/kibana", "kbn": "src/legacy/core_plugins/kibana",
@ -143,7 +143,7 @@
"uiActionsEnhanced": "src/platform/plugins/shared/ui_actions_enhanced", "uiActionsEnhanced": "src/platform/plugins/shared/ui_actions_enhanced",
"uiActionsExamples": "examples/ui_action_examples", "uiActionsExamples": "examples/ui_action_examples",
"usageCollection": "src/platform/plugins/shared/usage_collection", "usageCollection": "src/platform/plugins/shared/usage_collection",
"userProfileComponents": "packages/kbn-user-profile-components", "userProfileComponents": "src/platform/packages/shared/kbn-user-profile-components",
"utils": "x-pack/solutions/security/packages/kbn-securitysolution-utils/src", "utils": "x-pack/solutions/security/packages/kbn-securitysolution-utils/src",
"visDefaultEditor": "src/plugins/vis_default_editor", "visDefaultEditor": "src/plugins/vis_default_editor",
"visTypeGauge": "src/plugins/vis_types/gauge", "visTypeGauge": "src/plugins/vis_types/gauge",

View file

@ -407,7 +407,7 @@ this in two ways, and many consumers will want to implement both:
the spaces plugin, and you can use them in your own application. the spaces plugin, and you can use them in your own application.
+ +
First, make sure your page contents are wrapped in a First, make sure your page contents are wrapped in a
https://github.com/elastic/kibana/blob/{branch}/x-pack/plugins/spaces/public/spaces_context/types.ts[spaces context provider]: https://github.com/elastic/kibana/blob/{branch}/x-pack/platform/plugins/shared/spaces/public/spaces_context/types.ts[spaces context provider]:
+ +
```tsx ```tsx
const ContextWrapper = useMemo( const ContextWrapper = useMemo(
@ -425,9 +425,9 @@ return (
); );
``` ```
+ +
Second, display a https://github.com/elastic/kibana/blob/{branch}/x-pack/plugins/spaces/public/space_list/types.ts[list of spaces] for an Second, display a https://github.com/elastic/kibana/blob/{branch}/x-pack/platform/plugins/shared/spaces/public/space_list/types.ts[list of spaces] for an
object, and third, show a object, and third, show a
https://github.com/elastic/kibana/blob/{branch}/x-pack/plugins/spaces/public/share_saved_objects_to_space/types.ts[flyout] for the user to https://github.com/elastic/kibana/blob/{branch}/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/types.ts[flyout] for the user to
edit the object's assigned spaces. You may want to follow the example of the <<data-views,Data Views page>> and edit the object's assigned spaces. You may want to follow the example of the <<data-views,Data Views page>> and
https://github.com/elastic/kibana/blob/{branch}/src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/spaces_list.tsx[combine https://github.com/elastic/kibana/blob/{branch}/src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/spaces_list.tsx[combine
these into a single component] so that the space list can be clicked to show the flyout: these into a single component] so that the space list can be clicked to show the flyout:

View file

@ -234,7 +234,7 @@ Images can be added either by URL or by uploading the image file via file servic
in Kibana, e.g. visualizations. It has the form of a flyout panel. in Kibana, e.g. visualizations. It has the form of a flyout panel.
|{kib-repo}blob/{branch}/src/plugins/interactive_setup/README.md[interactiveSetup] |{kib-repo}blob/{branch}/src/platform/plugins/private/interactive_setup/README.md[interactiveSetup]
|This plugin provides UI and APIs for interactive setup mode a.k.a "enrollment flow". |This plugin provides UI and APIs for interactive setup mode a.k.a "enrollment flow".
@ -563,7 +563,7 @@ Plugin server-side only. Plugin has three main functions:
adds dynamic actions to every embeddables state, in order to support drilldowns. adds dynamic actions to every embeddables state, in order to support drilldowns.
|{kib-repo}blob/{branch}/x-pack/plugins/encrypted_saved_objects/README.md[encryptedSavedObjects] |{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/encrypted_saved_objects/README.md[encryptedSavedObjects]
|The purpose of this plugin is to provide a way to encrypt/decrypt attributes on the custom Saved Objects that works with |The purpose of this plugin is to provide a way to encrypt/decrypt attributes on the custom Saved Objects that works with
security and spaces filtering. security and spaces filtering.
@ -856,7 +856,7 @@ detailed information on how Elasticsearch executed the search request. People us
to understand why a search request might be slow. to understand why a search request might be slow.
|{kib-repo}blob/{branch}/x-pack/plugins/security/README.md[security] |{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/security/README.md[security]
|See Configuring security in |See Configuring security in
Kibana. Kibana.
@ -899,7 +899,7 @@ This plugin is only enabled when the application is built for serverless project
|or |or
|{kib-repo}blob/{branch}/x-pack/plugins/spaces/README.md[spaces] |{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/spaces/README.md[spaces]
|See Configuring Kibana Spaces. |See Configuring Kibana Spaces.

View file

@ -344,7 +344,7 @@ functions and will be impacted:
4. [vis_type_vega](https://github.com/elastic/kibana/blob/6039709929caf0090a4130b8235f3a53bd04ed84/src/legacy/core_plugins/vis_type_vega/public/plugin.ts#L59) 4. [vis_type_vega](https://github.com/elastic/kibana/blob/6039709929caf0090a4130b8235f3a53bd04ed84/src/legacy/core_plugins/vis_type_vega/public/plugin.ts#L59)
6. [code](https://github.com/elastic/kibana/blob/5049b460b47d4ae3432e1d9219263bb4be441392/x-pack/legacy/plugins/code/server/plugin.ts#L129-L149) 6. [code](https://github.com/elastic/kibana/blob/5049b460b47d4ae3432e1d9219263bb4be441392/x-pack/legacy/plugins/code/server/plugin.ts#L129-L149)
7. [spaces](https://github.com/elastic/kibana/blob/096c7ee51136327f778845c636d7c4f1188e5db2/x-pack/legacy/plugins/spaces/server/new_platform/plugin.ts#L95) 7. [spaces](https://github.com/elastic/kibana/blob/096c7ee51136327f778845c636d7c4f1188e5db2/x-pack/legacy/plugins/spaces/server/new_platform/plugin.ts#L95)
8. [licensing](https://github.com/elastic/kibana/blob/4667c46caef26f8f47714504879197708debae32/x-pack/platform/plugins/shared/licensing/server/plugin.ts) 8. [licensing](https://github.com/elastic/kibana/blob/4667c46caef26f8f47714504879197708debae32/x-pack/plugins/licensing/server/plugin.ts)
9. [security](https://github.com/elastic/kibana/blob/0f2324e44566ce2cf083d89082841e57d2db6ef6/x-pack/plugins/security/server/plugin.ts#L96) 9. [security](https://github.com/elastic/kibana/blob/0f2324e44566ce2cf083d89082841e57d2db6ef6/x-pack/plugins/security/server/plugin.ts#L96)
# How we teach this # How we teach this

View file

@ -414,7 +414,7 @@
"@kbn/core-user-settings-server-internal": "link:packages/core/user-settings/core-user-settings-server-internal", "@kbn/core-user-settings-server-internal": "link:packages/core/user-settings/core-user-settings-server-internal",
"@kbn/core-user-settings-server-mocks": "link:packages/core/user-settings/core-user-settings-server-mocks", "@kbn/core-user-settings-server-mocks": "link:packages/core/user-settings/core-user-settings-server-mocks",
"@kbn/cross-cluster-replication-plugin": "link:x-pack/platform/plugins/private/cross_cluster_replication", "@kbn/cross-cluster-replication-plugin": "link:x-pack/platform/plugins/private/cross_cluster_replication",
"@kbn/crypto": "link:packages/kbn-crypto", "@kbn/crypto": "link:src/platform/packages/shared/kbn-crypto",
"@kbn/crypto-browser": "link:src/platform/packages/shared/kbn-crypto-browser", "@kbn/crypto-browser": "link:src/platform/packages/shared/kbn-crypto-browser",
"@kbn/custom-branding-plugin": "link:x-pack/platform/plugins/private/custom_branding", "@kbn/custom-branding-plugin": "link:x-pack/platform/plugins/private/custom_branding",
"@kbn/custom-icons": "link:src/platform/packages/shared/kbn-custom-icons", "@kbn/custom-icons": "link:src/platform/packages/shared/kbn-custom-icons",
@ -474,7 +474,7 @@
"@kbn/embeddable-examples-plugin": "link:examples/embeddable_examples", "@kbn/embeddable-examples-plugin": "link:examples/embeddable_examples",
"@kbn/embeddable-plugin": "link:src/platform/plugins/shared/embeddable", "@kbn/embeddable-plugin": "link:src/platform/plugins/shared/embeddable",
"@kbn/embedded-lens-example-plugin": "link:x-pack/examples/embedded_lens_example", "@kbn/embedded-lens-example-plugin": "link:x-pack/examples/embedded_lens_example",
"@kbn/encrypted-saved-objects-plugin": "link:x-pack/plugins/encrypted_saved_objects", "@kbn/encrypted-saved-objects-plugin": "link:x-pack/platform/plugins/shared/encrypted_saved_objects",
"@kbn/enterprise-search-plugin": "link:x-pack/solutions/search/plugins/enterprise_search", "@kbn/enterprise-search-plugin": "link:x-pack/solutions/search/plugins/enterprise_search",
"@kbn/entities-data-access-plugin": "link:x-pack/solutions/observability/plugins/observability_solution/entities_data_access", "@kbn/entities-data-access-plugin": "link:x-pack/solutions/observability/plugins/observability_solution/entities_data_access",
"@kbn/entities-schema": "link:x-pack/platform/packages/shared/kbn-entities-schema", "@kbn/entities-schema": "link:x-pack/platform/packages/shared/kbn-entities-schema",
@ -557,7 +557,7 @@
"@kbn/guided-onboarding": "link:packages/kbn-guided-onboarding", "@kbn/guided-onboarding": "link:packages/kbn-guided-onboarding",
"@kbn/guided-onboarding-example-plugin": "link:examples/guided_onboarding_example", "@kbn/guided-onboarding-example-plugin": "link:examples/guided_onboarding_example",
"@kbn/guided-onboarding-plugin": "link:src/platform/plugins/shared/guided_onboarding", "@kbn/guided-onboarding-plugin": "link:src/platform/plugins/shared/guided_onboarding",
"@kbn/handlebars": "link:packages/kbn-handlebars", "@kbn/handlebars": "link:src/platform/packages/private/kbn-handlebars",
"@kbn/hapi-mocks": "link:src/platform/packages/private/kbn-hapi-mocks", "@kbn/hapi-mocks": "link:src/platform/packages/private/kbn-hapi-mocks",
"@kbn/hardening-plugin": "link:test/plugin_functional/plugins/hardening", "@kbn/hardening-plugin": "link:test/plugin_functional/plugins/hardening",
"@kbn/health-gateway-server": "link:src/platform/packages/private/kbn-health-gateway-server", "@kbn/health-gateway-server": "link:src/platform/packages/private/kbn-health-gateway-server",
@ -586,7 +586,7 @@
"@kbn/input-control-vis-plugin": "link:src/platform/plugins/private/input_control_vis", "@kbn/input-control-vis-plugin": "link:src/platform/plugins/private/input_control_vis",
"@kbn/inspector-plugin": "link:src/platform/plugins/shared/inspector", "@kbn/inspector-plugin": "link:src/platform/plugins/shared/inspector",
"@kbn/integration-assistant-plugin": "link:x-pack/platform/plugins/shared/integration_assistant", "@kbn/integration-assistant-plugin": "link:x-pack/platform/plugins/shared/integration_assistant",
"@kbn/interactive-setup-plugin": "link:src/plugins/interactive_setup", "@kbn/interactive-setup-plugin": "link:src/platform/plugins/private/interactive_setup",
"@kbn/interactive-setup-test-endpoints-plugin": "link:test/interactive_setup_api_integration/plugins/test_endpoints", "@kbn/interactive-setup-test-endpoints-plugin": "link:test/interactive_setup_api_integration/plugins/test_endpoints",
"@kbn/interpreter": "link:packages/kbn-interpreter", "@kbn/interpreter": "link:packages/kbn-interpreter",
"@kbn/inventory-plugin": "link:x-pack/solutions/observability/plugins/inventory", "@kbn/inventory-plugin": "link:x-pack/solutions/observability/plugins/inventory",
@ -774,7 +774,7 @@
"@kbn/rule-data-utils": "link:src/platform/packages/shared/kbn-rule-data-utils", "@kbn/rule-data-utils": "link:src/platform/packages/shared/kbn-rule-data-utils",
"@kbn/rule-registry-plugin": "link:x-pack/platform/plugins/shared/rule_registry", "@kbn/rule-registry-plugin": "link:x-pack/platform/plugins/shared/rule_registry",
"@kbn/runtime-fields-plugin": "link:x-pack/platform/plugins/private/runtime_fields", "@kbn/runtime-fields-plugin": "link:x-pack/platform/plugins/private/runtime_fields",
"@kbn/safer-lodash-set": "link:packages/kbn-safer-lodash-set", "@kbn/safer-lodash-set": "link:src/platform/packages/shared/kbn-safer-lodash-set",
"@kbn/saml-provider-plugin": "link:x-pack/test/security_api_integration/plugins/saml_provider", "@kbn/saml-provider-plugin": "link:x-pack/test/security_api_integration/plugins/saml_provider",
"@kbn/sample-task-plugin": "link:x-pack/test/plugin_api_integration/plugins/sample_task_plugin", "@kbn/sample-task-plugin": "link:x-pack/test/plugin_api_integration/plugins/sample_task_plugin",
"@kbn/sample-task-plugin-update-by-query": "link:x-pack/test/task_manager_claimer_update_by_query/plugins/sample_task_plugin_mget", "@kbn/sample-task-plugin-update-by-query": "link:x-pack/test/task_manager_claimer_update_by_query/plugins/sample_task_plugin_mget",
@ -815,16 +815,16 @@
"@kbn/search-shared-ui": "link:x-pack/solutions/search/packages/search/shared_ui", "@kbn/search-shared-ui": "link:x-pack/solutions/search/packages/search/shared_ui",
"@kbn/search-types": "link:src/platform/packages/shared/kbn-search-types", "@kbn/search-types": "link:src/platform/packages/shared/kbn-search-types",
"@kbn/searchprofiler-plugin": "link:x-pack/platform/plugins/shared/searchprofiler", "@kbn/searchprofiler-plugin": "link:x-pack/platform/plugins/shared/searchprofiler",
"@kbn/security-api-key-management": "link:x-pack/packages/security/api_key_management", "@kbn/security-api-key-management": "link:x-pack/platform/packages/shared/security/api_key_management",
"@kbn/security-authorization-core": "link:x-pack/packages/security/authorization_core", "@kbn/security-authorization-core": "link:x-pack/platform/packages/private/security/authorization_core",
"@kbn/security-authorization-core-common": "link:x-pack/packages/security/authorization_core_common", "@kbn/security-authorization-core-common": "link:x-pack/platform/packages/private/security/authorization_core_common",
"@kbn/security-form-components": "link:x-pack/packages/security/form_components", "@kbn/security-form-components": "link:x-pack/platform/packages/shared/security/form_components",
"@kbn/security-hardening": "link:packages/kbn-security-hardening", "@kbn/security-hardening": "link:src/platform/packages/shared/kbn-security-hardening",
"@kbn/security-plugin": "link:x-pack/plugins/security", "@kbn/security-plugin": "link:x-pack/platform/plugins/shared/security",
"@kbn/security-plugin-types-common": "link:x-pack/packages/security/plugin_types_common", "@kbn/security-plugin-types-common": "link:x-pack/platform/packages/shared/security/plugin_types_common",
"@kbn/security-plugin-types-public": "link:x-pack/packages/security/plugin_types_public", "@kbn/security-plugin-types-public": "link:x-pack/platform/packages/shared/security/plugin_types_public",
"@kbn/security-plugin-types-server": "link:x-pack/packages/security/plugin_types_server", "@kbn/security-plugin-types-server": "link:x-pack/platform/packages/shared/security/plugin_types_server",
"@kbn/security-role-management-model": "link:x-pack/packages/security/role_management_model", "@kbn/security-role-management-model": "link:x-pack/platform/packages/private/security/role_management_model",
"@kbn/security-solution-distribution-bar": "link:x-pack/solutions/security/packages/distribution_bar", "@kbn/security-solution-distribution-bar": "link:x-pack/solutions/security/packages/distribution_bar",
"@kbn/security-solution-ess": "link:x-pack/solutions/security/plugins/security_solution_ess", "@kbn/security-solution-ess": "link:x-pack/solutions/security/plugins/security_solution_ess",
"@kbn/security-solution-features": "link:x-pack/solutions/security/packages/features", "@kbn/security-solution-features": "link:x-pack/solutions/security/packages/features",
@ -836,7 +836,7 @@
"@kbn/security-solution-storybook-config": "link:x-pack/solutions/security/packages/storybook/config", "@kbn/security-solution-storybook-config": "link:x-pack/solutions/security/packages/storybook/config",
"@kbn/security-solution-upselling": "link:x-pack/solutions/security/packages/upselling", "@kbn/security-solution-upselling": "link:x-pack/solutions/security/packages/upselling",
"@kbn/security-test-endpoints-plugin": "link:x-pack/test/security_functional/plugins/test_endpoints", "@kbn/security-test-endpoints-plugin": "link:x-pack/test/security_functional/plugins/test_endpoints",
"@kbn/security-ui-components": "link:x-pack/packages/security/ui_components", "@kbn/security-ui-components": "link:x-pack/platform/packages/private/security/ui_components",
"@kbn/securitysolution-autocomplete": "link:x-pack/solutions/security/packages/kbn-securitysolution-autocomplete", "@kbn/securitysolution-autocomplete": "link:x-pack/solutions/security/packages/kbn-securitysolution-autocomplete",
"@kbn/securitysolution-data-table": "link:x-pack/solutions/security/packages/data_table", "@kbn/securitysolution-data-table": "link:x-pack/solutions/security/packages/data_table",
"@kbn/securitysolution-ecs": "link:src/platform/packages/shared/kbn-securitysolution-ecs", "@kbn/securitysolution-ecs": "link:src/platform/packages/shared/kbn-securitysolution-ecs",
@ -930,7 +930,7 @@
"@kbn/slo-schema": "link:x-pack/platform/packages/shared/kbn-slo-schema", "@kbn/slo-schema": "link:x-pack/platform/packages/shared/kbn-slo-schema",
"@kbn/snapshot-restore-plugin": "link:x-pack/platform/plugins/private/snapshot_restore", "@kbn/snapshot-restore-plugin": "link:x-pack/platform/plugins/private/snapshot_restore",
"@kbn/sort-predicates": "link:packages/kbn-sort-predicates", "@kbn/sort-predicates": "link:packages/kbn-sort-predicates",
"@kbn/spaces-plugin": "link:x-pack/plugins/spaces", "@kbn/spaces-plugin": "link:x-pack/platform/plugins/shared/spaces",
"@kbn/spaces-test-plugin": "link:x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin", "@kbn/spaces-test-plugin": "link:x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin",
"@kbn/sse-utils": "link:src/platform/packages/shared/kbn-sse-utils", "@kbn/sse-utils": "link:src/platform/packages/shared/kbn-sse-utils",
"@kbn/sse-utils-client": "link:src/platform/packages/shared/kbn-sse-utils-client", "@kbn/sse-utils-client": "link:src/platform/packages/shared/kbn-sse-utils-client",
@ -999,7 +999,7 @@
"@kbn/usage-collection-plugin": "link:src/platform/plugins/shared/usage_collection", "@kbn/usage-collection-plugin": "link:src/platform/plugins/shared/usage_collection",
"@kbn/usage-collection-test-plugin": "link:test/plugin_functional/plugins/usage_collection", "@kbn/usage-collection-test-plugin": "link:test/plugin_functional/plugins/usage_collection",
"@kbn/use-tracked-promise": "link:packages/kbn-use-tracked-promise", "@kbn/use-tracked-promise": "link:packages/kbn-use-tracked-promise",
"@kbn/user-profile-components": "link:packages/kbn-user-profile-components", "@kbn/user-profile-components": "link:src/platform/packages/shared/kbn-user-profile-components",
"@kbn/user-profile-examples-plugin": "link:examples/user_profile_examples", "@kbn/user-profile-examples-plugin": "link:examples/user_profile_examples",
"@kbn/user-profiles-consumer-plugin": "link:x-pack/test/security_api_integration/plugins/user_profiles_consumer", "@kbn/user-profiles-consumer-plugin": "link:x-pack/test/security_api_integration/plugins/user_profiles_consumer",
"@kbn/utility-types": "link:src/platform/packages/shared/kbn-utility-types", "@kbn/utility-types": "link:src/platform/packages/shared/kbn-utility-types",

View file

@ -14,7 +14,7 @@ import * as groupBy from '../../lib/group_by_owners.ts';
import * as groupBySource from '../../lib/group_by_source.ts'; import * as groupBySource from '../../lib/group_by_source.ts';
const codeOwners: Record<string, string[]> = { const codeOwners: Record<string, string[]> = {
'plugins/security': ['team_security'], 'platform/plugins/shared/security': ['team_security'],
'plugins/data_visualization': ['team_visualization'], 'plugins/data_visualization': ['team_visualization'],
'plugins/data_charts': ['team_visualization'], 'plugins/data_charts': ['team_visualization'],
'plugins/analytics': ['team_analytics'], 'plugins/analytics': ['team_analytics'],
@ -45,7 +45,7 @@ const mockCruiseResult = {
summary: { summary: {
violations: [ violations: [
{ {
from: 'plugins/security', from: 'platform/plugins/shared/security',
to: 'node_modules/rxjs', to: 'node_modules/rxjs',
}, },
{ {
@ -70,7 +70,7 @@ const mockCruiseResult = {
{ {
source: 'node_modules/rxjs', source: 'node_modules/rxjs',
dependents: [ dependents: [
'plugins/security/server/index.ts', 'platform/plugins/shared/security/server/index.ts',
'plugins/data_charts/public/charts.ts', 'plugins/data_charts/public/charts.ts',
'plugins/data_visualization/public/visualization.ts', 'plugins/data_visualization/public/visualization.ts',
'plugins/data_visualization/public/ingest.ts', 'plugins/data_visualization/public/ingest.ts',
@ -137,7 +137,7 @@ describe('identifyDependencyUsage', () => {
expect(result).toEqual({ expect(result).toEqual({
team_security: { team_security: {
modules: ['plugins/security'], modules: ['platform/plugins/shared/security'],
deps: ['rxjs'], deps: ['rxjs'],
teams: ['team_security'], teams: ['team_security'],
}, },
@ -167,7 +167,7 @@ describe('identifyDependencyUsage', () => {
expect(groupFilesByOwnersSpy).toHaveBeenCalledWith(mockCruiseResult.output.summary.violations); expect(groupFilesByOwnersSpy).toHaveBeenCalledWith(mockCruiseResult.output.summary.violations);
expect(result).toEqual({ expect(result).toEqual({
'plugins/security': ['rxjs'], 'platform/plugins/shared/security': ['rxjs'],
'plugins/data_visualization': ['rxjs'], 'plugins/data_visualization': ['rxjs'],
'plugins/data_charts': ['rxjs'], 'plugins/data_charts': ['rxjs'],
'plugins/analytics': ['rxjs', '@hapi/boom'], 'plugins/analytics': ['rxjs', '@hapi/boom'],
@ -185,14 +185,14 @@ describe('identifyDependencyUsage', () => {
expect(result).toEqual({ expect(result).toEqual({
modules: [ modules: [
'plugins/security', 'platform/plugins/shared/security',
'plugins/data_visualization', 'plugins/data_visualization',
'plugins/data_charts', 'plugins/data_charts',
'plugins/analytics', 'plugins/analytics',
], ],
dependents: { dependents: {
rxjs: [ rxjs: [
'plugins/security/server/index.ts', 'platform/plugins/shared/security/server/index.ts',
'plugins/data_charts/public/charts.ts', 'plugins/data_charts/public/charts.ts',
'plugins/data_visualization/public/visualization.ts', 'plugins/data_visualization/public/visualization.ts',
'plugins/data_visualization/public/ingest.ts', 'plugins/data_visualization/public/ingest.ts',
@ -213,7 +213,7 @@ describe('identifyDependencyUsage', () => {
expect(result).toEqual({ expect(result).toEqual({
modules: [ modules: [
'plugins/security', 'platform/plugins/shared/security',
'plugins/data_visualization', 'plugins/data_visualization',
'plugins/data_charts', 'plugins/data_charts',
'plugins/analytics', 'plugins/analytics',
@ -272,7 +272,7 @@ describe('identifyDependencyUsage', () => {
summary: { summary: {
violations: [ violations: [
{ from: 'plugins/unknown_plugin', to: 'node_modules/some_module' }, { from: 'plugins/unknown_plugin', to: 'node_modules/some_module' },
{ from: 'plugins/security', to: 'node_modules/rxjs' }, { from: 'platform/plugins/shared/security', to: 'node_modules/rxjs' },
], ],
}, },
modules: [], modules: [],
@ -294,7 +294,7 @@ describe('identifyDependencyUsage', () => {
teams: ['unknown'], teams: ['unknown'],
}, },
team_security: { team_security: {
modules: ['plugins/security'], modules: ['platform/plugins/shared/security'],
deps: ['rxjs'], deps: ['rxjs'],
teams: ['team_security'], teams: ['team_security'],
}, },

View file

@ -1,10 +0,0 @@
/*
* Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information.
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-handlebars'],
};

View file

@ -19,7 +19,6 @@ export interface SavedObjectTypeIdTuple {
type: string; type: string;
} }
// NOTE: moved from x-pack/plugins/spaces/common/types.ts for use by SO security ext
/** /**
* Client interface for interacting with legacy URL aliases. * Client interface for interacting with legacy URL aliases.
*/ */

View file

@ -15,7 +15,7 @@ export interface AuditLogger {
* current user, space and correlation id. * current user, space and correlation id.
* *
* Guidelines around what events should be logged and how they should be * Guidelines around what events should be logged and how they should be
* structured can be found in: `/x-pack/plugins/security/README.md` * structured can be found in: `/x-pack/platform/plugins/shared/security/README.md`
* *
* @example * @example
* ```typescript * ```typescript

View file

@ -11,7 +11,7 @@
* IMPORTANT: * IMPORTANT:
* *
* The types in this file are duplicated at * The types in this file are duplicated at
* `packages/kbn-user-profile-components/src/user_profile.ts` * `src/platform/packages/shared/kbn-user-profile-components/src/user_profile.ts`
* *
* When making changes please ensure to keep both files in sync. * When making changes please ensure to keep both files in sync.
*/ */

View file

@ -62,11 +62,11 @@ export const IGNORE_FILE_GLOBS = [
'**/preview-head.html', '**/preview-head.html',
// filename must match upstream filenames from lodash // filename must match upstream filenames from lodash
'packages/kbn-safer-lodash-set/**/*', 'src/platform/packages/shared/kbn-safer-lodash-set/**/*',
// filename must match upstream filenames from handlebars // filename must match upstream filenames from handlebars
'packages/kbn-handlebars/src/upstream/**/*', 'src/platform/packages/private/kbn-handlebars/src/upstream/**/*',
'packages/kbn-handlebars/.patches/**/*', 'src/platform/packages/private/kbn-handlebars/.patches/**/*',
'x-pack/platform/plugins/shared/maps/server/fonts/**/*', 'x-pack/platform/plugins/shared/maps/server/fonts/**/*',

View file

@ -26,4 +26,4 @@ This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history individuals. For exact contribution history, see the revision history
available at the following locations: available at the following locations:
- https://github.com/handlebars-lang/handlebars.js - https://github.com/handlebars-lang/handlebars.js
- https://github.com/elastic/kibana/tree/main/packages/kbn-handlebars - https://github.com/elastic/kibana/tree/main/src/platform/packages/private/kbn-handlebars

View file

@ -68,7 +68,7 @@ We keep state internally in the `ElasticHandlebarsVisitor` object using the foll
The tests for `@kbn/handlebars` are integrated into the regular test suite of Kibana and are all jest tests. To run them all, simply do: The tests for `@kbn/handlebars` are integrated into the regular test suite of Kibana and are all jest tests. To run them all, simply do:
```sh ```sh
node scripts/jest packages/kbn-handlebars node scripts/jest src/platform/packages/private/kbn-handlebars
``` ```
By default, each test will run both the original `handlebars` code and the modified `@kbn/handlebars` code to compare if the output of the two are identical. To isolate a test run to just one or the other, you can use the following environment variables: By default, each test will run both the original `handlebars` code and the modified `@kbn/handlebars` code to compare if the output of the two are identical. To isolate a test run to just one or the other, you can use the following environment variables:
@ -78,10 +78,10 @@ By default, each test will run both the original `handlebars` code and the modif
## Development ## Development
Some of the tests have been copied from the upstream `handlebars` project and modified to fit our use-case, test-suite, and coding conventions. They are all located under the `packages/kbn-handlebars/src/spec` directory. To check if any of the copied files have received updates upstream that we might want to include in our copies, you can run the following script: Some of the tests have been copied from the upstream `handlebars` project and modified to fit our use-case, test-suite, and coding conventions. They are all located under the `src/platform/packages/private/kbn-handlebars/src/spec` directory. To check if any of the copied files have received updates upstream that we might want to include in our copies, you can run the following script:
```sh ```sh
./packages/kbn-handlebars/scripts/check_for_upstream_updates.sh ./src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh
``` ```
_Note: This will look for changes in the `4.x` branch of the `handlebars.js` repo only. Changes in the `master` branch are ignored._ _Note: This will look for changes in the `4.x` branch of the `handlebars.js` repo only. Changes in the `master` branch are ignored._
@ -89,10 +89,10 @@ _Note: This will look for changes in the `4.x` branch of the `handlebars.js` rep
Once all updates have been manually merged with our versions of the files, run the following script to "lock" us into the new updates: Once all updates have been manually merged with our versions of the files, run the following script to "lock" us into the new updates:
```sh ```sh
./packages/kbn-handlebars/scripts/update_upstream_git_hash.sh ./src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh
``` ```
This will update file `packages/kbn-handlebars/src/spec/.upstream_git_hash`. Make sure to commit changes to this file as well. This will update file `src/platform/packages/private/kbn-handlebars/src/spec/.upstream_git_hash`. Make sure to commit changes to this file as well.
## Debugging ## Debugging
@ -101,13 +101,13 @@ This will update file `packages/kbn-handlebars/src/spec/.upstream_git_hash`. Mak
To output the generated AST object structure in a somewhat readable form, use the following script: To output the generated AST object structure in a somewhat readable form, use the following script:
```sh ```sh
./packages/kbn-handlebars/scripts/print_ast.js ./src/platform/packages/private/kbn-handlebars/scripts/print_ast.js
``` ```
Example: Example:
```sh ```sh
./packages/kbn-handlebars/scripts/print_ast.js '{{value}}' ./src/platform/packages/private/kbn-handlebars/scripts/print_ast.js '{{value}}'
``` ```
Output: Output:

View file

@ -1,6 +1,6 @@
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
/** /**

View file

@ -1,6 +1,6 @@
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import { Handlebars } from './src/handlebars'; import { Handlebars } from './src/handlebars';

View file

@ -0,0 +1,10 @@
/*
* Elasticsearch B.V licenses this file to you under the MIT License.
* See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/packages/private/kbn-handlebars'],
};

View file

@ -3,7 +3,7 @@
set -e set -e
TMP=.tmp-handlebars TMP=.tmp-handlebars
HASH_FILE=packages/kbn-handlebars/src/spec/.upstream_git_hash HASH_FILE=src/platform/packages/private/kbn-handlebars/src/spec/.upstream_git_hash
function cleanup { function cleanup {
rm -fr $TMP rm -fr $TMP
@ -32,14 +32,14 @@ else
echo " 1. Investigate the commits in the '4.x' branch of the upstream git repository." echo " 1. Investigate the commits in the '4.x' branch of the upstream git repository."
echo " If files inside the 'spec' folder has been updated, sync those updates with" echo " If files inside the 'spec' folder has been updated, sync those updates with"
echo " our local versions of these files (located in" echo " our local versions of these files (located in"
echo " 'packages/kbn-handlebars/src/spec')." echo " 'src/platform/packages/private/kbn-handlebars/src/spec')."
echo echo
echo " https://github.com/handlebars-lang/handlebars.js/compare/$expected_hash...4.x" echo " https://github.com/handlebars-lang/handlebars.js/compare/$expected_hash...4.x"
echo echo
echo " 2. Execute the following script and commit the updated '$HASH_FILE'" echo " 2. Execute the following script and commit the updated '$HASH_FILE'"
echo " file including any changes you made to our own spec files." echo " file including any changes you made to our own spec files."
echo echo
echo " ./packages/kbn-handlebars/scripts/update_upstream_git_hash.sh" echo " ./src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh"
echo echo
exit 1 exit 1
fi fi

View file

@ -1,7 +1,7 @@
#!/usr/bin/env node #!/usr/bin/env node
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
'use strict'; // eslint-disable-line strict 'use strict'; // eslint-disable-line strict

View file

@ -3,7 +3,7 @@
set -e set -e
TMP=.tmp-handlebars TMP=.tmp-handlebars
HASH_FILE=packages/kbn-handlebars/src/spec/.upstream_git_hash HASH_FILE=src/platform/packages/private/kbn-handlebars/src/spec/.upstream_git_hash
function cleanup { function cleanup {
rm -fr $TMP rm -fr $TMP

View file

@ -1,6 +1,6 @@
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import Handlebars, { import Handlebars, {

View file

@ -1,6 +1,6 @@
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
// The handlebars module uses `export =`, so we should technically use `import Handlebars = require('handlebars')`, but Babel will not allow this: // The handlebars module uses `export =`, so we should technically use `import Handlebars = require('handlebars')`, but Babel will not allow this:

View file

@ -2,7 +2,7 @@
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import Handlebars from '../..'; import Handlebars from '../..';

View file

@ -2,7 +2,7 @@
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import Handlebars, { type HelperOptions } from '../..'; import Handlebars, { type HelperOptions } from '../..';

View file

@ -2,7 +2,7 @@
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
/* eslint-disable max-classes-per-file */ /* eslint-disable max-classes-per-file */

View file

@ -2,7 +2,7 @@
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import Handlebars from '../..'; import Handlebars from '../..';

View file

@ -2,7 +2,7 @@
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import Handlebars, { type HelperOptions } from '../..'; import Handlebars, { type HelperOptions } from '../..';

View file

@ -2,7 +2,7 @@
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import Handlebars, { type HelperOptions } from '../..'; import Handlebars, { type HelperOptions } from '../..';

View file

@ -2,7 +2,7 @@
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import Handlebars from '../..'; import Handlebars from '../..';

View file

@ -2,7 +2,7 @@
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import Handlebars, { type HelperOptions } from '../..'; import Handlebars, { type HelperOptions } from '../..';
@ -273,8 +273,8 @@ describe('Regressions', () => {
it('GH-1135 : Context handling within each iteration', () => { it('GH-1135 : Context handling within each iteration', () => {
expectTemplate( expectTemplate(
'{{#each array}}\n' + '{{#each array}}\n' +
' 1. IF: {{#if true}}{{../name}}-{{../../name}}-{{../../../name}}{{/if}}\n' + ' 1. IF: {{#if true}}{{../name}}-{{../../name}}-{{../../../../../../name}}{{/if}}\n' +
' 2. MYIF: {{#myif true}}{{../name}}={{../../name}}={{../../../name}}{{/myif}}\n' + ' 2. MYIF: {{#myif true}}{{../name}}={{../../name}}={{../../../../../../name}}{{/myif}}\n' +
'{{/each}}' '{{/each}}'
) )
.withInput({ array: [1], name: 'John' }) .withInput({ array: [1], name: 'John' })

View file

@ -2,7 +2,7 @@
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import Handlebars from '../..'; import Handlebars from '../..';

View file

@ -2,7 +2,7 @@
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import { expectTemplate } from '../__jest__/test_bench'; import { expectTemplate } from '../__jest__/test_bench';

View file

@ -2,7 +2,7 @@
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import Handlebars, { type HelperOptions } from '../..'; import Handlebars, { type HelperOptions } from '../..';

View file

@ -2,7 +2,7 @@
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import Handlebars from '../..'; import Handlebars from '../..';

View file

@ -2,7 +2,7 @@
* This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import { expectTemplate } from '../__jest__/test_bench'; import { expectTemplate } from '../__jest__/test_bench';

View file

@ -1,6 +1,6 @@
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
export const kHelper = Symbol('helper'); export const kHelper = Symbol('helper');

View file

@ -1,6 +1,6 @@
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import { kHelper, kAmbiguous, kSimple } from './symbols'; import { kHelper, kAmbiguous, kSimple } from './symbols';

View file

@ -1,6 +1,6 @@
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
// @ts-expect-error: Could not find a declaration file for module // @ts-expect-error: Could not find a declaration file for module

View file

@ -1,6 +1,6 @@
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-handlebars/LICENSE` for more information. * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information.
*/ */
import Handlebars from 'handlebars'; import Handlebars from 'handlebars';

View file

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.base.json", "extends": "../../../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "target/types", "outDir": "target/types",
"types": [ "types": [

View file

@ -33,7 +33,7 @@ webpack_cli(
"//src/platform/packages/shared/kbn-es-query", "//src/platform/packages/shared/kbn-es-query",
"//src/platform/packages/shared/kbn-search-errors", "//src/platform/packages/shared/kbn-search-errors",
"//src/platform/packages/shared/kbn-std", "//src/platform/packages/shared/kbn-std",
"//packages/kbn-safer-lodash-set", "//src/platform/packages/shared/kbn-safer-lodash-set",
"//packages/kbn-peggy", "//packages/kbn-peggy",
"//packages/kbn-peggy-loader", "//packages/kbn-peggy-loader",
"//packages/shared-ux/error_boundary", "//packages/shared-ux/error_boundary",

View file

@ -9,6 +9,6 @@
module.exports = { module.exports = {
preset: '@kbn/test', preset: '@kbn/test',
rootDir: '../..', rootDir: '../../../../..',
roots: ['<rootDir>/packages/kbn-crypto'], roots: ['<rootDir>/src/platform/packages/shared/kbn-crypto'],
}; };

View file

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.base.json", "extends": "../../../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "target/types", "outDir": "target/types",
"types": [ "types": [

View file

@ -2,7 +2,7 @@
* This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
import { assoc } from '.'; import { assoc } from '.';

View file

@ -2,7 +2,7 @@
* This file is forked from the lodash project (https://lodash.com/), * This file is forked from the lodash project (https://lodash.com/),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
module.exports = require('./set'); module.exports = require('./set');

View file

@ -2,7 +2,7 @@
* This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
import { assocPath } from '.'; import { assocPath } from '.';

View file

@ -2,7 +2,7 @@
* This file is forked from the lodash project (https://lodash.com/), * This file is forked from the lodash project (https://lodash.com/),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
module.exports = require('./set'); module.exports = require('./set');

View file

@ -2,7 +2,7 @@
* This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
import lodash = require('lodash'); import lodash = require('lodash');

View file

@ -2,7 +2,7 @@
* This file is forked from the lodash project (https://lodash.com/), * This file is forked from the lodash project (https://lodash.com/),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
exports.set = exports.assoc = exports.assocPath = require('./set'); exports.set = exports.assoc = exports.assocPath = require('./set');

View file

@ -2,7 +2,7 @@
* This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
import { set } from '.'; import { set } from '.';

View file

@ -2,7 +2,7 @@
* This file is forked from the lodash project (https://lodash.com/), * This file is forked from the lodash project (https://lodash.com/),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
/*eslint no-var:0 */ /*eslint no-var:0 */

View file

@ -2,7 +2,7 @@
* This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
import { setWith } from '.'; import { setWith } from '.';

View file

@ -2,7 +2,7 @@
* This file is forked from the lodash project (https://lodash.com/), * This file is forked from the lodash project (https://lodash.com/),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
/*eslint no-var:0 */ /*eslint no-var:0 */

View file

@ -2,7 +2,7 @@
* This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
export = SaferLodashSet; export = SaferLodashSet;

View file

@ -2,7 +2,7 @@
* This file is forked from the lodash project (https://lodash.com/), * This file is forked from the lodash project (https://lodash.com/),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
exports.set = require('./lodash/set'); exports.set = require('./lodash/set');

View file

@ -2,7 +2,7 @@
* This file is forked from the lodash project (https://lodash.com/), * This file is forked from the lodash project (https://lodash.com/),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
/* eslint-disable one-var,prettier/prettier,no-var,eqeqeq,no-nested-ternary */ /* eslint-disable one-var,prettier/prettier,no-var,eqeqeq,no-nested-ternary */

View file

@ -2,7 +2,7 @@
* This file is forked from the lodash project (https://lodash.com/), * This file is forked from the lodash project (https://lodash.com/),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
/* eslint-disable no-var */ /* eslint-disable no-var */

View file

@ -2,7 +2,7 @@
* This file is forked from the lodash project (https://lodash.com/), * This file is forked from the lodash project (https://lodash.com/),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
/* eslint-disable no-var,eqeqeq */ /* eslint-disable no-var,eqeqeq */

View file

@ -3,9 +3,9 @@
"version": "1.0.0", "version": "1.0.0",
"description": "A safer version of the lodash set and setWith functions", "description": "A safer version of the lodash set and setWith functions",
"scripts": { "scripts": {
"lint": "../../node_modules/.bin/dependency-check --missing ../../package.json ./packages/kbn-safer-lodash-set/set.js ./packages/kbn-safer-lodash-set/setWith.js ./packages/kbn-safer-lodash-set/fp/*.js", "lint": "../../../../../node_modules/.bin/dependency-check --missing ../../../../../package.json ./src/platform/packages/shared/kbn-safer-lodash-set/set.js ./src/platform/packages/shared/kbn-safer-lodash-set/setWith.js ./src/platform/packages/shared/kbn-safer-lodash-set/fp/*.js",
"test": "npm run lint && ../../node_modules/.bin/tape test/*.js && npm run test:types", "test": "npm run lint && ../../../../../node_modules/.bin/tape test/*.js && npm run test:types",
"test:types": "../../node_modules/.bin/tsc --noEmit", "test:types": "../../../../../node_modules/.bin/tsc --noEmit",
"update": "./scripts/update.sh", "update": "./scripts/update.sh",
"save_state": "./scripts/save_state.sh" "save_state": "./scripts/save_state.sh"
}, },

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Elasticsearch B.V licenses this file to you under the MIT License. # Elasticsearch B.V licenses this file to you under the MIT License.
# See `packages/kbn-safer-lodash-set/LICENSE` for more information. # See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
clean_up () { clean_up () {
exit_code=$? exit_code=$?

View file

@ -2,6 +2,6 @@
* This file is forked from the lodash project (https://lodash.com/), * This file is forked from the lodash project (https://lodash.com/),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Elasticsearch B.V licenses this file to you under the MIT License. # Elasticsearch B.V licenses this file to you under the MIT License.
# See `packages/kbn-safer-lodash-set/LICENSE` for more information. # See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
set -e set -e

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Elasticsearch B.V licenses this file to you under the MIT License. # Elasticsearch B.V licenses this file to you under the MIT License.
# See `packages/kbn-safer-lodash-set/LICENSE` for more information. # See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
set -e set -e

View file

@ -2,7 +2,7 @@
* This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
import { set } from '.'; import { set } from '.';

View file

@ -2,7 +2,7 @@
* This file is forked from the lodash project (https://lodash.com/), * This file is forked from the lodash project (https://lodash.com/),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
module.exports = require('./lodash/set'); module.exports = require('./lodash/set');

View file

@ -2,7 +2,7 @@
* This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
import { setWith } from '.'; import { setWith } from '.';

View file

@ -2,7 +2,7 @@
* This file is forked from the lodash project (https://lodash.com/), * This file is forked from the lodash project (https://lodash.com/),
* and may include modifications made by Elasticsearch B.V. * and may include modifications made by Elasticsearch B.V.
* Elasticsearch B.V. licenses this file to you under the MIT License. * Elasticsearch B.V. licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
module.exports = require('./lodash/setWith'); module.exports = require('./lodash/setWith');

View file

@ -1,6 +1,6 @@
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
import { expectType } from 'tsd'; import { expectType } from 'tsd';

View file

@ -1,6 +1,6 @@
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
import { expectType } from 'tsd'; import { expectType } from 'tsd';

View file

@ -1,6 +1,6 @@
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
import { expectType } from 'tsd'; import { expectType } from 'tsd';

View file

@ -1,6 +1,6 @@
/* /*
* Elasticsearch B.V licenses this file to you under the MIT License. * Elasticsearch B.V licenses this file to you under the MIT License.
* See `packages/kbn-safer-lodash-set/LICENSE` for more information. * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information.
*/ */
const test = require('tape'); const test = require('tape');

Some files were not shown because too many files have changed in this diff Show more