From 854f8b3b9120fb149b002602ad7575e3969551e8 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Fri, 6 Dec 2024 19:59:17 +0100 Subject: [PATCH] Sustainable Kibana Architecture: Move modules owned by `@elastic/obs-entities` (#202713) ## 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. > Do not attempt to push any changes unless you know what you are doing. > Please use [#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E) Slack channel for feedback. #### 3 plugin(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/entities-data-access-plugin` | `x-pack/solutions/observability/plugins/observability_solution/entities_data_access` | | `@kbn/entityManager-app-plugin` | `x-pack/solutions/observability/plugins/observability_solution/entity_manager_app` | | `@kbn/entityManager-plugin` | `x-pack/platform/plugins/shared/entity_manager` | #### 1 package(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/entities-schema` | `x-pack/platform/packages/shared/kbn-entities-schema` |
Updated references ``` ./docs/developer/plugin-list.asciidoc ./package.json ./packages/kbn-repo-packages/package-map.json ./packages/kbn-ts-projects/config-paths.json ./tsconfig.base.json ./x-pack/platform/packages/shared/kbn-entities-schema/jest.config.js ./x-pack/platform/plugins/shared/entity_manager/jest.config.js ./x-pack/plugins/entity_manager/docs/entity_definitions.md ./x-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js ./x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js ./yarn.lock ```
Updated relative paths ``` x-pack/platform/packages/shared/kbn-entities-schema/jest.config.js:10 x-pack/platform/packages/shared/kbn-entities-schema/scripts/generate.js:8 x-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:65 x-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:8 x-pack/platform/packages/shared/kbn-entities-schema/scripts/serve_oas_ui.js:8 x-pack/platform/packages/shared/kbn-entities-schema/tsconfig.json:2 x-pack/platform/plugins/shared/entity_manager/jest.config.js:10 x-pack/platform/plugins/shared/entity_manager/tsconfig.json:2 x-pack/platform/plugins/shared/entity_manager/tsconfig.json:7 x-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js:12 x-pack/solutions/observability/plugins/observability_solution/entities_data_access/tsconfig.json:2 x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js:12 x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:2 x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:7 ```
Script errors ``` ```
--------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Rudolf Meijering --- .github/CODEOWNERS | 8 +++---- docs/developer/plugin-list.asciidoc | 6 ++--- package.json | 8 +++---- tsconfig.base.json | 16 +++++++------- .../shared}/kbn-entities-schema/README.md | 0 .../shared}/kbn-entities-schema/index.ts | 0 .../kbn-entities-schema/jest.config.js | 4 ++-- .../shared}/kbn-entities-schema/kibana.jsonc | 0 .../shared}/kbn-entities-schema/oas.yaml | 0 .../shared}/kbn-entities-schema/package.json | 0 .../kbn-entities-schema/scripts/generate.js | 2 +- .../scripts/generate_oas.js | 4 ++-- .../scripts/serve_oas_ui.js | 2 +- .../src/rest_spec/create.ts | 0 .../src/rest_spec/delete.ts | 0 .../kbn-entities-schema/src/rest_spec/get.ts | 0 .../src/rest_spec/reset.ts | 0 .../schema/__snapshots__/common.test.ts.snap | 0 .../src/schema/common.test.ts | 0 .../kbn-entities-schema/src/schema/common.ts | 0 .../src/schema/entity.test.ts | 0 .../kbn-entities-schema/src/schema/entity.ts | 0 .../src/schema/entity_definition.ts | 0 .../src/schema/patterns.test.ts | 0 .../src/schema/patterns.ts | 0 .../shared}/kbn-entities-schema/tsconfig.json | 2 +- .../plugins/shared}/entity_manager/README.md | 0 .../shared}/entity_manager/common/config.ts | 0 .../common/constants_entities.ts | 0 .../entity_manager/common/debug_log.ts | 0 .../shared}/entity_manager/common/errors.ts | 0 .../entity_manager/common/types_api.ts | 0 .../entity_manager/docs/entity_definitions.md | 2 +- .../shared}/entity_manager/jest.config.js | 9 ++++---- .../shared}/entity_manager/kibana.jsonc | 0 .../shared}/entity_manager/public/index.ts | 0 .../public/lib/entity_client.test.ts | 0 .../public/lib/entity_client.ts | 0 .../entity_manager/public/lib/errors.ts | 0 .../shared}/entity_manager/public/plugin.ts | 0 .../shared}/entity_manager/public/types.ts | 0 .../shared}/entity_manager/server/index.ts | 0 .../server/lib/auth/api_key/api_key.ts | 0 .../server/lib/auth/api_key/saved_object.ts | 0 .../entity_manager/server/lib/auth/index.ts | 0 .../server/lib/auth/privileges.ts | 0 .../server/lib/entities/built_in/constants.ts | 0 .../built_in/containers_from_ecs_data.ts | 0 .../entities/built_in/hosts_from_ecs_data.ts | 0 .../server/lib/entities/built_in/index.ts | 0 .../kubernetes/common/ecs_index_patterns.ts | 0 .../kubernetes/common/ecs_metadata.ts | 0 .../kubernetes/common/global_metadata.ts | 0 .../kubernetes/common/otel_index_patterns.ts | 0 .../kubernetes/common/otel_metadata.ts | 0 .../built_in/kubernetes/ecs/cluster.ts | 0 .../built_in/kubernetes/ecs/cron_job.ts | 0 .../built_in/kubernetes/ecs/daemon_set.ts | 0 .../built_in/kubernetes/ecs/deployment.ts | 0 .../entities/built_in/kubernetes/ecs/index.ts | 0 .../entities/built_in/kubernetes/ecs/job.ts | 0 .../entities/built_in/kubernetes/ecs/node.ts | 0 .../entities/built_in/kubernetes/ecs/pod.ts | 0 .../built_in/kubernetes/ecs/replica_set.ts | 0 .../built_in/kubernetes/ecs/service.ts | 0 .../built_in/kubernetes/ecs/stateful_set.ts | 0 .../lib/entities/built_in/kubernetes/index.ts | 0 .../built_in/kubernetes/semconv/cluster.ts | 0 .../built_in/kubernetes/semconv/cron_job.ts | 0 .../built_in/kubernetes/semconv/daemon_set.ts | 0 .../built_in/kubernetes/semconv/deployment.ts | 0 .../built_in/kubernetes/semconv/index.ts | 0 .../built_in/kubernetes/semconv/job.ts | 0 .../built_in/kubernetes/semconv/node.ts | 0 .../built_in/kubernetes/semconv/pod.ts | 0 .../kubernetes/semconv/replica_set.ts | 0 .../kubernetes/semconv/stateful_set.ts | 0 .../built_in/services_from_ecs_data.ts | 0 .../create_and_install_ingest_pipeline.ts | 0 .../entities/create_and_install_transform.ts | 0 .../lib/entities/delete_entity_definition.ts | 0 .../server/lib/entities/delete_index.ts | 0 .../lib/entities/delete_ingest_pipeline.ts | 0 .../server/lib/entities/delete_transforms.ts | 0 .../errors/entity_definition_id_invalid.ts | 0 .../entity_definition_update_conflict.ts | 0 .../errors/entity_id_conflict_error.ts | 0 .../lib/entities/errors/entity_not_found.ts | 0 .../errors/entity_security_exception.ts | 0 .../errors/invalid_transform_error.ts | 0 .../lib/entities/find_entity_definition.ts | 0 .../fixtures/builtin_entity_definition.ts | 0 .../helpers/fixtures/entity_definition.ts | 0 .../lib/entities/helpers/fixtures/index.ts | 0 .../entities/helpers/generate_component_id.ts | 0 .../get_elasticsearch_query_or_throw.ts | 0 ..._pipeline_script_processor_helpers.test.ts | 0 ...ngest_pipeline_script_processor_helpers.ts | 0 .../entities/helpers/is_builtin_definition.ts | 0 .../helpers/merge_definition_update.ts | 0 .../server/lib/entities/helpers/retry.ts | 0 .../generate_latest_processors.test.ts.snap | 0 .../generate_latest_processors.test.ts | 0 .../generate_latest_processors.ts | 0 .../install_entity_definition.test.ts | 0 .../lib/entities/install_entity_definition.ts | 0 .../lib/entities/read_entity_definition.ts | 0 .../lib/entities/save_entity_definition.ts | 0 .../server/lib/entities/start_transforms.ts | 0 .../server/lib/entities/stop_transforms.ts | 0 .../entities_latest_template.test.ts.snap | 0 .../entities_latest_template.test.ts | 0 .../templates/entities_latest_template.ts | 0 .../generate_latest_transform.test.ts.snap | 0 .../generate_identity_aggregations.ts | 0 .../generate_latest_transform.test.ts | 0 .../transform/generate_latest_transform.ts | 0 .../generate_metadata_aggregations.test.ts | 0 .../generate_metadata_aggregations.ts | 0 .../transform/generate_metric_aggregations.ts | 0 .../transform/validate_transform_ids.test.ts | 0 .../transform/validate_transform_ids.ts | 0 .../server/lib/entities/types.ts | 0 .../entities/uninstall_entity_definition.ts | 0 .../lib/entities/upgrade_entity_definition.ts | 0 .../server/lib/entity_client.ts | 0 .../server/lib/manage_index_templates.ts | 0 .../entity_manager/server/lib/utils.ts | 0 .../entity_manager/server/lib/v2/constants.ts | 0 .../setup_entity_definitions_index.ts | 0 .../lib/v2/definitions/source_definition.ts | 0 .../lib/v2/definitions/type_definition.ts | 0 .../server/lib/v2/entity_client.ts | 0 .../v2/errors/entity_definition_conflict.ts | 0 .../lib/v2/errors/unknown_entity_type.ts | 0 .../server/lib/v2/queries/index.test.ts | 0 .../server/lib/v2/queries/index.ts | 0 .../server/lib/v2/queries/utils.test.ts | 0 .../server/lib/v2/queries/utils.ts | 0 .../server/lib/v2/run_esql_query.ts | 0 .../entity_manager/server/lib/v2/types.ts | 0 .../lib/validators/validate_date_range.ts | 0 .../server/lib/validators/validation_error.ts | 0 .../shared}/entity_manager/server/plugin.ts | 0 .../create_entity_manager_server_route.ts | 0 .../server/routes/enablement/check.ts | 0 .../server/routes/enablement/disable.ts | 0 .../server/routes/enablement/enable.ts | 0 .../server/routes/enablement/index.ts | 0 .../server/routes/entities/create.ts | 0 .../server/routes/entities/delete.ts | 0 .../server/routes/entities/get.ts | 0 .../server/routes/entities/index.ts | 0 .../server/routes/entities/reset.ts | 0 .../server/routes/entities/update.ts | 0 .../entity_manager/server/routes/index.ts | 0 .../entity_manager/server/routes/types.ts | 0 .../entity_manager/server/routes/v2/index.ts | 0 .../entity_manager/server/routes/v2/search.ts | 0 .../routes/v2/source_definition_routes.ts | 0 .../routes/v2/type_definition_routes.ts | 0 .../server/saved_objects/entity_definition.ts | 0 .../saved_objects/entity_discovery_api_key.ts | 0 .../server/saved_objects/index.ts | 0 .../templates/components/base_latest.ts | 0 .../server/templates/components/entity.ts | 0 .../server/templates/components/event.ts | 0 .../shared}/entity_manager/server/types.ts | 0 .../shared}/entity_manager/tsconfig.json | 4 ++-- .../entity_manager_app/jest.config.js | 20 ----------------- .../entities_data_access/README.md | 0 .../entities_data_access/jest.config.js | 6 +++-- .../entities_data_access/kibana.jsonc | 0 .../entities_data_access/server/index.ts | 0 .../entities_data_access/server/plugin.ts | 0 .../entities_data_access/server/types.ts | 0 .../entities_data_access/tsconfig.json | 2 +- .../entity_manager_app/README.md | 0 .../entity_manager_app/jest.config.js | 22 +++++++++++++++++++ .../entity_manager_app/kibana.jsonc | 0 .../entity_manager_app/public/application.tsx | 0 .../public/context/plugin_context.ts | 0 .../public/hooks/use_kibana.ts | 0 .../public/hooks/use_plugin_context.ts | 0 .../entity_manager_app/public/index.ts | 0 .../public/pages/overview/index.tsx | 0 .../entity_manager_app/public/plugin.ts | 0 .../entity_manager_app/public/routes.tsx | 0 .../entity_manager_app/public/types.ts | 0 .../entity_manager_app/tsconfig.json | 4 ++-- yarn.lock | 8 +++---- 191 files changed, 67 insertions(+), 62 deletions(-) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/README.md (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/jest.config.js (74%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/oas.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/package.json (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/scripts/generate.js (89%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/scripts/generate_oas.js (93%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/scripts/serve_oas_ui.js (92%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/src/rest_spec/create.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/src/rest_spec/delete.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/src/rest_spec/get.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/src/rest_spec/reset.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/src/schema/__snapshots__/common.test.ts.snap (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/src/schema/common.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/src/schema/common.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/src/schema/entity.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/src/schema/entity.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/src/schema/entity_definition.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/src/schema/patterns.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/src/schema/patterns.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-entities-schema/tsconfig.json (84%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/README.md (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/common/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/common/constants_entities.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/common/debug_log.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/common/errors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/common/types_api.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/docs/entity_definitions.md (97%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/jest.config.js (53%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/public/lib/entity_client.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/public/lib/entity_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/public/lib/errors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/public/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/auth/api_key/api_key.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/auth/api_key/saved_object.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/auth/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/auth/privileges.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/containers_from_ecs_data.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/hosts_from_ecs_data.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_index_patterns.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_metadata.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/common/global_metadata.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_index_patterns.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_metadata.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cluster.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cron_job.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/ecs/daemon_set.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/ecs/deployment.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/ecs/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/ecs/job.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/ecs/node.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/ecs/pod.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/ecs/replica_set.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/ecs/service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/ecs/stateful_set.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cluster.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cron_job.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/semconv/daemon_set.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/semconv/deployment.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/semconv/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/semconv/job.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/semconv/node.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/semconv/pod.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/semconv/replica_set.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/kubernetes/semconv/stateful_set.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/built_in/services_from_ecs_data.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/create_and_install_ingest_pipeline.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/create_and_install_transform.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/delete_entity_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/delete_index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/delete_ingest_pipeline.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/delete_transforms.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/errors/entity_definition_id_invalid.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/errors/entity_definition_update_conflict.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/errors/entity_id_conflict_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/errors/entity_not_found.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/errors/entity_security_exception.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/errors/invalid_transform_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/find_entity_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/helpers/fixtures/builtin_entity_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/helpers/fixtures/entity_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/helpers/fixtures/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/helpers/generate_component_id.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/helpers/get_elasticsearch_query_or_throw.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/helpers/is_builtin_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/helpers/merge_definition_update.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/helpers/retry.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/ingest_pipeline/__snapshots__/generate_latest_processors.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/install_entity_definition.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/install_entity_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/read_entity_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/save_entity_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/start_transforms.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/stop_transforms.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/templates/__snapshots__/entities_latest_template.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/templates/entities_latest_template.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/templates/entities_latest_template.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/transform/__snapshots__/generate_latest_transform.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/transform/generate_identity_aggregations.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/transform/generate_latest_transform.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/transform/generate_latest_transform.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/transform/generate_metric_aggregations.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/transform/validate_transform_ids.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/transform/validate_transform_ids.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/uninstall_entity_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entities/upgrade_entity_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/entity_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/manage_index_templates.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/v2/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/v2/definitions/setup_entity_definitions_index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/v2/definitions/source_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/v2/definitions/type_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/v2/entity_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/v2/errors/entity_definition_conflict.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/v2/errors/unknown_entity_type.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/v2/queries/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/v2/queries/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/v2/queries/utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/v2/queries/utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/v2/run_esql_query.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/v2/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/validators/validate_date_range.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/lib/validators/validation_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/create_entity_manager_server_route.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/enablement/check.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/enablement/disable.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/enablement/enable.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/enablement/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/entities/create.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/entities/delete.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/entities/get.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/entities/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/entities/reset.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/entities/update.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/v2/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/v2/search.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/v2/source_definition_routes.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/routes/v2/type_definition_routes.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/saved_objects/entity_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/saved_objects/entity_discovery_api_key.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/saved_objects/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/templates/components/base_latest.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/templates/components/entity.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/templates/components/event.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/entity_manager/tsconfig.json (91%) delete mode 100644 x-pack/plugins/observability_solution/entity_manager_app/jest.config.js rename x-pack/{ => solutions/observability}/plugins/observability_solution/entities_data_access/README.md (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entities_data_access/jest.config.js (65%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entities_data_access/kibana.jsonc (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entities_data_access/server/index.ts (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entities_data_access/server/plugin.ts (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entities_data_access/server/types.ts (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entities_data_access/tsconfig.json (78%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entity_manager_app/README.md (100%) create mode 100644 x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js rename x-pack/{ => solutions/observability}/plugins/observability_solution/entity_manager_app/kibana.jsonc (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entity_manager_app/public/application.tsx (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entity_manager_app/public/context/plugin_context.ts (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entity_manager_app/public/hooks/use_kibana.ts (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entity_manager_app/public/hooks/use_plugin_context.ts (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entity_manager_app/public/index.ts (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entity_manager_app/public/pages/overview/index.tsx (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entity_manager_app/public/plugin.ts (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entity_manager_app/public/routes.tsx (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entity_manager_app/public/types.ts (100%) rename x-pack/{ => solutions/observability}/plugins/observability_solution/entity_manager_app/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5dbb563fda702..1b4119ca09e3c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -788,7 +788,6 @@ x-pack/packages/kbn-cloud-security-posture/public @elastic/kibana-cloud-security x-pack/packages/kbn-data-forge @elastic/obs-ux-management-team x-pack/packages/kbn-elastic-assistant @elastic/security-generative-ai x-pack/packages/kbn-elastic-assistant-common @elastic/security-generative-ai -x-pack/packages/kbn-entities-schema @elastic/obs-entities x-pack/packages/kbn-infra-forge @elastic/obs-ux-management-team x-pack/packages/kbn-langchain @elastic/security-generative-ai x-pack/packages/kbn-random-sampling @elastic/kibana-visualizations @@ -864,6 +863,8 @@ x-pack/packages/security/plugin_types_server @elastic/kibana-security x-pack/packages/security/role_management_model @elastic/kibana-security x-pack/packages/security/ui_components @elastic/kibana-security x-pack/performance @elastic/appex-qa +x-pack/platform/packages/shared/kbn-entities-schema @elastic/obs-entities +x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities x-pack/plugins/actions @elastic/response-ops x-pack/plugins/ai_infra/llm_tasks @elastic/appex-ai-infra x-pack/plugins/ai_infra/product_doc_base @elastic/appex-ai-infra @@ -894,7 +895,6 @@ x-pack/plugins/elastic_assistant @elastic/security-generative-ai 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 -x-pack/plugins/entity_manager @elastic/obs-entities x-pack/plugins/event_log @elastic/response-ops x-pack/plugins/features @elastic/kibana-core x-pack/plugins/fields_metadata @elastic/obs-ux-logs-team @@ -926,8 +926,6 @@ x-pack/plugins/observability_solution/apm @elastic/obs-ux-infra_services-team x-pack/plugins/observability_solution/apm_data_access @elastic/obs-ux-infra_services-team x-pack/plugins/observability_solution/apm/ftr_e2e @elastic/obs-ux-infra_services-team x-pack/plugins/observability_solution/dataset_quality @elastic/obs-ux-logs-team -x-pack/plugins/observability_solution/entities_data_access @elastic/obs-entities -x-pack/plugins/observability_solution/entity_manager_app @elastic/obs-entities x-pack/plugins/observability_solution/exploratory_view @elastic/obs-ux-management-team x-pack/plugins/observability_solution/infra @elastic/obs-ux-logs-team @elastic/obs-ux-infra_services-team x-pack/plugins/observability_solution/inventory @elastic/obs-ux-infra_services-team @@ -994,6 +992,8 @@ x-pack/plugins/translations @elastic/kibana-localization x-pack/plugins/triggers_actions_ui @elastic/response-ops x-pack/plugins/upgrade_assistant @elastic/kibana-management x-pack/plugins/watcher @elastic/kibana-management +x-pack/solutions/observability/plugins/observability_solution/entities_data_access @elastic/obs-entities +x-pack/solutions/observability/plugins/observability_solution/entity_manager_app @elastic/obs-entities x-pack/test x-pack/test_serverless x-pack/test/alerting_api_integration/common/plugins/aad @elastic/response-ops diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 00841c869ef4f..0baaf75b79493 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -575,15 +575,15 @@ security and spaces filtering. |This plugin provides Kibana user interfaces for managing the Enterprise Search solution and its products, App Search and Workplace Search. -|{kib-repo}blob/{branch}/x-pack/plugins/observability_solution/entities_data_access/README.md[entitiesDataAccess] +|{kib-repo}blob/{branch}/x-pack/solutions/observability/plugins/observability_solution/entities_data_access/README.md[entitiesDataAccess] |Exposes services to access entities data. -|{kib-repo}blob/{branch}/x-pack/plugins/entity_manager/README.md[entityManager] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/entity_manager/README.md[entityManager] |This plugin provides access to observed entity data, such as information about hosts, pods, containers, services, and more. -|{kib-repo}blob/{branch}/x-pack/plugins/observability_solution/entity_manager_app/README.md[entityManagerApp] +|{kib-repo}blob/{branch}/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/README.md[entityManagerApp] |This plugin provides a user interface to interact with the Entity Manager. diff --git a/package.json b/package.json index 05f10169d5e81..c32e875489aba 100644 --- a/package.json +++ b/package.json @@ -477,11 +477,11 @@ "@kbn/embedded-lens-example-plugin": "link:x-pack/examples/embedded_lens_example", "@kbn/encrypted-saved-objects-plugin": "link:x-pack/plugins/encrypted_saved_objects", "@kbn/enterprise-search-plugin": "link:x-pack/plugins/enterprise_search", - "@kbn/entities-data-access-plugin": "link:x-pack/plugins/observability_solution/entities_data_access", - "@kbn/entities-schema": "link:x-pack/packages/kbn-entities-schema", + "@kbn/entities-data-access-plugin": "link:x-pack/solutions/observability/plugins/observability_solution/entities_data_access", + "@kbn/entities-schema": "link:x-pack/platform/packages/shared/kbn-entities-schema", "@kbn/entity-manager-fixture-plugin": "link:x-pack/test/api_integration/apis/entity_manager/fixture_plugin", - "@kbn/entityManager-app-plugin": "link:x-pack/plugins/observability_solution/entity_manager_app", - "@kbn/entityManager-plugin": "link:x-pack/plugins/entity_manager", + "@kbn/entityManager-app-plugin": "link:x-pack/solutions/observability/plugins/observability_solution/entity_manager_app", + "@kbn/entityManager-plugin": "link:x-pack/platform/plugins/shared/entity_manager", "@kbn/error-boundary-example-plugin": "link:examples/error_boundary", "@kbn/es-errors": "link:packages/kbn-es-errors", "@kbn/es-query": "link:packages/kbn-es-query", diff --git a/tsconfig.base.json b/tsconfig.base.json index 85eaafc729e61..de0d8a384222a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -822,16 +822,16 @@ "@kbn/encrypted-saved-objects-plugin/*": ["x-pack/plugins/encrypted_saved_objects/*"], "@kbn/enterprise-search-plugin": ["x-pack/plugins/enterprise_search"], "@kbn/enterprise-search-plugin/*": ["x-pack/plugins/enterprise_search/*"], - "@kbn/entities-data-access-plugin": ["x-pack/plugins/observability_solution/entities_data_access"], - "@kbn/entities-data-access-plugin/*": ["x-pack/plugins/observability_solution/entities_data_access/*"], - "@kbn/entities-schema": ["x-pack/packages/kbn-entities-schema"], - "@kbn/entities-schema/*": ["x-pack/packages/kbn-entities-schema/*"], + "@kbn/entities-data-access-plugin": ["x-pack/solutions/observability/plugins/observability_solution/entities_data_access"], + "@kbn/entities-data-access-plugin/*": ["x-pack/solutions/observability/plugins/observability_solution/entities_data_access/*"], + "@kbn/entities-schema": ["x-pack/platform/packages/shared/kbn-entities-schema"], + "@kbn/entities-schema/*": ["x-pack/platform/packages/shared/kbn-entities-schema/*"], "@kbn/entity-manager-fixture-plugin": ["x-pack/test/api_integration/apis/entity_manager/fixture_plugin"], "@kbn/entity-manager-fixture-plugin/*": ["x-pack/test/api_integration/apis/entity_manager/fixture_plugin/*"], - "@kbn/entityManager-app-plugin": ["x-pack/plugins/observability_solution/entity_manager_app"], - "@kbn/entityManager-app-plugin/*": ["x-pack/plugins/observability_solution/entity_manager_app/*"], - "@kbn/entityManager-plugin": ["x-pack/plugins/entity_manager"], - "@kbn/entityManager-plugin/*": ["x-pack/plugins/entity_manager/*"], + "@kbn/entityManager-app-plugin": ["x-pack/solutions/observability/plugins/observability_solution/entity_manager_app"], + "@kbn/entityManager-app-plugin/*": ["x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/*"], + "@kbn/entityManager-plugin": ["x-pack/platform/plugins/shared/entity_manager"], + "@kbn/entityManager-plugin/*": ["x-pack/platform/plugins/shared/entity_manager/*"], "@kbn/error-boundary-example-plugin": ["examples/error_boundary"], "@kbn/error-boundary-example-plugin/*": ["examples/error_boundary/*"], "@kbn/es": ["packages/kbn-es"], diff --git a/x-pack/packages/kbn-entities-schema/README.md b/x-pack/platform/packages/shared/kbn-entities-schema/README.md similarity index 100% rename from x-pack/packages/kbn-entities-schema/README.md rename to x-pack/platform/packages/shared/kbn-entities-schema/README.md diff --git a/x-pack/packages/kbn-entities-schema/index.ts b/x-pack/platform/packages/shared/kbn-entities-schema/index.ts similarity index 100% rename from x-pack/packages/kbn-entities-schema/index.ts rename to x-pack/platform/packages/shared/kbn-entities-schema/index.ts diff --git a/x-pack/packages/kbn-entities-schema/jest.config.js b/x-pack/platform/packages/shared/kbn-entities-schema/jest.config.js similarity index 74% rename from x-pack/packages/kbn-entities-schema/jest.config.js rename to x-pack/platform/packages/shared/kbn-entities-schema/jest.config.js index 1d10119431ec3..8a124563b366e 100644 --- a/x-pack/packages/kbn-entities-schema/jest.config.js +++ b/x-pack/platform/packages/shared/kbn-entities-schema/jest.config.js @@ -7,6 +7,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/packages/kbn-entities-schema'], + rootDir: '../../../../..', + roots: ['/x-pack/platform/packages/shared/kbn-entities-schema'], }; diff --git a/x-pack/packages/kbn-entities-schema/kibana.jsonc b/x-pack/platform/packages/shared/kbn-entities-schema/kibana.jsonc similarity index 100% rename from x-pack/packages/kbn-entities-schema/kibana.jsonc rename to x-pack/platform/packages/shared/kbn-entities-schema/kibana.jsonc diff --git a/x-pack/packages/kbn-entities-schema/oas.yaml b/x-pack/platform/packages/shared/kbn-entities-schema/oas.yaml similarity index 100% rename from x-pack/packages/kbn-entities-schema/oas.yaml rename to x-pack/platform/packages/shared/kbn-entities-schema/oas.yaml diff --git a/x-pack/packages/kbn-entities-schema/package.json b/x-pack/platform/packages/shared/kbn-entities-schema/package.json similarity index 100% rename from x-pack/packages/kbn-entities-schema/package.json rename to x-pack/platform/packages/shared/kbn-entities-schema/package.json diff --git a/x-pack/packages/kbn-entities-schema/scripts/generate.js b/x-pack/platform/packages/shared/kbn-entities-schema/scripts/generate.js similarity index 89% rename from x-pack/packages/kbn-entities-schema/scripts/generate.js rename to x-pack/platform/packages/shared/kbn-entities-schema/scripts/generate.js index e3214affce38e..7568dafb324dc 100644 --- a/x-pack/packages/kbn-entities-schema/scripts/generate.js +++ b/x-pack/platform/packages/shared/kbn-entities-schema/scripts/generate.js @@ -5,7 +5,7 @@ * 2.0. */ -require('../../../../src/setup_node_env'); +require('../../../../../../src/setup_node_env'); const { generateOAS } = require('./generate_oas'); const { writeFileSync } = require('fs'); diff --git a/x-pack/packages/kbn-entities-schema/scripts/generate_oas.js b/x-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js similarity index 93% rename from x-pack/packages/kbn-entities-schema/scripts/generate_oas.js rename to x-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js index d1310535db3a9..e3fa2f0b58c31 100644 --- a/x-pack/packages/kbn-entities-schema/scripts/generate_oas.js +++ b/x-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js @@ -5,7 +5,7 @@ * 2.0. */ -require('../../../../src/setup_node_env'); +require('../../../../../../src/setup_node_env'); const swaggerJsdoc = require('swagger-jsdoc'); const { zodToJsonSchema } = require('zod-to-json-schema'); @@ -62,6 +62,6 @@ export const generateOAS = (options) => }, }, }, - apis: ['../../plugins/observability_solution/entity_manager/server/routes/**/*.ts'], + apis: ['../../../../plugins/observability_solution/entity_manager/server/routes/**/*.ts'], ...options, }); diff --git a/x-pack/packages/kbn-entities-schema/scripts/serve_oas_ui.js b/x-pack/platform/packages/shared/kbn-entities-schema/scripts/serve_oas_ui.js similarity index 92% rename from x-pack/packages/kbn-entities-schema/scripts/serve_oas_ui.js rename to x-pack/platform/packages/shared/kbn-entities-schema/scripts/serve_oas_ui.js index 956163f665bcf..d004c66db14d1 100644 --- a/x-pack/packages/kbn-entities-schema/scripts/serve_oas_ui.js +++ b/x-pack/platform/packages/shared/kbn-entities-schema/scripts/serve_oas_ui.js @@ -5,7 +5,7 @@ * 2.0. */ -require('../../../../src/setup_node_env'); +require('../../../../../../src/setup_node_env'); const { generateOAS } = require('./generate_oas'); const express = require('express'); diff --git a/x-pack/packages/kbn-entities-schema/src/rest_spec/create.ts b/x-pack/platform/packages/shared/kbn-entities-schema/src/rest_spec/create.ts similarity index 100% rename from x-pack/packages/kbn-entities-schema/src/rest_spec/create.ts rename to x-pack/platform/packages/shared/kbn-entities-schema/src/rest_spec/create.ts diff --git a/x-pack/packages/kbn-entities-schema/src/rest_spec/delete.ts b/x-pack/platform/packages/shared/kbn-entities-schema/src/rest_spec/delete.ts similarity index 100% rename from x-pack/packages/kbn-entities-schema/src/rest_spec/delete.ts rename to x-pack/platform/packages/shared/kbn-entities-schema/src/rest_spec/delete.ts diff --git a/x-pack/packages/kbn-entities-schema/src/rest_spec/get.ts b/x-pack/platform/packages/shared/kbn-entities-schema/src/rest_spec/get.ts similarity index 100% rename from x-pack/packages/kbn-entities-schema/src/rest_spec/get.ts rename to x-pack/platform/packages/shared/kbn-entities-schema/src/rest_spec/get.ts diff --git a/x-pack/packages/kbn-entities-schema/src/rest_spec/reset.ts b/x-pack/platform/packages/shared/kbn-entities-schema/src/rest_spec/reset.ts similarity index 100% rename from x-pack/packages/kbn-entities-schema/src/rest_spec/reset.ts rename to x-pack/platform/packages/shared/kbn-entities-schema/src/rest_spec/reset.ts diff --git a/x-pack/packages/kbn-entities-schema/src/schema/__snapshots__/common.test.ts.snap b/x-pack/platform/packages/shared/kbn-entities-schema/src/schema/__snapshots__/common.test.ts.snap similarity index 100% rename from x-pack/packages/kbn-entities-schema/src/schema/__snapshots__/common.test.ts.snap rename to x-pack/platform/packages/shared/kbn-entities-schema/src/schema/__snapshots__/common.test.ts.snap diff --git a/x-pack/packages/kbn-entities-schema/src/schema/common.test.ts b/x-pack/platform/packages/shared/kbn-entities-schema/src/schema/common.test.ts similarity index 100% rename from x-pack/packages/kbn-entities-schema/src/schema/common.test.ts rename to x-pack/platform/packages/shared/kbn-entities-schema/src/schema/common.test.ts diff --git a/x-pack/packages/kbn-entities-schema/src/schema/common.ts b/x-pack/platform/packages/shared/kbn-entities-schema/src/schema/common.ts similarity index 100% rename from x-pack/packages/kbn-entities-schema/src/schema/common.ts rename to x-pack/platform/packages/shared/kbn-entities-schema/src/schema/common.ts diff --git a/x-pack/packages/kbn-entities-schema/src/schema/entity.test.ts b/x-pack/platform/packages/shared/kbn-entities-schema/src/schema/entity.test.ts similarity index 100% rename from x-pack/packages/kbn-entities-schema/src/schema/entity.test.ts rename to x-pack/platform/packages/shared/kbn-entities-schema/src/schema/entity.test.ts diff --git a/x-pack/packages/kbn-entities-schema/src/schema/entity.ts b/x-pack/platform/packages/shared/kbn-entities-schema/src/schema/entity.ts similarity index 100% rename from x-pack/packages/kbn-entities-schema/src/schema/entity.ts rename to x-pack/platform/packages/shared/kbn-entities-schema/src/schema/entity.ts diff --git a/x-pack/packages/kbn-entities-schema/src/schema/entity_definition.ts b/x-pack/platform/packages/shared/kbn-entities-schema/src/schema/entity_definition.ts similarity index 100% rename from x-pack/packages/kbn-entities-schema/src/schema/entity_definition.ts rename to x-pack/platform/packages/shared/kbn-entities-schema/src/schema/entity_definition.ts diff --git a/x-pack/packages/kbn-entities-schema/src/schema/patterns.test.ts b/x-pack/platform/packages/shared/kbn-entities-schema/src/schema/patterns.test.ts similarity index 100% rename from x-pack/packages/kbn-entities-schema/src/schema/patterns.test.ts rename to x-pack/platform/packages/shared/kbn-entities-schema/src/schema/patterns.test.ts diff --git a/x-pack/packages/kbn-entities-schema/src/schema/patterns.ts b/x-pack/platform/packages/shared/kbn-entities-schema/src/schema/patterns.ts similarity index 100% rename from x-pack/packages/kbn-entities-schema/src/schema/patterns.ts rename to x-pack/platform/packages/shared/kbn-entities-schema/src/schema/patterns.ts diff --git a/x-pack/packages/kbn-entities-schema/tsconfig.json b/x-pack/platform/packages/shared/kbn-entities-schema/tsconfig.json similarity index 84% rename from x-pack/packages/kbn-entities-schema/tsconfig.json rename to x-pack/platform/packages/shared/kbn-entities-schema/tsconfig.json index 0fdbba4b7e793..d683c80d0cb12 100644 --- a/x-pack/packages/kbn-entities-schema/tsconfig.json +++ b/x-pack/platform/packages/shared/kbn-entities-schema/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/x-pack/plugins/entity_manager/README.md b/x-pack/platform/plugins/shared/entity_manager/README.md similarity index 100% rename from x-pack/plugins/entity_manager/README.md rename to x-pack/platform/plugins/shared/entity_manager/README.md diff --git a/x-pack/plugins/entity_manager/common/config.ts b/x-pack/platform/plugins/shared/entity_manager/common/config.ts similarity index 100% rename from x-pack/plugins/entity_manager/common/config.ts rename to x-pack/platform/plugins/shared/entity_manager/common/config.ts diff --git a/x-pack/plugins/entity_manager/common/constants_entities.ts b/x-pack/platform/plugins/shared/entity_manager/common/constants_entities.ts similarity index 100% rename from x-pack/plugins/entity_manager/common/constants_entities.ts rename to x-pack/platform/plugins/shared/entity_manager/common/constants_entities.ts diff --git a/x-pack/plugins/entity_manager/common/debug_log.ts b/x-pack/platform/plugins/shared/entity_manager/common/debug_log.ts similarity index 100% rename from x-pack/plugins/entity_manager/common/debug_log.ts rename to x-pack/platform/plugins/shared/entity_manager/common/debug_log.ts diff --git a/x-pack/plugins/entity_manager/common/errors.ts b/x-pack/platform/plugins/shared/entity_manager/common/errors.ts similarity index 100% rename from x-pack/plugins/entity_manager/common/errors.ts rename to x-pack/platform/plugins/shared/entity_manager/common/errors.ts diff --git a/x-pack/plugins/entity_manager/common/types_api.ts b/x-pack/platform/plugins/shared/entity_manager/common/types_api.ts similarity index 100% rename from x-pack/plugins/entity_manager/common/types_api.ts rename to x-pack/platform/plugins/shared/entity_manager/common/types_api.ts diff --git a/x-pack/plugins/entity_manager/docs/entity_definitions.md b/x-pack/platform/plugins/shared/entity_manager/docs/entity_definitions.md similarity index 97% rename from x-pack/plugins/entity_manager/docs/entity_definitions.md rename to x-pack/platform/plugins/shared/entity_manager/docs/entity_definitions.md index fd08f1effd5a8..5ae22e6823737 100644 --- a/x-pack/plugins/entity_manager/docs/entity_definitions.md +++ b/x-pack/platform/plugins/shared/entity_manager/docs/entity_definitions.md @@ -7,7 +7,7 @@ Entity definitions are a core concept of the entity model. They define the way t > [!NOTE] > Entity definitions are based on transform and as such a subset of the configuration is tightly coupled to transform settings. While we provide defaults for these settings, one can still update properties such as `frequency`, `sync.time.delay` and `sync.time.field` (see [transform documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html)). -When creating a definition (see [entity definition schema](https://github.com/elastic/kibana/blob/main/x-pack/packages/kbn-entities-schema/src/schema/entity_definition.ts#L21)), entity manager will create a transforms to collect entities based on the configured [identityFields](https://github.com/elastic/kibana/blob/main/x-pack/packages/kbn-entities-schema/src/schema/entity_definition.ts#L29). +When creating a definition (see [entity definition schema](https://github.com/elastic/kibana/blob/main/x-pack/platform/packages/shared/kbn-entities-schema/src/schema/entity_definition.ts#L21)), entity manager will create a transforms to collect entities based on the configured [identityFields](https://github.com/elastic/kibana/blob/main/x-pack/platform/packages/shared/kbn-entities-schema/src/schema/entity_definition.ts#L29). The transform creates one document per entity, reading documents from the configured source indices and grouping them by the identity fields. Each entity document gets overwritten each time the transform runs. The transforms outputs the data to a unique index (`.entities.v1.latest.`). diff --git a/x-pack/plugins/entity_manager/jest.config.js b/x-pack/platform/plugins/shared/entity_manager/jest.config.js similarity index 53% rename from x-pack/plugins/entity_manager/jest.config.js rename to x-pack/platform/plugins/shared/entity_manager/jest.config.js index 615d1c851895b..0f3a42c2452c9 100644 --- a/x-pack/plugins/entity_manager/jest.config.js +++ b/x-pack/platform/plugins/shared/entity_manager/jest.config.js @@ -7,11 +7,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/entity_manager'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/entity_manager', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/entity_manager'], + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/entity_manager', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/plugins/entity_manager/{common,public,server}/**/*.{js,ts,tsx}', + '/x-pack/platform/plugins/shared/entity_manager/{common,public,server}/**/*.{js,ts,tsx}', ], }; diff --git a/x-pack/plugins/entity_manager/kibana.jsonc b/x-pack/platform/plugins/shared/entity_manager/kibana.jsonc similarity index 100% rename from x-pack/plugins/entity_manager/kibana.jsonc rename to x-pack/platform/plugins/shared/entity_manager/kibana.jsonc diff --git a/x-pack/plugins/entity_manager/public/index.ts b/x-pack/platform/plugins/shared/entity_manager/public/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/public/index.ts rename to x-pack/platform/plugins/shared/entity_manager/public/index.ts diff --git a/x-pack/plugins/entity_manager/public/lib/entity_client.test.ts b/x-pack/platform/plugins/shared/entity_manager/public/lib/entity_client.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/public/lib/entity_client.test.ts rename to x-pack/platform/plugins/shared/entity_manager/public/lib/entity_client.test.ts diff --git a/x-pack/plugins/entity_manager/public/lib/entity_client.ts b/x-pack/platform/plugins/shared/entity_manager/public/lib/entity_client.ts similarity index 100% rename from x-pack/plugins/entity_manager/public/lib/entity_client.ts rename to x-pack/platform/plugins/shared/entity_manager/public/lib/entity_client.ts diff --git a/x-pack/plugins/entity_manager/public/lib/errors.ts b/x-pack/platform/plugins/shared/entity_manager/public/lib/errors.ts similarity index 100% rename from x-pack/plugins/entity_manager/public/lib/errors.ts rename to x-pack/platform/plugins/shared/entity_manager/public/lib/errors.ts diff --git a/x-pack/plugins/entity_manager/public/plugin.ts b/x-pack/platform/plugins/shared/entity_manager/public/plugin.ts similarity index 100% rename from x-pack/plugins/entity_manager/public/plugin.ts rename to x-pack/platform/plugins/shared/entity_manager/public/plugin.ts diff --git a/x-pack/plugins/entity_manager/public/types.ts b/x-pack/platform/plugins/shared/entity_manager/public/types.ts similarity index 100% rename from x-pack/plugins/entity_manager/public/types.ts rename to x-pack/platform/plugins/shared/entity_manager/public/types.ts diff --git a/x-pack/plugins/entity_manager/server/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/auth/api_key/api_key.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/auth/api_key/api_key.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/auth/api_key/api_key.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/auth/api_key/api_key.ts diff --git a/x-pack/plugins/entity_manager/server/lib/auth/api_key/saved_object.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/auth/api_key/saved_object.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/auth/api_key/saved_object.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/auth/api_key/saved_object.ts diff --git a/x-pack/plugins/entity_manager/server/lib/auth/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/auth/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/auth/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/auth/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/auth/privileges.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/auth/privileges.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/auth/privileges.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/auth/privileges.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/constants.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/constants.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/constants.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/constants.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/containers_from_ecs_data.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/containers_from_ecs_data.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/containers_from_ecs_data.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/containers_from_ecs_data.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/hosts_from_ecs_data.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/hosts_from_ecs_data.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/hosts_from_ecs_data.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/hosts_from_ecs_data.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_index_patterns.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_index_patterns.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_index_patterns.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_index_patterns.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_metadata.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_metadata.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_metadata.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_metadata.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/global_metadata.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/global_metadata.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/global_metadata.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/global_metadata.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_index_patterns.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_index_patterns.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_index_patterns.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_index_patterns.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_metadata.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_metadata.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_metadata.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_metadata.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cluster.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cluster.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cluster.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cluster.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cron_job.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cron_job.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cron_job.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cron_job.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/daemon_set.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/daemon_set.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/daemon_set.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/daemon_set.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/deployment.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/deployment.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/deployment.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/deployment.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/job.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/job.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/job.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/job.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/node.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/node.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/node.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/node.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/pod.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/pod.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/pod.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/pod.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/replica_set.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/replica_set.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/replica_set.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/replica_set.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/service.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/service.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/service.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/service.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/stateful_set.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/stateful_set.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/stateful_set.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/stateful_set.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cluster.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cluster.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cluster.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cluster.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cron_job.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cron_job.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cron_job.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cron_job.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/daemon_set.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/daemon_set.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/daemon_set.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/daemon_set.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/deployment.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/deployment.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/deployment.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/deployment.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/job.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/job.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/job.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/job.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/node.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/node.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/node.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/node.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/pod.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/pod.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/pod.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/pod.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/replica_set.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/replica_set.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/replica_set.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/replica_set.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/stateful_set.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/stateful_set.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/stateful_set.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/stateful_set.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/services_from_ecs_data.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/services_from_ecs_data.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/services_from_ecs_data.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/services_from_ecs_data.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/create_and_install_ingest_pipeline.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/create_and_install_ingest_pipeline.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/create_and_install_ingest_pipeline.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/create_and_install_ingest_pipeline.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/create_and_install_transform.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/create_and_install_transform.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/create_and_install_transform.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/create_and_install_transform.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/delete_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/delete_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/delete_index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/delete_index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/delete_ingest_pipeline.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_ingest_pipeline.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/delete_ingest_pipeline.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_ingest_pipeline.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/delete_transforms.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_transforms.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/delete_transforms.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_transforms.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/errors/entity_definition_id_invalid.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_definition_id_invalid.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/errors/entity_definition_id_invalid.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_definition_id_invalid.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/errors/entity_definition_update_conflict.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_definition_update_conflict.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/errors/entity_definition_update_conflict.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_definition_update_conflict.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/errors/entity_id_conflict_error.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_id_conflict_error.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/errors/entity_id_conflict_error.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_id_conflict_error.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/errors/entity_not_found.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_not_found.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/errors/entity_not_found.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_not_found.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/errors/entity_security_exception.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_security_exception.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/errors/entity_security_exception.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_security_exception.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/errors/invalid_transform_error.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/invalid_transform_error.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/errors/invalid_transform_error.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/invalid_transform_error.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/find_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/find_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/find_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/find_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/fixtures/builtin_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/fixtures/builtin_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/fixtures/builtin_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/fixtures/builtin_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/fixtures/entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/fixtures/entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/fixtures/entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/fixtures/entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/fixtures/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/fixtures/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/fixtures/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/fixtures/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/generate_component_id.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/generate_component_id.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/generate_component_id.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/generate_component_id.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/get_elasticsearch_query_or_throw.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/get_elasticsearch_query_or_throw.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/get_elasticsearch_query_or_throw.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/get_elasticsearch_query_or_throw.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/is_builtin_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/is_builtin_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/is_builtin_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/is_builtin_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/merge_definition_update.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/merge_definition_update.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/merge_definition_update.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/merge_definition_update.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/retry.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/retry.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/retry.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/retry.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/ingest_pipeline/__snapshots__/generate_latest_processors.test.ts.snap b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/ingest_pipeline/__snapshots__/generate_latest_processors.test.ts.snap similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/ingest_pipeline/__snapshots__/generate_latest_processors.test.ts.snap rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/ingest_pipeline/__snapshots__/generate_latest_processors.test.ts.snap diff --git a/x-pack/plugins/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/install_entity_definition.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/install_entity_definition.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/install_entity_definition.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/install_entity_definition.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/install_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/install_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/install_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/install_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/read_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/read_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/read_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/read_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/save_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/save_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/save_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/save_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/start_transforms.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/start_transforms.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/start_transforms.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/start_transforms.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/stop_transforms.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/stop_transforms.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/stop_transforms.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/stop_transforms.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/templates/__snapshots__/entities_latest_template.test.ts.snap b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/templates/__snapshots__/entities_latest_template.test.ts.snap similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/templates/__snapshots__/entities_latest_template.test.ts.snap rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/templates/__snapshots__/entities_latest_template.test.ts.snap diff --git a/x-pack/plugins/entity_manager/server/lib/entities/templates/entities_latest_template.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/templates/entities_latest_template.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/templates/entities_latest_template.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/templates/entities_latest_template.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/templates/entities_latest_template.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/templates/entities_latest_template.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/templates/entities_latest_template.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/templates/entities_latest_template.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/__snapshots__/generate_latest_transform.test.ts.snap b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/__snapshots__/generate_latest_transform.test.ts.snap similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/__snapshots__/generate_latest_transform.test.ts.snap rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/__snapshots__/generate_latest_transform.test.ts.snap diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/generate_identity_aggregations.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_identity_aggregations.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/generate_identity_aggregations.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_identity_aggregations.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/generate_latest_transform.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_latest_transform.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/generate_latest_transform.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_latest_transform.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/generate_latest_transform.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_latest_transform.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/generate_latest_transform.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_latest_transform.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/generate_metric_aggregations.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_metric_aggregations.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/generate_metric_aggregations.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_metric_aggregations.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/validate_transform_ids.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/validate_transform_ids.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/validate_transform_ids.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/validate_transform_ids.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/validate_transform_ids.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/validate_transform_ids.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/validate_transform_ids.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/validate_transform_ids.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/types.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/types.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/types.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/types.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/uninstall_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/uninstall_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/uninstall_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/uninstall_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/upgrade_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/upgrade_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/upgrade_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/upgrade_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entity_client.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entity_client.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entity_client.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entity_client.ts diff --git a/x-pack/plugins/entity_manager/server/lib/manage_index_templates.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/manage_index_templates.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/manage_index_templates.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/manage_index_templates.ts diff --git a/x-pack/plugins/entity_manager/server/lib/utils.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/utils.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/utils.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/utils.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/constants.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/constants.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/constants.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/constants.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/definitions/setup_entity_definitions_index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/setup_entity_definitions_index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/definitions/setup_entity_definitions_index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/setup_entity_definitions_index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/definitions/source_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/source_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/definitions/source_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/source_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/definitions/type_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/type_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/definitions/type_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/type_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/entity_client.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/entity_client.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/entity_client.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/entity_client.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/errors/entity_definition_conflict.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/errors/entity_definition_conflict.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/errors/entity_definition_conflict.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/errors/entity_definition_conflict.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/errors/unknown_entity_type.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/errors/unknown_entity_type.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/errors/unknown_entity_type.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/errors/unknown_entity_type.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/queries/index.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/index.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/queries/index.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/index.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/queries/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/queries/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/queries/utils.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/utils.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/queries/utils.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/utils.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/queries/utils.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/utils.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/queries/utils.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/utils.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/run_esql_query.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/run_esql_query.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/run_esql_query.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/run_esql_query.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/types.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/types.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/types.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/types.ts diff --git a/x-pack/plugins/entity_manager/server/lib/validators/validate_date_range.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/validators/validate_date_range.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/validators/validate_date_range.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/validators/validate_date_range.ts diff --git a/x-pack/plugins/entity_manager/server/lib/validators/validation_error.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/validators/validation_error.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/validators/validation_error.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/validators/validation_error.ts diff --git a/x-pack/plugins/entity_manager/server/plugin.ts b/x-pack/platform/plugins/shared/entity_manager/server/plugin.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/plugin.ts rename to x-pack/platform/plugins/shared/entity_manager/server/plugin.ts diff --git a/x-pack/plugins/entity_manager/server/routes/create_entity_manager_server_route.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/create_entity_manager_server_route.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/create_entity_manager_server_route.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/create_entity_manager_server_route.ts diff --git a/x-pack/plugins/entity_manager/server/routes/enablement/check.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/check.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/enablement/check.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/check.ts diff --git a/x-pack/plugins/entity_manager/server/routes/enablement/disable.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/disable.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/enablement/disable.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/disable.ts diff --git a/x-pack/plugins/entity_manager/server/routes/enablement/enable.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/enable.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/enablement/enable.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/enable.ts diff --git a/x-pack/plugins/entity_manager/server/routes/enablement/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/enablement/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/index.ts diff --git a/x-pack/plugins/entity_manager/server/routes/entities/create.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/entities/create.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/entities/create.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/entities/create.ts diff --git a/x-pack/plugins/entity_manager/server/routes/entities/delete.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/entities/delete.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/entities/delete.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/entities/delete.ts diff --git a/x-pack/plugins/entity_manager/server/routes/entities/get.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/entities/get.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/entities/get.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/entities/get.ts diff --git a/x-pack/plugins/entity_manager/server/routes/entities/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/entities/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/entities/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/entities/index.ts diff --git a/x-pack/plugins/entity_manager/server/routes/entities/reset.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/entities/reset.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/entities/reset.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/entities/reset.ts diff --git a/x-pack/plugins/entity_manager/server/routes/entities/update.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/entities/update.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/entities/update.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/entities/update.ts diff --git a/x-pack/plugins/entity_manager/server/routes/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/index.ts diff --git a/x-pack/plugins/entity_manager/server/routes/types.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/types.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/types.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/types.ts diff --git a/x-pack/plugins/entity_manager/server/routes/v2/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/v2/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/v2/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/v2/index.ts diff --git a/x-pack/plugins/entity_manager/server/routes/v2/search.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/v2/search.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/v2/search.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/v2/search.ts diff --git a/x-pack/plugins/entity_manager/server/routes/v2/source_definition_routes.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/v2/source_definition_routes.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/v2/source_definition_routes.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/v2/source_definition_routes.ts diff --git a/x-pack/plugins/entity_manager/server/routes/v2/type_definition_routes.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/v2/type_definition_routes.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/v2/type_definition_routes.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/v2/type_definition_routes.ts diff --git a/x-pack/plugins/entity_manager/server/saved_objects/entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/saved_objects/entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/saved_objects/entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/saved_objects/entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/saved_objects/entity_discovery_api_key.ts b/x-pack/platform/plugins/shared/entity_manager/server/saved_objects/entity_discovery_api_key.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/saved_objects/entity_discovery_api_key.ts rename to x-pack/platform/plugins/shared/entity_manager/server/saved_objects/entity_discovery_api_key.ts diff --git a/x-pack/plugins/entity_manager/server/saved_objects/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/saved_objects/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/saved_objects/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/saved_objects/index.ts diff --git a/x-pack/plugins/entity_manager/server/templates/components/base_latest.ts b/x-pack/platform/plugins/shared/entity_manager/server/templates/components/base_latest.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/templates/components/base_latest.ts rename to x-pack/platform/plugins/shared/entity_manager/server/templates/components/base_latest.ts diff --git a/x-pack/plugins/entity_manager/server/templates/components/entity.ts b/x-pack/platform/plugins/shared/entity_manager/server/templates/components/entity.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/templates/components/entity.ts rename to x-pack/platform/plugins/shared/entity_manager/server/templates/components/entity.ts diff --git a/x-pack/plugins/entity_manager/server/templates/components/event.ts b/x-pack/platform/plugins/shared/entity_manager/server/templates/components/event.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/templates/components/event.ts rename to x-pack/platform/plugins/shared/entity_manager/server/templates/components/event.ts diff --git a/x-pack/plugins/entity_manager/server/types.ts b/x-pack/platform/plugins/shared/entity_manager/server/types.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/types.ts rename to x-pack/platform/plugins/shared/entity_manager/server/types.ts diff --git a/x-pack/plugins/entity_manager/tsconfig.json b/x-pack/platform/plugins/shared/entity_manager/tsconfig.json similarity index 91% rename from x-pack/plugins/entity_manager/tsconfig.json rename to x-pack/platform/plugins/shared/entity_manager/tsconfig.json index 4c75ac101f6ad..beb8097502b2b 100644 --- a/x-pack/plugins/entity_manager/tsconfig.json +++ b/x-pack/platform/plugins/shared/entity_manager/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, "include": [ - "../../../typings/**/*", + "../../../../../typings/**/*", "common/**/*", "server/**/*", "public/**/*", diff --git a/x-pack/plugins/observability_solution/entity_manager_app/jest.config.js b/x-pack/plugins/observability_solution/entity_manager_app/jest.config.js deleted file mode 100644 index d8217a43063a2..0000000000000 --- a/x-pack/plugins/observability_solution/entity_manager_app/jest.config.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -const path = require('path'); - -module.exports = { - preset: '@kbn/test', - rootDir: path.resolve(__dirname, '../../../..'), - roots: ['/x-pack/plugins/observability_solution/entity_manager_app'], - coverageDirectory: - '/target/kibana-coverage/jest/x-pack/plugins/observability_solution/entity_manager_app', - coverageReporters: ['text', 'html'], - collectCoverageFrom: [ - '/x-pack/plugins/observability_solution/entity_manager_app/{common,public,server}/**/*.{js,ts,tsx}', - ], -}; diff --git a/x-pack/plugins/observability_solution/entities_data_access/README.md b/x-pack/solutions/observability/plugins/observability_solution/entities_data_access/README.md similarity index 100% rename from x-pack/plugins/observability_solution/entities_data_access/README.md rename to x-pack/solutions/observability/plugins/observability_solution/entities_data_access/README.md diff --git a/x-pack/plugins/observability_solution/entities_data_access/jest.config.js b/x-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js similarity index 65% rename from x-pack/plugins/observability_solution/entities_data_access/jest.config.js rename to x-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js index 9a813d5ebfee0..2676048c712b2 100644 --- a/x-pack/plugins/observability_solution/entities_data_access/jest.config.js +++ b/x-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js @@ -9,6 +9,8 @@ const path = require('path'); module.exports = { preset: '@kbn/test', - rootDir: path.resolve(__dirname, '../../../..'), - roots: ['/x-pack/plugins/observability_solution/entities_data_access'], + rootDir: path.resolve(__dirname, '../../../../../..'), + roots: [ + '/x-pack/solutions/observability/plugins/observability_solution/entities_data_access', + ], }; diff --git a/x-pack/plugins/observability_solution/entities_data_access/kibana.jsonc b/x-pack/solutions/observability/plugins/observability_solution/entities_data_access/kibana.jsonc similarity index 100% rename from x-pack/plugins/observability_solution/entities_data_access/kibana.jsonc rename to x-pack/solutions/observability/plugins/observability_solution/entities_data_access/kibana.jsonc diff --git a/x-pack/plugins/observability_solution/entities_data_access/server/index.ts b/x-pack/solutions/observability/plugins/observability_solution/entities_data_access/server/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/entities_data_access/server/index.ts rename to x-pack/solutions/observability/plugins/observability_solution/entities_data_access/server/index.ts diff --git a/x-pack/plugins/observability_solution/entities_data_access/server/plugin.ts b/x-pack/solutions/observability/plugins/observability_solution/entities_data_access/server/plugin.ts similarity index 100% rename from x-pack/plugins/observability_solution/entities_data_access/server/plugin.ts rename to x-pack/solutions/observability/plugins/observability_solution/entities_data_access/server/plugin.ts diff --git a/x-pack/plugins/observability_solution/entities_data_access/server/types.ts b/x-pack/solutions/observability/plugins/observability_solution/entities_data_access/server/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/entities_data_access/server/types.ts rename to x-pack/solutions/observability/plugins/observability_solution/entities_data_access/server/types.ts diff --git a/x-pack/plugins/observability_solution/entities_data_access/tsconfig.json b/x-pack/solutions/observability/plugins/observability_solution/entities_data_access/tsconfig.json similarity index 78% rename from x-pack/plugins/observability_solution/entities_data_access/tsconfig.json rename to x-pack/solutions/observability/plugins/observability_solution/entities_data_access/tsconfig.json index 5475c04618993..a2745070f63ef 100644 --- a/x-pack/plugins/observability_solution/entities_data_access/tsconfig.json +++ b/x-pack/solutions/observability/plugins/observability_solution/entities_data_access/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/x-pack/plugins/observability_solution/entity_manager_app/README.md b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/README.md similarity index 100% rename from x-pack/plugins/observability_solution/entity_manager_app/README.md rename to x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/README.md diff --git a/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js new file mode 100644 index 0000000000000..2b49a755b2c59 --- /dev/null +++ b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js @@ -0,0 +1,22 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +const path = require('path'); + +module.exports = { + preset: '@kbn/test', + rootDir: path.resolve(__dirname, '../../../../../..'), + roots: [ + '/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app', + ], + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/{common,public,server}/**/*.{js,ts,tsx}', + ], +}; diff --git a/x-pack/plugins/observability_solution/entity_manager_app/kibana.jsonc b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/kibana.jsonc similarity index 100% rename from x-pack/plugins/observability_solution/entity_manager_app/kibana.jsonc rename to x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/kibana.jsonc diff --git a/x-pack/plugins/observability_solution/entity_manager_app/public/application.tsx b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/application.tsx similarity index 100% rename from x-pack/plugins/observability_solution/entity_manager_app/public/application.tsx rename to x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/application.tsx diff --git a/x-pack/plugins/observability_solution/entity_manager_app/public/context/plugin_context.ts b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/context/plugin_context.ts similarity index 100% rename from x-pack/plugins/observability_solution/entity_manager_app/public/context/plugin_context.ts rename to x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/context/plugin_context.ts diff --git a/x-pack/plugins/observability_solution/entity_manager_app/public/hooks/use_kibana.ts b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/hooks/use_kibana.ts similarity index 100% rename from x-pack/plugins/observability_solution/entity_manager_app/public/hooks/use_kibana.ts rename to x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/hooks/use_kibana.ts diff --git a/x-pack/plugins/observability_solution/entity_manager_app/public/hooks/use_plugin_context.ts b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/hooks/use_plugin_context.ts similarity index 100% rename from x-pack/plugins/observability_solution/entity_manager_app/public/hooks/use_plugin_context.ts rename to x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/hooks/use_plugin_context.ts diff --git a/x-pack/plugins/observability_solution/entity_manager_app/public/index.ts b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/entity_manager_app/public/index.ts rename to x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/index.ts diff --git a/x-pack/plugins/observability_solution/entity_manager_app/public/pages/overview/index.tsx b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/pages/overview/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/entity_manager_app/public/pages/overview/index.tsx rename to x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/pages/overview/index.tsx diff --git a/x-pack/plugins/observability_solution/entity_manager_app/public/plugin.ts b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/plugin.ts similarity index 100% rename from x-pack/plugins/observability_solution/entity_manager_app/public/plugin.ts rename to x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/plugin.ts diff --git a/x-pack/plugins/observability_solution/entity_manager_app/public/routes.tsx b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/routes.tsx similarity index 100% rename from x-pack/plugins/observability_solution/entity_manager_app/public/routes.tsx rename to x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/routes.tsx diff --git a/x-pack/plugins/observability_solution/entity_manager_app/public/types.ts b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/entity_manager_app/public/types.ts rename to x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/public/types.ts diff --git a/x-pack/plugins/observability_solution/entity_manager_app/tsconfig.json b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json similarity index 88% rename from x-pack/plugins/observability_solution/entity_manager_app/tsconfig.json rename to x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json index 64c0a293a4e2e..0483de43cb42a 100644 --- a/x-pack/plugins/observability_solution/entity_manager_app/tsconfig.json +++ b/x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, "include": [ - "../../../../typings/**/*", + "../../../../../../typings/**/*", "common/**/*", "public/**/*", "types/**/*" diff --git a/yarn.lock b/yarn.lock index 31b75569d8c6a..7fe1424cda3cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5460,11 +5460,11 @@ version "0.0.0" uid "" -"@kbn/entities-data-access-plugin@link:x-pack/plugins/observability_solution/entities_data_access": +"@kbn/entities-data-access-plugin@link:x-pack/solutions/observability/plugins/observability_solution/entities_data_access": version "0.0.0" uid "" -"@kbn/entities-schema@link:x-pack/packages/kbn-entities-schema": +"@kbn/entities-schema@link:x-pack/platform/packages/shared/kbn-entities-schema": version "0.0.0" uid "" @@ -5472,11 +5472,11 @@ version "0.0.0" uid "" -"@kbn/entityManager-app-plugin@link:x-pack/plugins/observability_solution/entity_manager_app": +"@kbn/entityManager-app-plugin@link:x-pack/solutions/observability/plugins/observability_solution/entity_manager_app": version "0.0.0" uid "" -"@kbn/entityManager-plugin@link:x-pack/plugins/entity_manager": +"@kbn/entityManager-plugin@link:x-pack/platform/plugins/shared/entity_manager": version "0.0.0" uid ""