From f1440787129c973fdae0a8fa419f8909029601ae Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Fri, 13 Dec 2024 19:46:30 +0100 Subject: [PATCH] Sustainable Kibana Architecture: Move modules owned by `@elastic/security-threat-hunting-explore` (#202852) ## Summary This PR aims at relocating some of the Kibana modules (plugins and packages) into a new folder structure, according to the _Sustainable Kibana Architecture_ initiative. > [!IMPORTANT] > * We kindly ask you to: > * Manually fix the errors in the error section below (if there are any). > * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the source code (Babel and Eslint config files), and update them appropriately. > * Manually review `.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that any CI pipeline customizations continue to be correctly applied after the changed path names > * Review all of the updated files, specially the `.ts` and `.js` files listed in the sections below, as some of them contain relative paths that have been updated. > * Think of potential impact of the move, including tooling and configuration files that can be pointing to the relocated modules. E.g.: > * customised eslint rules > * docs pointing to source code > [!NOTE] > * This PR has been auto-generated. > * Any manual contributions will be lost if the 'relocate' script is re-run. > * Try to obtain the missing reviews / approvals before applying manual fixes, and/or keep your changes in a .patch / git stash. > * Please use [#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E) Slack channel for feedback. #### 1 plugin(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/ecs-data-quality-dashboard-plugin` | `x-pack/solutions/security/plugins/ecs_data_quality_dashboard` | #### 8 packages(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/cell-actions` | `src/platform/packages/shared/kbn-cell-actions` | | `@kbn/ecs-data-quality-dashboard` | `x-pack/solutions/security/packages/ecs_data_quality_dashboard` | | `@kbn/security-solution-features` | `x-pack/solutions/security/packages/features` | | `@kbn/security-solution-navigation` | `x-pack/solutions/security/packages/navigation` | | `@kbn/security-solution-side-nav` | `x-pack/solutions/security/packages/side_nav` | | `@kbn/security-solution-storybook-config` | `x-pack/solutions/security/packages/storybook/config` | | `@kbn/security-solution-upselling` | `x-pack/solutions/security/packages/upselling` | | `@kbn/securitysolution-ecs` | `src/platform/packages/shared/kbn-securitysolution-ecs` |
Updated references ``` ./.eslintrc.js ./.i18nrc.json ./docs/developer/plugin-list.asciidoc ./package.json ./packages/kbn-repo-packages/package-map.json ./packages/kbn-ts-projects/config-paths.json ./src/dev/storybook/aliases.ts ./src/platform/packages/shared/kbn-cell-actions/jest.config.js ./src/platform/packages/shared/kbn-securitysolution-ecs/jest.config.js ./tsconfig.base.json ./x-pack/.i18nrc.json ./x-pack/solutions/security/plugins/ecs_data_quality_dashboard/jest.config.js ./yarn.lock ```
Updated relative paths ``` src/platform/packages/shared/kbn-cell-actions/jest.config.js:12 src/platform/packages/shared/kbn-cell-actions/tsconfig.json:2 src/platform/packages/shared/kbn-securitysolution-ecs/jest.config.js:12 src/platform/packages/shared/kbn-securitysolution-ecs/tsconfig.json:2 x-pack/solutions/security/plugins/ecs_data_quality_dashboard/jest.config.js:15 x-pack/solutions/security/plugins/ecs_data_quality_dashboard/tsconfig.json:12 x-pack/solutions/security/plugins/ecs_data_quality_dashboard/tsconfig.json:2 ```
--------- Co-authored-by: Karen Grigoryan --- .../pipelines/pull_request/pipeline.ts | 2 +- .eslintrc.js | 24 +++++++++---------- .github/CODEOWNERS | 6 ++--- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 6 ++--- src/dev/storybook/aliases.ts | 2 +- .../kbn-cell-actions/.storybook/main.js | 0 .../shared}/kbn-cell-actions/README.md | 0 .../shared}/kbn-cell-actions/actions/index.ts | 0 .../shared}/kbn-cell-actions/actions/utils.ts | 0 .../shared}/kbn-cell-actions/constants.ts | 0 .../shared}/kbn-cell-actions/index.ts | 0 .../shared}/kbn-cell-actions/jest.config.js | 4 ++-- .../shared}/kbn-cell-actions/kibana.jsonc | 0 .../shared}/kbn-cell-actions/package.json | 0 .../src/__stories__/cell_actions.stories.tsx | 0 .../copy_to_clipboard.test.ts | 0 .../copy_to_clipboard/copy_to_clipboard.ts | 0 .../src/actions/copy_to_clipboard/index.ts | 0 .../src/actions/factory.test.ts | 0 .../kbn-cell-actions/src/actions/factory.ts | 0 .../src/actions/filter/add_filter.ts | 0 .../src/actions/filter/create_filter.test.ts | 0 .../src/actions/filter/create_filter.ts | 0 .../src/actions/filter/filter_in.test.ts | 0 .../src/actions/filter/filter_in.ts | 0 .../src/actions/filter/filter_out.test.ts | 0 .../src/actions/filter/filter_out.ts | 0 .../src/actions/filter/index.ts | 0 .../kbn-cell-actions/src/actions/index.ts | 0 .../src/actions/translations.ts | 0 .../kbn-cell-actions/src/actions/types.ts | 0 .../src/actions/utils.test.ts | 0 .../kbn-cell-actions/src/actions/utils.ts | 0 .../src/components/cell_action_item.test.tsx | 0 .../src/components/cell_action_item.tsx | 0 .../src/components/cell_actions.test.tsx | 0 .../src/components/cell_actions.tsx | 0 .../components/extra_actions_button.test.tsx | 0 .../src/components/extra_actions_button.tsx | 0 .../components/extra_actions_popover.test.tsx | 0 .../src/components/extra_actions_popover.tsx | 0 .../components/hover_actions_popover.test.tsx | 0 .../src/components/hover_actions_popover.tsx | 0 .../kbn-cell-actions/src/components/index.tsx | 0 .../src/components/inline_actions.test.tsx | 0 .../src/components/inline_actions.tsx | 0 .../src/components/translations.ts | 0 .../shared}/kbn-cell-actions/src/constants.ts | 0 .../src/context/cell_actions_context.test.tsx | 0 .../src/context/cell_actions_context.tsx | 0 .../kbn-cell-actions/src/context/index.ts | 0 .../src/hooks/actions.test.ts | 0 .../kbn-cell-actions/src/hooks/actions.ts | 0 .../kbn-cell-actions/src/hooks/index.ts | 0 ...use_data_grid_column_cell_actions.test.tsx | 0 .../use_data_grid_column_cell_actions.tsx | 0 .../src/hooks/use_load_actions.test.tsx | 0 .../src/hooks/use_load_actions.ts | 0 .../kbn-cell-actions/src/mocks/helpers.ts | 0 .../shared}/kbn-cell-actions/src/types.ts | 0 .../shared}/kbn-cell-actions/tsconfig.json | 2 +- .../kbn-securitysolution-ecs/README.md | 0 .../shared}/kbn-securitysolution-ecs/index.ts | 0 .../kbn-securitysolution-ecs/jest.config.js | 4 ++-- .../kbn-securitysolution-ecs/kibana.jsonc | 0 .../kbn-securitysolution-ecs/package.json | 0 .../src/agent/index.ts | 0 .../src/auditd/index.ts | 0 .../src/cloud/index.ts | 0 .../src/destination/index.ts | 0 .../kbn-securitysolution-ecs/src/dll/index.ts | 0 .../kbn-securitysolution-ecs/src/dns/index.ts | 0 .../src/ecs_fields/extend_map.test.ts | 0 .../src/ecs_fields/extend_map.ts | 0 .../src/ecs_fields/index.ts | 0 .../src/endgame/index.ts | 0 .../src/event/index.ts | 0 .../src/file/index.ts | 0 .../kbn-securitysolution-ecs/src/geo/index.ts | 0 .../src/host/index.ts | 0 .../src/http/index.ts | 0 .../kbn-securitysolution-ecs/src/index.ts | 0 .../src/memory_protection/index.ts | 0 .../src/network/index.ts | 0 .../src/process/index.ts | 0 .../src/ransomware/index.ts | 0 .../src/registry/index.ts | 0 .../src/rule/index.ts | 0 .../src/signal/index.ts | 0 .../src/source/index.ts | 0 .../src/suricata/index.ts | 0 .../src/system/index.ts | 0 .../src/target_type/index.ts | 0 .../src/threat/index.ts | 0 .../kbn-securitysolution-ecs/src/tls/index.ts | 0 .../kbn-securitysolution-ecs/src/url/index.ts | 0 .../src/user/index.ts | 0 .../src/winlog/index.ts | 0 .../src/zeek/index.ts | 0 .../kbn-securitysolution-ecs/tsconfig.json | 2 +- tsconfig.base.json | 12 +++++----- x-pack/.i18nrc.json | 2 +- .../ecs_data_quality_dashboard/README.md | 0 .../common/constants.ts | 0 .../common/types.ts | 0 .../ecs_data_quality_dashboard/jest.config.js | 8 +++---- .../ecs_data_quality_dashboard/kibana.jsonc | 0 .../__mocks__/mock_metering_stats_index.ts | 0 .../__mocks__/mock_stats_green_index.ts | 0 .../__mocks__/mock_stats_yellow_index.ts | 0 .../server/__mocks__/request.ts | 0 .../server/__mocks__/request_context.ts | 0 .../server/__mocks__/response.ts | 0 .../server/__mocks__/server.ts | 0 .../server/__mocks__/test_adapters.ts | 0 .../helpers/get_authorized_index_names.ts | 0 .../server/helpers/get_available_indices.ts | 0 .../server/helpers/get_hits_total.test.ts | 0 .../server/helpers/get_hits_total.ts | 0 .../get_range_filtered_indices.test.ts | 0 .../helpers/get_range_filtered_indices.ts | 0 .../get_unallowed_field_requests.test.ts | 0 .../helpers/get_unallowed_field_requests.ts | 0 .../server/index.ts | 0 .../server/lib/build_response/index.ts | 0 .../data_stream/results_data_stream.test.ts | 0 .../lib/data_stream/results_data_stream.ts | 0 .../lib/data_stream/results_field_map.ts | 0 .../lib/fetch_available_indices.test.ts | 0 .../server/lib/fetch_available_indices.ts | 0 .../server/lib/fetch_ilm_explain.ts | 0 .../server/lib/fetch_mappings.ts | 0 .../server/lib/fetch_stats.ts | 0 .../server/lib/get_unallowed_field_values.ts | 0 .../server/lib/index.ts | 0 .../server/plugin.ts | 0 .../server/routes/get_ilm_explain.test.ts | 0 .../server/routes/get_ilm_explain.ts | 0 .../server/routes/get_index_mappings.test.ts | 0 .../server/routes/get_index_mappings.ts | 0 .../server/routes/get_index_stats.test.ts | 0 .../server/routes/get_index_stats.ts | 0 .../routes/get_unallowed_field_values.test.ts | 0 .../routes/get_unallowed_field_values.ts | 0 .../server/routes/index.ts | 0 .../routes/results/get_index_results.test.ts | 0 .../routes/results/get_index_results.ts | 0 .../results/get_index_results_latest.test.ts | 0 .../results/get_index_results_latest.ts | 0 .../server/routes/results/index.ts | 0 .../routes/results/post_index_results.test.ts | 0 .../routes/results/post_index_results.ts | 0 .../server/routes/results/privileges.test.ts | 0 .../server/routes/results/privileges.ts | 0 .../server/routes/results/results.mock.ts | 0 .../server/routes/results/translations.ts | 0 .../server/schemas/common.ts | 0 .../server/schemas/get_ilm_explain.ts | 0 .../server/schemas/get_index_mappings.ts | 0 .../server/schemas/get_index_stats.ts | 0 .../schemas/get_unallowed_field_values.ts | 0 .../server/schemas/result.ts | 0 .../utils/string_to_non_negative_number.ts | 0 .../server/translations.ts | 0 .../server/types.ts | 0 .../ecs_data_quality_dashboard/tsconfig.json | 4 ++-- yarn.lock | 6 ++--- 169 files changed, 44 insertions(+), 44 deletions(-) rename {packages => src/platform/packages/shared}/kbn-cell-actions/.storybook/main.js (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/actions/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/actions/utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/jest.config.js (83%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/__stories__/cell_actions.stories.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/copy_to_clipboard/copy_to_clipboard.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/copy_to_clipboard/copy_to_clipboard.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/copy_to_clipboard/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/factory.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/factory.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/filter/add_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/filter/create_filter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/filter/create_filter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/filter/filter_in.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/filter/filter_in.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/filter/filter_out.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/filter/filter_out.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/filter/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/translations.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/actions/utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/cell_action_item.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/cell_action_item.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/cell_actions.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/cell_actions.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/extra_actions_button.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/extra_actions_button.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/extra_actions_popover.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/extra_actions_popover.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/hover_actions_popover.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/hover_actions_popover.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/inline_actions.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/inline_actions.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/components/translations.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/context/cell_actions_context.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/context/cell_actions_context.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/context/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/hooks/actions.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/hooks/actions.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/hooks/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/hooks/use_data_grid_column_cell_actions.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/hooks/use_data_grid_column_cell_actions.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/hooks/use_load_actions.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/hooks/use_load_actions.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/mocks/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cell-actions/tsconfig.json (91%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/jest.config.js (82%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/agent/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/auditd/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/cloud/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/destination/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/dll/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/dns/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/ecs_fields/extend_map.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/ecs_fields/extend_map.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/ecs_fields/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/endgame/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/event/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/file/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/geo/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/host/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/http/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/memory_protection/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/network/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/process/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/ransomware/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/registry/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/rule/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/signal/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/source/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/suricata/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/system/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/target_type/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/threat/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/tls/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/url/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/user/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/winlog/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/src/zeek/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-securitysolution-ecs/tsconfig.json (78%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/README.md (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/common/constants.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/common/types.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/jest.config.js (53%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/kibana.jsonc (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_metering_stats_index.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_stats_green_index.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_stats_yellow_index.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/__mocks__/request.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/__mocks__/request_context.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/__mocks__/response.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/__mocks__/server.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/__mocks__/test_adapters.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/helpers/get_authorized_index_names.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/helpers/get_available_indices.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/helpers/get_hits_total.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/helpers/get_hits_total.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/helpers/get_range_filtered_indices.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/helpers/get_range_filtered_indices.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/helpers/get_unallowed_field_requests.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/helpers/get_unallowed_field_requests.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/lib/build_response/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_data_stream.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_data_stream.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_field_map.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/lib/fetch_available_indices.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/lib/fetch_available_indices.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/lib/fetch_ilm_explain.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/lib/fetch_mappings.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/lib/fetch_stats.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/lib/get_unallowed_field_values.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/lib/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/plugin.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/get_ilm_explain.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/get_ilm_explain.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/get_index_mappings.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/get_index_mappings.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/get_index_stats.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/get_index_stats.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results_latest.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results_latest.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/results/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/results/post_index_results.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/results/post_index_results.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/results/privileges.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/results/privileges.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/results/results.mock.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/routes/results/translations.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/schemas/common.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/schemas/get_ilm_explain.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/schemas/get_index_mappings.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/schemas/get_index_stats.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/schemas/get_unallowed_field_values.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/schemas/result.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/schemas/utils/string_to_non_negative_number.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/translations.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/server/types.ts (100%) rename x-pack/{ => solutions/security}/plugins/ecs_data_quality_dashboard/tsconfig.json (90%) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index ffd8d4fea23d4..0f015a98c76e7 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -298,7 +298,7 @@ const getPipeline = (filename: string, removeSteps = true) => { /^packages\/kbn-safer-lodash-set/, /^packages\/kbn-search-types/, /^packages\/kbn-securitysolution-.*/, - /^packages\/kbn-securitysolution-ecs/, + /^src\/platform\/packages\/shared\/kbn-securitysolution-ecs/, /^packages\/kbn-securitysolution-io-ts-alerting-types/, /^packages\/kbn-securitysolution-io-ts-list-types/, /^packages\/kbn-securitysolution-list-hooks/, diff --git a/.eslintrc.js b/.eslintrc.js index 3803a6d17c1d9..dd397193cf425 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1098,7 +1098,7 @@ module.exports = { { // front end and common typescript and javascript files only files: [ - 'x-pack/plugins/ecs_data_quality_dashboard/common/**/*.{js,mjs,ts,tsx}', + 'x-pack/solutions/security/plugins/ecs_data_quality_dashboard/common/**/*.{js,mjs,ts,tsx}', 'x-pack/solutions/security/plugins/elastic_assistant/common/**/*.{js,mjs,ts,tsx}', 'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}', 'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{js,mjs,ts,tsx}', @@ -1113,7 +1113,7 @@ module.exports = { 'x-pack/solutions/security/plugins/timelines/common/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/cases/public/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/cases/common/**/*.{js,mjs,ts,tsx}', - 'packages/kbn-cell-actions/**/*.{js,mjs,ts,tsx}', + 'src/platform/packages/shared/kbn-cell-actions/**/*.{js,mjs,ts,tsx}', ], rules: { 'import/no-nodejs-modules': 'error', @@ -1134,7 +1134,7 @@ module.exports = { // We use this section to add rules in which we do not want to apply to test files. // This should be a very small set as most linter rules are useful for tests as well. files: [ - 'x-pack/plugins/ecs_data_quality_dashboard/**/*.{ts,tsx}', + 'x-pack/solutions/security/plugins/ecs_data_quality_dashboard/**/*.{ts,tsx}', 'x-pack/solutions/security/plugins/elastic_assistant/**/*.{ts,tsx}', 'x-pack/platform/plugins/shared/integration_assistant/**/*.{ts,tsx}', 'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{ts,tsx}', @@ -1146,10 +1146,10 @@ module.exports = { 'x-pack/plugins/security_solution_serverless/**/*.{ts,tsx}', 'x-pack/solutions/security/plugins/timelines/**/*.{ts,tsx}', 'x-pack/plugins/cases/**/*.{ts,tsx}', - 'packages/kbn-cell-actions/**/*.{js,mjs,ts,tsx}', + 'src/platform/packages/shared/kbn-cell-actions/**/*.{js,mjs,ts,tsx}', ], excludedFiles: [ - 'x-pack/plugins/ecs_data_quality_dashboard/**/*.{test,mock,test_helper}.{ts,tsx}', + 'x-pack/solutions/security/plugins/ecs_data_quality_dashboard/**/*.{test,mock,test_helper}.{ts,tsx}', 'x-pack/solutions/security/plugins/elastic_assistant/**/*.{test,mock,test_helper}.{ts,tsx}', 'x-pack/platform/plugins/shared/integration_assistant/**/*.{test,mock,test_helper}.{ts,tsx}', 'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{test,mock,test_helper}.{ts,tsx}', @@ -1161,7 +1161,7 @@ module.exports = { 'x-pack/plugins/security_solution_serverless/**/*.{test,mock,test_helper}.{ts,tsx}', 'x-pack/solutions/security/plugins/timelines/**/*.{test,mock,test_helper}.{ts,tsx}', 'x-pack/plugins/cases/**/*.{test,mock,test_helper}.{ts,tsx}', - 'packages/kbn-cell-actions/**/*.{test,mock,test_helper}.{ts,tsx}', + 'src/platform/packages/shared/kbn-cell-actions/**/*.{test,mock,test_helper}.{ts,tsx}', ], rules: { '@typescript-eslint/no-non-null-assertion': 'error', @@ -1170,7 +1170,7 @@ module.exports = { { // typescript only for front and back end files: [ - 'x-pack/plugins/ecs_data_quality_dashboard/**/*.{ts,tsx}', + 'x-pack/solutions/security/plugins/ecs_data_quality_dashboard/**/*.{ts,tsx}', 'x-pack/solutions/security/plugins/elastic_assistant/**/*.{ts,tsx}', 'x-pack/platform/plugins/shared/integration_assistant/**/*.{ts,tsx}', 'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{ts,tsx}', @@ -1182,7 +1182,7 @@ module.exports = { 'x-pack/plugins/security_solution_serverless/**/*.{ts,tsx}', 'x-pack/solutions/security/plugins/timelines/**/*.{ts,tsx}', 'x-pack/plugins/cases/**/*.{ts,tsx}', - 'packages/kbn-cell-actions/**/*.{ts,tsx}', + 'src/platform/packages/shared/kbn-cell-actions/**/*.{ts,tsx}', ], rules: { '@typescript-eslint/no-this-alias': 'error', @@ -1204,7 +1204,7 @@ module.exports = { { // typescript and javascript for front and back end files: [ - 'x-pack/plugins/ecs_data_quality_dashboard/**/*.{js,mjs,ts,tsx}', + 'x-pack/solutions/security/plugins/ecs_data_quality_dashboard/**/*.{js,mjs,ts,tsx}', 'x-pack/solutions/security/plugins/elastic_assistant/**/*.{js,mjs,ts,tsx}', 'x-pack/platform/plugins/shared/integration_assistant/**/*.{js,mjs,ts,tsx}', 'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}', @@ -1217,7 +1217,7 @@ module.exports = { 'x-pack/solutions/security/plugins/timelines/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/cases/**/*.{js,mjs,ts,tsx}', 'x-pack/solutions/security/packages/data-stream-adapter/**/*.{js,mjs,ts,tsx}', - 'packages/kbn-cell-actions/**/*.{js,mjs,ts,tsx}', + 'src/platform/packages/shared/kbn-cell-actions/**/*.{js,mjs,ts,tsx}', ], plugins: ['eslint-plugin-node', 'react'], env: { @@ -1310,14 +1310,14 @@ module.exports = { { files: [ 'x-pack/plugins/cases/**/*.{js,mjs,ts,tsx}', - 'x-pack/plugins/ecs_data_quality_dashboard/**/*.{js,mjs,ts,tsx}', + 'x-pack/solutions/security/plugins/ecs_data_quality_dashboard/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/security_solution/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/security_solution_ess/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/security_solution_serverless/**/*.{js,mjs,ts,tsx}', 'x-pack/solutions/security/packages/data-stream-adapter/**/*.{js,mjs,ts,tsx}', 'x-pack/solutions/security/packages/features/**/*.{js,mjs,ts,tsx}', 'x-pack/solutions/security/packages/navigation/**/*.{js,mjs,ts,tsx}', - 'packages/kbn-cell-actions/**/*.{js,mjs,ts,tsx}', + 'src/platform/packages/shared/kbn-cell-actions/**/*.{js,mjs,ts,tsx}', ], rules: { '@typescript-eslint/consistent-type-imports': 'error', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 57d3b7d86f18f..e6d9571a8fa82 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -297,7 +297,6 @@ packages/kbn-calculate-width-from-char-count @elastic/kibana-visualizations packages/kbn-capture-oas-snapshot-cli @elastic/kibana-core packages/kbn-cases-components @elastic/response-ops packages/kbn-cbor @elastic/kibana-operations -packages/kbn-cell-actions @elastic/security-threat-hunting-explore packages/kbn-chart-icons @elastic/kibana-visualizations packages/kbn-check-mappings-update-cli @elastic/kibana-core packages/kbn-check-prod-native-modules-cli @elastic/kibana-operations @@ -457,7 +456,6 @@ packages/kbn-search-response-warnings @elastic/kibana-data-discovery packages/kbn-search-types @elastic/kibana-data-discovery packages/kbn-security-hardening @elastic/kibana-security packages/kbn-securitysolution-autocomplete @elastic/security-detection-engine -packages/kbn-securitysolution-ecs @elastic/security-threat-hunting-explore packages/kbn-securitysolution-endpoint-exceptions-common @elastic/security-detection-engine packages/kbn-securitysolution-es-utils @elastic/security-detection-engine packages/kbn-securitysolution-exception-list-components @elastic/security-detection-engine @@ -604,6 +602,7 @@ src/platform/packages/shared/deeplinks/management @elastic/kibana-management src/platform/packages/shared/deeplinks/ml @elastic/ml-ui src/platform/packages/shared/deeplinks/observability @elastic/obs-ux-management-team src/platform/packages/shared/kbn-avc-banner @elastic/security-defend-workflows +src/platform/packages/shared/kbn-cell-actions @elastic/security-threat-hunting-explore src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql @@ -616,6 +615,7 @@ src/platform/packages/shared/kbn-management/settings/field_definition @elastic/k src/platform/packages/shared/kbn-management/settings/types @elastic/kibana-management src/platform/packages/shared/kbn-management/settings/utilities @elastic/kibana-management src/platform/packages/shared/kbn-osquery-io-ts-types @elastic/security-asset-management +src/platform/packages/shared/kbn-securitysolution-ecs @elastic/security-threat-hunting-explore src/platform/packages/shared/kbn-server-route-repository @elastic/obs-knowledge-team src/platform/packages/shared/kbn-server-route-repository-client @elastic/obs-knowledge-team src/platform/packages/shared/kbn-server-route-repository-utils @elastic/obs-knowledge-team @@ -897,7 +897,6 @@ x-pack/plugins/dashboard_enhanced @elastic/kibana-presentation x-pack/plugins/data_quality @elastic/obs-ux-logs-team x-pack/plugins/discover_enhanced @elastic/kibana-data-discovery x-pack/plugins/drilldowns/url_drilldown @elastic/appex-sharedux -x-pack/plugins/ecs_data_quality_dashboard @elastic/security-threat-hunting-explore x-pack/plugins/embeddable_enhanced @elastic/kibana-presentation x-pack/plugins/encrypted_saved_objects @elastic/kibana-security x-pack/plugins/enterprise_search @elastic/search-kibana @@ -998,6 +997,7 @@ x-pack/solutions/security/packages/navigation @elastic/security-threat-hunting-e x-pack/solutions/security/packages/side_nav @elastic/security-threat-hunting-explore x-pack/solutions/security/packages/storybook/config @elastic/security-threat-hunting-explore x-pack/solutions/security/packages/upselling @elastic/security-threat-hunting-explore +x-pack/solutions/security/plugins/ecs_data_quality_dashboard @elastic/security-threat-hunting-explore x-pack/solutions/security/plugins/elastic_assistant @elastic/security-generative-ai x-pack/solutions/security/plugins/threat_intelligence @elastic/security-threat-hunting-investigations x-pack/solutions/security/plugins/timelines @elastic/security-threat-hunting-investigations diff --git a/.i18nrc.json b/.i18nrc.json index 7b69e234bbe62..1ef582708b2cd 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -11,7 +11,7 @@ "bfetch": "src/plugins/bfetch", "bfetchError": "packages/kbn-bfetch-error", "cases": ["packages/kbn-cases-components"], - "cellActions": "packages/kbn-cell-actions", + "cellActions": "src/platform/packages/shared/kbn-cell-actions", "charts": "src/plugins/charts", "console": "src/platform/plugins/shared/console", "contentManagement": "packages/content-management", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 9d4f5f9753c5d..101dcdec07810 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -553,7 +553,7 @@ Plugin server-side only. Plugin has three main functions: |Contains the enhancements to the OSS discover app. -|{kib-repo}blob/{branch}/x-pack/plugins/ecs_data_quality_dashboard/README.md[ecsDataQualityDashboard] +|{kib-repo}blob/{branch}/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/README.md[ecsDataQualityDashboard] |This plugin implements (server) APIs used to render the content of the Data Quality dashboard. diff --git a/package.json b/package.json index 00244748d7323..4691b93b7589a 100644 --- a/package.json +++ b/package.json @@ -205,7 +205,7 @@ "@kbn/cases-components": "link:packages/kbn-cases-components", "@kbn/cases-plugin": "link:x-pack/plugins/cases", "@kbn/cbor": "link:packages/kbn-cbor", - "@kbn/cell-actions": "link:packages/kbn-cell-actions", + "@kbn/cell-actions": "link:src/platform/packages/shared/kbn-cell-actions", "@kbn/chart-expressions-common": "link:src/plugins/chart_expressions/common", "@kbn/chart-icons": "link:packages/kbn-chart-icons", "@kbn/charts-plugin": "link:src/plugins/charts", @@ -464,7 +464,7 @@ "@kbn/dom-drag-drop": "link:packages/kbn-dom-drag-drop", "@kbn/ebt-tools": "link:packages/kbn-ebt-tools", "@kbn/ecs-data-quality-dashboard": "link:x-pack/solutions/security/packages/ecs_data_quality_dashboard", - "@kbn/ecs-data-quality-dashboard-plugin": "link:x-pack/plugins/ecs_data_quality_dashboard", + "@kbn/ecs-data-quality-dashboard-plugin": "link:x-pack/solutions/security/plugins/ecs_data_quality_dashboard", "@kbn/elastic-agent-utils": "link:packages/kbn-elastic-agent-utils", "@kbn/elastic-assistant": "link:x-pack/platform/packages/shared/kbn-elastic-assistant", "@kbn/elastic-assistant-common": "link:x-pack/platform/packages/shared/kbn-elastic-assistant-common", @@ -841,7 +841,7 @@ "@kbn/security-ui-components": "link:x-pack/packages/security/ui_components", "@kbn/securitysolution-autocomplete": "link:packages/kbn-securitysolution-autocomplete", "@kbn/securitysolution-data-table": "link:x-pack/solutions/security/packages/data_table", - "@kbn/securitysolution-ecs": "link:packages/kbn-securitysolution-ecs", + "@kbn/securitysolution-ecs": "link:src/platform/packages/shared/kbn-securitysolution-ecs", "@kbn/securitysolution-endpoint-exceptions-common": "link:packages/kbn-securitysolution-endpoint-exceptions-common", "@kbn/securitysolution-es-utils": "link:packages/kbn-securitysolution-es-utils", "@kbn/securitysolution-exception-list-components": "link:packages/kbn-securitysolution-exception-list-components", diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index a44a9df48ef65..3e67338fcb6e8 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -15,7 +15,7 @@ export const storybookAliases = { apm: 'x-pack/plugins/observability_solution/apm/.storybook', canvas: 'x-pack/plugins/canvas/storybook', cases: 'packages/kbn-cases-components/.storybook', - cell_actions: 'packages/kbn-cell-actions/.storybook', + cell_actions: 'src/platform/packages/shared/kbn-cell-actions/.storybook', cloud_security_posture_packages: 'x-pack/packages/kbn-cloud-security-posture/storybook/config', cloud: 'packages/cloud/.storybook', coloring: 'packages/kbn-coloring/.storybook', diff --git a/packages/kbn-cell-actions/.storybook/main.js b/src/platform/packages/shared/kbn-cell-actions/.storybook/main.js similarity index 100% rename from packages/kbn-cell-actions/.storybook/main.js rename to src/platform/packages/shared/kbn-cell-actions/.storybook/main.js diff --git a/packages/kbn-cell-actions/README.md b/src/platform/packages/shared/kbn-cell-actions/README.md similarity index 100% rename from packages/kbn-cell-actions/README.md rename to src/platform/packages/shared/kbn-cell-actions/README.md diff --git a/packages/kbn-cell-actions/actions/index.ts b/src/platform/packages/shared/kbn-cell-actions/actions/index.ts similarity index 100% rename from packages/kbn-cell-actions/actions/index.ts rename to src/platform/packages/shared/kbn-cell-actions/actions/index.ts diff --git a/packages/kbn-cell-actions/actions/utils.ts b/src/platform/packages/shared/kbn-cell-actions/actions/utils.ts similarity index 100% rename from packages/kbn-cell-actions/actions/utils.ts rename to src/platform/packages/shared/kbn-cell-actions/actions/utils.ts diff --git a/packages/kbn-cell-actions/constants.ts b/src/platform/packages/shared/kbn-cell-actions/constants.ts similarity index 100% rename from packages/kbn-cell-actions/constants.ts rename to src/platform/packages/shared/kbn-cell-actions/constants.ts diff --git a/packages/kbn-cell-actions/index.ts b/src/platform/packages/shared/kbn-cell-actions/index.ts similarity index 100% rename from packages/kbn-cell-actions/index.ts rename to src/platform/packages/shared/kbn-cell-actions/index.ts diff --git a/packages/kbn-cell-actions/jest.config.js b/src/platform/packages/shared/kbn-cell-actions/jest.config.js similarity index 83% rename from packages/kbn-cell-actions/jest.config.js rename to src/platform/packages/shared/kbn-cell-actions/jest.config.js index 11196f0530fca..b55e4223182c6 100644 --- a/packages/kbn-cell-actions/jest.config.js +++ b/src/platform/packages/shared/kbn-cell-actions/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-cell-actions'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-cell-actions'], }; diff --git a/packages/kbn-cell-actions/kibana.jsonc b/src/platform/packages/shared/kbn-cell-actions/kibana.jsonc similarity index 100% rename from packages/kbn-cell-actions/kibana.jsonc rename to src/platform/packages/shared/kbn-cell-actions/kibana.jsonc diff --git a/packages/kbn-cell-actions/package.json b/src/platform/packages/shared/kbn-cell-actions/package.json similarity index 100% rename from packages/kbn-cell-actions/package.json rename to src/platform/packages/shared/kbn-cell-actions/package.json diff --git a/packages/kbn-cell-actions/src/__stories__/cell_actions.stories.tsx b/src/platform/packages/shared/kbn-cell-actions/src/__stories__/cell_actions.stories.tsx similarity index 100% rename from packages/kbn-cell-actions/src/__stories__/cell_actions.stories.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/__stories__/cell_actions.stories.tsx diff --git a/packages/kbn-cell-actions/src/actions/copy_to_clipboard/copy_to_clipboard.test.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/copy_to_clipboard/copy_to_clipboard.test.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/copy_to_clipboard/copy_to_clipboard.test.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/copy_to_clipboard/copy_to_clipboard.test.ts diff --git a/packages/kbn-cell-actions/src/actions/copy_to_clipboard/copy_to_clipboard.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/copy_to_clipboard/copy_to_clipboard.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/copy_to_clipboard/copy_to_clipboard.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/copy_to_clipboard/copy_to_clipboard.ts diff --git a/packages/kbn-cell-actions/src/actions/copy_to_clipboard/index.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/copy_to_clipboard/index.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/copy_to_clipboard/index.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/copy_to_clipboard/index.ts diff --git a/packages/kbn-cell-actions/src/actions/factory.test.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/factory.test.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/factory.test.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/factory.test.ts diff --git a/packages/kbn-cell-actions/src/actions/factory.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/factory.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/factory.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/factory.ts diff --git a/packages/kbn-cell-actions/src/actions/filter/add_filter.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/filter/add_filter.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/filter/add_filter.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/filter/add_filter.ts diff --git a/packages/kbn-cell-actions/src/actions/filter/create_filter.test.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/filter/create_filter.test.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/filter/create_filter.test.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/filter/create_filter.test.ts diff --git a/packages/kbn-cell-actions/src/actions/filter/create_filter.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/filter/create_filter.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/filter/create_filter.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/filter/create_filter.ts diff --git a/packages/kbn-cell-actions/src/actions/filter/filter_in.test.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/filter/filter_in.test.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/filter/filter_in.test.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/filter/filter_in.test.ts diff --git a/packages/kbn-cell-actions/src/actions/filter/filter_in.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/filter/filter_in.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/filter/filter_in.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/filter/filter_in.ts diff --git a/packages/kbn-cell-actions/src/actions/filter/filter_out.test.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/filter/filter_out.test.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/filter/filter_out.test.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/filter/filter_out.test.ts diff --git a/packages/kbn-cell-actions/src/actions/filter/filter_out.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/filter/filter_out.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/filter/filter_out.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/filter/filter_out.ts diff --git a/packages/kbn-cell-actions/src/actions/filter/index.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/filter/index.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/filter/index.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/filter/index.ts diff --git a/packages/kbn-cell-actions/src/actions/index.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/index.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/index.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/index.ts diff --git a/packages/kbn-cell-actions/src/actions/translations.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/translations.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/translations.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/translations.ts diff --git a/packages/kbn-cell-actions/src/actions/types.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/types.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/types.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/types.ts diff --git a/packages/kbn-cell-actions/src/actions/utils.test.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/utils.test.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/utils.test.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/utils.test.ts diff --git a/packages/kbn-cell-actions/src/actions/utils.ts b/src/platform/packages/shared/kbn-cell-actions/src/actions/utils.ts similarity index 100% rename from packages/kbn-cell-actions/src/actions/utils.ts rename to src/platform/packages/shared/kbn-cell-actions/src/actions/utils.ts diff --git a/packages/kbn-cell-actions/src/components/cell_action_item.test.tsx b/src/platform/packages/shared/kbn-cell-actions/src/components/cell_action_item.test.tsx similarity index 100% rename from packages/kbn-cell-actions/src/components/cell_action_item.test.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/components/cell_action_item.test.tsx diff --git a/packages/kbn-cell-actions/src/components/cell_action_item.tsx b/src/platform/packages/shared/kbn-cell-actions/src/components/cell_action_item.tsx similarity index 100% rename from packages/kbn-cell-actions/src/components/cell_action_item.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/components/cell_action_item.tsx diff --git a/packages/kbn-cell-actions/src/components/cell_actions.test.tsx b/src/platform/packages/shared/kbn-cell-actions/src/components/cell_actions.test.tsx similarity index 100% rename from packages/kbn-cell-actions/src/components/cell_actions.test.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/components/cell_actions.test.tsx diff --git a/packages/kbn-cell-actions/src/components/cell_actions.tsx b/src/platform/packages/shared/kbn-cell-actions/src/components/cell_actions.tsx similarity index 100% rename from packages/kbn-cell-actions/src/components/cell_actions.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/components/cell_actions.tsx diff --git a/packages/kbn-cell-actions/src/components/extra_actions_button.test.tsx b/src/platform/packages/shared/kbn-cell-actions/src/components/extra_actions_button.test.tsx similarity index 100% rename from packages/kbn-cell-actions/src/components/extra_actions_button.test.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/components/extra_actions_button.test.tsx diff --git a/packages/kbn-cell-actions/src/components/extra_actions_button.tsx b/src/platform/packages/shared/kbn-cell-actions/src/components/extra_actions_button.tsx similarity index 100% rename from packages/kbn-cell-actions/src/components/extra_actions_button.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/components/extra_actions_button.tsx diff --git a/packages/kbn-cell-actions/src/components/extra_actions_popover.test.tsx b/src/platform/packages/shared/kbn-cell-actions/src/components/extra_actions_popover.test.tsx similarity index 100% rename from packages/kbn-cell-actions/src/components/extra_actions_popover.test.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/components/extra_actions_popover.test.tsx diff --git a/packages/kbn-cell-actions/src/components/extra_actions_popover.tsx b/src/platform/packages/shared/kbn-cell-actions/src/components/extra_actions_popover.tsx similarity index 100% rename from packages/kbn-cell-actions/src/components/extra_actions_popover.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/components/extra_actions_popover.tsx diff --git a/packages/kbn-cell-actions/src/components/hover_actions_popover.test.tsx b/src/platform/packages/shared/kbn-cell-actions/src/components/hover_actions_popover.test.tsx similarity index 100% rename from packages/kbn-cell-actions/src/components/hover_actions_popover.test.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/components/hover_actions_popover.test.tsx diff --git a/packages/kbn-cell-actions/src/components/hover_actions_popover.tsx b/src/platform/packages/shared/kbn-cell-actions/src/components/hover_actions_popover.tsx similarity index 100% rename from packages/kbn-cell-actions/src/components/hover_actions_popover.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/components/hover_actions_popover.tsx diff --git a/packages/kbn-cell-actions/src/components/index.tsx b/src/platform/packages/shared/kbn-cell-actions/src/components/index.tsx similarity index 100% rename from packages/kbn-cell-actions/src/components/index.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/components/index.tsx diff --git a/packages/kbn-cell-actions/src/components/inline_actions.test.tsx b/src/platform/packages/shared/kbn-cell-actions/src/components/inline_actions.test.tsx similarity index 100% rename from packages/kbn-cell-actions/src/components/inline_actions.test.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/components/inline_actions.test.tsx diff --git a/packages/kbn-cell-actions/src/components/inline_actions.tsx b/src/platform/packages/shared/kbn-cell-actions/src/components/inline_actions.tsx similarity index 100% rename from packages/kbn-cell-actions/src/components/inline_actions.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/components/inline_actions.tsx diff --git a/packages/kbn-cell-actions/src/components/translations.ts b/src/platform/packages/shared/kbn-cell-actions/src/components/translations.ts similarity index 100% rename from packages/kbn-cell-actions/src/components/translations.ts rename to src/platform/packages/shared/kbn-cell-actions/src/components/translations.ts diff --git a/packages/kbn-cell-actions/src/constants.ts b/src/platform/packages/shared/kbn-cell-actions/src/constants.ts similarity index 100% rename from packages/kbn-cell-actions/src/constants.ts rename to src/platform/packages/shared/kbn-cell-actions/src/constants.ts diff --git a/packages/kbn-cell-actions/src/context/cell_actions_context.test.tsx b/src/platform/packages/shared/kbn-cell-actions/src/context/cell_actions_context.test.tsx similarity index 100% rename from packages/kbn-cell-actions/src/context/cell_actions_context.test.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/context/cell_actions_context.test.tsx diff --git a/packages/kbn-cell-actions/src/context/cell_actions_context.tsx b/src/platform/packages/shared/kbn-cell-actions/src/context/cell_actions_context.tsx similarity index 100% rename from packages/kbn-cell-actions/src/context/cell_actions_context.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/context/cell_actions_context.tsx diff --git a/packages/kbn-cell-actions/src/context/index.ts b/src/platform/packages/shared/kbn-cell-actions/src/context/index.ts similarity index 100% rename from packages/kbn-cell-actions/src/context/index.ts rename to src/platform/packages/shared/kbn-cell-actions/src/context/index.ts diff --git a/packages/kbn-cell-actions/src/hooks/actions.test.ts b/src/platform/packages/shared/kbn-cell-actions/src/hooks/actions.test.ts similarity index 100% rename from packages/kbn-cell-actions/src/hooks/actions.test.ts rename to src/platform/packages/shared/kbn-cell-actions/src/hooks/actions.test.ts diff --git a/packages/kbn-cell-actions/src/hooks/actions.ts b/src/platform/packages/shared/kbn-cell-actions/src/hooks/actions.ts similarity index 100% rename from packages/kbn-cell-actions/src/hooks/actions.ts rename to src/platform/packages/shared/kbn-cell-actions/src/hooks/actions.ts diff --git a/packages/kbn-cell-actions/src/hooks/index.ts b/src/platform/packages/shared/kbn-cell-actions/src/hooks/index.ts similarity index 100% rename from packages/kbn-cell-actions/src/hooks/index.ts rename to src/platform/packages/shared/kbn-cell-actions/src/hooks/index.ts diff --git a/packages/kbn-cell-actions/src/hooks/use_data_grid_column_cell_actions.test.tsx b/src/platform/packages/shared/kbn-cell-actions/src/hooks/use_data_grid_column_cell_actions.test.tsx similarity index 100% rename from packages/kbn-cell-actions/src/hooks/use_data_grid_column_cell_actions.test.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/hooks/use_data_grid_column_cell_actions.test.tsx diff --git a/packages/kbn-cell-actions/src/hooks/use_data_grid_column_cell_actions.tsx b/src/platform/packages/shared/kbn-cell-actions/src/hooks/use_data_grid_column_cell_actions.tsx similarity index 100% rename from packages/kbn-cell-actions/src/hooks/use_data_grid_column_cell_actions.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/hooks/use_data_grid_column_cell_actions.tsx diff --git a/packages/kbn-cell-actions/src/hooks/use_load_actions.test.tsx b/src/platform/packages/shared/kbn-cell-actions/src/hooks/use_load_actions.test.tsx similarity index 100% rename from packages/kbn-cell-actions/src/hooks/use_load_actions.test.tsx rename to src/platform/packages/shared/kbn-cell-actions/src/hooks/use_load_actions.test.tsx diff --git a/packages/kbn-cell-actions/src/hooks/use_load_actions.ts b/src/platform/packages/shared/kbn-cell-actions/src/hooks/use_load_actions.ts similarity index 100% rename from packages/kbn-cell-actions/src/hooks/use_load_actions.ts rename to src/platform/packages/shared/kbn-cell-actions/src/hooks/use_load_actions.ts diff --git a/packages/kbn-cell-actions/src/mocks/helpers.ts b/src/platform/packages/shared/kbn-cell-actions/src/mocks/helpers.ts similarity index 100% rename from packages/kbn-cell-actions/src/mocks/helpers.ts rename to src/platform/packages/shared/kbn-cell-actions/src/mocks/helpers.ts diff --git a/packages/kbn-cell-actions/src/types.ts b/src/platform/packages/shared/kbn-cell-actions/src/types.ts similarity index 100% rename from packages/kbn-cell-actions/src/types.ts rename to src/platform/packages/shared/kbn-cell-actions/src/types.ts diff --git a/packages/kbn-cell-actions/tsconfig.json b/src/platform/packages/shared/kbn-cell-actions/tsconfig.json similarity index 91% rename from packages/kbn-cell-actions/tsconfig.json rename to src/platform/packages/shared/kbn-cell-actions/tsconfig.json index f7ac4890347af..f71c8caf5dcfe 100644 --- a/packages/kbn-cell-actions/tsconfig.json +++ b/src/platform/packages/shared/kbn-cell-actions/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-securitysolution-ecs/README.md b/src/platform/packages/shared/kbn-securitysolution-ecs/README.md similarity index 100% rename from packages/kbn-securitysolution-ecs/README.md rename to src/platform/packages/shared/kbn-securitysolution-ecs/README.md diff --git a/packages/kbn-securitysolution-ecs/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/index.ts diff --git a/packages/kbn-securitysolution-ecs/jest.config.js b/src/platform/packages/shared/kbn-securitysolution-ecs/jest.config.js similarity index 82% rename from packages/kbn-securitysolution-ecs/jest.config.js rename to src/platform/packages/shared/kbn-securitysolution-ecs/jest.config.js index 50b1d85a0c5f8..f9e49d0a6719a 100644 --- a/packages/kbn-securitysolution-ecs/jest.config.js +++ b/src/platform/packages/shared/kbn-securitysolution-ecs/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-securitysolution-ecs'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-securitysolution-ecs'], }; diff --git a/packages/kbn-securitysolution-ecs/kibana.jsonc b/src/platform/packages/shared/kbn-securitysolution-ecs/kibana.jsonc similarity index 100% rename from packages/kbn-securitysolution-ecs/kibana.jsonc rename to src/platform/packages/shared/kbn-securitysolution-ecs/kibana.jsonc diff --git a/packages/kbn-securitysolution-ecs/package.json b/src/platform/packages/shared/kbn-securitysolution-ecs/package.json similarity index 100% rename from packages/kbn-securitysolution-ecs/package.json rename to src/platform/packages/shared/kbn-securitysolution-ecs/package.json diff --git a/packages/kbn-securitysolution-ecs/src/agent/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/agent/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/agent/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/agent/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/auditd/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/auditd/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/auditd/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/auditd/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/cloud/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/cloud/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/cloud/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/cloud/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/destination/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/destination/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/destination/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/destination/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/dll/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/dll/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/dll/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/dll/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/dns/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/dns/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/dns/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/dns/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/ecs_fields/extend_map.test.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/ecs_fields/extend_map.test.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/ecs_fields/extend_map.test.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/ecs_fields/extend_map.test.ts diff --git a/packages/kbn-securitysolution-ecs/src/ecs_fields/extend_map.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/ecs_fields/extend_map.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/ecs_fields/extend_map.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/ecs_fields/extend_map.ts diff --git a/packages/kbn-securitysolution-ecs/src/ecs_fields/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/ecs_fields/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/ecs_fields/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/ecs_fields/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/endgame/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/endgame/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/endgame/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/endgame/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/event/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/event/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/event/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/event/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/file/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/file/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/file/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/file/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/geo/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/geo/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/geo/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/geo/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/host/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/host/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/host/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/host/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/http/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/http/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/http/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/http/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/memory_protection/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/memory_protection/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/memory_protection/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/memory_protection/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/network/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/network/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/network/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/network/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/process/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/process/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/process/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/process/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/ransomware/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/ransomware/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/ransomware/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/ransomware/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/registry/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/registry/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/registry/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/registry/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/rule/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/rule/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/rule/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/rule/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/signal/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/signal/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/signal/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/signal/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/source/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/source/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/source/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/source/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/suricata/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/suricata/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/suricata/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/suricata/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/system/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/system/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/system/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/system/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/target_type/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/target_type/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/target_type/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/target_type/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/threat/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/threat/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/threat/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/threat/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/tls/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/tls/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/tls/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/tls/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/url/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/url/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/url/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/url/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/user/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/user/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/user/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/user/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/winlog/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/winlog/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/winlog/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/winlog/index.ts diff --git a/packages/kbn-securitysolution-ecs/src/zeek/index.ts b/src/platform/packages/shared/kbn-securitysolution-ecs/src/zeek/index.ts similarity index 100% rename from packages/kbn-securitysolution-ecs/src/zeek/index.ts rename to src/platform/packages/shared/kbn-securitysolution-ecs/src/zeek/index.ts diff --git a/packages/kbn-securitysolution-ecs/tsconfig.json b/src/platform/packages/shared/kbn-securitysolution-ecs/tsconfig.json similarity index 78% rename from packages/kbn-securitysolution-ecs/tsconfig.json rename to src/platform/packages/shared/kbn-securitysolution-ecs/tsconfig.json index dcb1ea0d03d93..e4fd00b524dd9 100644 --- a/packages/kbn-securitysolution-ecs/tsconfig.json +++ b/src/platform/packages/shared/kbn-securitysolution-ecs/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 8134a78ea0bd5..c77083aeb8132 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -136,8 +136,8 @@ "@kbn/cases-plugin/*": ["x-pack/plugins/cases/*"], "@kbn/cbor": ["packages/kbn-cbor"], "@kbn/cbor/*": ["packages/kbn-cbor/*"], - "@kbn/cell-actions": ["packages/kbn-cell-actions"], - "@kbn/cell-actions/*": ["packages/kbn-cell-actions/*"], + "@kbn/cell-actions": ["src/platform/packages/shared/kbn-cell-actions"], + "@kbn/cell-actions/*": ["src/platform/packages/shared/kbn-cell-actions/*"], "@kbn/chart-expressions-common": ["src/plugins/chart_expressions/common"], "@kbn/chart-expressions-common/*": ["src/plugins/chart_expressions/common/*"], "@kbn/chart-icons": ["packages/kbn-chart-icons"], @@ -796,8 +796,8 @@ "@kbn/ebt-tools/*": ["packages/kbn-ebt-tools/*"], "@kbn/ecs-data-quality-dashboard": ["x-pack/solutions/security/packages/ecs_data_quality_dashboard"], "@kbn/ecs-data-quality-dashboard/*": ["x-pack/solutions/security/packages/ecs_data_quality_dashboard/*"], - "@kbn/ecs-data-quality-dashboard-plugin": ["x-pack/plugins/ecs_data_quality_dashboard"], - "@kbn/ecs-data-quality-dashboard-plugin/*": ["x-pack/plugins/ecs_data_quality_dashboard/*"], + "@kbn/ecs-data-quality-dashboard-plugin": ["x-pack/solutions/security/plugins/ecs_data_quality_dashboard"], + "@kbn/ecs-data-quality-dashboard-plugin/*": ["x-pack/solutions/security/plugins/ecs_data_quality_dashboard/*"], "@kbn/elastic-agent-utils": ["packages/kbn-elastic-agent-utils"], "@kbn/elastic-agent-utils/*": ["packages/kbn-elastic-agent-utils/*"], "@kbn/elastic-assistant": ["x-pack/platform/packages/shared/kbn-elastic-assistant"], @@ -1658,8 +1658,8 @@ "@kbn/securitysolution-autocomplete/*": ["packages/kbn-securitysolution-autocomplete/*"], "@kbn/securitysolution-data-table": ["x-pack/solutions/security/packages/data_table"], "@kbn/securitysolution-data-table/*": ["x-pack/solutions/security/packages/data_table/*"], - "@kbn/securitysolution-ecs": ["packages/kbn-securitysolution-ecs"], - "@kbn/securitysolution-ecs/*": ["packages/kbn-securitysolution-ecs/*"], + "@kbn/securitysolution-ecs": ["src/platform/packages/shared/kbn-securitysolution-ecs"], + "@kbn/securitysolution-ecs/*": ["src/platform/packages/shared/kbn-securitysolution-ecs/*"], "@kbn/securitysolution-endpoint-exceptions-common": ["packages/kbn-securitysolution-endpoint-exceptions-common"], "@kbn/securitysolution-endpoint-exceptions-common/*": ["packages/kbn-securitysolution-endpoint-exceptions-common/*"], "@kbn/securitysolution-es-utils": ["packages/kbn-securitysolution-es-utils"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index b3399f14905cd..f5b38ebec0769 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -38,7 +38,7 @@ "xpack.elasticAssistant": "platform/packages/shared/kbn-elastic-assistant", "xpack.elasticAssistantCommon": "platform/packages/shared/kbn-elastic-assistant-common", "xpack.elasticAssistantPlugin": "solutions/security/plugins/elastic_assistant", - "xpack.ecsDataQualityDashboard": "plugins/ecs_data_quality_dashboard", + "xpack.ecsDataQualityDashboard": "solutions/security/plugins/ecs_data_quality_dashboard", "xpack.embeddableEnhanced": "plugins/embeddable_enhanced", "xpack.endpoint": "plugins/endpoint", "xpack.enterpriseSearch": "plugins/enterprise_search", diff --git a/x-pack/plugins/ecs_data_quality_dashboard/README.md b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/README.md similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/README.md rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/README.md diff --git a/x-pack/plugins/ecs_data_quality_dashboard/common/constants.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/common/constants.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/common/constants.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/common/constants.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/common/types.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/common/types.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/common/types.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/common/types.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/jest.config.js b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/jest.config.js similarity index 53% rename from x-pack/plugins/ecs_data_quality_dashboard/jest.config.js rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/jest.config.js index cc9c79fe6d1e5..82d84541051b0 100644 --- a/x-pack/plugins/ecs_data_quality_dashboard/jest.config.js +++ b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/jest.config.js @@ -7,12 +7,12 @@ module.exports = { collectCoverageFrom: [ - '/x-pack/plugins/ecs_data_quality_dashboard/{common,lib,server}/**/*.{ts,tsx}', + '/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/{common,lib,server}/**/*.{ts,tsx}', ], coverageDirectory: - '/target/kibana-coverage/jest/x-pack/plugins/ecs_data_quality_dashboard', + '/target/kibana-coverage/jest/x-pack/solutions/security/plugins/ecs_data_quality_dashboard', coverageReporters: ['text', 'html'], - rootDir: '../../..', - roots: ['/x-pack/plugins/ecs_data_quality_dashboard'], + rootDir: '../../../../..', + roots: ['/x-pack/solutions/security/plugins/ecs_data_quality_dashboard'], preset: '@kbn/test', }; diff --git a/x-pack/plugins/ecs_data_quality_dashboard/kibana.jsonc b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/kibana.jsonc similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/kibana.jsonc rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/kibana.jsonc diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_metering_stats_index.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_metering_stats_index.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_metering_stats_index.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_metering_stats_index.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_stats_green_index.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_stats_green_index.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_stats_green_index.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_stats_green_index.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_stats_yellow_index.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_stats_yellow_index.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_stats_yellow_index.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/mock_stats_yellow_index.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/request.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/request.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/request.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/request.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/request_context.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/request_context.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/request_context.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/request_context.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/response.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/response.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/response.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/response.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/server.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/server.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/server.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/server.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/test_adapters.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/test_adapters.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/__mocks__/test_adapters.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/__mocks__/test_adapters.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_authorized_index_names.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_authorized_index_names.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_authorized_index_names.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_authorized_index_names.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_available_indices.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_available_indices.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_available_indices.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_available_indices.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_hits_total.test.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_hits_total.test.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_hits_total.test.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_hits_total.test.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_hits_total.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_hits_total.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_hits_total.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_hits_total.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_range_filtered_indices.test.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_range_filtered_indices.test.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_range_filtered_indices.test.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_range_filtered_indices.test.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_range_filtered_indices.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_range_filtered_indices.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_range_filtered_indices.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_range_filtered_indices.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_unallowed_field_requests.test.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_unallowed_field_requests.test.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_unallowed_field_requests.test.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_unallowed_field_requests.test.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_unallowed_field_requests.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_unallowed_field_requests.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/helpers/get_unallowed_field_requests.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/helpers/get_unallowed_field_requests.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/index.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/index.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/index.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/index.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/lib/build_response/index.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/build_response/index.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/lib/build_response/index.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/build_response/index.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_data_stream.test.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_data_stream.test.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_data_stream.test.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_data_stream.test.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_data_stream.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_data_stream.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_data_stream.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_data_stream.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_field_map.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_field_map.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_field_map.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/data_stream/results_field_map.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/lib/fetch_available_indices.test.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/fetch_available_indices.test.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/lib/fetch_available_indices.test.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/fetch_available_indices.test.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/lib/fetch_available_indices.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/fetch_available_indices.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/lib/fetch_available_indices.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/fetch_available_indices.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/lib/fetch_ilm_explain.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/fetch_ilm_explain.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/lib/fetch_ilm_explain.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/fetch_ilm_explain.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/lib/fetch_mappings.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/fetch_mappings.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/lib/fetch_mappings.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/fetch_mappings.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/lib/fetch_stats.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/fetch_stats.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/lib/fetch_stats.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/fetch_stats.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/lib/get_unallowed_field_values.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/get_unallowed_field_values.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/lib/get_unallowed_field_values.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/get_unallowed_field_values.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/lib/index.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/index.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/lib/index.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/lib/index.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/plugin.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/plugin.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/plugin.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/plugin.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_ilm_explain.test.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_ilm_explain.test.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_ilm_explain.test.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_ilm_explain.test.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_ilm_explain.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_ilm_explain.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_ilm_explain.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_ilm_explain.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_index_mappings.test.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_index_mappings.test.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_index_mappings.test.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_index_mappings.test.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_index_mappings.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_index_mappings.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_index_mappings.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_index_mappings.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_index_stats.test.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_index_stats.test.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_index_stats.test.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_index_stats.test.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_index_stats.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_index_stats.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_index_stats.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_index_stats.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.test.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.test.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.test.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.test.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/index.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/index.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/index.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/index.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results.test.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results.test.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results.test.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results.test.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results_latest.test.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results_latest.test.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results_latest.test.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results_latest.test.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results_latest.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results_latest.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results_latest.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/get_index_results_latest.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/index.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/index.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/index.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/index.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/post_index_results.test.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/post_index_results.test.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/post_index_results.test.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/post_index_results.test.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/post_index_results.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/post_index_results.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/post_index_results.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/post_index_results.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/privileges.test.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/privileges.test.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/privileges.test.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/privileges.test.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/privileges.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/privileges.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/privileges.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/privileges.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/results.mock.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/results.mock.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/results.mock.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/results.mock.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/translations.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/translations.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/routes/results/translations.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/routes/results/translations.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/schemas/common.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/common.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/schemas/common.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/common.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/schemas/get_ilm_explain.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/get_ilm_explain.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/schemas/get_ilm_explain.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/get_ilm_explain.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/schemas/get_index_mappings.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/get_index_mappings.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/schemas/get_index_mappings.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/get_index_mappings.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/schemas/get_index_stats.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/get_index_stats.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/schemas/get_index_stats.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/get_index_stats.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/schemas/get_unallowed_field_values.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/get_unallowed_field_values.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/schemas/get_unallowed_field_values.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/get_unallowed_field_values.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/schemas/result.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/result.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/schemas/result.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/result.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/schemas/utils/string_to_non_negative_number.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/utils/string_to_non_negative_number.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/schemas/utils/string_to_non_negative_number.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/schemas/utils/string_to_non_negative_number.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/translations.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/translations.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/translations.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/translations.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/types.ts b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/types.ts similarity index 100% rename from x-pack/plugins/ecs_data_quality_dashboard/server/types.ts rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/server/types.ts diff --git a/x-pack/plugins/ecs_data_quality_dashboard/tsconfig.json b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/tsconfig.json similarity index 90% rename from x-pack/plugins/ecs_data_quality_dashboard/tsconfig.json rename to x-pack/solutions/security/plugins/ecs_data_quality_dashboard/tsconfig.json index cf31d7461b509..14c001e40eff0 100644 --- a/x-pack/plugins/ecs_data_quality_dashboard/tsconfig.json +++ b/x-pack/solutions/security/plugins/ecs_data_quality_dashboard/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, @@ -9,7 +9,7 @@ "server/**/*", // have to declare *.json explicitly due to https://github.com/microsoft/TypeScript/issues/25636 "server/**/*.json", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/core", diff --git a/yarn.lock b/yarn.lock index ed69cb708df14..cfec987d47961 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4089,7 +4089,7 @@ version "0.0.0" uid "" -"@kbn/cell-actions@link:packages/kbn-cell-actions": +"@kbn/cell-actions@link:src/platform/packages/shared/kbn-cell-actions": version "0.0.0" uid "" @@ -5405,7 +5405,7 @@ version "0.0.0" uid "" -"@kbn/ecs-data-quality-dashboard-plugin@link:x-pack/plugins/ecs_data_quality_dashboard": +"@kbn/ecs-data-quality-dashboard-plugin@link:x-pack/solutions/security/plugins/ecs_data_quality_dashboard": version "0.0.0" uid "" @@ -7133,7 +7133,7 @@ version "0.0.0" uid "" -"@kbn/securitysolution-ecs@link:packages/kbn-securitysolution-ecs": +"@kbn/securitysolution-ecs@link:src/platform/packages/shared/kbn-securitysolution-ecs": version "0.0.0" uid ""