[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/obs-entities (#202713) (#203402)

# Backport

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

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

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-12-06T18:59:17Z","message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/obs-entities`
(#202713)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 3 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/entities-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_solution/entities_data_access`\r\n|\r\n|
`@kbn/entityManager-app-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_solution/entity_manager_app`\r\n|\r\n|
`@kbn/entityManager-plugin`
|\r\n`x-pack/platform/plugins/shared/entity_manager` |\r\n\r\n\r\n#### 1
package(s) are going to be relocated:\r\n\r\n | Id | Target folder |\r\n
| -- | ------------- |\r\n| `@kbn/entities-schema`
|\r\n`x-pack/platform/packages/shared/kbn-entities-schema`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./tsconfig.base.json\r\n./x-pack/platform/packages/shared/kbn-entities-schema/jest.config.js\r\n./x-pack/platform/plugins/shared/entity_manager/jest.config.js\r\n./x-pack/plugins/entity_manager/docs/entity_definitions.md\r\n./x-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/platform/packages/shared/kbn-entities-schema/jest.config.js:10\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:65\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/serve_oas_ui.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/tsconfig.json:2\r\nx-pack/platform/plugins/shared/entity_manager/jest.config.js:10\r\nx-pack/platform/plugins/shared/entity_manager/tsconfig.json:2\r\nx-pack/platform/plugins/shared/entity_manager/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/observability_solution/entities_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js:12\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:7\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Rudolf Meijering
<skaapgif@gmail.com>","sha":"df3b18214f893ef587a59a64ffe5c3dc533abc8b","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-entities"],"number":202713,"url":"https://github.com/elastic/kibana/pull/202713","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/obs-entities`
(#202713)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 3 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/entities-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_solution/entities_data_access`\r\n|\r\n|
`@kbn/entityManager-app-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_solution/entity_manager_app`\r\n|\r\n|
`@kbn/entityManager-plugin`
|\r\n`x-pack/platform/plugins/shared/entity_manager` |\r\n\r\n\r\n#### 1
package(s) are going to be relocated:\r\n\r\n | Id | Target folder |\r\n
| -- | ------------- |\r\n| `@kbn/entities-schema`
|\r\n`x-pack/platform/packages/shared/kbn-entities-schema`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./tsconfig.base.json\r\n./x-pack/platform/packages/shared/kbn-entities-schema/jest.config.js\r\n./x-pack/platform/plugins/shared/entity_manager/jest.config.js\r\n./x-pack/plugins/entity_manager/docs/entity_definitions.md\r\n./x-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/platform/packages/shared/kbn-entities-schema/jest.config.js:10\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:65\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/serve_oas_ui.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/tsconfig.json:2\r\nx-pack/platform/plugins/shared/entity_manager/jest.config.js:10\r\nx-pack/platform/plugins/shared/entity_manager/tsconfig.json:2\r\nx-pack/platform/plugins/shared/entity_manager/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/observability_solution/entities_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js:12\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:7\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Rudolf Meijering
<skaapgif@gmail.com>","sha":"df3b18214f893ef587a59a64ffe5c3dc533abc8b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202713","number":202713,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/obs-entities`
(#202713)\n\n## Summary\r\n\r\nThis PR aims at relocating some of the
Kibana modules (plugins and\r\npackages) into a new folder structure,
according to the _Sustainable\r\nKibana Architecture_
initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you to:\r\n> *
Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> This PR has been auto-generated.\r\n>
Do not attempt to push any changes unless you know what you are
doing.\r\n> Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\n\r\n\r\n\r\n#### 3 plugin(s) are going to
be relocated:\r\n\r\n| Id | Target folder |\r\n| -- | -------------
|\r\n| `@kbn/entities-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_solution/entities_data_access`\r\n|\r\n|
`@kbn/entityManager-app-plugin`
|\r\n`x-pack/solutions/observability/plugins/observability_solution/entity_manager_app`\r\n|\r\n|
`@kbn/entityManager-plugin`
|\r\n`x-pack/platform/plugins/shared/entity_manager` |\r\n\r\n\r\n#### 1
package(s) are going to be relocated:\r\n\r\n | Id | Target folder |\r\n
| -- | ------------- |\r\n| `@kbn/entities-schema`
|\r\n`x-pack/platform/packages/shared/kbn-entities-schema`
|\r\n\r\n\r\n<details>\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./docs/developer/plugin-list.asciidoc\r\n./package.json\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./tsconfig.base.json\r\n./x-pack/platform/packages/shared/kbn-entities-schema/jest.config.js\r\n./x-pack/platform/plugins/shared/entity_manager/jest.config.js\r\n./x-pack/plugins/entity_manager/docs/entity_definitions.md\r\n./x-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js\r\n./yarn.lock\r\n```\r\n</details>\r\n<details>\r\n<summary>Updated
relative
paths</summary>\r\n\r\n```\r\nx-pack/platform/packages/shared/kbn-entities-schema/jest.config.js:10\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:65\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/generate_oas.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/scripts/serve_oas_ui.js:8\r\nx-pack/platform/packages/shared/kbn-entities-schema/tsconfig.json:2\r\nx-pack/platform/plugins/shared/entity_manager/jest.config.js:10\r\nx-pack/platform/plugins/shared/entity_manager/tsconfig.json:2\r\nx-pack/platform/plugins/shared/entity_manager/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/observability_solution/entities_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/observability_solution/entities_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/jest.config.js:12\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/observability_solution/entity_manager_app/tsconfig.json:7\r\n```\r\n</details>\r\n<details>\r\n<summary>Script
errors</summary>\r\n\r\n```\r\n\r\n```\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Rudolf Meijering
<skaapgif@gmail.com>","sha":"df3b18214f893ef587a59a64ffe5c3dc533abc8b"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Gerard Soldevila 2024-12-09 19:25:21 +01:00 committed by GitHub
parent a6884f8bd7
commit 609f61d1d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
191 changed files with 67 additions and 62 deletions

8
.github/CODEOWNERS vendored
View file

@ -413,11 +413,11 @@ src/plugins/embeddable @elastic/kibana-presentation
x-pack/examples/embedded_lens_example @elastic/kibana-visualizations
x-pack/plugins/encrypted_saved_objects @elastic/kibana-security
x-pack/plugins/enterprise_search @elastic/search-kibana
x-pack/plugins/observability_solution/entities_data_access @elastic/obs-entities
x-pack/packages/kbn-entities-schema @elastic/obs-entities
x-pack/solutions/observability/plugins/observability_solution/entities_data_access @elastic/obs-entities
x-pack/platform/packages/shared/kbn-entities-schema @elastic/obs-entities
x-pack/test/api_integration/apis/entity_manager/fixture_plugin @elastic/obs-entities
x-pack/plugins/observability_solution/entity_manager_app @elastic/obs-entities
x-pack/plugins/entity_manager @elastic/obs-entities
x-pack/solutions/observability/plugins/observability_solution/entity_manager_app @elastic/obs-entities
x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities
examples/error_boundary @elastic/appex-sharedux
packages/kbn-es @elastic/kibana-operations
packages/kbn-es-archiver @elastic/kibana-operations @elastic/appex-qa

View file

@ -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.

View file

@ -476,11 +476,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",

View file

@ -820,16 +820,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"],

View file

@ -7,6 +7,6 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/x-pack/packages/kbn-entities-schema'],
rootDir: '../../../../..',
roots: ['<rootDir>/x-pack/platform/packages/shared/kbn-entities-schema'],
};

View file

@ -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');

View file

@ -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,
});

View file

@ -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');

View file

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

View file

@ -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.<definition-id>`).

View file

@ -7,11 +7,12 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/x-pack/plugins/entity_manager'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/plugins/entity_manager',
rootDir: '../../../../..',
roots: ['<rootDir>/x-pack/platform/plugins/shared/entity_manager'],
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/platform/plugins/shared/entity_manager',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/x-pack/plugins/entity_manager/{common,public,server}/**/*.{js,ts,tsx}',
'<rootDir>/x-pack/platform/plugins/shared/entity_manager/{common,public,server}/**/*.{js,ts,tsx}',
],
};

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