Commit graph

24 commits

Author SHA1 Message Date
Gerard Soldevila
b6ae9b0518
[8.x] SKA: Relocate /test to /src/platform/test (#210956) (#214791)
# Backport

This will backport the following commits from `main` to `8.x`:
- [SKA: Relocate /test to /src/platform/test
(#210956)](https://github.com/elastic/kibana/pull/210956)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2025-03-14T16:57:23Z","message":"SKA:
Relocate /test to /src/platform/test (#210956)\n\n## Summary\n\nPart of
https://github.com/elastic/kibana-team/issues/1503\n\nThis is a first
step towards the relocation of all the Kibana tests.\n\nThe `/test/`
folder at the root, which is in itself a
package\n(`@kbn/test-suites-src`), and contains a large number of tests
and test\nplugins, is being relocated under `src/platform/test`.\n\nAll
the tests under this folder should be related to common
platform\nfeatures, and they should not have any dependency
towards\nsolution-specific components or features.\n\n<details
>\n<summary>Updated relative
paths</summary>\n\n```\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/jest.config.js:12\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/package.json:10\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/package.json:11\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/tsconfig.json:11\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/tsconfig.json:2\nsrc/platform/test/analytics/plugins/analytics_plugin_a/package.json:10\nsrc/platform/test/analytics/plugins/analytics_plugin_a/package.json:11\nsrc/platform/test/analytics/plugins/analytics_plugin_a/tsconfig.json:10\nsrc/platform/test/analytics/plugins/analytics_plugin_a/tsconfig.json:2\nsrc/platform/test/api_integration/jest.config.js:12\nsrc/platform/test/common/plugins/newsfeed/tsconfig.json:2\nsrc/platform/test/common/plugins/otel_metrics/tsconfig.json:2\nsrc/platform/test/functional/jest.config.js:12\nsrc/platform/test/harden/child_process.js:13\nsrc/platform/test/harden/lodash_template.js:13\nsrc/platform/test/harden/prototype.js:10\nsrc/platform/test/health_gateway/plugins/status/tsconfig.json:2\nsrc/platform/test/interactive_setup_api_integration/plugins/test_endpoints/tsconfig.json:2\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json:11\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json:12\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/tsconfig.json:11\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/tsconfig.json:2\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/package.json:11\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/package.json:12\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/tsconfig.json:2\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/tsconfig.json:9\nsrc/platform/test/package/Vagrantfile:2\nsrc/platform/test/plugin_functional/README.md:40\nsrc/platform/test/plugin_functional/plugins/app_link_test/package.json:11\nsrc/platform/test/plugin_functional/plugins/app_link_test/package.json:12\nsrc/platform/test/plugin_functional/plugins/app_link_test/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/app_link_test/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_app_status/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_app_status/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_app_status/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_app_status/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_history_block/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_history_block/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_history_block/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_history_block/tsconfig.json:6\nsrc/platform/test/plugin_functional/plugins/core_http/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_http/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_http/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_http/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/package.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/data_search/package.json:10\nsrc/platform/test/plugin_functional/plugins/data_search/package.json:9\nsrc/platform/test/plugin_functional/plugins/data_search/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/data_search/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/package.json:10\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/package.json:9\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/package.json:11\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/package.json:12\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/hardening/package.json:11\nsrc/platform/test/plugin_functional/plugins/hardening/package.json:12\nsrc/platform/test/plugin_functional/plugins/hardening/tsconfig.json:12\nsrc/platform/test/plugin_functional/plugins/hardening/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/index_patterns/package.json:11\nsrc/platform/test/plugin_functional/plugins/index_patterns/package.json:12\nsrc/platform/test/plugin_functional/plugins/index_patterns/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/index_patterns/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/session_notifications/package.json:11\nsrc/platform/test/plugin_functional/plugins/session_notifications/package.json:12\nsrc/platform/test/plugin_functional/plugins/session_notifications/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/session_notifications/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/telemetry/package.json:11\nsrc/platform/test/plugin_functional/plugins/telemetry/package.json:12\nsrc/platform/test/plugin_functional/plugins/telemetry/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/telemetry/tsconfig.json:6\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/usage_collection/package.json:11\nsrc/platform/test/plugin_functional/plugins/usage_collection/package.json:12\nsrc/platform/test/plugin_functional/plugins/usage_collection/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/usage_collection/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_a/package.json:10\nsrc/platform/test/server_integration/plugins/status_plugin_a/package.json:11\nsrc/platform/test/server_integration/plugins/status_plugin_a/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_a/tsconfig.json:9\nsrc/platform/test/server_integration/plugins/status_plugin_b/package.json:10\nsrc/platform/test/server_integration/plugins/status_plugin_b/package.json:11\nsrc/platform/test/server_integration/plugins/status_plugin_b/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_b/tsconfig.json:9\n```\n\n</details>\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"355a834659b74333162008d54d44be0f2a14fb6b","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Team:QA","release_note:skip","backport:skip","plugin
groups","v9.1.0"],"title":"SKA: Relocate /test to
/src/platform/test","number":210956,"url":"https://github.com/elastic/kibana/pull/210956","mergeCommit":{"message":"SKA:
Relocate /test to /src/platform/test (#210956)\n\n## Summary\n\nPart of
https://github.com/elastic/kibana-team/issues/1503\n\nThis is a first
step towards the relocation of all the Kibana tests.\n\nThe `/test/`
folder at the root, which is in itself a
package\n(`@kbn/test-suites-src`), and contains a large number of tests
and test\nplugins, is being relocated under `src/platform/test`.\n\nAll
the tests under this folder should be related to common
platform\nfeatures, and they should not have any dependency
towards\nsolution-specific components or features.\n\n<details
>\n<summary>Updated relative
paths</summary>\n\n```\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/jest.config.js:12\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/package.json:10\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/package.json:11\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/tsconfig.json:11\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/tsconfig.json:2\nsrc/platform/test/analytics/plugins/analytics_plugin_a/package.json:10\nsrc/platform/test/analytics/plugins/analytics_plugin_a/package.json:11\nsrc/platform/test/analytics/plugins/analytics_plugin_a/tsconfig.json:10\nsrc/platform/test/analytics/plugins/analytics_plugin_a/tsconfig.json:2\nsrc/platform/test/api_integration/jest.config.js:12\nsrc/platform/test/common/plugins/newsfeed/tsconfig.json:2\nsrc/platform/test/common/plugins/otel_metrics/tsconfig.json:2\nsrc/platform/test/functional/jest.config.js:12\nsrc/platform/test/harden/child_process.js:13\nsrc/platform/test/harden/lodash_template.js:13\nsrc/platform/test/harden/prototype.js:10\nsrc/platform/test/health_gateway/plugins/status/tsconfig.json:2\nsrc/platform/test/interactive_setup_api_integration/plugins/test_endpoints/tsconfig.json:2\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json:11\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json:12\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/tsconfig.json:11\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/tsconfig.json:2\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/package.json:11\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/package.json:12\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/tsconfig.json:2\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/tsconfig.json:9\nsrc/platform/test/package/Vagrantfile:2\nsrc/platform/test/plugin_functional/README.md:40\nsrc/platform/test/plugin_functional/plugins/app_link_test/package.json:11\nsrc/platform/test/plugin_functional/plugins/app_link_test/package.json:12\nsrc/platform/test/plugin_functional/plugins/app_link_test/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/app_link_test/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_app_status/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_app_status/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_app_status/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_app_status/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_history_block/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_history_block/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_history_block/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_history_block/tsconfig.json:6\nsrc/platform/test/plugin_functional/plugins/core_http/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_http/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_http/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_http/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/package.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/data_search/package.json:10\nsrc/platform/test/plugin_functional/plugins/data_search/package.json:9\nsrc/platform/test/plugin_functional/plugins/data_search/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/data_search/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/package.json:10\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/package.json:9\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/package.json:11\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/package.json:12\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/hardening/package.json:11\nsrc/platform/test/plugin_functional/plugins/hardening/package.json:12\nsrc/platform/test/plugin_functional/plugins/hardening/tsconfig.json:12\nsrc/platform/test/plugin_functional/plugins/hardening/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/index_patterns/package.json:11\nsrc/platform/test/plugin_functional/plugins/index_patterns/package.json:12\nsrc/platform/test/plugin_functional/plugins/index_patterns/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/index_patterns/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/session_notifications/package.json:11\nsrc/platform/test/plugin_functional/plugins/session_notifications/package.json:12\nsrc/platform/test/plugin_functional/plugins/session_notifications/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/session_notifications/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/telemetry/package.json:11\nsrc/platform/test/plugin_functional/plugins/telemetry/package.json:12\nsrc/platform/test/plugin_functional/plugins/telemetry/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/telemetry/tsconfig.json:6\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/usage_collection/package.json:11\nsrc/platform/test/plugin_functional/plugins/usage_collection/package.json:12\nsrc/platform/test/plugin_functional/plugins/usage_collection/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/usage_collection/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_a/package.json:10\nsrc/platform/test/server_integration/plugins/status_plugin_a/package.json:11\nsrc/platform/test/server_integration/plugins/status_plugin_a/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_a/tsconfig.json:9\nsrc/platform/test/server_integration/plugins/status_plugin_b/package.json:10\nsrc/platform/test/server_integration/plugins/status_plugin_b/package.json:11\nsrc/platform/test/server_integration/plugins/status_plugin_b/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_b/tsconfig.json:9\n```\n\n</details>\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"355a834659b74333162008d54d44be0f2a14fb6b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210956","number":210956,"mergeCommit":{"message":"SKA:
Relocate /test to /src/platform/test (#210956)\n\n## Summary\n\nPart of
https://github.com/elastic/kibana-team/issues/1503\n\nThis is a first
step towards the relocation of all the Kibana tests.\n\nThe `/test/`
folder at the root, which is in itself a
package\n(`@kbn/test-suites-src`), and contains a large number of tests
and test\nplugins, is being relocated under `src/platform/test`.\n\nAll
the tests under this folder should be related to common
platform\nfeatures, and they should not have any dependency
towards\nsolution-specific components or features.\n\n<details
>\n<summary>Updated relative
paths</summary>\n\n```\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/jest.config.js:12\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/package.json:10\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/package.json:11\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/tsconfig.json:11\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/tsconfig.json:2\nsrc/platform/test/analytics/plugins/analytics_plugin_a/package.json:10\nsrc/platform/test/analytics/plugins/analytics_plugin_a/package.json:11\nsrc/platform/test/analytics/plugins/analytics_plugin_a/tsconfig.json:10\nsrc/platform/test/analytics/plugins/analytics_plugin_a/tsconfig.json:2\nsrc/platform/test/api_integration/jest.config.js:12\nsrc/platform/test/common/plugins/newsfeed/tsconfig.json:2\nsrc/platform/test/common/plugins/otel_metrics/tsconfig.json:2\nsrc/platform/test/functional/jest.config.js:12\nsrc/platform/test/harden/child_process.js:13\nsrc/platform/test/harden/lodash_template.js:13\nsrc/platform/test/harden/prototype.js:10\nsrc/platform/test/health_gateway/plugins/status/tsconfig.json:2\nsrc/platform/test/interactive_setup_api_integration/plugins/test_endpoints/tsconfig.json:2\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json:11\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json:12\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/tsconfig.json:11\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/tsconfig.json:2\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/package.json:11\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/package.json:12\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/tsconfig.json:2\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/tsconfig.json:9\nsrc/platform/test/package/Vagrantfile:2\nsrc/platform/test/plugin_functional/README.md:40\nsrc/platform/test/plugin_functional/plugins/app_link_test/package.json:11\nsrc/platform/test/plugin_functional/plugins/app_link_test/package.json:12\nsrc/platform/test/plugin_functional/plugins/app_link_test/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/app_link_test/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_app_status/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_app_status/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_app_status/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_app_status/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_history_block/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_history_block/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_history_block/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_history_block/tsconfig.json:6\nsrc/platform/test/plugin_functional/plugins/core_http/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_http/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_http/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_http/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/package.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/data_search/package.json:10\nsrc/platform/test/plugin_functional/plugins/data_search/package.json:9\nsrc/platform/test/plugin_functional/plugins/data_search/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/data_search/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/package.json:10\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/package.json:9\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/package.json:11\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/package.json:12\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/hardening/package.json:11\nsrc/platform/test/plugin_functional/plugins/hardening/package.json:12\nsrc/platform/test/plugin_functional/plugins/hardening/tsconfig.json:12\nsrc/platform/test/plugin_functional/plugins/hardening/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/index_patterns/package.json:11\nsrc/platform/test/plugin_functional/plugins/index_patterns/package.json:12\nsrc/platform/test/plugin_functional/plugins/index_patterns/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/index_patterns/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/session_notifications/package.json:11\nsrc/platform/test/plugin_functional/plugins/session_notifications/package.json:12\nsrc/platform/test/plugin_functional/plugins/session_notifications/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/session_notifications/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/telemetry/package.json:11\nsrc/platform/test/plugin_functional/plugins/telemetry/package.json:12\nsrc/platform/test/plugin_functional/plugins/telemetry/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/telemetry/tsconfig.json:6\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/usage_collection/package.json:11\nsrc/platform/test/plugin_functional/plugins/usage_collection/package.json:12\nsrc/platform/test/plugin_functional/plugins/usage_collection/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/usage_collection/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_a/package.json:10\nsrc/platform/test/server_integration/plugins/status_plugin_a/package.json:11\nsrc/platform/test/server_integration/plugins/status_plugin_a/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_a/tsconfig.json:9\nsrc/platform/test/server_integration/plugins/status_plugin_b/package.json:10\nsrc/platform/test/server_integration/plugins/status_plugin_b/package.json:11\nsrc/platform/test/server_integration/plugins/status_plugin_b/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_b/tsconfig.json:9\n```\n\n</details>\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"355a834659b74333162008d54d44be0f2a14fb6b"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-03-18 14:48:04 +01:00
Tiago Costa
6b8710abec
[8.x] chore(NA): upgrade to webpack 5 (#191106) (#211146)
# Backport

This will backport the following commits from `main` to `8.x`:
- [chore(NA): upgrade to webpack 5
(#191106)](https://github.com/elastic/kibana/pull/191106)

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

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

<!--BACKPORT [{"author":{"name":"Tiago
Costa","email":"tiago.costa@elastic.co"},"sourceCommit":{"committedDate":"2025-02-14T03:01:36Z","message":"chore(NA):
upgrade to webpack 5 (#191106)\n\n### Summary\r\n\r\n- Closes
#89741\r\n\r\nThis PR contains the resulting work of a massive effort
that ports our\r\non top bundler abstraction (called @kbn/optimizer)
from Webpack v4 into\r\nWebpack v5. It's essential in terms of long term
maintenance since v4\r\nwas not receiving updates any longer but will
also unblock some new\r\nfeatures that could be beneficial for our
future DevEx endeavours.\r\n\r\nNext you can find a small list of all
the accomplished tasks on this\r\njourney.\r\n\r\n### Completed
Tasks\r\n- [x] Upgrade dependencies to match the ones on webpack v5\r\n-
[x] Fix null-loader usages\r\n- [x] Fix raw-loader usages\r\n- [x] Fix
file-loader usages\r\n- [x] Fix url-loader usages\r\n- [x] Fix
`@kbn/optimizer-webpack-helpers` to support webpack v5 \r\n- [x] Adopt
previous webpack v4 polyfill-all strategy
with\r\nnode-polyfill-webpack-plugin\r\n- [x] Fix theme-loader on
@kbn/optimizer\r\n- [x] Migrate configurations and ad-hoc loader options
on all webpack\r\nconfigs from v4 to v5\r\n- [x] Fix @kbn/test jest
resolver for file-loader cases\r\n- [x] Migrate public-path loader on
UiSharedDeps\r\n- [x] Fix all usages of webpack-merge\r\n- [x] Migrate
BundleRemoteModule\r\n- [x] Migrate BundleRemotesPlugin\r\n- [x]
Correctly migrate PopulateBundleCachePlugin\r\n- [x] Correctly migrate
BundleMetricsPlugin\r\n- [x] Check if the profiling plugins still work
(--profile flag)\r\n- [x] Recover if possible the previous webpack v4
cacheGroup chunks\r\nrename to something like
`data.plugin.chunk.0.js`\r\n- [x] Run `/ci` and make sure we get our
first green CI, otherwise work\r\non the errors until we do\r\n- [x]
Profile and solve bottlenecks until we get a cold build\r\nperformance
similar to the one we had on webpack v4
(`node\r\nscripts/build_kibana_platform_plugins --no-cache`).\r\n- [x]
OpenSSL Legacy Warnings: try to remove `--openssl-legacy-provider\r\n`
flags\r\n- [x] Add Webpack to Renovate config\r\n- [x] Explore removing
`NodePolyfillPlugin`\r\n([here](https://www.npmjs.com/package/node-polyfill-webpack-plugin))
and\r\nadd each polyfill needed individually per each webpack config to
check\r\nif we get smaller bundles. If we do it's better to go with the
case by\r\ncase need approach instead of deploying a bunch of polyfills
with\r\nNodePolyfillPlugin. As another alternative, create a custom
smaller\r\nplugin with only the union of all needed polyfills.\r\n- [x]
Evaluate if we want to touch the resolutions on mainFields
and\r\nconditionNames\r\n- [x] Understand why `@import
'src/core/public/mixins'` does not work\r\nanymore (not a problem, we
should use relative paths anyway but we want\r\nto track why it changed
from v4 to v5)\r\n- [x] BUG: Child compilers are having errors hidden
and/or changed from\r\nerror to warning\r\n- [x] Fix license check
for\r\n[Artistic-2.0](https://spdx.org/licenses/Artistic-2.0.html) is
the\r\nlicense
for\r\n[domain-browser](https://github.com/bevry/domain-browser?tab=License-1-ov-file).\r\nThis
package is a dependency
of\r\n[NodePolyfillPlugin](https://www.npmjs.com/package/node-polyfill-webpack-plugin).\r\nArtistic
2.0 license is [classified
as\r\nyellow](https://github.com/elastic/open-source/blob/main/elastic-product-policy.md#yellow-list)\r\nand
should only be used for dev dependencies.\r\n- [x] Make sure
`resourceQuery: { not: /raw/ }` is not necessary on\r\nother webpack
configs like storybook one\r\n- [x] Find what is being wrongly removed
by usedExports optimization;\r\nhint: I believe it is identifying a lot
of exports inside the sync entry\r\nof plugins as unused exports and
removing them. Then `__kbnBootstrap__`\r\ncan't be found\r\n- [x]
Rebalance @kbn/optimizer pickMaxWorkerCount\r\n- [x] Re-open the issue
to fix
sass-warnings\r\n[#190345](https://github.com/elastic/kibana/issues/190345)
or downgrade\r\nsass-loader to v10\r\n- [x] Remove previous esm no parse
rules\r\n- [x] Confirm esm support is working\r\n- [x] Confirm console
override is needed\r\n- [x] Confirm react prod builds on ui shared deps
for distributable\r\n- [x] Remove customization
for\r\n[xyflow](https://github.com/xyflow/xyflow) from webpack
configs\r\n- [x] Clean all the code\r\n- [x] Make sure collected metrics
from stats are still aligned with what\r\nwe were collecting before;
also verify if the modules used for optimizer\r\ncaches etc are well
generated (@kbn/node-libs-browser)\r\n- [x] Fix watch
performance\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Brad White
<brad.white@elastic.co>","sha":"203bc284781cc830049b3f7948c8fcafa8b7d9a1","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","Team:Operations","release_note:skip","Team:Fleet","v9.0.0","backport:all-open","ci:build-webpack-bundle-analyzer","Team:obs-ux-infra_services","v9.1.0"],"title":"chore(NA):
upgrade to webpack
5","number":191106,"url":"https://github.com/elastic/kibana/pull/191106","mergeCommit":{"message":"chore(NA):
upgrade to webpack 5 (#191106)\n\n### Summary\r\n\r\n- Closes
#89741\r\n\r\nThis PR contains the resulting work of a massive effort
that ports our\r\non top bundler abstraction (called @kbn/optimizer)
from Webpack v4 into\r\nWebpack v5. It's essential in terms of long term
maintenance since v4\r\nwas not receiving updates any longer but will
also unblock some new\r\nfeatures that could be beneficial for our
future DevEx endeavours.\r\n\r\nNext you can find a small list of all
the accomplished tasks on this\r\njourney.\r\n\r\n### Completed
Tasks\r\n- [x] Upgrade dependencies to match the ones on webpack v5\r\n-
[x] Fix null-loader usages\r\n- [x] Fix raw-loader usages\r\n- [x] Fix
file-loader usages\r\n- [x] Fix url-loader usages\r\n- [x] Fix
`@kbn/optimizer-webpack-helpers` to support webpack v5 \r\n- [x] Adopt
previous webpack v4 polyfill-all strategy
with\r\nnode-polyfill-webpack-plugin\r\n- [x] Fix theme-loader on
@kbn/optimizer\r\n- [x] Migrate configurations and ad-hoc loader options
on all webpack\r\nconfigs from v4 to v5\r\n- [x] Fix @kbn/test jest
resolver for file-loader cases\r\n- [x] Migrate public-path loader on
UiSharedDeps\r\n- [x] Fix all usages of webpack-merge\r\n- [x] Migrate
BundleRemoteModule\r\n- [x] Migrate BundleRemotesPlugin\r\n- [x]
Correctly migrate PopulateBundleCachePlugin\r\n- [x] Correctly migrate
BundleMetricsPlugin\r\n- [x] Check if the profiling plugins still work
(--profile flag)\r\n- [x] Recover if possible the previous webpack v4
cacheGroup chunks\r\nrename to something like
`data.plugin.chunk.0.js`\r\n- [x] Run `/ci` and make sure we get our
first green CI, otherwise work\r\non the errors until we do\r\n- [x]
Profile and solve bottlenecks until we get a cold build\r\nperformance
similar to the one we had on webpack v4
(`node\r\nscripts/build_kibana_platform_plugins --no-cache`).\r\n- [x]
OpenSSL Legacy Warnings: try to remove `--openssl-legacy-provider\r\n`
flags\r\n- [x] Add Webpack to Renovate config\r\n- [x] Explore removing
`NodePolyfillPlugin`\r\n([here](https://www.npmjs.com/package/node-polyfill-webpack-plugin))
and\r\nadd each polyfill needed individually per each webpack config to
check\r\nif we get smaller bundles. If we do it's better to go with the
case by\r\ncase need approach instead of deploying a bunch of polyfills
with\r\nNodePolyfillPlugin. As another alternative, create a custom
smaller\r\nplugin with only the union of all needed polyfills.\r\n- [x]
Evaluate if we want to touch the resolutions on mainFields
and\r\nconditionNames\r\n- [x] Understand why `@import
'src/core/public/mixins'` does not work\r\nanymore (not a problem, we
should use relative paths anyway but we want\r\nto track why it changed
from v4 to v5)\r\n- [x] BUG: Child compilers are having errors hidden
and/or changed from\r\nerror to warning\r\n- [x] Fix license check
for\r\n[Artistic-2.0](https://spdx.org/licenses/Artistic-2.0.html) is
the\r\nlicense
for\r\n[domain-browser](https://github.com/bevry/domain-browser?tab=License-1-ov-file).\r\nThis
package is a dependency
of\r\n[NodePolyfillPlugin](https://www.npmjs.com/package/node-polyfill-webpack-plugin).\r\nArtistic
2.0 license is [classified
as\r\nyellow](https://github.com/elastic/open-source/blob/main/elastic-product-policy.md#yellow-list)\r\nand
should only be used for dev dependencies.\r\n- [x] Make sure
`resourceQuery: { not: /raw/ }` is not necessary on\r\nother webpack
configs like storybook one\r\n- [x] Find what is being wrongly removed
by usedExports optimization;\r\nhint: I believe it is identifying a lot
of exports inside the sync entry\r\nof plugins as unused exports and
removing them. Then `__kbnBootstrap__`\r\ncan't be found\r\n- [x]
Rebalance @kbn/optimizer pickMaxWorkerCount\r\n- [x] Re-open the issue
to fix
sass-warnings\r\n[#190345](https://github.com/elastic/kibana/issues/190345)
or downgrade\r\nsass-loader to v10\r\n- [x] Remove previous esm no parse
rules\r\n- [x] Confirm esm support is working\r\n- [x] Confirm console
override is needed\r\n- [x] Confirm react prod builds on ui shared deps
for distributable\r\n- [x] Remove customization
for\r\n[xyflow](https://github.com/xyflow/xyflow) from webpack
configs\r\n- [x] Clean all the code\r\n- [x] Make sure collected metrics
from stats are still aligned with what\r\nwe were collecting before;
also verify if the modules used for optimizer\r\ncaches etc are well
generated (@kbn/node-libs-browser)\r\n- [x] Fix watch
performance\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Brad White
<brad.white@elastic.co>","sha":"203bc284781cc830049b3f7948c8fcafa8b7d9a1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/211145","number":211145,"state":"OPEN"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/191106","number":191106,"mergeCommit":{"message":"chore(NA):
upgrade to webpack 5 (#191106)\n\n### Summary\r\n\r\n- Closes
#89741\r\n\r\nThis PR contains the resulting work of a massive effort
that ports our\r\non top bundler abstraction (called @kbn/optimizer)
from Webpack v4 into\r\nWebpack v5. It's essential in terms of long term
maintenance since v4\r\nwas not receiving updates any longer but will
also unblock some new\r\nfeatures that could be beneficial for our
future DevEx endeavours.\r\n\r\nNext you can find a small list of all
the accomplished tasks on this\r\njourney.\r\n\r\n### Completed
Tasks\r\n- [x] Upgrade dependencies to match the ones on webpack v5\r\n-
[x] Fix null-loader usages\r\n- [x] Fix raw-loader usages\r\n- [x] Fix
file-loader usages\r\n- [x] Fix url-loader usages\r\n- [x] Fix
`@kbn/optimizer-webpack-helpers` to support webpack v5 \r\n- [x] Adopt
previous webpack v4 polyfill-all strategy
with\r\nnode-polyfill-webpack-plugin\r\n- [x] Fix theme-loader on
@kbn/optimizer\r\n- [x] Migrate configurations and ad-hoc loader options
on all webpack\r\nconfigs from v4 to v5\r\n- [x] Fix @kbn/test jest
resolver for file-loader cases\r\n- [x] Migrate public-path loader on
UiSharedDeps\r\n- [x] Fix all usages of webpack-merge\r\n- [x] Migrate
BundleRemoteModule\r\n- [x] Migrate BundleRemotesPlugin\r\n- [x]
Correctly migrate PopulateBundleCachePlugin\r\n- [x] Correctly migrate
BundleMetricsPlugin\r\n- [x] Check if the profiling plugins still work
(--profile flag)\r\n- [x] Recover if possible the previous webpack v4
cacheGroup chunks\r\nrename to something like
`data.plugin.chunk.0.js`\r\n- [x] Run `/ci` and make sure we get our
first green CI, otherwise work\r\non the errors until we do\r\n- [x]
Profile and solve bottlenecks until we get a cold build\r\nperformance
similar to the one we had on webpack v4
(`node\r\nscripts/build_kibana_platform_plugins --no-cache`).\r\n- [x]
OpenSSL Legacy Warnings: try to remove `--openssl-legacy-provider\r\n`
flags\r\n- [x] Add Webpack to Renovate config\r\n- [x] Explore removing
`NodePolyfillPlugin`\r\n([here](https://www.npmjs.com/package/node-polyfill-webpack-plugin))
and\r\nadd each polyfill needed individually per each webpack config to
check\r\nif we get smaller bundles. If we do it's better to go with the
case by\r\ncase need approach instead of deploying a bunch of polyfills
with\r\nNodePolyfillPlugin. As another alternative, create a custom
smaller\r\nplugin with only the union of all needed polyfills.\r\n- [x]
Evaluate if we want to touch the resolutions on mainFields
and\r\nconditionNames\r\n- [x] Understand why `@import
'src/core/public/mixins'` does not work\r\nanymore (not a problem, we
should use relative paths anyway but we want\r\nto track why it changed
from v4 to v5)\r\n- [x] BUG: Child compilers are having errors hidden
and/or changed from\r\nerror to warning\r\n- [x] Fix license check
for\r\n[Artistic-2.0](https://spdx.org/licenses/Artistic-2.0.html) is
the\r\nlicense
for\r\n[domain-browser](https://github.com/bevry/domain-browser?tab=License-1-ov-file).\r\nThis
package is a dependency
of\r\n[NodePolyfillPlugin](https://www.npmjs.com/package/node-polyfill-webpack-plugin).\r\nArtistic
2.0 license is [classified
as\r\nyellow](https://github.com/elastic/open-source/blob/main/elastic-product-policy.md#yellow-list)\r\nand
should only be used for dev dependencies.\r\n- [x] Make sure
`resourceQuery: { not: /raw/ }` is not necessary on\r\nother webpack
configs like storybook one\r\n- [x] Find what is being wrongly removed
by usedExports optimization;\r\nhint: I believe it is identifying a lot
of exports inside the sync entry\r\nof plugins as unused exports and
removing them. Then `__kbnBootstrap__`\r\ncan't be found\r\n- [x]
Rebalance @kbn/optimizer pickMaxWorkerCount\r\n- [x] Re-open the issue
to fix
sass-warnings\r\n[#190345](https://github.com/elastic/kibana/issues/190345)
or downgrade\r\nsass-loader to v10\r\n- [x] Remove previous esm no parse
rules\r\n- [x] Confirm esm support is working\r\n- [x] Confirm console
override is needed\r\n- [x] Confirm react prod builds on ui shared deps
for distributable\r\n- [x] Remove customization
for\r\n[xyflow](https://github.com/xyflow/xyflow) from webpack
configs\r\n- [x] Clean all the code\r\n- [x] Make sure collected metrics
from stats are still aligned with what\r\nwe were collecting before;
also verify if the modules used for optimizer\r\ncaches etc are well
generated (@kbn/node-libs-browser)\r\n- [x] Fix watch
performance\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Brad White
<brad.white@elastic.co>","sha":"203bc284781cc830049b3f7948c8fcafa8b7d9a1"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-02-14 13:36:07 +00:00
Gerard Soldevila
fddd6d0217
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-visualizations (#202754) (#205974)
# Backport

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

<!--- 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-08T11:19:24Z","message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/kibana-visualizations` (#202754)\n\n## Summary\r\n\r\nThis PR
aims at relocating some of the Kibana modules (plugins and\r\npackages)
into a new folder structure, according to the _Sustainable\r\nKibana
Architecture_ initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you
to:\r\n> * Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> * This PR has been
auto-generated.\r\n> * Any manual contributions will be lost if the
'relocate' script is\r\nre-run.\r\n> * Try to obtain the missing reviews
/ approvals before applying manual\r\nfixes, and/or keep your changes in
a .patch / git stash.\r\n> * Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\nAre you trying to rebase this PR to solve
merge conflicts? Please follow\r\nthe steps
describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n####
29 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/charts-plugin` |
`src/platform/plugins/shared/charts` |\r\n| `@kbn/data-plugin` |
`src/platform/plugins/shared/data` |\r\n|
`@kbn/event-annotation-listing-plugin`
|\r\n`src/platform/plugins/private/event_annotation_listing` |\r\n|
`@kbn/event-annotation-plugin`
|\r\n`src/platform/plugins/private/event_annotation` |\r\n|
`@kbn/expression-gauge-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_gauge`
|\r\n| `@kbn/expression-heatmap-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_heatmap`
|\r\n| `@kbn/expression-legacy-metric-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_legacy_metric`\r\n|\r\n|
`@kbn/expression-metric-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_metric`
|\r\n| `@kbn/expression-partition-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_partition_vis`\r\n|\r\n|
`@kbn/expression-tagcloud-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_tagcloud`
|\r\n| `@kbn/expression-xy-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_xy`
|\r\n| `@kbn/expressions-plugin` |
`src/platform/plugins/shared/expressions`\r\n|\r\n| `@kbn/graph-plugin`
| `x-pack/platform/plugins/private/graph` |\r\n| `@kbn/lens-plugin` |
`x-pack/platform/plugins/shared/lens` |\r\n|
`@kbn/unified-search-plugin`
|\r\n`src/platform/plugins/shared/unified_search` |\r\n|
`@kbn/url-forwarding-plugin`
|\r\n`src/platform/plugins/private/url_forwarding` |\r\n|
`@kbn/vis-default-editor-plugin`
|\r\n`src/platform/plugins/private/vis_default_editor` |\r\n|
`@kbn/vis-type-gauge-plugin`
|\r\n`src/platform/plugins/private/vis_types/gauge` |\r\n|
`@kbn/vis-type-heatmap-plugin`
|\r\n`src/platform/plugins/private/vis_types/heatmap` |\r\n|
`@kbn/vis-type-metric-plugin`
|\r\n`src/platform/plugins/private/vis_types/metric` |\r\n|
`@kbn/vis-type-pie-plugin`
|\r\n`src/platform/plugins/private/vis_types/pie` |\r\n|
`@kbn/vis-type-table-plugin`
|\r\n`src/platform/plugins/private/vis_types/table` |\r\n|
`@kbn/vis-type-tagcloud-plugin`
|\r\n`src/platform/plugins/private/vis_types/tagcloud` |\r\n|
`@kbn/vis-type-timelion-plugin`
|\r\n`src/platform/plugins/private/vis_types/timelion` |\r\n|
`@kbn/vis-type-timeseries-plugin`
|\r\n`src/platform/plugins/shared/vis_types/timeseries` |\r\n|
`@kbn/vis-type-vega-plugin`
|\r\n`src/platform/plugins/private/vis_types/vega` |\r\n|
`@kbn/vis-type-vislib-plugin`
|\r\n`src/platform/plugins/private/vis_types/vislib` |\r\n|
`@kbn/vis-type-xy-plugin`
|\r\n`src/platform/plugins/private/vis_types/xy` |\r\n|
`@kbn/visualizations-plugin`
|\r\n`src/platform/plugins/shared/visualizations`
|\r\n\r\n\r\n\r\n\r\n#### 18 packages(s) are going to be
relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n|
`@kbn/calculate-width-from-char-count`
|\r\n`src/platform/packages/shared/kbn-calculate-width-from-char-count`
|\r\n| `@kbn/chart-expressions-common`
|\r\n`src/platform/packages/shared/chart-expressions-common` |\r\n|
`@kbn/chart-icons` | `src/platform/packages/shared/kbn-chart-icons`
|\r\n| `@kbn/coloring` | `src/platform/packages/shared/kbn-coloring`
|\r\n| `@kbn/data-service` |
`src/platform/packages/shared/kbn-data-service`\r\n|\r\n|
`@kbn/dom-drag-drop`
|\r\n`src/platform/packages/shared/kbn-dom-drag-drop` |\r\n|
`@kbn/event-annotation-common`
|\r\n`src/platform/packages/shared/kbn-event-annotation-common` |\r\n|
`@kbn/event-annotation-components`
|\r\n`src/platform/packages/shared/kbn-event-annotation-components`
|\r\n| `@kbn/interpreter` |
`src/platform/packages/shared/kbn-interpreter` |\r\n|
`@kbn/lens-formula-docs`
|\r\n`src/platform/packages/private/kbn-lens-formula-docs` |\r\n|
`@kbn/managed-content-badge`
|\r\n`src/platform/packages/private/kbn-managed-content-badge` |\r\n|
`@kbn/random-sampling`
|\r\n`x-pack/platform/packages/private/kbn-random-sampling` |\r\n|
`@kbn/sort-predicates`
|\r\n`src/platform/packages/shared/kbn-sort-predicates` |\r\n|
`@kbn/timelion-grammar`
|\r\n`src/platform/packages/private/kbn-timelion-grammar` |\r\n|
`@kbn/tinymath` | `src/platform/packages/private/kbn-tinymath` |\r\n|
`@kbn/transpose-utils`
|\r\n`src/platform/packages/private/kbn-transpose-utils` |\r\n|
`@kbn/visualization-ui-components`
|\r\n`src/platform/packages/shared/kbn-visualization-ui-components`
|\r\n| `@kbn/visualization-utils`
|\r\n`src/platform/packages/shared/kbn-visualization-utils`
|\r\n\r\n\r\n<details >\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.eslintignore\r\n./.eslintrc.js\r\n./.github/paths-labeller.yml\r\n./.i18nrc.json\r\n./docs/developer/architecture/core/elasticsearch-service.asciidoc\r\n./docs/developer/architecture/development-visualize-index.asciidoc\r\n./docs/developer/best-practices/index.asciidoc\r\n./docs/developer/plugin-list.asciidoc\r\n./examples/search_examples/public/plugin.ts\r\n./package.json\r\n./packages/kbn-docs-utils/src/build_api_declarations/extract_import_refs.test.ts\r\n./packages/kbn-docs-utils/src/utils.ts\r\n./packages/kbn-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts\r\n./packages/kbn-repo-source-classifier/src/repo_source_classifier.ts\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/build/tasks/package_json/find_used_dependencies.ts\r\n./src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js\r\n./src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt\r\n./src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js\r\n./src/dev/code_coverage/ingest_coverage/integration_tests/mocks/jest-combined/bulk-data.json\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/private/kbn-lens-formula-docs/jest.config.js\r\n./src/platform/packages/private/kbn-managed-content-badge/jest.config.js\r\n./src/platform/packages/private/kbn-repo-packages/package-map.json\r\n./src/platform/packages/private/kbn-tinymath/README.md\r\n./src/platform/packages/private/kbn-tinymath/jest.config.js\r\n./src/platform/packages/private/kbn-transpose-utils/jest.config.js\r\n./src/platform/packages/shared/chart-expressions-common/jest.config.js\r\n./src/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js\r\n./src/platform/packages/shared/kbn-chart-icons/jest.config.js\r\n./src/platform/packages/shared/kbn-coloring/jest.config.js\r\n./src/platform/packages/shared/kbn-data-service/jest.config.js\r\n./src/platform/packages/shared/kbn-dom-drag-drop/jest.config.js\r\n./src/platform/packages/shared/kbn-event-annotation-common/jest.config.js\r\n./src/platform/packages/shared/kbn-event-annotation-components/jest.config.js\r\n./src/platform/packages/shared/kbn-interpreter/jest.config.js\r\n./src/platform/packages/shared/kbn-sort-predicates/jest.config.js\r\n./src/platform/packages/shared/kbn-visualization-ui-components/jest.config.js\r\n./src/platform/packages/shared/kbn-visualization-utils/jest.config.js\r\n./src/platform/plugins/private/event_annotation/jest.config.js\r\n./src/platform/plugins/private/event_annotation_listing/jest.config.js\r\n./src/platform/plugins/private/url_forwarding/jest.config.js\r\n./src/platform/plugins/private/vis_default_editor/jest.config.js\r\n./src/platform/plugins/private/vis_types/gauge/jest.config.js\r\n./src/platform/plugins/private/vis_types/heatmap/jest.config.js\r\n./src/platform/plugins/private/vis_types/metric/jest.config.js\r\n./src/platform/plugins/private/vis_types/pie/jest.config.js\r\n./src/platform/plugins/private/vis_types/table/jest.config.js\r\n./src/platform/plugins/private/vis_types/tagcloud/jest.config.js\r\n./src/platform/plugins/private/vis_types/timelion/jest.config.js\r\n./src/platform/plugins/private/vis_types/vega/jest.config.js\r\n./src/platform/plugins/private/vis_types/vislib/jest.config.js\r\n./src/platform/plugins/private/vis_types/xy/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js\r\n./src/platform/plugins/shared/charts/jest.config.js\r\n./src/platform/plugins/shared/custom_integrations/jest.config.js\r\n./src/platform/plugins/shared/data/jest.config.js\r\n./src/platform/plugins/shared/expressions/README.asciidoc\r\n./src/platform/plugins/shared/expressions/jest.config.js\r\n./src/platform/plugins/shared/unified_search/jest.config.js\r\n./src/platform/plugins/shared/vis_types/timeseries/jest.config.js\r\n./src/platform/plugins/shared/visualizations/jest.config.js\r\n./src/plugins/vis_types/timeseries/public/application/components/aggs/math.js\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/private/kbn-random-sampling/jest.config.js\r\n./x-pack/platform/packages/private/ml/date_utils/src/date_utils.ts\r\n./x-pack/platform/plugins/private/graph/README.md\r\n./x-pack/platform/plugins/private/graph/jest.config.js\r\n./x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/index.ts\r\n./x-pack/platform/plugins/private/watcher/public/legacy/time_buckets.js\r\n./x-pack/platform/plugins/shared/cases/public/components/markdown_editor/use_plugins.ts\r\n./x-pack/platform/plugins/shared/lens/jest.config.js\r\n./x-pack/platform/plugins/shared/lens/readme.md\r\n./x-pack/platform/plugins/shared/lens/server/embeddable/make_lens_embeddable_factory.ts\r\n./x-pack/platform/plugins/shared/lens/server/migrations/saved_object_migrations.ts\r\n./x-pack/platform/plugins/shared/lens/tsconfig.type_check.json\r\n./x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js\r\n./x-pack/platform/plugins/shared/ml/public/application/services/field_format_service.ts\r\n./x-pack/platform/plugins/shared/ml/public/application/util/chart_utils.js\r\n./x-pack/solutions/observability/plugins/observability/common/utils/get_inspect_response.ts\r\n./x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/autocomplete/index.mock.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-list-utils/src/helpers/index.ts\r\n./x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.ts\r\n./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/constants.ts\r\n./x-pack/solutions/security/plugins/timelines/public/hooks/use_app_toasts.ts\r\n./yarn.lock\r\n.github/CODEOWNERS\r\n```\r\n\r\n</details><details
>\r\n<summary>Updated relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/private/kbn-lens-formula-docs/jest.config.js:12\r\nsrc/platform/packages/private/kbn-lens-formula-docs/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-managed-content-badge/jest.config.js:12\r\nsrc/platform/packages/private/kbn-managed-content-badge/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-timelion-grammar/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-tinymath/jest.config.js:12\r\nsrc/platform/packages/private/kbn-tinymath/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-transpose-utils/jest.config.js:12\r\nsrc/platform/packages/private/kbn-transpose-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/chart-expressions-common/jest.config.js:12\r\nsrc/platform/packages/shared/chart-expressions-common/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-calculate-width-from-char-count/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-chart-icons/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-chart-icons/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-coloring/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-coloring/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-data-service/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-data-service/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-dom-drag-drop/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-dom-drag-drop/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-event-annotation-common/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-event-annotation-common/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-event-annotation-components/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-event-annotation-components/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-interpreter/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-interpreter/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-sort-predicates/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-sort-predicates/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-visualization-ui-components/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-visualization-ui-components/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-visualization-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-visualization-utils/tsconfig.json:2\r\nsrc/platform/plugins/private/event_annotation/jest.config.js:12\r\nsrc/platform/plugins/private/event_annotation/tsconfig.json:2\r\nsrc/platform/plugins/private/event_annotation_listing/jest.config.js:12\r\nsrc/platform/plugins/private/event_annotation_listing/tsconfig.json:2\r\nsrc/platform/plugins/private/url_forwarding/jest.config.js:12\r\nsrc/platform/plugins/private/url_forwarding/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_default_editor/README.md:8\r\nsrc/platform/plugins/private/vis_default_editor/jest.config.js:12\r\nsrc/platform/plugins/private/vis_default_editor/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/gauge/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/gauge/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/heatmap/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/heatmap/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/metric/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/metric/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/pie/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/pie/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/table/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/table/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/tagcloud/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/tagcloud/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/timelion/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/timelion/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/vega/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/vega/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/vislib/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/vislib/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/xy/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/xy/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_gauge/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_heatmap/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook/main.js:17\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/.storybook/main.js:17\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_partition_vis/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_tagcloud/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_xy/tsconfig.json:2\r\nsrc/platform/plugins/shared/charts/jest.config.js:12\r\nsrc/platform/plugins/shared/charts/tsconfig.json:2\r\nsrc/platform/plugins/shared/data/jest.config.js:12\r\nsrc/platform/plugins/shared/data/tsconfig.json:13\r\nsrc/platform/plugins/shared/data/tsconfig.json:2\r\nsrc/platform/plugins/shared/expressions/jest.config.js:12\r\nsrc/platform/plugins/shared/expressions/tsconfig.json:2\r\nsrc/platform/plugins/shared/unified_search/jest.config.js:12\r\nsrc/platform/plugins/shared/unified_search/tsconfig.json:2\r\nsrc/platform/plugins/shared/vis_types/timeseries/jest.config.js:12\r\nsrc/platform/plugins/shared/vis_types/timeseries/tsconfig.json:11\r\nsrc/platform/plugins/shared/vis_types/timeseries/tsconfig.json:2\r\nsrc/platform/plugins/shared/visualizations/jest.config.js:12\r\nsrc/platform/plugins/shared/visualizations/tsconfig.json:2\r\nsrc/platform/plugins/shared/visualizations/tsconfig.json:6\r\nx-pack/platform/packages/private/kbn-random-sampling/jest.config.js:10\r\nx-pack/platform/packages/private/kbn-random-sampling/tsconfig.json:2\r\nx-pack/platform/plugins/private/graph/jest.config.js:10\r\nx-pack/platform/plugins/private/graph/tsconfig.json:13\r\nx-pack/platform/plugins/private/graph/tsconfig.json:3\r\nx-pack/platform/plugins/shared/lens/jest.config.js:10\r\nx-pack/platform/plugins/shared/lens/tsconfig.json:2\r\nx-pack/platform/plugins/shared/lens/tsconfig.json:6\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a382d35dd28ae43053d28bcc74778118a92b9540","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Team:Visualizations","release_note:skip","v9.0.0","backport:prev-minor","plugin
groups"],"number":202754,"url":"https://github.com/elastic/kibana/pull/202754","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/kibana-visualizations` (#202754)\n\n## Summary\r\n\r\nThis PR
aims at relocating some of the Kibana modules (plugins and\r\npackages)
into a new folder structure, according to the _Sustainable\r\nKibana
Architecture_ initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you
to:\r\n> * Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> * This PR has been
auto-generated.\r\n> * Any manual contributions will be lost if the
'relocate' script is\r\nre-run.\r\n> * Try to obtain the missing reviews
/ approvals before applying manual\r\nfixes, and/or keep your changes in
a .patch / git stash.\r\n> * Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\nAre you trying to rebase this PR to solve
merge conflicts? Please follow\r\nthe steps
describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n####
29 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/charts-plugin` |
`src/platform/plugins/shared/charts` |\r\n| `@kbn/data-plugin` |
`src/platform/plugins/shared/data` |\r\n|
`@kbn/event-annotation-listing-plugin`
|\r\n`src/platform/plugins/private/event_annotation_listing` |\r\n|
`@kbn/event-annotation-plugin`
|\r\n`src/platform/plugins/private/event_annotation` |\r\n|
`@kbn/expression-gauge-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_gauge`
|\r\n| `@kbn/expression-heatmap-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_heatmap`
|\r\n| `@kbn/expression-legacy-metric-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_legacy_metric`\r\n|\r\n|
`@kbn/expression-metric-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_metric`
|\r\n| `@kbn/expression-partition-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_partition_vis`\r\n|\r\n|
`@kbn/expression-tagcloud-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_tagcloud`
|\r\n| `@kbn/expression-xy-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_xy`
|\r\n| `@kbn/expressions-plugin` |
`src/platform/plugins/shared/expressions`\r\n|\r\n| `@kbn/graph-plugin`
| `x-pack/platform/plugins/private/graph` |\r\n| `@kbn/lens-plugin` |
`x-pack/platform/plugins/shared/lens` |\r\n|
`@kbn/unified-search-plugin`
|\r\n`src/platform/plugins/shared/unified_search` |\r\n|
`@kbn/url-forwarding-plugin`
|\r\n`src/platform/plugins/private/url_forwarding` |\r\n|
`@kbn/vis-default-editor-plugin`
|\r\n`src/platform/plugins/private/vis_default_editor` |\r\n|
`@kbn/vis-type-gauge-plugin`
|\r\n`src/platform/plugins/private/vis_types/gauge` |\r\n|
`@kbn/vis-type-heatmap-plugin`
|\r\n`src/platform/plugins/private/vis_types/heatmap` |\r\n|
`@kbn/vis-type-metric-plugin`
|\r\n`src/platform/plugins/private/vis_types/metric` |\r\n|
`@kbn/vis-type-pie-plugin`
|\r\n`src/platform/plugins/private/vis_types/pie` |\r\n|
`@kbn/vis-type-table-plugin`
|\r\n`src/platform/plugins/private/vis_types/table` |\r\n|
`@kbn/vis-type-tagcloud-plugin`
|\r\n`src/platform/plugins/private/vis_types/tagcloud` |\r\n|
`@kbn/vis-type-timelion-plugin`
|\r\n`src/platform/plugins/private/vis_types/timelion` |\r\n|
`@kbn/vis-type-timeseries-plugin`
|\r\n`src/platform/plugins/shared/vis_types/timeseries` |\r\n|
`@kbn/vis-type-vega-plugin`
|\r\n`src/platform/plugins/private/vis_types/vega` |\r\n|
`@kbn/vis-type-vislib-plugin`
|\r\n`src/platform/plugins/private/vis_types/vislib` |\r\n|
`@kbn/vis-type-xy-plugin`
|\r\n`src/platform/plugins/private/vis_types/xy` |\r\n|
`@kbn/visualizations-plugin`
|\r\n`src/platform/plugins/shared/visualizations`
|\r\n\r\n\r\n\r\n\r\n#### 18 packages(s) are going to be
relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n|
`@kbn/calculate-width-from-char-count`
|\r\n`src/platform/packages/shared/kbn-calculate-width-from-char-count`
|\r\n| `@kbn/chart-expressions-common`
|\r\n`src/platform/packages/shared/chart-expressions-common` |\r\n|
`@kbn/chart-icons` | `src/platform/packages/shared/kbn-chart-icons`
|\r\n| `@kbn/coloring` | `src/platform/packages/shared/kbn-coloring`
|\r\n| `@kbn/data-service` |
`src/platform/packages/shared/kbn-data-service`\r\n|\r\n|
`@kbn/dom-drag-drop`
|\r\n`src/platform/packages/shared/kbn-dom-drag-drop` |\r\n|
`@kbn/event-annotation-common`
|\r\n`src/platform/packages/shared/kbn-event-annotation-common` |\r\n|
`@kbn/event-annotation-components`
|\r\n`src/platform/packages/shared/kbn-event-annotation-components`
|\r\n| `@kbn/interpreter` |
`src/platform/packages/shared/kbn-interpreter` |\r\n|
`@kbn/lens-formula-docs`
|\r\n`src/platform/packages/private/kbn-lens-formula-docs` |\r\n|
`@kbn/managed-content-badge`
|\r\n`src/platform/packages/private/kbn-managed-content-badge` |\r\n|
`@kbn/random-sampling`
|\r\n`x-pack/platform/packages/private/kbn-random-sampling` |\r\n|
`@kbn/sort-predicates`
|\r\n`src/platform/packages/shared/kbn-sort-predicates` |\r\n|
`@kbn/timelion-grammar`
|\r\n`src/platform/packages/private/kbn-timelion-grammar` |\r\n|
`@kbn/tinymath` | `src/platform/packages/private/kbn-tinymath` |\r\n|
`@kbn/transpose-utils`
|\r\n`src/platform/packages/private/kbn-transpose-utils` |\r\n|
`@kbn/visualization-ui-components`
|\r\n`src/platform/packages/shared/kbn-visualization-ui-components`
|\r\n| `@kbn/visualization-utils`
|\r\n`src/platform/packages/shared/kbn-visualization-utils`
|\r\n\r\n\r\n<details >\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.eslintignore\r\n./.eslintrc.js\r\n./.github/paths-labeller.yml\r\n./.i18nrc.json\r\n./docs/developer/architecture/core/elasticsearch-service.asciidoc\r\n./docs/developer/architecture/development-visualize-index.asciidoc\r\n./docs/developer/best-practices/index.asciidoc\r\n./docs/developer/plugin-list.asciidoc\r\n./examples/search_examples/public/plugin.ts\r\n./package.json\r\n./packages/kbn-docs-utils/src/build_api_declarations/extract_import_refs.test.ts\r\n./packages/kbn-docs-utils/src/utils.ts\r\n./packages/kbn-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts\r\n./packages/kbn-repo-source-classifier/src/repo_source_classifier.ts\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/build/tasks/package_json/find_used_dependencies.ts\r\n./src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js\r\n./src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt\r\n./src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js\r\n./src/dev/code_coverage/ingest_coverage/integration_tests/mocks/jest-combined/bulk-data.json\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/private/kbn-lens-formula-docs/jest.config.js\r\n./src/platform/packages/private/kbn-managed-content-badge/jest.config.js\r\n./src/platform/packages/private/kbn-repo-packages/package-map.json\r\n./src/platform/packages/private/kbn-tinymath/README.md\r\n./src/platform/packages/private/kbn-tinymath/jest.config.js\r\n./src/platform/packages/private/kbn-transpose-utils/jest.config.js\r\n./src/platform/packages/shared/chart-expressions-common/jest.config.js\r\n./src/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js\r\n./src/platform/packages/shared/kbn-chart-icons/jest.config.js\r\n./src/platform/packages/shared/kbn-coloring/jest.config.js\r\n./src/platform/packages/shared/kbn-data-service/jest.config.js\r\n./src/platform/packages/shared/kbn-dom-drag-drop/jest.config.js\r\n./src/platform/packages/shared/kbn-event-annotation-common/jest.config.js\r\n./src/platform/packages/shared/kbn-event-annotation-components/jest.config.js\r\n./src/platform/packages/shared/kbn-interpreter/jest.config.js\r\n./src/platform/packages/shared/kbn-sort-predicates/jest.config.js\r\n./src/platform/packages/shared/kbn-visualization-ui-components/jest.config.js\r\n./src/platform/packages/shared/kbn-visualization-utils/jest.config.js\r\n./src/platform/plugins/private/event_annotation/jest.config.js\r\n./src/platform/plugins/private/event_annotation_listing/jest.config.js\r\n./src/platform/plugins/private/url_forwarding/jest.config.js\r\n./src/platform/plugins/private/vis_default_editor/jest.config.js\r\n./src/platform/plugins/private/vis_types/gauge/jest.config.js\r\n./src/platform/plugins/private/vis_types/heatmap/jest.config.js\r\n./src/platform/plugins/private/vis_types/metric/jest.config.js\r\n./src/platform/plugins/private/vis_types/pie/jest.config.js\r\n./src/platform/plugins/private/vis_types/table/jest.config.js\r\n./src/platform/plugins/private/vis_types/tagcloud/jest.config.js\r\n./src/platform/plugins/private/vis_types/timelion/jest.config.js\r\n./src/platform/plugins/private/vis_types/vega/jest.config.js\r\n./src/platform/plugins/private/vis_types/vislib/jest.config.js\r\n./src/platform/plugins/private/vis_types/xy/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js\r\n./src/platform/plugins/shared/charts/jest.config.js\r\n./src/platform/plugins/shared/custom_integrations/jest.config.js\r\n./src/platform/plugins/shared/data/jest.config.js\r\n./src/platform/plugins/shared/expressions/README.asciidoc\r\n./src/platform/plugins/shared/expressions/jest.config.js\r\n./src/platform/plugins/shared/unified_search/jest.config.js\r\n./src/platform/plugins/shared/vis_types/timeseries/jest.config.js\r\n./src/platform/plugins/shared/visualizations/jest.config.js\r\n./src/plugins/vis_types/timeseries/public/application/components/aggs/math.js\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/private/kbn-random-sampling/jest.config.js\r\n./x-pack/platform/packages/private/ml/date_utils/src/date_utils.ts\r\n./x-pack/platform/plugins/private/graph/README.md\r\n./x-pack/platform/plugins/private/graph/jest.config.js\r\n./x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/index.ts\r\n./x-pack/platform/plugins/private/watcher/public/legacy/time_buckets.js\r\n./x-pack/platform/plugins/shared/cases/public/components/markdown_editor/use_plugins.ts\r\n./x-pack/platform/plugins/shared/lens/jest.config.js\r\n./x-pack/platform/plugins/shared/lens/readme.md\r\n./x-pack/platform/plugins/shared/lens/server/embeddable/make_lens_embeddable_factory.ts\r\n./x-pack/platform/plugins/shared/lens/server/migrations/saved_object_migrations.ts\r\n./x-pack/platform/plugins/shared/lens/tsconfig.type_check.json\r\n./x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js\r\n./x-pack/platform/plugins/shared/ml/public/application/services/field_format_service.ts\r\n./x-pack/platform/plugins/shared/ml/public/application/util/chart_utils.js\r\n./x-pack/solutions/observability/plugins/observability/common/utils/get_inspect_response.ts\r\n./x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/autocomplete/index.mock.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-list-utils/src/helpers/index.ts\r\n./x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.ts\r\n./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/constants.ts\r\n./x-pack/solutions/security/plugins/timelines/public/hooks/use_app_toasts.ts\r\n./yarn.lock\r\n.github/CODEOWNERS\r\n```\r\n\r\n</details><details
>\r\n<summary>Updated relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/private/kbn-lens-formula-docs/jest.config.js:12\r\nsrc/platform/packages/private/kbn-lens-formula-docs/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-managed-content-badge/jest.config.js:12\r\nsrc/platform/packages/private/kbn-managed-content-badge/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-timelion-grammar/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-tinymath/jest.config.js:12\r\nsrc/platform/packages/private/kbn-tinymath/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-transpose-utils/jest.config.js:12\r\nsrc/platform/packages/private/kbn-transpose-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/chart-expressions-common/jest.config.js:12\r\nsrc/platform/packages/shared/chart-expressions-common/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-calculate-width-from-char-count/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-chart-icons/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-chart-icons/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-coloring/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-coloring/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-data-service/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-data-service/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-dom-drag-drop/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-dom-drag-drop/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-event-annotation-common/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-event-annotation-common/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-event-annotation-components/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-event-annotation-components/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-interpreter/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-interpreter/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-sort-predicates/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-sort-predicates/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-visualization-ui-components/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-visualization-ui-components/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-visualization-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-visualization-utils/tsconfig.json:2\r\nsrc/platform/plugins/private/event_annotation/jest.config.js:12\r\nsrc/platform/plugins/private/event_annotation/tsconfig.json:2\r\nsrc/platform/plugins/private/event_annotation_listing/jest.config.js:12\r\nsrc/platform/plugins/private/event_annotation_listing/tsconfig.json:2\r\nsrc/platform/plugins/private/url_forwarding/jest.config.js:12\r\nsrc/platform/plugins/private/url_forwarding/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_default_editor/README.md:8\r\nsrc/platform/plugins/private/vis_default_editor/jest.config.js:12\r\nsrc/platform/plugins/private/vis_default_editor/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/gauge/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/gauge/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/heatmap/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/heatmap/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/metric/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/metric/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/pie/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/pie/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/table/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/table/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/tagcloud/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/tagcloud/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/timelion/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/timelion/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/vega/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/vega/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/vislib/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/vislib/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/xy/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/xy/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_gauge/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_heatmap/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook/main.js:17\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/.storybook/main.js:17\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_partition_vis/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_tagcloud/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_xy/tsconfig.json:2\r\nsrc/platform/plugins/shared/charts/jest.config.js:12\r\nsrc/platform/plugins/shared/charts/tsconfig.json:2\r\nsrc/platform/plugins/shared/data/jest.config.js:12\r\nsrc/platform/plugins/shared/data/tsconfig.json:13\r\nsrc/platform/plugins/shared/data/tsconfig.json:2\r\nsrc/platform/plugins/shared/expressions/jest.config.js:12\r\nsrc/platform/plugins/shared/expressions/tsconfig.json:2\r\nsrc/platform/plugins/shared/unified_search/jest.config.js:12\r\nsrc/platform/plugins/shared/unified_search/tsconfig.json:2\r\nsrc/platform/plugins/shared/vis_types/timeseries/jest.config.js:12\r\nsrc/platform/plugins/shared/vis_types/timeseries/tsconfig.json:11\r\nsrc/platform/plugins/shared/vis_types/timeseries/tsconfig.json:2\r\nsrc/platform/plugins/shared/visualizations/jest.config.js:12\r\nsrc/platform/plugins/shared/visualizations/tsconfig.json:2\r\nsrc/platform/plugins/shared/visualizations/tsconfig.json:6\r\nx-pack/platform/packages/private/kbn-random-sampling/jest.config.js:10\r\nx-pack/platform/packages/private/kbn-random-sampling/tsconfig.json:2\r\nx-pack/platform/plugins/private/graph/jest.config.js:10\r\nx-pack/platform/plugins/private/graph/tsconfig.json:13\r\nx-pack/platform/plugins/private/graph/tsconfig.json:3\r\nx-pack/platform/plugins/shared/lens/jest.config.js:10\r\nx-pack/platform/plugins/shared/lens/tsconfig.json:2\r\nx-pack/platform/plugins/shared/lens/tsconfig.json:6\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a382d35dd28ae43053d28bcc74778118a92b9540"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202754","number":202754,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/kibana-visualizations` (#202754)\n\n## Summary\r\n\r\nThis PR
aims at relocating some of the Kibana modules (plugins and\r\npackages)
into a new folder structure, according to the _Sustainable\r\nKibana
Architecture_ initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you
to:\r\n> * Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> * This PR has been
auto-generated.\r\n> * Any manual contributions will be lost if the
'relocate' script is\r\nre-run.\r\n> * Try to obtain the missing reviews
/ approvals before applying manual\r\nfixes, and/or keep your changes in
a .patch / git stash.\r\n> * Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\nAre you trying to rebase this PR to solve
merge conflicts? Please follow\r\nthe steps
describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n####
29 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/charts-plugin` |
`src/platform/plugins/shared/charts` |\r\n| `@kbn/data-plugin` |
`src/platform/plugins/shared/data` |\r\n|
`@kbn/event-annotation-listing-plugin`
|\r\n`src/platform/plugins/private/event_annotation_listing` |\r\n|
`@kbn/event-annotation-plugin`
|\r\n`src/platform/plugins/private/event_annotation` |\r\n|
`@kbn/expression-gauge-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_gauge`
|\r\n| `@kbn/expression-heatmap-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_heatmap`
|\r\n| `@kbn/expression-legacy-metric-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_legacy_metric`\r\n|\r\n|
`@kbn/expression-metric-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_metric`
|\r\n| `@kbn/expression-partition-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_partition_vis`\r\n|\r\n|
`@kbn/expression-tagcloud-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_tagcloud`
|\r\n| `@kbn/expression-xy-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_xy`
|\r\n| `@kbn/expressions-plugin` |
`src/platform/plugins/shared/expressions`\r\n|\r\n| `@kbn/graph-plugin`
| `x-pack/platform/plugins/private/graph` |\r\n| `@kbn/lens-plugin` |
`x-pack/platform/plugins/shared/lens` |\r\n|
`@kbn/unified-search-plugin`
|\r\n`src/platform/plugins/shared/unified_search` |\r\n|
`@kbn/url-forwarding-plugin`
|\r\n`src/platform/plugins/private/url_forwarding` |\r\n|
`@kbn/vis-default-editor-plugin`
|\r\n`src/platform/plugins/private/vis_default_editor` |\r\n|
`@kbn/vis-type-gauge-plugin`
|\r\n`src/platform/plugins/private/vis_types/gauge` |\r\n|
`@kbn/vis-type-heatmap-plugin`
|\r\n`src/platform/plugins/private/vis_types/heatmap` |\r\n|
`@kbn/vis-type-metric-plugin`
|\r\n`src/platform/plugins/private/vis_types/metric` |\r\n|
`@kbn/vis-type-pie-plugin`
|\r\n`src/platform/plugins/private/vis_types/pie` |\r\n|
`@kbn/vis-type-table-plugin`
|\r\n`src/platform/plugins/private/vis_types/table` |\r\n|
`@kbn/vis-type-tagcloud-plugin`
|\r\n`src/platform/plugins/private/vis_types/tagcloud` |\r\n|
`@kbn/vis-type-timelion-plugin`
|\r\n`src/platform/plugins/private/vis_types/timelion` |\r\n|
`@kbn/vis-type-timeseries-plugin`
|\r\n`src/platform/plugins/shared/vis_types/timeseries` |\r\n|
`@kbn/vis-type-vega-plugin`
|\r\n`src/platform/plugins/private/vis_types/vega` |\r\n|
`@kbn/vis-type-vislib-plugin`
|\r\n`src/platform/plugins/private/vis_types/vislib` |\r\n|
`@kbn/vis-type-xy-plugin`
|\r\n`src/platform/plugins/private/vis_types/xy` |\r\n|
`@kbn/visualizations-plugin`
|\r\n`src/platform/plugins/shared/visualizations`
|\r\n\r\n\r\n\r\n\r\n#### 18 packages(s) are going to be
relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n|
`@kbn/calculate-width-from-char-count`
|\r\n`src/platform/packages/shared/kbn-calculate-width-from-char-count`
|\r\n| `@kbn/chart-expressions-common`
|\r\n`src/platform/packages/shared/chart-expressions-common` |\r\n|
`@kbn/chart-icons` | `src/platform/packages/shared/kbn-chart-icons`
|\r\n| `@kbn/coloring` | `src/platform/packages/shared/kbn-coloring`
|\r\n| `@kbn/data-service` |
`src/platform/packages/shared/kbn-data-service`\r\n|\r\n|
`@kbn/dom-drag-drop`
|\r\n`src/platform/packages/shared/kbn-dom-drag-drop` |\r\n|
`@kbn/event-annotation-common`
|\r\n`src/platform/packages/shared/kbn-event-annotation-common` |\r\n|
`@kbn/event-annotation-components`
|\r\n`src/platform/packages/shared/kbn-event-annotation-components`
|\r\n| `@kbn/interpreter` |
`src/platform/packages/shared/kbn-interpreter` |\r\n|
`@kbn/lens-formula-docs`
|\r\n`src/platform/packages/private/kbn-lens-formula-docs` |\r\n|
`@kbn/managed-content-badge`
|\r\n`src/platform/packages/private/kbn-managed-content-badge` |\r\n|
`@kbn/random-sampling`
|\r\n`x-pack/platform/packages/private/kbn-random-sampling` |\r\n|
`@kbn/sort-predicates`
|\r\n`src/platform/packages/shared/kbn-sort-predicates` |\r\n|
`@kbn/timelion-grammar`
|\r\n`src/platform/packages/private/kbn-timelion-grammar` |\r\n|
`@kbn/tinymath` | `src/platform/packages/private/kbn-tinymath` |\r\n|
`@kbn/transpose-utils`
|\r\n`src/platform/packages/private/kbn-transpose-utils` |\r\n|
`@kbn/visualization-ui-components`
|\r\n`src/platform/packages/shared/kbn-visualization-ui-components`
|\r\n| `@kbn/visualization-utils`
|\r\n`src/platform/packages/shared/kbn-visualization-utils`
|\r\n\r\n\r\n<details >\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.eslintignore\r\n./.eslintrc.js\r\n./.github/paths-labeller.yml\r\n./.i18nrc.json\r\n./docs/developer/architecture/core/elasticsearch-service.asciidoc\r\n./docs/developer/architecture/development-visualize-index.asciidoc\r\n./docs/developer/best-practices/index.asciidoc\r\n./docs/developer/plugin-list.asciidoc\r\n./examples/search_examples/public/plugin.ts\r\n./package.json\r\n./packages/kbn-docs-utils/src/build_api_declarations/extract_import_refs.test.ts\r\n./packages/kbn-docs-utils/src/utils.ts\r\n./packages/kbn-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts\r\n./packages/kbn-repo-source-classifier/src/repo_source_classifier.ts\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/build/tasks/package_json/find_used_dependencies.ts\r\n./src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js\r\n./src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt\r\n./src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js\r\n./src/dev/code_coverage/ingest_coverage/integration_tests/mocks/jest-combined/bulk-data.json\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/private/kbn-lens-formula-docs/jest.config.js\r\n./src/platform/packages/private/kbn-managed-content-badge/jest.config.js\r\n./src/platform/packages/private/kbn-repo-packages/package-map.json\r\n./src/platform/packages/private/kbn-tinymath/README.md\r\n./src/platform/packages/private/kbn-tinymath/jest.config.js\r\n./src/platform/packages/private/kbn-transpose-utils/jest.config.js\r\n./src/platform/packages/shared/chart-expressions-common/jest.config.js\r\n./src/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js\r\n./src/platform/packages/shared/kbn-chart-icons/jest.config.js\r\n./src/platform/packages/shared/kbn-coloring/jest.config.js\r\n./src/platform/packages/shared/kbn-data-service/jest.config.js\r\n./src/platform/packages/shared/kbn-dom-drag-drop/jest.config.js\r\n./src/platform/packages/shared/kbn-event-annotation-common/jest.config.js\r\n./src/platform/packages/shared/kbn-event-annotation-components/jest.config.js\r\n./src/platform/packages/shared/kbn-interpreter/jest.config.js\r\n./src/platform/packages/shared/kbn-sort-predicates/jest.config.js\r\n./src/platform/packages/shared/kbn-visualization-ui-components/jest.config.js\r\n./src/platform/packages/shared/kbn-visualization-utils/jest.config.js\r\n./src/platform/plugins/private/event_annotation/jest.config.js\r\n./src/platform/plugins/private/event_annotation_listing/jest.config.js\r\n./src/platform/plugins/private/url_forwarding/jest.config.js\r\n./src/platform/plugins/private/vis_default_editor/jest.config.js\r\n./src/platform/plugins/private/vis_types/gauge/jest.config.js\r\n./src/platform/plugins/private/vis_types/heatmap/jest.config.js\r\n./src/platform/plugins/private/vis_types/metric/jest.config.js\r\n./src/platform/plugins/private/vis_types/pie/jest.config.js\r\n./src/platform/plugins/private/vis_types/table/jest.config.js\r\n./src/platform/plugins/private/vis_types/tagcloud/jest.config.js\r\n./src/platform/plugins/private/vis_types/timelion/jest.config.js\r\n./src/platform/plugins/private/vis_types/vega/jest.config.js\r\n./src/platform/plugins/private/vis_types/vislib/jest.config.js\r\n./src/platform/plugins/private/vis_types/xy/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js\r\n./src/platform/plugins/shared/charts/jest.config.js\r\n./src/platform/plugins/shared/custom_integrations/jest.config.js\r\n./src/platform/plugins/shared/data/jest.config.js\r\n./src/platform/plugins/shared/expressions/README.asciidoc\r\n./src/platform/plugins/shared/expressions/jest.config.js\r\n./src/platform/plugins/shared/unified_search/jest.config.js\r\n./src/platform/plugins/shared/vis_types/timeseries/jest.config.js\r\n./src/platform/plugins/shared/visualizations/jest.config.js\r\n./src/plugins/vis_types/timeseries/public/application/components/aggs/math.js\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/private/kbn-random-sampling/jest.config.js\r\n./x-pack/platform/packages/private/ml/date_utils/src/date_utils.ts\r\n./x-pack/platform/plugins/private/graph/README.md\r\n./x-pack/platform/plugins/private/graph/jest.config.js\r\n./x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/index.ts\r\n./x-pack/platform/plugins/private/watcher/public/legacy/time_buckets.js\r\n./x-pack/platform/plugins/shared/cases/public/components/markdown_editor/use_plugins.ts\r\n./x-pack/platform/plugins/shared/lens/jest.config.js\r\n./x-pack/platform/plugins/shared/lens/readme.md\r\n./x-pack/platform/plugins/shared/lens/server/embeddable/make_lens_embeddable_factory.ts\r\n./x-pack/platform/plugins/shared/lens/server/migrations/saved_object_migrations.ts\r\n./x-pack/platform/plugins/shared/lens/tsconfig.type_check.json\r\n./x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js\r\n./x-pack/platform/plugins/shared/ml/public/application/services/field_format_service.ts\r\n./x-pack/platform/plugins/shared/ml/public/application/util/chart_utils.js\r\n./x-pack/solutions/observability/plugins/observability/common/utils/get_inspect_response.ts\r\n./x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/autocomplete/index.mock.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-list-utils/src/helpers/index.ts\r\n./x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.ts\r\n./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/constants.ts\r\n./x-pack/solutions/security/plugins/timelines/public/hooks/use_app_toasts.ts\r\n./yarn.lock\r\n.github/CODEOWNERS\r\n```\r\n\r\n</details><details
>\r\n<summary>Updated relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/private/kbn-lens-formula-docs/jest.config.js:12\r\nsrc/platform/packages/private/kbn-lens-formula-docs/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-managed-content-badge/jest.config.js:12\r\nsrc/platform/packages/private/kbn-managed-content-badge/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-timelion-grammar/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-tinymath/jest.config.js:12\r\nsrc/platform/packages/private/kbn-tinymath/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-transpose-utils/jest.config.js:12\r\nsrc/platform/packages/private/kbn-transpose-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/chart-expressions-common/jest.config.js:12\r\nsrc/platform/packages/shared/chart-expressions-common/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-calculate-width-from-char-count/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-chart-icons/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-chart-icons/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-coloring/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-coloring/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-data-service/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-data-service/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-dom-drag-drop/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-dom-drag-drop/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-event-annotation-common/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-event-annotation-common/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-event-annotation-components/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-event-annotation-components/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-interpreter/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-interpreter/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-sort-predicates/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-sort-predicates/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-visualization-ui-components/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-visualization-ui-components/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-visualization-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-visualization-utils/tsconfig.json:2\r\nsrc/platform/plugins/private/event_annotation/jest.config.js:12\r\nsrc/platform/plugins/private/event_annotation/tsconfig.json:2\r\nsrc/platform/plugins/private/event_annotation_listing/jest.config.js:12\r\nsrc/platform/plugins/private/event_annotation_listing/tsconfig.json:2\r\nsrc/platform/plugins/private/url_forwarding/jest.config.js:12\r\nsrc/platform/plugins/private/url_forwarding/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_default_editor/README.md:8\r\nsrc/platform/plugins/private/vis_default_editor/jest.config.js:12\r\nsrc/platform/plugins/private/vis_default_editor/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/gauge/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/gauge/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/heatmap/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/heatmap/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/metric/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/metric/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/pie/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/pie/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/table/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/table/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/tagcloud/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/tagcloud/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/timelion/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/timelion/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/vega/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/vega/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/vislib/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/vislib/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/xy/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/xy/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_gauge/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_heatmap/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook/main.js:17\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/.storybook/main.js:17\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_partition_vis/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_tagcloud/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_xy/tsconfig.json:2\r\nsrc/platform/plugins/shared/charts/jest.config.js:12\r\nsrc/platform/plugins/shared/charts/tsconfig.json:2\r\nsrc/platform/plugins/shared/data/jest.config.js:12\r\nsrc/platform/plugins/shared/data/tsconfig.json:13\r\nsrc/platform/plugins/shared/data/tsconfig.json:2\r\nsrc/platform/plugins/shared/expressions/jest.config.js:12\r\nsrc/platform/plugins/shared/expressions/tsconfig.json:2\r\nsrc/platform/plugins/shared/unified_search/jest.config.js:12\r\nsrc/platform/plugins/shared/unified_search/tsconfig.json:2\r\nsrc/platform/plugins/shared/vis_types/timeseries/jest.config.js:12\r\nsrc/platform/plugins/shared/vis_types/timeseries/tsconfig.json:11\r\nsrc/platform/plugins/shared/vis_types/timeseries/tsconfig.json:2\r\nsrc/platform/plugins/shared/visualizations/jest.config.js:12\r\nsrc/platform/plugins/shared/visualizations/tsconfig.json:2\r\nsrc/platform/plugins/shared/visualizations/tsconfig.json:6\r\nx-pack/platform/packages/private/kbn-random-sampling/jest.config.js:10\r\nx-pack/platform/packages/private/kbn-random-sampling/tsconfig.json:2\r\nx-pack/platform/plugins/private/graph/jest.config.js:10\r\nx-pack/platform/plugins/private/graph/tsconfig.json:13\r\nx-pack/platform/plugins/private/graph/tsconfig.json:3\r\nx-pack/platform/plugins/shared/lens/jest.config.js:10\r\nx-pack/platform/plugins/shared/lens/tsconfig.json:2\r\nx-pack/platform/plugins/shared/lens/tsconfig.json:6\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a382d35dd28ae43053d28bcc74778118a92b9540"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-13 10:53:37 +00:00
Dzmitry Lemechko
1c7e33a4c7
[8.x] [kbn-scout] initial package implementation (playwright-test POC) (#194006) (#204572)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[kbn-scout] initial package implementation (playwright-test POC)
(#194006)](https://github.com/elastic/kibana/pull/194006)

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

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

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2024-11-26T16:33:49Z","message":"[kbn-scout]
initial package implementation (playwright-test POC) (#194006)\n\n##
Summary\r\n\r\nThis PR introduces a new package, **kbn-scout**, designed
to streamline\r\nthe setup and execution of Playwright tests for Kibana.
The `kbn-scout`\r\npackage consolidates server management and testing
capabilities by\r\nwrapping both the Kibana/Elasticsearch server
launcher and the\r\nPlaywright test runner. It includes:\r\n\r\n- Test
and worker-scoped fixtures for reliable setup across test suites\r\n-
Page objects combined into the fixture for Kibana UI interactions\r\n-
Configurations for seamless test execution in both local and
CI\r\nenvironments (`Cloud` execution is out of scope)\r\n- This package
aims to simplify test setup and enhance modularity,\r\nmaking it easier
to create, run, and maintain deployment-agnostic tests,\r\nthat are
located in the plugin they actually test.\r\n\r\nTests example is
available in `x-pack/plugins/discover_enhanced` plugin\r\nunder
`ui_tests` folder\r\n\r\nHow to run:\r\n1) As a single script (servers +
tests): \r\n```\r\nnode scripts/scout_test.js
--config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts
--serverless=es\r\n```\r\n\r\n2) Start servers first\r\n```\r\nnode
scripts/scout_start_servers.js --serverless=es\r\n```\r\nthen run
tests:\r\n```\r\nnpx playwright test
--config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts\r\n```\r\nif
you have Playwright plugin in IDEA, just use it to run tests
files\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"310d922f137ed5c1117e2660ffa8af618810f350","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","v9.0.0","test:scout"],"number":194006,"url":"https://github.com/elastic/kibana/pull/194006","mergeCommit":{"message":"[kbn-scout]
initial package implementation (playwright-test POC) (#194006)\n\n##
Summary\r\n\r\nThis PR introduces a new package, **kbn-scout**, designed
to streamline\r\nthe setup and execution of Playwright tests for Kibana.
The `kbn-scout`\r\npackage consolidates server management and testing
capabilities by\r\nwrapping both the Kibana/Elasticsearch server
launcher and the\r\nPlaywright test runner. It includes:\r\n\r\n- Test
and worker-scoped fixtures for reliable setup across test suites\r\n-
Page objects combined into the fixture for Kibana UI interactions\r\n-
Configurations for seamless test execution in both local and
CI\r\nenvironments (`Cloud` execution is out of scope)\r\n- This package
aims to simplify test setup and enhance modularity,\r\nmaking it easier
to create, run, and maintain deployment-agnostic tests,\r\nthat are
located in the plugin they actually test.\r\n\r\nTests example is
available in `x-pack/plugins/discover_enhanced` plugin\r\nunder
`ui_tests` folder\r\n\r\nHow to run:\r\n1) As a single script (servers +
tests): \r\n```\r\nnode scripts/scout_test.js
--config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts
--serverless=es\r\n```\r\n\r\n2) Start servers first\r\n```\r\nnode
scripts/scout_start_servers.js --serverless=es\r\n```\r\nthen run
tests:\r\n```\r\nnpx playwright test
--config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts\r\n```\r\nif
you have Playwright plugin in IDEA, just use it to run tests
files\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"310d922f137ed5c1117e2660ffa8af618810f350"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194006","number":194006,"mergeCommit":{"message":"[kbn-scout]
initial package implementation (playwright-test POC) (#194006)\n\n##
Summary\r\n\r\nThis PR introduces a new package, **kbn-scout**, designed
to streamline\r\nthe setup and execution of Playwright tests for Kibana.
The `kbn-scout`\r\npackage consolidates server management and testing
capabilities by\r\nwrapping both the Kibana/Elasticsearch server
launcher and the\r\nPlaywright test runner. It includes:\r\n\r\n- Test
and worker-scoped fixtures for reliable setup across test suites\r\n-
Page objects combined into the fixture for Kibana UI interactions\r\n-
Configurations for seamless test execution in both local and
CI\r\nenvironments (`Cloud` execution is out of scope)\r\n- This package
aims to simplify test setup and enhance modularity,\r\nmaking it easier
to create, run, and maintain deployment-agnostic tests,\r\nthat are
located in the plugin they actually test.\r\n\r\nTests example is
available in `x-pack/plugins/discover_enhanced` plugin\r\nunder
`ui_tests` folder\r\n\r\nHow to run:\r\n1) As a single script (servers +
tests): \r\n```\r\nnode scripts/scout_test.js
--config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts
--serverless=es\r\n```\r\n\r\n2) Start servers first\r\n```\r\nnode
scripts/scout_start_servers.js --serverless=es\r\n```\r\nthen run
tests:\r\n```\r\nnpx playwright test
--config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts\r\n```\r\nif
you have Playwright plugin in IDEA, just use it to run tests
files\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"310d922f137ed5c1117e2660ffa8af618810f350"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-17 12:33:36 -07:00
Kibana Machine
f7952acce8
[8.x] Sustainable Kibana Architecture: Fix group inference logic: add missing packages folders (#201758) (#203432)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Fix group inference logic: add
missing packages folders
(#201758)](https://github.com/elastic/kibana/pull/201758)

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

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-11-26T17:42:17Z","message":"Sustainable
Kibana Architecture: Fix group inference logic: add missing packages
folders (#201758)\n\n## Summary\r\n\r\nAfter relocating modules (plugins
and packages) to their new folders,\r\naccording to the _Sustainable
Kibana Architecture_ design, their groups\r\nwill be inferred based on
their path.\r\n\r\nThe logic was taking into account plugins' folders,
but not packages'\r\nfolders. This PR fixes
that.","sha":"81993a10b91f72d2647285a66e811e6ac14eb11b","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor"],"title":"Sustainable
Kibana Architecture: Fix group inference logic: add missing packages
folders","number":201758,"url":"https://github.com/elastic/kibana/pull/201758","mergeCommit":{"message":"Sustainable
Kibana Architecture: Fix group inference logic: add missing packages
folders (#201758)\n\n## Summary\r\n\r\nAfter relocating modules (plugins
and packages) to their new folders,\r\naccording to the _Sustainable
Kibana Architecture_ design, their groups\r\nwill be inferred based on
their path.\r\n\r\nThe logic was taking into account plugins' folders,
but not packages'\r\nfolders. This PR fixes
that.","sha":"81993a10b91f72d2647285a66e811e6ac14eb11b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201758","number":201758,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Fix group inference logic: add missing packages
folders (#201758)\n\n## Summary\r\n\r\nAfter relocating modules (plugins
and packages) to their new folders,\r\naccording to the _Sustainable
Kibana Architecture_ design, their groups\r\nwill be inferred based on
their path.\r\n\r\nThe logic was taking into account plugins' folders,
but not packages'\r\nfolders. This PR fixes
that.","sha":"81993a10b91f72d2647285a66e811e6ac14eb11b"}}]}] BACKPORT-->

Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co>
2024-12-09 09:46:35 -06:00
Gerard Soldevila
58c8aff91c
[8.x] Sustainable Kibana Architecture: Categorise straightforward packages (#199630) (#201340)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Categorise `straightforward`
packages (#199630)](https://github.com/elastic/kibana/pull/199630)

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

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-11-22T09:33:25Z","message":"Sustainable
Kibana Architecture: Categorise `straightforward` packages
(#199630)\n\n## Summary\r\n\r\nThis PR is part of the Kibana Sustainable
Architecture effort.\r\n\r\nThe goal is to start categorising Kibana
packages into _generic\r\nplatform_ (`group: \"platform\"`) vs
_solution-specific_.\r\n\r\n```\r\ngroup?: 'search' | 'security' |
'observability' | 'platform'\r\nvisibility?: 'private' |
'shared'\r\n```\r\nUncategorised modules are considered to be `group:
'common', visibility:\r\n'shared'` by default.\r\n\r\nWe want to prevent
code from solution A to depend on code from solution\r\nB.\r\nThus, the
rules are pretty simple:\r\n\r\n* Modules can only depend on:\r\n *
Modules in the same group\r\n * OR modules with 'shared' visibility\r\n*
Modules in `'observability', 'security', 'search'` groups
are\r\nmandatorily `visibility: \"private\"`.\r\n\r\nLong term, the goal
is to re-organise packages into dedicated
folders,\r\ne.g.:\r\n\r\n```\r\nx-pack/platform/plugins/private\r\nx-pack/observability/packages\r\n```\r\n\r\nFor
this first wave, we have categorised packages that
seem\r\n\"straightforward\":\r\n* Any packages that have:\r\n * at least
one dependant module\r\n * all dependants belong to the same group\r\n*
Categorise all Core packages:\r\n * `@kbn/core-...-internal` =>
_platform/private_\r\n * everything else => _platform/shared_\r\n*
Categorise as _platform/shared_ those packages that:\r\n * Have at least
one dependant in the _platform_ group.\r\n * Don't have any `devOnly:
true` dependants.\r\n\r\n### What we ask from you, as CODEOWNERS of the
_package manifests_, is\r\nthat you confirm that the categorisation is
correct:\r\n\r\n* `group: \"platform\", visibility: \"private\"` if it's
a package that\r\nshould only be used from platform code, not from any
solution code. It\r\nwill be loaded systematically in all serverless
flavors, but solution\r\nplugins and packages won't be able to `import`
from it.\r\n* `group: \"platform\", visibility: \"shared\"` if it's a
package that can\r\nbe consumed by both platform and solutions code. It
will be loaded\r\nsystematically in all serverless flavors, and anybody
can import / use\r\ncode from it.\r\n* `group: \"observability\" |
\"security\" | \"search\", visibility:\r\n\"private\"` if it's a package
that is intented to be used exclusively\r\nfrom a given solution. It
won't be accessible nor loaded from other\r\nsolutions nor platform
code.\r\n\r\nPlease refer
to\r\n[#kibana-sustainable-architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nfor
any related questions.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b24fdf5d3f6b7454a4edcedb8141b82f571e1d74","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services"],"number":199630,"url":"https://github.com/elastic/kibana/pull/199630","mergeCommit":{"message":"Sustainable
Kibana Architecture: Categorise `straightforward` packages
(#199630)\n\n## Summary\r\n\r\nThis PR is part of the Kibana Sustainable
Architecture effort.\r\n\r\nThe goal is to start categorising Kibana
packages into _generic\r\nplatform_ (`group: \"platform\"`) vs
_solution-specific_.\r\n\r\n```\r\ngroup?: 'search' | 'security' |
'observability' | 'platform'\r\nvisibility?: 'private' |
'shared'\r\n```\r\nUncategorised modules are considered to be `group:
'common', visibility:\r\n'shared'` by default.\r\n\r\nWe want to prevent
code from solution A to depend on code from solution\r\nB.\r\nThus, the
rules are pretty simple:\r\n\r\n* Modules can only depend on:\r\n *
Modules in the same group\r\n * OR modules with 'shared' visibility\r\n*
Modules in `'observability', 'security', 'search'` groups
are\r\nmandatorily `visibility: \"private\"`.\r\n\r\nLong term, the goal
is to re-organise packages into dedicated
folders,\r\ne.g.:\r\n\r\n```\r\nx-pack/platform/plugins/private\r\nx-pack/observability/packages\r\n```\r\n\r\nFor
this first wave, we have categorised packages that
seem\r\n\"straightforward\":\r\n* Any packages that have:\r\n * at least
one dependant module\r\n * all dependants belong to the same group\r\n*
Categorise all Core packages:\r\n * `@kbn/core-...-internal` =>
_platform/private_\r\n * everything else => _platform/shared_\r\n*
Categorise as _platform/shared_ those packages that:\r\n * Have at least
one dependant in the _platform_ group.\r\n * Don't have any `devOnly:
true` dependants.\r\n\r\n### What we ask from you, as CODEOWNERS of the
_package manifests_, is\r\nthat you confirm that the categorisation is
correct:\r\n\r\n* `group: \"platform\", visibility: \"private\"` if it's
a package that\r\nshould only be used from platform code, not from any
solution code. It\r\nwill be loaded systematically in all serverless
flavors, but solution\r\nplugins and packages won't be able to `import`
from it.\r\n* `group: \"platform\", visibility: \"shared\"` if it's a
package that can\r\nbe consumed by both platform and solutions code. It
will be loaded\r\nsystematically in all serverless flavors, and anybody
can import / use\r\ncode from it.\r\n* `group: \"observability\" |
\"security\" | \"search\", visibility:\r\n\"private\"` if it's a package
that is intented to be used exclusively\r\nfrom a given solution. It
won't be accessible nor loaded from other\r\nsolutions nor platform
code.\r\n\r\nPlease refer
to\r\n[#kibana-sustainable-architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nfor
any related questions.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b24fdf5d3f6b7454a4edcedb8141b82f571e1d74"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199630","number":199630,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Categorise `straightforward` packages
(#199630)\n\n## Summary\r\n\r\nThis PR is part of the Kibana Sustainable
Architecture effort.\r\n\r\nThe goal is to start categorising Kibana
packages into _generic\r\nplatform_ (`group: \"platform\"`) vs
_solution-specific_.\r\n\r\n```\r\ngroup?: 'search' | 'security' |
'observability' | 'platform'\r\nvisibility?: 'private' |
'shared'\r\n```\r\nUncategorised modules are considered to be `group:
'common', visibility:\r\n'shared'` by default.\r\n\r\nWe want to prevent
code from solution A to depend on code from solution\r\nB.\r\nThus, the
rules are pretty simple:\r\n\r\n* Modules can only depend on:\r\n *
Modules in the same group\r\n * OR modules with 'shared' visibility\r\n*
Modules in `'observability', 'security', 'search'` groups
are\r\nmandatorily `visibility: \"private\"`.\r\n\r\nLong term, the goal
is to re-organise packages into dedicated
folders,\r\ne.g.:\r\n\r\n```\r\nx-pack/platform/plugins/private\r\nx-pack/observability/packages\r\n```\r\n\r\nFor
this first wave, we have categorised packages that
seem\r\n\"straightforward\":\r\n* Any packages that have:\r\n * at least
one dependant module\r\n * all dependants belong to the same group\r\n*
Categorise all Core packages:\r\n * `@kbn/core-...-internal` =>
_platform/private_\r\n * everything else => _platform/shared_\r\n*
Categorise as _platform/shared_ those packages that:\r\n * Have at least
one dependant in the _platform_ group.\r\n * Don't have any `devOnly:
true` dependants.\r\n\r\n### What we ask from you, as CODEOWNERS of the
_package manifests_, is\r\nthat you confirm that the categorisation is
correct:\r\n\r\n* `group: \"platform\", visibility: \"private\"` if it's
a package that\r\nshould only be used from platform code, not from any
solution code. It\r\nwill be loaded systematically in all serverless
flavors, but solution\r\nplugins and packages won't be able to `import`
from it.\r\n* `group: \"platform\", visibility: \"shared\"` if it's a
package that can\r\nbe consumed by both platform and solutions code. It
will be loaded\r\nsystematically in all serverless flavors, and anybody
can import / use\r\ncode from it.\r\n* `group: \"observability\" |
\"security\" | \"search\", visibility:\r\n\"private\"` if it's a package
that is intented to be used exclusively\r\nfrom a given solution. It
won't be accessible nor loaded from other\r\nsolutions nor platform
code.\r\n\r\nPlease refer
to\r\n[#kibana-sustainable-architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nfor
any related questions.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b24fdf5d3f6b7454a4edcedb8141b82f571e1d74"}}]}]
BACKPORT-->
2024-11-22 09:47:23 -06:00
Gerard Soldevila
7b820130ab
[8.x] Add ESLINT constraints to detect inter-group dependencies (#194810) (#197670)
# Backport

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

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

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

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


![8xfggo](https://github.com/user-attachments/assets/f3d9312f-2ad3-4fa2-9daf-01e2b1ad6cac)

At the moment, our package generator creates all packages with the type
`shared-common`. This means that we cannot enforce boundaries between
server-side-only code and the browser, and vice-versa.

- [x] I started fixing `packages/core/*`
- [x] It took me to fixing `src/core/` type to be identified by the
`plugin` pattern (`public` and `server` directories) vs. a package
(either common, or single-scoped)
- [x] Unsurprisingly, this extended to packages importing core packages
hitting the boundaries eslint rules. And other packages importing the
latter.
- [x] Also a bunch of `common` logic that shouldn't be so _common_ 🙃 

### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-07-29 12:47:46 -06:00
Tiago Costa
3a040a170a
chore(NA): rename journeys folder into journeys_e2e inside x-pack/performance to correctly classify journey e2e files (#178340)
The source code classifier we currently have was incorrectly classifying
e2e journey files as `non-package` instead of `tests or mocks` as it was
not using the name standards we used for FTR files.

We could have created a `functional-tests` package for the performance
folder (which is what we want to do in the future) but because we don't
have the feature to create ownerless packages it would not be easy to
find a given owner for that folder.

As such I'm just opting for a second solution which is applying the same
name standards to this journeys folder as we have for FTR and changing a
little the classifier to recognise it.

This should fix the problem found at
https://github.com/elastic/kibana/pull/178017.

Co-authored-by: Alex Szabo <alex.szabo@elastic.co>
2024-03-14 21:15:57 +00:00
Tiago Costa
a17e307dc8
fix(NA): source classifier to indentify xml as static files (#164109)
This PR fixes a bug in the source classifier as it is currently not
identifying xml as a static file.

As part of this I've also identified a TODO in the source classifier
related with the evaluating order.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-17 00:53:59 +01:00
Spencer
1b85815402
[packages] migrate all plugins to packages (#148130)
Fixes https://github.com/elastic/kibana/issues/149344

This PR migrates all plugins to packages automatically. It does this
using `node scripts/lint_packages` to automatically migrate
`kibana.json` files to `kibana.jsonc` files. By doing this automatically
we can simplify many build and testing procedures to only support
packages, and not both "packages" and "synthetic packages" (basically
pointers to plugins).

The majority of changes are in operations related code, so we'll be
having operations review this before marking it ready for review. The
vast majority of the code owners are simply pinged because we deleted
all `kibana.json` files and replaced them with `kibana.jsonc` files, so
we plan on leaving the PR ready-for-review for about 24 hours before
merging (after feature freeze), assuming we don't have any blockers
(especially from @elastic/kibana-core since there are a few core
specific changes, though the majority were handled in #149370).

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-02-08 21:06:50 -06:00
Spencer
376bed5d16
implement "plugin" package type (#149370)
This PR updates the core discovery logic to support loading plugins from
packages. This logic is additive, so that the existing plugins in the
repo and third-party plugins can continue to be loaded via the existing
mechanism, but with https://github.com/elastic/kibana/pull/148130 we
will be automatically migrating all plugins in the repo to packages,
which will use this logic.

The logic is already in-use in that PR, and was developed there, but
extracted here for easier review.

The logic is relatively simple, where a list of packages in the repo are
attached to the core `Env` and then filtered by core before converting
all plugin packages to `PluginWrapper`. The `PluginWrapper` still
exposes the plugin manifest to the rest of the code, and it is used in
many places, so rather than making changes to the `PluginWrapper` I'm
faking a legacy plugin manifest with the plugin package manifest.

@elastic/kibana-core: I'm going to need some help identifying what we
need to get test coverage for. This is a pretty simple addition to the
core IMO, and if it didn't work then nothing would work, so I'm pretty
confident in it, but would still appreciate your feedback.
2023-01-30 10:47:53 -07:00
Tiago Costa
ebd6a4ec8e
fix(NA): @kbn/cli-dev-mode nonPackageMatcher patterns (#148971)
This PR fixes the pattern matchers for `nonPackageMatcher` into our new
watcher logic as well as correctly classifies all the files found inside
the `screenshotting plugin`
2023-01-16 16:56:36 +00:00
Spencer
99013bdab8
switch out chokidar for @parcel/watcher in dev cli (#148924)
After the recent changes to limit the dev-cli watcher to relevant
packages, the watcher started logging tons of unnecessary changes, and
in some cases breaking based on the state of the repo. I have seen this
happen with Chokidar before, and I'm not convinced we'll be able to fix
it, so instead I decided to swap it out with `@parcel/watcher`, which is
a conceptually simpler implementation that automatically batches changes
and watches an entire directory, rather than tons of unique
directories/files.

This new implementation is conceptually simpler, and because of the
design of the `@parcel/watcher` module I was pushed to reuse the
`RepoSourceClassifier` to determine if we should restart the server
based on a specific change. This means we now have a single source of
truth for test files and the like (the classifier will tell us if a file
is a test file, regardless of where it exists in the repo).

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-13 16:42:13 -07:00
Spencer
afb09ccf8a
Transpile packages on demand, validate all TS projects (#146212)
## Dearest Reviewers 👋 

I've been working on this branch with @mistic and @tylersmalley and
we're really confident in these changes. Additionally, this changes code
in nearly every package in the repo so we don't plan to wait for reviews
to get in before merging this. If you'd like to have a concern
addressed, please feel free to leave a review, but assuming that nobody
raises a blocker in the next 24 hours we plan to merge this EOD pacific
tomorrow, 12/22.

We'll be paying close attention to any issues this causes after merging
and work on getting those fixed ASAP. 🚀

---

The operations team is not confident that we'll have the time to achieve
what we originally set out to accomplish by moving to Bazel with the
time and resources we have available. We have also bought ourselves some
headroom with improvements to babel-register, optimizer caching, and
typescript project structure.

In order to make sure we deliver packages as quickly as possible (many
teams really want them), with a usable and familiar developer
experience, this PR removes Bazel for building packages in favor of
using the same JIT transpilation we use for plugins.

Additionally, packages now use `kbn_references` (again, just copying the
dx from plugins to packages).

Because of the complex relationships between packages/plugins and in
order to prepare ourselves for automatic dependency detection tools we
plan to use in the future, this PR also introduces a "TS Project Linter"
which will validate that every tsconfig.json file meets a few
requirements:

1. the chain of base config files extended by each config includes
`tsconfig.base.json` and not `tsconfig.json`
1. the `include` config is used, and not `files`
2. the `exclude` config includes `target/**/*`
3. the `outDir` compiler option is specified as `target/types`
1. none of these compiler options are specified: `declaration`,
`declarationMap`, `emitDeclarationOnly`, `skipLibCheck`, `target`,
`paths`

4. all references to other packages/plugins use their pkg id, ie:
	
	```js
    // valid
    {
      "kbn_references": ["@kbn/core"]
    }
    // not valid
    {
      "kbn_references": [{ "path": "../../../src/core/tsconfig.json" }]
    }
    ```

5. only packages/plugins which are imported somewhere in the ts code are
listed in `kbn_references`

This linter is not only validating all of the tsconfig.json files, but
it also will fix these config files to deal with just about any
violation that can be produced. Just run `node scripts/ts_project_linter
--fix` locally to apply these fixes, or let CI take care of
automatically fixing things and pushing the changes to your PR.

> **Example:** [`64e93e5`
(#146212)](64e93e5806)
When I merged main into my PR it included a change which removed the
`@kbn/core-injected-metadata-browser` package. After resolving the
conflicts I missed a few tsconfig files which included references to the
now removed package. The TS Project Linter identified that these
references were removed from the code and pushed a change to the PR to
remove them from the tsconfig.json files.

## No bazel? Does that mean no packages??
Nope! We're still doing packages but we're pretty sure now that we won't
be using Bazel to accomplish the 'distributed caching' and 'change-based
tasks' portions of the packages project.

This PR actually makes packages much easier to work with and will be
followed up with the bundling benefits described by the original
packages RFC. Then we'll work on documentation and advocacy for using
packages for any and all new code.

We're pretty confident that implementing distributed caching and
change-based tasks will be necessary in the future, but because of
recent improvements in the repo we think we can live without them for
**at least** a year.

## Wait, there are still BUILD.bazel files in the repo
Yes, there are still three webpack bundles which are built by Bazel: the
`@kbn/ui-shared-deps-npm` DLL, `@kbn/ui-shared-deps-src` externals, and
the `@kbn/monaco` workers. These three webpack bundles are still created
during bootstrap and remotely cached using bazel. The next phase of this
project is to figure out how to get the package bundling features
described in the RFC with the current optimizer, and we expect these
bundles to go away then. Until then any package that is used in those
three bundles still needs to have a BUILD.bazel file so that they can be
referenced by the remaining webpack builds.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-12-22 19:00:29 -06:00
Tiago Costa
e41569b4a6
fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463)
* chore(NA): remove overrides for rootDir on packages

* chore(NA): replace './target_types' with 'target_types' on packages

* chore(NA): removes stripInternal false configs

* chore(NA): remove unused strip internals
2022-11-03 01:04:55 +00:00
spalger
52f2b33a07
[auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
Spencer
b41a07f85a
[eslint/imports/no-boundary-crossing] don't allow package tests to import outside of packages (#142166) 2022-09-29 09:48:49 -07:00
Spencer
32491462a9
add kibana.jsonc files to existing packages (#138965)
* [packages] add kibana.jsonc files

* auto-migrate to kibana.jsonc

* support interactive pkg id selection too

* remove old codeowners entry

* skip codeowners generation when .github/CODEOWNERS doesn't exist

* fall back to format validation if user is offline

* update question style

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-08 13:31:57 -07:00
Tiago Costa
1cbf83f73c
chore(NA): remove src folder requirement from packages (part 2) (#138476)
* refact(NA): apply root_input_dir=src to each already created pkg

* refact(NA): update package generator

* fix(NA): correctly use rootDir

* fix(NA): use root input dir on latest introduced pkgs for jsts_transpiler macro

* chore(NA): merge with main

* chore(NA): first attempt to complete removal of src folder on a small group of pkgs

* Revert "chore(NA): first attempt to complete removal of src folder on a small group of pkgs"

This reverts commit b6f34b7530.

* chore(NA): remove src folder requirement from xpack pkgs

* chore(NA): remove src folder from analytics pkgs

* chore(NA): remove src folder from home pkgs

* chore(NA): remove src folder from shared_ux pkgs

* fix(NA): remove missing src folder inputs on sharedux pkg

* chore(NA): remove src folder from kbn-a* pkgs

* chore(NA): remove src folder from kbn-b* pkgs

* chore(NA): remove src folder from kbn-c* pkgs

* chore(NA): correct exclude pattern for each changed pkg

* chore(NA): remove src folder from kbn-y* pkgs

* chore(NA): remove src folder from kbn-e* pkgs

* chore(NA): remove src folder from kbn-f* and kbn-g* pkgs

* chore(NA): remove src folder from kbn-f* and kbn-g* pkgs

* chore(NA): remove src folder from kbn-h** pkgs

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Revert "chore(NA): remove src folder from kbn-h** pkgs"

This reverts commit dcdf72bcc1.

* fix(NA): grammar location

* test(NA): fix tests for kbn/config-schema

* test(NA): fix tests for kbn/config-schema

* chore(NA): multiple errors fixed

* chore(NA): remove kuery grammar fix

* fix(NA): @kbn/ace imports

* fix(NA): grammar location

* fix(NA): add missing files to tsconfigs

* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'

* chore(NA): complete tsconfigs

* Revert "chore(NA): complete tsconfigs"

This reverts commit f48c616864.

* chore(NA): remove src folder from kbn-core* pkgs

* chore(NA): remove src folder from kbn-u* pkgs

* chore(NA): remove src folder from kbn-ui-shared-deps* pkgs

* chore(NA): fix problems on core pkgs

* chore(NA): fix problems on core pkgs

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* fix(NA): shared_built_assets correct location'

* test(NA): update @kbn/optimizer integration snapshots

* chore(NA): remove src folder from kbn-t* p1 pkgs

* chore(NA): remove src folder from kbn-t* p2 pkgs

* chore(NA): update rootDir on utility types pkg

* chore(NA): include missing files on @kbn/test

* chore(NA): include missing files on @kbn/test

* fix(NA): new jest preset paths on @kbn/test

* chore(NA): fix eslint

* fix(NA): new jest preset paths on @kbn/test

* chore(NA): remove exclusion for mocks folde on @kbn/test

* fix(NA): several imports from target_node

* fix(NA): @kbn/test mocha and jest types clash

* chore(NA): remove src folder from kbn-storybook pkg

* chore(NA): remove src folder from kbn-stdio-dev-helpers pkg

* chore(NA): remove src folder from kbn-std pkg

* chore(NA): remove src folder from kbn-sort-pkg-json pkg

* chore(NA): remove src folder from kbn-some-dev-log and kbn-shared-ux-utility pkgs

* chore(NA): remove src folder from kbn-ux-storybook pkg

* chore(NA): remove src folder from kbn-shared-ux-services pkg

* chore(NA): remove src folder from kbn-shared-ux-components pkg

* chore(NA): remove src folder from kbn-shared-svg pkg

* chore(NA): remove src folder from kbn-server-http-tools pkg

* chore(NA): remove src folder from kbn-securitysolution-* pkgs

* chore(NA): remove src folder from kbn-r-* pkgs

* chore(NA): remove src folder from kbn-p* pkgs

* chore(NA): remove src folder from kbn-o* pkgs

* chore(NA): remove src folder from kbn-m* pkgs

* chore(NA): remove src folder from kbn-j,k,l* pkgs

* chore(NA): remove src folder from kbn-j,k,l* pkgs

* chore(NA): remove src folder from kbn-io-ts-utils* pkgs

* chore(NA): remove src folder from kbn-* pkgs except a few

* chore(NA): update @kbn/generate

* fix(NA): wrong exclusion on kbn-storybook

* chore(NA): remove src folder from kbn-monaco pkg

* chore(NA): remove src folder from kbn-interpreter pkg

* fix(NA): wrong exclusion on kbn-storybook

* chore(NA): update every require for target_*/src

* chore(NA): remover src folder from @kbn/handlebars

* fix(NA): license for @kbn/handlebars

* chore(NA): copy templates as part of the jsts_transpiler macro for @kbn/storybook

* chore(NA): update handlebars

* fix(NA): @kbn/plugin-generator import paths

* fix(NA): bundle sizes

* fix(NA): web bundle for @kbn/i18n-react

* Revert "fix(NA): bundle sizes"

This reverts commit 8aefe84fbc.

* Revert "Revert "fix(NA): bundle sizes""

This reverts commit e9d87d72a4.

* fix(NA): @kbn/docs-utils index.ts path expectation

* chore(NA): merge and solve conflicts with main

* fix(NA): relative import to index

* chore(NA): merge and solve conflicts with main

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* chore(NA): apply eslint fix

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-30 15:57:35 +01:00
Tiago Costa
df8b62aa98
chore(NA): allow packages to not have an obligation for a src folder on packages (#138038)
* refact(NA): apply root_input_dir=src to each already created pkg

* refact(NA): update package generator

* fix(NA): correctly use rootDir

* fix(NA): use root input dir on latest introduced pkgs for jsts_transpiler macro

* chore(NA): merge with main

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-08 15:54:05 +01:00
Spencer
bebec37f04
[eslint] fix and skip violations for cross-boundary imports (#136911) 2022-07-29 13:57:55 -05:00
Spencer
20f9cf9fd4
[eslint] add rule for validating cross-boundary imports (#137116) 2022-07-25 18:49:17 -05:00