From 751056e57e8d696fa5c730d1aa11f1503f30724c Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 21:54:32 +0100 Subject: [PATCH 001/167] Relocating module `@kbn/analytics` --- .eslintrc.js | 4 ++-- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/private/kbn-ui-shared-deps-src/BUILD.bazel | 2 +- .../platform/packages/shared}/kbn-analytics/BUILD.bazel | 0 .../platform/packages/shared}/kbn-analytics/README.md | 0 .../platform/packages/shared}/kbn-analytics/index.ts | 0 .../platform/packages/shared}/kbn-analytics/kibana.jsonc | 0 .../platform/packages/shared}/kbn-analytics/package.json | 0 .../shared}/kbn-analytics/src/application_usage_tracker.ts | 0 .../shared}/kbn-analytics/src/metrics/application_usage.ts | 0 .../packages/shared}/kbn-analytics/src/metrics/index.ts | 0 .../packages/shared}/kbn-analytics/src/metrics/ui_counter.ts | 0 .../packages/shared}/kbn-analytics/src/metrics/user_agent.ts | 0 .../platform/packages/shared}/kbn-analytics/src/report.ts | 0 .../platform/packages/shared}/kbn-analytics/src/reporter.ts | 0 .../platform/packages/shared}/kbn-analytics/src/storage.ts | 0 .../platform/packages/shared}/kbn-analytics/src/util.ts | 0 .../platform/packages/shared}/kbn-analytics/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 21 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/shared}/kbn-analytics/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/src/application_usage_tracker.ts (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/src/metrics/application_usage.ts (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/src/metrics/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/src/metrics/ui_counter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/src/metrics/user_agent.ts (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/src/report.ts (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/src/reporter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/src/storage.ts (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/src/util.ts (100%) rename {packages => src/platform/packages/shared}/kbn-analytics/tsconfig.json (82%) diff --git a/.eslintrc.js b/.eslintrc.js index 3b96e4ef92b5e..e4f149bc877c4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1921,7 +1921,7 @@ module.exports = { */ { files: [ - 'packages/kbn-analytics/**', + 'src/platform/packages/shared/kbn-analytics/**', // 'packages/kbn-telemetry-tools/**', 'src/plugins/kibana_usage_collection/**', 'src/plugins/usage_collection/**', @@ -1945,7 +1945,7 @@ module.exports = { 'packages/kbn-config-schema', 'src/plugins/status_page/**', 'src/plugins/saved_objects_management/**', - 'packages/kbn-analytics/**', + 'src/platform/packages/shared/kbn-analytics/**', 'packages/kbn-telemetry-tools/**', 'src/plugins/kibana_usage_collection/**', 'src/plugins/usage_collection/**', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7e9f694892399..0794ebfefa23b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -257,7 +257,6 @@ packages/kbn-ambient-common-types @elastic/kibana-operations packages/kbn-ambient-ftr-types @elastic/kibana-operations @elastic/appex-qa packages/kbn-ambient-storybook-types @elastic/kibana-operations packages/kbn-ambient-ui-types @elastic/kibana-operations -packages/kbn-analytics @elastic/kibana-core packages/kbn-apm-config-loader @elastic/kibana-core @vigneshshanmugam packages/kbn-apm-synthtrace @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team packages/kbn-apm-synthtrace-client @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team @@ -527,6 +526,7 @@ src/platform/packages/shared/kbn-actions-types @elastic/response-ops src/platform/packages/shared/kbn-alerting-types @elastic/response-ops src/platform/packages/shared/kbn-alerts-as-data-utils @elastic/response-ops src/platform/packages/shared/kbn-alerts-ui-shared @elastic/response-ops +src/platform/packages/shared/kbn-analytics @elastic/kibana-core src/platform/packages/shared/kbn-apm-data-view @elastic/obs-ux-infra_services-team src/platform/packages/shared/kbn-apm-utils @elastic/obs-ux-infra_services-team src/platform/packages/shared/kbn-avc-banner @elastic/security-defend-workflows diff --git a/package.json b/package.json index b181416d8547d..7a3f25baea862 100644 --- a/package.json +++ b/package.json @@ -180,7 +180,7 @@ "@kbn/alerts-grouping": "link:x-pack/solutions/observability/packages/kbn-alerts-grouping", "@kbn/alerts-restricted-fixtures-plugin": "link:x-pack/test/alerting_api_integration/common/plugins/alerts_restricted", "@kbn/alerts-ui-shared": "link:src/platform/packages/shared/kbn-alerts-ui-shared", - "@kbn/analytics": "link:packages/kbn-analytics", + "@kbn/analytics": "link:src/platform/packages/shared/kbn-analytics", "@kbn/analytics-collection-utils": "link:packages/analytics/utils/analytics_collection_utils", "@kbn/analytics-ftr-helpers-plugin": "link:test/analytics/plugins/analytics_ftr_helpers", "@kbn/analytics-plugin-a-plugin": "link:test/analytics/plugins/analytics_plugin_a", diff --git a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel index 6d70288de9af8..6a40cfe171c6e 100644 --- a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel +++ b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel @@ -28,7 +28,7 @@ webpack_cli( "//src/platform/packages/shared/kbn-esql-ast", "//packages/kbn-monaco", "//src/platform/packages/shared/kbn-datemath", - "//packages/kbn-analytics", + "//src/platform/packages/shared/kbn-analytics", "//packages/kbn-crypto-browser", "//src/platform/packages/shared/kbn-es-query", "//src/platform/packages/shared/kbn-search-errors", diff --git a/packages/kbn-analytics/BUILD.bazel b/src/platform/packages/shared/kbn-analytics/BUILD.bazel similarity index 100% rename from packages/kbn-analytics/BUILD.bazel rename to src/platform/packages/shared/kbn-analytics/BUILD.bazel diff --git a/packages/kbn-analytics/README.md b/src/platform/packages/shared/kbn-analytics/README.md similarity index 100% rename from packages/kbn-analytics/README.md rename to src/platform/packages/shared/kbn-analytics/README.md diff --git a/packages/kbn-analytics/index.ts b/src/platform/packages/shared/kbn-analytics/index.ts similarity index 100% rename from packages/kbn-analytics/index.ts rename to src/platform/packages/shared/kbn-analytics/index.ts diff --git a/packages/kbn-analytics/kibana.jsonc b/src/platform/packages/shared/kbn-analytics/kibana.jsonc similarity index 100% rename from packages/kbn-analytics/kibana.jsonc rename to src/platform/packages/shared/kbn-analytics/kibana.jsonc diff --git a/packages/kbn-analytics/package.json b/src/platform/packages/shared/kbn-analytics/package.json similarity index 100% rename from packages/kbn-analytics/package.json rename to src/platform/packages/shared/kbn-analytics/package.json diff --git a/packages/kbn-analytics/src/application_usage_tracker.ts b/src/platform/packages/shared/kbn-analytics/src/application_usage_tracker.ts similarity index 100% rename from packages/kbn-analytics/src/application_usage_tracker.ts rename to src/platform/packages/shared/kbn-analytics/src/application_usage_tracker.ts diff --git a/packages/kbn-analytics/src/metrics/application_usage.ts b/src/platform/packages/shared/kbn-analytics/src/metrics/application_usage.ts similarity index 100% rename from packages/kbn-analytics/src/metrics/application_usage.ts rename to src/platform/packages/shared/kbn-analytics/src/metrics/application_usage.ts diff --git a/packages/kbn-analytics/src/metrics/index.ts b/src/platform/packages/shared/kbn-analytics/src/metrics/index.ts similarity index 100% rename from packages/kbn-analytics/src/metrics/index.ts rename to src/platform/packages/shared/kbn-analytics/src/metrics/index.ts diff --git a/packages/kbn-analytics/src/metrics/ui_counter.ts b/src/platform/packages/shared/kbn-analytics/src/metrics/ui_counter.ts similarity index 100% rename from packages/kbn-analytics/src/metrics/ui_counter.ts rename to src/platform/packages/shared/kbn-analytics/src/metrics/ui_counter.ts diff --git a/packages/kbn-analytics/src/metrics/user_agent.ts b/src/platform/packages/shared/kbn-analytics/src/metrics/user_agent.ts similarity index 100% rename from packages/kbn-analytics/src/metrics/user_agent.ts rename to src/platform/packages/shared/kbn-analytics/src/metrics/user_agent.ts diff --git a/packages/kbn-analytics/src/report.ts b/src/platform/packages/shared/kbn-analytics/src/report.ts similarity index 100% rename from packages/kbn-analytics/src/report.ts rename to src/platform/packages/shared/kbn-analytics/src/report.ts diff --git a/packages/kbn-analytics/src/reporter.ts b/src/platform/packages/shared/kbn-analytics/src/reporter.ts similarity index 100% rename from packages/kbn-analytics/src/reporter.ts rename to src/platform/packages/shared/kbn-analytics/src/reporter.ts diff --git a/packages/kbn-analytics/src/storage.ts b/src/platform/packages/shared/kbn-analytics/src/storage.ts similarity index 100% rename from packages/kbn-analytics/src/storage.ts rename to src/platform/packages/shared/kbn-analytics/src/storage.ts diff --git a/packages/kbn-analytics/src/util.ts b/src/platform/packages/shared/kbn-analytics/src/util.ts similarity index 100% rename from packages/kbn-analytics/src/util.ts rename to src/platform/packages/shared/kbn-analytics/src/util.ts diff --git a/packages/kbn-analytics/tsconfig.json b/src/platform/packages/shared/kbn-analytics/tsconfig.json similarity index 82% rename from packages/kbn-analytics/tsconfig.json rename to src/platform/packages/shared/kbn-analytics/tsconfig.json index 1ff22d007ea78..480400eac6e35 100644 --- a/packages/kbn-analytics/tsconfig.json +++ b/src/platform/packages/shared/kbn-analytics/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "isolatedModules": true, "outDir": "target/types", diff --git a/tsconfig.base.json b/tsconfig.base.json index 57d194ebf348d..d53033aee2feb 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -68,8 +68,8 @@ "@kbn/ambient-storybook-types/*": ["packages/kbn-ambient-storybook-types/*"], "@kbn/ambient-ui-types": ["packages/kbn-ambient-ui-types"], "@kbn/ambient-ui-types/*": ["packages/kbn-ambient-ui-types/*"], - "@kbn/analytics": ["packages/kbn-analytics"], - "@kbn/analytics/*": ["packages/kbn-analytics/*"], + "@kbn/analytics": ["src/platform/packages/shared/kbn-analytics"], + "@kbn/analytics/*": ["src/platform/packages/shared/kbn-analytics/*"], "@kbn/analytics-collection-utils": ["packages/analytics/utils/analytics_collection_utils"], "@kbn/analytics-collection-utils/*": ["packages/analytics/utils/analytics_collection_utils/*"], "@kbn/analytics-ftr-helpers-plugin": ["test/analytics/plugins/analytics_ftr_helpers"], diff --git a/yarn.lock b/yarn.lock index 3387a8df6156f..928d1b65e95fa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3965,7 +3965,7 @@ version "0.0.0" uid "" -"@kbn/analytics@link:packages/kbn-analytics": +"@kbn/analytics@link:src/platform/packages/shared/kbn-analytics": version "0.0.0" uid "" From a2ac7639b708361f234b7612dac426e5baab0c73 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 21:55:25 +0100 Subject: [PATCH 002/167] Relocating module `@kbn/analytics-collection-utils` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../analytics/utils/analytics_collection_utils/README.md | 0 .../analytics/utils/analytics_collection_utils/index.ts | 0 .../analytics/utils/analytics_collection_utils/jest.config.js | 4 ++-- .../analytics/utils/analytics_collection_utils/kibana.jsonc | 0 .../analytics/utils/analytics_collection_utils/package.json | 0 .../analytics/utils/analytics_collection_utils/src/index.ts | 0 .../src/is_synthetics_monitor.test.ts | 0 .../analytics_collection_utils/src/is_synthetics_monitor.ts | 0 .../analytics/utils/analytics_collection_utils/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/analytics/utils/analytics_collection_utils/README.md (100%) rename {packages => src/platform/packages/private}/analytics/utils/analytics_collection_utils/index.ts (100%) rename {packages => src/platform/packages/private}/analytics/utils/analytics_collection_utils/jest.config.js (79%) rename {packages => src/platform/packages/private}/analytics/utils/analytics_collection_utils/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/analytics/utils/analytics_collection_utils/package.json (100%) rename {packages => src/platform/packages/private}/analytics/utils/analytics_collection_utils/src/index.ts (100%) rename {packages => src/platform/packages/private}/analytics/utils/analytics_collection_utils/src/is_synthetics_monitor.test.ts (100%) rename {packages => src/platform/packages/private}/analytics/utils/analytics_collection_utils/src/is_synthetics_monitor.ts (100%) rename {packages => src/platform/packages/private}/analytics/utils/analytics_collection_utils/tsconfig.json (80%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0794ebfefa23b..3be7aef78a4b1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -41,7 +41,6 @@ examples/unified_doc_viewer @elastic/kibana-core examples/unified_field_list_examples @elastic/kibana-data-discovery examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops -packages/analytics/utils/analytics_collection_utils @elastic/kibana-core packages/cloud @elastic/kibana-core packages/content-management/content_editor @elastic/appex-sharedux packages/content-management/content_insights/content_insights_public @elastic/appex-sharedux @@ -499,6 +498,7 @@ src/core/packages/apps/browser-internal @elastic/kibana-core src/core/packages/apps/server-internal @elastic/kibana-core src/core/packages/base/browser-internal @elastic/kibana-core src/core/packages/base/common @elastic/kibana-core +src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management src/platform/packages/private/default-nav/management @elastic/kibana-management diff --git a/package.json b/package.json index 7a3f25baea862..5105017b028c6 100644 --- a/package.json +++ b/package.json @@ -181,7 +181,7 @@ "@kbn/alerts-restricted-fixtures-plugin": "link:x-pack/test/alerting_api_integration/common/plugins/alerts_restricted", "@kbn/alerts-ui-shared": "link:src/platform/packages/shared/kbn-alerts-ui-shared", "@kbn/analytics": "link:src/platform/packages/shared/kbn-analytics", - "@kbn/analytics-collection-utils": "link:packages/analytics/utils/analytics_collection_utils", + "@kbn/analytics-collection-utils": "link:src/platform/packages/private/analytics/utils/analytics_collection_utils", "@kbn/analytics-ftr-helpers-plugin": "link:test/analytics/plugins/analytics_ftr_helpers", "@kbn/analytics-plugin-a-plugin": "link:test/analytics/plugins/analytics_plugin_a", "@kbn/apm-config-loader": "link:packages/kbn-apm-config-loader", diff --git a/packages/analytics/utils/analytics_collection_utils/README.md b/src/platform/packages/private/analytics/utils/analytics_collection_utils/README.md similarity index 100% rename from packages/analytics/utils/analytics_collection_utils/README.md rename to src/platform/packages/private/analytics/utils/analytics_collection_utils/README.md diff --git a/packages/analytics/utils/analytics_collection_utils/index.ts b/src/platform/packages/private/analytics/utils/analytics_collection_utils/index.ts similarity index 100% rename from packages/analytics/utils/analytics_collection_utils/index.ts rename to src/platform/packages/private/analytics/utils/analytics_collection_utils/index.ts diff --git a/packages/analytics/utils/analytics_collection_utils/jest.config.js b/src/platform/packages/private/analytics/utils/analytics_collection_utils/jest.config.js similarity index 79% rename from packages/analytics/utils/analytics_collection_utils/jest.config.js rename to src/platform/packages/private/analytics/utils/analytics_collection_utils/jest.config.js index eb4383bfe99b1..777a34f7ec5a7 100644 --- a/packages/analytics/utils/analytics_collection_utils/jest.config.js +++ b/src/platform/packages/private/analytics/utils/analytics_collection_utils/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/analytics/utils/analytics_collection_utils'], + rootDir: '../../../../../../..', + roots: ['/src/platform/packages/private/analytics/utils/analytics_collection_utils'], }; diff --git a/packages/analytics/utils/analytics_collection_utils/kibana.jsonc b/src/platform/packages/private/analytics/utils/analytics_collection_utils/kibana.jsonc similarity index 100% rename from packages/analytics/utils/analytics_collection_utils/kibana.jsonc rename to src/platform/packages/private/analytics/utils/analytics_collection_utils/kibana.jsonc diff --git a/packages/analytics/utils/analytics_collection_utils/package.json b/src/platform/packages/private/analytics/utils/analytics_collection_utils/package.json similarity index 100% rename from packages/analytics/utils/analytics_collection_utils/package.json rename to src/platform/packages/private/analytics/utils/analytics_collection_utils/package.json diff --git a/packages/analytics/utils/analytics_collection_utils/src/index.ts b/src/platform/packages/private/analytics/utils/analytics_collection_utils/src/index.ts similarity index 100% rename from packages/analytics/utils/analytics_collection_utils/src/index.ts rename to src/platform/packages/private/analytics/utils/analytics_collection_utils/src/index.ts diff --git a/packages/analytics/utils/analytics_collection_utils/src/is_synthetics_monitor.test.ts b/src/platform/packages/private/analytics/utils/analytics_collection_utils/src/is_synthetics_monitor.test.ts similarity index 100% rename from packages/analytics/utils/analytics_collection_utils/src/is_synthetics_monitor.test.ts rename to src/platform/packages/private/analytics/utils/analytics_collection_utils/src/is_synthetics_monitor.test.ts diff --git a/packages/analytics/utils/analytics_collection_utils/src/is_synthetics_monitor.ts b/src/platform/packages/private/analytics/utils/analytics_collection_utils/src/is_synthetics_monitor.ts similarity index 100% rename from packages/analytics/utils/analytics_collection_utils/src/is_synthetics_monitor.ts rename to src/platform/packages/private/analytics/utils/analytics_collection_utils/src/is_synthetics_monitor.ts diff --git a/packages/analytics/utils/analytics_collection_utils/tsconfig.json b/src/platform/packages/private/analytics/utils/analytics_collection_utils/tsconfig.json similarity index 80% rename from packages/analytics/utils/analytics_collection_utils/tsconfig.json rename to src/platform/packages/private/analytics/utils/analytics_collection_utils/tsconfig.json index b05325b824a67..3d8067cec004b 100644 --- a/packages/analytics/utils/analytics_collection_utils/tsconfig.json +++ b/src/platform/packages/private/analytics/utils/analytics_collection_utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index d53033aee2feb..d52444945193c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -70,8 +70,8 @@ "@kbn/ambient-ui-types/*": ["packages/kbn-ambient-ui-types/*"], "@kbn/analytics": ["src/platform/packages/shared/kbn-analytics"], "@kbn/analytics/*": ["src/platform/packages/shared/kbn-analytics/*"], - "@kbn/analytics-collection-utils": ["packages/analytics/utils/analytics_collection_utils"], - "@kbn/analytics-collection-utils/*": ["packages/analytics/utils/analytics_collection_utils/*"], + "@kbn/analytics-collection-utils": ["src/platform/packages/private/analytics/utils/analytics_collection_utils"], + "@kbn/analytics-collection-utils/*": ["src/platform/packages/private/analytics/utils/analytics_collection_utils/*"], "@kbn/analytics-ftr-helpers-plugin": ["test/analytics/plugins/analytics_ftr_helpers"], "@kbn/analytics-ftr-helpers-plugin/*": ["test/analytics/plugins/analytics_ftr_helpers/*"], "@kbn/analytics-plugin-a-plugin": ["test/analytics/plugins/analytics_plugin_a"], diff --git a/yarn.lock b/yarn.lock index 928d1b65e95fa..563c0fe627d8d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3953,7 +3953,7 @@ version "0.0.0" uid "" -"@kbn/analytics-collection-utils@link:packages/analytics/utils/analytics_collection_utils": +"@kbn/analytics-collection-utils@link:src/platform/packages/private/analytics/utils/analytics_collection_utils": version "0.0.0" uid "" From 58ccac0c75a6d705d64bbdf84e31480a1e03273b Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 21:56:20 +0100 Subject: [PATCH 003/167] Relocating module `@kbn/apm-config-loader` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/private}/kbn-apm-config-loader/README.md | 0 .../platform/packages/private}/kbn-apm-config-loader/index.ts | 0 .../packages/private}/kbn-apm-config-loader/jest.config.js | 4 ++-- .../packages/private}/kbn-apm-config-loader/kibana.jsonc | 0 .../packages/private}/kbn-apm-config-loader/package.json | 0 .../kbn-apm-config-loader/src/__fixtures__/config.yml | 0 .../kbn-apm-config-loader/src/__fixtures__/config_flat.yml | 0 .../src/__fixtures__/en_var_ref_config.yml | 0 .../private}/kbn-apm-config-loader/src/__fixtures__/one.yml | 0 .../private}/kbn-apm-config-loader/src/__fixtures__/two.yml | 0 .../packages/private}/kbn-apm-config-loader/src/apm_config.ts | 0 .../private}/kbn-apm-config-loader/src/config.test.mocks.ts | 0 .../private}/kbn-apm-config-loader/src/config.test.ts | 0 .../packages/private}/kbn-apm-config-loader/src/config.ts | 0 .../kbn-apm-config-loader/src/config_loader.test.mocks.ts | 0 .../private}/kbn-apm-config-loader/src/config_loader.test.ts | 0 .../private}/kbn-apm-config-loader/src/config_loader.ts | 0 .../private}/kbn-apm-config-loader/src/init_apm.test.mocks.ts | 0 .../private}/kbn-apm-config-loader/src/init_apm.test.ts | 0 .../packages/private}/kbn-apm-config-loader/src/init_apm.ts | 0 .../kbn-apm-config-loader/src/rum_agent_configuration.test.ts | 0 .../kbn-apm-config-loader/src/rum_agent_configuration.ts | 0 .../src/utils/__snapshots__/read_config.test.ts.snap | 0 .../src/utils/apply_config_overrides.test.ts | 0 .../kbn-apm-config-loader/src/utils/apply_config_overrides.ts | 0 .../src/utils/get_config_file_paths.test.ts | 0 .../kbn-apm-config-loader/src/utils/get_config_file_paths.ts | 0 .../private}/kbn-apm-config-loader/src/utils/index.ts | 0 .../kbn-apm-config-loader/src/utils/read_argv.test.ts | 0 .../private}/kbn-apm-config-loader/src/utils/read_argv.ts | 0 .../kbn-apm-config-loader/src/utils/read_config.test.ts | 0 .../private}/kbn-apm-config-loader/src/utils/read_config.ts | 0 .../packages/private}/kbn-apm-config-loader/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 37 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/README.md (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/jest.config.js (83%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/package.json (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/__fixtures__/config.yml (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/__fixtures__/config_flat.yml (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/__fixtures__/en_var_ref_config.yml (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/__fixtures__/one.yml (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/__fixtures__/two.yml (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/apm_config.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/config.test.mocks.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/config.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/config.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/config_loader.test.mocks.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/config_loader.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/config_loader.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/init_apm.test.mocks.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/init_apm.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/init_apm.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/rum_agent_configuration.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/rum_agent_configuration.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/utils/__snapshots__/read_config.test.ts.snap (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/utils/apply_config_overrides.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/utils/apply_config_overrides.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/utils/get_config_file_paths.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/utils/get_config_file_paths.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/utils/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/utils/read_argv.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/utils/read_argv.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/utils/read_config.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/src/utils/read_config.ts (100%) rename {packages => src/platform/packages/private}/kbn-apm-config-loader/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3be7aef78a4b1..40868c2f2f156 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -256,7 +256,6 @@ packages/kbn-ambient-common-types @elastic/kibana-operations packages/kbn-ambient-ftr-types @elastic/kibana-operations @elastic/appex-qa packages/kbn-ambient-storybook-types @elastic/kibana-operations packages/kbn-ambient-ui-types @elastic/kibana-operations -packages/kbn-apm-config-loader @elastic/kibana-core @vigneshshanmugam packages/kbn-apm-synthtrace @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team packages/kbn-apm-synthtrace-client @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team packages/kbn-axe-config @elastic/kibana-qa @@ -503,6 +502,7 @@ src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discove src/platform/packages/private/default-nav/devtools @elastic/kibana-management src/platform/packages/private/default-nav/management @elastic/kibana-management src/platform/packages/private/default-nav/ml @elastic/ml-ui +src/platform/packages/private/kbn-apm-config-loader @elastic/kibana-core @vigneshshanmugam src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/private/kbn-management/settings/application @elastic/kibana-management diff --git a/package.json b/package.json index 5105017b028c6..f49a5abaddd1d 100644 --- a/package.json +++ b/package.json @@ -184,7 +184,7 @@ "@kbn/analytics-collection-utils": "link:src/platform/packages/private/analytics/utils/analytics_collection_utils", "@kbn/analytics-ftr-helpers-plugin": "link:test/analytics/plugins/analytics_ftr_helpers", "@kbn/analytics-plugin-a-plugin": "link:test/analytics/plugins/analytics_plugin_a", - "@kbn/apm-config-loader": "link:packages/kbn-apm-config-loader", + "@kbn/apm-config-loader": "link:src/platform/packages/private/kbn-apm-config-loader", "@kbn/apm-data-access-plugin": "link:x-pack/solutions/observability/plugins/apm_data_access", "@kbn/apm-data-view": "link:src/platform/packages/shared/kbn-apm-data-view", "@kbn/apm-plugin": "link:x-pack/solutions/observability/plugins/apm", diff --git a/packages/kbn-apm-config-loader/README.md b/src/platform/packages/private/kbn-apm-config-loader/README.md similarity index 100% rename from packages/kbn-apm-config-loader/README.md rename to src/platform/packages/private/kbn-apm-config-loader/README.md diff --git a/packages/kbn-apm-config-loader/index.ts b/src/platform/packages/private/kbn-apm-config-loader/index.ts similarity index 100% rename from packages/kbn-apm-config-loader/index.ts rename to src/platform/packages/private/kbn-apm-config-loader/index.ts diff --git a/packages/kbn-apm-config-loader/jest.config.js b/src/platform/packages/private/kbn-apm-config-loader/jest.config.js similarity index 83% rename from packages/kbn-apm-config-loader/jest.config.js rename to src/platform/packages/private/kbn-apm-config-loader/jest.config.js index 5b4bf2b997ad6..f8ff9a4c535bb 100644 --- a/packages/kbn-apm-config-loader/jest.config.js +++ b/src/platform/packages/private/kbn-apm-config-loader/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-apm-config-loader'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-apm-config-loader'], }; diff --git a/packages/kbn-apm-config-loader/kibana.jsonc b/src/platform/packages/private/kbn-apm-config-loader/kibana.jsonc similarity index 100% rename from packages/kbn-apm-config-loader/kibana.jsonc rename to src/platform/packages/private/kbn-apm-config-loader/kibana.jsonc diff --git a/packages/kbn-apm-config-loader/package.json b/src/platform/packages/private/kbn-apm-config-loader/package.json similarity index 100% rename from packages/kbn-apm-config-loader/package.json rename to src/platform/packages/private/kbn-apm-config-loader/package.json diff --git a/packages/kbn-apm-config-loader/src/__fixtures__/config.yml b/src/platform/packages/private/kbn-apm-config-loader/src/__fixtures__/config.yml similarity index 100% rename from packages/kbn-apm-config-loader/src/__fixtures__/config.yml rename to src/platform/packages/private/kbn-apm-config-loader/src/__fixtures__/config.yml diff --git a/packages/kbn-apm-config-loader/src/__fixtures__/config_flat.yml b/src/platform/packages/private/kbn-apm-config-loader/src/__fixtures__/config_flat.yml similarity index 100% rename from packages/kbn-apm-config-loader/src/__fixtures__/config_flat.yml rename to src/platform/packages/private/kbn-apm-config-loader/src/__fixtures__/config_flat.yml diff --git a/packages/kbn-apm-config-loader/src/__fixtures__/en_var_ref_config.yml b/src/platform/packages/private/kbn-apm-config-loader/src/__fixtures__/en_var_ref_config.yml similarity index 100% rename from packages/kbn-apm-config-loader/src/__fixtures__/en_var_ref_config.yml rename to src/platform/packages/private/kbn-apm-config-loader/src/__fixtures__/en_var_ref_config.yml diff --git a/packages/kbn-apm-config-loader/src/__fixtures__/one.yml b/src/platform/packages/private/kbn-apm-config-loader/src/__fixtures__/one.yml similarity index 100% rename from packages/kbn-apm-config-loader/src/__fixtures__/one.yml rename to src/platform/packages/private/kbn-apm-config-loader/src/__fixtures__/one.yml diff --git a/packages/kbn-apm-config-loader/src/__fixtures__/two.yml b/src/platform/packages/private/kbn-apm-config-loader/src/__fixtures__/two.yml similarity index 100% rename from packages/kbn-apm-config-loader/src/__fixtures__/two.yml rename to src/platform/packages/private/kbn-apm-config-loader/src/__fixtures__/two.yml diff --git a/packages/kbn-apm-config-loader/src/apm_config.ts b/src/platform/packages/private/kbn-apm-config-loader/src/apm_config.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/apm_config.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/apm_config.ts diff --git a/packages/kbn-apm-config-loader/src/config.test.mocks.ts b/src/platform/packages/private/kbn-apm-config-loader/src/config.test.mocks.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/config.test.mocks.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/config.test.mocks.ts diff --git a/packages/kbn-apm-config-loader/src/config.test.ts b/src/platform/packages/private/kbn-apm-config-loader/src/config.test.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/config.test.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/config.test.ts diff --git a/packages/kbn-apm-config-loader/src/config.ts b/src/platform/packages/private/kbn-apm-config-loader/src/config.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/config.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/config.ts diff --git a/packages/kbn-apm-config-loader/src/config_loader.test.mocks.ts b/src/platform/packages/private/kbn-apm-config-loader/src/config_loader.test.mocks.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/config_loader.test.mocks.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/config_loader.test.mocks.ts diff --git a/packages/kbn-apm-config-loader/src/config_loader.test.ts b/src/platform/packages/private/kbn-apm-config-loader/src/config_loader.test.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/config_loader.test.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/config_loader.test.ts diff --git a/packages/kbn-apm-config-loader/src/config_loader.ts b/src/platform/packages/private/kbn-apm-config-loader/src/config_loader.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/config_loader.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/config_loader.ts diff --git a/packages/kbn-apm-config-loader/src/init_apm.test.mocks.ts b/src/platform/packages/private/kbn-apm-config-loader/src/init_apm.test.mocks.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/init_apm.test.mocks.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/init_apm.test.mocks.ts diff --git a/packages/kbn-apm-config-loader/src/init_apm.test.ts b/src/platform/packages/private/kbn-apm-config-loader/src/init_apm.test.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/init_apm.test.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/init_apm.test.ts diff --git a/packages/kbn-apm-config-loader/src/init_apm.ts b/src/platform/packages/private/kbn-apm-config-loader/src/init_apm.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/init_apm.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/init_apm.ts diff --git a/packages/kbn-apm-config-loader/src/rum_agent_configuration.test.ts b/src/platform/packages/private/kbn-apm-config-loader/src/rum_agent_configuration.test.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/rum_agent_configuration.test.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/rum_agent_configuration.test.ts diff --git a/packages/kbn-apm-config-loader/src/rum_agent_configuration.ts b/src/platform/packages/private/kbn-apm-config-loader/src/rum_agent_configuration.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/rum_agent_configuration.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/rum_agent_configuration.ts diff --git a/packages/kbn-apm-config-loader/src/utils/__snapshots__/read_config.test.ts.snap b/src/platform/packages/private/kbn-apm-config-loader/src/utils/__snapshots__/read_config.test.ts.snap similarity index 100% rename from packages/kbn-apm-config-loader/src/utils/__snapshots__/read_config.test.ts.snap rename to src/platform/packages/private/kbn-apm-config-loader/src/utils/__snapshots__/read_config.test.ts.snap diff --git a/packages/kbn-apm-config-loader/src/utils/apply_config_overrides.test.ts b/src/platform/packages/private/kbn-apm-config-loader/src/utils/apply_config_overrides.test.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/utils/apply_config_overrides.test.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/utils/apply_config_overrides.test.ts diff --git a/packages/kbn-apm-config-loader/src/utils/apply_config_overrides.ts b/src/platform/packages/private/kbn-apm-config-loader/src/utils/apply_config_overrides.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/utils/apply_config_overrides.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/utils/apply_config_overrides.ts diff --git a/packages/kbn-apm-config-loader/src/utils/get_config_file_paths.test.ts b/src/platform/packages/private/kbn-apm-config-loader/src/utils/get_config_file_paths.test.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/utils/get_config_file_paths.test.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/utils/get_config_file_paths.test.ts diff --git a/packages/kbn-apm-config-loader/src/utils/get_config_file_paths.ts b/src/platform/packages/private/kbn-apm-config-loader/src/utils/get_config_file_paths.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/utils/get_config_file_paths.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/utils/get_config_file_paths.ts diff --git a/packages/kbn-apm-config-loader/src/utils/index.ts b/src/platform/packages/private/kbn-apm-config-loader/src/utils/index.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/utils/index.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/utils/index.ts diff --git a/packages/kbn-apm-config-loader/src/utils/read_argv.test.ts b/src/platform/packages/private/kbn-apm-config-loader/src/utils/read_argv.test.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/utils/read_argv.test.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/utils/read_argv.test.ts diff --git a/packages/kbn-apm-config-loader/src/utils/read_argv.ts b/src/platform/packages/private/kbn-apm-config-loader/src/utils/read_argv.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/utils/read_argv.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/utils/read_argv.ts diff --git a/packages/kbn-apm-config-loader/src/utils/read_config.test.ts b/src/platform/packages/private/kbn-apm-config-loader/src/utils/read_config.test.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/utils/read_config.test.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/utils/read_config.test.ts diff --git a/packages/kbn-apm-config-loader/src/utils/read_config.ts b/src/platform/packages/private/kbn-apm-config-loader/src/utils/read_config.ts similarity index 100% rename from packages/kbn-apm-config-loader/src/utils/read_config.ts rename to src/platform/packages/private/kbn-apm-config-loader/src/utils/read_config.ts diff --git a/packages/kbn-apm-config-loader/tsconfig.json b/src/platform/packages/private/kbn-apm-config-loader/tsconfig.json similarity index 85% rename from packages/kbn-apm-config-loader/tsconfig.json rename to src/platform/packages/private/kbn-apm-config-loader/tsconfig.json index a0134a88755c4..0d39721abbcbf 100644 --- a/packages/kbn-apm-config-loader/tsconfig.json +++ b/src/platform/packages/private/kbn-apm-config-loader/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index d52444945193c..7f7de3bb6af2c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -76,8 +76,8 @@ "@kbn/analytics-ftr-helpers-plugin/*": ["test/analytics/plugins/analytics_ftr_helpers/*"], "@kbn/analytics-plugin-a-plugin": ["test/analytics/plugins/analytics_plugin_a"], "@kbn/analytics-plugin-a-plugin/*": ["test/analytics/plugins/analytics_plugin_a/*"], - "@kbn/apm-config-loader": ["packages/kbn-apm-config-loader"], - "@kbn/apm-config-loader/*": ["packages/kbn-apm-config-loader/*"], + "@kbn/apm-config-loader": ["src/platform/packages/private/kbn-apm-config-loader"], + "@kbn/apm-config-loader/*": ["src/platform/packages/private/kbn-apm-config-loader/*"], "@kbn/apm-data-access-plugin": ["x-pack/solutions/observability/plugins/apm_data_access"], "@kbn/apm-data-access-plugin/*": ["x-pack/solutions/observability/plugins/apm_data_access/*"], "@kbn/apm-data-view": ["src/platform/packages/shared/kbn-apm-data-view"], diff --git a/yarn.lock b/yarn.lock index 563c0fe627d8d..f874e8a7eea97 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3969,7 +3969,7 @@ version "0.0.0" uid "" -"@kbn/apm-config-loader@link:packages/kbn-apm-config-loader": +"@kbn/apm-config-loader@link:src/platform/packages/private/kbn-apm-config-loader": version "0.0.0" uid "" From 82abb149799e8db3c01bb6073ee011e916600adc Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 21:57:15 +0100 Subject: [PATCH 004/167] Relocating module `@kbn/cloud` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- package.json | 2 +- src/dev/storybook/aliases.ts | 2 +- .../platform/packages/shared}/cloud/.storybook/main.js | 0 {packages => src/platform/packages/shared}/cloud/README.md | 0 .../components/copy_input/copy_input.stories.tsx | 0 .../connection_details/components/copy_input/copy_input.tsx | 0 .../cloud/connection_details/components/copy_input/index.ts | 0 .../components/fancy_select/fancy_select.stories.tsx | 0 .../components/fancy_select/fancy_select.tsx | 0 .../cloud/connection_details/components/fancy_select/index.ts | 0 .../cloud/connection_details/components/fancy_select/types.ts | 0 .../connection_details/components/spa_no_router_link/index.ts | 0 .../components/spa_no_router_link/spa_no_router_link.tsx | 0 .../cloud/connection_details/connection_details.stories.tsx | 0 .../shared}/cloud/connection_details/connection_details.tsx | 0 .../connection_details_flyout_content.stories.tsx | 0 .../connection_details/connection_details_flyout_content.tsx | 0 .../shared}/cloud/connection_details/context/index.ts | 0 .../shared}/cloud/connection_details/context/options.tsx | 0 .../shared}/cloud/connection_details/context/service.tsx | 0 .../shared}/cloud/connection_details/hooks/use_async_memo.ts | 0 .../cloud/connection_details/hooks/use_behavior_subject.ts | 0 .../packages/shared}/cloud/connection_details/index.ts | 0 .../shared}/cloud/connection_details/kibana/global.ts | 0 .../packages/shared}/cloud/connection_details/kibana/index.ts | 0 .../kibana/kibana_connection_details_provider.tsx | 0 .../kibana/kibana_wired_connection_details_provider.tsx | 0 .../connection_details/kibana/open_connection_details.tsx | 0 .../kibana/open_wired_connection_details.tsx | 0 .../packages/shared}/cloud/connection_details/service.ts | 0 .../packages/shared}/cloud/connection_details/stories.tsx | 0 .../packages/shared}/cloud/connection_details/tabs.tsx | 0 .../tabs/api_keys_tab/api_keys_tab.stories.tsx | 0 .../connection_details/tabs/api_keys_tab/api_keys_tab.tsx | 0 .../tabs/api_keys_tab/components/manage_keys_link.tsx | 0 .../cloud/connection_details/tabs/api_keys_tab/index.ts | 0 .../views/configuration_form/configuration_form.tsx | 0 .../configuration_form/configuration_form_controlled.tsx | 0 .../tabs/api_keys_tab/views/configuration_form/index.tsx | 0 .../tabs/api_keys_tab/views/missing_permissions_panel.tsx | 0 .../tabs/api_keys_tab/views/success_form/format_select.tsx | 0 .../tabs/api_keys_tab/views/success_form/index.tsx | 0 .../tabs/api_keys_tab/views/success_form/success_form.tsx | 0 .../views/success_form/success_form_controlled.stories.tsx | 0 .../views/success_form/success_form_controlled.tsx | 0 .../tabs/api_keys_tab/views/success_form/types.tsx | 0 .../tabs/endpoints_tab/endpoint_tab.stories.tsx | 0 .../connection_details/tabs/endpoints_tab/endpoints_tab.tsx | 0 .../cloud/connection_details/tabs/endpoints_tab/index.ts | 0 .../tabs/endpoints_tab/rows/cloud_id_row/cloud_id_row.tsx | 0 .../tabs/endpoints_tab/rows/cloud_id_row/index.ts | 0 .../tabs/endpoints_tab/rows/cloud_id_row/label.tsx | 0 .../tabs/endpoints_tab/rows/endpoints_url_row.tsx | 0 .../packages/shared}/cloud/connection_details/types.ts | 0 .../shared}/cloud/deployment_details/deployment_details.tsx | 0 .../deployment_details/deployment_details_cloudid_input.tsx | 0 .../cloud/deployment_details/deployment_details_es_input.tsx | 0 .../cloud/deployment_details/deployment_details_modal.tsx | 0 .../packages/shared}/cloud/deployment_details/index.ts | 0 .../packages/shared}/cloud/deployment_details/services.tsx | 0 .../platform/packages/shared}/cloud/jest.config.js | 4 ++-- {packages => src/platform/packages/shared}/cloud/kibana.jsonc | 0 {packages => src/platform/packages/shared}/cloud/package.json | 0 .../platform/packages/shared}/cloud/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 68 files changed, 10 insertions(+), 10 deletions(-) rename {packages => src/platform/packages/shared}/cloud/.storybook/main.js (100%) rename {packages => src/platform/packages/shared}/cloud/README.md (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/components/copy_input/copy_input.stories.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/components/copy_input/copy_input.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/components/copy_input/index.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/components/fancy_select/fancy_select.stories.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/components/fancy_select/fancy_select.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/components/fancy_select/index.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/components/fancy_select/types.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/components/spa_no_router_link/index.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/components/spa_no_router_link/spa_no_router_link.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/connection_details.stories.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/connection_details.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/connection_details_flyout_content.stories.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/connection_details_flyout_content.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/context/index.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/context/options.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/context/service.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/hooks/use_async_memo.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/hooks/use_behavior_subject.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/index.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/kibana/global.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/kibana/index.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/kibana/kibana_connection_details_provider.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/kibana/kibana_wired_connection_details_provider.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/kibana/open_connection_details.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/kibana/open_wired_connection_details.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/service.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/stories.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/api_keys_tab.stories.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/api_keys_tab.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/components/manage_keys_link.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/index.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form_controlled.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/index.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/views/missing_permissions_panel.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/views/success_form/format_select.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/views/success_form/index.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form_controlled.stories.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form_controlled.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/api_keys_tab/views/success_form/types.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/endpoints_tab/endpoint_tab.stories.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/endpoints_tab/endpoints_tab.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/endpoints_tab/index.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/cloud_id_row.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/index.ts (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/label.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/tabs/endpoints_tab/rows/endpoints_url_row.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/connection_details/types.ts (100%) rename {packages => src/platform/packages/shared}/cloud/deployment_details/deployment_details.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/deployment_details/deployment_details_cloudid_input.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/deployment_details/deployment_details_es_input.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/deployment_details/deployment_details_modal.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/deployment_details/index.ts (100%) rename {packages => src/platform/packages/shared}/cloud/deployment_details/services.tsx (100%) rename {packages => src/platform/packages/shared}/cloud/jest.config.js (85%) rename {packages => src/platform/packages/shared}/cloud/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/cloud/package.json (100%) rename {packages => src/platform/packages/shared}/cloud/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 40868c2f2f156..35941be80f5f4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -41,7 +41,6 @@ examples/unified_doc_viewer @elastic/kibana-core examples/unified_field_list_examples @elastic/kibana-data-discovery examples/user_profile_examples @elastic/kibana-security examples/v8_profiler_examples @elastic/response-ops -packages/cloud @elastic/kibana-core packages/content-management/content_editor @elastic/appex-sharedux packages/content-management/content_insights/content_insights_public @elastic/appex-sharedux packages/content-management/content_insights/content_insights_server @elastic/appex-sharedux @@ -514,6 +513,7 @@ src/platform/packages/private/kbn-repo-packages @elastic/kibana-operations src/platform/packages/private/kbn-ui-shared-deps-npm @elastic/kibana-operations src/platform/packages/private/kbn-ui-shared-deps-src @elastic/kibana-operations src/platform/packages/private/kbn-unsaved-changes-badge @elastic/kibana-data-discovery +src/platform/packages/shared/cloud @elastic/kibana-core src/platform/packages/shared/deeplinks/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/shared/deeplinks/devtools @elastic/kibana-management src/platform/packages/shared/deeplinks/fleet @elastic/fleet diff --git a/.i18nrc.json b/.i18nrc.json index 41e6d17b13757..13407fd941ea0 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -17,7 +17,7 @@ "customIntegrations": "src/platform/plugins/shared/custom_integrations", "customIntegrationsPackage": "x-pack/solutions/observability/packages/kbn-custom-integrations", "dashboard": "src/platform/plugins/shared/dashboard", - "cloud": "packages/cloud", + "cloud": "src/platform/packages/shared/cloud", "domDragDrop": "packages/kbn-dom-drag-drop", "controls": "src/platform/plugins/shared/controls", "data": "src/plugins/data", diff --git a/package.json b/package.json index f49a5abaddd1d..feab3865a348b 100644 --- a/package.json +++ b/package.json @@ -208,7 +208,7 @@ "@kbn/chart-icons": "link:packages/kbn-chart-icons", "@kbn/charts-plugin": "link:src/plugins/charts", "@kbn/charts-theme": "link:packages/kbn-charts-theme", - "@kbn/cloud": "link:packages/cloud", + "@kbn/cloud": "link:src/platform/packages/shared/cloud", "@kbn/cloud-chat-plugin": "link:x-pack/plugins/cloud_integrations/cloud_chat", "@kbn/cloud-data-migration-plugin": "link:x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration", "@kbn/cloud-defend-plugin": "link:x-pack/solutions/security/plugins/cloud_defend", diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index c03fde3bc7125..ab5664257c606 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -19,7 +19,7 @@ export const storybookAliases = { cell_actions: 'src/platform/packages/shared/kbn-cell-actions/.storybook', cloud_security_posture_packages: 'x-pack/solutions/security/packages/kbn-cloud-security-posture/.storybook', - cloud: 'packages/cloud/.storybook', + cloud: 'src/platform/packages/shared/cloud/.storybook', coloring: 'packages/kbn-coloring/.storybook', language_documentation_popover: 'src/platform/packages/private/kbn-language-documentation/.storybook', diff --git a/packages/cloud/.storybook/main.js b/src/platform/packages/shared/cloud/.storybook/main.js similarity index 100% rename from packages/cloud/.storybook/main.js rename to src/platform/packages/shared/cloud/.storybook/main.js diff --git a/packages/cloud/README.md b/src/platform/packages/shared/cloud/README.md similarity index 100% rename from packages/cloud/README.md rename to src/platform/packages/shared/cloud/README.md diff --git a/packages/cloud/connection_details/components/copy_input/copy_input.stories.tsx b/src/platform/packages/shared/cloud/connection_details/components/copy_input/copy_input.stories.tsx similarity index 100% rename from packages/cloud/connection_details/components/copy_input/copy_input.stories.tsx rename to src/platform/packages/shared/cloud/connection_details/components/copy_input/copy_input.stories.tsx diff --git a/packages/cloud/connection_details/components/copy_input/copy_input.tsx b/src/platform/packages/shared/cloud/connection_details/components/copy_input/copy_input.tsx similarity index 100% rename from packages/cloud/connection_details/components/copy_input/copy_input.tsx rename to src/platform/packages/shared/cloud/connection_details/components/copy_input/copy_input.tsx diff --git a/packages/cloud/connection_details/components/copy_input/index.ts b/src/platform/packages/shared/cloud/connection_details/components/copy_input/index.ts similarity index 100% rename from packages/cloud/connection_details/components/copy_input/index.ts rename to src/platform/packages/shared/cloud/connection_details/components/copy_input/index.ts diff --git a/packages/cloud/connection_details/components/fancy_select/fancy_select.stories.tsx b/src/platform/packages/shared/cloud/connection_details/components/fancy_select/fancy_select.stories.tsx similarity index 100% rename from packages/cloud/connection_details/components/fancy_select/fancy_select.stories.tsx rename to src/platform/packages/shared/cloud/connection_details/components/fancy_select/fancy_select.stories.tsx diff --git a/packages/cloud/connection_details/components/fancy_select/fancy_select.tsx b/src/platform/packages/shared/cloud/connection_details/components/fancy_select/fancy_select.tsx similarity index 100% rename from packages/cloud/connection_details/components/fancy_select/fancy_select.tsx rename to src/platform/packages/shared/cloud/connection_details/components/fancy_select/fancy_select.tsx diff --git a/packages/cloud/connection_details/components/fancy_select/index.ts b/src/platform/packages/shared/cloud/connection_details/components/fancy_select/index.ts similarity index 100% rename from packages/cloud/connection_details/components/fancy_select/index.ts rename to src/platform/packages/shared/cloud/connection_details/components/fancy_select/index.ts diff --git a/packages/cloud/connection_details/components/fancy_select/types.ts b/src/platform/packages/shared/cloud/connection_details/components/fancy_select/types.ts similarity index 100% rename from packages/cloud/connection_details/components/fancy_select/types.ts rename to src/platform/packages/shared/cloud/connection_details/components/fancy_select/types.ts diff --git a/packages/cloud/connection_details/components/spa_no_router_link/index.ts b/src/platform/packages/shared/cloud/connection_details/components/spa_no_router_link/index.ts similarity index 100% rename from packages/cloud/connection_details/components/spa_no_router_link/index.ts rename to src/platform/packages/shared/cloud/connection_details/components/spa_no_router_link/index.ts diff --git a/packages/cloud/connection_details/components/spa_no_router_link/spa_no_router_link.tsx b/src/platform/packages/shared/cloud/connection_details/components/spa_no_router_link/spa_no_router_link.tsx similarity index 100% rename from packages/cloud/connection_details/components/spa_no_router_link/spa_no_router_link.tsx rename to src/platform/packages/shared/cloud/connection_details/components/spa_no_router_link/spa_no_router_link.tsx diff --git a/packages/cloud/connection_details/connection_details.stories.tsx b/src/platform/packages/shared/cloud/connection_details/connection_details.stories.tsx similarity index 100% rename from packages/cloud/connection_details/connection_details.stories.tsx rename to src/platform/packages/shared/cloud/connection_details/connection_details.stories.tsx diff --git a/packages/cloud/connection_details/connection_details.tsx b/src/platform/packages/shared/cloud/connection_details/connection_details.tsx similarity index 100% rename from packages/cloud/connection_details/connection_details.tsx rename to src/platform/packages/shared/cloud/connection_details/connection_details.tsx diff --git a/packages/cloud/connection_details/connection_details_flyout_content.stories.tsx b/src/platform/packages/shared/cloud/connection_details/connection_details_flyout_content.stories.tsx similarity index 100% rename from packages/cloud/connection_details/connection_details_flyout_content.stories.tsx rename to src/platform/packages/shared/cloud/connection_details/connection_details_flyout_content.stories.tsx diff --git a/packages/cloud/connection_details/connection_details_flyout_content.tsx b/src/platform/packages/shared/cloud/connection_details/connection_details_flyout_content.tsx similarity index 100% rename from packages/cloud/connection_details/connection_details_flyout_content.tsx rename to src/platform/packages/shared/cloud/connection_details/connection_details_flyout_content.tsx diff --git a/packages/cloud/connection_details/context/index.ts b/src/platform/packages/shared/cloud/connection_details/context/index.ts similarity index 100% rename from packages/cloud/connection_details/context/index.ts rename to src/platform/packages/shared/cloud/connection_details/context/index.ts diff --git a/packages/cloud/connection_details/context/options.tsx b/src/platform/packages/shared/cloud/connection_details/context/options.tsx similarity index 100% rename from packages/cloud/connection_details/context/options.tsx rename to src/platform/packages/shared/cloud/connection_details/context/options.tsx diff --git a/packages/cloud/connection_details/context/service.tsx b/src/platform/packages/shared/cloud/connection_details/context/service.tsx similarity index 100% rename from packages/cloud/connection_details/context/service.tsx rename to src/platform/packages/shared/cloud/connection_details/context/service.tsx diff --git a/packages/cloud/connection_details/hooks/use_async_memo.ts b/src/platform/packages/shared/cloud/connection_details/hooks/use_async_memo.ts similarity index 100% rename from packages/cloud/connection_details/hooks/use_async_memo.ts rename to src/platform/packages/shared/cloud/connection_details/hooks/use_async_memo.ts diff --git a/packages/cloud/connection_details/hooks/use_behavior_subject.ts b/src/platform/packages/shared/cloud/connection_details/hooks/use_behavior_subject.ts similarity index 100% rename from packages/cloud/connection_details/hooks/use_behavior_subject.ts rename to src/platform/packages/shared/cloud/connection_details/hooks/use_behavior_subject.ts diff --git a/packages/cloud/connection_details/index.ts b/src/platform/packages/shared/cloud/connection_details/index.ts similarity index 100% rename from packages/cloud/connection_details/index.ts rename to src/platform/packages/shared/cloud/connection_details/index.ts diff --git a/packages/cloud/connection_details/kibana/global.ts b/src/platform/packages/shared/cloud/connection_details/kibana/global.ts similarity index 100% rename from packages/cloud/connection_details/kibana/global.ts rename to src/platform/packages/shared/cloud/connection_details/kibana/global.ts diff --git a/packages/cloud/connection_details/kibana/index.ts b/src/platform/packages/shared/cloud/connection_details/kibana/index.ts similarity index 100% rename from packages/cloud/connection_details/kibana/index.ts rename to src/platform/packages/shared/cloud/connection_details/kibana/index.ts diff --git a/packages/cloud/connection_details/kibana/kibana_connection_details_provider.tsx b/src/platform/packages/shared/cloud/connection_details/kibana/kibana_connection_details_provider.tsx similarity index 100% rename from packages/cloud/connection_details/kibana/kibana_connection_details_provider.tsx rename to src/platform/packages/shared/cloud/connection_details/kibana/kibana_connection_details_provider.tsx diff --git a/packages/cloud/connection_details/kibana/kibana_wired_connection_details_provider.tsx b/src/platform/packages/shared/cloud/connection_details/kibana/kibana_wired_connection_details_provider.tsx similarity index 100% rename from packages/cloud/connection_details/kibana/kibana_wired_connection_details_provider.tsx rename to src/platform/packages/shared/cloud/connection_details/kibana/kibana_wired_connection_details_provider.tsx diff --git a/packages/cloud/connection_details/kibana/open_connection_details.tsx b/src/platform/packages/shared/cloud/connection_details/kibana/open_connection_details.tsx similarity index 100% rename from packages/cloud/connection_details/kibana/open_connection_details.tsx rename to src/platform/packages/shared/cloud/connection_details/kibana/open_connection_details.tsx diff --git a/packages/cloud/connection_details/kibana/open_wired_connection_details.tsx b/src/platform/packages/shared/cloud/connection_details/kibana/open_wired_connection_details.tsx similarity index 100% rename from packages/cloud/connection_details/kibana/open_wired_connection_details.tsx rename to src/platform/packages/shared/cloud/connection_details/kibana/open_wired_connection_details.tsx diff --git a/packages/cloud/connection_details/service.ts b/src/platform/packages/shared/cloud/connection_details/service.ts similarity index 100% rename from packages/cloud/connection_details/service.ts rename to src/platform/packages/shared/cloud/connection_details/service.ts diff --git a/packages/cloud/connection_details/stories.tsx b/src/platform/packages/shared/cloud/connection_details/stories.tsx similarity index 100% rename from packages/cloud/connection_details/stories.tsx rename to src/platform/packages/shared/cloud/connection_details/stories.tsx diff --git a/packages/cloud/connection_details/tabs.tsx b/src/platform/packages/shared/cloud/connection_details/tabs.tsx similarity index 100% rename from packages/cloud/connection_details/tabs.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs.tsx diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/api_keys_tab.stories.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/api_keys_tab.stories.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/api_keys_tab.stories.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/api_keys_tab.stories.tsx diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/api_keys_tab.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/api_keys_tab.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/api_keys_tab.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/api_keys_tab.tsx diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/components/manage_keys_link.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/components/manage_keys_link.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/components/manage_keys_link.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/components/manage_keys_link.tsx diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/index.ts b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/index.ts similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/index.ts rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/index.ts diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form.tsx diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form_controlled.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form_controlled.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form_controlled.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/configuration_form_controlled.tsx diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/index.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/index.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/index.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/configuration_form/index.tsx diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/views/missing_permissions_panel.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/missing_permissions_panel.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/views/missing_permissions_panel.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/missing_permissions_panel.tsx diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/views/success_form/format_select.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/success_form/format_select.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/views/success_form/format_select.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/success_form/format_select.tsx diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/views/success_form/index.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/success_form/index.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/views/success_form/index.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/success_form/index.tsx diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form.tsx diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form_controlled.stories.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form_controlled.stories.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form_controlled.stories.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form_controlled.stories.tsx diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form_controlled.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form_controlled.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form_controlled.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/success_form/success_form_controlled.tsx diff --git a/packages/cloud/connection_details/tabs/api_keys_tab/views/success_form/types.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/success_form/types.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/api_keys_tab/views/success_form/types.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/api_keys_tab/views/success_form/types.tsx diff --git a/packages/cloud/connection_details/tabs/endpoints_tab/endpoint_tab.stories.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/endpoint_tab.stories.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/endpoints_tab/endpoint_tab.stories.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/endpoint_tab.stories.tsx diff --git a/packages/cloud/connection_details/tabs/endpoints_tab/endpoints_tab.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/endpoints_tab.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/endpoints_tab/endpoints_tab.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/endpoints_tab.tsx diff --git a/packages/cloud/connection_details/tabs/endpoints_tab/index.ts b/src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/index.ts similarity index 100% rename from packages/cloud/connection_details/tabs/endpoints_tab/index.ts rename to src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/index.ts diff --git a/packages/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/cloud_id_row.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/cloud_id_row.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/cloud_id_row.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/cloud_id_row.tsx diff --git a/packages/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/index.ts b/src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/index.ts similarity index 100% rename from packages/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/index.ts rename to src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/index.ts diff --git a/packages/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/label.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/label.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/label.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/rows/cloud_id_row/label.tsx diff --git a/packages/cloud/connection_details/tabs/endpoints_tab/rows/endpoints_url_row.tsx b/src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/rows/endpoints_url_row.tsx similarity index 100% rename from packages/cloud/connection_details/tabs/endpoints_tab/rows/endpoints_url_row.tsx rename to src/platform/packages/shared/cloud/connection_details/tabs/endpoints_tab/rows/endpoints_url_row.tsx diff --git a/packages/cloud/connection_details/types.ts b/src/platform/packages/shared/cloud/connection_details/types.ts similarity index 100% rename from packages/cloud/connection_details/types.ts rename to src/platform/packages/shared/cloud/connection_details/types.ts diff --git a/packages/cloud/deployment_details/deployment_details.tsx b/src/platform/packages/shared/cloud/deployment_details/deployment_details.tsx similarity index 100% rename from packages/cloud/deployment_details/deployment_details.tsx rename to src/platform/packages/shared/cloud/deployment_details/deployment_details.tsx diff --git a/packages/cloud/deployment_details/deployment_details_cloudid_input.tsx b/src/platform/packages/shared/cloud/deployment_details/deployment_details_cloudid_input.tsx similarity index 100% rename from packages/cloud/deployment_details/deployment_details_cloudid_input.tsx rename to src/platform/packages/shared/cloud/deployment_details/deployment_details_cloudid_input.tsx diff --git a/packages/cloud/deployment_details/deployment_details_es_input.tsx b/src/platform/packages/shared/cloud/deployment_details/deployment_details_es_input.tsx similarity index 100% rename from packages/cloud/deployment_details/deployment_details_es_input.tsx rename to src/platform/packages/shared/cloud/deployment_details/deployment_details_es_input.tsx diff --git a/packages/cloud/deployment_details/deployment_details_modal.tsx b/src/platform/packages/shared/cloud/deployment_details/deployment_details_modal.tsx similarity index 100% rename from packages/cloud/deployment_details/deployment_details_modal.tsx rename to src/platform/packages/shared/cloud/deployment_details/deployment_details_modal.tsx diff --git a/packages/cloud/deployment_details/index.ts b/src/platform/packages/shared/cloud/deployment_details/index.ts similarity index 100% rename from packages/cloud/deployment_details/index.ts rename to src/platform/packages/shared/cloud/deployment_details/index.ts diff --git a/packages/cloud/deployment_details/services.tsx b/src/platform/packages/shared/cloud/deployment_details/services.tsx similarity index 100% rename from packages/cloud/deployment_details/services.tsx rename to src/platform/packages/shared/cloud/deployment_details/services.tsx diff --git a/packages/cloud/jest.config.js b/src/platform/packages/shared/cloud/jest.config.js similarity index 85% rename from packages/cloud/jest.config.js rename to src/platform/packages/shared/cloud/jest.config.js index f1d60eda4027a..8b33a82725496 100644 --- a/packages/cloud/jest.config.js +++ b/src/platform/packages/shared/cloud/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/cloud'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/cloud'], }; diff --git a/packages/cloud/kibana.jsonc b/src/platform/packages/shared/cloud/kibana.jsonc similarity index 100% rename from packages/cloud/kibana.jsonc rename to src/platform/packages/shared/cloud/kibana.jsonc diff --git a/packages/cloud/package.json b/src/platform/packages/shared/cloud/package.json similarity index 100% rename from packages/cloud/package.json rename to src/platform/packages/shared/cloud/package.json diff --git a/packages/cloud/tsconfig.json b/src/platform/packages/shared/cloud/tsconfig.json similarity index 89% rename from packages/cloud/tsconfig.json rename to src/platform/packages/shared/cloud/tsconfig.json index 63d6c281f8199..1dd9258760043 100644 --- a/packages/cloud/tsconfig.json +++ b/src/platform/packages/shared/cloud/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 7f7de3bb6af2c..e952dd2cb848b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -156,8 +156,8 @@ "@kbn/ci-stats-shipper-cli/*": ["packages/kbn-ci-stats-shipper-cli/*"], "@kbn/cli-dev-mode": ["packages/kbn-cli-dev-mode"], "@kbn/cli-dev-mode/*": ["packages/kbn-cli-dev-mode/*"], - "@kbn/cloud": ["packages/cloud"], - "@kbn/cloud/*": ["packages/cloud/*"], + "@kbn/cloud": ["src/platform/packages/shared/cloud"], + "@kbn/cloud/*": ["src/platform/packages/shared/cloud/*"], "@kbn/cloud-chat-plugin": ["x-pack/plugins/cloud_integrations/cloud_chat"], "@kbn/cloud-chat-plugin/*": ["x-pack/plugins/cloud_integrations/cloud_chat/*"], "@kbn/cloud-data-migration-plugin": ["x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration"], diff --git a/yarn.lock b/yarn.lock index f874e8a7eea97..eac6b0ff8f78d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4177,7 +4177,7 @@ version "0.0.0" uid "" -"@kbn/cloud@link:packages/cloud": +"@kbn/cloud@link:src/platform/packages/shared/cloud": version "0.0.0" uid "" From 3e04d999c65dc8840a9be20c153a12e3ea032a33 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 21:58:10 +0100 Subject: [PATCH 005/167] Relocating module `@kbn/cloud-chat-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- .../plugins/private}/cloud_integrations/cloud_chat/README.md | 0 .../private}/cloud_integrations/cloud_chat/kibana.jsonc | 0 .../private}/cloud_integrations/cloud_chat/server/config.ts | 0 .../private}/cloud_integrations/cloud_chat/server/index.ts | 0 .../private}/cloud_integrations/cloud_chat/tsconfig.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 8 insertions(+), 8 deletions(-) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_chat/README.md (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_chat/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_chat/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_chat/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_chat/tsconfig.json (77%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 35941be80f5f4..dac22c310a75a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -830,6 +830,7 @@ x-pack/platform/packages/shared/observability/alerting_rule_utils @elastic/obs-u x-pack/platform/packages/shared/observability/logs_overview @elastic/obs-ux-logs-team x-pack/platform/plugins/private/banners @elastic/appex-sharedux x-pack/platform/plugins/private/canvas @elastic/kibana-presentation +x-pack/platform/plugins/private/cloud_integrations/cloud_chat @elastic/kibana-core x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration @elastic/kibana-management x-pack/platform/plugins/private/cross_cluster_replication @elastic/kibana-management x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux @@ -891,7 +892,6 @@ x-pack/platform/plugins/shared/stack_connectors @elastic/response-ops x-pack/platform/plugins/shared/task_manager @elastic/response-ops x-pack/platform/plugins/shared/triggers_actions_ui @elastic/response-ops x-pack/plugins/cloud @elastic/kibana-core -x-pack/plugins/cloud_integrations/cloud_chat @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_experiments @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_full_story @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_links @elastic/kibana-core diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 970685211fb08..8594ca50b0278 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -487,7 +487,7 @@ The plugin exposes the static DefaultEditorController class to consume. |The cloud plugin exposes Cloud-specific metadata to Kibana. -|{kib-repo}blob/{branch}/x-pack/plugins/cloud_integrations/cloud_chat/README.md[cloudChat] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/cloud_integrations/cloud_chat/README.md[cloudChat] |The plugin was meant to integrate with DriftChat in order to provide live support to our Elastic Cloud users. It was removed, but the plugin was left behind to register no longer used config keys. diff --git a/package.json b/package.json index feab3865a348b..ad6b61c488091 100644 --- a/package.json +++ b/package.json @@ -209,7 +209,7 @@ "@kbn/charts-plugin": "link:src/plugins/charts", "@kbn/charts-theme": "link:packages/kbn-charts-theme", "@kbn/cloud": "link:src/platform/packages/shared/cloud", - "@kbn/cloud-chat-plugin": "link:x-pack/plugins/cloud_integrations/cloud_chat", + "@kbn/cloud-chat-plugin": "link:x-pack/platform/plugins/private/cloud_integrations/cloud_chat", "@kbn/cloud-data-migration-plugin": "link:x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration", "@kbn/cloud-defend-plugin": "link:x-pack/solutions/security/plugins/cloud_defend", "@kbn/cloud-experiments-plugin": "link:x-pack/plugins/cloud_integrations/cloud_experiments", diff --git a/tsconfig.base.json b/tsconfig.base.json index e952dd2cb848b..b28227de41159 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -158,8 +158,8 @@ "@kbn/cli-dev-mode/*": ["packages/kbn-cli-dev-mode/*"], "@kbn/cloud": ["src/platform/packages/shared/cloud"], "@kbn/cloud/*": ["src/platform/packages/shared/cloud/*"], - "@kbn/cloud-chat-plugin": ["x-pack/plugins/cloud_integrations/cloud_chat"], - "@kbn/cloud-chat-plugin/*": ["x-pack/plugins/cloud_integrations/cloud_chat/*"], + "@kbn/cloud-chat-plugin": ["x-pack/platform/plugins/private/cloud_integrations/cloud_chat"], + "@kbn/cloud-chat-plugin/*": ["x-pack/platform/plugins/private/cloud_integrations/cloud_chat/*"], "@kbn/cloud-data-migration-plugin": ["x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration"], "@kbn/cloud-data-migration-plugin/*": ["x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration/*"], "@kbn/cloud-defend-plugin": ["x-pack/solutions/security/plugins/cloud_defend"], diff --git a/x-pack/plugins/cloud_integrations/cloud_chat/README.md b/x-pack/platform/plugins/private/cloud_integrations/cloud_chat/README.md similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_chat/README.md rename to x-pack/platform/plugins/private/cloud_integrations/cloud_chat/README.md diff --git a/x-pack/plugins/cloud_integrations/cloud_chat/kibana.jsonc b/x-pack/platform/plugins/private/cloud_integrations/cloud_chat/kibana.jsonc similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_chat/kibana.jsonc rename to x-pack/platform/plugins/private/cloud_integrations/cloud_chat/kibana.jsonc diff --git a/x-pack/plugins/cloud_integrations/cloud_chat/server/config.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_chat/server/config.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_chat/server/config.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_chat/server/config.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_chat/server/index.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_chat/server/index.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_chat/server/index.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_chat/server/index.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_chat/tsconfig.json b/x-pack/platform/plugins/private/cloud_integrations/cloud_chat/tsconfig.json similarity index 77% rename from x-pack/plugins/cloud_integrations/cloud_chat/tsconfig.json rename to x-pack/platform/plugins/private/cloud_integrations/cloud_chat/tsconfig.json index a20f1dc8a30e6..d6f37cfa542ca 100644 --- a/x-pack/plugins/cloud_integrations/cloud_chat/tsconfig.json +++ b/x-pack/platform/plugins/private/cloud_integrations/cloud_chat/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, @@ -8,7 +8,7 @@ "common/**/*", "public/**/*", "server/**/*", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/core", diff --git a/yarn.lock b/yarn.lock index eac6b0ff8f78d..10cb31012a889 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4129,7 +4129,7 @@ version "0.0.0" uid "" -"@kbn/cloud-chat-plugin@link:x-pack/plugins/cloud_integrations/cloud_chat": +"@kbn/cloud-chat-plugin@link:x-pack/platform/plugins/private/cloud_integrations/cloud_chat": version "0.0.0" uid "" From a1571a7b8b21d0de4d4284e0949abbd4d674c4f7 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 21:59:02 +0100 Subject: [PATCH 006/167] Relocating module `@kbn/cloud-experiments-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- .../cloud_integrations/cloud_experiments/README.mdx | 0 .../cloud_experiments/common/metadata_service/index.ts | 0 .../common/metadata_service/initialize_metadata.ts | 0 .../common/metadata_service/metadata_service.test.ts | 0 .../common/metadata_service/metadata_service.ts | 0 .../common/metadata_service/remove_undefined.ts | 0 .../cloud_integrations/cloud_experiments/jest.config.js | 8 ++++---- .../cloud_integrations/cloud_experiments/kibana.jsonc | 0 .../cloud_integrations/cloud_experiments/public/index.ts | 0 .../cloud_experiments/public/plugin.test.ts | 0 .../cloud_integrations/cloud_experiments/public/plugin.ts | 0 .../cloud_experiments/server/config.test.ts | 0 .../cloud_integrations/cloud_experiments/server/config.ts | 0 .../cloud_integrations/cloud_experiments/server/index.ts | 0 .../cloud_experiments/server/plugin.test.ts | 0 .../cloud_integrations/cloud_experiments/server/plugin.ts | 0 .../cloud_experiments/server/usage/index.ts | 0 .../server/usage/register_usage_collector.test.ts | 0 .../server/usage/register_usage_collector.ts | 0 .../cloud_integrations/cloud_experiments/tsconfig.json | 4 ++-- yarn.lock | 2 +- 25 files changed, 12 insertions(+), 12 deletions(-) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/README.mdx (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/common/metadata_service/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/common/metadata_service/initialize_metadata.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/common/metadata_service/metadata_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/common/metadata_service/metadata_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/common/metadata_service/remove_undefined.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/jest.config.js (51%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/public/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/public/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/server/config.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/server/usage/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/server/usage/register_usage_collector.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/server/usage/register_usage_collector.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud_integrations/cloud_experiments/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dac22c310a75a..eae8578e95cf9 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -862,6 +862,7 @@ x-pack/platform/plugins/shared/ai_infra/product_doc_base @elastic/appex-ai-infra x-pack/platform/plugins/shared/aiops @elastic/ml-ui x-pack/platform/plugins/shared/alerting @elastic/response-ops x-pack/platform/plugins/shared/cases @elastic/response-ops +x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments @elastic/kibana-core x-pack/platform/plugins/shared/dashboard_enhanced @elastic/kibana-presentation x-pack/platform/plugins/shared/data_quality @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/dataset_quality @elastic/obs-ux-logs-team @@ -892,7 +893,6 @@ x-pack/platform/plugins/shared/stack_connectors @elastic/response-ops x-pack/platform/plugins/shared/task_manager @elastic/response-ops x-pack/platform/plugins/shared/triggers_actions_ui @elastic/response-ops x-pack/plugins/cloud @elastic/kibana-core -x-pack/plugins/cloud_integrations/cloud_experiments @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_full_story @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_links @elastic/kibana-core x-pack/plugins/drilldowns/url_drilldown @elastic/appex-sharedux diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 8594ca50b0278..78cc95579adc0 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -500,7 +500,7 @@ It was removed, but the plugin was left behind to register no longer used config |This plugin currently only exists to provide custom fleet policy UX for a set of new BPF LSM features. The first feature being container "drift prevention". -|{kib-repo}blob/{branch}/x-pack/plugins/cloud_integrations/cloud_experiments/README.mdx[cloudExperiments] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/README.mdx[cloudExperiments] |[!NOTE] This plugin no-longer exposes any evaluation APIs. Refer to for more information about how to interact with feature flags. diff --git a/package.json b/package.json index ad6b61c488091..d78cf8423270d 100644 --- a/package.json +++ b/package.json @@ -212,7 +212,7 @@ "@kbn/cloud-chat-plugin": "link:x-pack/platform/plugins/private/cloud_integrations/cloud_chat", "@kbn/cloud-data-migration-plugin": "link:x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration", "@kbn/cloud-defend-plugin": "link:x-pack/solutions/security/plugins/cloud_defend", - "@kbn/cloud-experiments-plugin": "link:x-pack/plugins/cloud_integrations/cloud_experiments", + "@kbn/cloud-experiments-plugin": "link:x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments", "@kbn/cloud-full-story-plugin": "link:x-pack/plugins/cloud_integrations/cloud_full_story", "@kbn/cloud-integration-saml-provider-plugin": "link:x-pack/test/cloud_integration/plugins/saml_provider", "@kbn/cloud-links-plugin": "link:x-pack/plugins/cloud_integrations/cloud_links", diff --git a/tsconfig.base.json b/tsconfig.base.json index b28227de41159..160e55683d438 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -164,8 +164,8 @@ "@kbn/cloud-data-migration-plugin/*": ["x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration/*"], "@kbn/cloud-defend-plugin": ["x-pack/solutions/security/plugins/cloud_defend"], "@kbn/cloud-defend-plugin/*": ["x-pack/solutions/security/plugins/cloud_defend/*"], - "@kbn/cloud-experiments-plugin": ["x-pack/plugins/cloud_integrations/cloud_experiments"], - "@kbn/cloud-experiments-plugin/*": ["x-pack/plugins/cloud_integrations/cloud_experiments/*"], + "@kbn/cloud-experiments-plugin": ["x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments"], + "@kbn/cloud-experiments-plugin/*": ["x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/*"], "@kbn/cloud-full-story-plugin": ["x-pack/plugins/cloud_integrations/cloud_full_story"], "@kbn/cloud-full-story-plugin/*": ["x-pack/plugins/cloud_integrations/cloud_full_story/*"], "@kbn/cloud-integration-saml-provider-plugin": ["x-pack/test/cloud_integration/plugins/saml_provider"], diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/README.mdx b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/README.mdx similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/README.mdx rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/README.mdx diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/common/metadata_service/index.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/common/metadata_service/index.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/common/metadata_service/index.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/common/metadata_service/index.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/common/metadata_service/initialize_metadata.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/common/metadata_service/initialize_metadata.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/common/metadata_service/initialize_metadata.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/common/metadata_service/initialize_metadata.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/common/metadata_service/metadata_service.test.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/common/metadata_service/metadata_service.test.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/common/metadata_service/metadata_service.test.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/common/metadata_service/metadata_service.test.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/common/metadata_service/metadata_service.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/common/metadata_service/metadata_service.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/common/metadata_service/metadata_service.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/common/metadata_service/metadata_service.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/common/metadata_service/remove_undefined.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/common/metadata_service/remove_undefined.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/common/metadata_service/remove_undefined.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/common/metadata_service/remove_undefined.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/jest.config.js b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/jest.config.js similarity index 51% rename from x-pack/plugins/cloud_integrations/cloud_experiments/jest.config.js rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/jest.config.js index a15dd88e1cb41..1fc309cf45a17 100644 --- a/x-pack/plugins/cloud_integrations/cloud_experiments/jest.config.js +++ b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/jest.config.js @@ -7,12 +7,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../', - roots: ['/x-pack/plugins/cloud_integrations/cloud_experiments'], + rootDir: '../../../../../../', + roots: ['/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments'], coverageDirectory: - '/target/kibana-coverage/jest/x-pack/plugins/cloud_integrations/cloud_experiments', + '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/plugins/cloud_integrations/cloud_experiments/{common,public,server}/**/*.{ts,tsx}', + '/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/kibana.jsonc b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/kibana.jsonc similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/kibana.jsonc rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/kibana.jsonc diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/public/index.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/public/index.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/public/index.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/public/index.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/public/plugin.test.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/public/plugin.test.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/public/plugin.test.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/public/plugin.test.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/public/plugin.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/public/plugin.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/public/plugin.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/public/plugin.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/server/config.test.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/config.test.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/server/config.test.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/config.test.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/server/config.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/config.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/server/config.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/config.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/server/index.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/index.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/server/index.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/index.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/server/plugin.test.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/server/plugin.test.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/plugin.test.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/server/plugin.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/plugin.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/server/plugin.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/plugin.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/server/usage/index.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/usage/index.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/server/usage/index.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/usage/index.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/server/usage/register_usage_collector.test.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/usage/register_usage_collector.test.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/server/usage/register_usage_collector.test.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/usage/register_usage_collector.test.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/server/usage/register_usage_collector.ts b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/usage/register_usage_collector.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_experiments/server/usage/register_usage_collector.ts rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/server/usage/register_usage_collector.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_experiments/tsconfig.json b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/tsconfig.json similarity index 86% rename from x-pack/plugins/cloud_integrations/cloud_experiments/tsconfig.json rename to x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/tsconfig.json index d47131016228d..c777250f11d5a 100644 --- a/x-pack/plugins/cloud_integrations/cloud_experiments/tsconfig.json +++ b/x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, @@ -8,7 +8,7 @@ "common/**/*", "public/**/*", "server/**/*", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/core", diff --git a/yarn.lock b/yarn.lock index 10cb31012a889..3d0421aa211b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4141,7 +4141,7 @@ version "0.0.0" uid "" -"@kbn/cloud-experiments-plugin@link:x-pack/plugins/cloud_integrations/cloud_experiments": +"@kbn/cloud-experiments-plugin@link:x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments": version "0.0.0" uid "" From 809f8301aa1ad988ec3dd94eee28c5cedc5bc94d Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 21:59:56 +0100 Subject: [PATCH 007/167] Relocating module `@kbn/cloud-full-story-plugin` --- .eslintignore | 2 +- .github/CODEOWNERS | 4 ++-- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- .../cloud_integrations/cloud_full_story/.i18nrc.json | 0 .../cloud_integrations/cloud_full_story/README.md | 0 .../cloud_integrations/cloud_full_story/jest.config.js | 8 ++++---- .../cloud_integrations/cloud_full_story/kibana.jsonc | 0 .../cloud_integrations/cloud_full_story/public/index.ts | 0 .../cloud_full_story/public/plugin.test.ts | 0 .../cloud_integrations/cloud_full_story/public/plugin.ts | 0 .../cloud_full_story/server/assets/fullstory_library.js | 0 .../cloud_full_story/server/config.test.ts | 0 .../cloud_integrations/cloud_full_story/server/config.ts | 0 .../cloud_integrations/cloud_full_story/server/index.ts | 0 .../cloud_full_story/server/plugin.test.mock.ts | 0 .../cloud_full_story/server/plugin.test.ts | 0 .../cloud_integrations/cloud_full_story/server/plugin.ts | 0 .../cloud_full_story/server/routes/fullstory.test.ts | 0 .../cloud_full_story/server/routes/fullstory.ts | 0 .../cloud_full_story/server/routes/index.ts | 0 .../cloud_integrations/cloud_full_story/tsconfig.json | 4 ++-- yarn.lock | 2 +- 24 files changed, 14 insertions(+), 14 deletions(-) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/.i18nrc.json (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/README.md (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/jest.config.js (51%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/public/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/public/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/server/assets/fullstory_library.js (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/server/config.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/server/plugin.test.mock.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/server/routes/fullstory.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/server/routes/fullstory.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_full_story/tsconfig.json (77%) diff --git a/.eslintignore b/.eslintignore index 1048787508e6e..270762242c87e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -27,7 +27,7 @@ snapshots.js /x-pack/platform/plugins/private/canvas/storybook/build /x-pack/platform/plugins/private/reporting/server/export_types/printable_pdf/server/lib/pdf/assets/** /x-pack/platform/plugins/private/reporting/server/export_types/printable_pdf_v2/server/lib/pdf/assets/** -/x-pack/plugins/cloud_integrations/cloud_full_story/server/assets/** +/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/assets/** # package overrides /packages/kbn-eslint-config diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index eae8578e95cf9..0af32533a7c93 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -832,6 +832,7 @@ x-pack/platform/plugins/private/banners @elastic/appex-sharedux x-pack/platform/plugins/private/canvas @elastic/kibana-presentation x-pack/platform/plugins/private/cloud_integrations/cloud_chat @elastic/kibana-core x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration @elastic/kibana-management +x-pack/platform/plugins/private/cloud_integrations/cloud_full_story @elastic/kibana-core x-pack/platform/plugins/private/cross_cluster_replication @elastic/kibana-management x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux x-pack/platform/plugins/private/data_usage @elastic/obs-ai-assistant @elastic/security-solution @@ -893,7 +894,6 @@ x-pack/platform/plugins/shared/stack_connectors @elastic/response-ops x-pack/platform/plugins/shared/task_manager @elastic/response-ops x-pack/platform/plugins/shared/triggers_actions_ui @elastic/response-ops x-pack/plugins/cloud @elastic/kibana-core -x-pack/plugins/cloud_integrations/cloud_full_story @elastic/kibana-core x-pack/plugins/cloud_integrations/cloud_links @elastic/kibana-core x-pack/plugins/drilldowns/url_drilldown @elastic/appex-sharedux x-pack/plugins/encrypted_saved_objects @elastic/kibana-security @@ -1846,7 +1846,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /x-pack/.telemetryrc.json @elastic/kibana-core /src/plugins/telemetry/schema/ @elastic/kibana-core /x-pack/plugins/telemetry_collection_xpack/schema/ @elastic/kibana-core -x-pack/plugins/cloud_integrations/cloud_full_story/server/config.ts @elastic/kibana-core @shahinakmal +x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/config.ts @elastic/kibana-core @shahinakmal # Kibana Localization /src/dev/i18n_tools/ @elastic/kibana-localization @elastic/kibana-core diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 78cc95579adc0..2f65721260c18 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -505,7 +505,7 @@ It was removed, but the plugin was left behind to register no longer used config This plugin no-longer exposes any evaluation APIs. Refer to for more information about how to interact with feature flags. -|{kib-repo}blob/{branch}/x-pack/plugins/cloud_integrations/cloud_full_story/README.md[cloudFullStory] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/README.md[cloudFullStory] |Integrates with FullStory in order to provide better product analytics, so we can understand how our users make use of Kibana. This plugin should only run on Elastic Cloud. diff --git a/package.json b/package.json index d78cf8423270d..493e355faec03 100644 --- a/package.json +++ b/package.json @@ -213,7 +213,7 @@ "@kbn/cloud-data-migration-plugin": "link:x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration", "@kbn/cloud-defend-plugin": "link:x-pack/solutions/security/plugins/cloud_defend", "@kbn/cloud-experiments-plugin": "link:x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments", - "@kbn/cloud-full-story-plugin": "link:x-pack/plugins/cloud_integrations/cloud_full_story", + "@kbn/cloud-full-story-plugin": "link:x-pack/platform/plugins/private/cloud_integrations/cloud_full_story", "@kbn/cloud-integration-saml-provider-plugin": "link:x-pack/test/cloud_integration/plugins/saml_provider", "@kbn/cloud-links-plugin": "link:x-pack/plugins/cloud_integrations/cloud_links", "@kbn/cloud-plugin": "link:x-pack/plugins/cloud", diff --git a/tsconfig.base.json b/tsconfig.base.json index 160e55683d438..af88bec8dd836 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -166,8 +166,8 @@ "@kbn/cloud-defend-plugin/*": ["x-pack/solutions/security/plugins/cloud_defend/*"], "@kbn/cloud-experiments-plugin": ["x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments"], "@kbn/cloud-experiments-plugin/*": ["x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments/*"], - "@kbn/cloud-full-story-plugin": ["x-pack/plugins/cloud_integrations/cloud_full_story"], - "@kbn/cloud-full-story-plugin/*": ["x-pack/plugins/cloud_integrations/cloud_full_story/*"], + "@kbn/cloud-full-story-plugin": ["x-pack/platform/plugins/private/cloud_integrations/cloud_full_story"], + "@kbn/cloud-full-story-plugin/*": ["x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/*"], "@kbn/cloud-integration-saml-provider-plugin": ["x-pack/test/cloud_integration/plugins/saml_provider"], "@kbn/cloud-integration-saml-provider-plugin/*": ["x-pack/test/cloud_integration/plugins/saml_provider/*"], "@kbn/cloud-links-plugin": ["x-pack/plugins/cloud_integrations/cloud_links"], diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/.i18nrc.json b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/.i18nrc.json similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/.i18nrc.json rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/.i18nrc.json diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/README.md b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/README.md similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/README.md rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/README.md diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/jest.config.js b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/jest.config.js similarity index 51% rename from x-pack/plugins/cloud_integrations/cloud_full_story/jest.config.js rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/jest.config.js index 2aad10a598754..313623a54f22f 100644 --- a/x-pack/plugins/cloud_integrations/cloud_full_story/jest.config.js +++ b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/jest.config.js @@ -7,12 +7,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../', - roots: ['/x-pack/plugins/cloud_integrations/cloud_full_story'], + rootDir: '../../../../../../', + roots: ['/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story'], coverageDirectory: - '/target/kibana-coverage/jest/x-pack/plugins/cloud_integrations/cloud_full_story', + '/target/kibana-coverage/jest/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/plugins/cloud_integrations/cloud_full_story/{common,public,server}/**/*.{ts,tsx}', + '/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/kibana.jsonc b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/kibana.jsonc similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/kibana.jsonc rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/kibana.jsonc diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/public/index.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/public/index.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/public/index.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/public/index.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/public/plugin.test.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/public/plugin.test.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/public/plugin.test.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/public/plugin.test.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/public/plugin.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/public/plugin.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/public/plugin.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/public/plugin.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/server/assets/fullstory_library.js b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/assets/fullstory_library.js similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/server/assets/fullstory_library.js rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/assets/fullstory_library.js diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/server/config.test.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/config.test.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/server/config.test.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/config.test.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/server/config.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/config.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/server/config.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/config.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/server/index.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/index.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/server/index.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/index.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/server/plugin.test.mock.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/plugin.test.mock.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/server/plugin.test.mock.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/plugin.test.mock.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/server/plugin.test.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/server/plugin.test.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/plugin.test.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/server/plugin.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/plugin.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/server/plugin.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/plugin.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/server/routes/fullstory.test.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/routes/fullstory.test.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/server/routes/fullstory.test.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/routes/fullstory.test.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/server/routes/fullstory.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/routes/fullstory.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/server/routes/fullstory.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/routes/fullstory.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/server/routes/index.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/routes/index.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_full_story/server/routes/index.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/routes/index.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_full_story/tsconfig.json b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/tsconfig.json similarity index 77% rename from x-pack/plugins/cloud_integrations/cloud_full_story/tsconfig.json rename to x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/tsconfig.json index faaf88812ac42..eff06907a591f 100644 --- a/x-pack/plugins/cloud_integrations/cloud_full_story/tsconfig.json +++ b/x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, @@ -8,7 +8,7 @@ "common/**/*", "public/**/*", "server/**/*", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/core", diff --git a/yarn.lock b/yarn.lock index 3d0421aa211b5..9d3cda97c7d17 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4145,7 +4145,7 @@ version "0.0.0" uid "" -"@kbn/cloud-full-story-plugin@link:x-pack/plugins/cloud_integrations/cloud_full_story": +"@kbn/cloud-full-story-plugin@link:x-pack/platform/plugins/private/cloud_integrations/cloud_full_story": version "0.0.0" uid "" From cf153627d6d877dbd53796f37152cfa9f1261d76 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:00:50 +0100 Subject: [PATCH 008/167] Relocating module `@kbn/cloud-links-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- x-pack/.i18nrc.json | 2 +- .../private}/cloud_integrations/cloud_links/README.md | 0 .../cloud_integrations/cloud_links/jest.config.js | 8 ++++---- .../private}/cloud_integrations/cloud_links/kibana.jsonc | 0 .../cloud_integrations/cloud_links/public/index.ts | 0 .../__snapshots__/maybe_add_cloud_links.test.ts.snap | 0 .../appearance_selector/appearance_modal.tsx | 0 .../appearance_selector/appearance_selector.test.tsx | 0 .../appearance_selector/appearance_selector.tsx | 0 .../maybe_add_cloud_links/appearance_selector/index.ts | 0 .../appearance_selector/use_appearance_hook.ts | 0 .../appearance_selector/values_group.tsx | 0 .../maybe_add_cloud_links/connection_details_modal.tsx | 0 .../public/maybe_add_cloud_links/help_menu_links.tsx | 0 .../cloud_links/public/maybe_add_cloud_links/index.ts | 0 .../maybe_add_cloud_links/maybe_add_cloud_links.test.ts | 0 .../public/maybe_add_cloud_links/maybe_add_cloud_links.ts | 0 .../public/maybe_add_cloud_links/user_menu_links.tsx | 0 .../cloud_links/public/plugin.test.mocks.ts | 0 .../cloud_integrations/cloud_links/public/plugin.test.ts | 0 .../cloud_integrations/cloud_links/public/plugin.tsx | 0 .../private}/cloud_integrations/cloud_links/tsconfig.json | 4 ++-- yarn.lock | 2 +- 27 files changed, 13 insertions(+), 13 deletions(-) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/README.md (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/jest.config.js (52%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/maybe_add_cloud_links/__snapshots__/maybe_add_cloud_links.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_modal.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_selector.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_selector.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/use_appearance_hook.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/values_group.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/maybe_add_cloud_links/connection_details_modal.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/maybe_add_cloud_links/help_menu_links.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/maybe_add_cloud_links/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/maybe_add_cloud_links/maybe_add_cloud_links.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/maybe_add_cloud_links/maybe_add_cloud_links.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/maybe_add_cloud_links/user_menu_links.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/plugin.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/public/plugin.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/cloud_integrations/cloud_links/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0af32533a7c93..bb405dd446acf 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -833,6 +833,7 @@ x-pack/platform/plugins/private/canvas @elastic/kibana-presentation x-pack/platform/plugins/private/cloud_integrations/cloud_chat @elastic/kibana-core x-pack/platform/plugins/private/cloud_integrations/cloud_data_migration @elastic/kibana-management x-pack/platform/plugins/private/cloud_integrations/cloud_full_story @elastic/kibana-core +x-pack/platform/plugins/private/cloud_integrations/cloud_links @elastic/kibana-core x-pack/platform/plugins/private/cross_cluster_replication @elastic/kibana-management x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux x-pack/platform/plugins/private/data_usage @elastic/obs-ai-assistant @elastic/security-solution @@ -894,7 +895,6 @@ x-pack/platform/plugins/shared/stack_connectors @elastic/response-ops x-pack/platform/plugins/shared/task_manager @elastic/response-ops x-pack/platform/plugins/shared/triggers_actions_ui @elastic/response-ops x-pack/plugins/cloud @elastic/kibana-core -x-pack/plugins/cloud_integrations/cloud_links @elastic/kibana-core x-pack/plugins/drilldowns/url_drilldown @elastic/appex-sharedux x-pack/plugins/encrypted_saved_objects @elastic/kibana-security x-pack/plugins/features @elastic/kibana-core diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 2f65721260c18..4e4df43ee1cdf 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -509,7 +509,7 @@ This plugin no-longer exposes any evaluation APIs. Refer to /x-pack/plugins/cloud_integrations/cloud_links'], + rootDir: '../../../../../../', + roots: ['/x-pack/platform/plugins/private/cloud_integrations/cloud_links'], coverageDirectory: - '/target/kibana-coverage/jest/x-pack/plugins/cloud_integrations/cloud_links', + '/target/kibana-coverage/jest/x-pack/platform/plugins/private/cloud_integrations/cloud_links', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/plugins/cloud_integrations/cloud_links/{common,public,server}/**/*.{ts,tsx}', + '/x-pack/platform/plugins/private/cloud_integrations/cloud_links/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/x-pack/plugins/cloud_integrations/cloud_links/kibana.jsonc b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/kibana.jsonc similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/kibana.jsonc rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/kibana.jsonc diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/index.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/index.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/index.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/index.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/__snapshots__/maybe_add_cloud_links.test.ts.snap b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/__snapshots__/maybe_add_cloud_links.test.ts.snap similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/__snapshots__/maybe_add_cloud_links.test.ts.snap rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/__snapshots__/maybe_add_cloud_links.test.ts.snap diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_modal.tsx b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_modal.tsx similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_modal.tsx rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_modal.tsx diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_selector.test.tsx b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_selector.test.tsx similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_selector.test.tsx rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_selector.test.tsx diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_selector.tsx b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_selector.tsx similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_selector.tsx rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/appearance_selector.tsx diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/index.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/index.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/index.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/index.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/use_appearance_hook.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/use_appearance_hook.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/use_appearance_hook.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/use_appearance_hook.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/values_group.tsx b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/values_group.tsx similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/values_group.tsx rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/appearance_selector/values_group.tsx diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/connection_details_modal.tsx b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/connection_details_modal.tsx similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/connection_details_modal.tsx rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/connection_details_modal.tsx diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/help_menu_links.tsx b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/help_menu_links.tsx similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/help_menu_links.tsx rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/help_menu_links.tsx diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/index.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/index.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/index.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/index.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/maybe_add_cloud_links.test.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/maybe_add_cloud_links.test.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/maybe_add_cloud_links.test.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/maybe_add_cloud_links.test.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/maybe_add_cloud_links.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/maybe_add_cloud_links.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/maybe_add_cloud_links.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/maybe_add_cloud_links.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/user_menu_links.tsx b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/user_menu_links.tsx similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/maybe_add_cloud_links/user_menu_links.tsx rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/maybe_add_cloud_links/user_menu_links.tsx diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/plugin.test.mocks.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/plugin.test.mocks.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/plugin.test.mocks.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/plugin.test.mocks.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/plugin.test.ts b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/plugin.test.ts similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/plugin.test.ts rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/plugin.test.ts diff --git a/x-pack/plugins/cloud_integrations/cloud_links/public/plugin.tsx b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/plugin.tsx similarity index 100% rename from x-pack/plugins/cloud_integrations/cloud_links/public/plugin.tsx rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/public/plugin.tsx diff --git a/x-pack/plugins/cloud_integrations/cloud_links/tsconfig.json b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/tsconfig.json similarity index 89% rename from x-pack/plugins/cloud_integrations/cloud_links/tsconfig.json rename to x-pack/platform/plugins/private/cloud_integrations/cloud_links/tsconfig.json index ed8239bd32938..52bbbadce5303 100644 --- a/x-pack/plugins/cloud_integrations/cloud_links/tsconfig.json +++ b/x-pack/platform/plugins/private/cloud_integrations/cloud_links/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, @@ -8,7 +8,7 @@ "common/**/*", "public/**/*", "server/**/*", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/core", diff --git a/yarn.lock b/yarn.lock index 9d3cda97c7d17..898ca0aeaa765 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4153,7 +4153,7 @@ version "0.0.0" uid "" -"@kbn/cloud-links-plugin@link:x-pack/plugins/cloud_integrations/cloud_links": +"@kbn/cloud-links-plugin@link:x-pack/platform/plugins/private/cloud_integrations/cloud_links": version "0.0.0" uid "" From 1794e41c4147cb8a8b5a2410b27642df3dad3b6f Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:01:43 +0100 Subject: [PATCH 009/167] Relocating module `@kbn/cloud-plugin` --- .buildkite/scripts/pipelines/pull_request/pipeline.ts | 2 +- .eslintrc.js | 2 +- .github/CODEOWNERS | 4 ++-- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- x-pack/.i18nrc.json | 2 +- .../{plugins => platform/plugins/shared}/cloud/README.md | 0 .../plugins/shared}/cloud/common/constants.ts | 0 .../plugins/shared}/cloud/common/decode_cloud_id.test.ts | 0 .../plugins/shared}/cloud/common/decode_cloud_id.ts | 0 .../plugins/shared}/cloud/common/is_cloud_enabled.test.ts | 0 .../plugins/shared}/cloud/common/is_cloud_enabled.ts | 0 .../parse_deployment_id_from_deployment_url.test.ts | 0 .../common/parse_deployment_id_from_deployment_url.ts | 0 .../common/parse_onboarding_default_solution.test.ts | 0 .../cloud/common/parse_onboarding_default_solution.ts | 0 ...register_cloud_deployment_id_analytics_context.test.ts | 0 .../register_cloud_deployment_id_analytics_context.ts | 0 .../plugins/shared}/cloud/common/types.ts | 0 .../plugins/shared}/cloud/common/utils.ts | 0 .../plugins/shared}/cloud/jest.config.js | 8 ++++---- .../plugins/shared}/cloud/kibana.jsonc | 0 .../plugins/shared}/cloud/public/index.ts | 0 .../plugins/shared}/cloud/public/mocks.tsx | 0 .../plugins/shared}/cloud/public/plugin.test.mocks.ts | 0 .../plugins/shared}/cloud/public/plugin.test.ts | 0 .../plugins/shared}/cloud/public/plugin.tsx | 0 .../plugins/shared}/cloud/public/types.ts | 0 .../plugins/shared}/cloud/public/utils.ts | 0 .../cloud/server/__snapshots__/plugin.test.ts.snap | 0 .../cloud/server/collectors/cloud_usage_collector.test.ts | 0 .../cloud/server/collectors/cloud_usage_collector.ts | 0 .../plugins/shared}/cloud/server/collectors/index.ts | 0 .../plugins/shared}/cloud/server/config.test.ts | 0 .../plugins/shared}/cloud/server/config.ts | 0 .../plugins/shared}/cloud/server/env.ts | 0 .../plugins/shared}/cloud/server/index.ts | 0 .../plugins/shared}/cloud/server/mocks.ts | 0 .../plugins/shared}/cloud/server/plugin.test.mocks.ts | 0 .../plugins/shared}/cloud/server/plugin.test.ts | 0 .../plugins/shared}/cloud/server/plugin.ts | 0 .../plugins/shared}/cloud/server/routes/constants.ts | 0 .../shared}/cloud/server/routes/elasticsearch_route.ts | 0 .../shared}/cloud/server/routes/get_cloud_data_route.ts | 0 .../plugins/shared}/cloud/server/routes/index.ts | 0 .../cloud/server/routes/set_cloud_data_route.test.ts | 0 .../shared}/cloud/server/routes/set_cloud_data_route.ts | 0 .../plugins/shared}/cloud/server/routes/types.ts | 0 .../plugins/shared}/cloud/server/saved_objects/index.ts | 0 .../model_versions/cloud_data_model_versions.ts | 0 .../cloud/server/saved_objects/model_versions/index.ts | 0 .../plugins/shared}/cloud/tsconfig.json | 4 ++-- yarn.lock | 2 +- 54 files changed, 16 insertions(+), 16 deletions(-) rename x-pack/{plugins => platform/plugins/shared}/cloud/README.md (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/common/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/common/decode_cloud_id.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/common/decode_cloud_id.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/common/is_cloud_enabled.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/common/is_cloud_enabled.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/common/parse_deployment_id_from_deployment_url.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/common/parse_deployment_id_from_deployment_url.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/common/parse_onboarding_default_solution.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/common/parse_onboarding_default_solution.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/common/register_cloud_deployment_id_analytics_context.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/common/register_cloud_deployment_id_analytics_context.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/common/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/common/utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/jest.config.js (62%) rename x-pack/{plugins => platform/plugins/shared}/cloud/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/public/mocks.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/public/plugin.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/public/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/public/plugin.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/public/utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/__snapshots__/plugin.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/collectors/cloud_usage_collector.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/collectors/cloud_usage_collector.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/collectors/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/config.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/env.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/plugin.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/routes/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/routes/elasticsearch_route.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/routes/get_cloud_data_route.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/routes/set_cloud_data_route.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/routes/set_cloud_data_route.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/routes/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/saved_objects/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/saved_objects/model_versions/cloud_data_model_versions.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/server/saved_objects/model_versions/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/cloud/tsconfig.json (83%) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 3f5a709883ffd..9a38816a3d5d0 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -376,7 +376,7 @@ const getPipeline = (filename: string, removeSteps = true) => { if ( (await doAnyChangesMatch([ /^x-pack\/packages\/kbn-cloud-security-posture/, - /^x-pack\/solutions\/security\/plugins\/cloud_security_posture/, + /^x-pack\/solutions\/security\/platform\/plugins\/shared\/cloud_security_posture/, /^x-pack\/solutions\/security\/plugins\/security_solution/, /^x-pack\/test\/security_solution_cypress/, ])) || diff --git a/.eslintrc.js b/.eslintrc.js index e4f149bc877c4..f4d96456bcd9f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1941,7 +1941,7 @@ module.exports = { 'x-pack/plugins/features/**', 'x-pack/plugins/licensing/**', 'x-pack/platform/plugins/shared/global_search/**', - 'x-pack/plugins/cloud/**', + 'x-pack/platform/plugins/shared/cloud/**', 'packages/kbn-config-schema', 'src/plugins/status_page/**', 'src/plugins/saved_objects_management/**', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index bb405dd446acf..33aba64bf3ed3 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -864,6 +864,7 @@ x-pack/platform/plugins/shared/ai_infra/product_doc_base @elastic/appex-ai-infra x-pack/platform/plugins/shared/aiops @elastic/ml-ui x-pack/platform/plugins/shared/alerting @elastic/response-ops x-pack/platform/plugins/shared/cases @elastic/response-ops +x-pack/platform/plugins/shared/cloud @elastic/kibana-core x-pack/platform/plugins/shared/cloud_integrations/cloud_experiments @elastic/kibana-core x-pack/platform/plugins/shared/dashboard_enhanced @elastic/kibana-presentation x-pack/platform/plugins/shared/data_quality @elastic/obs-ux-logs-team @@ -894,7 +895,6 @@ x-pack/platform/plugins/shared/stack_alerts @elastic/response-ops x-pack/platform/plugins/shared/stack_connectors @elastic/response-ops x-pack/platform/plugins/shared/task_manager @elastic/response-ops x-pack/platform/plugins/shared/triggers_actions_ui @elastic/response-ops -x-pack/plugins/cloud @elastic/kibana-core x-pack/plugins/drilldowns/url_drilldown @elastic/appex-sharedux x-pack/plugins/encrypted_saved_objects @elastic/kibana-security x-pack/plugins/features @elastic/kibana-core @@ -1826,7 +1826,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql #CC# /src/core/server/csp/ @elastic/kibana-core #CC# /src/plugins/saved_objects/ @elastic/kibana-core -#CC# /x-pack/plugins/cloud/ @elastic/kibana-core +#CC# /x-pack/platform/plugins/shared/cloud/ @elastic/kibana-core #CC# /x-pack/plugins/features/ @elastic/kibana-core #CC# /x-pack/plugins/global_search/ @elastic/kibana-core #CC# /src/plugins/newsfeed @elastic/kibana-core diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 4e4df43ee1cdf..63e83c2cdc211 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -483,7 +483,7 @@ The plugin exposes the static DefaultEditorController class to consume. |This plugin provides cases management in Kibana -|{kib-repo}blob/{branch}/x-pack/plugins/cloud/README.md[cloud] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/cloud/README.md[cloud] |The cloud plugin exposes Cloud-specific metadata to Kibana. diff --git a/package.json b/package.json index e6fa80bd39bcd..30c015aa684e6 100644 --- a/package.json +++ b/package.json @@ -216,7 +216,7 @@ "@kbn/cloud-full-story-plugin": "link:x-pack/platform/plugins/private/cloud_integrations/cloud_full_story", "@kbn/cloud-integration-saml-provider-plugin": "link:x-pack/test/cloud_integration/plugins/saml_provider", "@kbn/cloud-links-plugin": "link:x-pack/platform/plugins/private/cloud_integrations/cloud_links", - "@kbn/cloud-plugin": "link:x-pack/plugins/cloud", + "@kbn/cloud-plugin": "link:x-pack/platform/plugins/shared/cloud", "@kbn/cloud-security-posture": "link:x-pack/solutions/security/packages/kbn-cloud-security-posture/public", "@kbn/cloud-security-posture-common": "link:x-pack/platform/packages/shared/kbn-cloud-security-posture/common", "@kbn/cloud-security-posture-graph": "link:x-pack/solutions/security/packages/kbn-cloud-security-posture/graph", diff --git a/tsconfig.base.json b/tsconfig.base.json index 9f8ac57489e16..b799977f175d3 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -172,8 +172,8 @@ "@kbn/cloud-integration-saml-provider-plugin/*": ["x-pack/test/cloud_integration/plugins/saml_provider/*"], "@kbn/cloud-links-plugin": ["x-pack/platform/plugins/private/cloud_integrations/cloud_links"], "@kbn/cloud-links-plugin/*": ["x-pack/platform/plugins/private/cloud_integrations/cloud_links/*"], - "@kbn/cloud-plugin": ["x-pack/plugins/cloud"], - "@kbn/cloud-plugin/*": ["x-pack/plugins/cloud/*"], + "@kbn/cloud-plugin": ["x-pack/platform/plugins/shared/cloud"], + "@kbn/cloud-plugin/*": ["x-pack/platform/plugins/shared/cloud/*"], "@kbn/cloud-security-posture": ["x-pack/solutions/security/packages/kbn-cloud-security-posture/public"], "@kbn/cloud-security-posture/*": ["x-pack/solutions/security/packages/kbn-cloud-security-posture/public/*"], "@kbn/cloud-security-posture-common": ["x-pack/platform/packages/shared/kbn-cloud-security-posture/common"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 19e89bc3d4274..cc950d57c03b4 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -19,7 +19,7 @@ "xpack.banners": "platform/plugins/private/banners", "xpack.canvas": "platform/plugins/private/canvas", "xpack.cases": "platform/plugins/shared/cases", - "xpack.cloud": "plugins/cloud", + "xpack.cloud": "platform/plugins/shared/cloud", "xpack.cloudDefend": "solutions/security/plugins/cloud_defend", "xpack.cloudLinks": "platform/plugins/private/cloud_integrations/cloud_links", "xpack.cloudDataMigration": "platform/plugins/private/cloud_integrations/cloud_data_migration", diff --git a/x-pack/plugins/cloud/README.md b/x-pack/platform/plugins/shared/cloud/README.md similarity index 100% rename from x-pack/plugins/cloud/README.md rename to x-pack/platform/plugins/shared/cloud/README.md diff --git a/x-pack/plugins/cloud/common/constants.ts b/x-pack/platform/plugins/shared/cloud/common/constants.ts similarity index 100% rename from x-pack/plugins/cloud/common/constants.ts rename to x-pack/platform/plugins/shared/cloud/common/constants.ts diff --git a/x-pack/plugins/cloud/common/decode_cloud_id.test.ts b/x-pack/platform/plugins/shared/cloud/common/decode_cloud_id.test.ts similarity index 100% rename from x-pack/plugins/cloud/common/decode_cloud_id.test.ts rename to x-pack/platform/plugins/shared/cloud/common/decode_cloud_id.test.ts diff --git a/x-pack/plugins/cloud/common/decode_cloud_id.ts b/x-pack/platform/plugins/shared/cloud/common/decode_cloud_id.ts similarity index 100% rename from x-pack/plugins/cloud/common/decode_cloud_id.ts rename to x-pack/platform/plugins/shared/cloud/common/decode_cloud_id.ts diff --git a/x-pack/plugins/cloud/common/is_cloud_enabled.test.ts b/x-pack/platform/plugins/shared/cloud/common/is_cloud_enabled.test.ts similarity index 100% rename from x-pack/plugins/cloud/common/is_cloud_enabled.test.ts rename to x-pack/platform/plugins/shared/cloud/common/is_cloud_enabled.test.ts diff --git a/x-pack/plugins/cloud/common/is_cloud_enabled.ts b/x-pack/platform/plugins/shared/cloud/common/is_cloud_enabled.ts similarity index 100% rename from x-pack/plugins/cloud/common/is_cloud_enabled.ts rename to x-pack/platform/plugins/shared/cloud/common/is_cloud_enabled.ts diff --git a/x-pack/plugins/cloud/common/parse_deployment_id_from_deployment_url.test.ts b/x-pack/platform/plugins/shared/cloud/common/parse_deployment_id_from_deployment_url.test.ts similarity index 100% rename from x-pack/plugins/cloud/common/parse_deployment_id_from_deployment_url.test.ts rename to x-pack/platform/plugins/shared/cloud/common/parse_deployment_id_from_deployment_url.test.ts diff --git a/x-pack/plugins/cloud/common/parse_deployment_id_from_deployment_url.ts b/x-pack/platform/plugins/shared/cloud/common/parse_deployment_id_from_deployment_url.ts similarity index 100% rename from x-pack/plugins/cloud/common/parse_deployment_id_from_deployment_url.ts rename to x-pack/platform/plugins/shared/cloud/common/parse_deployment_id_from_deployment_url.ts diff --git a/x-pack/plugins/cloud/common/parse_onboarding_default_solution.test.ts b/x-pack/platform/plugins/shared/cloud/common/parse_onboarding_default_solution.test.ts similarity index 100% rename from x-pack/plugins/cloud/common/parse_onboarding_default_solution.test.ts rename to x-pack/platform/plugins/shared/cloud/common/parse_onboarding_default_solution.test.ts diff --git a/x-pack/plugins/cloud/common/parse_onboarding_default_solution.ts b/x-pack/platform/plugins/shared/cloud/common/parse_onboarding_default_solution.ts similarity index 100% rename from x-pack/plugins/cloud/common/parse_onboarding_default_solution.ts rename to x-pack/platform/plugins/shared/cloud/common/parse_onboarding_default_solution.ts diff --git a/x-pack/plugins/cloud/common/register_cloud_deployment_id_analytics_context.test.ts b/x-pack/platform/plugins/shared/cloud/common/register_cloud_deployment_id_analytics_context.test.ts similarity index 100% rename from x-pack/plugins/cloud/common/register_cloud_deployment_id_analytics_context.test.ts rename to x-pack/platform/plugins/shared/cloud/common/register_cloud_deployment_id_analytics_context.test.ts diff --git a/x-pack/plugins/cloud/common/register_cloud_deployment_id_analytics_context.ts b/x-pack/platform/plugins/shared/cloud/common/register_cloud_deployment_id_analytics_context.ts similarity index 100% rename from x-pack/plugins/cloud/common/register_cloud_deployment_id_analytics_context.ts rename to x-pack/platform/plugins/shared/cloud/common/register_cloud_deployment_id_analytics_context.ts diff --git a/x-pack/plugins/cloud/common/types.ts b/x-pack/platform/plugins/shared/cloud/common/types.ts similarity index 100% rename from x-pack/plugins/cloud/common/types.ts rename to x-pack/platform/plugins/shared/cloud/common/types.ts diff --git a/x-pack/plugins/cloud/common/utils.ts b/x-pack/platform/plugins/shared/cloud/common/utils.ts similarity index 100% rename from x-pack/plugins/cloud/common/utils.ts rename to x-pack/platform/plugins/shared/cloud/common/utils.ts diff --git a/x-pack/plugins/cloud/jest.config.js b/x-pack/platform/plugins/shared/cloud/jest.config.js similarity index 62% rename from x-pack/plugins/cloud/jest.config.js rename to x-pack/platform/plugins/shared/cloud/jest.config.js index 4235e79e79268..fd20d915bd553 100644 --- a/x-pack/plugins/cloud/jest.config.js +++ b/x-pack/platform/plugins/shared/cloud/jest.config.js @@ -7,9 +7,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/cloud'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/cloud', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/cloud'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/cloud', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/cloud/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/x-pack/platform/plugins/shared/cloud/{common,public,server}/**/*.{ts,tsx}'], }; diff --git a/x-pack/plugins/cloud/kibana.jsonc b/x-pack/platform/plugins/shared/cloud/kibana.jsonc similarity index 100% rename from x-pack/plugins/cloud/kibana.jsonc rename to x-pack/platform/plugins/shared/cloud/kibana.jsonc diff --git a/x-pack/plugins/cloud/public/index.ts b/x-pack/platform/plugins/shared/cloud/public/index.ts similarity index 100% rename from x-pack/plugins/cloud/public/index.ts rename to x-pack/platform/plugins/shared/cloud/public/index.ts diff --git a/x-pack/plugins/cloud/public/mocks.tsx b/x-pack/platform/plugins/shared/cloud/public/mocks.tsx similarity index 100% rename from x-pack/plugins/cloud/public/mocks.tsx rename to x-pack/platform/plugins/shared/cloud/public/mocks.tsx diff --git a/x-pack/plugins/cloud/public/plugin.test.mocks.ts b/x-pack/platform/plugins/shared/cloud/public/plugin.test.mocks.ts similarity index 100% rename from x-pack/plugins/cloud/public/plugin.test.mocks.ts rename to x-pack/platform/plugins/shared/cloud/public/plugin.test.mocks.ts diff --git a/x-pack/plugins/cloud/public/plugin.test.ts b/x-pack/platform/plugins/shared/cloud/public/plugin.test.ts similarity index 100% rename from x-pack/plugins/cloud/public/plugin.test.ts rename to x-pack/platform/plugins/shared/cloud/public/plugin.test.ts diff --git a/x-pack/plugins/cloud/public/plugin.tsx b/x-pack/platform/plugins/shared/cloud/public/plugin.tsx similarity index 100% rename from x-pack/plugins/cloud/public/plugin.tsx rename to x-pack/platform/plugins/shared/cloud/public/plugin.tsx diff --git a/x-pack/plugins/cloud/public/types.ts b/x-pack/platform/plugins/shared/cloud/public/types.ts similarity index 100% rename from x-pack/plugins/cloud/public/types.ts rename to x-pack/platform/plugins/shared/cloud/public/types.ts diff --git a/x-pack/plugins/cloud/public/utils.ts b/x-pack/platform/plugins/shared/cloud/public/utils.ts similarity index 100% rename from x-pack/plugins/cloud/public/utils.ts rename to x-pack/platform/plugins/shared/cloud/public/utils.ts diff --git a/x-pack/plugins/cloud/server/__snapshots__/plugin.test.ts.snap b/x-pack/platform/plugins/shared/cloud/server/__snapshots__/plugin.test.ts.snap similarity index 100% rename from x-pack/plugins/cloud/server/__snapshots__/plugin.test.ts.snap rename to x-pack/platform/plugins/shared/cloud/server/__snapshots__/plugin.test.ts.snap diff --git a/x-pack/plugins/cloud/server/collectors/cloud_usage_collector.test.ts b/x-pack/platform/plugins/shared/cloud/server/collectors/cloud_usage_collector.test.ts similarity index 100% rename from x-pack/plugins/cloud/server/collectors/cloud_usage_collector.test.ts rename to x-pack/platform/plugins/shared/cloud/server/collectors/cloud_usage_collector.test.ts diff --git a/x-pack/plugins/cloud/server/collectors/cloud_usage_collector.ts b/x-pack/platform/plugins/shared/cloud/server/collectors/cloud_usage_collector.ts similarity index 100% rename from x-pack/plugins/cloud/server/collectors/cloud_usage_collector.ts rename to x-pack/platform/plugins/shared/cloud/server/collectors/cloud_usage_collector.ts diff --git a/x-pack/plugins/cloud/server/collectors/index.ts b/x-pack/platform/plugins/shared/cloud/server/collectors/index.ts similarity index 100% rename from x-pack/plugins/cloud/server/collectors/index.ts rename to x-pack/platform/plugins/shared/cloud/server/collectors/index.ts diff --git a/x-pack/plugins/cloud/server/config.test.ts b/x-pack/platform/plugins/shared/cloud/server/config.test.ts similarity index 100% rename from x-pack/plugins/cloud/server/config.test.ts rename to x-pack/platform/plugins/shared/cloud/server/config.test.ts diff --git a/x-pack/plugins/cloud/server/config.ts b/x-pack/platform/plugins/shared/cloud/server/config.ts similarity index 100% rename from x-pack/plugins/cloud/server/config.ts rename to x-pack/platform/plugins/shared/cloud/server/config.ts diff --git a/x-pack/plugins/cloud/server/env.ts b/x-pack/platform/plugins/shared/cloud/server/env.ts similarity index 100% rename from x-pack/plugins/cloud/server/env.ts rename to x-pack/platform/plugins/shared/cloud/server/env.ts diff --git a/x-pack/plugins/cloud/server/index.ts b/x-pack/platform/plugins/shared/cloud/server/index.ts similarity index 100% rename from x-pack/plugins/cloud/server/index.ts rename to x-pack/platform/plugins/shared/cloud/server/index.ts diff --git a/x-pack/plugins/cloud/server/mocks.ts b/x-pack/platform/plugins/shared/cloud/server/mocks.ts similarity index 100% rename from x-pack/plugins/cloud/server/mocks.ts rename to x-pack/platform/plugins/shared/cloud/server/mocks.ts diff --git a/x-pack/plugins/cloud/server/plugin.test.mocks.ts b/x-pack/platform/plugins/shared/cloud/server/plugin.test.mocks.ts similarity index 100% rename from x-pack/plugins/cloud/server/plugin.test.mocks.ts rename to x-pack/platform/plugins/shared/cloud/server/plugin.test.mocks.ts diff --git a/x-pack/plugins/cloud/server/plugin.test.ts b/x-pack/platform/plugins/shared/cloud/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/cloud/server/plugin.test.ts rename to x-pack/platform/plugins/shared/cloud/server/plugin.test.ts diff --git a/x-pack/plugins/cloud/server/plugin.ts b/x-pack/platform/plugins/shared/cloud/server/plugin.ts similarity index 100% rename from x-pack/plugins/cloud/server/plugin.ts rename to x-pack/platform/plugins/shared/cloud/server/plugin.ts diff --git a/x-pack/plugins/cloud/server/routes/constants.ts b/x-pack/platform/plugins/shared/cloud/server/routes/constants.ts similarity index 100% rename from x-pack/plugins/cloud/server/routes/constants.ts rename to x-pack/platform/plugins/shared/cloud/server/routes/constants.ts diff --git a/x-pack/plugins/cloud/server/routes/elasticsearch_route.ts b/x-pack/platform/plugins/shared/cloud/server/routes/elasticsearch_route.ts similarity index 100% rename from x-pack/plugins/cloud/server/routes/elasticsearch_route.ts rename to x-pack/platform/plugins/shared/cloud/server/routes/elasticsearch_route.ts diff --git a/x-pack/plugins/cloud/server/routes/get_cloud_data_route.ts b/x-pack/platform/plugins/shared/cloud/server/routes/get_cloud_data_route.ts similarity index 100% rename from x-pack/plugins/cloud/server/routes/get_cloud_data_route.ts rename to x-pack/platform/plugins/shared/cloud/server/routes/get_cloud_data_route.ts diff --git a/x-pack/plugins/cloud/server/routes/index.ts b/x-pack/platform/plugins/shared/cloud/server/routes/index.ts similarity index 100% rename from x-pack/plugins/cloud/server/routes/index.ts rename to x-pack/platform/plugins/shared/cloud/server/routes/index.ts diff --git a/x-pack/plugins/cloud/server/routes/set_cloud_data_route.test.ts b/x-pack/platform/plugins/shared/cloud/server/routes/set_cloud_data_route.test.ts similarity index 100% rename from x-pack/plugins/cloud/server/routes/set_cloud_data_route.test.ts rename to x-pack/platform/plugins/shared/cloud/server/routes/set_cloud_data_route.test.ts diff --git a/x-pack/plugins/cloud/server/routes/set_cloud_data_route.ts b/x-pack/platform/plugins/shared/cloud/server/routes/set_cloud_data_route.ts similarity index 100% rename from x-pack/plugins/cloud/server/routes/set_cloud_data_route.ts rename to x-pack/platform/plugins/shared/cloud/server/routes/set_cloud_data_route.ts diff --git a/x-pack/plugins/cloud/server/routes/types.ts b/x-pack/platform/plugins/shared/cloud/server/routes/types.ts similarity index 100% rename from x-pack/plugins/cloud/server/routes/types.ts rename to x-pack/platform/plugins/shared/cloud/server/routes/types.ts diff --git a/x-pack/plugins/cloud/server/saved_objects/index.ts b/x-pack/platform/plugins/shared/cloud/server/saved_objects/index.ts similarity index 100% rename from x-pack/plugins/cloud/server/saved_objects/index.ts rename to x-pack/platform/plugins/shared/cloud/server/saved_objects/index.ts diff --git a/x-pack/plugins/cloud/server/saved_objects/model_versions/cloud_data_model_versions.ts b/x-pack/platform/plugins/shared/cloud/server/saved_objects/model_versions/cloud_data_model_versions.ts similarity index 100% rename from x-pack/plugins/cloud/server/saved_objects/model_versions/cloud_data_model_versions.ts rename to x-pack/platform/plugins/shared/cloud/server/saved_objects/model_versions/cloud_data_model_versions.ts diff --git a/x-pack/plugins/cloud/server/saved_objects/model_versions/index.ts b/x-pack/platform/plugins/shared/cloud/server/saved_objects/model_versions/index.ts similarity index 100% rename from x-pack/plugins/cloud/server/saved_objects/model_versions/index.ts rename to x-pack/platform/plugins/shared/cloud/server/saved_objects/model_versions/index.ts diff --git a/x-pack/plugins/cloud/tsconfig.json b/x-pack/platform/plugins/shared/cloud/tsconfig.json similarity index 83% rename from x-pack/plugins/cloud/tsconfig.json rename to x-pack/platform/plugins/shared/cloud/tsconfig.json index 37d0b6f4b4de0..26e3b7d47a332 100644 --- a/x-pack/plugins/cloud/tsconfig.json +++ b/x-pack/platform/plugins/shared/cloud/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, @@ -8,7 +8,7 @@ "common/**/*", "public/**/*", "server/**/*", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/core", diff --git a/yarn.lock b/yarn.lock index 898ca0aeaa765..2a62e966c3529 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4157,7 +4157,7 @@ version "0.0.0" uid "" -"@kbn/cloud-plugin@link:x-pack/plugins/cloud": +"@kbn/cloud-plugin@link:x-pack/platform/plugins/shared/cloud": version "0.0.0" uid "" From 811836454710637faa879eaa43cfec1724624942 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:02:35 +0100 Subject: [PATCH 010/167] Relocating module `@kbn/config` --- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- package.json | 2 +- .../platform/packages/shared}/kbn-config/README.md | 0 .../platform/packages/shared}/kbn-config/index.ts | 0 .../platform/packages/shared}/kbn-config/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-config/kibana.jsonc | 0 .../platform/packages/shared}/kbn-config/package.json | 0 .../packages/shared}/kbn-config/src/__fixtures__/config.yml | 0 .../shared}/kbn-config/src/__fixtures__/config_flat.yml | 0 .../shared}/kbn-config/src/__fixtures__/en_var_ref_config.yml | 0 .../kbn-config/src/__fixtures__/en_var_ref_config_nested.yml | 0 .../kbn-config/src/__fixtures__/en_var_with_defaults.yml | 0 .../shared}/kbn-config/src/__fixtures__/forbidden_1.yml | 0 .../shared}/kbn-config/src/__fixtures__/forbidden_2.yml | 0 .../packages/shared}/kbn-config/src/__fixtures__/merge_1.yml | 0 .../packages/shared}/kbn-config/src/__fixtures__/merge_2.yml | 0 .../packages/shared}/kbn-config/src/__fixtures__/one.yml | 0 .../packages/shared}/kbn-config/src/__fixtures__/two.yml | 0 .../shared}/kbn-config/src/__fixtures__/unsplittable_1.yml | 0 .../shared}/kbn-config/src/__fixtures__/unsplittable_2.yml | 0 .../shared}/kbn-config/src/__fixtures__/unsplittable_3.yml | 0 .../kbn-config/src/__snapshots__/config_service.test.ts.snap | 0 .../shared}/kbn-config/src/__snapshots__/env.test.ts.snap | 0 .../packages/shared}/kbn-config/src/apply_argv.test.ts | 0 .../platform/packages/shared}/kbn-config/src/config.test.ts | 0 .../platform/packages/shared}/kbn-config/src/config.ts | 0 .../shared}/kbn-config/src/config_service.test.mocks.ts | 2 +- .../packages/shared}/kbn-config/src/config_service.test.ts | 0 .../packages/shared}/kbn-config/src/config_service.ts | 0 .../kbn-config/src/deprecation/apply_deprecations.test.ts | 0 .../shared}/kbn-config/src/deprecation/apply_deprecations.ts | 0 .../kbn-config/src/deprecation/deprecation_factory.test.ts | 0 .../shared}/kbn-config/src/deprecation/deprecation_factory.ts | 0 .../packages/shared}/kbn-config/src/deprecation/index.ts | 0 .../packages/shared}/kbn-config/src/deprecation/types.ts | 0 .../src/deprecation/unset_and_clean_empty_parent.test.ts | 0 .../src/deprecation/unset_and_clean_empty_parent.ts | 0 .../packages/shared}/kbn-config/src/env.test.mocks.ts | 0 .../platform/packages/shared}/kbn-config/src/env.test.ts | 0 .../platform/packages/shared}/kbn-config/src/env.ts | 0 .../packages/shared}/kbn-config/src/internal_mocks.ts | 0 .../shared}/kbn-config/src/object_to_config_adapter.test.ts | 0 .../shared}/kbn-config/src/object_to_config_adapter.ts | 0 .../kbn-config/src/raw/__snapshots__/read_config.test.ts.snap | 0 .../platform/packages/shared}/kbn-config/src/raw/index.ts | 0 .../kbn-config/src/raw/raw_config_service.test.mocks.ts | 0 .../shared}/kbn-config/src/raw/raw_config_service.test.ts | 0 .../packages/shared}/kbn-config/src/raw/raw_config_service.ts | 0 .../packages/shared}/kbn-config/src/raw/read_config.test.ts | 0 .../packages/shared}/kbn-config/src/raw/read_config.ts | 0 .../packages/shared}/kbn-config/src/raw/utils.test.ts | 0 .../platform/packages/shared}/kbn-config/src/raw/utils.ts | 0 .../platform/packages/shared}/kbn-config/src/types.ts | 0 .../platform/packages/shared}/kbn-config/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 57 files changed, 10 insertions(+), 10 deletions(-) rename {packages => src/platform/packages/shared}/kbn-config/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-config/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-config/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-config/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/config.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/config_flat.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/en_var_ref_config.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/en_var_ref_config_nested.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/en_var_with_defaults.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/forbidden_1.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/forbidden_2.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/merge_1.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/merge_2.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/one.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/two.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/unsplittable_1.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/unsplittable_2.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__fixtures__/unsplittable_3.yml (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__snapshots__/config_service.test.ts.snap (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/__snapshots__/env.test.ts.snap (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/apply_argv.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/config.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/config.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/config_service.test.mocks.ts (95%) rename {packages => src/platform/packages/shared}/kbn-config/src/config_service.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/config_service.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/deprecation/apply_deprecations.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/deprecation/apply_deprecations.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/deprecation/deprecation_factory.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/deprecation/deprecation_factory.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/deprecation/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/deprecation/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/deprecation/unset_and_clean_empty_parent.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/deprecation/unset_and_clean_empty_parent.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/env.test.mocks.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/env.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/env.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/internal_mocks.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/object_to_config_adapter.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/object_to_config_adapter.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/raw/__snapshots__/read_config.test.ts.snap (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/raw/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/raw/raw_config_service.test.mocks.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/raw/raw_config_service.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/raw/raw_config_service.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/raw/read_config.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/raw/read_config.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/raw/utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/raw/utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 33aba64bf3ed3..8909aa5e5875e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -276,7 +276,6 @@ packages/kbn-ci-stats-shipper-cli @elastic/kibana-operations packages/kbn-cli-dev-mode @elastic/kibana-operations packages/kbn-code-owners @elastic/appex-qa packages/kbn-coloring @elastic/kibana-visualizations -packages/kbn-config @elastic/kibana-core packages/kbn-config-mocks @elastic/kibana-core packages/kbn-config-schema @elastic/kibana-core packages/kbn-crypto @elastic/kibana-security @@ -533,6 +532,7 @@ src/platform/packages/shared/kbn-avc-banner @elastic/security-defend-workflows src/platform/packages/shared/kbn-cases-components @elastic/response-ops src/platform/packages/shared/kbn-cbor @elastic/kibana-operations src/platform/packages/shared/kbn-cell-actions @elastic/security-threat-hunting-explore +src/platform/packages/shared/kbn-config @elastic/kibana-core src/platform/packages/shared/kbn-content-management-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-custom-icons @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-data-view-utils @elastic/kibana-data-discovery diff --git a/.i18nrc.json b/.i18nrc.json index 13407fd941ea0..9c13ce8d12d06 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -79,7 +79,7 @@ "imageEmbeddable": "src/platform/plugins/private/image_embeddable", "kbn": "src/legacy/core_plugins/kibana", "kbn-esql-validation-autocomplete": "src/platform/packages/shared/kbn-esql-validation-autocomplete/src", - "kbnConfig": "packages/kbn-config/src", + "kbnConfig": "src/platform/packages/shared/kbn-config/src", "kbnDocViews": "src/legacy/core_plugins/kbn_doc_views", "kibana_utils": "src/platform/plugins/shared/kibana_utils", "kibana-react": "src/platform/plugins/shared/kibana_react", diff --git a/package.json b/package.json index 30c015aa684e6..e4330802ac82c 100644 --- a/package.json +++ b/package.json @@ -224,7 +224,7 @@ "@kbn/code-editor": "link:packages/shared-ux/code_editor/impl", "@kbn/code-editor-mock": "link:packages/shared-ux/code_editor/mocks", "@kbn/coloring": "link:packages/kbn-coloring", - "@kbn/config": "link:packages/kbn-config", + "@kbn/config": "link:src/platform/packages/shared/kbn-config", "@kbn/config-mocks": "link:packages/kbn-config-mocks", "@kbn/config-schema": "link:packages/kbn-config-schema", "@kbn/console-plugin": "link:src/platform/plugins/shared/console", diff --git a/packages/kbn-config/README.md b/src/platform/packages/shared/kbn-config/README.md similarity index 100% rename from packages/kbn-config/README.md rename to src/platform/packages/shared/kbn-config/README.md diff --git a/packages/kbn-config/index.ts b/src/platform/packages/shared/kbn-config/index.ts similarity index 100% rename from packages/kbn-config/index.ts rename to src/platform/packages/shared/kbn-config/index.ts diff --git a/packages/kbn-config/jest.config.js b/src/platform/packages/shared/kbn-config/jest.config.js similarity index 84% rename from packages/kbn-config/jest.config.js rename to src/platform/packages/shared/kbn-config/jest.config.js index 09a4d4e774ca8..12d831e0b3d24 100644 --- a/packages/kbn-config/jest.config.js +++ b/src/platform/packages/shared/kbn-config/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-config'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-config'], }; diff --git a/packages/kbn-config/kibana.jsonc b/src/platform/packages/shared/kbn-config/kibana.jsonc similarity index 100% rename from packages/kbn-config/kibana.jsonc rename to src/platform/packages/shared/kbn-config/kibana.jsonc diff --git a/packages/kbn-config/package.json b/src/platform/packages/shared/kbn-config/package.json similarity index 100% rename from packages/kbn-config/package.json rename to src/platform/packages/shared/kbn-config/package.json diff --git a/packages/kbn-config/src/__fixtures__/config.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/config.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/config.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/config.yml diff --git a/packages/kbn-config/src/__fixtures__/config_flat.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/config_flat.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/config_flat.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/config_flat.yml diff --git a/packages/kbn-config/src/__fixtures__/en_var_ref_config.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/en_var_ref_config.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/en_var_ref_config.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/en_var_ref_config.yml diff --git a/packages/kbn-config/src/__fixtures__/en_var_ref_config_nested.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/en_var_ref_config_nested.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/en_var_ref_config_nested.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/en_var_ref_config_nested.yml diff --git a/packages/kbn-config/src/__fixtures__/en_var_with_defaults.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/en_var_with_defaults.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/en_var_with_defaults.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/en_var_with_defaults.yml diff --git a/packages/kbn-config/src/__fixtures__/forbidden_1.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/forbidden_1.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/forbidden_1.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/forbidden_1.yml diff --git a/packages/kbn-config/src/__fixtures__/forbidden_2.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/forbidden_2.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/forbidden_2.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/forbidden_2.yml diff --git a/packages/kbn-config/src/__fixtures__/merge_1.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/merge_1.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/merge_1.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/merge_1.yml diff --git a/packages/kbn-config/src/__fixtures__/merge_2.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/merge_2.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/merge_2.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/merge_2.yml diff --git a/packages/kbn-config/src/__fixtures__/one.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/one.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/one.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/one.yml diff --git a/packages/kbn-config/src/__fixtures__/two.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/two.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/two.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/two.yml diff --git a/packages/kbn-config/src/__fixtures__/unsplittable_1.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/unsplittable_1.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/unsplittable_1.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/unsplittable_1.yml diff --git a/packages/kbn-config/src/__fixtures__/unsplittable_2.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/unsplittable_2.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/unsplittable_2.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/unsplittable_2.yml diff --git a/packages/kbn-config/src/__fixtures__/unsplittable_3.yml b/src/platform/packages/shared/kbn-config/src/__fixtures__/unsplittable_3.yml similarity index 100% rename from packages/kbn-config/src/__fixtures__/unsplittable_3.yml rename to src/platform/packages/shared/kbn-config/src/__fixtures__/unsplittable_3.yml diff --git a/packages/kbn-config/src/__snapshots__/config_service.test.ts.snap b/src/platform/packages/shared/kbn-config/src/__snapshots__/config_service.test.ts.snap similarity index 100% rename from packages/kbn-config/src/__snapshots__/config_service.test.ts.snap rename to src/platform/packages/shared/kbn-config/src/__snapshots__/config_service.test.ts.snap diff --git a/packages/kbn-config/src/__snapshots__/env.test.ts.snap b/src/platform/packages/shared/kbn-config/src/__snapshots__/env.test.ts.snap similarity index 100% rename from packages/kbn-config/src/__snapshots__/env.test.ts.snap rename to src/platform/packages/shared/kbn-config/src/__snapshots__/env.test.ts.snap diff --git a/packages/kbn-config/src/apply_argv.test.ts b/src/platform/packages/shared/kbn-config/src/apply_argv.test.ts similarity index 100% rename from packages/kbn-config/src/apply_argv.test.ts rename to src/platform/packages/shared/kbn-config/src/apply_argv.test.ts diff --git a/packages/kbn-config/src/config.test.ts b/src/platform/packages/shared/kbn-config/src/config.test.ts similarity index 100% rename from packages/kbn-config/src/config.test.ts rename to src/platform/packages/shared/kbn-config/src/config.test.ts diff --git a/packages/kbn-config/src/config.ts b/src/platform/packages/shared/kbn-config/src/config.ts similarity index 100% rename from packages/kbn-config/src/config.ts rename to src/platform/packages/shared/kbn-config/src/config.ts diff --git a/packages/kbn-config/src/config_service.test.mocks.ts b/src/platform/packages/shared/kbn-config/src/config_service.test.mocks.ts similarity index 95% rename from packages/kbn-config/src/config_service.test.mocks.ts rename to src/platform/packages/shared/kbn-config/src/config_service.test.mocks.ts index d242b0d4e0ce0..912f208d5225c 100644 --- a/packages/kbn-config/src/config_service.test.mocks.ts +++ b/src/platform/packages/shared/kbn-config/src/config_service.test.mocks.ts @@ -12,7 +12,7 @@ import type { DocLinks } from '@kbn/doc-links'; export const mockPackage = new Proxy({ raw: {} as any }, { get: (obj, prop) => obj.raw[prop] }); import type { applyDeprecations } from './deprecation/apply_deprecations'; -jest.mock('../../../package.json', () => mockPackage); +jest.mock('../../../../../../package.json', () => mockPackage); const changedPaths = { set: ['foo'], diff --git a/packages/kbn-config/src/config_service.test.ts b/src/platform/packages/shared/kbn-config/src/config_service.test.ts similarity index 100% rename from packages/kbn-config/src/config_service.test.ts rename to src/platform/packages/shared/kbn-config/src/config_service.test.ts diff --git a/packages/kbn-config/src/config_service.ts b/src/platform/packages/shared/kbn-config/src/config_service.ts similarity index 100% rename from packages/kbn-config/src/config_service.ts rename to src/platform/packages/shared/kbn-config/src/config_service.ts diff --git a/packages/kbn-config/src/deprecation/apply_deprecations.test.ts b/src/platform/packages/shared/kbn-config/src/deprecation/apply_deprecations.test.ts similarity index 100% rename from packages/kbn-config/src/deprecation/apply_deprecations.test.ts rename to src/platform/packages/shared/kbn-config/src/deprecation/apply_deprecations.test.ts diff --git a/packages/kbn-config/src/deprecation/apply_deprecations.ts b/src/platform/packages/shared/kbn-config/src/deprecation/apply_deprecations.ts similarity index 100% rename from packages/kbn-config/src/deprecation/apply_deprecations.ts rename to src/platform/packages/shared/kbn-config/src/deprecation/apply_deprecations.ts diff --git a/packages/kbn-config/src/deprecation/deprecation_factory.test.ts b/src/platform/packages/shared/kbn-config/src/deprecation/deprecation_factory.test.ts similarity index 100% rename from packages/kbn-config/src/deprecation/deprecation_factory.test.ts rename to src/platform/packages/shared/kbn-config/src/deprecation/deprecation_factory.test.ts diff --git a/packages/kbn-config/src/deprecation/deprecation_factory.ts b/src/platform/packages/shared/kbn-config/src/deprecation/deprecation_factory.ts similarity index 100% rename from packages/kbn-config/src/deprecation/deprecation_factory.ts rename to src/platform/packages/shared/kbn-config/src/deprecation/deprecation_factory.ts diff --git a/packages/kbn-config/src/deprecation/index.ts b/src/platform/packages/shared/kbn-config/src/deprecation/index.ts similarity index 100% rename from packages/kbn-config/src/deprecation/index.ts rename to src/platform/packages/shared/kbn-config/src/deprecation/index.ts diff --git a/packages/kbn-config/src/deprecation/types.ts b/src/platform/packages/shared/kbn-config/src/deprecation/types.ts similarity index 100% rename from packages/kbn-config/src/deprecation/types.ts rename to src/platform/packages/shared/kbn-config/src/deprecation/types.ts diff --git a/packages/kbn-config/src/deprecation/unset_and_clean_empty_parent.test.ts b/src/platform/packages/shared/kbn-config/src/deprecation/unset_and_clean_empty_parent.test.ts similarity index 100% rename from packages/kbn-config/src/deprecation/unset_and_clean_empty_parent.test.ts rename to src/platform/packages/shared/kbn-config/src/deprecation/unset_and_clean_empty_parent.test.ts diff --git a/packages/kbn-config/src/deprecation/unset_and_clean_empty_parent.ts b/src/platform/packages/shared/kbn-config/src/deprecation/unset_and_clean_empty_parent.ts similarity index 100% rename from packages/kbn-config/src/deprecation/unset_and_clean_empty_parent.ts rename to src/platform/packages/shared/kbn-config/src/deprecation/unset_and_clean_empty_parent.ts diff --git a/packages/kbn-config/src/env.test.mocks.ts b/src/platform/packages/shared/kbn-config/src/env.test.mocks.ts similarity index 100% rename from packages/kbn-config/src/env.test.mocks.ts rename to src/platform/packages/shared/kbn-config/src/env.test.mocks.ts diff --git a/packages/kbn-config/src/env.test.ts b/src/platform/packages/shared/kbn-config/src/env.test.ts similarity index 100% rename from packages/kbn-config/src/env.test.ts rename to src/platform/packages/shared/kbn-config/src/env.test.ts diff --git a/packages/kbn-config/src/env.ts b/src/platform/packages/shared/kbn-config/src/env.ts similarity index 100% rename from packages/kbn-config/src/env.ts rename to src/platform/packages/shared/kbn-config/src/env.ts diff --git a/packages/kbn-config/src/internal_mocks.ts b/src/platform/packages/shared/kbn-config/src/internal_mocks.ts similarity index 100% rename from packages/kbn-config/src/internal_mocks.ts rename to src/platform/packages/shared/kbn-config/src/internal_mocks.ts diff --git a/packages/kbn-config/src/object_to_config_adapter.test.ts b/src/platform/packages/shared/kbn-config/src/object_to_config_adapter.test.ts similarity index 100% rename from packages/kbn-config/src/object_to_config_adapter.test.ts rename to src/platform/packages/shared/kbn-config/src/object_to_config_adapter.test.ts diff --git a/packages/kbn-config/src/object_to_config_adapter.ts b/src/platform/packages/shared/kbn-config/src/object_to_config_adapter.ts similarity index 100% rename from packages/kbn-config/src/object_to_config_adapter.ts rename to src/platform/packages/shared/kbn-config/src/object_to_config_adapter.ts diff --git a/packages/kbn-config/src/raw/__snapshots__/read_config.test.ts.snap b/src/platform/packages/shared/kbn-config/src/raw/__snapshots__/read_config.test.ts.snap similarity index 100% rename from packages/kbn-config/src/raw/__snapshots__/read_config.test.ts.snap rename to src/platform/packages/shared/kbn-config/src/raw/__snapshots__/read_config.test.ts.snap diff --git a/packages/kbn-config/src/raw/index.ts b/src/platform/packages/shared/kbn-config/src/raw/index.ts similarity index 100% rename from packages/kbn-config/src/raw/index.ts rename to src/platform/packages/shared/kbn-config/src/raw/index.ts diff --git a/packages/kbn-config/src/raw/raw_config_service.test.mocks.ts b/src/platform/packages/shared/kbn-config/src/raw/raw_config_service.test.mocks.ts similarity index 100% rename from packages/kbn-config/src/raw/raw_config_service.test.mocks.ts rename to src/platform/packages/shared/kbn-config/src/raw/raw_config_service.test.mocks.ts diff --git a/packages/kbn-config/src/raw/raw_config_service.test.ts b/src/platform/packages/shared/kbn-config/src/raw/raw_config_service.test.ts similarity index 100% rename from packages/kbn-config/src/raw/raw_config_service.test.ts rename to src/platform/packages/shared/kbn-config/src/raw/raw_config_service.test.ts diff --git a/packages/kbn-config/src/raw/raw_config_service.ts b/src/platform/packages/shared/kbn-config/src/raw/raw_config_service.ts similarity index 100% rename from packages/kbn-config/src/raw/raw_config_service.ts rename to src/platform/packages/shared/kbn-config/src/raw/raw_config_service.ts diff --git a/packages/kbn-config/src/raw/read_config.test.ts b/src/platform/packages/shared/kbn-config/src/raw/read_config.test.ts similarity index 100% rename from packages/kbn-config/src/raw/read_config.test.ts rename to src/platform/packages/shared/kbn-config/src/raw/read_config.test.ts diff --git a/packages/kbn-config/src/raw/read_config.ts b/src/platform/packages/shared/kbn-config/src/raw/read_config.ts similarity index 100% rename from packages/kbn-config/src/raw/read_config.ts rename to src/platform/packages/shared/kbn-config/src/raw/read_config.ts diff --git a/packages/kbn-config/src/raw/utils.test.ts b/src/platform/packages/shared/kbn-config/src/raw/utils.test.ts similarity index 100% rename from packages/kbn-config/src/raw/utils.test.ts rename to src/platform/packages/shared/kbn-config/src/raw/utils.test.ts diff --git a/packages/kbn-config/src/raw/utils.ts b/src/platform/packages/shared/kbn-config/src/raw/utils.ts similarity index 100% rename from packages/kbn-config/src/raw/utils.ts rename to src/platform/packages/shared/kbn-config/src/raw/utils.ts diff --git a/packages/kbn-config/src/types.ts b/src/platform/packages/shared/kbn-config/src/types.ts similarity index 100% rename from packages/kbn-config/src/types.ts rename to src/platform/packages/shared/kbn-config/src/types.ts diff --git a/packages/kbn-config/tsconfig.json b/src/platform/packages/shared/kbn-config/tsconfig.json similarity index 89% rename from packages/kbn-config/tsconfig.json rename to src/platform/packages/shared/kbn-config/tsconfig.json index e9978b43fa8c8..6dffb3fa8bf0c 100644 --- a/packages/kbn-config/tsconfig.json +++ b/src/platform/packages/shared/kbn-config/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index b799977f175d3..8aa724172a166 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -190,8 +190,8 @@ "@kbn/code-owners/*": ["packages/kbn-code-owners/*"], "@kbn/coloring": ["packages/kbn-coloring"], "@kbn/coloring/*": ["packages/kbn-coloring/*"], - "@kbn/config": ["packages/kbn-config"], - "@kbn/config/*": ["packages/kbn-config/*"], + "@kbn/config": ["src/platform/packages/shared/kbn-config"], + "@kbn/config/*": ["src/platform/packages/shared/kbn-config/*"], "@kbn/config-mocks": ["packages/kbn-config-mocks"], "@kbn/config-mocks/*": ["packages/kbn-config-mocks/*"], "@kbn/config-schema": ["packages/kbn-config-schema"], diff --git a/yarn.lock b/yarn.lock index 2a62e966c3529..6186d3ce6cae9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4205,7 +4205,7 @@ version "0.0.0" uid "" -"@kbn/config@link:packages/kbn-config": +"@kbn/config@link:src/platform/packages/shared/kbn-config": version "0.0.0" uid "" From 0b7cd68fd56b303eb94377c2a5f02a5c659df6dd Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:03:29 +0100 Subject: [PATCH 011/167] Relocating module `@kbn/config-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/private}/kbn-config-mocks/README.md | 0 .../platform/packages/private}/kbn-config-mocks/index.ts | 0 .../packages/private}/kbn-config-mocks/jest.config.js | 4 ++-- .../platform/packages/private}/kbn-config-mocks/kibana.jsonc | 0 .../platform/packages/private}/kbn-config-mocks/package.json | 0 .../packages/private}/kbn-config-mocks/src/config.mock.ts | 0 .../private}/kbn-config-mocks/src/config_service.mock.ts | 0 .../private}/kbn-config-mocks/src/deprecations.mock.ts | 0 .../packages/private}/kbn-config-mocks/src/env.mock.ts | 0 .../private}/kbn-config-mocks/src/raw_config_service.mock.ts | 0 .../platform/packages/private}/kbn-config-mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/kbn-config-mocks/README.md (100%) rename {packages => src/platform/packages/private}/kbn-config-mocks/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-config-mocks/jest.config.js (83%) rename {packages => src/platform/packages/private}/kbn-config-mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-config-mocks/package.json (100%) rename {packages => src/platform/packages/private}/kbn-config-mocks/src/config.mock.ts (100%) rename {packages => src/platform/packages/private}/kbn-config-mocks/src/config_service.mock.ts (100%) rename {packages => src/platform/packages/private}/kbn-config-mocks/src/deprecations.mock.ts (100%) rename {packages => src/platform/packages/private}/kbn-config-mocks/src/env.mock.ts (100%) rename {packages => src/platform/packages/private}/kbn-config-mocks/src/raw_config_service.mock.ts (100%) rename {packages => src/platform/packages/private}/kbn-config-mocks/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8909aa5e5875e..59be221ac4ca4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -276,7 +276,6 @@ packages/kbn-ci-stats-shipper-cli @elastic/kibana-operations packages/kbn-cli-dev-mode @elastic/kibana-operations packages/kbn-code-owners @elastic/appex-qa packages/kbn-coloring @elastic/kibana-visualizations -packages/kbn-config-mocks @elastic/kibana-core packages/kbn-config-schema @elastic/kibana-core packages/kbn-crypto @elastic/kibana-security packages/kbn-crypto-browser @elastic/kibana-core @@ -501,6 +500,7 @@ src/platform/packages/private/default-nav/devtools @elastic/kibana-management src/platform/packages/private/default-nav/management @elastic/kibana-management src/platform/packages/private/default-nav/ml @elastic/ml-ui src/platform/packages/private/kbn-apm-config-loader @elastic/kibana-core @vigneshshanmugam +src/platform/packages/private/kbn-config-mocks @elastic/kibana-core src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/private/kbn-management/settings/application @elastic/kibana-management diff --git a/package.json b/package.json index e4330802ac82c..174b89a05ce44 100644 --- a/package.json +++ b/package.json @@ -225,7 +225,7 @@ "@kbn/code-editor-mock": "link:packages/shared-ux/code_editor/mocks", "@kbn/coloring": "link:packages/kbn-coloring", "@kbn/config": "link:src/platform/packages/shared/kbn-config", - "@kbn/config-mocks": "link:packages/kbn-config-mocks", + "@kbn/config-mocks": "link:src/platform/packages/private/kbn-config-mocks", "@kbn/config-schema": "link:packages/kbn-config-schema", "@kbn/console-plugin": "link:src/platform/plugins/shared/console", "@kbn/content-management-content-editor": "link:packages/content-management/content_editor", diff --git a/packages/kbn-config-mocks/README.md b/src/platform/packages/private/kbn-config-mocks/README.md similarity index 100% rename from packages/kbn-config-mocks/README.md rename to src/platform/packages/private/kbn-config-mocks/README.md diff --git a/packages/kbn-config-mocks/index.ts b/src/platform/packages/private/kbn-config-mocks/index.ts similarity index 100% rename from packages/kbn-config-mocks/index.ts rename to src/platform/packages/private/kbn-config-mocks/index.ts diff --git a/packages/kbn-config-mocks/jest.config.js b/src/platform/packages/private/kbn-config-mocks/jest.config.js similarity index 83% rename from packages/kbn-config-mocks/jest.config.js rename to src/platform/packages/private/kbn-config-mocks/jest.config.js index fc11e6ca8c8be..d1948829eb704 100644 --- a/packages/kbn-config-mocks/jest.config.js +++ b/src/platform/packages/private/kbn-config-mocks/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-config-mocks'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-config-mocks'], }; diff --git a/packages/kbn-config-mocks/kibana.jsonc b/src/platform/packages/private/kbn-config-mocks/kibana.jsonc similarity index 100% rename from packages/kbn-config-mocks/kibana.jsonc rename to src/platform/packages/private/kbn-config-mocks/kibana.jsonc diff --git a/packages/kbn-config-mocks/package.json b/src/platform/packages/private/kbn-config-mocks/package.json similarity index 100% rename from packages/kbn-config-mocks/package.json rename to src/platform/packages/private/kbn-config-mocks/package.json diff --git a/packages/kbn-config-mocks/src/config.mock.ts b/src/platform/packages/private/kbn-config-mocks/src/config.mock.ts similarity index 100% rename from packages/kbn-config-mocks/src/config.mock.ts rename to src/platform/packages/private/kbn-config-mocks/src/config.mock.ts diff --git a/packages/kbn-config-mocks/src/config_service.mock.ts b/src/platform/packages/private/kbn-config-mocks/src/config_service.mock.ts similarity index 100% rename from packages/kbn-config-mocks/src/config_service.mock.ts rename to src/platform/packages/private/kbn-config-mocks/src/config_service.mock.ts diff --git a/packages/kbn-config-mocks/src/deprecations.mock.ts b/src/platform/packages/private/kbn-config-mocks/src/deprecations.mock.ts similarity index 100% rename from packages/kbn-config-mocks/src/deprecations.mock.ts rename to src/platform/packages/private/kbn-config-mocks/src/deprecations.mock.ts diff --git a/packages/kbn-config-mocks/src/env.mock.ts b/src/platform/packages/private/kbn-config-mocks/src/env.mock.ts similarity index 100% rename from packages/kbn-config-mocks/src/env.mock.ts rename to src/platform/packages/private/kbn-config-mocks/src/env.mock.ts diff --git a/packages/kbn-config-mocks/src/raw_config_service.mock.ts b/src/platform/packages/private/kbn-config-mocks/src/raw_config_service.mock.ts similarity index 100% rename from packages/kbn-config-mocks/src/raw_config_service.mock.ts rename to src/platform/packages/private/kbn-config-mocks/src/raw_config_service.mock.ts diff --git a/packages/kbn-config-mocks/tsconfig.json b/src/platform/packages/private/kbn-config-mocks/tsconfig.json similarity index 86% rename from packages/kbn-config-mocks/tsconfig.json rename to src/platform/packages/private/kbn-config-mocks/tsconfig.json index 5e0c421e09cd6..bad5aa51f85c6 100644 --- a/packages/kbn-config-mocks/tsconfig.json +++ b/src/platform/packages/private/kbn-config-mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 8aa724172a166..1b985fe1285f3 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -192,8 +192,8 @@ "@kbn/coloring/*": ["packages/kbn-coloring/*"], "@kbn/config": ["src/platform/packages/shared/kbn-config"], "@kbn/config/*": ["src/platform/packages/shared/kbn-config/*"], - "@kbn/config-mocks": ["packages/kbn-config-mocks"], - "@kbn/config-mocks/*": ["packages/kbn-config-mocks/*"], + "@kbn/config-mocks": ["src/platform/packages/private/kbn-config-mocks"], + "@kbn/config-mocks/*": ["src/platform/packages/private/kbn-config-mocks/*"], "@kbn/config-schema": ["packages/kbn-config-schema"], "@kbn/config-schema/*": ["packages/kbn-config-schema/*"], "@kbn/console-plugin": ["src/platform/plugins/shared/console"], diff --git a/yarn.lock b/yarn.lock index 6186d3ce6cae9..9696c26502fd5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4197,7 +4197,7 @@ version "0.0.0" uid "" -"@kbn/config-mocks@link:packages/kbn-config-mocks": +"@kbn/config-mocks@link:src/platform/packages/private/kbn-config-mocks": version "0.0.0" uid "" From b4db399b5fdc7c79fe30959a88050d4d560ad7d3 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:04:22 +0100 Subject: [PATCH 012/167] Relocating module `@kbn/config-schema` --- .eslintrc.js | 2 +- .github/CODEOWNERS | 2 +- package.json | 2 +- .../ui-settings/core-ui-settings-common/src/ui_settings.ts | 2 +- .../platform/packages/shared}/kbn-config-schema/README.md | 0 .../platform/packages/shared}/kbn-config-schema/index.ts | 0 .../packages/shared}/kbn-config-schema/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-config-schema/kibana.jsonc | 0 .../platform/packages/shared}/kbn-config-schema/package.json | 0 .../kbn-config-schema/src/byte_size_value/index.test.ts | 0 .../shared}/kbn-config-schema/src/byte_size_value/index.ts | 0 .../packages/shared}/kbn-config-schema/src/duration/index.ts | 0 .../packages/shared}/kbn-config-schema/src/errors/index.ts | 0 .../shared}/kbn-config-schema/src/errors/schema_error.test.ts | 0 .../shared}/kbn-config-schema/src/errors/schema_error.ts | 0 .../shared}/kbn-config-schema/src/errors/schema_type_error.ts | 0 .../kbn-config-schema/src/errors/schema_types_error.ts | 0 .../shared}/kbn-config-schema/src/errors/validation_error.ts | 0 .../packages/shared}/kbn-config-schema/src/helpers/index.ts | 0 .../src/helpers/offering_based_schema.test.ts | 0 .../kbn-config-schema/src/helpers/offering_based_schema.ts | 0 .../packages/shared}/kbn-config-schema/src/internals/index.ts | 0 .../packages/shared}/kbn-config-schema/src/oas_meta_fields.ts | 0 .../kbn-config-schema/src/references/context_reference.ts | 0 .../shared}/kbn-config-schema/src/references/index.ts | 0 .../kbn-config-schema/src/references/reference.test.ts | 0 .../shared}/kbn-config-schema/src/references/reference.ts | 0 .../kbn-config-schema/src/references/sibling_reference.ts | 0 .../shared}/kbn-config-schema/src/typeguards/index.ts | 0 .../kbn-config-schema/src/typeguards/is_config_schema.test.ts | 0 .../kbn-config-schema/src/typeguards/is_config_schema.ts | 0 .../shared}/kbn-config-schema/src/types/any_type.test.ts | 0 .../packages/shared}/kbn-config-schema/src/types/any_type.ts | 0 .../shared}/kbn-config-schema/src/types/array_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/array_type.ts | 0 .../shared}/kbn-config-schema/src/types/boolean_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/boolean_type.ts | 0 .../shared}/kbn-config-schema/src/types/buffer_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/buffer_type.ts | 0 .../kbn-config-schema/src/types/byte_size_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/byte_size_type.ts | 0 .../kbn-config-schema/src/types/conditional_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/conditional_type.ts | 0 .../shared}/kbn-config-schema/src/types/duration_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/duration_type.ts | 0 .../packages/shared}/kbn-config-schema/src/types/index.ts | 0 .../kbn-config-schema/src/types/intersection_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/intersection_type.ts | 0 .../shared}/kbn-config-schema/src/types/ip_type.test.ts | 0 .../packages/shared}/kbn-config-schema/src/types/ip_type.ts | 0 .../packages/shared}/kbn-config-schema/src/types/lazy.test.ts | 0 .../packages/shared}/kbn-config-schema/src/types/lazy.ts | 0 .../shared}/kbn-config-schema/src/types/literal_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/literal_type.ts | 0 .../shared}/kbn-config-schema/src/types/map_type.test.ts | 0 .../packages/shared}/kbn-config-schema/src/types/map_type.ts | 0 .../shared}/kbn-config-schema/src/types/maybe_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/maybe_type.ts | 0 .../shared}/kbn-config-schema/src/types/never_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/never_type.ts | 0 .../shared}/kbn-config-schema/src/types/nullable_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/number_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/number_type.ts | 0 .../shared}/kbn-config-schema/src/types/object_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/object_type.ts | 0 .../shared}/kbn-config-schema/src/types/record_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/record_type.ts | 0 .../shared}/kbn-config-schema/src/types/stream_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/stream_type.ts | 0 .../shared}/kbn-config-schema/src/types/string_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/string_type.ts | 0 .../packages/shared}/kbn-config-schema/src/types/type.test.ts | 0 .../packages/shared}/kbn-config-schema/src/types/type.ts | 0 .../shared}/kbn-config-schema/src/types/union_type.test.ts | 0 .../shared}/kbn-config-schema/src/types/union_type.ts | 0 .../shared}/kbn-config-schema/src/types/uri_type.test.ts | 0 .../packages/shared}/kbn-config-schema/src/types/uri_type.ts | 0 .../platform/packages/shared}/kbn-config-schema/tsconfig.json | 2 +- .../packages/shared}/kbn-config-schema/types/joi.d.ts | 0 tsconfig.base.json | 4 ++-- x-pack/solutions/search/plugins/enterprise_search/SERVER.md | 2 +- .../enterprise_search/server/lib/route_config_helpers.ts | 2 +- yarn.lock | 2 +- 83 files changed, 12 insertions(+), 12 deletions(-) rename {packages => src/platform/packages/shared}/kbn-config-schema/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/jest.config.js (83%) rename {packages => src/platform/packages/shared}/kbn-config-schema/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/byte_size_value/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/byte_size_value/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/duration/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/errors/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/errors/schema_error.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/errors/schema_error.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/errors/schema_type_error.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/errors/schema_types_error.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/errors/validation_error.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/helpers/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/helpers/offering_based_schema.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/helpers/offering_based_schema.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/internals/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/oas_meta_fields.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/references/context_reference.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/references/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/references/reference.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/references/reference.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/references/sibling_reference.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/typeguards/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/typeguards/is_config_schema.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/typeguards/is_config_schema.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/any_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/any_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/array_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/array_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/boolean_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/boolean_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/buffer_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/buffer_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/byte_size_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/byte_size_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/conditional_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/conditional_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/duration_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/duration_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/intersection_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/intersection_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/ip_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/ip_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/lazy.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/lazy.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/literal_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/literal_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/map_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/map_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/maybe_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/maybe_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/never_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/never_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/nullable_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/number_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/number_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/object_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/object_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/record_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/record_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/stream_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/stream_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/string_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/string_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/union_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/union_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/uri_type.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/src/types/uri_type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-config-schema/tsconfig.json (80%) rename {packages => src/platform/packages/shared}/kbn-config-schema/types/joi.d.ts (100%) diff --git a/.eslintrc.js b/.eslintrc.js index f4d96456bcd9f..9663b30907320 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1942,7 +1942,7 @@ module.exports = { 'x-pack/plugins/licensing/**', 'x-pack/platform/plugins/shared/global_search/**', 'x-pack/platform/plugins/shared/cloud/**', - 'packages/kbn-config-schema', + 'src/platform/packages/shared/kbn-config-schema', 'src/plugins/status_page/**', 'src/plugins/saved_objects_management/**', 'src/platform/packages/shared/kbn-analytics/**', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 59be221ac4ca4..5eb48490bf04b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -276,7 +276,6 @@ packages/kbn-ci-stats-shipper-cli @elastic/kibana-operations packages/kbn-cli-dev-mode @elastic/kibana-operations packages/kbn-code-owners @elastic/appex-qa packages/kbn-coloring @elastic/kibana-visualizations -packages/kbn-config-schema @elastic/kibana-core packages/kbn-crypto @elastic/kibana-security packages/kbn-crypto-browser @elastic/kibana-core packages/kbn-cypress-config @elastic/kibana-operations @@ -533,6 +532,7 @@ src/platform/packages/shared/kbn-cases-components @elastic/response-ops src/platform/packages/shared/kbn-cbor @elastic/kibana-operations src/platform/packages/shared/kbn-cell-actions @elastic/security-threat-hunting-explore src/platform/packages/shared/kbn-config @elastic/kibana-core +src/platform/packages/shared/kbn-config-schema @elastic/kibana-core src/platform/packages/shared/kbn-content-management-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-custom-icons @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-data-view-utils @elastic/kibana-data-discovery diff --git a/package.json b/package.json index 174b89a05ce44..0f99d4e66d2fb 100644 --- a/package.json +++ b/package.json @@ -226,7 +226,7 @@ "@kbn/coloring": "link:packages/kbn-coloring", "@kbn/config": "link:src/platform/packages/shared/kbn-config", "@kbn/config-mocks": "link:src/platform/packages/private/kbn-config-mocks", - "@kbn/config-schema": "link:packages/kbn-config-schema", + "@kbn/config-schema": "link:src/platform/packages/shared/kbn-config-schema", "@kbn/console-plugin": "link:src/platform/plugins/shared/console", "@kbn/content-management-content-editor": "link:packages/content-management/content_editor", "@kbn/content-management-content-insights-public": "link:packages/content-management/content_insights/content_insights_public", diff --git a/packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts b/packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts index 3ee66109134ce..eb4269ebdc1ef 100644 --- a/packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts +++ b/packages/core/ui-settings/core-ui-settings-common/src/ui_settings.ts @@ -99,7 +99,7 @@ export interface UiSettingsParams { * Use schema options to specify limits on the value. For example: * `schema.number({ min: 0, max: 100 })` * - * More information about schema in https://github.com/elastic/kibana/blob/main/packages/kbn-config-schema/README.md + * More information about schema in https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-config-schema/README.md */ schema: Type; /** diff --git a/packages/kbn-config-schema/README.md b/src/platform/packages/shared/kbn-config-schema/README.md similarity index 100% rename from packages/kbn-config-schema/README.md rename to src/platform/packages/shared/kbn-config-schema/README.md diff --git a/packages/kbn-config-schema/index.ts b/src/platform/packages/shared/kbn-config-schema/index.ts similarity index 100% rename from packages/kbn-config-schema/index.ts rename to src/platform/packages/shared/kbn-config-schema/index.ts diff --git a/packages/kbn-config-schema/jest.config.js b/src/platform/packages/shared/kbn-config-schema/jest.config.js similarity index 83% rename from packages/kbn-config-schema/jest.config.js rename to src/platform/packages/shared/kbn-config-schema/jest.config.js index cf3b95d2d7b38..a96df8d746ddf 100644 --- a/packages/kbn-config-schema/jest.config.js +++ b/src/platform/packages/shared/kbn-config-schema/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-config-schema'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-config-schema'], }; diff --git a/packages/kbn-config-schema/kibana.jsonc b/src/platform/packages/shared/kbn-config-schema/kibana.jsonc similarity index 100% rename from packages/kbn-config-schema/kibana.jsonc rename to src/platform/packages/shared/kbn-config-schema/kibana.jsonc diff --git a/packages/kbn-config-schema/package.json b/src/platform/packages/shared/kbn-config-schema/package.json similarity index 100% rename from packages/kbn-config-schema/package.json rename to src/platform/packages/shared/kbn-config-schema/package.json diff --git a/packages/kbn-config-schema/src/byte_size_value/index.test.ts b/src/platform/packages/shared/kbn-config-schema/src/byte_size_value/index.test.ts similarity index 100% rename from packages/kbn-config-schema/src/byte_size_value/index.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/byte_size_value/index.test.ts diff --git a/packages/kbn-config-schema/src/byte_size_value/index.ts b/src/platform/packages/shared/kbn-config-schema/src/byte_size_value/index.ts similarity index 100% rename from packages/kbn-config-schema/src/byte_size_value/index.ts rename to src/platform/packages/shared/kbn-config-schema/src/byte_size_value/index.ts diff --git a/packages/kbn-config-schema/src/duration/index.ts b/src/platform/packages/shared/kbn-config-schema/src/duration/index.ts similarity index 100% rename from packages/kbn-config-schema/src/duration/index.ts rename to src/platform/packages/shared/kbn-config-schema/src/duration/index.ts diff --git a/packages/kbn-config-schema/src/errors/index.ts b/src/platform/packages/shared/kbn-config-schema/src/errors/index.ts similarity index 100% rename from packages/kbn-config-schema/src/errors/index.ts rename to src/platform/packages/shared/kbn-config-schema/src/errors/index.ts diff --git a/packages/kbn-config-schema/src/errors/schema_error.test.ts b/src/platform/packages/shared/kbn-config-schema/src/errors/schema_error.test.ts similarity index 100% rename from packages/kbn-config-schema/src/errors/schema_error.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/errors/schema_error.test.ts diff --git a/packages/kbn-config-schema/src/errors/schema_error.ts b/src/platform/packages/shared/kbn-config-schema/src/errors/schema_error.ts similarity index 100% rename from packages/kbn-config-schema/src/errors/schema_error.ts rename to src/platform/packages/shared/kbn-config-schema/src/errors/schema_error.ts diff --git a/packages/kbn-config-schema/src/errors/schema_type_error.ts b/src/platform/packages/shared/kbn-config-schema/src/errors/schema_type_error.ts similarity index 100% rename from packages/kbn-config-schema/src/errors/schema_type_error.ts rename to src/platform/packages/shared/kbn-config-schema/src/errors/schema_type_error.ts diff --git a/packages/kbn-config-schema/src/errors/schema_types_error.ts b/src/platform/packages/shared/kbn-config-schema/src/errors/schema_types_error.ts similarity index 100% rename from packages/kbn-config-schema/src/errors/schema_types_error.ts rename to src/platform/packages/shared/kbn-config-schema/src/errors/schema_types_error.ts diff --git a/packages/kbn-config-schema/src/errors/validation_error.ts b/src/platform/packages/shared/kbn-config-schema/src/errors/validation_error.ts similarity index 100% rename from packages/kbn-config-schema/src/errors/validation_error.ts rename to src/platform/packages/shared/kbn-config-schema/src/errors/validation_error.ts diff --git a/packages/kbn-config-schema/src/helpers/index.ts b/src/platform/packages/shared/kbn-config-schema/src/helpers/index.ts similarity index 100% rename from packages/kbn-config-schema/src/helpers/index.ts rename to src/platform/packages/shared/kbn-config-schema/src/helpers/index.ts diff --git a/packages/kbn-config-schema/src/helpers/offering_based_schema.test.ts b/src/platform/packages/shared/kbn-config-schema/src/helpers/offering_based_schema.test.ts similarity index 100% rename from packages/kbn-config-schema/src/helpers/offering_based_schema.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/helpers/offering_based_schema.test.ts diff --git a/packages/kbn-config-schema/src/helpers/offering_based_schema.ts b/src/platform/packages/shared/kbn-config-schema/src/helpers/offering_based_schema.ts similarity index 100% rename from packages/kbn-config-schema/src/helpers/offering_based_schema.ts rename to src/platform/packages/shared/kbn-config-schema/src/helpers/offering_based_schema.ts diff --git a/packages/kbn-config-schema/src/internals/index.ts b/src/platform/packages/shared/kbn-config-schema/src/internals/index.ts similarity index 100% rename from packages/kbn-config-schema/src/internals/index.ts rename to src/platform/packages/shared/kbn-config-schema/src/internals/index.ts diff --git a/packages/kbn-config-schema/src/oas_meta_fields.ts b/src/platform/packages/shared/kbn-config-schema/src/oas_meta_fields.ts similarity index 100% rename from packages/kbn-config-schema/src/oas_meta_fields.ts rename to src/platform/packages/shared/kbn-config-schema/src/oas_meta_fields.ts diff --git a/packages/kbn-config-schema/src/references/context_reference.ts b/src/platform/packages/shared/kbn-config-schema/src/references/context_reference.ts similarity index 100% rename from packages/kbn-config-schema/src/references/context_reference.ts rename to src/platform/packages/shared/kbn-config-schema/src/references/context_reference.ts diff --git a/packages/kbn-config-schema/src/references/index.ts b/src/platform/packages/shared/kbn-config-schema/src/references/index.ts similarity index 100% rename from packages/kbn-config-schema/src/references/index.ts rename to src/platform/packages/shared/kbn-config-schema/src/references/index.ts diff --git a/packages/kbn-config-schema/src/references/reference.test.ts b/src/platform/packages/shared/kbn-config-schema/src/references/reference.test.ts similarity index 100% rename from packages/kbn-config-schema/src/references/reference.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/references/reference.test.ts diff --git a/packages/kbn-config-schema/src/references/reference.ts b/src/platform/packages/shared/kbn-config-schema/src/references/reference.ts similarity index 100% rename from packages/kbn-config-schema/src/references/reference.ts rename to src/platform/packages/shared/kbn-config-schema/src/references/reference.ts diff --git a/packages/kbn-config-schema/src/references/sibling_reference.ts b/src/platform/packages/shared/kbn-config-schema/src/references/sibling_reference.ts similarity index 100% rename from packages/kbn-config-schema/src/references/sibling_reference.ts rename to src/platform/packages/shared/kbn-config-schema/src/references/sibling_reference.ts diff --git a/packages/kbn-config-schema/src/typeguards/index.ts b/src/platform/packages/shared/kbn-config-schema/src/typeguards/index.ts similarity index 100% rename from packages/kbn-config-schema/src/typeguards/index.ts rename to src/platform/packages/shared/kbn-config-schema/src/typeguards/index.ts diff --git a/packages/kbn-config-schema/src/typeguards/is_config_schema.test.ts b/src/platform/packages/shared/kbn-config-schema/src/typeguards/is_config_schema.test.ts similarity index 100% rename from packages/kbn-config-schema/src/typeguards/is_config_schema.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/typeguards/is_config_schema.test.ts diff --git a/packages/kbn-config-schema/src/typeguards/is_config_schema.ts b/src/platform/packages/shared/kbn-config-schema/src/typeguards/is_config_schema.ts similarity index 100% rename from packages/kbn-config-schema/src/typeguards/is_config_schema.ts rename to src/platform/packages/shared/kbn-config-schema/src/typeguards/is_config_schema.ts diff --git a/packages/kbn-config-schema/src/types/any_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/any_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/any_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/any_type.test.ts diff --git a/packages/kbn-config-schema/src/types/any_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/any_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/any_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/any_type.ts diff --git a/packages/kbn-config-schema/src/types/array_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/array_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/array_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/array_type.test.ts diff --git a/packages/kbn-config-schema/src/types/array_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/array_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/array_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/array_type.ts diff --git a/packages/kbn-config-schema/src/types/boolean_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/boolean_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/boolean_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/boolean_type.test.ts diff --git a/packages/kbn-config-schema/src/types/boolean_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/boolean_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/boolean_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/boolean_type.ts diff --git a/packages/kbn-config-schema/src/types/buffer_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/buffer_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/buffer_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/buffer_type.test.ts diff --git a/packages/kbn-config-schema/src/types/buffer_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/buffer_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/buffer_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/buffer_type.ts diff --git a/packages/kbn-config-schema/src/types/byte_size_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/byte_size_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/byte_size_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/byte_size_type.test.ts diff --git a/packages/kbn-config-schema/src/types/byte_size_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/byte_size_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/byte_size_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/byte_size_type.ts diff --git a/packages/kbn-config-schema/src/types/conditional_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/conditional_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/conditional_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/conditional_type.test.ts diff --git a/packages/kbn-config-schema/src/types/conditional_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/conditional_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/conditional_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/conditional_type.ts diff --git a/packages/kbn-config-schema/src/types/duration_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/duration_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/duration_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/duration_type.test.ts diff --git a/packages/kbn-config-schema/src/types/duration_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/duration_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/duration_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/duration_type.ts diff --git a/packages/kbn-config-schema/src/types/index.ts b/src/platform/packages/shared/kbn-config-schema/src/types/index.ts similarity index 100% rename from packages/kbn-config-schema/src/types/index.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/index.ts diff --git a/packages/kbn-config-schema/src/types/intersection_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/intersection_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/intersection_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/intersection_type.test.ts diff --git a/packages/kbn-config-schema/src/types/intersection_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/intersection_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/intersection_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/intersection_type.ts diff --git a/packages/kbn-config-schema/src/types/ip_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/ip_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/ip_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/ip_type.test.ts diff --git a/packages/kbn-config-schema/src/types/ip_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/ip_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/ip_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/ip_type.ts diff --git a/packages/kbn-config-schema/src/types/lazy.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/lazy.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/lazy.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/lazy.test.ts diff --git a/packages/kbn-config-schema/src/types/lazy.ts b/src/platform/packages/shared/kbn-config-schema/src/types/lazy.ts similarity index 100% rename from packages/kbn-config-schema/src/types/lazy.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/lazy.ts diff --git a/packages/kbn-config-schema/src/types/literal_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/literal_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/literal_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/literal_type.test.ts diff --git a/packages/kbn-config-schema/src/types/literal_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/literal_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/literal_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/literal_type.ts diff --git a/packages/kbn-config-schema/src/types/map_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/map_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/map_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/map_type.test.ts diff --git a/packages/kbn-config-schema/src/types/map_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/map_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/map_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/map_type.ts diff --git a/packages/kbn-config-schema/src/types/maybe_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/maybe_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/maybe_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/maybe_type.test.ts diff --git a/packages/kbn-config-schema/src/types/maybe_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/maybe_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/maybe_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/maybe_type.ts diff --git a/packages/kbn-config-schema/src/types/never_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/never_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/never_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/never_type.test.ts diff --git a/packages/kbn-config-schema/src/types/never_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/never_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/never_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/never_type.ts diff --git a/packages/kbn-config-schema/src/types/nullable_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/nullable_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/nullable_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/nullable_type.test.ts diff --git a/packages/kbn-config-schema/src/types/number_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/number_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/number_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/number_type.test.ts diff --git a/packages/kbn-config-schema/src/types/number_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/number_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/number_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/number_type.ts diff --git a/packages/kbn-config-schema/src/types/object_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/object_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/object_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/object_type.test.ts diff --git a/packages/kbn-config-schema/src/types/object_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/object_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/object_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/object_type.ts diff --git a/packages/kbn-config-schema/src/types/record_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/record_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/record_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/record_type.test.ts diff --git a/packages/kbn-config-schema/src/types/record_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/record_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/record_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/record_type.ts diff --git a/packages/kbn-config-schema/src/types/stream_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/stream_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/stream_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/stream_type.test.ts diff --git a/packages/kbn-config-schema/src/types/stream_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/stream_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/stream_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/stream_type.ts diff --git a/packages/kbn-config-schema/src/types/string_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/string_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/string_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/string_type.test.ts diff --git a/packages/kbn-config-schema/src/types/string_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/string_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/string_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/string_type.ts diff --git a/packages/kbn-config-schema/src/types/type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/type.test.ts diff --git a/packages/kbn-config-schema/src/types/type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/type.ts diff --git a/packages/kbn-config-schema/src/types/union_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/union_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/union_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/union_type.test.ts diff --git a/packages/kbn-config-schema/src/types/union_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/union_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/union_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/union_type.ts diff --git a/packages/kbn-config-schema/src/types/uri_type.test.ts b/src/platform/packages/shared/kbn-config-schema/src/types/uri_type.test.ts similarity index 100% rename from packages/kbn-config-schema/src/types/uri_type.test.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/uri_type.test.ts diff --git a/packages/kbn-config-schema/src/types/uri_type.ts b/src/platform/packages/shared/kbn-config-schema/src/types/uri_type.ts similarity index 100% rename from packages/kbn-config-schema/src/types/uri_type.ts rename to src/platform/packages/shared/kbn-config-schema/src/types/uri_type.ts diff --git a/packages/kbn-config-schema/tsconfig.json b/src/platform/packages/shared/kbn-config-schema/tsconfig.json similarity index 80% rename from packages/kbn-config-schema/tsconfig.json rename to src/platform/packages/shared/kbn-config-schema/tsconfig.json index ffb5b09f86995..df789e68a009b 100644 --- a/packages/kbn-config-schema/tsconfig.json +++ b/src/platform/packages/shared/kbn-config-schema/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "stripInternal": true, diff --git a/packages/kbn-config-schema/types/joi.d.ts b/src/platform/packages/shared/kbn-config-schema/types/joi.d.ts similarity index 100% rename from packages/kbn-config-schema/types/joi.d.ts rename to src/platform/packages/shared/kbn-config-schema/types/joi.d.ts diff --git a/tsconfig.base.json b/tsconfig.base.json index 1b985fe1285f3..287944fb98219 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -194,8 +194,8 @@ "@kbn/config/*": ["src/platform/packages/shared/kbn-config/*"], "@kbn/config-mocks": ["src/platform/packages/private/kbn-config-mocks"], "@kbn/config-mocks/*": ["src/platform/packages/private/kbn-config-mocks/*"], - "@kbn/config-schema": ["packages/kbn-config-schema"], - "@kbn/config-schema/*": ["packages/kbn-config-schema/*"], + "@kbn/config-schema": ["src/platform/packages/shared/kbn-config-schema"], + "@kbn/config-schema/*": ["src/platform/packages/shared/kbn-config-schema/*"], "@kbn/console-plugin": ["src/platform/plugins/shared/console"], "@kbn/console-plugin/*": ["src/platform/plugins/shared/console/*"], "@kbn/content-management-content-editor": ["packages/content-management/content_editor"], diff --git a/x-pack/solutions/search/plugins/enterprise_search/SERVER.md b/x-pack/solutions/search/plugins/enterprise_search/SERVER.md index 593c18488a163..3bebf20bb685d 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/SERVER.md +++ b/x-pack/solutions/search/plugins/enterprise_search/SERVER.md @@ -36,7 +36,7 @@ Be careful when sharing functions across multiple routes: if you're adding many ### Types and validation -Endpoints validate their inputs using [@kbn/config-schema](/packages/kbn-config-schema/), and we share TypeScript types between the frontend and backend in [common/types](common/types) to facilitate consistent API expectation. A few hints: +Endpoints validate their inputs using [@kbn/config-schema](/src/platform/packages/shared/kbn-config-schema/), and we share TypeScript types between the frontend and backend in [common/types](common/types) to facilitate consistent API expectation. A few hints: - schema.maybe(...) allows the `...` to be optional/`undefined`. - schema.nullable(...) allows the `...` to be `null`, which is distinct from making it optional or allowing `undefined`. diff --git a/x-pack/solutions/search/plugins/enterprise_search/server/lib/route_config_helpers.ts b/x-pack/solutions/search/plugins/enterprise_search/server/lib/route_config_helpers.ts index d2c08fa0c4462..cf78420af7f10 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/server/lib/route_config_helpers.ts +++ b/x-pack/solutions/search/plugins/enterprise_search/server/lib/route_config_helpers.ts @@ -33,7 +33,7 @@ interface ConfigWithoutBodyOptions * is enabled to to use `body: schema.buffer()`. * * @see https://github.com/elastic/kibana/blob/main/docs/development/core/server/kibana-plugin-core-server.routeconfigoptionsbody.md - * @see https://github.com/elastic/kibana/blob/main/packages/kbn-config-schema/README.md#schemabuffer + * @see https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-config-schema/README.md#schemabuffer * * Example: * router.put({ diff --git a/yarn.lock b/yarn.lock index 9696c26502fd5..7069deed123cf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4201,7 +4201,7 @@ version "0.0.0" uid "" -"@kbn/config-schema@link:packages/kbn-config-schema": +"@kbn/config-schema@link:src/platform/packages/shared/kbn-config-schema": version "0.0.0" uid "" From c042bd363ed9957c01a93a817cbe5859ed884954 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:05:14 +0100 Subject: [PATCH 013/167] Relocating module `@kbn/core-base-common-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/base/common-internal}/README.md | 0 .../core/packages/base/common-internal}/index.ts | 0 .../core/packages/base/common-internal}/jest.config.js | 4 ++-- .../core/packages/base/common-internal}/kibana.jsonc | 0 .../core/packages/base/common-internal}/package.json | 0 .../core/packages/base/common-internal}/src/core.ts | 0 .../core/packages/base/common-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/base/core-base-common-internal => src/core/packages/base/common-internal}/README.md (100%) rename {packages/core/base/core-base-common-internal => src/core/packages/base/common-internal}/index.ts (100%) rename {packages/core/base/core-base-common-internal => src/core/packages/base/common-internal}/jest.config.js (84%) rename {packages/core/base/core-base-common-internal => src/core/packages/base/common-internal}/kibana.jsonc (100%) rename {packages/core/base/core-base-common-internal => src/core/packages/base/common-internal}/package.json (100%) rename {packages/core/base/core-base-common-internal => src/core/packages/base/common-internal}/src/core.ts (100%) rename {packages/core/base/core-base-common-internal => src/core/packages/base/common-internal}/tsconfig.json (79%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5eb48490bf04b..f07b2b2305d0a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -57,7 +57,6 @@ packages/core/analytics/core-analytics-server-mocks @elastic/kibana-core packages/core/application/core-application-browser-mocks @elastic/kibana-core packages/core/apps/core-apps-browser-mocks @elastic/kibana-core packages/core/base/core-base-browser-mocks @elastic/kibana-core -packages/core/base/core-base-common-internal @elastic/kibana-core packages/core/base/core-base-server-internal @elastic/kibana-core packages/core/base/core-base-server-mocks @elastic/kibana-core packages/core/capabilities/core-capabilities-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/apps/browser-internal @elastic/kibana-core src/core/packages/apps/server-internal @elastic/kibana-core src/core/packages/base/browser-internal @elastic/kibana-core src/core/packages/base/common @elastic/kibana-core +src/core/packages/base/common-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 0f99d4e66d2fb..8c6221c86ad58 100644 --- a/package.json +++ b/package.json @@ -257,7 +257,7 @@ "@kbn/core-apps-server-internal": "link:src/core/packages/apps/server-internal", "@kbn/core-base-browser-internal": "link:src/core/packages/base/browser-internal", "@kbn/core-base-common": "link:src/core/packages/base/common", - "@kbn/core-base-common-internal": "link:packages/core/base/core-base-common-internal", + "@kbn/core-base-common-internal": "link:src/core/packages/base/common-internal", "@kbn/core-base-server-internal": "link:packages/core/base/core-base-server-internal", "@kbn/core-capabilities-browser-internal": "link:packages/core/capabilities/core-capabilities-browser-internal", "@kbn/core-capabilities-common": "link:packages/core/capabilities/core-capabilities-common", diff --git a/packages/core/base/core-base-common-internal/README.md b/src/core/packages/base/common-internal/README.md similarity index 100% rename from packages/core/base/core-base-common-internal/README.md rename to src/core/packages/base/common-internal/README.md diff --git a/packages/core/base/core-base-common-internal/index.ts b/src/core/packages/base/common-internal/index.ts similarity index 100% rename from packages/core/base/core-base-common-internal/index.ts rename to src/core/packages/base/common-internal/index.ts diff --git a/packages/core/base/core-base-common-internal/jest.config.js b/src/core/packages/base/common-internal/jest.config.js similarity index 84% rename from packages/core/base/core-base-common-internal/jest.config.js rename to src/core/packages/base/common-internal/jest.config.js index 3c0666e8aadb6..a941ae715bdc7 100644 --- a/packages/core/base/core-base-common-internal/jest.config.js +++ b/src/core/packages/base/common-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/base/core-base-common-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/base/common-internal'], }; diff --git a/packages/core/base/core-base-common-internal/kibana.jsonc b/src/core/packages/base/common-internal/kibana.jsonc similarity index 100% rename from packages/core/base/core-base-common-internal/kibana.jsonc rename to src/core/packages/base/common-internal/kibana.jsonc diff --git a/packages/core/base/core-base-common-internal/package.json b/src/core/packages/base/common-internal/package.json similarity index 100% rename from packages/core/base/core-base-common-internal/package.json rename to src/core/packages/base/common-internal/package.json diff --git a/packages/core/base/core-base-common-internal/src/core.ts b/src/core/packages/base/common-internal/src/core.ts similarity index 100% rename from packages/core/base/core-base-common-internal/src/core.ts rename to src/core/packages/base/common-internal/src/core.ts diff --git a/packages/core/base/core-base-common-internal/tsconfig.json b/src/core/packages/base/common-internal/tsconfig.json similarity index 79% rename from packages/core/base/core-base-common-internal/tsconfig.json rename to src/core/packages/base/common-internal/tsconfig.json index 0f16c2b9311d8..14019fa2b02b7 100644 --- a/packages/core/base/core-base-common-internal/tsconfig.json +++ b/src/core/packages/base/common-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 287944fb98219..65d8bcc45db8a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -266,8 +266,8 @@ "@kbn/core-base-browser-mocks/*": ["packages/core/base/core-base-browser-mocks/*"], "@kbn/core-base-common": ["src/core/packages/base/common"], "@kbn/core-base-common/*": ["src/core/packages/base/common/*"], - "@kbn/core-base-common-internal": ["packages/core/base/core-base-common-internal"], - "@kbn/core-base-common-internal/*": ["packages/core/base/core-base-common-internal/*"], + "@kbn/core-base-common-internal": ["src/core/packages/base/common-internal"], + "@kbn/core-base-common-internal/*": ["src/core/packages/base/common-internal/*"], "@kbn/core-base-server-internal": ["packages/core/base/core-base-server-internal"], "@kbn/core-base-server-internal/*": ["packages/core/base/core-base-server-internal/*"], "@kbn/core-base-server-mocks": ["packages/core/base/core-base-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 7069deed123cf..3fde42e1416f6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4341,7 +4341,7 @@ version "0.0.0" uid "" -"@kbn/core-base-common-internal@link:packages/core/base/core-base-common-internal": +"@kbn/core-base-common-internal@link:src/core/packages/base/common-internal": version "0.0.0" uid "" From 0850e42974bb1f6ba7c071d46fc92a4c77f00c31 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:06:07 +0100 Subject: [PATCH 014/167] Relocating module `@kbn/core-base-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/base/server-internal}/README.md | 0 .../core/packages/base/server-internal}/index.ts | 0 .../core/packages/base/server-internal}/jest.config.js | 4 ++-- .../core/packages/base/server-internal}/kibana.jsonc | 0 .../core/packages/base/server-internal}/package.json | 0 .../core/packages/base/server-internal}/src/config.ts | 0 .../core/packages/base/server-internal}/src/core_context.ts | 0 .../core/packages/base/server-internal}/src/errors.ts | 0 .../core/packages/base/server-internal}/src/regexp.ts | 0 .../core/packages/base/server-internal}/src/services.ts | 0 .../core/packages/base/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/base/core-base-server-internal => src/core/packages/base/server-internal}/README.md (100%) rename {packages/core/base/core-base-server-internal => src/core/packages/base/server-internal}/index.ts (100%) rename {packages/core/base/core-base-server-internal => src/core/packages/base/server-internal}/jest.config.js (84%) rename {packages/core/base/core-base-server-internal => src/core/packages/base/server-internal}/kibana.jsonc (100%) rename {packages/core/base/core-base-server-internal => src/core/packages/base/server-internal}/package.json (100%) rename {packages/core/base/core-base-server-internal => src/core/packages/base/server-internal}/src/config.ts (100%) rename {packages/core/base/core-base-server-internal => src/core/packages/base/server-internal}/src/core_context.ts (100%) rename {packages/core/base/core-base-server-internal => src/core/packages/base/server-internal}/src/errors.ts (100%) rename {packages/core/base/core-base-server-internal => src/core/packages/base/server-internal}/src/regexp.ts (100%) rename {packages/core/base/core-base-server-internal => src/core/packages/base/server-internal}/src/services.ts (100%) rename {packages/core/base/core-base-server-internal => src/core/packages/base/server-internal}/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f07b2b2305d0a..7c700822c4636 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -57,7 +57,6 @@ packages/core/analytics/core-analytics-server-mocks @elastic/kibana-core packages/core/application/core-application-browser-mocks @elastic/kibana-core packages/core/apps/core-apps-browser-mocks @elastic/kibana-core packages/core/base/core-base-browser-mocks @elastic/kibana-core -packages/core/base/core-base-server-internal @elastic/kibana-core packages/core/base/core-base-server-mocks @elastic/kibana-core packages/core/capabilities/core-capabilities-browser-internal @elastic/kibana-core packages/core/capabilities/core-capabilities-browser-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/apps/server-internal @elastic/kibana-core src/core/packages/base/browser-internal @elastic/kibana-core src/core/packages/base/common @elastic/kibana-core src/core/packages/base/common-internal @elastic/kibana-core +src/core/packages/base/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 8c6221c86ad58..956382c82f674 100644 --- a/package.json +++ b/package.json @@ -258,7 +258,7 @@ "@kbn/core-base-browser-internal": "link:src/core/packages/base/browser-internal", "@kbn/core-base-common": "link:src/core/packages/base/common", "@kbn/core-base-common-internal": "link:src/core/packages/base/common-internal", - "@kbn/core-base-server-internal": "link:packages/core/base/core-base-server-internal", + "@kbn/core-base-server-internal": "link:src/core/packages/base/server-internal", "@kbn/core-capabilities-browser-internal": "link:packages/core/capabilities/core-capabilities-browser-internal", "@kbn/core-capabilities-common": "link:packages/core/capabilities/core-capabilities-common", "@kbn/core-capabilities-server": "link:packages/core/capabilities/core-capabilities-server", diff --git a/packages/core/base/core-base-server-internal/README.md b/src/core/packages/base/server-internal/README.md similarity index 100% rename from packages/core/base/core-base-server-internal/README.md rename to src/core/packages/base/server-internal/README.md diff --git a/packages/core/base/core-base-server-internal/index.ts b/src/core/packages/base/server-internal/index.ts similarity index 100% rename from packages/core/base/core-base-server-internal/index.ts rename to src/core/packages/base/server-internal/index.ts diff --git a/packages/core/base/core-base-server-internal/jest.config.js b/src/core/packages/base/server-internal/jest.config.js similarity index 84% rename from packages/core/base/core-base-server-internal/jest.config.js rename to src/core/packages/base/server-internal/jest.config.js index 916990ebba57f..ca22374b8703c 100644 --- a/packages/core/base/core-base-server-internal/jest.config.js +++ b/src/core/packages/base/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/base/core-base-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/base/server-internal'], }; diff --git a/packages/core/base/core-base-server-internal/kibana.jsonc b/src/core/packages/base/server-internal/kibana.jsonc similarity index 100% rename from packages/core/base/core-base-server-internal/kibana.jsonc rename to src/core/packages/base/server-internal/kibana.jsonc diff --git a/packages/core/base/core-base-server-internal/package.json b/src/core/packages/base/server-internal/package.json similarity index 100% rename from packages/core/base/core-base-server-internal/package.json rename to src/core/packages/base/server-internal/package.json diff --git a/packages/core/base/core-base-server-internal/src/config.ts b/src/core/packages/base/server-internal/src/config.ts similarity index 100% rename from packages/core/base/core-base-server-internal/src/config.ts rename to src/core/packages/base/server-internal/src/config.ts diff --git a/packages/core/base/core-base-server-internal/src/core_context.ts b/src/core/packages/base/server-internal/src/core_context.ts similarity index 100% rename from packages/core/base/core-base-server-internal/src/core_context.ts rename to src/core/packages/base/server-internal/src/core_context.ts diff --git a/packages/core/base/core-base-server-internal/src/errors.ts b/src/core/packages/base/server-internal/src/errors.ts similarity index 100% rename from packages/core/base/core-base-server-internal/src/errors.ts rename to src/core/packages/base/server-internal/src/errors.ts diff --git a/packages/core/base/core-base-server-internal/src/regexp.ts b/src/core/packages/base/server-internal/src/regexp.ts similarity index 100% rename from packages/core/base/core-base-server-internal/src/regexp.ts rename to src/core/packages/base/server-internal/src/regexp.ts diff --git a/packages/core/base/core-base-server-internal/src/services.ts b/src/core/packages/base/server-internal/src/services.ts similarity index 100% rename from packages/core/base/core-base-server-internal/src/services.ts rename to src/core/packages/base/server-internal/src/services.ts diff --git a/packages/core/base/core-base-server-internal/tsconfig.json b/src/core/packages/base/server-internal/tsconfig.json similarity index 87% rename from packages/core/base/core-base-server-internal/tsconfig.json rename to src/core/packages/base/server-internal/tsconfig.json index fa2b8ec8c8cb1..0ff3702d0a6dd 100644 --- a/packages/core/base/core-base-server-internal/tsconfig.json +++ b/src/core/packages/base/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 65d8bcc45db8a..bcdd7edfcf54a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -268,8 +268,8 @@ "@kbn/core-base-common/*": ["src/core/packages/base/common/*"], "@kbn/core-base-common-internal": ["src/core/packages/base/common-internal"], "@kbn/core-base-common-internal/*": ["src/core/packages/base/common-internal/*"], - "@kbn/core-base-server-internal": ["packages/core/base/core-base-server-internal"], - "@kbn/core-base-server-internal/*": ["packages/core/base/core-base-server-internal/*"], + "@kbn/core-base-server-internal": ["src/core/packages/base/server-internal"], + "@kbn/core-base-server-internal/*": ["src/core/packages/base/server-internal/*"], "@kbn/core-base-server-mocks": ["packages/core/base/core-base-server-mocks"], "@kbn/core-base-server-mocks/*": ["packages/core/base/core-base-server-mocks/*"], "@kbn/core-capabilities-browser-internal": ["packages/core/capabilities/core-capabilities-browser-internal"], diff --git a/yarn.lock b/yarn.lock index 3fde42e1416f6..3c94a452eddb4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4349,7 +4349,7 @@ version "0.0.0" uid "" -"@kbn/core-base-server-internal@link:packages/core/base/core-base-server-internal": +"@kbn/core-base-server-internal@link:src/core/packages/base/server-internal": version "0.0.0" uid "" From d730c9d4aff1d478b08252c244eb9393f76308ae Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:06:58 +0100 Subject: [PATCH 015/167] Relocating module `@kbn/core-capabilities-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/capabilities/browser-internal}/README.md | 0 .../core/packages/capabilities/browser-internal}/index.ts | 0 .../packages/capabilities/browser-internal}/jest.config.js | 4 ++-- .../core/packages/capabilities/browser-internal}/kibana.jsonc | 0 .../core/packages/capabilities/browser-internal}/package.json | 0 .../browser-internal}/src/capabilities_service.test.ts | 0 .../browser-internal}/src/capabilities_service.tsx | 0 .../packages/capabilities/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/capabilities/core-capabilities-browser-internal => src/core/packages/capabilities/browser-internal}/README.md (100%) rename {packages/core/capabilities/core-capabilities-browser-internal => src/core/packages/capabilities/browser-internal}/index.ts (100%) rename {packages/core/capabilities/core-capabilities-browser-internal => src/core/packages/capabilities/browser-internal}/jest.config.js (82%) rename {packages/core/capabilities/core-capabilities-browser-internal => src/core/packages/capabilities/browser-internal}/kibana.jsonc (100%) rename {packages/core/capabilities/core-capabilities-browser-internal => src/core/packages/capabilities/browser-internal}/package.json (100%) rename {packages/core/capabilities/core-capabilities-browser-internal => src/core/packages/capabilities/browser-internal}/src/capabilities_service.test.ts (100%) rename {packages/core/capabilities/core-capabilities-browser-internal => src/core/packages/capabilities/browser-internal}/src/capabilities_service.tsx (100%) rename {packages/core/capabilities/core-capabilities-browser-internal => src/core/packages/capabilities/browser-internal}/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7c700822c4636..401095ab188b0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -58,7 +58,6 @@ packages/core/application/core-application-browser-mocks @elastic/kibana-core packages/core/apps/core-apps-browser-mocks @elastic/kibana-core packages/core/base/core-base-browser-mocks @elastic/kibana-core packages/core/base/core-base-server-mocks @elastic/kibana-core -packages/core/capabilities/core-capabilities-browser-internal @elastic/kibana-core packages/core/capabilities/core-capabilities-browser-mocks @elastic/kibana-core packages/core/capabilities/core-capabilities-common @elastic/kibana-core packages/core/capabilities/core-capabilities-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/base/browser-internal @elastic/kibana-core src/core/packages/base/common @elastic/kibana-core src/core/packages/base/common-internal @elastic/kibana-core src/core/packages/base/server-internal @elastic/kibana-core +src/core/packages/capabilities/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 956382c82f674..bb7730f12aacd 100644 --- a/package.json +++ b/package.json @@ -259,7 +259,7 @@ "@kbn/core-base-common": "link:src/core/packages/base/common", "@kbn/core-base-common-internal": "link:src/core/packages/base/common-internal", "@kbn/core-base-server-internal": "link:src/core/packages/base/server-internal", - "@kbn/core-capabilities-browser-internal": "link:packages/core/capabilities/core-capabilities-browser-internal", + "@kbn/core-capabilities-browser-internal": "link:src/core/packages/capabilities/browser-internal", "@kbn/core-capabilities-common": "link:packages/core/capabilities/core-capabilities-common", "@kbn/core-capabilities-server": "link:packages/core/capabilities/core-capabilities-server", "@kbn/core-capabilities-server-internal": "link:packages/core/capabilities/core-capabilities-server-internal", diff --git a/packages/core/capabilities/core-capabilities-browser-internal/README.md b/src/core/packages/capabilities/browser-internal/README.md similarity index 100% rename from packages/core/capabilities/core-capabilities-browser-internal/README.md rename to src/core/packages/capabilities/browser-internal/README.md diff --git a/packages/core/capabilities/core-capabilities-browser-internal/index.ts b/src/core/packages/capabilities/browser-internal/index.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-browser-internal/index.ts rename to src/core/packages/capabilities/browser-internal/index.ts diff --git a/packages/core/capabilities/core-capabilities-browser-internal/jest.config.js b/src/core/packages/capabilities/browser-internal/jest.config.js similarity index 82% rename from packages/core/capabilities/core-capabilities-browser-internal/jest.config.js rename to src/core/packages/capabilities/browser-internal/jest.config.js index 48851c9662315..4c9c93f190143 100644 --- a/packages/core/capabilities/core-capabilities-browser-internal/jest.config.js +++ b/src/core/packages/capabilities/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/capabilities/core-capabilities-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/capabilities/browser-internal'], }; diff --git a/packages/core/capabilities/core-capabilities-browser-internal/kibana.jsonc b/src/core/packages/capabilities/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/capabilities/core-capabilities-browser-internal/kibana.jsonc rename to src/core/packages/capabilities/browser-internal/kibana.jsonc diff --git a/packages/core/capabilities/core-capabilities-browser-internal/package.json b/src/core/packages/capabilities/browser-internal/package.json similarity index 100% rename from packages/core/capabilities/core-capabilities-browser-internal/package.json rename to src/core/packages/capabilities/browser-internal/package.json diff --git a/packages/core/capabilities/core-capabilities-browser-internal/src/capabilities_service.test.ts b/src/core/packages/capabilities/browser-internal/src/capabilities_service.test.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-browser-internal/src/capabilities_service.test.ts rename to src/core/packages/capabilities/browser-internal/src/capabilities_service.test.ts diff --git a/packages/core/capabilities/core-capabilities-browser-internal/src/capabilities_service.tsx b/src/core/packages/capabilities/browser-internal/src/capabilities_service.tsx similarity index 100% rename from packages/core/capabilities/core-capabilities-browser-internal/src/capabilities_service.tsx rename to src/core/packages/capabilities/browser-internal/src/capabilities_service.tsx diff --git a/packages/core/capabilities/core-capabilities-browser-internal/tsconfig.json b/src/core/packages/capabilities/browser-internal/tsconfig.json similarity index 88% rename from packages/core/capabilities/core-capabilities-browser-internal/tsconfig.json rename to src/core/packages/capabilities/browser-internal/tsconfig.json index ca9379c024865..e63caab76c3df 100644 --- a/packages/core/capabilities/core-capabilities-browser-internal/tsconfig.json +++ b/src/core/packages/capabilities/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index bcdd7edfcf54a..be274697a3272 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -272,8 +272,8 @@ "@kbn/core-base-server-internal/*": ["src/core/packages/base/server-internal/*"], "@kbn/core-base-server-mocks": ["packages/core/base/core-base-server-mocks"], "@kbn/core-base-server-mocks/*": ["packages/core/base/core-base-server-mocks/*"], - "@kbn/core-capabilities-browser-internal": ["packages/core/capabilities/core-capabilities-browser-internal"], - "@kbn/core-capabilities-browser-internal/*": ["packages/core/capabilities/core-capabilities-browser-internal/*"], + "@kbn/core-capabilities-browser-internal": ["src/core/packages/capabilities/browser-internal"], + "@kbn/core-capabilities-browser-internal/*": ["src/core/packages/capabilities/browser-internal/*"], "@kbn/core-capabilities-browser-mocks": ["packages/core/capabilities/core-capabilities-browser-mocks"], "@kbn/core-capabilities-browser-mocks/*": ["packages/core/capabilities/core-capabilities-browser-mocks/*"], "@kbn/core-capabilities-common": ["packages/core/capabilities/core-capabilities-common"], diff --git a/yarn.lock b/yarn.lock index 3c94a452eddb4..eebefc3ce466e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4357,7 +4357,7 @@ version "0.0.0" uid "" -"@kbn/core-capabilities-browser-internal@link:packages/core/capabilities/core-capabilities-browser-internal": +"@kbn/core-capabilities-browser-internal@link:src/core/packages/capabilities/browser-internal": version "0.0.0" uid "" From 98962e300edec6641df9bb88fe416258fb20a2d2 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:07:54 +0100 Subject: [PATCH 016/167] Relocating module `@kbn/core-capabilities-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/capabilities/common}/README.md | 0 .../core/packages/capabilities/common}/index.ts | 0 .../core/packages/capabilities/common}/jest.config.js | 4 ++-- .../core/packages/capabilities/common}/kibana.jsonc | 0 .../core/packages/capabilities/common}/package.json | 0 .../core/packages/capabilities/common}/src/capabilities.ts | 0 .../core/packages/capabilities/common}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/capabilities/core-capabilities-common => src/core/packages/capabilities/common}/README.md (100%) rename {packages/core/capabilities/core-capabilities-common => src/core/packages/capabilities/common}/index.ts (100%) rename {packages/core/capabilities/core-capabilities-common => src/core/packages/capabilities/common}/jest.config.js (83%) rename {packages/core/capabilities/core-capabilities-common => src/core/packages/capabilities/common}/kibana.jsonc (100%) rename {packages/core/capabilities/core-capabilities-common => src/core/packages/capabilities/common}/package.json (100%) rename {packages/core/capabilities/core-capabilities-common => src/core/packages/capabilities/common}/src/capabilities.ts (100%) rename {packages/core/capabilities/core-capabilities-common => src/core/packages/capabilities/common}/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 401095ab188b0..555cb5bd298f4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -59,7 +59,6 @@ packages/core/apps/core-apps-browser-mocks @elastic/kibana-core packages/core/base/core-base-browser-mocks @elastic/kibana-core packages/core/base/core-base-server-mocks @elastic/kibana-core packages/core/capabilities/core-capabilities-browser-mocks @elastic/kibana-core -packages/core/capabilities/core-capabilities-common @elastic/kibana-core packages/core/capabilities/core-capabilities-server @elastic/kibana-core packages/core/capabilities/core-capabilities-server-internal @elastic/kibana-core packages/core/capabilities/core-capabilities-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/base/common @elastic/kibana-core src/core/packages/base/common-internal @elastic/kibana-core src/core/packages/base/server-internal @elastic/kibana-core src/core/packages/capabilities/browser-internal @elastic/kibana-core +src/core/packages/capabilities/common @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index bb7730f12aacd..49fb750ea68a8 100644 --- a/package.json +++ b/package.json @@ -260,7 +260,7 @@ "@kbn/core-base-common-internal": "link:src/core/packages/base/common-internal", "@kbn/core-base-server-internal": "link:src/core/packages/base/server-internal", "@kbn/core-capabilities-browser-internal": "link:src/core/packages/capabilities/browser-internal", - "@kbn/core-capabilities-common": "link:packages/core/capabilities/core-capabilities-common", + "@kbn/core-capabilities-common": "link:src/core/packages/capabilities/common", "@kbn/core-capabilities-server": "link:packages/core/capabilities/core-capabilities-server", "@kbn/core-capabilities-server-internal": "link:packages/core/capabilities/core-capabilities-server-internal", "@kbn/core-chrome-browser": "link:packages/core/chrome/core-chrome-browser", diff --git a/packages/core/capabilities/core-capabilities-common/README.md b/src/core/packages/capabilities/common/README.md similarity index 100% rename from packages/core/capabilities/core-capabilities-common/README.md rename to src/core/packages/capabilities/common/README.md diff --git a/packages/core/capabilities/core-capabilities-common/index.ts b/src/core/packages/capabilities/common/index.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-common/index.ts rename to src/core/packages/capabilities/common/index.ts diff --git a/packages/core/capabilities/core-capabilities-common/jest.config.js b/src/core/packages/capabilities/common/jest.config.js similarity index 83% rename from packages/core/capabilities/core-capabilities-common/jest.config.js rename to src/core/packages/capabilities/common/jest.config.js index b77a838daf989..0886a4b99521c 100644 --- a/packages/core/capabilities/core-capabilities-common/jest.config.js +++ b/src/core/packages/capabilities/common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/capabilities/core-capabilities-common'], + rootDir: '../../../../..', + roots: ['/src/core/packages/capabilities/common'], }; diff --git a/packages/core/capabilities/core-capabilities-common/kibana.jsonc b/src/core/packages/capabilities/common/kibana.jsonc similarity index 100% rename from packages/core/capabilities/core-capabilities-common/kibana.jsonc rename to src/core/packages/capabilities/common/kibana.jsonc diff --git a/packages/core/capabilities/core-capabilities-common/package.json b/src/core/packages/capabilities/common/package.json similarity index 100% rename from packages/core/capabilities/core-capabilities-common/package.json rename to src/core/packages/capabilities/common/package.json diff --git a/packages/core/capabilities/core-capabilities-common/src/capabilities.ts b/src/core/packages/capabilities/common/src/capabilities.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-common/src/capabilities.ts rename to src/core/packages/capabilities/common/src/capabilities.ts diff --git a/packages/core/capabilities/core-capabilities-common/tsconfig.json b/src/core/packages/capabilities/common/tsconfig.json similarity index 78% rename from packages/core/capabilities/core-capabilities-common/tsconfig.json rename to src/core/packages/capabilities/common/tsconfig.json index e7513f6481e89..131ff3e6bb433 100644 --- a/packages/core/capabilities/core-capabilities-common/tsconfig.json +++ b/src/core/packages/capabilities/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index be274697a3272..7a44838cc9289 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -276,8 +276,8 @@ "@kbn/core-capabilities-browser-internal/*": ["src/core/packages/capabilities/browser-internal/*"], "@kbn/core-capabilities-browser-mocks": ["packages/core/capabilities/core-capabilities-browser-mocks"], "@kbn/core-capabilities-browser-mocks/*": ["packages/core/capabilities/core-capabilities-browser-mocks/*"], - "@kbn/core-capabilities-common": ["packages/core/capabilities/core-capabilities-common"], - "@kbn/core-capabilities-common/*": ["packages/core/capabilities/core-capabilities-common/*"], + "@kbn/core-capabilities-common": ["src/core/packages/capabilities/common"], + "@kbn/core-capabilities-common/*": ["src/core/packages/capabilities/common/*"], "@kbn/core-capabilities-server": ["packages/core/capabilities/core-capabilities-server"], "@kbn/core-capabilities-server/*": ["packages/core/capabilities/core-capabilities-server/*"], "@kbn/core-capabilities-server-internal": ["packages/core/capabilities/core-capabilities-server-internal"], diff --git a/yarn.lock b/yarn.lock index eebefc3ce466e..4e6515f53da60 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4365,7 +4365,7 @@ version "0.0.0" uid "" -"@kbn/core-capabilities-common@link:packages/core/capabilities/core-capabilities-common": +"@kbn/core-capabilities-common@link:src/core/packages/capabilities/common": version "0.0.0" uid "" From d3791c58c5b69dae1b41de485215897849a8cf2c Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:08:49 +0100 Subject: [PATCH 017/167] Relocating module `@kbn/core-capabilities-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/capabilities/server}/README.md | 0 .../core/packages/capabilities/server}/index.ts | 0 .../core/packages/capabilities/server}/jest.config.js | 4 ++-- .../core/packages/capabilities/server}/kibana.jsonc | 0 .../core/packages/capabilities/server}/package.json | 0 .../core/packages/capabilities/server}/src/capabilities.ts | 0 .../core/packages/capabilities/server}/src/contracts.ts | 0 .../core/packages/capabilities/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/capabilities/core-capabilities-server => src/core/packages/capabilities/server}/README.md (100%) rename {packages/core/capabilities/core-capabilities-server => src/core/packages/capabilities/server}/index.ts (100%) rename {packages/core/capabilities/core-capabilities-server => src/core/packages/capabilities/server}/jest.config.js (83%) rename {packages/core/capabilities/core-capabilities-server => src/core/packages/capabilities/server}/kibana.jsonc (100%) rename {packages/core/capabilities/core-capabilities-server => src/core/packages/capabilities/server}/package.json (100%) rename {packages/core/capabilities/core-capabilities-server => src/core/packages/capabilities/server}/src/capabilities.ts (100%) rename {packages/core/capabilities/core-capabilities-server => src/core/packages/capabilities/server}/src/contracts.ts (100%) rename {packages/core/capabilities/core-capabilities-server => src/core/packages/capabilities/server}/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 555cb5bd298f4..3c5bb353dcf3a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -59,7 +59,6 @@ packages/core/apps/core-apps-browser-mocks @elastic/kibana-core packages/core/base/core-base-browser-mocks @elastic/kibana-core packages/core/base/core-base-server-mocks @elastic/kibana-core packages/core/capabilities/core-capabilities-browser-mocks @elastic/kibana-core -packages/core/capabilities/core-capabilities-server @elastic/kibana-core packages/core/capabilities/core-capabilities-server-internal @elastic/kibana-core packages/core/capabilities/core-capabilities-server-mocks @elastic/kibana-core packages/core/chrome/core-chrome-browser @elastic/appex-sharedux @@ -493,6 +492,7 @@ src/core/packages/base/common-internal @elastic/kibana-core src/core/packages/base/server-internal @elastic/kibana-core src/core/packages/capabilities/browser-internal @elastic/kibana-core src/core/packages/capabilities/common @elastic/kibana-core +src/core/packages/capabilities/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 49fb750ea68a8..6f25247d32223 100644 --- a/package.json +++ b/package.json @@ -261,7 +261,7 @@ "@kbn/core-base-server-internal": "link:src/core/packages/base/server-internal", "@kbn/core-capabilities-browser-internal": "link:src/core/packages/capabilities/browser-internal", "@kbn/core-capabilities-common": "link:src/core/packages/capabilities/common", - "@kbn/core-capabilities-server": "link:packages/core/capabilities/core-capabilities-server", + "@kbn/core-capabilities-server": "link:src/core/packages/capabilities/server", "@kbn/core-capabilities-server-internal": "link:packages/core/capabilities/core-capabilities-server-internal", "@kbn/core-chrome-browser": "link:packages/core/chrome/core-chrome-browser", "@kbn/core-chrome-browser-internal": "link:packages/core/chrome/core-chrome-browser-internal", diff --git a/packages/core/capabilities/core-capabilities-server/README.md b/src/core/packages/capabilities/server/README.md similarity index 100% rename from packages/core/capabilities/core-capabilities-server/README.md rename to src/core/packages/capabilities/server/README.md diff --git a/packages/core/capabilities/core-capabilities-server/index.ts b/src/core/packages/capabilities/server/index.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server/index.ts rename to src/core/packages/capabilities/server/index.ts diff --git a/packages/core/capabilities/core-capabilities-server/jest.config.js b/src/core/packages/capabilities/server/jest.config.js similarity index 83% rename from packages/core/capabilities/core-capabilities-server/jest.config.js rename to src/core/packages/capabilities/server/jest.config.js index 5f711b34aa83d..0f78f632e54b2 100644 --- a/packages/core/capabilities/core-capabilities-server/jest.config.js +++ b/src/core/packages/capabilities/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/capabilities/core-capabilities-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/capabilities/server'], }; diff --git a/packages/core/capabilities/core-capabilities-server/kibana.jsonc b/src/core/packages/capabilities/server/kibana.jsonc similarity index 100% rename from packages/core/capabilities/core-capabilities-server/kibana.jsonc rename to src/core/packages/capabilities/server/kibana.jsonc diff --git a/packages/core/capabilities/core-capabilities-server/package.json b/src/core/packages/capabilities/server/package.json similarity index 100% rename from packages/core/capabilities/core-capabilities-server/package.json rename to src/core/packages/capabilities/server/package.json diff --git a/packages/core/capabilities/core-capabilities-server/src/capabilities.ts b/src/core/packages/capabilities/server/src/capabilities.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server/src/capabilities.ts rename to src/core/packages/capabilities/server/src/capabilities.ts diff --git a/packages/core/capabilities/core-capabilities-server/src/contracts.ts b/src/core/packages/capabilities/server/src/contracts.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server/src/contracts.ts rename to src/core/packages/capabilities/server/src/contracts.ts diff --git a/packages/core/capabilities/core-capabilities-server/tsconfig.json b/src/core/packages/capabilities/server/tsconfig.json similarity index 85% rename from packages/core/capabilities/core-capabilities-server/tsconfig.json rename to src/core/packages/capabilities/server/tsconfig.json index 1bb52580bb4df..7f5d1a38e36ea 100644 --- a/packages/core/capabilities/core-capabilities-server/tsconfig.json +++ b/src/core/packages/capabilities/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 7a44838cc9289..b485cecb8e6a1 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -278,8 +278,8 @@ "@kbn/core-capabilities-browser-mocks/*": ["packages/core/capabilities/core-capabilities-browser-mocks/*"], "@kbn/core-capabilities-common": ["src/core/packages/capabilities/common"], "@kbn/core-capabilities-common/*": ["src/core/packages/capabilities/common/*"], - "@kbn/core-capabilities-server": ["packages/core/capabilities/core-capabilities-server"], - "@kbn/core-capabilities-server/*": ["packages/core/capabilities/core-capabilities-server/*"], + "@kbn/core-capabilities-server": ["src/core/packages/capabilities/server"], + "@kbn/core-capabilities-server/*": ["src/core/packages/capabilities/server/*"], "@kbn/core-capabilities-server-internal": ["packages/core/capabilities/core-capabilities-server-internal"], "@kbn/core-capabilities-server-internal/*": ["packages/core/capabilities/core-capabilities-server-internal/*"], "@kbn/core-capabilities-server-mocks": ["packages/core/capabilities/core-capabilities-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 4e6515f53da60..fd9e255b03700 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4377,7 +4377,7 @@ version "0.0.0" uid "" -"@kbn/core-capabilities-server@link:packages/core/capabilities/core-capabilities-server": +"@kbn/core-capabilities-server@link:src/core/packages/capabilities/server": version "0.0.0" uid "" From 6737f9721118bbca5a7cdd815fb81dd93605fe5e Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:09:42 +0100 Subject: [PATCH 018/167] Relocating module `@kbn/core-capabilities-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/capabilities/server-internal}/README.md | 0 .../core/packages/capabilities/server-internal}/index.ts | 0 .../packages/capabilities/server-internal}/jest.config.js | 4 ++-- .../core/packages/capabilities/server-internal}/kibana.jsonc | 0 .../core/packages/capabilities/server-internal}/package.json | 0 .../server-internal}/src/capabilities_service.test.ts | 0 .../capabilities/server-internal}/src/capabilities_service.ts | 0 .../server-internal}/src/merge_capabilities.test.ts | 0 .../capabilities/server-internal}/src/merge_capabilities.ts | 0 .../server-internal}/src/resolve_capabilities.test.mocks.ts | 0 .../server-internal}/src/resolve_capabilities.test.ts | 0 .../capabilities/server-internal}/src/resolve_capabilities.ts | 0 .../capabilities/server-internal}/src/resolve_helpers.test.ts | 0 .../capabilities/server-internal}/src/resolve_helpers.ts | 0 .../capabilities/server-internal}/src/routes/index.ts | 0 .../server-internal}/src/routes/resolve_capabilities.ts | 0 .../core/packages/capabilities/server-internal}/src/types.ts | 0 .../core/packages/capabilities/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 22 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/README.md (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/index.ts (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/jest.config.js (82%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/kibana.jsonc (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/package.json (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/src/capabilities_service.test.ts (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/src/capabilities_service.ts (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/src/merge_capabilities.test.ts (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/src/merge_capabilities.ts (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/src/resolve_capabilities.test.mocks.ts (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/src/resolve_capabilities.test.ts (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/src/resolve_capabilities.ts (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/src/resolve_helpers.test.ts (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/src/resolve_helpers.ts (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/src/routes/index.ts (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/src/routes/resolve_capabilities.ts (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/src/types.ts (100%) rename {packages/core/capabilities/core-capabilities-server-internal => src/core/packages/capabilities/server-internal}/tsconfig.json (91%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3c5bb353dcf3a..2d4e0d7106ceb 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -59,7 +59,6 @@ packages/core/apps/core-apps-browser-mocks @elastic/kibana-core packages/core/base/core-base-browser-mocks @elastic/kibana-core packages/core/base/core-base-server-mocks @elastic/kibana-core packages/core/capabilities/core-capabilities-browser-mocks @elastic/kibana-core -packages/core/capabilities/core-capabilities-server-internal @elastic/kibana-core packages/core/capabilities/core-capabilities-server-mocks @elastic/kibana-core packages/core/chrome/core-chrome-browser @elastic/appex-sharedux packages/core/chrome/core-chrome-browser-internal @elastic/appex-sharedux @@ -493,6 +492,7 @@ src/core/packages/base/server-internal @elastic/kibana-core src/core/packages/capabilities/browser-internal @elastic/kibana-core src/core/packages/capabilities/common @elastic/kibana-core src/core/packages/capabilities/server @elastic/kibana-core +src/core/packages/capabilities/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 6f25247d32223..e717246082e54 100644 --- a/package.json +++ b/package.json @@ -262,7 +262,7 @@ "@kbn/core-capabilities-browser-internal": "link:src/core/packages/capabilities/browser-internal", "@kbn/core-capabilities-common": "link:src/core/packages/capabilities/common", "@kbn/core-capabilities-server": "link:src/core/packages/capabilities/server", - "@kbn/core-capabilities-server-internal": "link:packages/core/capabilities/core-capabilities-server-internal", + "@kbn/core-capabilities-server-internal": "link:src/core/packages/capabilities/server-internal", "@kbn/core-chrome-browser": "link:packages/core/chrome/core-chrome-browser", "@kbn/core-chrome-browser-internal": "link:packages/core/chrome/core-chrome-browser-internal", "@kbn/core-config-server-internal": "link:packages/core/config/core-config-server-internal", diff --git a/packages/core/capabilities/core-capabilities-server-internal/README.md b/src/core/packages/capabilities/server-internal/README.md similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/README.md rename to src/core/packages/capabilities/server-internal/README.md diff --git a/packages/core/capabilities/core-capabilities-server-internal/index.ts b/src/core/packages/capabilities/server-internal/index.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/index.ts rename to src/core/packages/capabilities/server-internal/index.ts diff --git a/packages/core/capabilities/core-capabilities-server-internal/jest.config.js b/src/core/packages/capabilities/server-internal/jest.config.js similarity index 82% rename from packages/core/capabilities/core-capabilities-server-internal/jest.config.js rename to src/core/packages/capabilities/server-internal/jest.config.js index fe6f7746ab5cb..3fb4df2f05648 100644 --- a/packages/core/capabilities/core-capabilities-server-internal/jest.config.js +++ b/src/core/packages/capabilities/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/capabilities/core-capabilities-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/capabilities/server-internal'], }; diff --git a/packages/core/capabilities/core-capabilities-server-internal/kibana.jsonc b/src/core/packages/capabilities/server-internal/kibana.jsonc similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/kibana.jsonc rename to src/core/packages/capabilities/server-internal/kibana.jsonc diff --git a/packages/core/capabilities/core-capabilities-server-internal/package.json b/src/core/packages/capabilities/server-internal/package.json similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/package.json rename to src/core/packages/capabilities/server-internal/package.json diff --git a/packages/core/capabilities/core-capabilities-server-internal/src/capabilities_service.test.ts b/src/core/packages/capabilities/server-internal/src/capabilities_service.test.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/src/capabilities_service.test.ts rename to src/core/packages/capabilities/server-internal/src/capabilities_service.test.ts diff --git a/packages/core/capabilities/core-capabilities-server-internal/src/capabilities_service.ts b/src/core/packages/capabilities/server-internal/src/capabilities_service.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/src/capabilities_service.ts rename to src/core/packages/capabilities/server-internal/src/capabilities_service.ts diff --git a/packages/core/capabilities/core-capabilities-server-internal/src/merge_capabilities.test.ts b/src/core/packages/capabilities/server-internal/src/merge_capabilities.test.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/src/merge_capabilities.test.ts rename to src/core/packages/capabilities/server-internal/src/merge_capabilities.test.ts diff --git a/packages/core/capabilities/core-capabilities-server-internal/src/merge_capabilities.ts b/src/core/packages/capabilities/server-internal/src/merge_capabilities.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/src/merge_capabilities.ts rename to src/core/packages/capabilities/server-internal/src/merge_capabilities.ts diff --git a/packages/core/capabilities/core-capabilities-server-internal/src/resolve_capabilities.test.mocks.ts b/src/core/packages/capabilities/server-internal/src/resolve_capabilities.test.mocks.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/src/resolve_capabilities.test.mocks.ts rename to src/core/packages/capabilities/server-internal/src/resolve_capabilities.test.mocks.ts diff --git a/packages/core/capabilities/core-capabilities-server-internal/src/resolve_capabilities.test.ts b/src/core/packages/capabilities/server-internal/src/resolve_capabilities.test.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/src/resolve_capabilities.test.ts rename to src/core/packages/capabilities/server-internal/src/resolve_capabilities.test.ts diff --git a/packages/core/capabilities/core-capabilities-server-internal/src/resolve_capabilities.ts b/src/core/packages/capabilities/server-internal/src/resolve_capabilities.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/src/resolve_capabilities.ts rename to src/core/packages/capabilities/server-internal/src/resolve_capabilities.ts diff --git a/packages/core/capabilities/core-capabilities-server-internal/src/resolve_helpers.test.ts b/src/core/packages/capabilities/server-internal/src/resolve_helpers.test.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/src/resolve_helpers.test.ts rename to src/core/packages/capabilities/server-internal/src/resolve_helpers.test.ts diff --git a/packages/core/capabilities/core-capabilities-server-internal/src/resolve_helpers.ts b/src/core/packages/capabilities/server-internal/src/resolve_helpers.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/src/resolve_helpers.ts rename to src/core/packages/capabilities/server-internal/src/resolve_helpers.ts diff --git a/packages/core/capabilities/core-capabilities-server-internal/src/routes/index.ts b/src/core/packages/capabilities/server-internal/src/routes/index.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/src/routes/index.ts rename to src/core/packages/capabilities/server-internal/src/routes/index.ts diff --git a/packages/core/capabilities/core-capabilities-server-internal/src/routes/resolve_capabilities.ts b/src/core/packages/capabilities/server-internal/src/routes/resolve_capabilities.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/src/routes/resolve_capabilities.ts rename to src/core/packages/capabilities/server-internal/src/routes/resolve_capabilities.ts diff --git a/packages/core/capabilities/core-capabilities-server-internal/src/types.ts b/src/core/packages/capabilities/server-internal/src/types.ts similarity index 100% rename from packages/core/capabilities/core-capabilities-server-internal/src/types.ts rename to src/core/packages/capabilities/server-internal/src/types.ts diff --git a/packages/core/capabilities/core-capabilities-server-internal/tsconfig.json b/src/core/packages/capabilities/server-internal/tsconfig.json similarity index 91% rename from packages/core/capabilities/core-capabilities-server-internal/tsconfig.json rename to src/core/packages/capabilities/server-internal/tsconfig.json index 64ee048df3913..9a703cb19a961 100644 --- a/packages/core/capabilities/core-capabilities-server-internal/tsconfig.json +++ b/src/core/packages/capabilities/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index b485cecb8e6a1..a9ba025dd8038 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -280,8 +280,8 @@ "@kbn/core-capabilities-common/*": ["src/core/packages/capabilities/common/*"], "@kbn/core-capabilities-server": ["src/core/packages/capabilities/server"], "@kbn/core-capabilities-server/*": ["src/core/packages/capabilities/server/*"], - "@kbn/core-capabilities-server-internal": ["packages/core/capabilities/core-capabilities-server-internal"], - "@kbn/core-capabilities-server-internal/*": ["packages/core/capabilities/core-capabilities-server-internal/*"], + "@kbn/core-capabilities-server-internal": ["src/core/packages/capabilities/server-internal"], + "@kbn/core-capabilities-server-internal/*": ["src/core/packages/capabilities/server-internal/*"], "@kbn/core-capabilities-server-mocks": ["packages/core/capabilities/core-capabilities-server-mocks"], "@kbn/core-capabilities-server-mocks/*": ["packages/core/capabilities/core-capabilities-server-mocks/*"], "@kbn/core-chrome-browser": ["packages/core/chrome/core-chrome-browser"], diff --git a/yarn.lock b/yarn.lock index fd9e255b03700..1b51793170ef9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4369,7 +4369,7 @@ version "0.0.0" uid "" -"@kbn/core-capabilities-server-internal@link:packages/core/capabilities/core-capabilities-server-internal": +"@kbn/core-capabilities-server-internal@link:src/core/packages/capabilities/server-internal": version "0.0.0" uid "" From ae25265efd8e25b92875de4ebcc945493aa4a960 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:10:37 +0100 Subject: [PATCH 019/167] Relocating module `@kbn/core-config-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/config/server-internal}/README.md | 0 .../core/packages/config/server-internal}/index.ts | 0 .../core/packages/config/server-internal}/jest.config.js | 4 ++-- .../core/packages/config/server-internal}/kibana.jsonc | 0 .../core/packages/config/server-internal}/package.json | 0 .../src/deprecation/core_deprecations.test.ts | 0 .../server-internal}/src/deprecation/core_deprecations.ts | 0 .../packages/config/server-internal}/src/deprecation/index.ts | 0 .../server-internal}/src/ensure_valid_configuration.test.ts | 0 .../config/server-internal}/src/ensure_valid_configuration.ts | 0 .../core/packages/config/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/config/core-config-server-internal => src/core/packages/config/server-internal}/README.md (100%) rename {packages/core/config/core-config-server-internal => src/core/packages/config/server-internal}/index.ts (100%) rename {packages/core/config/core-config-server-internal => src/core/packages/config/server-internal}/jest.config.js (84%) rename {packages/core/config/core-config-server-internal => src/core/packages/config/server-internal}/kibana.jsonc (100%) rename {packages/core/config/core-config-server-internal => src/core/packages/config/server-internal}/package.json (100%) rename {packages/core/config/core-config-server-internal => src/core/packages/config/server-internal}/src/deprecation/core_deprecations.test.ts (100%) rename {packages/core/config/core-config-server-internal => src/core/packages/config/server-internal}/src/deprecation/core_deprecations.ts (100%) rename {packages/core/config/core-config-server-internal => src/core/packages/config/server-internal}/src/deprecation/index.ts (100%) rename {packages/core/config/core-config-server-internal => src/core/packages/config/server-internal}/src/ensure_valid_configuration.test.ts (100%) rename {packages/core/config/core-config-server-internal => src/core/packages/config/server-internal}/src/ensure_valid_configuration.ts (100%) rename {packages/core/config/core-config-server-internal => src/core/packages/config/server-internal}/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2d4e0d7106ceb..08bf3d4456fd4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -63,7 +63,6 @@ packages/core/capabilities/core-capabilities-server-mocks @elastic/kibana-core packages/core/chrome/core-chrome-browser @elastic/appex-sharedux packages/core/chrome/core-chrome-browser-internal @elastic/appex-sharedux packages/core/chrome/core-chrome-browser-mocks @elastic/appex-sharedux -packages/core/config/core-config-server-internal @elastic/kibana-core packages/core/custom-branding/core-custom-branding-browser @elastic/appex-sharedux packages/core/custom-branding/core-custom-branding-browser-internal @elastic/appex-sharedux packages/core/custom-branding/core-custom-branding-browser-mocks @elastic/appex-sharedux @@ -493,6 +492,7 @@ src/core/packages/capabilities/browser-internal @elastic/kibana-core src/core/packages/capabilities/common @elastic/kibana-core src/core/packages/capabilities/server @elastic/kibana-core src/core/packages/capabilities/server-internal @elastic/kibana-core +src/core/packages/config/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index e717246082e54..923fdb50ea906 100644 --- a/package.json +++ b/package.json @@ -265,7 +265,7 @@ "@kbn/core-capabilities-server-internal": "link:src/core/packages/capabilities/server-internal", "@kbn/core-chrome-browser": "link:packages/core/chrome/core-chrome-browser", "@kbn/core-chrome-browser-internal": "link:packages/core/chrome/core-chrome-browser-internal", - "@kbn/core-config-server-internal": "link:packages/core/config/core-config-server-internal", + "@kbn/core-config-server-internal": "link:src/core/packages/config/server-internal", "@kbn/core-custom-branding-browser": "link:packages/core/custom-branding/core-custom-branding-browser", "@kbn/core-custom-branding-browser-internal": "link:packages/core/custom-branding/core-custom-branding-browser-internal", "@kbn/core-custom-branding-browser-mocks": "link:packages/core/custom-branding/core-custom-branding-browser-mocks", diff --git a/packages/core/config/core-config-server-internal/README.md b/src/core/packages/config/server-internal/README.md similarity index 100% rename from packages/core/config/core-config-server-internal/README.md rename to src/core/packages/config/server-internal/README.md diff --git a/packages/core/config/core-config-server-internal/index.ts b/src/core/packages/config/server-internal/index.ts similarity index 100% rename from packages/core/config/core-config-server-internal/index.ts rename to src/core/packages/config/server-internal/index.ts diff --git a/packages/core/config/core-config-server-internal/jest.config.js b/src/core/packages/config/server-internal/jest.config.js similarity index 84% rename from packages/core/config/core-config-server-internal/jest.config.js rename to src/core/packages/config/server-internal/jest.config.js index a9b0fc1152b94..20d13dd912c31 100644 --- a/packages/core/config/core-config-server-internal/jest.config.js +++ b/src/core/packages/config/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/config/core-config-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/config/server-internal'], }; diff --git a/packages/core/config/core-config-server-internal/kibana.jsonc b/src/core/packages/config/server-internal/kibana.jsonc similarity index 100% rename from packages/core/config/core-config-server-internal/kibana.jsonc rename to src/core/packages/config/server-internal/kibana.jsonc diff --git a/packages/core/config/core-config-server-internal/package.json b/src/core/packages/config/server-internal/package.json similarity index 100% rename from packages/core/config/core-config-server-internal/package.json rename to src/core/packages/config/server-internal/package.json diff --git a/packages/core/config/core-config-server-internal/src/deprecation/core_deprecations.test.ts b/src/core/packages/config/server-internal/src/deprecation/core_deprecations.test.ts similarity index 100% rename from packages/core/config/core-config-server-internal/src/deprecation/core_deprecations.test.ts rename to src/core/packages/config/server-internal/src/deprecation/core_deprecations.test.ts diff --git a/packages/core/config/core-config-server-internal/src/deprecation/core_deprecations.ts b/src/core/packages/config/server-internal/src/deprecation/core_deprecations.ts similarity index 100% rename from packages/core/config/core-config-server-internal/src/deprecation/core_deprecations.ts rename to src/core/packages/config/server-internal/src/deprecation/core_deprecations.ts diff --git a/packages/core/config/core-config-server-internal/src/deprecation/index.ts b/src/core/packages/config/server-internal/src/deprecation/index.ts similarity index 100% rename from packages/core/config/core-config-server-internal/src/deprecation/index.ts rename to src/core/packages/config/server-internal/src/deprecation/index.ts diff --git a/packages/core/config/core-config-server-internal/src/ensure_valid_configuration.test.ts b/src/core/packages/config/server-internal/src/ensure_valid_configuration.test.ts similarity index 100% rename from packages/core/config/core-config-server-internal/src/ensure_valid_configuration.test.ts rename to src/core/packages/config/server-internal/src/ensure_valid_configuration.test.ts diff --git a/packages/core/config/core-config-server-internal/src/ensure_valid_configuration.ts b/src/core/packages/config/server-internal/src/ensure_valid_configuration.ts similarity index 100% rename from packages/core/config/core-config-server-internal/src/ensure_valid_configuration.ts rename to src/core/packages/config/server-internal/src/ensure_valid_configuration.ts diff --git a/packages/core/config/core-config-server-internal/tsconfig.json b/src/core/packages/config/server-internal/tsconfig.json similarity index 87% rename from packages/core/config/core-config-server-internal/tsconfig.json rename to src/core/packages/config/server-internal/tsconfig.json index 23a51196a73c3..376b5b1921bd8 100644 --- a/packages/core/config/core-config-server-internal/tsconfig.json +++ b/src/core/packages/config/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index a9ba025dd8038..cc701c846e50c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -290,8 +290,8 @@ "@kbn/core-chrome-browser-internal/*": ["packages/core/chrome/core-chrome-browser-internal/*"], "@kbn/core-chrome-browser-mocks": ["packages/core/chrome/core-chrome-browser-mocks"], "@kbn/core-chrome-browser-mocks/*": ["packages/core/chrome/core-chrome-browser-mocks/*"], - "@kbn/core-config-server-internal": ["packages/core/config/core-config-server-internal"], - "@kbn/core-config-server-internal/*": ["packages/core/config/core-config-server-internal/*"], + "@kbn/core-config-server-internal": ["src/core/packages/config/server-internal"], + "@kbn/core-config-server-internal/*": ["src/core/packages/config/server-internal/*"], "@kbn/core-custom-branding-browser": ["packages/core/custom-branding/core-custom-branding-browser"], "@kbn/core-custom-branding-browser/*": ["packages/core/custom-branding/core-custom-branding-browser/*"], "@kbn/core-custom-branding-browser-internal": ["packages/core/custom-branding/core-custom-branding-browser-internal"], diff --git a/yarn.lock b/yarn.lock index 1b51793170ef9..b7775049ff782 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4393,7 +4393,7 @@ version "0.0.0" uid "" -"@kbn/core-config-server-internal@link:packages/core/config/core-config-server-internal": +"@kbn/core-config-server-internal@link:src/core/packages/config/server-internal": version "0.0.0" uid "" From 565f4c670061a6d68e84676fe9793e8820b294b5 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:11:33 +0100 Subject: [PATCH 020/167] Relocating module `@kbn/core-deprecations-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/deprecations/browser}/README.md | 0 .../core/packages/deprecations/browser}/index.ts | 0 .../core/packages/deprecations/browser}/jest.config.js | 4 ++-- .../core/packages/deprecations/browser}/kibana.jsonc | 0 .../core/packages/deprecations/browser}/package.json | 0 .../core/packages/deprecations/browser}/src/contracts.ts | 0 .../core/packages/deprecations/browser}/src/types.ts | 0 .../core/packages/deprecations/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/deprecations/core-deprecations-browser => src/core/packages/deprecations/browser}/README.md (100%) rename {packages/core/deprecations/core-deprecations-browser => src/core/packages/deprecations/browser}/index.ts (100%) rename {packages/core/deprecations/core-deprecations-browser => src/core/packages/deprecations/browser}/jest.config.js (83%) rename {packages/core/deprecations/core-deprecations-browser => src/core/packages/deprecations/browser}/kibana.jsonc (100%) rename {packages/core/deprecations/core-deprecations-browser => src/core/packages/deprecations/browser}/package.json (100%) rename {packages/core/deprecations/core-deprecations-browser => src/core/packages/deprecations/browser}/src/contracts.ts (100%) rename {packages/core/deprecations/core-deprecations-browser => src/core/packages/deprecations/browser}/src/types.ts (100%) rename {packages/core/deprecations/core-deprecations-browser => src/core/packages/deprecations/browser}/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 08bf3d4456fd4..36e78a30c6026 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -70,7 +70,6 @@ packages/core/custom-branding/core-custom-branding-common @elastic/appex-sharedu packages/core/custom-branding/core-custom-branding-server @elastic/appex-sharedux packages/core/custom-branding/core-custom-branding-server-internal @elastic/appex-sharedux packages/core/custom-branding/core-custom-branding-server-mocks @elastic/appex-sharedux -packages/core/deprecations/core-deprecations-browser @elastic/kibana-core packages/core/deprecations/core-deprecations-browser-internal @elastic/kibana-core packages/core/deprecations/core-deprecations-browser-mocks @elastic/kibana-core packages/core/deprecations/core-deprecations-common @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/capabilities/common @elastic/kibana-core src/core/packages/capabilities/server @elastic/kibana-core src/core/packages/capabilities/server-internal @elastic/kibana-core src/core/packages/config/server-internal @elastic/kibana-core +src/core/packages/deprecations/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 923fdb50ea906..dbe11ebe3169d 100644 --- a/package.json +++ b/package.json @@ -273,7 +273,7 @@ "@kbn/core-custom-branding-server": "link:packages/core/custom-branding/core-custom-branding-server", "@kbn/core-custom-branding-server-internal": "link:packages/core/custom-branding/core-custom-branding-server-internal", "@kbn/core-custom-branding-server-mocks": "link:packages/core/custom-branding/core-custom-branding-server-mocks", - "@kbn/core-deprecations-browser": "link:packages/core/deprecations/core-deprecations-browser", + "@kbn/core-deprecations-browser": "link:src/core/packages/deprecations/browser", "@kbn/core-deprecations-browser-internal": "link:packages/core/deprecations/core-deprecations-browser-internal", "@kbn/core-deprecations-common": "link:packages/core/deprecations/core-deprecations-common", "@kbn/core-deprecations-server": "link:packages/core/deprecations/core-deprecations-server", diff --git a/packages/core/deprecations/core-deprecations-browser/README.md b/src/core/packages/deprecations/browser/README.md similarity index 100% rename from packages/core/deprecations/core-deprecations-browser/README.md rename to src/core/packages/deprecations/browser/README.md diff --git a/packages/core/deprecations/core-deprecations-browser/index.ts b/src/core/packages/deprecations/browser/index.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-browser/index.ts rename to src/core/packages/deprecations/browser/index.ts diff --git a/packages/core/deprecations/core-deprecations-browser/jest.config.js b/src/core/packages/deprecations/browser/jest.config.js similarity index 83% rename from packages/core/deprecations/core-deprecations-browser/jest.config.js rename to src/core/packages/deprecations/browser/jest.config.js index 73e2ee91c6df0..b638fa237f12d 100644 --- a/packages/core/deprecations/core-deprecations-browser/jest.config.js +++ b/src/core/packages/deprecations/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/deprecations/core-deprecations-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/deprecations/browser'], }; diff --git a/packages/core/deprecations/core-deprecations-browser/kibana.jsonc b/src/core/packages/deprecations/browser/kibana.jsonc similarity index 100% rename from packages/core/deprecations/core-deprecations-browser/kibana.jsonc rename to src/core/packages/deprecations/browser/kibana.jsonc diff --git a/packages/core/deprecations/core-deprecations-browser/package.json b/src/core/packages/deprecations/browser/package.json similarity index 100% rename from packages/core/deprecations/core-deprecations-browser/package.json rename to src/core/packages/deprecations/browser/package.json diff --git a/packages/core/deprecations/core-deprecations-browser/src/contracts.ts b/src/core/packages/deprecations/browser/src/contracts.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-browser/src/contracts.ts rename to src/core/packages/deprecations/browser/src/contracts.ts diff --git a/packages/core/deprecations/core-deprecations-browser/src/types.ts b/src/core/packages/deprecations/browser/src/types.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-browser/src/types.ts rename to src/core/packages/deprecations/browser/src/types.ts diff --git a/packages/core/deprecations/core-deprecations-browser/tsconfig.json b/src/core/packages/deprecations/browser/tsconfig.json similarity index 83% rename from packages/core/deprecations/core-deprecations-browser/tsconfig.json rename to src/core/packages/deprecations/browser/tsconfig.json index 60c79345dd69f..c8397200c1fe5 100644 --- a/packages/core/deprecations/core-deprecations-browser/tsconfig.json +++ b/src/core/packages/deprecations/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index cc701c846e50c..c2082e6dee4c3 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -306,8 +306,8 @@ "@kbn/core-custom-branding-server-internal/*": ["packages/core/custom-branding/core-custom-branding-server-internal/*"], "@kbn/core-custom-branding-server-mocks": ["packages/core/custom-branding/core-custom-branding-server-mocks"], "@kbn/core-custom-branding-server-mocks/*": ["packages/core/custom-branding/core-custom-branding-server-mocks/*"], - "@kbn/core-deprecations-browser": ["packages/core/deprecations/core-deprecations-browser"], - "@kbn/core-deprecations-browser/*": ["packages/core/deprecations/core-deprecations-browser/*"], + "@kbn/core-deprecations-browser": ["src/core/packages/deprecations/browser"], + "@kbn/core-deprecations-browser/*": ["src/core/packages/deprecations/browser/*"], "@kbn/core-deprecations-browser-internal": ["packages/core/deprecations/core-deprecations-browser-internal"], "@kbn/core-deprecations-browser-internal/*": ["packages/core/deprecations/core-deprecations-browser-internal/*"], "@kbn/core-deprecations-browser-mocks": ["packages/core/deprecations/core-deprecations-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index b7775049ff782..3ca0931eb0dea 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4433,7 +4433,7 @@ version "0.0.0" uid "" -"@kbn/core-deprecations-browser@link:packages/core/deprecations/core-deprecations-browser": +"@kbn/core-deprecations-browser@link:src/core/packages/deprecations/browser": version "0.0.0" uid "" From 4aab8936a5bcf04224885f3aba1dff08c3e3b1f2 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:12:27 +0100 Subject: [PATCH 021/167] Relocating module `@kbn/core-deprecations-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/deprecations/browser-internal}/README.md | 0 .../core/packages/deprecations/browser-internal}/index.ts | 0 .../packages/deprecations/browser-internal}/jest.config.js | 4 ++-- .../core/packages/deprecations/browser-internal}/kibana.jsonc | 0 .../core/packages/deprecations/browser-internal}/package.json | 0 .../browser-internal}/src/deprecations_client.test.ts | 0 .../deprecations/browser-internal}/src/deprecations_client.ts | 0 .../browser-internal}/src/deprecations_service.ts | 0 .../packages/deprecations/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/deprecations/core-deprecations-browser-internal => src/core/packages/deprecations/browser-internal}/README.md (100%) rename {packages/core/deprecations/core-deprecations-browser-internal => src/core/packages/deprecations/browser-internal}/index.ts (100%) rename {packages/core/deprecations/core-deprecations-browser-internal => src/core/packages/deprecations/browser-internal}/jest.config.js (82%) rename {packages/core/deprecations/core-deprecations-browser-internal => src/core/packages/deprecations/browser-internal}/kibana.jsonc (100%) rename {packages/core/deprecations/core-deprecations-browser-internal => src/core/packages/deprecations/browser-internal}/package.json (100%) rename {packages/core/deprecations/core-deprecations-browser-internal => src/core/packages/deprecations/browser-internal}/src/deprecations_client.test.ts (100%) rename {packages/core/deprecations/core-deprecations-browser-internal => src/core/packages/deprecations/browser-internal}/src/deprecations_client.ts (100%) rename {packages/core/deprecations/core-deprecations-browser-internal => src/core/packages/deprecations/browser-internal}/src/deprecations_service.ts (100%) rename {packages/core/deprecations/core-deprecations-browser-internal => src/core/packages/deprecations/browser-internal}/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 36e78a30c6026..ff08e0b196f11 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -70,7 +70,6 @@ packages/core/custom-branding/core-custom-branding-common @elastic/appex-sharedu packages/core/custom-branding/core-custom-branding-server @elastic/appex-sharedux packages/core/custom-branding/core-custom-branding-server-internal @elastic/appex-sharedux packages/core/custom-branding/core-custom-branding-server-mocks @elastic/appex-sharedux -packages/core/deprecations/core-deprecations-browser-internal @elastic/kibana-core packages/core/deprecations/core-deprecations-browser-mocks @elastic/kibana-core packages/core/deprecations/core-deprecations-common @elastic/kibana-core packages/core/deprecations/core-deprecations-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/capabilities/server @elastic/kibana-core src/core/packages/capabilities/server-internal @elastic/kibana-core src/core/packages/config/server-internal @elastic/kibana-core src/core/packages/deprecations/browser @elastic/kibana-core +src/core/packages/deprecations/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index dbe11ebe3169d..b7a445f548f8a 100644 --- a/package.json +++ b/package.json @@ -274,7 +274,7 @@ "@kbn/core-custom-branding-server-internal": "link:packages/core/custom-branding/core-custom-branding-server-internal", "@kbn/core-custom-branding-server-mocks": "link:packages/core/custom-branding/core-custom-branding-server-mocks", "@kbn/core-deprecations-browser": "link:src/core/packages/deprecations/browser", - "@kbn/core-deprecations-browser-internal": "link:packages/core/deprecations/core-deprecations-browser-internal", + "@kbn/core-deprecations-browser-internal": "link:src/core/packages/deprecations/browser-internal", "@kbn/core-deprecations-common": "link:packages/core/deprecations/core-deprecations-common", "@kbn/core-deprecations-server": "link:packages/core/deprecations/core-deprecations-server", "@kbn/core-deprecations-server-internal": "link:packages/core/deprecations/core-deprecations-server-internal", diff --git a/packages/core/deprecations/core-deprecations-browser-internal/README.md b/src/core/packages/deprecations/browser-internal/README.md similarity index 100% rename from packages/core/deprecations/core-deprecations-browser-internal/README.md rename to src/core/packages/deprecations/browser-internal/README.md diff --git a/packages/core/deprecations/core-deprecations-browser-internal/index.ts b/src/core/packages/deprecations/browser-internal/index.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-browser-internal/index.ts rename to src/core/packages/deprecations/browser-internal/index.ts diff --git a/packages/core/deprecations/core-deprecations-browser-internal/jest.config.js b/src/core/packages/deprecations/browser-internal/jest.config.js similarity index 82% rename from packages/core/deprecations/core-deprecations-browser-internal/jest.config.js rename to src/core/packages/deprecations/browser-internal/jest.config.js index aac87e6e27ec2..42d0a7945ee1c 100644 --- a/packages/core/deprecations/core-deprecations-browser-internal/jest.config.js +++ b/src/core/packages/deprecations/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/deprecations/core-deprecations-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/deprecations/browser-internal'], }; diff --git a/packages/core/deprecations/core-deprecations-browser-internal/kibana.jsonc b/src/core/packages/deprecations/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/deprecations/core-deprecations-browser-internal/kibana.jsonc rename to src/core/packages/deprecations/browser-internal/kibana.jsonc diff --git a/packages/core/deprecations/core-deprecations-browser-internal/package.json b/src/core/packages/deprecations/browser-internal/package.json similarity index 100% rename from packages/core/deprecations/core-deprecations-browser-internal/package.json rename to src/core/packages/deprecations/browser-internal/package.json diff --git a/packages/core/deprecations/core-deprecations-browser-internal/src/deprecations_client.test.ts b/src/core/packages/deprecations/browser-internal/src/deprecations_client.test.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-browser-internal/src/deprecations_client.test.ts rename to src/core/packages/deprecations/browser-internal/src/deprecations_client.test.ts diff --git a/packages/core/deprecations/core-deprecations-browser-internal/src/deprecations_client.ts b/src/core/packages/deprecations/browser-internal/src/deprecations_client.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-browser-internal/src/deprecations_client.ts rename to src/core/packages/deprecations/browser-internal/src/deprecations_client.ts diff --git a/packages/core/deprecations/core-deprecations-browser-internal/src/deprecations_service.ts b/src/core/packages/deprecations/browser-internal/src/deprecations_service.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-browser-internal/src/deprecations_service.ts rename to src/core/packages/deprecations/browser-internal/src/deprecations_service.ts diff --git a/packages/core/deprecations/core-deprecations-browser-internal/tsconfig.json b/src/core/packages/deprecations/browser-internal/tsconfig.json similarity index 89% rename from packages/core/deprecations/core-deprecations-browser-internal/tsconfig.json rename to src/core/packages/deprecations/browser-internal/tsconfig.json index 38fda3fdccf44..ff53174998dd1 100644 --- a/packages/core/deprecations/core-deprecations-browser-internal/tsconfig.json +++ b/src/core/packages/deprecations/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c2082e6dee4c3..c82f921a9f09f 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -308,8 +308,8 @@ "@kbn/core-custom-branding-server-mocks/*": ["packages/core/custom-branding/core-custom-branding-server-mocks/*"], "@kbn/core-deprecations-browser": ["src/core/packages/deprecations/browser"], "@kbn/core-deprecations-browser/*": ["src/core/packages/deprecations/browser/*"], - "@kbn/core-deprecations-browser-internal": ["packages/core/deprecations/core-deprecations-browser-internal"], - "@kbn/core-deprecations-browser-internal/*": ["packages/core/deprecations/core-deprecations-browser-internal/*"], + "@kbn/core-deprecations-browser-internal": ["src/core/packages/deprecations/browser-internal"], + "@kbn/core-deprecations-browser-internal/*": ["src/core/packages/deprecations/browser-internal/*"], "@kbn/core-deprecations-browser-mocks": ["packages/core/deprecations/core-deprecations-browser-mocks"], "@kbn/core-deprecations-browser-mocks/*": ["packages/core/deprecations/core-deprecations-browser-mocks/*"], "@kbn/core-deprecations-common": ["packages/core/deprecations/core-deprecations-common"], diff --git a/yarn.lock b/yarn.lock index 3ca0931eb0dea..a981257843fb0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4425,7 +4425,7 @@ version "0.0.0" uid "" -"@kbn/core-deprecations-browser-internal@link:packages/core/deprecations/core-deprecations-browser-internal": +"@kbn/core-deprecations-browser-internal@link:src/core/packages/deprecations/browser-internal": version "0.0.0" uid "" From 4b8548c75af2c80d1c25a1076dc19d56e8082620 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:13:20 +0100 Subject: [PATCH 022/167] Relocating module `@kbn/core-deprecations-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/deprecations/common}/README.md | 0 .../core/packages/deprecations/common}/index.ts | 0 .../core/packages/deprecations/common}/jest.config.js | 4 ++-- .../core/packages/deprecations/common}/kibana.jsonc | 0 .../core/packages/deprecations/common}/package.json | 0 .../core/packages/deprecations/common}/src/types.ts | 0 .../core/packages/deprecations/common}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/deprecations/core-deprecations-common => src/core/packages/deprecations/common}/README.md (100%) rename {packages/core/deprecations/core-deprecations-common => src/core/packages/deprecations/common}/index.ts (100%) rename {packages/core/deprecations/core-deprecations-common => src/core/packages/deprecations/common}/jest.config.js (83%) rename {packages/core/deprecations/core-deprecations-common => src/core/packages/deprecations/common}/kibana.jsonc (100%) rename {packages/core/deprecations/core-deprecations-common => src/core/packages/deprecations/common}/package.json (100%) rename {packages/core/deprecations/core-deprecations-common => src/core/packages/deprecations/common}/src/types.ts (100%) rename {packages/core/deprecations/core-deprecations-common => src/core/packages/deprecations/common}/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ff08e0b196f11..1fa442c1773ec 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -71,7 +71,6 @@ packages/core/custom-branding/core-custom-branding-server @elastic/appex-sharedu packages/core/custom-branding/core-custom-branding-server-internal @elastic/appex-sharedux packages/core/custom-branding/core-custom-branding-server-mocks @elastic/appex-sharedux packages/core/deprecations/core-deprecations-browser-mocks @elastic/kibana-core -packages/core/deprecations/core-deprecations-common @elastic/kibana-core packages/core/deprecations/core-deprecations-server @elastic/kibana-core packages/core/deprecations/core-deprecations-server-internal @elastic/kibana-core packages/core/deprecations/core-deprecations-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/capabilities/server-internal @elastic/kibana-core src/core/packages/config/server-internal @elastic/kibana-core src/core/packages/deprecations/browser @elastic/kibana-core src/core/packages/deprecations/browser-internal @elastic/kibana-core +src/core/packages/deprecations/common @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index b7a445f548f8a..30a6e2f70248e 100644 --- a/package.json +++ b/package.json @@ -275,7 +275,7 @@ "@kbn/core-custom-branding-server-mocks": "link:packages/core/custom-branding/core-custom-branding-server-mocks", "@kbn/core-deprecations-browser": "link:src/core/packages/deprecations/browser", "@kbn/core-deprecations-browser-internal": "link:src/core/packages/deprecations/browser-internal", - "@kbn/core-deprecations-common": "link:packages/core/deprecations/core-deprecations-common", + "@kbn/core-deprecations-common": "link:src/core/packages/deprecations/common", "@kbn/core-deprecations-server": "link:packages/core/deprecations/core-deprecations-server", "@kbn/core-deprecations-server-internal": "link:packages/core/deprecations/core-deprecations-server-internal", "@kbn/core-doc-links-browser": "link:packages/core/doc-links/core-doc-links-browser", diff --git a/packages/core/deprecations/core-deprecations-common/README.md b/src/core/packages/deprecations/common/README.md similarity index 100% rename from packages/core/deprecations/core-deprecations-common/README.md rename to src/core/packages/deprecations/common/README.md diff --git a/packages/core/deprecations/core-deprecations-common/index.ts b/src/core/packages/deprecations/common/index.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-common/index.ts rename to src/core/packages/deprecations/common/index.ts diff --git a/packages/core/deprecations/core-deprecations-common/jest.config.js b/src/core/packages/deprecations/common/jest.config.js similarity index 83% rename from packages/core/deprecations/core-deprecations-common/jest.config.js rename to src/core/packages/deprecations/common/jest.config.js index effd314a5038d..d89919f593f09 100644 --- a/packages/core/deprecations/core-deprecations-common/jest.config.js +++ b/src/core/packages/deprecations/common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/deprecations/core-deprecations-common'], + rootDir: '../../../../..', + roots: ['/src/core/packages/deprecations/common'], }; diff --git a/packages/core/deprecations/core-deprecations-common/kibana.jsonc b/src/core/packages/deprecations/common/kibana.jsonc similarity index 100% rename from packages/core/deprecations/core-deprecations-common/kibana.jsonc rename to src/core/packages/deprecations/common/kibana.jsonc diff --git a/packages/core/deprecations/core-deprecations-common/package.json b/src/core/packages/deprecations/common/package.json similarity index 100% rename from packages/core/deprecations/core-deprecations-common/package.json rename to src/core/packages/deprecations/common/package.json diff --git a/packages/core/deprecations/core-deprecations-common/src/types.ts b/src/core/packages/deprecations/common/src/types.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-common/src/types.ts rename to src/core/packages/deprecations/common/src/types.ts diff --git a/packages/core/deprecations/core-deprecations-common/tsconfig.json b/src/core/packages/deprecations/common/tsconfig.json similarity index 78% rename from packages/core/deprecations/core-deprecations-common/tsconfig.json rename to src/core/packages/deprecations/common/tsconfig.json index e7513f6481e89..131ff3e6bb433 100644 --- a/packages/core/deprecations/core-deprecations-common/tsconfig.json +++ b/src/core/packages/deprecations/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c82f921a9f09f..5a4fd05f3deba 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -312,8 +312,8 @@ "@kbn/core-deprecations-browser-internal/*": ["src/core/packages/deprecations/browser-internal/*"], "@kbn/core-deprecations-browser-mocks": ["packages/core/deprecations/core-deprecations-browser-mocks"], "@kbn/core-deprecations-browser-mocks/*": ["packages/core/deprecations/core-deprecations-browser-mocks/*"], - "@kbn/core-deprecations-common": ["packages/core/deprecations/core-deprecations-common"], - "@kbn/core-deprecations-common/*": ["packages/core/deprecations/core-deprecations-common/*"], + "@kbn/core-deprecations-common": ["src/core/packages/deprecations/common"], + "@kbn/core-deprecations-common/*": ["src/core/packages/deprecations/common/*"], "@kbn/core-deprecations-server": ["packages/core/deprecations/core-deprecations-server"], "@kbn/core-deprecations-server/*": ["packages/core/deprecations/core-deprecations-server/*"], "@kbn/core-deprecations-server-internal": ["packages/core/deprecations/core-deprecations-server-internal"], diff --git a/yarn.lock b/yarn.lock index a981257843fb0..c04b1b9fe9e97 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4437,7 +4437,7 @@ version "0.0.0" uid "" -"@kbn/core-deprecations-common@link:packages/core/deprecations/core-deprecations-common": +"@kbn/core-deprecations-common@link:src/core/packages/deprecations/common": version "0.0.0" uid "" From 42d824df96907b4f755ec49644c074d49742c9c5 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:14:13 +0100 Subject: [PATCH 023/167] Relocating module `@kbn/core-deprecations-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/deprecations/server}/README.md | 0 .../core/packages/deprecations/server}/index.ts | 0 .../core/packages/deprecations/server}/jest.config.js | 4 ++-- .../core/packages/deprecations/server}/kibana.jsonc | 0 .../core/packages/deprecations/server}/package.json | 0 .../core/packages/deprecations/server}/src/contracts.ts | 0 .../core/packages/deprecations/server}/src/index.ts | 0 .../deprecations/server}/src/request_handler_context.ts | 0 .../core/packages/deprecations/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/deprecations/core-deprecations-server => src/core/packages/deprecations/server}/README.md (100%) rename {packages/core/deprecations/core-deprecations-server => src/core/packages/deprecations/server}/index.ts (100%) rename {packages/core/deprecations/core-deprecations-server => src/core/packages/deprecations/server}/jest.config.js (83%) rename {packages/core/deprecations/core-deprecations-server => src/core/packages/deprecations/server}/kibana.jsonc (100%) rename {packages/core/deprecations/core-deprecations-server => src/core/packages/deprecations/server}/package.json (100%) rename {packages/core/deprecations/core-deprecations-server => src/core/packages/deprecations/server}/src/contracts.ts (100%) rename {packages/core/deprecations/core-deprecations-server => src/core/packages/deprecations/server}/src/index.ts (100%) rename {packages/core/deprecations/core-deprecations-server => src/core/packages/deprecations/server}/src/request_handler_context.ts (100%) rename {packages/core/deprecations/core-deprecations-server => src/core/packages/deprecations/server}/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1fa442c1773ec..274ee540486fd 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -71,7 +71,6 @@ packages/core/custom-branding/core-custom-branding-server @elastic/appex-sharedu packages/core/custom-branding/core-custom-branding-server-internal @elastic/appex-sharedux packages/core/custom-branding/core-custom-branding-server-mocks @elastic/appex-sharedux packages/core/deprecations/core-deprecations-browser-mocks @elastic/kibana-core -packages/core/deprecations/core-deprecations-server @elastic/kibana-core packages/core/deprecations/core-deprecations-server-internal @elastic/kibana-core packages/core/deprecations/core-deprecations-server-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/config/server-internal @elastic/kibana-core src/core/packages/deprecations/browser @elastic/kibana-core src/core/packages/deprecations/browser-internal @elastic/kibana-core src/core/packages/deprecations/common @elastic/kibana-core +src/core/packages/deprecations/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 30a6e2f70248e..ea39226f7172b 100644 --- a/package.json +++ b/package.json @@ -276,7 +276,7 @@ "@kbn/core-deprecations-browser": "link:src/core/packages/deprecations/browser", "@kbn/core-deprecations-browser-internal": "link:src/core/packages/deprecations/browser-internal", "@kbn/core-deprecations-common": "link:src/core/packages/deprecations/common", - "@kbn/core-deprecations-server": "link:packages/core/deprecations/core-deprecations-server", + "@kbn/core-deprecations-server": "link:src/core/packages/deprecations/server", "@kbn/core-deprecations-server-internal": "link:packages/core/deprecations/core-deprecations-server-internal", "@kbn/core-doc-links-browser": "link:packages/core/doc-links/core-doc-links-browser", "@kbn/core-doc-links-browser-internal": "link:packages/core/doc-links/core-doc-links-browser-internal", diff --git a/packages/core/deprecations/core-deprecations-server/README.md b/src/core/packages/deprecations/server/README.md similarity index 100% rename from packages/core/deprecations/core-deprecations-server/README.md rename to src/core/packages/deprecations/server/README.md diff --git a/packages/core/deprecations/core-deprecations-server/index.ts b/src/core/packages/deprecations/server/index.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server/index.ts rename to src/core/packages/deprecations/server/index.ts diff --git a/packages/core/deprecations/core-deprecations-server/jest.config.js b/src/core/packages/deprecations/server/jest.config.js similarity index 83% rename from packages/core/deprecations/core-deprecations-server/jest.config.js rename to src/core/packages/deprecations/server/jest.config.js index b8a324fd515e6..9f8c0835582ef 100644 --- a/packages/core/deprecations/core-deprecations-server/jest.config.js +++ b/src/core/packages/deprecations/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/deprecations/core-deprecations-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/deprecations/server'], }; diff --git a/packages/core/deprecations/core-deprecations-server/kibana.jsonc b/src/core/packages/deprecations/server/kibana.jsonc similarity index 100% rename from packages/core/deprecations/core-deprecations-server/kibana.jsonc rename to src/core/packages/deprecations/server/kibana.jsonc diff --git a/packages/core/deprecations/core-deprecations-server/package.json b/src/core/packages/deprecations/server/package.json similarity index 100% rename from packages/core/deprecations/core-deprecations-server/package.json rename to src/core/packages/deprecations/server/package.json diff --git a/packages/core/deprecations/core-deprecations-server/src/contracts.ts b/src/core/packages/deprecations/server/src/contracts.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server/src/contracts.ts rename to src/core/packages/deprecations/server/src/contracts.ts diff --git a/packages/core/deprecations/core-deprecations-server/src/index.ts b/src/core/packages/deprecations/server/src/index.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server/src/index.ts rename to src/core/packages/deprecations/server/src/index.ts diff --git a/packages/core/deprecations/core-deprecations-server/src/request_handler_context.ts b/src/core/packages/deprecations/server/src/request_handler_context.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server/src/request_handler_context.ts rename to src/core/packages/deprecations/server/src/request_handler_context.ts diff --git a/packages/core/deprecations/core-deprecations-server/tsconfig.json b/src/core/packages/deprecations/server/tsconfig.json similarity index 88% rename from packages/core/deprecations/core-deprecations-server/tsconfig.json rename to src/core/packages/deprecations/server/tsconfig.json index 0179bace38bed..c111eac596ce6 100644 --- a/packages/core/deprecations/core-deprecations-server/tsconfig.json +++ b/src/core/packages/deprecations/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 5a4fd05f3deba..44ad704190d80 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -314,8 +314,8 @@ "@kbn/core-deprecations-browser-mocks/*": ["packages/core/deprecations/core-deprecations-browser-mocks/*"], "@kbn/core-deprecations-common": ["src/core/packages/deprecations/common"], "@kbn/core-deprecations-common/*": ["src/core/packages/deprecations/common/*"], - "@kbn/core-deprecations-server": ["packages/core/deprecations/core-deprecations-server"], - "@kbn/core-deprecations-server/*": ["packages/core/deprecations/core-deprecations-server/*"], + "@kbn/core-deprecations-server": ["src/core/packages/deprecations/server"], + "@kbn/core-deprecations-server/*": ["src/core/packages/deprecations/server/*"], "@kbn/core-deprecations-server-internal": ["packages/core/deprecations/core-deprecations-server-internal"], "@kbn/core-deprecations-server-internal/*": ["packages/core/deprecations/core-deprecations-server-internal/*"], "@kbn/core-deprecations-server-mocks": ["packages/core/deprecations/core-deprecations-server-mocks"], diff --git a/yarn.lock b/yarn.lock index c04b1b9fe9e97..6739113af89e2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4449,7 +4449,7 @@ version "0.0.0" uid "" -"@kbn/core-deprecations-server@link:packages/core/deprecations/core-deprecations-server": +"@kbn/core-deprecations-server@link:src/core/packages/deprecations/server": version "0.0.0" uid "" From 5f5718cbb8e97b4086cf1b06f682bb7ae70cb19c Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:15:05 +0100 Subject: [PATCH 024/167] Relocating module `@kbn/core-deprecations-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/deprecations/server-internal}/README.md | 0 .../core/packages/deprecations/server-internal}/index.ts | 0 .../packages/deprecations/server-internal}/jest.config.js | 4 ++-- .../core/packages/deprecations/server-internal}/kibana.jsonc | 0 .../core/packages/deprecations/server-internal}/package.json | 0 .../deprecations/server-internal}/src/deprecation_config.ts | 0 .../api_deprecations/access/access_deprecations.ts | 0 .../src/deprecations/api_deprecations/access/i18n_texts.ts | 0 .../src/deprecations/api_deprecations/access/index.ts | 0 .../deprecations/api_deprecations/api_deprecation_id.test.ts | 0 .../src/deprecations/api_deprecations/api_deprecation_id.ts | 0 .../src/deprecations/api_deprecations/index.ts | 0 .../api_deprecations/register_api_depercation_info.test.ts | 0 .../api_deprecations/register_api_depercation_info.ts | 0 .../src/deprecations/api_deprecations/route/i18n_texts.ts | 0 .../src/deprecations/api_deprecations/route/index.ts | 0 .../deprecations/api_deprecations/route/route_deprecations.ts | 0 .../src/deprecations/api_deprecations/types.ts | 0 .../src/deprecations/config_deprecations.test.ts | 0 .../server-internal}/src/deprecations/config_deprecations.ts | 0 .../deprecations/server-internal}/src/deprecations/index.ts | 0 .../server-internal}/src/deprecations_factory.test.ts | 0 .../deprecations/server-internal}/src/deprecations_factory.ts | 0 .../server-internal}/src/deprecations_registry.test.ts | 0 .../server-internal}/src/deprecations_registry.ts | 0 .../src/deprecations_route_handler_context.ts | 0 .../server-internal}/src/deprecations_service.test.mocks.ts | 0 .../server-internal}/src/deprecations_service.test.ts | 0 .../deprecations/server-internal}/src/deprecations_service.ts | 0 .../core/packages/deprecations/server-internal}/src/index.ts | 0 .../deprecations/server-internal}/src/internal_types.ts | 0 .../server-internal}/src/mocks/deprecations_factory.mock.ts | 0 .../server-internal}/src/mocks/deprecations_registry.mock.ts | 0 .../packages/deprecations/server-internal}/src/mocks/index.ts | 0 .../packages/deprecations/server-internal}/src/routes/get.ts | 0 .../deprecations/server-internal}/src/routes/index.ts | 0 .../server-internal}/src/routes/post_validation_handler.ts | 0 .../server-internal}/src/routes/resolve_deprecated_api.ts | 0 .../core/packages/deprecations/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 43 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/README.md (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/index.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/jest.config.js (82%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/kibana.jsonc (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/package.json (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecation_config.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/api_deprecations/access/access_deprecations.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/api_deprecations/access/i18n_texts.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/api_deprecations/access/index.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/api_deprecations/api_deprecation_id.test.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/api_deprecations/api_deprecation_id.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/api_deprecations/index.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/api_deprecations/register_api_depercation_info.test.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/api_deprecations/register_api_depercation_info.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/api_deprecations/route/i18n_texts.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/api_deprecations/route/index.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/api_deprecations/route/route_deprecations.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/api_deprecations/types.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/config_deprecations.test.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/config_deprecations.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations/index.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations_factory.test.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations_factory.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations_registry.test.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations_registry.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations_route_handler_context.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations_service.test.mocks.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations_service.test.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/deprecations_service.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/index.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/internal_types.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/mocks/deprecations_factory.mock.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/mocks/deprecations_registry.mock.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/mocks/index.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/routes/get.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/routes/index.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/routes/post_validation_handler.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/src/routes/resolve_deprecated_api.ts (100%) rename {packages/core/deprecations/core-deprecations-server-internal => src/core/packages/deprecations/server-internal}/tsconfig.json (95%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 274ee540486fd..2673268365192 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -71,7 +71,6 @@ packages/core/custom-branding/core-custom-branding-server @elastic/appex-sharedu packages/core/custom-branding/core-custom-branding-server-internal @elastic/appex-sharedux packages/core/custom-branding/core-custom-branding-server-mocks @elastic/appex-sharedux packages/core/deprecations/core-deprecations-browser-mocks @elastic/kibana-core -packages/core/deprecations/core-deprecations-server-internal @elastic/kibana-core packages/core/deprecations/core-deprecations-server-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-browser @elastic/kibana-core packages/core/doc-links/core-doc-links-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/deprecations/browser @elastic/kibana-core src/core/packages/deprecations/browser-internal @elastic/kibana-core src/core/packages/deprecations/common @elastic/kibana-core src/core/packages/deprecations/server @elastic/kibana-core +src/core/packages/deprecations/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index ea39226f7172b..c6d2684b04794 100644 --- a/package.json +++ b/package.json @@ -277,7 +277,7 @@ "@kbn/core-deprecations-browser-internal": "link:src/core/packages/deprecations/browser-internal", "@kbn/core-deprecations-common": "link:src/core/packages/deprecations/common", "@kbn/core-deprecations-server": "link:src/core/packages/deprecations/server", - "@kbn/core-deprecations-server-internal": "link:packages/core/deprecations/core-deprecations-server-internal", + "@kbn/core-deprecations-server-internal": "link:src/core/packages/deprecations/server-internal", "@kbn/core-doc-links-browser": "link:packages/core/doc-links/core-doc-links-browser", "@kbn/core-doc-links-browser-internal": "link:packages/core/doc-links/core-doc-links-browser-internal", "@kbn/core-doc-links-server": "link:packages/core/doc-links/core-doc-links-server", diff --git a/packages/core/deprecations/core-deprecations-server-internal/README.md b/src/core/packages/deprecations/server-internal/README.md similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/README.md rename to src/core/packages/deprecations/server-internal/README.md diff --git a/packages/core/deprecations/core-deprecations-server-internal/index.ts b/src/core/packages/deprecations/server-internal/index.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/index.ts rename to src/core/packages/deprecations/server-internal/index.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/jest.config.js b/src/core/packages/deprecations/server-internal/jest.config.js similarity index 82% rename from packages/core/deprecations/core-deprecations-server-internal/jest.config.js rename to src/core/packages/deprecations/server-internal/jest.config.js index 719054c46d809..486cc647a0f7a 100644 --- a/packages/core/deprecations/core-deprecations-server-internal/jest.config.js +++ b/src/core/packages/deprecations/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/deprecations/core-deprecations-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/deprecations/server-internal'], }; diff --git a/packages/core/deprecations/core-deprecations-server-internal/kibana.jsonc b/src/core/packages/deprecations/server-internal/kibana.jsonc similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/kibana.jsonc rename to src/core/packages/deprecations/server-internal/kibana.jsonc diff --git a/packages/core/deprecations/core-deprecations-server-internal/package.json b/src/core/packages/deprecations/server-internal/package.json similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/package.json rename to src/core/packages/deprecations/server-internal/package.json diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecation_config.ts b/src/core/packages/deprecations/server-internal/src/deprecation_config.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecation_config.ts rename to src/core/packages/deprecations/server-internal/src/deprecation_config.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/access/access_deprecations.ts b/src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/access/access_deprecations.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/access/access_deprecations.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/access/access_deprecations.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/access/i18n_texts.ts b/src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/access/i18n_texts.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/access/i18n_texts.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/access/i18n_texts.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/access/index.ts b/src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/access/index.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/access/index.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/access/index.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/api_deprecation_id.test.ts b/src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/api_deprecation_id.test.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/api_deprecation_id.test.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/api_deprecation_id.test.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/api_deprecation_id.ts b/src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/api_deprecation_id.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/api_deprecation_id.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/api_deprecation_id.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/index.ts b/src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/index.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/index.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/index.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/register_api_depercation_info.test.ts b/src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/register_api_depercation_info.test.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/register_api_depercation_info.test.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/register_api_depercation_info.test.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/register_api_depercation_info.ts b/src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/register_api_depercation_info.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/register_api_depercation_info.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/register_api_depercation_info.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/route/i18n_texts.ts b/src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/route/i18n_texts.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/route/i18n_texts.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/route/i18n_texts.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/route/index.ts b/src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/route/index.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/route/index.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/route/index.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/route/route_deprecations.ts b/src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/route/route_deprecations.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/route/route_deprecations.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/route/route_deprecations.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/types.ts b/src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/types.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/api_deprecations/types.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/api_deprecations/types.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/config_deprecations.test.ts b/src/core/packages/deprecations/server-internal/src/deprecations/config_deprecations.test.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/config_deprecations.test.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/config_deprecations.test.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/config_deprecations.ts b/src/core/packages/deprecations/server-internal/src/deprecations/config_deprecations.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/config_deprecations.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/config_deprecations.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations/index.ts b/src/core/packages/deprecations/server-internal/src/deprecations/index.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations/index.ts rename to src/core/packages/deprecations/server-internal/src/deprecations/index.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations_factory.test.ts b/src/core/packages/deprecations/server-internal/src/deprecations_factory.test.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations_factory.test.ts rename to src/core/packages/deprecations/server-internal/src/deprecations_factory.test.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations_factory.ts b/src/core/packages/deprecations/server-internal/src/deprecations_factory.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations_factory.ts rename to src/core/packages/deprecations/server-internal/src/deprecations_factory.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations_registry.test.ts b/src/core/packages/deprecations/server-internal/src/deprecations_registry.test.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations_registry.test.ts rename to src/core/packages/deprecations/server-internal/src/deprecations_registry.test.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations_registry.ts b/src/core/packages/deprecations/server-internal/src/deprecations_registry.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations_registry.ts rename to src/core/packages/deprecations/server-internal/src/deprecations_registry.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations_route_handler_context.ts b/src/core/packages/deprecations/server-internal/src/deprecations_route_handler_context.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations_route_handler_context.ts rename to src/core/packages/deprecations/server-internal/src/deprecations_route_handler_context.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations_service.test.mocks.ts b/src/core/packages/deprecations/server-internal/src/deprecations_service.test.mocks.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations_service.test.mocks.ts rename to src/core/packages/deprecations/server-internal/src/deprecations_service.test.mocks.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations_service.test.ts b/src/core/packages/deprecations/server-internal/src/deprecations_service.test.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations_service.test.ts rename to src/core/packages/deprecations/server-internal/src/deprecations_service.test.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/deprecations_service.ts b/src/core/packages/deprecations/server-internal/src/deprecations_service.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/deprecations_service.ts rename to src/core/packages/deprecations/server-internal/src/deprecations_service.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/index.ts b/src/core/packages/deprecations/server-internal/src/index.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/index.ts rename to src/core/packages/deprecations/server-internal/src/index.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/internal_types.ts b/src/core/packages/deprecations/server-internal/src/internal_types.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/internal_types.ts rename to src/core/packages/deprecations/server-internal/src/internal_types.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/mocks/deprecations_factory.mock.ts b/src/core/packages/deprecations/server-internal/src/mocks/deprecations_factory.mock.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/mocks/deprecations_factory.mock.ts rename to src/core/packages/deprecations/server-internal/src/mocks/deprecations_factory.mock.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/mocks/deprecations_registry.mock.ts b/src/core/packages/deprecations/server-internal/src/mocks/deprecations_registry.mock.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/mocks/deprecations_registry.mock.ts rename to src/core/packages/deprecations/server-internal/src/mocks/deprecations_registry.mock.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/mocks/index.ts b/src/core/packages/deprecations/server-internal/src/mocks/index.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/mocks/index.ts rename to src/core/packages/deprecations/server-internal/src/mocks/index.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/routes/get.ts b/src/core/packages/deprecations/server-internal/src/routes/get.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/routes/get.ts rename to src/core/packages/deprecations/server-internal/src/routes/get.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/routes/index.ts b/src/core/packages/deprecations/server-internal/src/routes/index.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/routes/index.ts rename to src/core/packages/deprecations/server-internal/src/routes/index.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/routes/post_validation_handler.ts b/src/core/packages/deprecations/server-internal/src/routes/post_validation_handler.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/routes/post_validation_handler.ts rename to src/core/packages/deprecations/server-internal/src/routes/post_validation_handler.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/src/routes/resolve_deprecated_api.ts b/src/core/packages/deprecations/server-internal/src/routes/resolve_deprecated_api.ts similarity index 100% rename from packages/core/deprecations/core-deprecations-server-internal/src/routes/resolve_deprecated_api.ts rename to src/core/packages/deprecations/server-internal/src/routes/resolve_deprecated_api.ts diff --git a/packages/core/deprecations/core-deprecations-server-internal/tsconfig.json b/src/core/packages/deprecations/server-internal/tsconfig.json similarity index 95% rename from packages/core/deprecations/core-deprecations-server-internal/tsconfig.json rename to src/core/packages/deprecations/server-internal/tsconfig.json index 02be6b7cb8198..2d78f90659d3a 100644 --- a/packages/core/deprecations/core-deprecations-server-internal/tsconfig.json +++ b/src/core/packages/deprecations/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 44ad704190d80..61216f240d4cc 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -316,8 +316,8 @@ "@kbn/core-deprecations-common/*": ["src/core/packages/deprecations/common/*"], "@kbn/core-deprecations-server": ["src/core/packages/deprecations/server"], "@kbn/core-deprecations-server/*": ["src/core/packages/deprecations/server/*"], - "@kbn/core-deprecations-server-internal": ["packages/core/deprecations/core-deprecations-server-internal"], - "@kbn/core-deprecations-server-internal/*": ["packages/core/deprecations/core-deprecations-server-internal/*"], + "@kbn/core-deprecations-server-internal": ["src/core/packages/deprecations/server-internal"], + "@kbn/core-deprecations-server-internal/*": ["src/core/packages/deprecations/server-internal/*"], "@kbn/core-deprecations-server-mocks": ["packages/core/deprecations/core-deprecations-server-mocks"], "@kbn/core-deprecations-server-mocks/*": ["packages/core/deprecations/core-deprecations-server-mocks/*"], "@kbn/core-doc-links-browser": ["packages/core/doc-links/core-doc-links-browser"], diff --git a/yarn.lock b/yarn.lock index 6739113af89e2..7472659649773 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4441,7 +4441,7 @@ version "0.0.0" uid "" -"@kbn/core-deprecations-server-internal@link:packages/core/deprecations/core-deprecations-server-internal": +"@kbn/core-deprecations-server-internal@link:src/core/packages/deprecations/server-internal": version "0.0.0" uid "" From 7b45541f75b907bd4daddc8cc00556c6799a5e7b Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:15:59 +0100 Subject: [PATCH 025/167] Relocating module `@kbn/core-doc-links-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/doc-links/browser}/README.md | 0 .../core/packages/doc-links/browser}/index.ts | 0 .../core/packages/doc-links/browser}/jest.config.js | 4 ++-- .../core/packages/doc-links/browser}/kibana.jsonc | 0 .../core/packages/doc-links/browser}/package.json | 0 .../core/packages/doc-links/browser}/src/types.ts | 0 .../core/packages/doc-links/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/doc-links/core-doc-links-browser => src/core/packages/doc-links/browser}/README.md (100%) rename {packages/core/doc-links/core-doc-links-browser => src/core/packages/doc-links/browser}/index.ts (100%) rename {packages/core/doc-links/core-doc-links-browser => src/core/packages/doc-links/browser}/jest.config.js (84%) rename {packages/core/doc-links/core-doc-links-browser => src/core/packages/doc-links/browser}/kibana.jsonc (100%) rename {packages/core/doc-links/core-doc-links-browser => src/core/packages/doc-links/browser}/package.json (100%) rename {packages/core/doc-links/core-doc-links-browser => src/core/packages/doc-links/browser}/src/types.ts (100%) rename {packages/core/doc-links/core-doc-links-browser => src/core/packages/doc-links/browser}/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2673268365192..5c1eeb81cd521 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -72,7 +72,6 @@ packages/core/custom-branding/core-custom-branding-server-internal @elastic/appe packages/core/custom-branding/core-custom-branding-server-mocks @elastic/appex-sharedux packages/core/deprecations/core-deprecations-browser-mocks @elastic/kibana-core packages/core/deprecations/core-deprecations-server-mocks @elastic/kibana-core -packages/core/doc-links/core-doc-links-browser @elastic/kibana-core packages/core/doc-links/core-doc-links-browser-internal @elastic/kibana-core packages/core/doc-links/core-doc-links-browser-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/deprecations/browser-internal @elastic/kibana-core src/core/packages/deprecations/common @elastic/kibana-core src/core/packages/deprecations/server @elastic/kibana-core src/core/packages/deprecations/server-internal @elastic/kibana-core +src/core/packages/doc-links/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index c6d2684b04794..a31444484a30d 100644 --- a/package.json +++ b/package.json @@ -278,7 +278,7 @@ "@kbn/core-deprecations-common": "link:src/core/packages/deprecations/common", "@kbn/core-deprecations-server": "link:src/core/packages/deprecations/server", "@kbn/core-deprecations-server-internal": "link:src/core/packages/deprecations/server-internal", - "@kbn/core-doc-links-browser": "link:packages/core/doc-links/core-doc-links-browser", + "@kbn/core-doc-links-browser": "link:src/core/packages/doc-links/browser", "@kbn/core-doc-links-browser-internal": "link:packages/core/doc-links/core-doc-links-browser-internal", "@kbn/core-doc-links-server": "link:packages/core/doc-links/core-doc-links-server", "@kbn/core-doc-links-server-internal": "link:packages/core/doc-links/core-doc-links-server-internal", diff --git a/packages/core/doc-links/core-doc-links-browser/README.md b/src/core/packages/doc-links/browser/README.md similarity index 100% rename from packages/core/doc-links/core-doc-links-browser/README.md rename to src/core/packages/doc-links/browser/README.md diff --git a/packages/core/doc-links/core-doc-links-browser/index.ts b/src/core/packages/doc-links/browser/index.ts similarity index 100% rename from packages/core/doc-links/core-doc-links-browser/index.ts rename to src/core/packages/doc-links/browser/index.ts diff --git a/packages/core/doc-links/core-doc-links-browser/jest.config.js b/src/core/packages/doc-links/browser/jest.config.js similarity index 84% rename from packages/core/doc-links/core-doc-links-browser/jest.config.js rename to src/core/packages/doc-links/browser/jest.config.js index 3d1d231c2a425..22c8182a69249 100644 --- a/packages/core/doc-links/core-doc-links-browser/jest.config.js +++ b/src/core/packages/doc-links/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/doc-links/core-doc-links-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/doc-links/browser'], }; diff --git a/packages/core/doc-links/core-doc-links-browser/kibana.jsonc b/src/core/packages/doc-links/browser/kibana.jsonc similarity index 100% rename from packages/core/doc-links/core-doc-links-browser/kibana.jsonc rename to src/core/packages/doc-links/browser/kibana.jsonc diff --git a/packages/core/doc-links/core-doc-links-browser/package.json b/src/core/packages/doc-links/browser/package.json similarity index 100% rename from packages/core/doc-links/core-doc-links-browser/package.json rename to src/core/packages/doc-links/browser/package.json diff --git a/packages/core/doc-links/core-doc-links-browser/src/types.ts b/src/core/packages/doc-links/browser/src/types.ts similarity index 100% rename from packages/core/doc-links/core-doc-links-browser/src/types.ts rename to src/core/packages/doc-links/browser/src/types.ts diff --git a/packages/core/doc-links/core-doc-links-browser/tsconfig.json b/src/core/packages/doc-links/browser/tsconfig.json similarity index 82% rename from packages/core/doc-links/core-doc-links-browser/tsconfig.json rename to src/core/packages/doc-links/browser/tsconfig.json index 68b5d3d0d0194..66db56fac98b5 100644 --- a/packages/core/doc-links/core-doc-links-browser/tsconfig.json +++ b/src/core/packages/doc-links/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 61216f240d4cc..a4767d4e64be9 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -320,8 +320,8 @@ "@kbn/core-deprecations-server-internal/*": ["src/core/packages/deprecations/server-internal/*"], "@kbn/core-deprecations-server-mocks": ["packages/core/deprecations/core-deprecations-server-mocks"], "@kbn/core-deprecations-server-mocks/*": ["packages/core/deprecations/core-deprecations-server-mocks/*"], - "@kbn/core-doc-links-browser": ["packages/core/doc-links/core-doc-links-browser"], - "@kbn/core-doc-links-browser/*": ["packages/core/doc-links/core-doc-links-browser/*"], + "@kbn/core-doc-links-browser": ["src/core/packages/doc-links/browser"], + "@kbn/core-doc-links-browser/*": ["src/core/packages/doc-links/browser/*"], "@kbn/core-doc-links-browser-internal": ["packages/core/doc-links/core-doc-links-browser-internal"], "@kbn/core-doc-links-browser-internal/*": ["packages/core/doc-links/core-doc-links-browser-internal/*"], "@kbn/core-doc-links-browser-mocks": ["packages/core/doc-links/core-doc-links-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index 7472659649773..c7530b78f7582 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4461,7 +4461,7 @@ version "0.0.0" uid "" -"@kbn/core-doc-links-browser@link:packages/core/doc-links/core-doc-links-browser": +"@kbn/core-doc-links-browser@link:src/core/packages/doc-links/browser": version "0.0.0" uid "" From 76a0127d2f11eb38c728a6babbff2f27e4374815 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:16:52 +0100 Subject: [PATCH 026/167] Relocating module `@kbn/core-doc-links-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/doc-links/browser-internal}/README.md | 0 .../core/packages/doc-links/browser-internal}/index.ts | 0 .../core/packages/doc-links/browser-internal}/jest.config.js | 4 ++-- .../core/packages/doc-links/browser-internal}/kibana.jsonc | 0 .../core/packages/doc-links/browser-internal}/package.json | 0 .../browser-internal}/src/doc_links_service.test.mocks.ts | 0 .../doc-links/browser-internal}/src/doc_links_service.test.ts | 0 .../doc-links/browser-internal}/src/doc_links_service.ts | 0 .../core/packages/doc-links/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/doc-links/core-doc-links-browser-internal => src/core/packages/doc-links/browser-internal}/README.md (100%) rename {packages/core/doc-links/core-doc-links-browser-internal => src/core/packages/doc-links/browser-internal}/index.ts (100%) rename {packages/core/doc-links/core-doc-links-browser-internal => src/core/packages/doc-links/browser-internal}/jest.config.js (82%) rename {packages/core/doc-links/core-doc-links-browser-internal => src/core/packages/doc-links/browser-internal}/kibana.jsonc (100%) rename {packages/core/doc-links/core-doc-links-browser-internal => src/core/packages/doc-links/browser-internal}/package.json (100%) rename {packages/core/doc-links/core-doc-links-browser-internal => src/core/packages/doc-links/browser-internal}/src/doc_links_service.test.mocks.ts (100%) rename {packages/core/doc-links/core-doc-links-browser-internal => src/core/packages/doc-links/browser-internal}/src/doc_links_service.test.ts (100%) rename {packages/core/doc-links/core-doc-links-browser-internal => src/core/packages/doc-links/browser-internal}/src/doc_links_service.ts (100%) rename {packages/core/doc-links/core-doc-links-browser-internal => src/core/packages/doc-links/browser-internal}/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5c1eeb81cd521..d26ef9d38042e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -72,7 +72,6 @@ packages/core/custom-branding/core-custom-branding-server-internal @elastic/appe packages/core/custom-branding/core-custom-branding-server-mocks @elastic/appex-sharedux packages/core/deprecations/core-deprecations-browser-mocks @elastic/kibana-core packages/core/deprecations/core-deprecations-server-mocks @elastic/kibana-core -packages/core/doc-links/core-doc-links-browser-internal @elastic/kibana-core packages/core/doc-links/core-doc-links-browser-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-server @elastic/kibana-core packages/core/doc-links/core-doc-links-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/deprecations/common @elastic/kibana-core src/core/packages/deprecations/server @elastic/kibana-core src/core/packages/deprecations/server-internal @elastic/kibana-core src/core/packages/doc-links/browser @elastic/kibana-core +src/core/packages/doc-links/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index a31444484a30d..348a863b106c6 100644 --- a/package.json +++ b/package.json @@ -279,7 +279,7 @@ "@kbn/core-deprecations-server": "link:src/core/packages/deprecations/server", "@kbn/core-deprecations-server-internal": "link:src/core/packages/deprecations/server-internal", "@kbn/core-doc-links-browser": "link:src/core/packages/doc-links/browser", - "@kbn/core-doc-links-browser-internal": "link:packages/core/doc-links/core-doc-links-browser-internal", + "@kbn/core-doc-links-browser-internal": "link:src/core/packages/doc-links/browser-internal", "@kbn/core-doc-links-server": "link:packages/core/doc-links/core-doc-links-server", "@kbn/core-doc-links-server-internal": "link:packages/core/doc-links/core-doc-links-server-internal", "@kbn/core-elasticsearch-client-server-internal": "link:packages/core/elasticsearch/core-elasticsearch-client-server-internal", diff --git a/packages/core/doc-links/core-doc-links-browser-internal/README.md b/src/core/packages/doc-links/browser-internal/README.md similarity index 100% rename from packages/core/doc-links/core-doc-links-browser-internal/README.md rename to src/core/packages/doc-links/browser-internal/README.md diff --git a/packages/core/doc-links/core-doc-links-browser-internal/index.ts b/src/core/packages/doc-links/browser-internal/index.ts similarity index 100% rename from packages/core/doc-links/core-doc-links-browser-internal/index.ts rename to src/core/packages/doc-links/browser-internal/index.ts diff --git a/packages/core/doc-links/core-doc-links-browser-internal/jest.config.js b/src/core/packages/doc-links/browser-internal/jest.config.js similarity index 82% rename from packages/core/doc-links/core-doc-links-browser-internal/jest.config.js rename to src/core/packages/doc-links/browser-internal/jest.config.js index c03ebfca48bf8..04f16c6d82e03 100644 --- a/packages/core/doc-links/core-doc-links-browser-internal/jest.config.js +++ b/src/core/packages/doc-links/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/doc-links/core-doc-links-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/doc-links/browser-internal'], }; diff --git a/packages/core/doc-links/core-doc-links-browser-internal/kibana.jsonc b/src/core/packages/doc-links/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/doc-links/core-doc-links-browser-internal/kibana.jsonc rename to src/core/packages/doc-links/browser-internal/kibana.jsonc diff --git a/packages/core/doc-links/core-doc-links-browser-internal/package.json b/src/core/packages/doc-links/browser-internal/package.json similarity index 100% rename from packages/core/doc-links/core-doc-links-browser-internal/package.json rename to src/core/packages/doc-links/browser-internal/package.json diff --git a/packages/core/doc-links/core-doc-links-browser-internal/src/doc_links_service.test.mocks.ts b/src/core/packages/doc-links/browser-internal/src/doc_links_service.test.mocks.ts similarity index 100% rename from packages/core/doc-links/core-doc-links-browser-internal/src/doc_links_service.test.mocks.ts rename to src/core/packages/doc-links/browser-internal/src/doc_links_service.test.mocks.ts diff --git a/packages/core/doc-links/core-doc-links-browser-internal/src/doc_links_service.test.ts b/src/core/packages/doc-links/browser-internal/src/doc_links_service.test.ts similarity index 100% rename from packages/core/doc-links/core-doc-links-browser-internal/src/doc_links_service.test.ts rename to src/core/packages/doc-links/browser-internal/src/doc_links_service.test.ts diff --git a/packages/core/doc-links/core-doc-links-browser-internal/src/doc_links_service.ts b/src/core/packages/doc-links/browser-internal/src/doc_links_service.ts similarity index 100% rename from packages/core/doc-links/core-doc-links-browser-internal/src/doc_links_service.ts rename to src/core/packages/doc-links/browser-internal/src/doc_links_service.ts diff --git a/packages/core/doc-links/core-doc-links-browser-internal/tsconfig.json b/src/core/packages/doc-links/browser-internal/tsconfig.json similarity index 89% rename from packages/core/doc-links/core-doc-links-browser-internal/tsconfig.json rename to src/core/packages/doc-links/browser-internal/tsconfig.json index 45980da56c3da..b15115b1d42a2 100644 --- a/packages/core/doc-links/core-doc-links-browser-internal/tsconfig.json +++ b/src/core/packages/doc-links/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index a4767d4e64be9..36eb77640be60 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -322,8 +322,8 @@ "@kbn/core-deprecations-server-mocks/*": ["packages/core/deprecations/core-deprecations-server-mocks/*"], "@kbn/core-doc-links-browser": ["src/core/packages/doc-links/browser"], "@kbn/core-doc-links-browser/*": ["src/core/packages/doc-links/browser/*"], - "@kbn/core-doc-links-browser-internal": ["packages/core/doc-links/core-doc-links-browser-internal"], - "@kbn/core-doc-links-browser-internal/*": ["packages/core/doc-links/core-doc-links-browser-internal/*"], + "@kbn/core-doc-links-browser-internal": ["src/core/packages/doc-links/browser-internal"], + "@kbn/core-doc-links-browser-internal/*": ["src/core/packages/doc-links/browser-internal/*"], "@kbn/core-doc-links-browser-mocks": ["packages/core/doc-links/core-doc-links-browser-mocks"], "@kbn/core-doc-links-browser-mocks/*": ["packages/core/doc-links/core-doc-links-browser-mocks/*"], "@kbn/core-doc-links-server": ["packages/core/doc-links/core-doc-links-server"], diff --git a/yarn.lock b/yarn.lock index c7530b78f7582..c8c7bd8c186f8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4453,7 +4453,7 @@ version "0.0.0" uid "" -"@kbn/core-doc-links-browser-internal@link:packages/core/doc-links/core-doc-links-browser-internal": +"@kbn/core-doc-links-browser-internal@link:src/core/packages/doc-links/browser-internal": version "0.0.0" uid "" From 8b582d5a66e665ba44f6dace09d6325694faf283 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:17:44 +0100 Subject: [PATCH 027/167] Relocating module `@kbn/core-doc-links-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/doc-links/server}/README.md | 0 .../core/packages/doc-links/server}/index.ts | 0 .../core/packages/doc-links/server}/jest.config.js | 4 ++-- .../core/packages/doc-links/server}/kibana.jsonc | 0 .../core/packages/doc-links/server}/package.json | 0 .../core/packages/doc-links/server}/src/types.ts | 0 .../core/packages/doc-links/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/doc-links/core-doc-links-server => src/core/packages/doc-links/server}/README.md (100%) rename {packages/core/doc-links/core-doc-links-server => src/core/packages/doc-links/server}/index.ts (100%) rename {packages/core/doc-links/core-doc-links-server => src/core/packages/doc-links/server}/jest.config.js (84%) rename {packages/core/doc-links/core-doc-links-server => src/core/packages/doc-links/server}/kibana.jsonc (100%) rename {packages/core/doc-links/core-doc-links-server => src/core/packages/doc-links/server}/package.json (100%) rename {packages/core/doc-links/core-doc-links-server => src/core/packages/doc-links/server}/src/types.ts (100%) rename {packages/core/doc-links/core-doc-links-server => src/core/packages/doc-links/server}/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d26ef9d38042e..bc7016d4681e6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -73,7 +73,6 @@ packages/core/custom-branding/core-custom-branding-server-mocks @elastic/appex-s packages/core/deprecations/core-deprecations-browser-mocks @elastic/kibana-core packages/core/deprecations/core-deprecations-server-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-browser-mocks @elastic/kibana-core -packages/core/doc-links/core-doc-links-server @elastic/kibana-core packages/core/doc-links/core-doc-links-server-internal @elastic/kibana-core packages/core/doc-links/core-doc-links-server-mocks @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-client-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/deprecations/server @elastic/kibana-core src/core/packages/deprecations/server-internal @elastic/kibana-core src/core/packages/doc-links/browser @elastic/kibana-core src/core/packages/doc-links/browser-internal @elastic/kibana-core +src/core/packages/doc-links/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 348a863b106c6..9f8209a60c6bf 100644 --- a/package.json +++ b/package.json @@ -280,7 +280,7 @@ "@kbn/core-deprecations-server-internal": "link:src/core/packages/deprecations/server-internal", "@kbn/core-doc-links-browser": "link:src/core/packages/doc-links/browser", "@kbn/core-doc-links-browser-internal": "link:src/core/packages/doc-links/browser-internal", - "@kbn/core-doc-links-server": "link:packages/core/doc-links/core-doc-links-server", + "@kbn/core-doc-links-server": "link:src/core/packages/doc-links/server", "@kbn/core-doc-links-server-internal": "link:packages/core/doc-links/core-doc-links-server-internal", "@kbn/core-elasticsearch-client-server-internal": "link:packages/core/elasticsearch/core-elasticsearch-client-server-internal", "@kbn/core-elasticsearch-server": "link:packages/core/elasticsearch/core-elasticsearch-server", diff --git a/packages/core/doc-links/core-doc-links-server/README.md b/src/core/packages/doc-links/server/README.md similarity index 100% rename from packages/core/doc-links/core-doc-links-server/README.md rename to src/core/packages/doc-links/server/README.md diff --git a/packages/core/doc-links/core-doc-links-server/index.ts b/src/core/packages/doc-links/server/index.ts similarity index 100% rename from packages/core/doc-links/core-doc-links-server/index.ts rename to src/core/packages/doc-links/server/index.ts diff --git a/packages/core/doc-links/core-doc-links-server/jest.config.js b/src/core/packages/doc-links/server/jest.config.js similarity index 84% rename from packages/core/doc-links/core-doc-links-server/jest.config.js rename to src/core/packages/doc-links/server/jest.config.js index 5eb59ccebe703..a18b0b36de2f1 100644 --- a/packages/core/doc-links/core-doc-links-server/jest.config.js +++ b/src/core/packages/doc-links/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/doc-links/core-doc-links-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/doc-links/server'], }; diff --git a/packages/core/doc-links/core-doc-links-server/kibana.jsonc b/src/core/packages/doc-links/server/kibana.jsonc similarity index 100% rename from packages/core/doc-links/core-doc-links-server/kibana.jsonc rename to src/core/packages/doc-links/server/kibana.jsonc diff --git a/packages/core/doc-links/core-doc-links-server/package.json b/src/core/packages/doc-links/server/package.json similarity index 100% rename from packages/core/doc-links/core-doc-links-server/package.json rename to src/core/packages/doc-links/server/package.json diff --git a/packages/core/doc-links/core-doc-links-server/src/types.ts b/src/core/packages/doc-links/server/src/types.ts similarity index 100% rename from packages/core/doc-links/core-doc-links-server/src/types.ts rename to src/core/packages/doc-links/server/src/types.ts diff --git a/packages/core/doc-links/core-doc-links-server/tsconfig.json b/src/core/packages/doc-links/server/tsconfig.json similarity index 82% rename from packages/core/doc-links/core-doc-links-server/tsconfig.json rename to src/core/packages/doc-links/server/tsconfig.json index 68b5d3d0d0194..66db56fac98b5 100644 --- a/packages/core/doc-links/core-doc-links-server/tsconfig.json +++ b/src/core/packages/doc-links/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 36eb77640be60..7d7071d063608 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -326,8 +326,8 @@ "@kbn/core-doc-links-browser-internal/*": ["src/core/packages/doc-links/browser-internal/*"], "@kbn/core-doc-links-browser-mocks": ["packages/core/doc-links/core-doc-links-browser-mocks"], "@kbn/core-doc-links-browser-mocks/*": ["packages/core/doc-links/core-doc-links-browser-mocks/*"], - "@kbn/core-doc-links-server": ["packages/core/doc-links/core-doc-links-server"], - "@kbn/core-doc-links-server/*": ["packages/core/doc-links/core-doc-links-server/*"], + "@kbn/core-doc-links-server": ["src/core/packages/doc-links/server"], + "@kbn/core-doc-links-server/*": ["src/core/packages/doc-links/server/*"], "@kbn/core-doc-links-server-internal": ["packages/core/doc-links/core-doc-links-server-internal"], "@kbn/core-doc-links-server-internal/*": ["packages/core/doc-links/core-doc-links-server-internal/*"], "@kbn/core-doc-links-server-mocks": ["packages/core/doc-links/core-doc-links-server-mocks"], diff --git a/yarn.lock b/yarn.lock index c8c7bd8c186f8..fc35ad58cca64 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4473,7 +4473,7 @@ version "0.0.0" uid "" -"@kbn/core-doc-links-server@link:packages/core/doc-links/core-doc-links-server": +"@kbn/core-doc-links-server@link:src/core/packages/doc-links/server": version "0.0.0" uid "" From 59630a7d423e246a8fe60a96f2185edb8f65df88 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:18:35 +0100 Subject: [PATCH 028/167] Relocating module `@kbn/core-doc-links-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/doc-links/server-internal}/README.md | 0 .../core/packages/doc-links/server-internal}/index.ts | 0 .../core/packages/doc-links/server-internal}/jest.config.js | 4 ++-- .../core/packages/doc-links/server-internal}/kibana.jsonc | 0 .../core/packages/doc-links/server-internal}/package.json | 0 .../server-internal}/src/doc_links_service.test.mocks.ts | 0 .../doc-links/server-internal}/src/doc_links_service.test.ts | 0 .../doc-links/server-internal}/src/doc_links_service.ts | 0 .../core/packages/doc-links/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/doc-links/core-doc-links-server-internal => src/core/packages/doc-links/server-internal}/README.md (100%) rename {packages/core/doc-links/core-doc-links-server-internal => src/core/packages/doc-links/server-internal}/index.ts (100%) rename {packages/core/doc-links/core-doc-links-server-internal => src/core/packages/doc-links/server-internal}/jest.config.js (83%) rename {packages/core/doc-links/core-doc-links-server-internal => src/core/packages/doc-links/server-internal}/kibana.jsonc (100%) rename {packages/core/doc-links/core-doc-links-server-internal => src/core/packages/doc-links/server-internal}/package.json (100%) rename {packages/core/doc-links/core-doc-links-server-internal => src/core/packages/doc-links/server-internal}/src/doc_links_service.test.mocks.ts (100%) rename {packages/core/doc-links/core-doc-links-server-internal => src/core/packages/doc-links/server-internal}/src/doc_links_service.test.ts (100%) rename {packages/core/doc-links/core-doc-links-server-internal => src/core/packages/doc-links/server-internal}/src/doc_links_service.ts (100%) rename {packages/core/doc-links/core-doc-links-server-internal => src/core/packages/doc-links/server-internal}/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index bc7016d4681e6..dcb2569e9b3af 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -73,7 +73,6 @@ packages/core/custom-branding/core-custom-branding-server-mocks @elastic/appex-s packages/core/deprecations/core-deprecations-browser-mocks @elastic/kibana-core packages/core/deprecations/core-deprecations-server-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-browser-mocks @elastic/kibana-core -packages/core/doc-links/core-doc-links-server-internal @elastic/kibana-core packages/core/doc-links/core-doc-links-server-mocks @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-client-server-internal @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-client-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/deprecations/server-internal @elastic/kibana-core src/core/packages/doc-links/browser @elastic/kibana-core src/core/packages/doc-links/browser-internal @elastic/kibana-core src/core/packages/doc-links/server @elastic/kibana-core +src/core/packages/doc-links/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 9f8209a60c6bf..c5c562c81f7be 100644 --- a/package.json +++ b/package.json @@ -281,7 +281,7 @@ "@kbn/core-doc-links-browser": "link:src/core/packages/doc-links/browser", "@kbn/core-doc-links-browser-internal": "link:src/core/packages/doc-links/browser-internal", "@kbn/core-doc-links-server": "link:src/core/packages/doc-links/server", - "@kbn/core-doc-links-server-internal": "link:packages/core/doc-links/core-doc-links-server-internal", + "@kbn/core-doc-links-server-internal": "link:src/core/packages/doc-links/server-internal", "@kbn/core-elasticsearch-client-server-internal": "link:packages/core/elasticsearch/core-elasticsearch-client-server-internal", "@kbn/core-elasticsearch-server": "link:packages/core/elasticsearch/core-elasticsearch-server", "@kbn/core-elasticsearch-server-internal": "link:packages/core/elasticsearch/core-elasticsearch-server-internal", diff --git a/packages/core/doc-links/core-doc-links-server-internal/README.md b/src/core/packages/doc-links/server-internal/README.md similarity index 100% rename from packages/core/doc-links/core-doc-links-server-internal/README.md rename to src/core/packages/doc-links/server-internal/README.md diff --git a/packages/core/doc-links/core-doc-links-server-internal/index.ts b/src/core/packages/doc-links/server-internal/index.ts similarity index 100% rename from packages/core/doc-links/core-doc-links-server-internal/index.ts rename to src/core/packages/doc-links/server-internal/index.ts diff --git a/packages/core/doc-links/core-doc-links-server-internal/jest.config.js b/src/core/packages/doc-links/server-internal/jest.config.js similarity index 83% rename from packages/core/doc-links/core-doc-links-server-internal/jest.config.js rename to src/core/packages/doc-links/server-internal/jest.config.js index ed7ced2e2b004..676bde76eb6fd 100644 --- a/packages/core/doc-links/core-doc-links-server-internal/jest.config.js +++ b/src/core/packages/doc-links/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/doc-links/core-doc-links-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/doc-links/server-internal'], }; diff --git a/packages/core/doc-links/core-doc-links-server-internal/kibana.jsonc b/src/core/packages/doc-links/server-internal/kibana.jsonc similarity index 100% rename from packages/core/doc-links/core-doc-links-server-internal/kibana.jsonc rename to src/core/packages/doc-links/server-internal/kibana.jsonc diff --git a/packages/core/doc-links/core-doc-links-server-internal/package.json b/src/core/packages/doc-links/server-internal/package.json similarity index 100% rename from packages/core/doc-links/core-doc-links-server-internal/package.json rename to src/core/packages/doc-links/server-internal/package.json diff --git a/packages/core/doc-links/core-doc-links-server-internal/src/doc_links_service.test.mocks.ts b/src/core/packages/doc-links/server-internal/src/doc_links_service.test.mocks.ts similarity index 100% rename from packages/core/doc-links/core-doc-links-server-internal/src/doc_links_service.test.mocks.ts rename to src/core/packages/doc-links/server-internal/src/doc_links_service.test.mocks.ts diff --git a/packages/core/doc-links/core-doc-links-server-internal/src/doc_links_service.test.ts b/src/core/packages/doc-links/server-internal/src/doc_links_service.test.ts similarity index 100% rename from packages/core/doc-links/core-doc-links-server-internal/src/doc_links_service.test.ts rename to src/core/packages/doc-links/server-internal/src/doc_links_service.test.ts diff --git a/packages/core/doc-links/core-doc-links-server-internal/src/doc_links_service.ts b/src/core/packages/doc-links/server-internal/src/doc_links_service.ts similarity index 100% rename from packages/core/doc-links/core-doc-links-server-internal/src/doc_links_service.ts rename to src/core/packages/doc-links/server-internal/src/doc_links_service.ts diff --git a/packages/core/doc-links/core-doc-links-server-internal/tsconfig.json b/src/core/packages/doc-links/server-internal/tsconfig.json similarity index 87% rename from packages/core/doc-links/core-doc-links-server-internal/tsconfig.json rename to src/core/packages/doc-links/server-internal/tsconfig.json index 2cbc824289c1f..af1574cfb3bd3 100644 --- a/packages/core/doc-links/core-doc-links-server-internal/tsconfig.json +++ b/src/core/packages/doc-links/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 7d7071d063608..96c67d7a2083e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -328,8 +328,8 @@ "@kbn/core-doc-links-browser-mocks/*": ["packages/core/doc-links/core-doc-links-browser-mocks/*"], "@kbn/core-doc-links-server": ["src/core/packages/doc-links/server"], "@kbn/core-doc-links-server/*": ["src/core/packages/doc-links/server/*"], - "@kbn/core-doc-links-server-internal": ["packages/core/doc-links/core-doc-links-server-internal"], - "@kbn/core-doc-links-server-internal/*": ["packages/core/doc-links/core-doc-links-server-internal/*"], + "@kbn/core-doc-links-server-internal": ["src/core/packages/doc-links/server-internal"], + "@kbn/core-doc-links-server-internal/*": ["src/core/packages/doc-links/server-internal/*"], "@kbn/core-doc-links-server-mocks": ["packages/core/doc-links/core-doc-links-server-mocks"], "@kbn/core-doc-links-server-mocks/*": ["packages/core/doc-links/core-doc-links-server-mocks/*"], "@kbn/core-elasticsearch-client-server-internal": ["packages/core/elasticsearch/core-elasticsearch-client-server-internal"], diff --git a/yarn.lock b/yarn.lock index fc35ad58cca64..31a9f6a3ec0e9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4465,7 +4465,7 @@ version "0.0.0" uid "" -"@kbn/core-doc-links-server-internal@link:packages/core/doc-links/core-doc-links-server-internal": +"@kbn/core-doc-links-server-internal@link:src/core/packages/doc-links/server-internal": version "0.0.0" uid "" From 3234615b4f0ca998d620848bea8028e393cd7758 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:19:28 +0100 Subject: [PATCH 029/167] Relocating module `@kbn/core-elasticsearch-client-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/elasticsearch/client-server-internal}/README.md | 0 .../packages/elasticsearch/client-server-internal}/index.ts | 0 .../elasticsearch/client-server-internal}/jest.config.js | 4 ++-- .../elasticsearch/client-server-internal}/kibana.jsonc | 0 .../elasticsearch/client-server-internal}/package.json | 0 .../client-server-internal}/src/agent_manager.test.ts | 0 .../client-server-internal}/src/agent_manager.ts | 0 .../client-server-internal}/src/client_config.test.ts | 0 .../client-server-internal}/src/client_config.ts | 0 .../client-server-internal}/src/cluster_client.test.mocks.ts | 0 .../client-server-internal}/src/cluster_client.test.ts | 0 .../client-server-internal}/src/cluster_client.ts | 0 .../src/configure_client.test.mocks.ts | 0 .../client-server-internal}/src/configure_client.test.ts | 0 .../client-server-internal}/src/configure_client.ts | 0 .../src/create_transport.test.mocks.ts | 0 .../client-server-internal}/src/create_transport.test.ts | 0 .../client-server-internal}/src/create_transport.ts | 0 .../src/get_agents_sockets_stats.test.mocks.ts | 0 .../src/get_agents_sockets_stats.test.ts | 0 .../client-server-internal}/src/get_agents_sockets_stats.ts | 0 .../client-server-internal}/src/get_ecs_response_log.test.ts | 0 .../client-server-internal}/src/get_ecs_response_log.ts | 0 .../elasticsearch/client-server-internal}/src/headers.ts | 0 .../src/log_query_and_deprecation.test.ts | 0 .../client-server-internal}/src/log_query_and_deprecation.ts | 0 .../elasticsearch/client-server-internal}/src/patch_client.ts | 0 .../client-server-internal}/src/retry_unauthorized.test.ts | 0 .../client-server-internal}/src/retry_unauthorized.ts | 0 .../client-server-internal}/src/scoped_cluster_client.test.ts | 0 .../client-server-internal}/src/scoped_cluster_client.ts | 0 .../elasticsearch/client-server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 36 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/README.md (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/index.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/jest.config.js (81%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/kibana.jsonc (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/package.json (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/agent_manager.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/agent_manager.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/client_config.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/client_config.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/cluster_client.test.mocks.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/cluster_client.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/cluster_client.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/configure_client.test.mocks.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/configure_client.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/configure_client.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/create_transport.test.mocks.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/create_transport.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/create_transport.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/get_agents_sockets_stats.test.mocks.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/get_agents_sockets_stats.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/get_agents_sockets_stats.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/get_ecs_response_log.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/get_ecs_response_log.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/headers.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/log_query_and_deprecation.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/log_query_and_deprecation.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/patch_client.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/retry_unauthorized.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/retry_unauthorized.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/scoped_cluster_client.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/src/scoped_cluster_client.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-client-server-internal => src/core/packages/elasticsearch/client-server-internal}/tsconfig.json (91%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dcb2569e9b3af..8123c18f325d0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -74,7 +74,6 @@ packages/core/deprecations/core-deprecations-browser-mocks @elastic/kibana-core packages/core/deprecations/core-deprecations-server-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-browser-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-server-mocks @elastic/kibana-core -packages/core/elasticsearch/core-elasticsearch-client-server-internal @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-client-server-mocks @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-server @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/doc-links/browser @elastic/kibana-core src/core/packages/doc-links/browser-internal @elastic/kibana-core src/core/packages/doc-links/server @elastic/kibana-core src/core/packages/doc-links/server-internal @elastic/kibana-core +src/core/packages/elasticsearch/client-server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index c5c562c81f7be..0a871f8d08e84 100644 --- a/package.json +++ b/package.json @@ -282,7 +282,7 @@ "@kbn/core-doc-links-browser-internal": "link:src/core/packages/doc-links/browser-internal", "@kbn/core-doc-links-server": "link:src/core/packages/doc-links/server", "@kbn/core-doc-links-server-internal": "link:src/core/packages/doc-links/server-internal", - "@kbn/core-elasticsearch-client-server-internal": "link:packages/core/elasticsearch/core-elasticsearch-client-server-internal", + "@kbn/core-elasticsearch-client-server-internal": "link:src/core/packages/elasticsearch/client-server-internal", "@kbn/core-elasticsearch-server": "link:packages/core/elasticsearch/core-elasticsearch-server", "@kbn/core-elasticsearch-server-internal": "link:packages/core/elasticsearch/core-elasticsearch-server-internal", "@kbn/core-environment-server-internal": "link:packages/core/environment/core-environment-server-internal", diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/README.md b/src/core/packages/elasticsearch/client-server-internal/README.md similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/README.md rename to src/core/packages/elasticsearch/client-server-internal/README.md diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/index.ts b/src/core/packages/elasticsearch/client-server-internal/index.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/index.ts rename to src/core/packages/elasticsearch/client-server-internal/index.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/jest.config.js b/src/core/packages/elasticsearch/client-server-internal/jest.config.js similarity index 81% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/jest.config.js rename to src/core/packages/elasticsearch/client-server-internal/jest.config.js index dfca4bfa9f2fb..7f148d35a38ee 100644 --- a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/jest.config.js +++ b/src/core/packages/elasticsearch/client-server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/elasticsearch/core-elasticsearch-client-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/elasticsearch/client-server-internal'], }; diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/kibana.jsonc b/src/core/packages/elasticsearch/client-server-internal/kibana.jsonc similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/kibana.jsonc rename to src/core/packages/elasticsearch/client-server-internal/kibana.jsonc diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/package.json b/src/core/packages/elasticsearch/client-server-internal/package.json similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/package.json rename to src/core/packages/elasticsearch/client-server-internal/package.json diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/agent_manager.test.ts b/src/core/packages/elasticsearch/client-server-internal/src/agent_manager.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/agent_manager.test.ts rename to src/core/packages/elasticsearch/client-server-internal/src/agent_manager.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/agent_manager.ts b/src/core/packages/elasticsearch/client-server-internal/src/agent_manager.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/agent_manager.ts rename to src/core/packages/elasticsearch/client-server-internal/src/agent_manager.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/client_config.test.ts b/src/core/packages/elasticsearch/client-server-internal/src/client_config.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/client_config.test.ts rename to src/core/packages/elasticsearch/client-server-internal/src/client_config.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/client_config.ts b/src/core/packages/elasticsearch/client-server-internal/src/client_config.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/client_config.ts rename to src/core/packages/elasticsearch/client-server-internal/src/client_config.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/cluster_client.test.mocks.ts b/src/core/packages/elasticsearch/client-server-internal/src/cluster_client.test.mocks.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/cluster_client.test.mocks.ts rename to src/core/packages/elasticsearch/client-server-internal/src/cluster_client.test.mocks.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/cluster_client.test.ts b/src/core/packages/elasticsearch/client-server-internal/src/cluster_client.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/cluster_client.test.ts rename to src/core/packages/elasticsearch/client-server-internal/src/cluster_client.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/cluster_client.ts b/src/core/packages/elasticsearch/client-server-internal/src/cluster_client.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/cluster_client.ts rename to src/core/packages/elasticsearch/client-server-internal/src/cluster_client.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/configure_client.test.mocks.ts b/src/core/packages/elasticsearch/client-server-internal/src/configure_client.test.mocks.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/configure_client.test.mocks.ts rename to src/core/packages/elasticsearch/client-server-internal/src/configure_client.test.mocks.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/configure_client.test.ts b/src/core/packages/elasticsearch/client-server-internal/src/configure_client.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/configure_client.test.ts rename to src/core/packages/elasticsearch/client-server-internal/src/configure_client.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/configure_client.ts b/src/core/packages/elasticsearch/client-server-internal/src/configure_client.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/configure_client.ts rename to src/core/packages/elasticsearch/client-server-internal/src/configure_client.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/create_transport.test.mocks.ts b/src/core/packages/elasticsearch/client-server-internal/src/create_transport.test.mocks.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/create_transport.test.mocks.ts rename to src/core/packages/elasticsearch/client-server-internal/src/create_transport.test.mocks.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/create_transport.test.ts b/src/core/packages/elasticsearch/client-server-internal/src/create_transport.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/create_transport.test.ts rename to src/core/packages/elasticsearch/client-server-internal/src/create_transport.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/create_transport.ts b/src/core/packages/elasticsearch/client-server-internal/src/create_transport.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/create_transport.ts rename to src/core/packages/elasticsearch/client-server-internal/src/create_transport.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/get_agents_sockets_stats.test.mocks.ts b/src/core/packages/elasticsearch/client-server-internal/src/get_agents_sockets_stats.test.mocks.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/get_agents_sockets_stats.test.mocks.ts rename to src/core/packages/elasticsearch/client-server-internal/src/get_agents_sockets_stats.test.mocks.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/get_agents_sockets_stats.test.ts b/src/core/packages/elasticsearch/client-server-internal/src/get_agents_sockets_stats.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/get_agents_sockets_stats.test.ts rename to src/core/packages/elasticsearch/client-server-internal/src/get_agents_sockets_stats.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/get_agents_sockets_stats.ts b/src/core/packages/elasticsearch/client-server-internal/src/get_agents_sockets_stats.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/get_agents_sockets_stats.ts rename to src/core/packages/elasticsearch/client-server-internal/src/get_agents_sockets_stats.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/get_ecs_response_log.test.ts b/src/core/packages/elasticsearch/client-server-internal/src/get_ecs_response_log.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/get_ecs_response_log.test.ts rename to src/core/packages/elasticsearch/client-server-internal/src/get_ecs_response_log.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/get_ecs_response_log.ts b/src/core/packages/elasticsearch/client-server-internal/src/get_ecs_response_log.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/get_ecs_response_log.ts rename to src/core/packages/elasticsearch/client-server-internal/src/get_ecs_response_log.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/headers.ts b/src/core/packages/elasticsearch/client-server-internal/src/headers.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/headers.ts rename to src/core/packages/elasticsearch/client-server-internal/src/headers.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/log_query_and_deprecation.test.ts b/src/core/packages/elasticsearch/client-server-internal/src/log_query_and_deprecation.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/log_query_and_deprecation.test.ts rename to src/core/packages/elasticsearch/client-server-internal/src/log_query_and_deprecation.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/log_query_and_deprecation.ts b/src/core/packages/elasticsearch/client-server-internal/src/log_query_and_deprecation.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/log_query_and_deprecation.ts rename to src/core/packages/elasticsearch/client-server-internal/src/log_query_and_deprecation.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/patch_client.ts b/src/core/packages/elasticsearch/client-server-internal/src/patch_client.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/patch_client.ts rename to src/core/packages/elasticsearch/client-server-internal/src/patch_client.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/retry_unauthorized.test.ts b/src/core/packages/elasticsearch/client-server-internal/src/retry_unauthorized.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/retry_unauthorized.test.ts rename to src/core/packages/elasticsearch/client-server-internal/src/retry_unauthorized.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/retry_unauthorized.ts b/src/core/packages/elasticsearch/client-server-internal/src/retry_unauthorized.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/retry_unauthorized.ts rename to src/core/packages/elasticsearch/client-server-internal/src/retry_unauthorized.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/scoped_cluster_client.test.ts b/src/core/packages/elasticsearch/client-server-internal/src/scoped_cluster_client.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/scoped_cluster_client.test.ts rename to src/core/packages/elasticsearch/client-server-internal/src/scoped_cluster_client.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/scoped_cluster_client.ts b/src/core/packages/elasticsearch/client-server-internal/src/scoped_cluster_client.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/src/scoped_cluster_client.ts rename to src/core/packages/elasticsearch/client-server-internal/src/scoped_cluster_client.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/tsconfig.json b/src/core/packages/elasticsearch/client-server-internal/tsconfig.json similarity index 91% rename from packages/core/elasticsearch/core-elasticsearch-client-server-internal/tsconfig.json rename to src/core/packages/elasticsearch/client-server-internal/tsconfig.json index de4169d034e65..4aeb745085e64 100644 --- a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/tsconfig.json +++ b/src/core/packages/elasticsearch/client-server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 96c67d7a2083e..d9efbb5218311 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -332,8 +332,8 @@ "@kbn/core-doc-links-server-internal/*": ["src/core/packages/doc-links/server-internal/*"], "@kbn/core-doc-links-server-mocks": ["packages/core/doc-links/core-doc-links-server-mocks"], "@kbn/core-doc-links-server-mocks/*": ["packages/core/doc-links/core-doc-links-server-mocks/*"], - "@kbn/core-elasticsearch-client-server-internal": ["packages/core/elasticsearch/core-elasticsearch-client-server-internal"], - "@kbn/core-elasticsearch-client-server-internal/*": ["packages/core/elasticsearch/core-elasticsearch-client-server-internal/*"], + "@kbn/core-elasticsearch-client-server-internal": ["src/core/packages/elasticsearch/client-server-internal"], + "@kbn/core-elasticsearch-client-server-internal/*": ["src/core/packages/elasticsearch/client-server-internal/*"], "@kbn/core-elasticsearch-client-server-mocks": ["packages/core/elasticsearch/core-elasticsearch-client-server-mocks"], "@kbn/core-elasticsearch-client-server-mocks/*": ["packages/core/elasticsearch/core-elasticsearch-client-server-mocks/*"], "@kbn/core-elasticsearch-server": ["packages/core/elasticsearch/core-elasticsearch-server"], diff --git a/yarn.lock b/yarn.lock index 31a9f6a3ec0e9..a890f54d4ce54 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4477,7 +4477,7 @@ version "0.0.0" uid "" -"@kbn/core-elasticsearch-client-server-internal@link:packages/core/elasticsearch/core-elasticsearch-client-server-internal": +"@kbn/core-elasticsearch-client-server-internal@link:src/core/packages/elasticsearch/client-server-internal": version "0.0.0" uid "" From fefbd24e3515b075aea8d8c76c34a416a212ee62 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:20:21 +0100 Subject: [PATCH 030/167] Relocating module `@kbn/core-elasticsearch-server` --- .github/CODEOWNERS | 2 +- .../architecture/core/patterns-scoped-services.asciidoc | 2 +- package.json | 2 +- .../core/packages/elasticsearch/server}/README.md | 0 .../core/packages/elasticsearch/server}/index.ts | 0 .../core/packages/elasticsearch/server}/jest.config.js | 4 ++-- .../core/packages/elasticsearch/server}/kibana.jsonc | 0 .../core/packages/elasticsearch/server}/package.json | 0 .../core/packages/elasticsearch/server}/src/client/client.ts | 0 .../elasticsearch/server}/src/client/client_config.ts | 0 .../elasticsearch/server}/src/client/cluster_client.ts | 0 .../core/packages/elasticsearch/server}/src/client/index.ts | 0 .../elasticsearch/server}/src/client/scopeable_request.ts | 0 .../elasticsearch/server}/src/client/scoped_cluster_client.ts | 0 .../server}/src/client/unauthorized_error_handler.ts | 0 .../core/packages/elasticsearch/server}/src/contracts.ts | 0 .../elasticsearch/server}/src/elasticsearch_config.ts | 0 .../elasticsearch/server}/src/request_handler_context.ts | 0 .../core/packages/elasticsearch/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 21 files changed, 9 insertions(+), 9 deletions(-) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/README.md (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/index.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/jest.config.js (83%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/kibana.jsonc (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/package.json (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/src/client/client.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/src/client/client_config.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/src/client/cluster_client.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/src/client/index.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/src/client/scopeable_request.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/src/client/scoped_cluster_client.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/src/client/unauthorized_error_handler.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/src/contracts.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/src/elasticsearch_config.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/src/request_handler_context.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server => src/core/packages/elasticsearch/server}/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8123c18f325d0..fd1d59a475ff4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -75,7 +75,6 @@ packages/core/deprecations/core-deprecations-server-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-browser-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-server-mocks @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-client-server-mocks @elastic/kibana-core -packages/core/elasticsearch/core-elasticsearch-server @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-server-internal @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-server-mocks @elastic/kibana-core packages/core/environment/core-environment-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/doc-links/browser-internal @elastic/kibana-core src/core/packages/doc-links/server @elastic/kibana-core src/core/packages/doc-links/server-internal @elastic/kibana-core src/core/packages/elasticsearch/client-server-internal @elastic/kibana-core +src/core/packages/elasticsearch/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/docs/developer/architecture/core/patterns-scoped-services.asciidoc b/docs/developer/architecture/core/patterns-scoped-services.asciidoc index ba993a6da3af3..47cbd4cd1d4a6 100644 --- a/docs/developer/architecture/core/patterns-scoped-services.asciidoc +++ b/docs/developer/architecture/core/patterns-scoped-services.asciidoc @@ -19,7 +19,7 @@ async function handler(context, req, res) { The {kib-repo}/blob/8.9/packages/core/http/core-http-server/src/router/request_handler.ts[request handler context] exposes the following scoped *core* services: * {kib-repo}/blob/8.9/packages/core/saved-objects/core-saved-objects-api-server/src/saved_objects_client.ts[`context.savedObjects.client`] -* {kib-repo}/blob/8.9/packages/core/elasticsearch/core-elasticsearch-server/src/client/scoped_cluster_client.ts[`context.elasticsearch.client`] +* {kib-repo}/blob/8.9/src/core/packages/elasticsearch/server/src/client/scoped_cluster_client.ts[`context.elasticsearch.client`] * {kib-repo}/blob/8.9/packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts[`context.uiSettings.client`] ==== Declare a custom scoped service diff --git a/package.json b/package.json index 0a871f8d08e84..16074921f159e 100644 --- a/package.json +++ b/package.json @@ -283,7 +283,7 @@ "@kbn/core-doc-links-server": "link:src/core/packages/doc-links/server", "@kbn/core-doc-links-server-internal": "link:src/core/packages/doc-links/server-internal", "@kbn/core-elasticsearch-client-server-internal": "link:src/core/packages/elasticsearch/client-server-internal", - "@kbn/core-elasticsearch-server": "link:packages/core/elasticsearch/core-elasticsearch-server", + "@kbn/core-elasticsearch-server": "link:src/core/packages/elasticsearch/server", "@kbn/core-elasticsearch-server-internal": "link:packages/core/elasticsearch/core-elasticsearch-server-internal", "@kbn/core-environment-server-internal": "link:packages/core/environment/core-environment-server-internal", "@kbn/core-execution-context-browser": "link:packages/core/execution-context/core-execution-context-browser", diff --git a/packages/core/elasticsearch/core-elasticsearch-server/README.md b/src/core/packages/elasticsearch/server/README.md similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/README.md rename to src/core/packages/elasticsearch/server/README.md diff --git a/packages/core/elasticsearch/core-elasticsearch-server/index.ts b/src/core/packages/elasticsearch/server/index.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/index.ts rename to src/core/packages/elasticsearch/server/index.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server/jest.config.js b/src/core/packages/elasticsearch/server/jest.config.js similarity index 83% rename from packages/core/elasticsearch/core-elasticsearch-server/jest.config.js rename to src/core/packages/elasticsearch/server/jest.config.js index 3347a82821f2c..82501a4eeb0d4 100644 --- a/packages/core/elasticsearch/core-elasticsearch-server/jest.config.js +++ b/src/core/packages/elasticsearch/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/elasticsearch/core-elasticsearch-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/elasticsearch/server'], }; diff --git a/packages/core/elasticsearch/core-elasticsearch-server/kibana.jsonc b/src/core/packages/elasticsearch/server/kibana.jsonc similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/kibana.jsonc rename to src/core/packages/elasticsearch/server/kibana.jsonc diff --git a/packages/core/elasticsearch/core-elasticsearch-server/package.json b/src/core/packages/elasticsearch/server/package.json similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/package.json rename to src/core/packages/elasticsearch/server/package.json diff --git a/packages/core/elasticsearch/core-elasticsearch-server/src/client/client.ts b/src/core/packages/elasticsearch/server/src/client/client.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/src/client/client.ts rename to src/core/packages/elasticsearch/server/src/client/client.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server/src/client/client_config.ts b/src/core/packages/elasticsearch/server/src/client/client_config.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/src/client/client_config.ts rename to src/core/packages/elasticsearch/server/src/client/client_config.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server/src/client/cluster_client.ts b/src/core/packages/elasticsearch/server/src/client/cluster_client.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/src/client/cluster_client.ts rename to src/core/packages/elasticsearch/server/src/client/cluster_client.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server/src/client/index.ts b/src/core/packages/elasticsearch/server/src/client/index.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/src/client/index.ts rename to src/core/packages/elasticsearch/server/src/client/index.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server/src/client/scopeable_request.ts b/src/core/packages/elasticsearch/server/src/client/scopeable_request.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/src/client/scopeable_request.ts rename to src/core/packages/elasticsearch/server/src/client/scopeable_request.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server/src/client/scoped_cluster_client.ts b/src/core/packages/elasticsearch/server/src/client/scoped_cluster_client.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/src/client/scoped_cluster_client.ts rename to src/core/packages/elasticsearch/server/src/client/scoped_cluster_client.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server/src/client/unauthorized_error_handler.ts b/src/core/packages/elasticsearch/server/src/client/unauthorized_error_handler.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/src/client/unauthorized_error_handler.ts rename to src/core/packages/elasticsearch/server/src/client/unauthorized_error_handler.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server/src/contracts.ts b/src/core/packages/elasticsearch/server/src/contracts.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/src/contracts.ts rename to src/core/packages/elasticsearch/server/src/contracts.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server/src/elasticsearch_config.ts b/src/core/packages/elasticsearch/server/src/elasticsearch_config.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/src/elasticsearch_config.ts rename to src/core/packages/elasticsearch/server/src/elasticsearch_config.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server/src/request_handler_context.ts b/src/core/packages/elasticsearch/server/src/request_handler_context.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server/src/request_handler_context.ts rename to src/core/packages/elasticsearch/server/src/request_handler_context.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server/tsconfig.json b/src/core/packages/elasticsearch/server/tsconfig.json similarity index 86% rename from packages/core/elasticsearch/core-elasticsearch-server/tsconfig.json rename to src/core/packages/elasticsearch/server/tsconfig.json index c3320c12cff9b..449a51eb2683a 100644 --- a/packages/core/elasticsearch/core-elasticsearch-server/tsconfig.json +++ b/src/core/packages/elasticsearch/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index d9efbb5218311..ce7f4b059cee0 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -336,8 +336,8 @@ "@kbn/core-elasticsearch-client-server-internal/*": ["src/core/packages/elasticsearch/client-server-internal/*"], "@kbn/core-elasticsearch-client-server-mocks": ["packages/core/elasticsearch/core-elasticsearch-client-server-mocks"], "@kbn/core-elasticsearch-client-server-mocks/*": ["packages/core/elasticsearch/core-elasticsearch-client-server-mocks/*"], - "@kbn/core-elasticsearch-server": ["packages/core/elasticsearch/core-elasticsearch-server"], - "@kbn/core-elasticsearch-server/*": ["packages/core/elasticsearch/core-elasticsearch-server/*"], + "@kbn/core-elasticsearch-server": ["src/core/packages/elasticsearch/server"], + "@kbn/core-elasticsearch-server/*": ["src/core/packages/elasticsearch/server/*"], "@kbn/core-elasticsearch-server-internal": ["packages/core/elasticsearch/core-elasticsearch-server-internal"], "@kbn/core-elasticsearch-server-internal/*": ["packages/core/elasticsearch/core-elasticsearch-server-internal/*"], "@kbn/core-elasticsearch-server-mocks": ["packages/core/elasticsearch/core-elasticsearch-server-mocks"], diff --git a/yarn.lock b/yarn.lock index a890f54d4ce54..44784fd029678 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4493,7 +4493,7 @@ version "0.0.0" uid "" -"@kbn/core-elasticsearch-server@link:packages/core/elasticsearch/core-elasticsearch-server": +"@kbn/core-elasticsearch-server@link:src/core/packages/elasticsearch/server": version "0.0.0" uid "" From 21ea1981ccb380a490b85fc14021bdca6a5d8d1d Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:21:14 +0100 Subject: [PATCH 031/167] Relocating module `@kbn/core-elasticsearch-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/elasticsearch/server-internal}/README.md | 0 .../core/packages/elasticsearch/server-internal}/index.ts | 0 .../packages/elasticsearch/server-internal}/jest.config.js | 4 ++-- .../core/packages/elasticsearch/server-internal}/kibana.jsonc | 0 .../core/packages/elasticsearch/server-internal}/package.json | 0 .../server-internal}/src/default_headers.test.ts | 0 .../elasticsearch/server-internal}/src/default_headers.ts | 0 .../server-internal}/src/elasticsearch_config.test.mocks.ts | 0 .../server-internal}/src/elasticsearch_config.test.ts | 0 .../server-internal}/src/elasticsearch_config.ts | 0 .../src/elasticsearch_route_handler_context.ts | 0 .../server-internal}/src/elasticsearch_service.test.mocks.ts | 0 .../server-internal}/src/elasticsearch_service.test.ts | 0 .../server-internal}/src/elasticsearch_service.ts | 0 .../server-internal}/src/get_capabilities.test.ts | 0 .../elasticsearch/server-internal}/src/get_capabilities.ts | 0 .../server-internal}/src/get_cluster_info.test.ts | 0 .../elasticsearch/server-internal}/src/get_cluster_info.ts | 0 .../server-internal}/src/is_scripting_enabled.test.mocks.ts | 0 .../server-internal}/src/is_scripting_enabled.test.ts | 0 .../server-internal}/src/is_scripting_enabled.ts | 0 .../server-internal}/src/is_valid_connection.test.ts | 0 .../elasticsearch/server-internal}/src/is_valid_connection.ts | 0 .../elasticsearch/server-internal}/src/merge_config.test.ts | 0 .../elasticsearch/server-internal}/src/merge_config.ts | 0 .../src/register_analytics_context_provider.test.ts | 0 .../src/register_analytics_context_provider.ts | 0 .../server-internal}/src/retry_call_cluster.test.ts | 0 .../elasticsearch/server-internal}/src/retry_call_cluster.ts | 0 .../server-internal}/src/retryable_es_client_errors.test.ts | 0 .../server-internal}/src/retryable_es_client_errors.ts | 0 .../elasticsearch/server-internal}/src/status.test.ts | 0 .../packages/elasticsearch/server-internal}/src/status.ts | 0 .../src/supported_server_response_check.test.ts | 0 .../server-internal}/src/supported_server_response_check.ts | 0 .../core/packages/elasticsearch/server-internal}/src/types.ts | 0 .../src/version_check/ensure_es_version.test.ts | 0 .../server-internal}/src/version_check/ensure_es_version.ts | 0 .../src/version_check/es_kibana_version_compatability.test.ts | 0 .../src/version_check/es_kibana_version_compatability.ts | 0 .../packages/elasticsearch/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 45 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/README.md (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/index.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/jest.config.js (82%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/kibana.jsonc (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/package.json (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/default_headers.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/default_headers.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/elasticsearch_config.test.mocks.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/elasticsearch_config.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/elasticsearch_config.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/elasticsearch_route_handler_context.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/elasticsearch_service.test.mocks.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/elasticsearch_service.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/elasticsearch_service.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/get_capabilities.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/get_capabilities.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/get_cluster_info.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/get_cluster_info.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/is_scripting_enabled.test.mocks.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/is_scripting_enabled.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/is_scripting_enabled.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/is_valid_connection.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/is_valid_connection.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/merge_config.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/merge_config.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/register_analytics_context_provider.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/register_analytics_context_provider.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/retry_call_cluster.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/retry_call_cluster.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/retryable_es_client_errors.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/retryable_es_client_errors.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/status.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/status.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/supported_server_response_check.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/supported_server_response_check.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/types.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/version_check/ensure_es_version.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/version_check/ensure_es_version.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/version_check/es_kibana_version_compatability.test.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/src/version_check/es_kibana_version_compatability.ts (100%) rename {packages/core/elasticsearch/core-elasticsearch-server-internal => src/core/packages/elasticsearch/server-internal}/tsconfig.json (95%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index fd1d59a475ff4..72287e14b6dc8 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -75,7 +75,6 @@ packages/core/deprecations/core-deprecations-server-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-browser-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-server-mocks @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-client-server-mocks @elastic/kibana-core -packages/core/elasticsearch/core-elasticsearch-server-internal @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-server-mocks @elastic/kibana-core packages/core/environment/core-environment-server-internal @elastic/kibana-core packages/core/environment/core-environment-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/doc-links/server @elastic/kibana-core src/core/packages/doc-links/server-internal @elastic/kibana-core src/core/packages/elasticsearch/client-server-internal @elastic/kibana-core src/core/packages/elasticsearch/server @elastic/kibana-core +src/core/packages/elasticsearch/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 16074921f159e..e4d237e358499 100644 --- a/package.json +++ b/package.json @@ -284,7 +284,7 @@ "@kbn/core-doc-links-server-internal": "link:src/core/packages/doc-links/server-internal", "@kbn/core-elasticsearch-client-server-internal": "link:src/core/packages/elasticsearch/client-server-internal", "@kbn/core-elasticsearch-server": "link:src/core/packages/elasticsearch/server", - "@kbn/core-elasticsearch-server-internal": "link:packages/core/elasticsearch/core-elasticsearch-server-internal", + "@kbn/core-elasticsearch-server-internal": "link:src/core/packages/elasticsearch/server-internal", "@kbn/core-environment-server-internal": "link:packages/core/environment/core-environment-server-internal", "@kbn/core-execution-context-browser": "link:packages/core/execution-context/core-execution-context-browser", "@kbn/core-execution-context-browser-internal": "link:packages/core/execution-context/core-execution-context-browser-internal", diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/README.md b/src/core/packages/elasticsearch/server-internal/README.md similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/README.md rename to src/core/packages/elasticsearch/server-internal/README.md diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/index.ts b/src/core/packages/elasticsearch/server-internal/index.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/index.ts rename to src/core/packages/elasticsearch/server-internal/index.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/jest.config.js b/src/core/packages/elasticsearch/server-internal/jest.config.js similarity index 82% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/jest.config.js rename to src/core/packages/elasticsearch/server-internal/jest.config.js index d5cd8a0002ca8..3968cd93deb53 100644 --- a/packages/core/elasticsearch/core-elasticsearch-server-internal/jest.config.js +++ b/src/core/packages/elasticsearch/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/elasticsearch/core-elasticsearch-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/elasticsearch/server-internal'], }; diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/kibana.jsonc b/src/core/packages/elasticsearch/server-internal/kibana.jsonc similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/kibana.jsonc rename to src/core/packages/elasticsearch/server-internal/kibana.jsonc diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/package.json b/src/core/packages/elasticsearch/server-internal/package.json similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/package.json rename to src/core/packages/elasticsearch/server-internal/package.json diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/default_headers.test.ts b/src/core/packages/elasticsearch/server-internal/src/default_headers.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/default_headers.test.ts rename to src/core/packages/elasticsearch/server-internal/src/default_headers.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/default_headers.ts b/src/core/packages/elasticsearch/server-internal/src/default_headers.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/default_headers.ts rename to src/core/packages/elasticsearch/server-internal/src/default_headers.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_config.test.mocks.ts b/src/core/packages/elasticsearch/server-internal/src/elasticsearch_config.test.mocks.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_config.test.mocks.ts rename to src/core/packages/elasticsearch/server-internal/src/elasticsearch_config.test.mocks.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_config.test.ts b/src/core/packages/elasticsearch/server-internal/src/elasticsearch_config.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_config.test.ts rename to src/core/packages/elasticsearch/server-internal/src/elasticsearch_config.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_config.ts b/src/core/packages/elasticsearch/server-internal/src/elasticsearch_config.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_config.ts rename to src/core/packages/elasticsearch/server-internal/src/elasticsearch_config.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_route_handler_context.ts b/src/core/packages/elasticsearch/server-internal/src/elasticsearch_route_handler_context.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_route_handler_context.ts rename to src/core/packages/elasticsearch/server-internal/src/elasticsearch_route_handler_context.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_service.test.mocks.ts b/src/core/packages/elasticsearch/server-internal/src/elasticsearch_service.test.mocks.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_service.test.mocks.ts rename to src/core/packages/elasticsearch/server-internal/src/elasticsearch_service.test.mocks.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_service.test.ts b/src/core/packages/elasticsearch/server-internal/src/elasticsearch_service.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_service.test.ts rename to src/core/packages/elasticsearch/server-internal/src/elasticsearch_service.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_service.ts b/src/core/packages/elasticsearch/server-internal/src/elasticsearch_service.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/elasticsearch_service.ts rename to src/core/packages/elasticsearch/server-internal/src/elasticsearch_service.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/get_capabilities.test.ts b/src/core/packages/elasticsearch/server-internal/src/get_capabilities.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/get_capabilities.test.ts rename to src/core/packages/elasticsearch/server-internal/src/get_capabilities.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/get_capabilities.ts b/src/core/packages/elasticsearch/server-internal/src/get_capabilities.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/get_capabilities.ts rename to src/core/packages/elasticsearch/server-internal/src/get_capabilities.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/get_cluster_info.test.ts b/src/core/packages/elasticsearch/server-internal/src/get_cluster_info.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/get_cluster_info.test.ts rename to src/core/packages/elasticsearch/server-internal/src/get_cluster_info.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/get_cluster_info.ts b/src/core/packages/elasticsearch/server-internal/src/get_cluster_info.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/get_cluster_info.ts rename to src/core/packages/elasticsearch/server-internal/src/get_cluster_info.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/is_scripting_enabled.test.mocks.ts b/src/core/packages/elasticsearch/server-internal/src/is_scripting_enabled.test.mocks.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/is_scripting_enabled.test.mocks.ts rename to src/core/packages/elasticsearch/server-internal/src/is_scripting_enabled.test.mocks.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/is_scripting_enabled.test.ts b/src/core/packages/elasticsearch/server-internal/src/is_scripting_enabled.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/is_scripting_enabled.test.ts rename to src/core/packages/elasticsearch/server-internal/src/is_scripting_enabled.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/is_scripting_enabled.ts b/src/core/packages/elasticsearch/server-internal/src/is_scripting_enabled.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/is_scripting_enabled.ts rename to src/core/packages/elasticsearch/server-internal/src/is_scripting_enabled.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/is_valid_connection.test.ts b/src/core/packages/elasticsearch/server-internal/src/is_valid_connection.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/is_valid_connection.test.ts rename to src/core/packages/elasticsearch/server-internal/src/is_valid_connection.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/is_valid_connection.ts b/src/core/packages/elasticsearch/server-internal/src/is_valid_connection.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/is_valid_connection.ts rename to src/core/packages/elasticsearch/server-internal/src/is_valid_connection.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/merge_config.test.ts b/src/core/packages/elasticsearch/server-internal/src/merge_config.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/merge_config.test.ts rename to src/core/packages/elasticsearch/server-internal/src/merge_config.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/merge_config.ts b/src/core/packages/elasticsearch/server-internal/src/merge_config.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/merge_config.ts rename to src/core/packages/elasticsearch/server-internal/src/merge_config.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/register_analytics_context_provider.test.ts b/src/core/packages/elasticsearch/server-internal/src/register_analytics_context_provider.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/register_analytics_context_provider.test.ts rename to src/core/packages/elasticsearch/server-internal/src/register_analytics_context_provider.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/register_analytics_context_provider.ts b/src/core/packages/elasticsearch/server-internal/src/register_analytics_context_provider.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/register_analytics_context_provider.ts rename to src/core/packages/elasticsearch/server-internal/src/register_analytics_context_provider.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/retry_call_cluster.test.ts b/src/core/packages/elasticsearch/server-internal/src/retry_call_cluster.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/retry_call_cluster.test.ts rename to src/core/packages/elasticsearch/server-internal/src/retry_call_cluster.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/retry_call_cluster.ts b/src/core/packages/elasticsearch/server-internal/src/retry_call_cluster.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/retry_call_cluster.ts rename to src/core/packages/elasticsearch/server-internal/src/retry_call_cluster.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/retryable_es_client_errors.test.ts b/src/core/packages/elasticsearch/server-internal/src/retryable_es_client_errors.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/retryable_es_client_errors.test.ts rename to src/core/packages/elasticsearch/server-internal/src/retryable_es_client_errors.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/retryable_es_client_errors.ts b/src/core/packages/elasticsearch/server-internal/src/retryable_es_client_errors.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/retryable_es_client_errors.ts rename to src/core/packages/elasticsearch/server-internal/src/retryable_es_client_errors.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/status.test.ts b/src/core/packages/elasticsearch/server-internal/src/status.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/status.test.ts rename to src/core/packages/elasticsearch/server-internal/src/status.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/status.ts b/src/core/packages/elasticsearch/server-internal/src/status.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/status.ts rename to src/core/packages/elasticsearch/server-internal/src/status.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/supported_server_response_check.test.ts b/src/core/packages/elasticsearch/server-internal/src/supported_server_response_check.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/supported_server_response_check.test.ts rename to src/core/packages/elasticsearch/server-internal/src/supported_server_response_check.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/supported_server_response_check.ts b/src/core/packages/elasticsearch/server-internal/src/supported_server_response_check.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/supported_server_response_check.ts rename to src/core/packages/elasticsearch/server-internal/src/supported_server_response_check.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/types.ts b/src/core/packages/elasticsearch/server-internal/src/types.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/types.ts rename to src/core/packages/elasticsearch/server-internal/src/types.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/version_check/ensure_es_version.test.ts b/src/core/packages/elasticsearch/server-internal/src/version_check/ensure_es_version.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/version_check/ensure_es_version.test.ts rename to src/core/packages/elasticsearch/server-internal/src/version_check/ensure_es_version.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/version_check/ensure_es_version.ts b/src/core/packages/elasticsearch/server-internal/src/version_check/ensure_es_version.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/version_check/ensure_es_version.ts rename to src/core/packages/elasticsearch/server-internal/src/version_check/ensure_es_version.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/version_check/es_kibana_version_compatability.test.ts b/src/core/packages/elasticsearch/server-internal/src/version_check/es_kibana_version_compatability.test.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/version_check/es_kibana_version_compatability.test.ts rename to src/core/packages/elasticsearch/server-internal/src/version_check/es_kibana_version_compatability.test.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/src/version_check/es_kibana_version_compatability.ts b/src/core/packages/elasticsearch/server-internal/src/version_check/es_kibana_version_compatability.ts similarity index 100% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/src/version_check/es_kibana_version_compatability.ts rename to src/core/packages/elasticsearch/server-internal/src/version_check/es_kibana_version_compatability.ts diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/tsconfig.json b/src/core/packages/elasticsearch/server-internal/tsconfig.json similarity index 95% rename from packages/core/elasticsearch/core-elasticsearch-server-internal/tsconfig.json rename to src/core/packages/elasticsearch/server-internal/tsconfig.json index 7b444c90f62c9..cc9debba44954 100644 --- a/packages/core/elasticsearch/core-elasticsearch-server-internal/tsconfig.json +++ b/src/core/packages/elasticsearch/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index ce7f4b059cee0..8ee1ad2209cd5 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -338,8 +338,8 @@ "@kbn/core-elasticsearch-client-server-mocks/*": ["packages/core/elasticsearch/core-elasticsearch-client-server-mocks/*"], "@kbn/core-elasticsearch-server": ["src/core/packages/elasticsearch/server"], "@kbn/core-elasticsearch-server/*": ["src/core/packages/elasticsearch/server/*"], - "@kbn/core-elasticsearch-server-internal": ["packages/core/elasticsearch/core-elasticsearch-server-internal"], - "@kbn/core-elasticsearch-server-internal/*": ["packages/core/elasticsearch/core-elasticsearch-server-internal/*"], + "@kbn/core-elasticsearch-server-internal": ["src/core/packages/elasticsearch/server-internal"], + "@kbn/core-elasticsearch-server-internal/*": ["src/core/packages/elasticsearch/server-internal/*"], "@kbn/core-elasticsearch-server-mocks": ["packages/core/elasticsearch/core-elasticsearch-server-mocks"], "@kbn/core-elasticsearch-server-mocks/*": ["packages/core/elasticsearch/core-elasticsearch-server-mocks/*"], "@kbn/core-environment-server-internal": ["packages/core/environment/core-environment-server-internal"], diff --git a/yarn.lock b/yarn.lock index 44784fd029678..0356715656997 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4485,7 +4485,7 @@ version "0.0.0" uid "" -"@kbn/core-elasticsearch-server-internal@link:packages/core/elasticsearch/core-elasticsearch-server-internal": +"@kbn/core-elasticsearch-server-internal@link:src/core/packages/elasticsearch/server-internal": version "0.0.0" uid "" From de4d3365f913c173253d88a4e5b222786cf37add Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:22:07 +0100 Subject: [PATCH 032/167] Relocating module `@kbn/core-environment-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/environment/server-internal}/README.md | 0 .../core/packages/environment/server-internal}/index.ts | 0 .../core/packages/environment/server-internal}/jest.config.js | 4 ++-- .../core/packages/environment/server-internal}/kibana.jsonc | 0 .../core/packages/environment/server-internal}/package.json | 0 .../server-internal}/src/create_data_folder.test.ts | 0 .../environment/server-internal}/src/create_data_folder.ts | 0 .../server-internal}/src/environment_service.test.ts | 0 .../environment/server-internal}/src/environment_service.ts | 0 .../core/packages/environment/server-internal}/src/fs.ts | 0 .../packages/environment/server-internal}/src/pid_config.ts | 0 .../environment/server-internal}/src/resolve_uuid.test.ts | 0 .../packages/environment/server-internal}/src/resolve_uuid.ts | 0 .../core/packages/environment/server-internal}/src/types.ts | 0 .../environment/server-internal}/src/write_pid_file.test.ts | 0 .../environment/server-internal}/src/write_pid_file.ts | 0 .../core/packages/environment/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 21 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/README.md (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/index.ts (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/jest.config.js (82%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/kibana.jsonc (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/package.json (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/src/create_data_folder.test.ts (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/src/create_data_folder.ts (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/src/environment_service.test.ts (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/src/environment_service.ts (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/src/fs.ts (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/src/pid_config.ts (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/src/resolve_uuid.test.ts (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/src/resolve_uuid.ts (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/src/types.ts (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/src/write_pid_file.test.ts (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/src/write_pid_file.ts (100%) rename {packages/core/environment/core-environment-server-internal => src/core/packages/environment/server-internal}/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 72287e14b6dc8..a5f1c626610d5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -76,7 +76,6 @@ packages/core/doc-links/core-doc-links-browser-mocks @elastic/kibana-core packages/core/doc-links/core-doc-links-server-mocks @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-client-server-mocks @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-server-mocks @elastic/kibana-core -packages/core/environment/core-environment-server-internal @elastic/kibana-core packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/doc-links/server-internal @elastic/kibana-core src/core/packages/elasticsearch/client-server-internal @elastic/kibana-core src/core/packages/elasticsearch/server @elastic/kibana-core src/core/packages/elasticsearch/server-internal @elastic/kibana-core +src/core/packages/environment/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index e4d237e358499..dc95cfc47f1f8 100644 --- a/package.json +++ b/package.json @@ -285,7 +285,7 @@ "@kbn/core-elasticsearch-client-server-internal": "link:src/core/packages/elasticsearch/client-server-internal", "@kbn/core-elasticsearch-server": "link:src/core/packages/elasticsearch/server", "@kbn/core-elasticsearch-server-internal": "link:src/core/packages/elasticsearch/server-internal", - "@kbn/core-environment-server-internal": "link:packages/core/environment/core-environment-server-internal", + "@kbn/core-environment-server-internal": "link:src/core/packages/environment/server-internal", "@kbn/core-execution-context-browser": "link:packages/core/execution-context/core-execution-context-browser", "@kbn/core-execution-context-browser-internal": "link:packages/core/execution-context/core-execution-context-browser-internal", "@kbn/core-execution-context-common": "link:packages/core/execution-context/core-execution-context-common", diff --git a/packages/core/environment/core-environment-server-internal/README.md b/src/core/packages/environment/server-internal/README.md similarity index 100% rename from packages/core/environment/core-environment-server-internal/README.md rename to src/core/packages/environment/server-internal/README.md diff --git a/packages/core/environment/core-environment-server-internal/index.ts b/src/core/packages/environment/server-internal/index.ts similarity index 100% rename from packages/core/environment/core-environment-server-internal/index.ts rename to src/core/packages/environment/server-internal/index.ts diff --git a/packages/core/environment/core-environment-server-internal/jest.config.js b/src/core/packages/environment/server-internal/jest.config.js similarity index 82% rename from packages/core/environment/core-environment-server-internal/jest.config.js rename to src/core/packages/environment/server-internal/jest.config.js index 8ff5ccd66b245..b0b256289c23a 100644 --- a/packages/core/environment/core-environment-server-internal/jest.config.js +++ b/src/core/packages/environment/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/environment/core-environment-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/environment/server-internal'], }; diff --git a/packages/core/environment/core-environment-server-internal/kibana.jsonc b/src/core/packages/environment/server-internal/kibana.jsonc similarity index 100% rename from packages/core/environment/core-environment-server-internal/kibana.jsonc rename to src/core/packages/environment/server-internal/kibana.jsonc diff --git a/packages/core/environment/core-environment-server-internal/package.json b/src/core/packages/environment/server-internal/package.json similarity index 100% rename from packages/core/environment/core-environment-server-internal/package.json rename to src/core/packages/environment/server-internal/package.json diff --git a/packages/core/environment/core-environment-server-internal/src/create_data_folder.test.ts b/src/core/packages/environment/server-internal/src/create_data_folder.test.ts similarity index 100% rename from packages/core/environment/core-environment-server-internal/src/create_data_folder.test.ts rename to src/core/packages/environment/server-internal/src/create_data_folder.test.ts diff --git a/packages/core/environment/core-environment-server-internal/src/create_data_folder.ts b/src/core/packages/environment/server-internal/src/create_data_folder.ts similarity index 100% rename from packages/core/environment/core-environment-server-internal/src/create_data_folder.ts rename to src/core/packages/environment/server-internal/src/create_data_folder.ts diff --git a/packages/core/environment/core-environment-server-internal/src/environment_service.test.ts b/src/core/packages/environment/server-internal/src/environment_service.test.ts similarity index 100% rename from packages/core/environment/core-environment-server-internal/src/environment_service.test.ts rename to src/core/packages/environment/server-internal/src/environment_service.test.ts diff --git a/packages/core/environment/core-environment-server-internal/src/environment_service.ts b/src/core/packages/environment/server-internal/src/environment_service.ts similarity index 100% rename from packages/core/environment/core-environment-server-internal/src/environment_service.ts rename to src/core/packages/environment/server-internal/src/environment_service.ts diff --git a/packages/core/environment/core-environment-server-internal/src/fs.ts b/src/core/packages/environment/server-internal/src/fs.ts similarity index 100% rename from packages/core/environment/core-environment-server-internal/src/fs.ts rename to src/core/packages/environment/server-internal/src/fs.ts diff --git a/packages/core/environment/core-environment-server-internal/src/pid_config.ts b/src/core/packages/environment/server-internal/src/pid_config.ts similarity index 100% rename from packages/core/environment/core-environment-server-internal/src/pid_config.ts rename to src/core/packages/environment/server-internal/src/pid_config.ts diff --git a/packages/core/environment/core-environment-server-internal/src/resolve_uuid.test.ts b/src/core/packages/environment/server-internal/src/resolve_uuid.test.ts similarity index 100% rename from packages/core/environment/core-environment-server-internal/src/resolve_uuid.test.ts rename to src/core/packages/environment/server-internal/src/resolve_uuid.test.ts diff --git a/packages/core/environment/core-environment-server-internal/src/resolve_uuid.ts b/src/core/packages/environment/server-internal/src/resolve_uuid.ts similarity index 100% rename from packages/core/environment/core-environment-server-internal/src/resolve_uuid.ts rename to src/core/packages/environment/server-internal/src/resolve_uuid.ts diff --git a/packages/core/environment/core-environment-server-internal/src/types.ts b/src/core/packages/environment/server-internal/src/types.ts similarity index 100% rename from packages/core/environment/core-environment-server-internal/src/types.ts rename to src/core/packages/environment/server-internal/src/types.ts diff --git a/packages/core/environment/core-environment-server-internal/src/write_pid_file.test.ts b/src/core/packages/environment/server-internal/src/write_pid_file.test.ts similarity index 100% rename from packages/core/environment/core-environment-server-internal/src/write_pid_file.test.ts rename to src/core/packages/environment/server-internal/src/write_pid_file.test.ts diff --git a/packages/core/environment/core-environment-server-internal/src/write_pid_file.ts b/src/core/packages/environment/server-internal/src/write_pid_file.ts similarity index 100% rename from packages/core/environment/core-environment-server-internal/src/write_pid_file.ts rename to src/core/packages/environment/server-internal/src/write_pid_file.ts diff --git a/packages/core/environment/core-environment-server-internal/tsconfig.json b/src/core/packages/environment/server-internal/tsconfig.json similarity index 90% rename from packages/core/environment/core-environment-server-internal/tsconfig.json rename to src/core/packages/environment/server-internal/tsconfig.json index b1853e14a9ead..3bdfd400a8d5f 100644 --- a/packages/core/environment/core-environment-server-internal/tsconfig.json +++ b/src/core/packages/environment/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 8ee1ad2209cd5..fe092f7bee43b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -342,8 +342,8 @@ "@kbn/core-elasticsearch-server-internal/*": ["src/core/packages/elasticsearch/server-internal/*"], "@kbn/core-elasticsearch-server-mocks": ["packages/core/elasticsearch/core-elasticsearch-server-mocks"], "@kbn/core-elasticsearch-server-mocks/*": ["packages/core/elasticsearch/core-elasticsearch-server-mocks/*"], - "@kbn/core-environment-server-internal": ["packages/core/environment/core-environment-server-internal"], - "@kbn/core-environment-server-internal/*": ["packages/core/environment/core-environment-server-internal/*"], + "@kbn/core-environment-server-internal": ["src/core/packages/environment/server-internal"], + "@kbn/core-environment-server-internal/*": ["src/core/packages/environment/server-internal/*"], "@kbn/core-environment-server-mocks": ["packages/core/environment/core-environment-server-mocks"], "@kbn/core-environment-server-mocks/*": ["packages/core/environment/core-environment-server-mocks/*"], "@kbn/core-execution-context-browser": ["packages/core/execution-context/core-execution-context-browser"], diff --git a/yarn.lock b/yarn.lock index 0356715656997..879dc79c31f54 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4497,7 +4497,7 @@ version "0.0.0" uid "" -"@kbn/core-environment-server-internal@link:packages/core/environment/core-environment-server-internal": +"@kbn/core-environment-server-internal@link:src/core/packages/environment/server-internal": version "0.0.0" uid "" From d0e2e9243a5a501eef7a58eb1ab41711e53db204 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:23:01 +0100 Subject: [PATCH 033/167] Relocating module `@kbn/core-execution-context-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/execution-context/browser}/README.md | 0 .../core/packages/execution-context/browser}/index.ts | 0 .../core/packages/execution-context/browser}/jest.config.js | 4 ++-- .../core/packages/execution-context/browser}/kibana.jsonc | 0 .../core/packages/execution-context/browser}/package.json | 0 .../core/packages/execution-context/browser}/src/types.ts | 0 .../core/packages/execution-context/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/execution-context/core-execution-context-browser => src/core/packages/execution-context/browser}/README.md (100%) rename {packages/core/execution-context/core-execution-context-browser => src/core/packages/execution-context/browser}/index.ts (100%) rename {packages/core/execution-context/core-execution-context-browser => src/core/packages/execution-context/browser}/jest.config.js (81%) rename {packages/core/execution-context/core-execution-context-browser => src/core/packages/execution-context/browser}/kibana.jsonc (100%) rename {packages/core/execution-context/core-execution-context-browser => src/core/packages/execution-context/browser}/package.json (100%) rename {packages/core/execution-context/core-execution-context-browser => src/core/packages/execution-context/browser}/src/types.ts (100%) rename {packages/core/execution-context/core-execution-context-browser => src/core/packages/execution-context/browser}/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a5f1c626610d5..1d03e35554781 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -77,7 +77,6 @@ packages/core/doc-links/core-doc-links-server-mocks @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-client-server-mocks @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-server-mocks @elastic/kibana-core packages/core/environment/core-environment-server-mocks @elastic/kibana-core -packages/core/execution-context/core-execution-context-browser @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-internal @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-common @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/elasticsearch/client-server-internal @elastic/kibana-core src/core/packages/elasticsearch/server @elastic/kibana-core src/core/packages/elasticsearch/server-internal @elastic/kibana-core src/core/packages/environment/server-internal @elastic/kibana-core +src/core/packages/execution-context/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index dc95cfc47f1f8..6d7a45a587ef7 100644 --- a/package.json +++ b/package.json @@ -286,7 +286,7 @@ "@kbn/core-elasticsearch-server": "link:src/core/packages/elasticsearch/server", "@kbn/core-elasticsearch-server-internal": "link:src/core/packages/elasticsearch/server-internal", "@kbn/core-environment-server-internal": "link:src/core/packages/environment/server-internal", - "@kbn/core-execution-context-browser": "link:packages/core/execution-context/core-execution-context-browser", + "@kbn/core-execution-context-browser": "link:src/core/packages/execution-context/browser", "@kbn/core-execution-context-browser-internal": "link:packages/core/execution-context/core-execution-context-browser-internal", "@kbn/core-execution-context-common": "link:packages/core/execution-context/core-execution-context-common", "@kbn/core-execution-context-server": "link:packages/core/execution-context/core-execution-context-server", diff --git a/packages/core/execution-context/core-execution-context-browser/README.md b/src/core/packages/execution-context/browser/README.md similarity index 100% rename from packages/core/execution-context/core-execution-context-browser/README.md rename to src/core/packages/execution-context/browser/README.md diff --git a/packages/core/execution-context/core-execution-context-browser/index.ts b/src/core/packages/execution-context/browser/index.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-browser/index.ts rename to src/core/packages/execution-context/browser/index.ts diff --git a/packages/core/execution-context/core-execution-context-browser/jest.config.js b/src/core/packages/execution-context/browser/jest.config.js similarity index 81% rename from packages/core/execution-context/core-execution-context-browser/jest.config.js rename to src/core/packages/execution-context/browser/jest.config.js index 5c1d831ecc09a..bea039c7be93c 100644 --- a/packages/core/execution-context/core-execution-context-browser/jest.config.js +++ b/src/core/packages/execution-context/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/execution-context/core-execution-context-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/execution-context/browser'], }; diff --git a/packages/core/execution-context/core-execution-context-browser/kibana.jsonc b/src/core/packages/execution-context/browser/kibana.jsonc similarity index 100% rename from packages/core/execution-context/core-execution-context-browser/kibana.jsonc rename to src/core/packages/execution-context/browser/kibana.jsonc diff --git a/packages/core/execution-context/core-execution-context-browser/package.json b/src/core/packages/execution-context/browser/package.json similarity index 100% rename from packages/core/execution-context/core-execution-context-browser/package.json rename to src/core/packages/execution-context/browser/package.json diff --git a/packages/core/execution-context/core-execution-context-browser/src/types.ts b/src/core/packages/execution-context/browser/src/types.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-browser/src/types.ts rename to src/core/packages/execution-context/browser/src/types.ts diff --git a/packages/core/execution-context/core-execution-context-browser/tsconfig.json b/src/core/packages/execution-context/browser/tsconfig.json similarity index 83% rename from packages/core/execution-context/core-execution-context-browser/tsconfig.json rename to src/core/packages/execution-context/browser/tsconfig.json index b240bd7f5bc8e..3c4ff6e35705f 100644 --- a/packages/core/execution-context/core-execution-context-browser/tsconfig.json +++ b/src/core/packages/execution-context/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index fe092f7bee43b..01c23cda68cbb 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -346,8 +346,8 @@ "@kbn/core-environment-server-internal/*": ["src/core/packages/environment/server-internal/*"], "@kbn/core-environment-server-mocks": ["packages/core/environment/core-environment-server-mocks"], "@kbn/core-environment-server-mocks/*": ["packages/core/environment/core-environment-server-mocks/*"], - "@kbn/core-execution-context-browser": ["packages/core/execution-context/core-execution-context-browser"], - "@kbn/core-execution-context-browser/*": ["packages/core/execution-context/core-execution-context-browser/*"], + "@kbn/core-execution-context-browser": ["src/core/packages/execution-context/browser"], + "@kbn/core-execution-context-browser/*": ["src/core/packages/execution-context/browser/*"], "@kbn/core-execution-context-browser-internal": ["packages/core/execution-context/core-execution-context-browser-internal"], "@kbn/core-execution-context-browser-internal/*": ["packages/core/execution-context/core-execution-context-browser-internal/*"], "@kbn/core-execution-context-browser-mocks": ["packages/core/execution-context/core-execution-context-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index 879dc79c31f54..2927fb2654680 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4513,7 +4513,7 @@ version "0.0.0" uid "" -"@kbn/core-execution-context-browser@link:packages/core/execution-context/core-execution-context-browser": +"@kbn/core-execution-context-browser@link:src/core/packages/execution-context/browser": version "0.0.0" uid "" From 9a66ebcda73102f2caa5fc65b4a927165135e6f1 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:23:54 +0100 Subject: [PATCH 034/167] Relocating module `@kbn/core-execution-context-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/execution-context/browser-internal}/README.md | 0 .../packages/execution-context/browser-internal}/index.ts | 0 .../execution-context/browser-internal}/jest.config.js | 4 ++-- .../packages/execution-context/browser-internal}/kibana.jsonc | 0 .../packages/execution-context/browser-internal}/package.json | 0 .../browser-internal}/src/execution_context_container.test.ts | 0 .../browser-internal}/src/execution_context_container.ts | 0 .../browser-internal}/src/execution_context_service.test.ts | 0 .../browser-internal}/src/execution_context_service.ts | 0 .../execution-context/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/execution-context/core-execution-context-browser-internal => src/core/packages/execution-context/browser-internal}/README.md (100%) rename {packages/core/execution-context/core-execution-context-browser-internal => src/core/packages/execution-context/browser-internal}/index.ts (100%) rename {packages/core/execution-context/core-execution-context-browser-internal => src/core/packages/execution-context/browser-internal}/jest.config.js (80%) rename {packages/core/execution-context/core-execution-context-browser-internal => src/core/packages/execution-context/browser-internal}/kibana.jsonc (100%) rename {packages/core/execution-context/core-execution-context-browser-internal => src/core/packages/execution-context/browser-internal}/package.json (100%) rename {packages/core/execution-context/core-execution-context-browser-internal => src/core/packages/execution-context/browser-internal}/src/execution_context_container.test.ts (100%) rename {packages/core/execution-context/core-execution-context-browser-internal => src/core/packages/execution-context/browser-internal}/src/execution_context_container.ts (100%) rename {packages/core/execution-context/core-execution-context-browser-internal => src/core/packages/execution-context/browser-internal}/src/execution_context_service.test.ts (100%) rename {packages/core/execution-context/core-execution-context-browser-internal => src/core/packages/execution-context/browser-internal}/src/execution_context_service.ts (100%) rename {packages/core/execution-context/core-execution-context-browser-internal => src/core/packages/execution-context/browser-internal}/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1d03e35554781..deea684816719 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -77,7 +77,6 @@ packages/core/doc-links/core-doc-links-server-mocks @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-client-server-mocks @elastic/kibana-core packages/core/elasticsearch/core-elasticsearch-server-mocks @elastic/kibana-core packages/core/environment/core-environment-server-mocks @elastic/kibana-core -packages/core/execution-context/core-execution-context-browser-internal @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-common @elastic/kibana-core packages/core/execution-context/core-execution-context-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/elasticsearch/server @elastic/kibana-core src/core/packages/elasticsearch/server-internal @elastic/kibana-core src/core/packages/environment/server-internal @elastic/kibana-core src/core/packages/execution-context/browser @elastic/kibana-core +src/core/packages/execution-context/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 6d7a45a587ef7..8e4ee59d5f787 100644 --- a/package.json +++ b/package.json @@ -287,7 +287,7 @@ "@kbn/core-elasticsearch-server-internal": "link:src/core/packages/elasticsearch/server-internal", "@kbn/core-environment-server-internal": "link:src/core/packages/environment/server-internal", "@kbn/core-execution-context-browser": "link:src/core/packages/execution-context/browser", - "@kbn/core-execution-context-browser-internal": "link:packages/core/execution-context/core-execution-context-browser-internal", + "@kbn/core-execution-context-browser-internal": "link:src/core/packages/execution-context/browser-internal", "@kbn/core-execution-context-common": "link:packages/core/execution-context/core-execution-context-common", "@kbn/core-execution-context-server": "link:packages/core/execution-context/core-execution-context-server", "@kbn/core-execution-context-server-internal": "link:packages/core/execution-context/core-execution-context-server-internal", diff --git a/packages/core/execution-context/core-execution-context-browser-internal/README.md b/src/core/packages/execution-context/browser-internal/README.md similarity index 100% rename from packages/core/execution-context/core-execution-context-browser-internal/README.md rename to src/core/packages/execution-context/browser-internal/README.md diff --git a/packages/core/execution-context/core-execution-context-browser-internal/index.ts b/src/core/packages/execution-context/browser-internal/index.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-browser-internal/index.ts rename to src/core/packages/execution-context/browser-internal/index.ts diff --git a/packages/core/execution-context/core-execution-context-browser-internal/jest.config.js b/src/core/packages/execution-context/browser-internal/jest.config.js similarity index 80% rename from packages/core/execution-context/core-execution-context-browser-internal/jest.config.js rename to src/core/packages/execution-context/browser-internal/jest.config.js index a122164210a9e..94da748128fad 100644 --- a/packages/core/execution-context/core-execution-context-browser-internal/jest.config.js +++ b/src/core/packages/execution-context/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/execution-context/core-execution-context-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/execution-context/browser-internal'], }; diff --git a/packages/core/execution-context/core-execution-context-browser-internal/kibana.jsonc b/src/core/packages/execution-context/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/execution-context/core-execution-context-browser-internal/kibana.jsonc rename to src/core/packages/execution-context/browser-internal/kibana.jsonc diff --git a/packages/core/execution-context/core-execution-context-browser-internal/package.json b/src/core/packages/execution-context/browser-internal/package.json similarity index 100% rename from packages/core/execution-context/core-execution-context-browser-internal/package.json rename to src/core/packages/execution-context/browser-internal/package.json diff --git a/packages/core/execution-context/core-execution-context-browser-internal/src/execution_context_container.test.ts b/src/core/packages/execution-context/browser-internal/src/execution_context_container.test.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-browser-internal/src/execution_context_container.test.ts rename to src/core/packages/execution-context/browser-internal/src/execution_context_container.test.ts diff --git a/packages/core/execution-context/core-execution-context-browser-internal/src/execution_context_container.ts b/src/core/packages/execution-context/browser-internal/src/execution_context_container.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-browser-internal/src/execution_context_container.ts rename to src/core/packages/execution-context/browser-internal/src/execution_context_container.ts diff --git a/packages/core/execution-context/core-execution-context-browser-internal/src/execution_context_service.test.ts b/src/core/packages/execution-context/browser-internal/src/execution_context_service.test.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-browser-internal/src/execution_context_service.test.ts rename to src/core/packages/execution-context/browser-internal/src/execution_context_service.test.ts diff --git a/packages/core/execution-context/core-execution-context-browser-internal/src/execution_context_service.ts b/src/core/packages/execution-context/browser-internal/src/execution_context_service.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-browser-internal/src/execution_context_service.ts rename to src/core/packages/execution-context/browser-internal/src/execution_context_service.ts diff --git a/packages/core/execution-context/core-execution-context-browser-internal/tsconfig.json b/src/core/packages/execution-context/browser-internal/tsconfig.json similarity index 89% rename from packages/core/execution-context/core-execution-context-browser-internal/tsconfig.json rename to src/core/packages/execution-context/browser-internal/tsconfig.json index a8301ada1eaa4..d3b7ad21ff2e7 100644 --- a/packages/core/execution-context/core-execution-context-browser-internal/tsconfig.json +++ b/src/core/packages/execution-context/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 01c23cda68cbb..c954a700a49c1 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -348,8 +348,8 @@ "@kbn/core-environment-server-mocks/*": ["packages/core/environment/core-environment-server-mocks/*"], "@kbn/core-execution-context-browser": ["src/core/packages/execution-context/browser"], "@kbn/core-execution-context-browser/*": ["src/core/packages/execution-context/browser/*"], - "@kbn/core-execution-context-browser-internal": ["packages/core/execution-context/core-execution-context-browser-internal"], - "@kbn/core-execution-context-browser-internal/*": ["packages/core/execution-context/core-execution-context-browser-internal/*"], + "@kbn/core-execution-context-browser-internal": ["src/core/packages/execution-context/browser-internal"], + "@kbn/core-execution-context-browser-internal/*": ["src/core/packages/execution-context/browser-internal/*"], "@kbn/core-execution-context-browser-mocks": ["packages/core/execution-context/core-execution-context-browser-mocks"], "@kbn/core-execution-context-browser-mocks/*": ["packages/core/execution-context/core-execution-context-browser-mocks/*"], "@kbn/core-execution-context-common": ["packages/core/execution-context/core-execution-context-common"], diff --git a/yarn.lock b/yarn.lock index 2927fb2654680..537603abac5fd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4505,7 +4505,7 @@ version "0.0.0" uid "" -"@kbn/core-execution-context-browser-internal@link:packages/core/execution-context/core-execution-context-browser-internal": +"@kbn/core-execution-context-browser-internal@link:src/core/packages/execution-context/browser-internal": version "0.0.0" uid "" From 0a43d2cfba62ae7832b81ac22633767f736ea3a5 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:24:46 +0100 Subject: [PATCH 035/167] Relocating module `@kbn/core-execution-context-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/execution-context/common}/README.md | 0 .../core/packages/execution-context/common}/index.ts | 0 .../core/packages/execution-context/common}/jest.config.js | 4 ++-- .../core/packages/execution-context/common}/kibana.jsonc | 0 .../core/packages/execution-context/common}/package.json | 0 .../core/packages/execution-context/common}/src/types.ts | 0 .../core/packages/execution-context/common}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/execution-context/core-execution-context-common => src/core/packages/execution-context/common}/README.md (100%) rename {packages/core/execution-context/core-execution-context-common => src/core/packages/execution-context/common}/index.ts (100%) rename {packages/core/execution-context/core-execution-context-common => src/core/packages/execution-context/common}/jest.config.js (82%) rename {packages/core/execution-context/core-execution-context-common => src/core/packages/execution-context/common}/kibana.jsonc (100%) rename {packages/core/execution-context/core-execution-context-common => src/core/packages/execution-context/common}/package.json (100%) rename {packages/core/execution-context/core-execution-context-common => src/core/packages/execution-context/common}/src/types.ts (100%) rename {packages/core/execution-context/core-execution-context-common => src/core/packages/execution-context/common}/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index deea684816719..1347a44dad5f8 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -78,7 +78,6 @@ packages/core/elasticsearch/core-elasticsearch-client-server-mocks @elastic/kiba packages/core/elasticsearch/core-elasticsearch-server-mocks @elastic/kibana-core packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core -packages/core/execution-context/core-execution-context-common @elastic/kibana-core packages/core/execution-context/core-execution-context-server @elastic/kibana-core packages/core/execution-context/core-execution-context-server-internal @elastic/kibana-core packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/elasticsearch/server-internal @elastic/kibana-core src/core/packages/environment/server-internal @elastic/kibana-core src/core/packages/execution-context/browser @elastic/kibana-core src/core/packages/execution-context/browser-internal @elastic/kibana-core +src/core/packages/execution-context/common @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 8e4ee59d5f787..e8a3e61bd2158 100644 --- a/package.json +++ b/package.json @@ -288,7 +288,7 @@ "@kbn/core-environment-server-internal": "link:src/core/packages/environment/server-internal", "@kbn/core-execution-context-browser": "link:src/core/packages/execution-context/browser", "@kbn/core-execution-context-browser-internal": "link:src/core/packages/execution-context/browser-internal", - "@kbn/core-execution-context-common": "link:packages/core/execution-context/core-execution-context-common", + "@kbn/core-execution-context-common": "link:src/core/packages/execution-context/common", "@kbn/core-execution-context-server": "link:packages/core/execution-context/core-execution-context-server", "@kbn/core-execution-context-server-internal": "link:packages/core/execution-context/core-execution-context-server-internal", "@kbn/core-fatal-errors-browser": "link:packages/core/fatal-errors/core-fatal-errors-browser", diff --git a/packages/core/execution-context/core-execution-context-common/README.md b/src/core/packages/execution-context/common/README.md similarity index 100% rename from packages/core/execution-context/core-execution-context-common/README.md rename to src/core/packages/execution-context/common/README.md diff --git a/packages/core/execution-context/core-execution-context-common/index.ts b/src/core/packages/execution-context/common/index.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-common/index.ts rename to src/core/packages/execution-context/common/index.ts diff --git a/packages/core/execution-context/core-execution-context-common/jest.config.js b/src/core/packages/execution-context/common/jest.config.js similarity index 82% rename from packages/core/execution-context/core-execution-context-common/jest.config.js rename to src/core/packages/execution-context/common/jest.config.js index d6ed874270cd6..c59b94362969d 100644 --- a/packages/core/execution-context/core-execution-context-common/jest.config.js +++ b/src/core/packages/execution-context/common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/execution-context/core-execution-context-common'], + rootDir: '../../../../..', + roots: ['/src/core/packages/execution-context/common'], }; diff --git a/packages/core/execution-context/core-execution-context-common/kibana.jsonc b/src/core/packages/execution-context/common/kibana.jsonc similarity index 100% rename from packages/core/execution-context/core-execution-context-common/kibana.jsonc rename to src/core/packages/execution-context/common/kibana.jsonc diff --git a/packages/core/execution-context/core-execution-context-common/package.json b/src/core/packages/execution-context/common/package.json similarity index 100% rename from packages/core/execution-context/core-execution-context-common/package.json rename to src/core/packages/execution-context/common/package.json diff --git a/packages/core/execution-context/core-execution-context-common/src/types.ts b/src/core/packages/execution-context/common/src/types.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-common/src/types.ts rename to src/core/packages/execution-context/common/src/types.ts diff --git a/packages/core/execution-context/core-execution-context-common/tsconfig.json b/src/core/packages/execution-context/common/tsconfig.json similarity index 78% rename from packages/core/execution-context/core-execution-context-common/tsconfig.json rename to src/core/packages/execution-context/common/tsconfig.json index e7513f6481e89..131ff3e6bb433 100644 --- a/packages/core/execution-context/core-execution-context-common/tsconfig.json +++ b/src/core/packages/execution-context/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c954a700a49c1..7fe116860d5be 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -352,8 +352,8 @@ "@kbn/core-execution-context-browser-internal/*": ["src/core/packages/execution-context/browser-internal/*"], "@kbn/core-execution-context-browser-mocks": ["packages/core/execution-context/core-execution-context-browser-mocks"], "@kbn/core-execution-context-browser-mocks/*": ["packages/core/execution-context/core-execution-context-browser-mocks/*"], - "@kbn/core-execution-context-common": ["packages/core/execution-context/core-execution-context-common"], - "@kbn/core-execution-context-common/*": ["packages/core/execution-context/core-execution-context-common/*"], + "@kbn/core-execution-context-common": ["src/core/packages/execution-context/common"], + "@kbn/core-execution-context-common/*": ["src/core/packages/execution-context/common/*"], "@kbn/core-execution-context-server": ["packages/core/execution-context/core-execution-context-server"], "@kbn/core-execution-context-server/*": ["packages/core/execution-context/core-execution-context-server/*"], "@kbn/core-execution-context-server-internal": ["packages/core/execution-context/core-execution-context-server-internal"], diff --git a/yarn.lock b/yarn.lock index 537603abac5fd..116eee9fcf2c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4517,7 +4517,7 @@ version "0.0.0" uid "" -"@kbn/core-execution-context-common@link:packages/core/execution-context/core-execution-context-common": +"@kbn/core-execution-context-common@link:src/core/packages/execution-context/common": version "0.0.0" uid "" From 30dc7d6fb346920a15e1a79cdcc13fe9e1cdd3c8 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:25:38 +0100 Subject: [PATCH 036/167] Relocating module `@kbn/core-execution-context-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/execution-context/server}/README.md | 0 .../core/packages/execution-context/server}/index.ts | 0 .../core/packages/execution-context/server}/jest.config.js | 4 ++-- .../core/packages/execution-context/server}/kibana.jsonc | 0 .../core/packages/execution-context/server}/package.json | 0 .../core/packages/execution-context/server}/src/contracts.ts | 0 .../core/packages/execution-context/server}/src/types.ts | 0 .../core/packages/execution-context/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/execution-context/core-execution-context-server => src/core/packages/execution-context/server}/README.md (100%) rename {packages/core/execution-context/core-execution-context-server => src/core/packages/execution-context/server}/index.ts (100%) rename {packages/core/execution-context/core-execution-context-server => src/core/packages/execution-context/server}/jest.config.js (82%) rename {packages/core/execution-context/core-execution-context-server => src/core/packages/execution-context/server}/kibana.jsonc (100%) rename {packages/core/execution-context/core-execution-context-server => src/core/packages/execution-context/server}/package.json (100%) rename {packages/core/execution-context/core-execution-context-server => src/core/packages/execution-context/server}/src/contracts.ts (100%) rename {packages/core/execution-context/core-execution-context-server => src/core/packages/execution-context/server}/src/types.ts (100%) rename {packages/core/execution-context/core-execution-context-server => src/core/packages/execution-context/server}/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1347a44dad5f8..5b22da0d94219 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -78,7 +78,6 @@ packages/core/elasticsearch/core-elasticsearch-client-server-mocks @elastic/kiba packages/core/elasticsearch/core-elasticsearch-server-mocks @elastic/kibana-core packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core -packages/core/execution-context/core-execution-context-server @elastic/kibana-core packages/core/execution-context/core-execution-context-server-internal @elastic/kibana-core packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/environment/server-internal @elastic/kibana-core src/core/packages/execution-context/browser @elastic/kibana-core src/core/packages/execution-context/browser-internal @elastic/kibana-core src/core/packages/execution-context/common @elastic/kibana-core +src/core/packages/execution-context/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index e8a3e61bd2158..a08ae53e913d6 100644 --- a/package.json +++ b/package.json @@ -289,7 +289,7 @@ "@kbn/core-execution-context-browser": "link:src/core/packages/execution-context/browser", "@kbn/core-execution-context-browser-internal": "link:src/core/packages/execution-context/browser-internal", "@kbn/core-execution-context-common": "link:src/core/packages/execution-context/common", - "@kbn/core-execution-context-server": "link:packages/core/execution-context/core-execution-context-server", + "@kbn/core-execution-context-server": "link:src/core/packages/execution-context/server", "@kbn/core-execution-context-server-internal": "link:packages/core/execution-context/core-execution-context-server-internal", "@kbn/core-fatal-errors-browser": "link:packages/core/fatal-errors/core-fatal-errors-browser", "@kbn/core-fatal-errors-browser-internal": "link:packages/core/fatal-errors/core-fatal-errors-browser-internal", diff --git a/packages/core/execution-context/core-execution-context-server/README.md b/src/core/packages/execution-context/server/README.md similarity index 100% rename from packages/core/execution-context/core-execution-context-server/README.md rename to src/core/packages/execution-context/server/README.md diff --git a/packages/core/execution-context/core-execution-context-server/index.ts b/src/core/packages/execution-context/server/index.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-server/index.ts rename to src/core/packages/execution-context/server/index.ts diff --git a/packages/core/execution-context/core-execution-context-server/jest.config.js b/src/core/packages/execution-context/server/jest.config.js similarity index 82% rename from packages/core/execution-context/core-execution-context-server/jest.config.js rename to src/core/packages/execution-context/server/jest.config.js index e27f6f0158a48..ba38dc072463b 100644 --- a/packages/core/execution-context/core-execution-context-server/jest.config.js +++ b/src/core/packages/execution-context/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/execution-context/core-execution-context-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/execution-context/server'], }; diff --git a/packages/core/execution-context/core-execution-context-server/kibana.jsonc b/src/core/packages/execution-context/server/kibana.jsonc similarity index 100% rename from packages/core/execution-context/core-execution-context-server/kibana.jsonc rename to src/core/packages/execution-context/server/kibana.jsonc diff --git a/packages/core/execution-context/core-execution-context-server/package.json b/src/core/packages/execution-context/server/package.json similarity index 100% rename from packages/core/execution-context/core-execution-context-server/package.json rename to src/core/packages/execution-context/server/package.json diff --git a/packages/core/execution-context/core-execution-context-server/src/contracts.ts b/src/core/packages/execution-context/server/src/contracts.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-server/src/contracts.ts rename to src/core/packages/execution-context/server/src/contracts.ts diff --git a/packages/core/execution-context/core-execution-context-server/src/types.ts b/src/core/packages/execution-context/server/src/types.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-server/src/types.ts rename to src/core/packages/execution-context/server/src/types.ts diff --git a/packages/core/execution-context/core-execution-context-server/tsconfig.json b/src/core/packages/execution-context/server/tsconfig.json similarity index 83% rename from packages/core/execution-context/core-execution-context-server/tsconfig.json rename to src/core/packages/execution-context/server/tsconfig.json index b240bd7f5bc8e..3c4ff6e35705f 100644 --- a/packages/core/execution-context/core-execution-context-server/tsconfig.json +++ b/src/core/packages/execution-context/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 7fe116860d5be..5c33d007c00a7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -354,8 +354,8 @@ "@kbn/core-execution-context-browser-mocks/*": ["packages/core/execution-context/core-execution-context-browser-mocks/*"], "@kbn/core-execution-context-common": ["src/core/packages/execution-context/common"], "@kbn/core-execution-context-common/*": ["src/core/packages/execution-context/common/*"], - "@kbn/core-execution-context-server": ["packages/core/execution-context/core-execution-context-server"], - "@kbn/core-execution-context-server/*": ["packages/core/execution-context/core-execution-context-server/*"], + "@kbn/core-execution-context-server": ["src/core/packages/execution-context/server"], + "@kbn/core-execution-context-server/*": ["src/core/packages/execution-context/server/*"], "@kbn/core-execution-context-server-internal": ["packages/core/execution-context/core-execution-context-server-internal"], "@kbn/core-execution-context-server-internal/*": ["packages/core/execution-context/core-execution-context-server-internal/*"], "@kbn/core-execution-context-server-mocks": ["packages/core/execution-context/core-execution-context-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 116eee9fcf2c3..e8575375c5afd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4529,7 +4529,7 @@ version "0.0.0" uid "" -"@kbn/core-execution-context-server@link:packages/core/execution-context/core-execution-context-server": +"@kbn/core-execution-context-server@link:src/core/packages/execution-context/server": version "0.0.0" uid "" From 9de0bd3a07237991ff7b0dfc2dd84c2860c7b507 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:26:30 +0100 Subject: [PATCH 037/167] Relocating module `@kbn/core-execution-context-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/execution-context/server-internal}/README.md | 0 .../core/packages/execution-context/server-internal}/index.ts | 0 .../execution-context/server-internal}/jest.config.js | 4 ++-- .../packages/execution-context/server-internal}/kibana.jsonc | 0 .../packages/execution-context/server-internal}/package.json | 0 .../server-internal}/src/execution_context_config.ts | 0 .../server-internal}/src/execution_context_container.test.ts | 0 .../server-internal}/src/execution_context_container.ts | 0 .../server-internal}/src/execution_context_service.test.ts | 0 .../server-internal}/src/execution_context_service.ts | 0 .../packages/execution-context/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/execution-context/core-execution-context-server-internal => src/core/packages/execution-context/server-internal}/README.md (100%) rename {packages/core/execution-context/core-execution-context-server-internal => src/core/packages/execution-context/server-internal}/index.ts (100%) rename {packages/core/execution-context/core-execution-context-server-internal => src/core/packages/execution-context/server-internal}/jest.config.js (81%) rename {packages/core/execution-context/core-execution-context-server-internal => src/core/packages/execution-context/server-internal}/kibana.jsonc (100%) rename {packages/core/execution-context/core-execution-context-server-internal => src/core/packages/execution-context/server-internal}/package.json (100%) rename {packages/core/execution-context/core-execution-context-server-internal => src/core/packages/execution-context/server-internal}/src/execution_context_config.ts (100%) rename {packages/core/execution-context/core-execution-context-server-internal => src/core/packages/execution-context/server-internal}/src/execution_context_container.test.ts (100%) rename {packages/core/execution-context/core-execution-context-server-internal => src/core/packages/execution-context/server-internal}/src/execution_context_container.ts (100%) rename {packages/core/execution-context/core-execution-context-server-internal => src/core/packages/execution-context/server-internal}/src/execution_context_service.test.ts (100%) rename {packages/core/execution-context/core-execution-context-server-internal => src/core/packages/execution-context/server-internal}/src/execution_context_service.ts (100%) rename {packages/core/execution-context/core-execution-context-server-internal => src/core/packages/execution-context/server-internal}/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5b22da0d94219..05b716ee5eb15 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -78,7 +78,6 @@ packages/core/elasticsearch/core-elasticsearch-client-server-mocks @elastic/kiba packages/core/elasticsearch/core-elasticsearch-server-mocks @elastic/kibana-core packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core -packages/core/execution-context/core-execution-context-server-internal @elastic/kibana-core packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/execution-context/browser @elastic/kibana-core src/core/packages/execution-context/browser-internal @elastic/kibana-core src/core/packages/execution-context/common @elastic/kibana-core src/core/packages/execution-context/server @elastic/kibana-core +src/core/packages/execution-context/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index a08ae53e913d6..31ff4190e4121 100644 --- a/package.json +++ b/package.json @@ -290,7 +290,7 @@ "@kbn/core-execution-context-browser-internal": "link:src/core/packages/execution-context/browser-internal", "@kbn/core-execution-context-common": "link:src/core/packages/execution-context/common", "@kbn/core-execution-context-server": "link:src/core/packages/execution-context/server", - "@kbn/core-execution-context-server-internal": "link:packages/core/execution-context/core-execution-context-server-internal", + "@kbn/core-execution-context-server-internal": "link:src/core/packages/execution-context/server-internal", "@kbn/core-fatal-errors-browser": "link:packages/core/fatal-errors/core-fatal-errors-browser", "@kbn/core-fatal-errors-browser-internal": "link:packages/core/fatal-errors/core-fatal-errors-browser-internal", "@kbn/core-feature-flags-browser": "link:packages/core/feature-flags/core-feature-flags-browser", diff --git a/packages/core/execution-context/core-execution-context-server-internal/README.md b/src/core/packages/execution-context/server-internal/README.md similarity index 100% rename from packages/core/execution-context/core-execution-context-server-internal/README.md rename to src/core/packages/execution-context/server-internal/README.md diff --git a/packages/core/execution-context/core-execution-context-server-internal/index.ts b/src/core/packages/execution-context/server-internal/index.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-server-internal/index.ts rename to src/core/packages/execution-context/server-internal/index.ts diff --git a/packages/core/execution-context/core-execution-context-server-internal/jest.config.js b/src/core/packages/execution-context/server-internal/jest.config.js similarity index 81% rename from packages/core/execution-context/core-execution-context-server-internal/jest.config.js rename to src/core/packages/execution-context/server-internal/jest.config.js index 2928d02bcbed9..535bb554f6c95 100644 --- a/packages/core/execution-context/core-execution-context-server-internal/jest.config.js +++ b/src/core/packages/execution-context/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/execution-context/core-execution-context-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/execution-context/server-internal'], }; diff --git a/packages/core/execution-context/core-execution-context-server-internal/kibana.jsonc b/src/core/packages/execution-context/server-internal/kibana.jsonc similarity index 100% rename from packages/core/execution-context/core-execution-context-server-internal/kibana.jsonc rename to src/core/packages/execution-context/server-internal/kibana.jsonc diff --git a/packages/core/execution-context/core-execution-context-server-internal/package.json b/src/core/packages/execution-context/server-internal/package.json similarity index 100% rename from packages/core/execution-context/core-execution-context-server-internal/package.json rename to src/core/packages/execution-context/server-internal/package.json diff --git a/packages/core/execution-context/core-execution-context-server-internal/src/execution_context_config.ts b/src/core/packages/execution-context/server-internal/src/execution_context_config.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-server-internal/src/execution_context_config.ts rename to src/core/packages/execution-context/server-internal/src/execution_context_config.ts diff --git a/packages/core/execution-context/core-execution-context-server-internal/src/execution_context_container.test.ts b/src/core/packages/execution-context/server-internal/src/execution_context_container.test.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-server-internal/src/execution_context_container.test.ts rename to src/core/packages/execution-context/server-internal/src/execution_context_container.test.ts diff --git a/packages/core/execution-context/core-execution-context-server-internal/src/execution_context_container.ts b/src/core/packages/execution-context/server-internal/src/execution_context_container.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-server-internal/src/execution_context_container.ts rename to src/core/packages/execution-context/server-internal/src/execution_context_container.ts diff --git a/packages/core/execution-context/core-execution-context-server-internal/src/execution_context_service.test.ts b/src/core/packages/execution-context/server-internal/src/execution_context_service.test.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-server-internal/src/execution_context_service.test.ts rename to src/core/packages/execution-context/server-internal/src/execution_context_service.test.ts diff --git a/packages/core/execution-context/core-execution-context-server-internal/src/execution_context_service.ts b/src/core/packages/execution-context/server-internal/src/execution_context_service.ts similarity index 100% rename from packages/core/execution-context/core-execution-context-server-internal/src/execution_context_service.ts rename to src/core/packages/execution-context/server-internal/src/execution_context_service.ts diff --git a/packages/core/execution-context/core-execution-context-server-internal/tsconfig.json b/src/core/packages/execution-context/server-internal/tsconfig.json similarity index 90% rename from packages/core/execution-context/core-execution-context-server-internal/tsconfig.json rename to src/core/packages/execution-context/server-internal/tsconfig.json index ecaf9eb98cc59..f415dea692f5d 100644 --- a/packages/core/execution-context/core-execution-context-server-internal/tsconfig.json +++ b/src/core/packages/execution-context/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 5c33d007c00a7..ec8d54f36f3ba 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -356,8 +356,8 @@ "@kbn/core-execution-context-common/*": ["src/core/packages/execution-context/common/*"], "@kbn/core-execution-context-server": ["src/core/packages/execution-context/server"], "@kbn/core-execution-context-server/*": ["src/core/packages/execution-context/server/*"], - "@kbn/core-execution-context-server-internal": ["packages/core/execution-context/core-execution-context-server-internal"], - "@kbn/core-execution-context-server-internal/*": ["packages/core/execution-context/core-execution-context-server-internal/*"], + "@kbn/core-execution-context-server-internal": ["src/core/packages/execution-context/server-internal"], + "@kbn/core-execution-context-server-internal/*": ["src/core/packages/execution-context/server-internal/*"], "@kbn/core-execution-context-server-mocks": ["packages/core/execution-context/core-execution-context-server-mocks"], "@kbn/core-execution-context-server-mocks/*": ["packages/core/execution-context/core-execution-context-server-mocks/*"], "@kbn/core-fatal-errors-browser": ["packages/core/fatal-errors/core-fatal-errors-browser"], diff --git a/yarn.lock b/yarn.lock index e8575375c5afd..090390106ad06 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4521,7 +4521,7 @@ version "0.0.0" uid "" -"@kbn/core-execution-context-server-internal@link:packages/core/execution-context/core-execution-context-server-internal": +"@kbn/core-execution-context-server-internal@link:src/core/packages/execution-context/server-internal": version "0.0.0" uid "" From 3ce5abd808cfff4d08de78018598f49c65d810c4 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:27:23 +0100 Subject: [PATCH 038/167] Relocating module `@kbn/core-fatal-errors-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/fatal-errors/browser}/README.md | 0 .../core/packages/fatal-errors/browser}/index.ts | 0 .../core/packages/fatal-errors/browser}/jest.config.js | 4 ++-- .../core/packages/fatal-errors/browser}/kibana.jsonc | 0 .../core/packages/fatal-errors/browser}/package.json | 0 .../core/packages/fatal-errors/browser}/src/contract.ts | 0 .../core/packages/fatal-errors/browser}/src/get_error_info.ts | 0 .../core/packages/fatal-errors/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/fatal-errors/core-fatal-errors-browser => src/core/packages/fatal-errors/browser}/README.md (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser => src/core/packages/fatal-errors/browser}/index.ts (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser => src/core/packages/fatal-errors/browser}/jest.config.js (83%) rename {packages/core/fatal-errors/core-fatal-errors-browser => src/core/packages/fatal-errors/browser}/kibana.jsonc (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser => src/core/packages/fatal-errors/browser}/package.json (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser => src/core/packages/fatal-errors/browser}/src/contract.ts (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser => src/core/packages/fatal-errors/browser}/src/get_error_info.ts (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser => src/core/packages/fatal-errors/browser}/tsconfig.json (79%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 05b716ee5eb15..e828521b42100 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -79,7 +79,6 @@ packages/core/elasticsearch/core-elasticsearch-server-mocks @elastic/kibana-core packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core -packages/core/fatal-errors/core-fatal-errors-browser @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-internal @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core packages/core/feature-flags/core-feature-flags-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/execution-context/browser-internal @elastic/kibana-core src/core/packages/execution-context/common @elastic/kibana-core src/core/packages/execution-context/server @elastic/kibana-core src/core/packages/execution-context/server-internal @elastic/kibana-core +src/core/packages/fatal-errors/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 31ff4190e4121..2510d932541d7 100644 --- a/package.json +++ b/package.json @@ -291,7 +291,7 @@ "@kbn/core-execution-context-common": "link:src/core/packages/execution-context/common", "@kbn/core-execution-context-server": "link:src/core/packages/execution-context/server", "@kbn/core-execution-context-server-internal": "link:src/core/packages/execution-context/server-internal", - "@kbn/core-fatal-errors-browser": "link:packages/core/fatal-errors/core-fatal-errors-browser", + "@kbn/core-fatal-errors-browser": "link:src/core/packages/fatal-errors/browser", "@kbn/core-fatal-errors-browser-internal": "link:packages/core/fatal-errors/core-fatal-errors-browser-internal", "@kbn/core-feature-flags-browser": "link:packages/core/feature-flags/core-feature-flags-browser", "@kbn/core-feature-flags-browser-internal": "link:packages/core/feature-flags/core-feature-flags-browser-internal", diff --git a/packages/core/fatal-errors/core-fatal-errors-browser/README.md b/src/core/packages/fatal-errors/browser/README.md similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser/README.md rename to src/core/packages/fatal-errors/browser/README.md diff --git a/packages/core/fatal-errors/core-fatal-errors-browser/index.ts b/src/core/packages/fatal-errors/browser/index.ts similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser/index.ts rename to src/core/packages/fatal-errors/browser/index.ts diff --git a/packages/core/fatal-errors/core-fatal-errors-browser/jest.config.js b/src/core/packages/fatal-errors/browser/jest.config.js similarity index 83% rename from packages/core/fatal-errors/core-fatal-errors-browser/jest.config.js rename to src/core/packages/fatal-errors/browser/jest.config.js index 0148310cbf18b..c3a8c9da2ee15 100644 --- a/packages/core/fatal-errors/core-fatal-errors-browser/jest.config.js +++ b/src/core/packages/fatal-errors/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/fatal-errors/core-fatal-errors-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/fatal-errors/browser'], }; diff --git a/packages/core/fatal-errors/core-fatal-errors-browser/kibana.jsonc b/src/core/packages/fatal-errors/browser/kibana.jsonc similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser/kibana.jsonc rename to src/core/packages/fatal-errors/browser/kibana.jsonc diff --git a/packages/core/fatal-errors/core-fatal-errors-browser/package.json b/src/core/packages/fatal-errors/browser/package.json similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser/package.json rename to src/core/packages/fatal-errors/browser/package.json diff --git a/packages/core/fatal-errors/core-fatal-errors-browser/src/contract.ts b/src/core/packages/fatal-errors/browser/src/contract.ts similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser/src/contract.ts rename to src/core/packages/fatal-errors/browser/src/contract.ts diff --git a/packages/core/fatal-errors/core-fatal-errors-browser/src/get_error_info.ts b/src/core/packages/fatal-errors/browser/src/get_error_info.ts similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser/src/get_error_info.ts rename to src/core/packages/fatal-errors/browser/src/get_error_info.ts diff --git a/packages/core/fatal-errors/core-fatal-errors-browser/tsconfig.json b/src/core/packages/fatal-errors/browser/tsconfig.json similarity index 79% rename from packages/core/fatal-errors/core-fatal-errors-browser/tsconfig.json rename to src/core/packages/fatal-errors/browser/tsconfig.json index 0f16c2b9311d8..14019fa2b02b7 100644 --- a/packages/core/fatal-errors/core-fatal-errors-browser/tsconfig.json +++ b/src/core/packages/fatal-errors/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index ec8d54f36f3ba..fe8d07638161b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -360,8 +360,8 @@ "@kbn/core-execution-context-server-internal/*": ["src/core/packages/execution-context/server-internal/*"], "@kbn/core-execution-context-server-mocks": ["packages/core/execution-context/core-execution-context-server-mocks"], "@kbn/core-execution-context-server-mocks/*": ["packages/core/execution-context/core-execution-context-server-mocks/*"], - "@kbn/core-fatal-errors-browser": ["packages/core/fatal-errors/core-fatal-errors-browser"], - "@kbn/core-fatal-errors-browser/*": ["packages/core/fatal-errors/core-fatal-errors-browser/*"], + "@kbn/core-fatal-errors-browser": ["src/core/packages/fatal-errors/browser"], + "@kbn/core-fatal-errors-browser/*": ["src/core/packages/fatal-errors/browser/*"], "@kbn/core-fatal-errors-browser-internal": ["packages/core/fatal-errors/core-fatal-errors-browser-internal"], "@kbn/core-fatal-errors-browser-internal/*": ["packages/core/fatal-errors/core-fatal-errors-browser-internal/*"], "@kbn/core-fatal-errors-browser-mocks": ["packages/core/fatal-errors/core-fatal-errors-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index 090390106ad06..8d289ab323db4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4541,7 +4541,7 @@ version "0.0.0" uid "" -"@kbn/core-fatal-errors-browser@link:packages/core/fatal-errors/core-fatal-errors-browser": +"@kbn/core-fatal-errors-browser@link:src/core/packages/fatal-errors/browser": version "0.0.0" uid "" From 3ee392a703a6c7c275c87691e68551316cfdd526 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:28:16 +0100 Subject: [PATCH 039/167] Relocating module `@kbn/core-fatal-errors-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/fatal-errors/browser-internal}/README.md | 0 .../core/packages/fatal-errors/browser-internal}/index.ts | 0 .../packages/fatal-errors/browser-internal}/jest.config.js | 4 ++-- .../core/packages/fatal-errors/browser-internal}/kibana.jsonc | 0 .../core/packages/fatal-errors/browser-internal}/package.json | 0 .../src/__snapshots__/fatal_errors_screen.test.tsx.snap | 0 .../src/__snapshots__/fatal_errors_service.test.ts.snap | 0 .../browser-internal}/src/fatal_errors_screen.test.tsx | 0 .../browser-internal}/src/fatal_errors_screen.tsx | 0 .../browser-internal}/src/fatal_errors_service.test.mocks.ts | 0 .../browser-internal}/src/fatal_errors_service.test.ts | 0 .../browser-internal}/src/fatal_errors_service.tsx | 0 .../fatal-errors/browser-internal}/src/get_error_info.test.ts | 0 .../fatal-errors/browser-internal}/src/get_error_info.ts | 0 .../packages/fatal-errors/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 19 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/README.md (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/index.ts (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/jest.config.js (82%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/kibana.jsonc (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/package.json (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/src/__snapshots__/fatal_errors_screen.test.tsx.snap (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/src/__snapshots__/fatal_errors_service.test.ts.snap (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/src/fatal_errors_screen.test.tsx (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/src/fatal_errors_screen.tsx (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/src/fatal_errors_service.test.mocks.ts (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/src/fatal_errors_service.test.ts (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/src/fatal_errors_service.tsx (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/src/get_error_info.test.ts (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/src/get_error_info.ts (100%) rename {packages/core/fatal-errors/core-fatal-errors-browser-internal => src/core/packages/fatal-errors/browser-internal}/tsconfig.json (93%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e828521b42100..10a1e30c998e2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -79,7 +79,6 @@ packages/core/elasticsearch/core-elasticsearch-server-mocks @elastic/kibana-core packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core -packages/core/fatal-errors/core-fatal-errors-browser-internal @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core packages/core/feature-flags/core-feature-flags-browser @elastic/kibana-core packages/core/feature-flags/core-feature-flags-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/execution-context/common @elastic/kibana-core src/core/packages/execution-context/server @elastic/kibana-core src/core/packages/execution-context/server-internal @elastic/kibana-core src/core/packages/fatal-errors/browser @elastic/kibana-core +src/core/packages/fatal-errors/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 2510d932541d7..fa562205fb618 100644 --- a/package.json +++ b/package.json @@ -292,7 +292,7 @@ "@kbn/core-execution-context-server": "link:src/core/packages/execution-context/server", "@kbn/core-execution-context-server-internal": "link:src/core/packages/execution-context/server-internal", "@kbn/core-fatal-errors-browser": "link:src/core/packages/fatal-errors/browser", - "@kbn/core-fatal-errors-browser-internal": "link:packages/core/fatal-errors/core-fatal-errors-browser-internal", + "@kbn/core-fatal-errors-browser-internal": "link:src/core/packages/fatal-errors/browser-internal", "@kbn/core-feature-flags-browser": "link:packages/core/feature-flags/core-feature-flags-browser", "@kbn/core-feature-flags-browser-internal": "link:packages/core/feature-flags/core-feature-flags-browser-internal", "@kbn/core-feature-flags-browser-mocks": "link:packages/core/feature-flags/core-feature-flags-browser-mocks", diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/README.md b/src/core/packages/fatal-errors/browser-internal/README.md similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/README.md rename to src/core/packages/fatal-errors/browser-internal/README.md diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/index.ts b/src/core/packages/fatal-errors/browser-internal/index.ts similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/index.ts rename to src/core/packages/fatal-errors/browser-internal/index.ts diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/jest.config.js b/src/core/packages/fatal-errors/browser-internal/jest.config.js similarity index 82% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/jest.config.js rename to src/core/packages/fatal-errors/browser-internal/jest.config.js index bb1e82f044915..757ef1fa4c8aa 100644 --- a/packages/core/fatal-errors/core-fatal-errors-browser-internal/jest.config.js +++ b/src/core/packages/fatal-errors/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/fatal-errors/core-fatal-errors-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/fatal-errors/browser-internal'], }; diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/kibana.jsonc b/src/core/packages/fatal-errors/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/kibana.jsonc rename to src/core/packages/fatal-errors/browser-internal/kibana.jsonc diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/package.json b/src/core/packages/fatal-errors/browser-internal/package.json similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/package.json rename to src/core/packages/fatal-errors/browser-internal/package.json diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/src/__snapshots__/fatal_errors_screen.test.tsx.snap b/src/core/packages/fatal-errors/browser-internal/src/__snapshots__/fatal_errors_screen.test.tsx.snap similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/src/__snapshots__/fatal_errors_screen.test.tsx.snap rename to src/core/packages/fatal-errors/browser-internal/src/__snapshots__/fatal_errors_screen.test.tsx.snap diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/src/__snapshots__/fatal_errors_service.test.ts.snap b/src/core/packages/fatal-errors/browser-internal/src/__snapshots__/fatal_errors_service.test.ts.snap similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/src/__snapshots__/fatal_errors_service.test.ts.snap rename to src/core/packages/fatal-errors/browser-internal/src/__snapshots__/fatal_errors_service.test.ts.snap diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/src/fatal_errors_screen.test.tsx b/src/core/packages/fatal-errors/browser-internal/src/fatal_errors_screen.test.tsx similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/src/fatal_errors_screen.test.tsx rename to src/core/packages/fatal-errors/browser-internal/src/fatal_errors_screen.test.tsx diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/src/fatal_errors_screen.tsx b/src/core/packages/fatal-errors/browser-internal/src/fatal_errors_screen.tsx similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/src/fatal_errors_screen.tsx rename to src/core/packages/fatal-errors/browser-internal/src/fatal_errors_screen.tsx diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/src/fatal_errors_service.test.mocks.ts b/src/core/packages/fatal-errors/browser-internal/src/fatal_errors_service.test.mocks.ts similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/src/fatal_errors_service.test.mocks.ts rename to src/core/packages/fatal-errors/browser-internal/src/fatal_errors_service.test.mocks.ts diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/src/fatal_errors_service.test.ts b/src/core/packages/fatal-errors/browser-internal/src/fatal_errors_service.test.ts similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/src/fatal_errors_service.test.ts rename to src/core/packages/fatal-errors/browser-internal/src/fatal_errors_service.test.ts diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/src/fatal_errors_service.tsx b/src/core/packages/fatal-errors/browser-internal/src/fatal_errors_service.tsx similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/src/fatal_errors_service.tsx rename to src/core/packages/fatal-errors/browser-internal/src/fatal_errors_service.tsx diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/src/get_error_info.test.ts b/src/core/packages/fatal-errors/browser-internal/src/get_error_info.test.ts similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/src/get_error_info.test.ts rename to src/core/packages/fatal-errors/browser-internal/src/get_error_info.test.ts diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/src/get_error_info.ts b/src/core/packages/fatal-errors/browser-internal/src/get_error_info.ts similarity index 100% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/src/get_error_info.ts rename to src/core/packages/fatal-errors/browser-internal/src/get_error_info.ts diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/tsconfig.json b/src/core/packages/fatal-errors/browser-internal/tsconfig.json similarity index 93% rename from packages/core/fatal-errors/core-fatal-errors-browser-internal/tsconfig.json rename to src/core/packages/fatal-errors/browser-internal/tsconfig.json index 3f4a96970a8c5..e53dde1c66a78 100644 --- a/packages/core/fatal-errors/core-fatal-errors-browser-internal/tsconfig.json +++ b/src/core/packages/fatal-errors/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index fe8d07638161b..a13dab3b0eef9 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -362,8 +362,8 @@ "@kbn/core-execution-context-server-mocks/*": ["packages/core/execution-context/core-execution-context-server-mocks/*"], "@kbn/core-fatal-errors-browser": ["src/core/packages/fatal-errors/browser"], "@kbn/core-fatal-errors-browser/*": ["src/core/packages/fatal-errors/browser/*"], - "@kbn/core-fatal-errors-browser-internal": ["packages/core/fatal-errors/core-fatal-errors-browser-internal"], - "@kbn/core-fatal-errors-browser-internal/*": ["packages/core/fatal-errors/core-fatal-errors-browser-internal/*"], + "@kbn/core-fatal-errors-browser-internal": ["src/core/packages/fatal-errors/browser-internal"], + "@kbn/core-fatal-errors-browser-internal/*": ["src/core/packages/fatal-errors/browser-internal/*"], "@kbn/core-fatal-errors-browser-mocks": ["packages/core/fatal-errors/core-fatal-errors-browser-mocks"], "@kbn/core-fatal-errors-browser-mocks/*": ["packages/core/fatal-errors/core-fatal-errors-browser-mocks/*"], "@kbn/core-feature-flags-browser": ["packages/core/feature-flags/core-feature-flags-browser"], diff --git a/yarn.lock b/yarn.lock index 8d289ab323db4..5f48914021eb1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4533,7 +4533,7 @@ version "0.0.0" uid "" -"@kbn/core-fatal-errors-browser-internal@link:packages/core/fatal-errors/core-fatal-errors-browser-internal": +"@kbn/core-fatal-errors-browser-internal@link:src/core/packages/fatal-errors/browser-internal": version "0.0.0" uid "" From c797b8531168a2771160b5ca570b88e85c9f8710 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:29:08 +0100 Subject: [PATCH 040/167] Relocating module `@kbn/core-feature-flags-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/feature-flags/browser}/README.md | 0 .../core/packages/feature-flags/browser}/index.ts | 0 .../core/packages/feature-flags/browser}/kibana.jsonc | 0 .../core/packages/feature-flags/browser}/package.json | 0 .../core/packages/feature-flags/browser}/src/types.ts | 0 .../core/packages/feature-flags/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 6 insertions(+), 6 deletions(-) rename {packages/core/feature-flags/core-feature-flags-browser => src/core/packages/feature-flags/browser}/README.md (100%) rename {packages/core/feature-flags/core-feature-flags-browser => src/core/packages/feature-flags/browser}/index.ts (100%) rename {packages/core/feature-flags/core-feature-flags-browser => src/core/packages/feature-flags/browser}/kibana.jsonc (100%) rename {packages/core/feature-flags/core-feature-flags-browser => src/core/packages/feature-flags/browser}/package.json (100%) rename {packages/core/feature-flags/core-feature-flags-browser => src/core/packages/feature-flags/browser}/src/types.ts (100%) rename {packages/core/feature-flags/core-feature-flags-browser => src/core/packages/feature-flags/browser}/tsconfig.json (81%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 10a1e30c998e2..0106ce8ced424 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -80,7 +80,6 @@ packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core -packages/core/feature-flags/core-feature-flags-browser @elastic/kibana-core packages/core/feature-flags/core-feature-flags-browser-internal @elastic/kibana-core packages/core/feature-flags/core-feature-flags-browser-mocks @elastic/kibana-core packages/core/feature-flags/core-feature-flags-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/execution-context/server @elastic/kibana-core src/core/packages/execution-context/server-internal @elastic/kibana-core src/core/packages/fatal-errors/browser @elastic/kibana-core src/core/packages/fatal-errors/browser-internal @elastic/kibana-core +src/core/packages/feature-flags/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index fa562205fb618..ce844d11fec98 100644 --- a/package.json +++ b/package.json @@ -293,7 +293,7 @@ "@kbn/core-execution-context-server-internal": "link:src/core/packages/execution-context/server-internal", "@kbn/core-fatal-errors-browser": "link:src/core/packages/fatal-errors/browser", "@kbn/core-fatal-errors-browser-internal": "link:src/core/packages/fatal-errors/browser-internal", - "@kbn/core-feature-flags-browser": "link:packages/core/feature-flags/core-feature-flags-browser", + "@kbn/core-feature-flags-browser": "link:src/core/packages/feature-flags/browser", "@kbn/core-feature-flags-browser-internal": "link:packages/core/feature-flags/core-feature-flags-browser-internal", "@kbn/core-feature-flags-browser-mocks": "link:packages/core/feature-flags/core-feature-flags-browser-mocks", "@kbn/core-feature-flags-server": "link:packages/core/feature-flags/core-feature-flags-server", diff --git a/packages/core/feature-flags/core-feature-flags-browser/README.md b/src/core/packages/feature-flags/browser/README.md similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser/README.md rename to src/core/packages/feature-flags/browser/README.md diff --git a/packages/core/feature-flags/core-feature-flags-browser/index.ts b/src/core/packages/feature-flags/browser/index.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser/index.ts rename to src/core/packages/feature-flags/browser/index.ts diff --git a/packages/core/feature-flags/core-feature-flags-browser/kibana.jsonc b/src/core/packages/feature-flags/browser/kibana.jsonc similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser/kibana.jsonc rename to src/core/packages/feature-flags/browser/kibana.jsonc diff --git a/packages/core/feature-flags/core-feature-flags-browser/package.json b/src/core/packages/feature-flags/browser/package.json similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser/package.json rename to src/core/packages/feature-flags/browser/package.json diff --git a/packages/core/feature-flags/core-feature-flags-browser/src/types.ts b/src/core/packages/feature-flags/browser/src/types.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser/src/types.ts rename to src/core/packages/feature-flags/browser/src/types.ts diff --git a/packages/core/feature-flags/core-feature-flags-browser/tsconfig.json b/src/core/packages/feature-flags/browser/tsconfig.json similarity index 81% rename from packages/core/feature-flags/core-feature-flags-browser/tsconfig.json rename to src/core/packages/feature-flags/browser/tsconfig.json index 9fa73d55be770..5f27cb2c19456 100644 --- a/packages/core/feature-flags/core-feature-flags-browser/tsconfig.json +++ b/src/core/packages/feature-flags/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index a13dab3b0eef9..150e38eca94f7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -366,8 +366,8 @@ "@kbn/core-fatal-errors-browser-internal/*": ["src/core/packages/fatal-errors/browser-internal/*"], "@kbn/core-fatal-errors-browser-mocks": ["packages/core/fatal-errors/core-fatal-errors-browser-mocks"], "@kbn/core-fatal-errors-browser-mocks/*": ["packages/core/fatal-errors/core-fatal-errors-browser-mocks/*"], - "@kbn/core-feature-flags-browser": ["packages/core/feature-flags/core-feature-flags-browser"], - "@kbn/core-feature-flags-browser/*": ["packages/core/feature-flags/core-feature-flags-browser/*"], + "@kbn/core-feature-flags-browser": ["src/core/packages/feature-flags/browser"], + "@kbn/core-feature-flags-browser/*": ["src/core/packages/feature-flags/browser/*"], "@kbn/core-feature-flags-browser-internal": ["packages/core/feature-flags/core-feature-flags-browser-internal"], "@kbn/core-feature-flags-browser-internal/*": ["packages/core/feature-flags/core-feature-flags-browser-internal/*"], "@kbn/core-feature-flags-browser-mocks": ["packages/core/feature-flags/core-feature-flags-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index 5f48914021eb1..2c897186d1c20 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4553,7 +4553,7 @@ version "0.0.0" uid "" -"@kbn/core-feature-flags-browser@link:packages/core/feature-flags/core-feature-flags-browser": +"@kbn/core-feature-flags-browser@link:src/core/packages/feature-flags/browser": version "0.0.0" uid "" From 37723b9863db458822c51df13e301af73e894e48 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:30:01 +0100 Subject: [PATCH 041/167] Relocating module `@kbn/core-feature-flags-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/feature-flags/browser-internal}/README.md | 0 .../core/packages/feature-flags/browser-internal}/index.ts | 0 .../packages/feature-flags/browser-internal}/jest.config.js | 4 ++-- .../packages/feature-flags/browser-internal}/kibana.jsonc | 0 .../packages/feature-flags/browser-internal}/package.json | 0 .../browser-internal}/src/feature_flags_service.test.ts | 0 .../browser-internal}/src/feature_flags_service.ts | 0 .../packages/feature-flags/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/feature-flags/core-feature-flags-browser-internal => src/core/packages/feature-flags/browser-internal}/README.md (100%) rename {packages/core/feature-flags/core-feature-flags-browser-internal => src/core/packages/feature-flags/browser-internal}/index.ts (100%) rename {packages/core/feature-flags/core-feature-flags-browser-internal => src/core/packages/feature-flags/browser-internal}/jest.config.js (81%) rename {packages/core/feature-flags/core-feature-flags-browser-internal => src/core/packages/feature-flags/browser-internal}/kibana.jsonc (100%) rename {packages/core/feature-flags/core-feature-flags-browser-internal => src/core/packages/feature-flags/browser-internal}/package.json (100%) rename {packages/core/feature-flags/core-feature-flags-browser-internal => src/core/packages/feature-flags/browser-internal}/src/feature_flags_service.test.ts (100%) rename {packages/core/feature-flags/core-feature-flags-browser-internal => src/core/packages/feature-flags/browser-internal}/src/feature_flags_service.ts (100%) rename {packages/core/feature-flags/core-feature-flags-browser-internal => src/core/packages/feature-flags/browser-internal}/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0106ce8ced424..b5616db424dea 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -80,7 +80,6 @@ packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core -packages/core/feature-flags/core-feature-flags-browser-internal @elastic/kibana-core packages/core/feature-flags/core-feature-flags-browser-mocks @elastic/kibana-core packages/core/feature-flags/core-feature-flags-server @elastic/kibana-core packages/core/feature-flags/core-feature-flags-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/execution-context/server-internal @elastic/kibana-core src/core/packages/fatal-errors/browser @elastic/kibana-core src/core/packages/fatal-errors/browser-internal @elastic/kibana-core src/core/packages/feature-flags/browser @elastic/kibana-core +src/core/packages/feature-flags/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index ce844d11fec98..078c8c6644185 100644 --- a/package.json +++ b/package.json @@ -294,7 +294,7 @@ "@kbn/core-fatal-errors-browser": "link:src/core/packages/fatal-errors/browser", "@kbn/core-fatal-errors-browser-internal": "link:src/core/packages/fatal-errors/browser-internal", "@kbn/core-feature-flags-browser": "link:src/core/packages/feature-flags/browser", - "@kbn/core-feature-flags-browser-internal": "link:packages/core/feature-flags/core-feature-flags-browser-internal", + "@kbn/core-feature-flags-browser-internal": "link:src/core/packages/feature-flags/browser-internal", "@kbn/core-feature-flags-browser-mocks": "link:packages/core/feature-flags/core-feature-flags-browser-mocks", "@kbn/core-feature-flags-server": "link:packages/core/feature-flags/core-feature-flags-server", "@kbn/core-feature-flags-server-internal": "link:packages/core/feature-flags/core-feature-flags-server-internal", diff --git a/packages/core/feature-flags/core-feature-flags-browser-internal/README.md b/src/core/packages/feature-flags/browser-internal/README.md similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser-internal/README.md rename to src/core/packages/feature-flags/browser-internal/README.md diff --git a/packages/core/feature-flags/core-feature-flags-browser-internal/index.ts b/src/core/packages/feature-flags/browser-internal/index.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser-internal/index.ts rename to src/core/packages/feature-flags/browser-internal/index.ts diff --git a/packages/core/feature-flags/core-feature-flags-browser-internal/jest.config.js b/src/core/packages/feature-flags/browser-internal/jest.config.js similarity index 81% rename from packages/core/feature-flags/core-feature-flags-browser-internal/jest.config.js rename to src/core/packages/feature-flags/browser-internal/jest.config.js index be4a9c1b14073..9555558cc3936 100644 --- a/packages/core/feature-flags/core-feature-flags-browser-internal/jest.config.js +++ b/src/core/packages/feature-flags/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/feature-flags/core-feature-flags-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/feature-flags/browser-internal'], }; diff --git a/packages/core/feature-flags/core-feature-flags-browser-internal/kibana.jsonc b/src/core/packages/feature-flags/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser-internal/kibana.jsonc rename to src/core/packages/feature-flags/browser-internal/kibana.jsonc diff --git a/packages/core/feature-flags/core-feature-flags-browser-internal/package.json b/src/core/packages/feature-flags/browser-internal/package.json similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser-internal/package.json rename to src/core/packages/feature-flags/browser-internal/package.json diff --git a/packages/core/feature-flags/core-feature-flags-browser-internal/src/feature_flags_service.test.ts b/src/core/packages/feature-flags/browser-internal/src/feature_flags_service.test.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser-internal/src/feature_flags_service.test.ts rename to src/core/packages/feature-flags/browser-internal/src/feature_flags_service.test.ts diff --git a/packages/core/feature-flags/core-feature-flags-browser-internal/src/feature_flags_service.ts b/src/core/packages/feature-flags/browser-internal/src/feature_flags_service.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser-internal/src/feature_flags_service.ts rename to src/core/packages/feature-flags/browser-internal/src/feature_flags_service.ts diff --git a/packages/core/feature-flags/core-feature-flags-browser-internal/tsconfig.json b/src/core/packages/feature-flags/browser-internal/tsconfig.json similarity index 90% rename from packages/core/feature-flags/core-feature-flags-browser-internal/tsconfig.json rename to src/core/packages/feature-flags/browser-internal/tsconfig.json index 3ed73d73e75a3..2138b5a7a2cce 100644 --- a/packages/core/feature-flags/core-feature-flags-browser-internal/tsconfig.json +++ b/src/core/packages/feature-flags/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 150e38eca94f7..b4f9bcd43d640 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -368,8 +368,8 @@ "@kbn/core-fatal-errors-browser-mocks/*": ["packages/core/fatal-errors/core-fatal-errors-browser-mocks/*"], "@kbn/core-feature-flags-browser": ["src/core/packages/feature-flags/browser"], "@kbn/core-feature-flags-browser/*": ["src/core/packages/feature-flags/browser/*"], - "@kbn/core-feature-flags-browser-internal": ["packages/core/feature-flags/core-feature-flags-browser-internal"], - "@kbn/core-feature-flags-browser-internal/*": ["packages/core/feature-flags/core-feature-flags-browser-internal/*"], + "@kbn/core-feature-flags-browser-internal": ["src/core/packages/feature-flags/browser-internal"], + "@kbn/core-feature-flags-browser-internal/*": ["src/core/packages/feature-flags/browser-internal/*"], "@kbn/core-feature-flags-browser-mocks": ["packages/core/feature-flags/core-feature-flags-browser-mocks"], "@kbn/core-feature-flags-browser-mocks/*": ["packages/core/feature-flags/core-feature-flags-browser-mocks/*"], "@kbn/core-feature-flags-server": ["packages/core/feature-flags/core-feature-flags-server"], diff --git a/yarn.lock b/yarn.lock index 2c897186d1c20..3c7e492c81906 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4545,7 +4545,7 @@ version "0.0.0" uid "" -"@kbn/core-feature-flags-browser-internal@link:packages/core/feature-flags/core-feature-flags-browser-internal": +"@kbn/core-feature-flags-browser-internal@link:src/core/packages/feature-flags/browser-internal": version "0.0.0" uid "" From 26ba105da5cc9ce95e5c992c062b6ae8eb94a069 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:30:55 +0100 Subject: [PATCH 042/167] Relocating module `@kbn/core-feature-flags-browser-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/feature-flags/browser-mocks}/README.md | 0 .../core/packages/feature-flags/browser-mocks}/index.ts | 0 .../core/packages/feature-flags/browser-mocks}/jest.config.js | 4 ++-- .../core/packages/feature-flags/browser-mocks}/kibana.jsonc | 0 .../core/packages/feature-flags/browser-mocks}/package.json | 0 .../core/packages/feature-flags/browser-mocks}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/feature-flags/core-feature-flags-browser-mocks => src/core/packages/feature-flags/browser-mocks}/README.md (100%) rename {packages/core/feature-flags/core-feature-flags-browser-mocks => src/core/packages/feature-flags/browser-mocks}/index.ts (100%) rename {packages/core/feature-flags/core-feature-flags-browser-mocks => src/core/packages/feature-flags/browser-mocks}/jest.config.js (82%) rename {packages/core/feature-flags/core-feature-flags-browser-mocks => src/core/packages/feature-flags/browser-mocks}/kibana.jsonc (100%) rename {packages/core/feature-flags/core-feature-flags-browser-mocks => src/core/packages/feature-flags/browser-mocks}/package.json (100%) rename {packages/core/feature-flags/core-feature-flags-browser-mocks => src/core/packages/feature-flags/browser-mocks}/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b5616db424dea..d3290aa9a6c6f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -80,7 +80,6 @@ packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core -packages/core/feature-flags/core-feature-flags-browser-mocks @elastic/kibana-core packages/core/feature-flags/core-feature-flags-server @elastic/kibana-core packages/core/feature-flags/core-feature-flags-server-internal @elastic/kibana-core packages/core/feature-flags/core-feature-flags-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/fatal-errors/browser @elastic/kibana-core src/core/packages/fatal-errors/browser-internal @elastic/kibana-core src/core/packages/feature-flags/browser @elastic/kibana-core src/core/packages/feature-flags/browser-internal @elastic/kibana-core +src/core/packages/feature-flags/browser-mocks @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 078c8c6644185..97fbc5b896932 100644 --- a/package.json +++ b/package.json @@ -295,7 +295,7 @@ "@kbn/core-fatal-errors-browser-internal": "link:src/core/packages/fatal-errors/browser-internal", "@kbn/core-feature-flags-browser": "link:src/core/packages/feature-flags/browser", "@kbn/core-feature-flags-browser-internal": "link:src/core/packages/feature-flags/browser-internal", - "@kbn/core-feature-flags-browser-mocks": "link:packages/core/feature-flags/core-feature-flags-browser-mocks", + "@kbn/core-feature-flags-browser-mocks": "link:src/core/packages/feature-flags/browser-mocks", "@kbn/core-feature-flags-server": "link:packages/core/feature-flags/core-feature-flags-server", "@kbn/core-feature-flags-server-internal": "link:packages/core/feature-flags/core-feature-flags-server-internal", "@kbn/core-feature-flags-server-mocks": "link:packages/core/feature-flags/core-feature-flags-server-mocks", diff --git a/packages/core/feature-flags/core-feature-flags-browser-mocks/README.md b/src/core/packages/feature-flags/browser-mocks/README.md similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser-mocks/README.md rename to src/core/packages/feature-flags/browser-mocks/README.md diff --git a/packages/core/feature-flags/core-feature-flags-browser-mocks/index.ts b/src/core/packages/feature-flags/browser-mocks/index.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser-mocks/index.ts rename to src/core/packages/feature-flags/browser-mocks/index.ts diff --git a/packages/core/feature-flags/core-feature-flags-browser-mocks/jest.config.js b/src/core/packages/feature-flags/browser-mocks/jest.config.js similarity index 82% rename from packages/core/feature-flags/core-feature-flags-browser-mocks/jest.config.js rename to src/core/packages/feature-flags/browser-mocks/jest.config.js index f259faecb6046..9ae4839edb4c0 100644 --- a/packages/core/feature-flags/core-feature-flags-browser-mocks/jest.config.js +++ b/src/core/packages/feature-flags/browser-mocks/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/feature-flags/core-feature-flags-browser-mocks'], + rootDir: '../../../../..', + roots: ['/src/core/packages/feature-flags/browser-mocks'], }; diff --git a/packages/core/feature-flags/core-feature-flags-browser-mocks/kibana.jsonc b/src/core/packages/feature-flags/browser-mocks/kibana.jsonc similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser-mocks/kibana.jsonc rename to src/core/packages/feature-flags/browser-mocks/kibana.jsonc diff --git a/packages/core/feature-flags/core-feature-flags-browser-mocks/package.json b/src/core/packages/feature-flags/browser-mocks/package.json similarity index 100% rename from packages/core/feature-flags/core-feature-flags-browser-mocks/package.json rename to src/core/packages/feature-flags/browser-mocks/package.json diff --git a/packages/core/feature-flags/core-feature-flags-browser-mocks/tsconfig.json b/src/core/packages/feature-flags/browser-mocks/tsconfig.json similarity index 87% rename from packages/core/feature-flags/core-feature-flags-browser-mocks/tsconfig.json rename to src/core/packages/feature-flags/browser-mocks/tsconfig.json index b7d1b3ca28cbb..d1c8f6d2b668e 100644 --- a/packages/core/feature-flags/core-feature-flags-browser-mocks/tsconfig.json +++ b/src/core/packages/feature-flags/browser-mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index b4f9bcd43d640..61cf1421550a3 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -370,8 +370,8 @@ "@kbn/core-feature-flags-browser/*": ["src/core/packages/feature-flags/browser/*"], "@kbn/core-feature-flags-browser-internal": ["src/core/packages/feature-flags/browser-internal"], "@kbn/core-feature-flags-browser-internal/*": ["src/core/packages/feature-flags/browser-internal/*"], - "@kbn/core-feature-flags-browser-mocks": ["packages/core/feature-flags/core-feature-flags-browser-mocks"], - "@kbn/core-feature-flags-browser-mocks/*": ["packages/core/feature-flags/core-feature-flags-browser-mocks/*"], + "@kbn/core-feature-flags-browser-mocks": ["src/core/packages/feature-flags/browser-mocks"], + "@kbn/core-feature-flags-browser-mocks/*": ["src/core/packages/feature-flags/browser-mocks/*"], "@kbn/core-feature-flags-server": ["packages/core/feature-flags/core-feature-flags-server"], "@kbn/core-feature-flags-server/*": ["packages/core/feature-flags/core-feature-flags-server/*"], "@kbn/core-feature-flags-server-internal": ["packages/core/feature-flags/core-feature-flags-server-internal"], diff --git a/yarn.lock b/yarn.lock index 3c7e492c81906..cb44189c08c05 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4549,7 +4549,7 @@ version "0.0.0" uid "" -"@kbn/core-feature-flags-browser-mocks@link:packages/core/feature-flags/core-feature-flags-browser-mocks": +"@kbn/core-feature-flags-browser-mocks@link:src/core/packages/feature-flags/browser-mocks": version "0.0.0" uid "" From 4b5742bd8d0ac97839d68df66eaba71baa9af7c1 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:31:47 +0100 Subject: [PATCH 043/167] Relocating module `@kbn/core-feature-flags-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/feature-flags/server}/README.md | 0 .../core/packages/feature-flags/server}/index.ts | 0 .../core/packages/feature-flags/server}/kibana.jsonc | 0 .../core/packages/feature-flags/server}/package.json | 0 .../core/packages/feature-flags/server}/src/contracts.ts | 0 .../feature-flags/server}/src/feature_flag_definition.ts | 0 .../feature-flags/server}/src/request_handler_context.ts | 0 .../core/packages/feature-flags/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 6 insertions(+), 6 deletions(-) rename {packages/core/feature-flags/core-feature-flags-server => src/core/packages/feature-flags/server}/README.md (100%) rename {packages/core/feature-flags/core-feature-flags-server => src/core/packages/feature-flags/server}/index.ts (100%) rename {packages/core/feature-flags/core-feature-flags-server => src/core/packages/feature-flags/server}/kibana.jsonc (100%) rename {packages/core/feature-flags/core-feature-flags-server => src/core/packages/feature-flags/server}/package.json (100%) rename {packages/core/feature-flags/core-feature-flags-server => src/core/packages/feature-flags/server}/src/contracts.ts (100%) rename {packages/core/feature-flags/core-feature-flags-server => src/core/packages/feature-flags/server}/src/feature_flag_definition.ts (100%) rename {packages/core/feature-flags/core-feature-flags-server => src/core/packages/feature-flags/server}/src/request_handler_context.ts (100%) rename {packages/core/feature-flags/core-feature-flags-server => src/core/packages/feature-flags/server}/tsconfig.json (79%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d3290aa9a6c6f..46e20863f9eaa 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -80,7 +80,6 @@ packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core -packages/core/feature-flags/core-feature-flags-server @elastic/kibana-core packages/core/feature-flags/core-feature-flags-server-internal @elastic/kibana-core packages/core/feature-flags/core-feature-flags-server-mocks @elastic/kibana-core packages/core/http/core-http-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/fatal-errors/browser-internal @elastic/kibana-core src/core/packages/feature-flags/browser @elastic/kibana-core src/core/packages/feature-flags/browser-internal @elastic/kibana-core src/core/packages/feature-flags/browser-mocks @elastic/kibana-core +src/core/packages/feature-flags/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 97fbc5b896932..560c8185f29df 100644 --- a/package.json +++ b/package.json @@ -296,7 +296,7 @@ "@kbn/core-feature-flags-browser": "link:src/core/packages/feature-flags/browser", "@kbn/core-feature-flags-browser-internal": "link:src/core/packages/feature-flags/browser-internal", "@kbn/core-feature-flags-browser-mocks": "link:src/core/packages/feature-flags/browser-mocks", - "@kbn/core-feature-flags-server": "link:packages/core/feature-flags/core-feature-flags-server", + "@kbn/core-feature-flags-server": "link:src/core/packages/feature-flags/server", "@kbn/core-feature-flags-server-internal": "link:packages/core/feature-flags/core-feature-flags-server-internal", "@kbn/core-feature-flags-server-mocks": "link:packages/core/feature-flags/core-feature-flags-server-mocks", "@kbn/core-history-block-plugin": "link:test/plugin_functional/plugins/core_history_block", diff --git a/packages/core/feature-flags/core-feature-flags-server/README.md b/src/core/packages/feature-flags/server/README.md similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server/README.md rename to src/core/packages/feature-flags/server/README.md diff --git a/packages/core/feature-flags/core-feature-flags-server/index.ts b/src/core/packages/feature-flags/server/index.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server/index.ts rename to src/core/packages/feature-flags/server/index.ts diff --git a/packages/core/feature-flags/core-feature-flags-server/kibana.jsonc b/src/core/packages/feature-flags/server/kibana.jsonc similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server/kibana.jsonc rename to src/core/packages/feature-flags/server/kibana.jsonc diff --git a/packages/core/feature-flags/core-feature-flags-server/package.json b/src/core/packages/feature-flags/server/package.json similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server/package.json rename to src/core/packages/feature-flags/server/package.json diff --git a/packages/core/feature-flags/core-feature-flags-server/src/contracts.ts b/src/core/packages/feature-flags/server/src/contracts.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server/src/contracts.ts rename to src/core/packages/feature-flags/server/src/contracts.ts diff --git a/packages/core/feature-flags/core-feature-flags-server/src/feature_flag_definition.ts b/src/core/packages/feature-flags/server/src/feature_flag_definition.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server/src/feature_flag_definition.ts rename to src/core/packages/feature-flags/server/src/feature_flag_definition.ts diff --git a/packages/core/feature-flags/core-feature-flags-server/src/request_handler_context.ts b/src/core/packages/feature-flags/server/src/request_handler_context.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server/src/request_handler_context.ts rename to src/core/packages/feature-flags/server/src/request_handler_context.ts diff --git a/packages/core/feature-flags/core-feature-flags-server/tsconfig.json b/src/core/packages/feature-flags/server/tsconfig.json similarity index 79% rename from packages/core/feature-flags/core-feature-flags-server/tsconfig.json rename to src/core/packages/feature-flags/server/tsconfig.json index f5bb1b00512e4..d0e7f26cb6cee 100644 --- a/packages/core/feature-flags/core-feature-flags-server/tsconfig.json +++ b/src/core/packages/feature-flags/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 61cf1421550a3..61d239b8c726b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -372,8 +372,8 @@ "@kbn/core-feature-flags-browser-internal/*": ["src/core/packages/feature-flags/browser-internal/*"], "@kbn/core-feature-flags-browser-mocks": ["src/core/packages/feature-flags/browser-mocks"], "@kbn/core-feature-flags-browser-mocks/*": ["src/core/packages/feature-flags/browser-mocks/*"], - "@kbn/core-feature-flags-server": ["packages/core/feature-flags/core-feature-flags-server"], - "@kbn/core-feature-flags-server/*": ["packages/core/feature-flags/core-feature-flags-server/*"], + "@kbn/core-feature-flags-server": ["src/core/packages/feature-flags/server"], + "@kbn/core-feature-flags-server/*": ["src/core/packages/feature-flags/server/*"], "@kbn/core-feature-flags-server-internal": ["packages/core/feature-flags/core-feature-flags-server-internal"], "@kbn/core-feature-flags-server-internal/*": ["packages/core/feature-flags/core-feature-flags-server-internal/*"], "@kbn/core-feature-flags-server-mocks": ["packages/core/feature-flags/core-feature-flags-server-mocks"], diff --git a/yarn.lock b/yarn.lock index cb44189c08c05..750020a5e875b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4565,7 +4565,7 @@ version "0.0.0" uid "" -"@kbn/core-feature-flags-server@link:packages/core/feature-flags/core-feature-flags-server": +"@kbn/core-feature-flags-server@link:src/core/packages/feature-flags/server": version "0.0.0" uid "" From 012506d454d9590565704d9790e9cb91951d3f5f Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:32:40 +0100 Subject: [PATCH 044/167] Relocating module `@kbn/core-feature-flags-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/feature-flags/server-internal}/README.md | 0 .../core/packages/feature-flags/server-internal}/index.ts | 0 .../packages/feature-flags/server-internal}/jest.config.js | 4 ++-- .../core/packages/feature-flags/server-internal}/kibana.jsonc | 0 .../core/packages/feature-flags/server-internal}/package.json | 0 .../server-internal}/src/feature_flags_config.ts | 0 .../src/feature_flags_request_handler_context.ts | 0 .../server-internal}/src/feature_flags_service.test.ts | 0 .../server-internal}/src/feature_flags_service.ts | 0 .../packages/feature-flags/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/feature-flags/core-feature-flags-server-internal => src/core/packages/feature-flags/server-internal}/README.md (100%) rename {packages/core/feature-flags/core-feature-flags-server-internal => src/core/packages/feature-flags/server-internal}/index.ts (100%) rename {packages/core/feature-flags/core-feature-flags-server-internal => src/core/packages/feature-flags/server-internal}/jest.config.js (82%) rename {packages/core/feature-flags/core-feature-flags-server-internal => src/core/packages/feature-flags/server-internal}/kibana.jsonc (100%) rename {packages/core/feature-flags/core-feature-flags-server-internal => src/core/packages/feature-flags/server-internal}/package.json (100%) rename {packages/core/feature-flags/core-feature-flags-server-internal => src/core/packages/feature-flags/server-internal}/src/feature_flags_config.ts (100%) rename {packages/core/feature-flags/core-feature-flags-server-internal => src/core/packages/feature-flags/server-internal}/src/feature_flags_request_handler_context.ts (100%) rename {packages/core/feature-flags/core-feature-flags-server-internal => src/core/packages/feature-flags/server-internal}/src/feature_flags_service.test.ts (100%) rename {packages/core/feature-flags/core-feature-flags-server-internal => src/core/packages/feature-flags/server-internal}/src/feature_flags_service.ts (100%) rename {packages/core/feature-flags/core-feature-flags-server-internal => src/core/packages/feature-flags/server-internal}/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 46e20863f9eaa..2d5e0f9dd8b2a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -80,7 +80,6 @@ packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core -packages/core/feature-flags/core-feature-flags-server-internal @elastic/kibana-core packages/core/feature-flags/core-feature-flags-server-mocks @elastic/kibana-core packages/core/http/core-http-browser @elastic/kibana-core packages/core/http/core-http-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/feature-flags/browser @elastic/kibana-core src/core/packages/feature-flags/browser-internal @elastic/kibana-core src/core/packages/feature-flags/browser-mocks @elastic/kibana-core src/core/packages/feature-flags/server @elastic/kibana-core +src/core/packages/feature-flags/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 560c8185f29df..ff7984dedc4c3 100644 --- a/package.json +++ b/package.json @@ -297,7 +297,7 @@ "@kbn/core-feature-flags-browser-internal": "link:src/core/packages/feature-flags/browser-internal", "@kbn/core-feature-flags-browser-mocks": "link:src/core/packages/feature-flags/browser-mocks", "@kbn/core-feature-flags-server": "link:src/core/packages/feature-flags/server", - "@kbn/core-feature-flags-server-internal": "link:packages/core/feature-flags/core-feature-flags-server-internal", + "@kbn/core-feature-flags-server-internal": "link:src/core/packages/feature-flags/server-internal", "@kbn/core-feature-flags-server-mocks": "link:packages/core/feature-flags/core-feature-flags-server-mocks", "@kbn/core-history-block-plugin": "link:test/plugin_functional/plugins/core_history_block", "@kbn/core-http-browser": "link:packages/core/http/core-http-browser", diff --git a/packages/core/feature-flags/core-feature-flags-server-internal/README.md b/src/core/packages/feature-flags/server-internal/README.md similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server-internal/README.md rename to src/core/packages/feature-flags/server-internal/README.md diff --git a/packages/core/feature-flags/core-feature-flags-server-internal/index.ts b/src/core/packages/feature-flags/server-internal/index.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server-internal/index.ts rename to src/core/packages/feature-flags/server-internal/index.ts diff --git a/packages/core/feature-flags/core-feature-flags-server-internal/jest.config.js b/src/core/packages/feature-flags/server-internal/jest.config.js similarity index 82% rename from packages/core/feature-flags/core-feature-flags-server-internal/jest.config.js rename to src/core/packages/feature-flags/server-internal/jest.config.js index 67b65d2040c54..5e0aff608cafa 100644 --- a/packages/core/feature-flags/core-feature-flags-server-internal/jest.config.js +++ b/src/core/packages/feature-flags/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/feature-flags/core-feature-flags-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/feature-flags/server-internal'], }; diff --git a/packages/core/feature-flags/core-feature-flags-server-internal/kibana.jsonc b/src/core/packages/feature-flags/server-internal/kibana.jsonc similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server-internal/kibana.jsonc rename to src/core/packages/feature-flags/server-internal/kibana.jsonc diff --git a/packages/core/feature-flags/core-feature-flags-server-internal/package.json b/src/core/packages/feature-flags/server-internal/package.json similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server-internal/package.json rename to src/core/packages/feature-flags/server-internal/package.json diff --git a/packages/core/feature-flags/core-feature-flags-server-internal/src/feature_flags_config.ts b/src/core/packages/feature-flags/server-internal/src/feature_flags_config.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server-internal/src/feature_flags_config.ts rename to src/core/packages/feature-flags/server-internal/src/feature_flags_config.ts diff --git a/packages/core/feature-flags/core-feature-flags-server-internal/src/feature_flags_request_handler_context.ts b/src/core/packages/feature-flags/server-internal/src/feature_flags_request_handler_context.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server-internal/src/feature_flags_request_handler_context.ts rename to src/core/packages/feature-flags/server-internal/src/feature_flags_request_handler_context.ts diff --git a/packages/core/feature-flags/core-feature-flags-server-internal/src/feature_flags_service.test.ts b/src/core/packages/feature-flags/server-internal/src/feature_flags_service.test.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server-internal/src/feature_flags_service.test.ts rename to src/core/packages/feature-flags/server-internal/src/feature_flags_service.test.ts diff --git a/packages/core/feature-flags/core-feature-flags-server-internal/src/feature_flags_service.ts b/src/core/packages/feature-flags/server-internal/src/feature_flags_service.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server-internal/src/feature_flags_service.ts rename to src/core/packages/feature-flags/server-internal/src/feature_flags_service.ts diff --git a/packages/core/feature-flags/core-feature-flags-server-internal/tsconfig.json b/src/core/packages/feature-flags/server-internal/tsconfig.json similarity index 88% rename from packages/core/feature-flags/core-feature-flags-server-internal/tsconfig.json rename to src/core/packages/feature-flags/server-internal/tsconfig.json index 72a97ef56eb4f..1550eded44bc4 100644 --- a/packages/core/feature-flags/core-feature-flags-server-internal/tsconfig.json +++ b/src/core/packages/feature-flags/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 61d239b8c726b..2a753d363a6f6 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -374,8 +374,8 @@ "@kbn/core-feature-flags-browser-mocks/*": ["src/core/packages/feature-flags/browser-mocks/*"], "@kbn/core-feature-flags-server": ["src/core/packages/feature-flags/server"], "@kbn/core-feature-flags-server/*": ["src/core/packages/feature-flags/server/*"], - "@kbn/core-feature-flags-server-internal": ["packages/core/feature-flags/core-feature-flags-server-internal"], - "@kbn/core-feature-flags-server-internal/*": ["packages/core/feature-flags/core-feature-flags-server-internal/*"], + "@kbn/core-feature-flags-server-internal": ["src/core/packages/feature-flags/server-internal"], + "@kbn/core-feature-flags-server-internal/*": ["src/core/packages/feature-flags/server-internal/*"], "@kbn/core-feature-flags-server-mocks": ["packages/core/feature-flags/core-feature-flags-server-mocks"], "@kbn/core-feature-flags-server-mocks/*": ["packages/core/feature-flags/core-feature-flags-server-mocks/*"], "@kbn/core-history-block-plugin": ["test/plugin_functional/plugins/core_history_block"], diff --git a/yarn.lock b/yarn.lock index 750020a5e875b..23695562f004d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4557,7 +4557,7 @@ version "0.0.0" uid "" -"@kbn/core-feature-flags-server-internal@link:packages/core/feature-flags/core-feature-flags-server-internal": +"@kbn/core-feature-flags-server-internal@link:src/core/packages/feature-flags/server-internal": version "0.0.0" uid "" From 31178c4e582009ba0f7cc9e515e5fd57136239c0 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:33:32 +0100 Subject: [PATCH 045/167] Relocating module `@kbn/core-feature-flags-server-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/feature-flags/server-mocks}/README.md | 0 .../core/packages/feature-flags/server-mocks}/index.ts | 0 .../core/packages/feature-flags/server-mocks}/jest.config.js | 4 ++-- .../core/packages/feature-flags/server-mocks}/kibana.jsonc | 0 .../core/packages/feature-flags/server-mocks}/package.json | 0 .../core/packages/feature-flags/server-mocks}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 10 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/feature-flags/core-feature-flags-server-mocks => src/core/packages/feature-flags/server-mocks}/README.md (100%) rename {packages/core/feature-flags/core-feature-flags-server-mocks => src/core/packages/feature-flags/server-mocks}/index.ts (100%) rename {packages/core/feature-flags/core-feature-flags-server-mocks => src/core/packages/feature-flags/server-mocks}/jest.config.js (82%) rename {packages/core/feature-flags/core-feature-flags-server-mocks => src/core/packages/feature-flags/server-mocks}/kibana.jsonc (100%) rename {packages/core/feature-flags/core-feature-flags-server-mocks => src/core/packages/feature-flags/server-mocks}/package.json (100%) rename {packages/core/feature-flags/core-feature-flags-server-mocks => src/core/packages/feature-flags/server-mocks}/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2d5e0f9dd8b2a..7a17e1b70b569 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -80,7 +80,6 @@ packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core -packages/core/feature-flags/core-feature-flags-server-mocks @elastic/kibana-core packages/core/http/core-http-browser @elastic/kibana-core packages/core/http/core-http-browser-internal @elastic/kibana-core packages/core/http/core-http-browser-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/feature-flags/browser-internal @elastic/kibana-core src/core/packages/feature-flags/browser-mocks @elastic/kibana-core src/core/packages/feature-flags/server @elastic/kibana-core src/core/packages/feature-flags/server-internal @elastic/kibana-core +src/core/packages/feature-flags/server-mocks @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index ff7984dedc4c3..406e4c6cc0c11 100644 --- a/package.json +++ b/package.json @@ -298,7 +298,7 @@ "@kbn/core-feature-flags-browser-mocks": "link:src/core/packages/feature-flags/browser-mocks", "@kbn/core-feature-flags-server": "link:src/core/packages/feature-flags/server", "@kbn/core-feature-flags-server-internal": "link:src/core/packages/feature-flags/server-internal", - "@kbn/core-feature-flags-server-mocks": "link:packages/core/feature-flags/core-feature-flags-server-mocks", + "@kbn/core-feature-flags-server-mocks": "link:src/core/packages/feature-flags/server-mocks", "@kbn/core-history-block-plugin": "link:test/plugin_functional/plugins/core_history_block", "@kbn/core-http-browser": "link:packages/core/http/core-http-browser", "@kbn/core-http-browser-internal": "link:packages/core/http/core-http-browser-internal", diff --git a/packages/core/feature-flags/core-feature-flags-server-mocks/README.md b/src/core/packages/feature-flags/server-mocks/README.md similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server-mocks/README.md rename to src/core/packages/feature-flags/server-mocks/README.md diff --git a/packages/core/feature-flags/core-feature-flags-server-mocks/index.ts b/src/core/packages/feature-flags/server-mocks/index.ts similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server-mocks/index.ts rename to src/core/packages/feature-flags/server-mocks/index.ts diff --git a/packages/core/feature-flags/core-feature-flags-server-mocks/jest.config.js b/src/core/packages/feature-flags/server-mocks/jest.config.js similarity index 82% rename from packages/core/feature-flags/core-feature-flags-server-mocks/jest.config.js rename to src/core/packages/feature-flags/server-mocks/jest.config.js index bc50c37548c95..3208942064b2a 100644 --- a/packages/core/feature-flags/core-feature-flags-server-mocks/jest.config.js +++ b/src/core/packages/feature-flags/server-mocks/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/feature-flags/core-feature-flags-server-mocks'], + rootDir: '../../../../..', + roots: ['/src/core/packages/feature-flags/server-mocks'], }; diff --git a/packages/core/feature-flags/core-feature-flags-server-mocks/kibana.jsonc b/src/core/packages/feature-flags/server-mocks/kibana.jsonc similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server-mocks/kibana.jsonc rename to src/core/packages/feature-flags/server-mocks/kibana.jsonc diff --git a/packages/core/feature-flags/core-feature-flags-server-mocks/package.json b/src/core/packages/feature-flags/server-mocks/package.json similarity index 100% rename from packages/core/feature-flags/core-feature-flags-server-mocks/package.json rename to src/core/packages/feature-flags/server-mocks/package.json diff --git a/packages/core/feature-flags/core-feature-flags-server-mocks/tsconfig.json b/src/core/packages/feature-flags/server-mocks/tsconfig.json similarity index 86% rename from packages/core/feature-flags/core-feature-flags-server-mocks/tsconfig.json rename to src/core/packages/feature-flags/server-mocks/tsconfig.json index c672eb28c83a9..5d03035ce36f8 100644 --- a/packages/core/feature-flags/core-feature-flags-server-mocks/tsconfig.json +++ b/src/core/packages/feature-flags/server-mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 2a753d363a6f6..ea8747fe28085 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -376,8 +376,8 @@ "@kbn/core-feature-flags-server/*": ["src/core/packages/feature-flags/server/*"], "@kbn/core-feature-flags-server-internal": ["src/core/packages/feature-flags/server-internal"], "@kbn/core-feature-flags-server-internal/*": ["src/core/packages/feature-flags/server-internal/*"], - "@kbn/core-feature-flags-server-mocks": ["packages/core/feature-flags/core-feature-flags-server-mocks"], - "@kbn/core-feature-flags-server-mocks/*": ["packages/core/feature-flags/core-feature-flags-server-mocks/*"], + "@kbn/core-feature-flags-server-mocks": ["src/core/packages/feature-flags/server-mocks"], + "@kbn/core-feature-flags-server-mocks/*": ["src/core/packages/feature-flags/server-mocks/*"], "@kbn/core-history-block-plugin": ["test/plugin_functional/plugins/core_history_block"], "@kbn/core-history-block-plugin/*": ["test/plugin_functional/plugins/core_history_block/*"], "@kbn/core-http-browser": ["packages/core/http/core-http-browser"], diff --git a/yarn.lock b/yarn.lock index 23695562f004d..512620cf426ec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4561,7 +4561,7 @@ version "0.0.0" uid "" -"@kbn/core-feature-flags-server-mocks@link:packages/core/feature-flags/core-feature-flags-server-mocks": +"@kbn/core-feature-flags-server-mocks@link:src/core/packages/feature-flags/server-mocks": version "0.0.0" uid "" From 547620f87eacb5720de2371363dfbd9f6a1df543 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:34:24 +0100 Subject: [PATCH 046/167] Relocating module `@kbn/core-http-browser` --- .github/CODEOWNERS | 2 +- docs/developer/architecture/core/http-service.asciidoc | 2 +- package.json | 2 +- .../core/packages/http/browser}/README.md | 0 .../core/packages/http/browser}/index.ts | 0 .../core/packages/http/browser}/jest.config.js | 4 ++-- .../core/packages/http/browser}/kibana.jsonc | 0 .../core/packages/http/browser}/package.json | 0 .../core/packages/http/browser}/src/types.ts | 0 .../core/packages/http/browser}/src/utils.ts | 0 .../core/packages/http/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 9 insertions(+), 9 deletions(-) rename {packages/core/http/core-http-browser => src/core/packages/http/browser}/README.md (100%) rename {packages/core/http/core-http-browser => src/core/packages/http/browser}/index.ts (100%) rename {packages/core/http/core-http-browser => src/core/packages/http/browser}/jest.config.js (85%) rename {packages/core/http/core-http-browser => src/core/packages/http/browser}/kibana.jsonc (100%) rename {packages/core/http/core-http-browser => src/core/packages/http/browser}/package.json (100%) rename {packages/core/http/core-http-browser => src/core/packages/http/browser}/src/types.ts (100%) rename {packages/core/http/core-http-browser => src/core/packages/http/browser}/src/utils.ts (100%) rename {packages/core/http/core-http-browser => src/core/packages/http/browser}/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7a17e1b70b569..7d592ed6433c0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -80,7 +80,6 @@ packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core -packages/core/http/core-http-browser @elastic/kibana-core packages/core/http/core-http-browser-internal @elastic/kibana-core packages/core/http/core-http-browser-mocks @elastic/kibana-core packages/core/http/core-http-common @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/feature-flags/browser-mocks @elastic/kibana-core src/core/packages/feature-flags/server @elastic/kibana-core src/core/packages/feature-flags/server-internal @elastic/kibana-core src/core/packages/feature-flags/server-mocks @elastic/kibana-core +src/core/packages/http/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/docs/developer/architecture/core/http-service.asciidoc b/docs/developer/architecture/core/http-service.asciidoc index da4f0a3f7f5e1..3c8181160310b 100644 --- a/docs/developer/architecture/core/http-service.asciidoc +++ b/docs/developer/architecture/core/http-service.asciidoc @@ -64,4 +64,4 @@ async function fetchData(core: CoreStart) { ); } ---- -Refer to {kib-repo}/blob/8.9/packages/core/http/core-http-browser/src/types.ts[the client-side APIs]. +Refer to {kib-repo}/blob/8.9/src/core/packages/http/browser/src/types.ts[the client-side APIs]. diff --git a/package.json b/package.json index 406e4c6cc0c11..7652b35feb06c 100644 --- a/package.json +++ b/package.json @@ -300,7 +300,7 @@ "@kbn/core-feature-flags-server-internal": "link:src/core/packages/feature-flags/server-internal", "@kbn/core-feature-flags-server-mocks": "link:src/core/packages/feature-flags/server-mocks", "@kbn/core-history-block-plugin": "link:test/plugin_functional/plugins/core_history_block", - "@kbn/core-http-browser": "link:packages/core/http/core-http-browser", + "@kbn/core-http-browser": "link:src/core/packages/http/browser", "@kbn/core-http-browser-internal": "link:packages/core/http/core-http-browser-internal", "@kbn/core-http-common": "link:packages/core/http/core-http-common", "@kbn/core-http-context-server-internal": "link:packages/core/http/core-http-context-server-internal", diff --git a/packages/core/http/core-http-browser/README.md b/src/core/packages/http/browser/README.md similarity index 100% rename from packages/core/http/core-http-browser/README.md rename to src/core/packages/http/browser/README.md diff --git a/packages/core/http/core-http-browser/index.ts b/src/core/packages/http/browser/index.ts similarity index 100% rename from packages/core/http/core-http-browser/index.ts rename to src/core/packages/http/browser/index.ts diff --git a/packages/core/http/core-http-browser/jest.config.js b/src/core/packages/http/browser/jest.config.js similarity index 85% rename from packages/core/http/core-http-browser/jest.config.js rename to src/core/packages/http/browser/jest.config.js index 100acbd9e6f45..60bd218c750f0 100644 --- a/packages/core/http/core-http-browser/jest.config.js +++ b/src/core/packages/http/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/http/core-http-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/http/browser'], }; diff --git a/packages/core/http/core-http-browser/kibana.jsonc b/src/core/packages/http/browser/kibana.jsonc similarity index 100% rename from packages/core/http/core-http-browser/kibana.jsonc rename to src/core/packages/http/browser/kibana.jsonc diff --git a/packages/core/http/core-http-browser/package.json b/src/core/packages/http/browser/package.json similarity index 100% rename from packages/core/http/core-http-browser/package.json rename to src/core/packages/http/browser/package.json diff --git a/packages/core/http/core-http-browser/src/types.ts b/src/core/packages/http/browser/src/types.ts similarity index 100% rename from packages/core/http/core-http-browser/src/types.ts rename to src/core/packages/http/browser/src/types.ts diff --git a/packages/core/http/core-http-browser/src/utils.ts b/src/core/packages/http/browser/src/utils.ts similarity index 100% rename from packages/core/http/core-http-browser/src/utils.ts rename to src/core/packages/http/browser/src/utils.ts diff --git a/packages/core/http/core-http-browser/tsconfig.json b/src/core/packages/http/browser/tsconfig.json similarity index 85% rename from packages/core/http/core-http-browser/tsconfig.json rename to src/core/packages/http/browser/tsconfig.json index bcdc457d22e5c..dcdc42a26c8e6 100644 --- a/packages/core/http/core-http-browser/tsconfig.json +++ b/src/core/packages/http/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index ea8747fe28085..52ee4c78ceec9 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -380,8 +380,8 @@ "@kbn/core-feature-flags-server-mocks/*": ["src/core/packages/feature-flags/server-mocks/*"], "@kbn/core-history-block-plugin": ["test/plugin_functional/plugins/core_history_block"], "@kbn/core-history-block-plugin/*": ["test/plugin_functional/plugins/core_history_block/*"], - "@kbn/core-http-browser": ["packages/core/http/core-http-browser"], - "@kbn/core-http-browser/*": ["packages/core/http/core-http-browser/*"], + "@kbn/core-http-browser": ["src/core/packages/http/browser"], + "@kbn/core-http-browser/*": ["src/core/packages/http/browser/*"], "@kbn/core-http-browser-internal": ["packages/core/http/core-http-browser-internal"], "@kbn/core-http-browser-internal/*": ["packages/core/http/core-http-browser-internal/*"], "@kbn/core-http-browser-mocks": ["packages/core/http/core-http-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index 512620cf426ec..aa15502a2c893 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4581,7 +4581,7 @@ version "0.0.0" uid "" -"@kbn/core-http-browser@link:packages/core/http/core-http-browser": +"@kbn/core-http-browser@link:src/core/packages/http/browser": version "0.0.0" uid "" From 7e55220defbe5c93b720e4fa719d994dc8d4028d Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:35:16 +0100 Subject: [PATCH 047/167] Relocating module `@kbn/core-http-browser-internal` --- .github/CODEOWNERS | 2 +- docs/developer/best-practices/navigation.asciidoc | 2 +- package.json | 2 +- .../core/packages/http/browser-internal}/README.md | 0 .../core/packages/http/browser-internal}/index.ts | 0 .../core/packages/http/browser-internal}/jest.config.js | 4 ++-- .../core/packages/http/browser-internal}/kibana.jsonc | 0 .../core/packages/http/browser-internal}/package.json | 0 .../http/browser-internal}/src/_import_objects.ndjson | 0 .../browser-internal}/src/anonymous_paths_service.test.ts | 0 .../http/browser-internal}/src/anonymous_paths_service.ts | 0 .../packages/http/browser-internal}/src/base_path.test.ts | 0 .../core/packages/http/browser-internal}/src/base_path.ts | 0 .../http/browser-internal}/src/external_url_service.test.ts | 6 +++--- .../http/browser-internal}/src/external_url_service.ts | 0 .../core/packages/http/browser-internal}/src/fetch.test.ts | 0 .../core/packages/http/browser-internal}/src/fetch.ts | 0 .../packages/http/browser-internal}/src/http_fetch_error.ts | 0 .../http/browser-internal}/src/http_intercept_controller.ts | 0 .../http/browser-internal}/src/http_intercept_halt_error.ts | 0 .../http/browser-internal}/src/http_service.test.mocks.ts | 0 .../http/browser-internal}/src/http_service.test.ts | 0 .../packages/http/browser-internal}/src/http_service.ts | 0 .../core/packages/http/browser-internal}/src/intercept.ts | 0 .../browser-internal}/src/loading_count_service.mock.ts | 0 .../browser-internal}/src/loading_count_service.test.ts | 0 .../http/browser-internal}/src/loading_count_service.ts | 0 .../http/browser-internal}/src/static_assets.test.ts | 0 .../packages/http/browser-internal}/src/static_assets.ts | 0 .../core/packages/http/browser-internal}/src/types.ts | 0 .../core/packages/http/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 33 files changed, 12 insertions(+), 12 deletions(-) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/README.md (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/index.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/jest.config.js (84%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/kibana.jsonc (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/package.json (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/_import_objects.ndjson (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/anonymous_paths_service.test.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/anonymous_paths_service.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/base_path.test.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/base_path.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/external_url_service.test.ts (99%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/external_url_service.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/fetch.test.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/fetch.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/http_fetch_error.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/http_intercept_controller.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/http_intercept_halt_error.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/http_service.test.mocks.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/http_service.test.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/http_service.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/intercept.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/loading_count_service.mock.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/loading_count_service.test.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/loading_count_service.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/static_assets.test.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/static_assets.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/src/types.ts (100%) rename {packages/core/http/core-http-browser-internal => src/core/packages/http/browser-internal}/tsconfig.json (93%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7d592ed6433c0..913330329937b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -80,7 +80,6 @@ packages/core/environment/core-environment-server-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-browser-mocks @elastic/kibana-core packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core -packages/core/http/core-http-browser-internal @elastic/kibana-core packages/core/http/core-http-browser-mocks @elastic/kibana-core packages/core/http/core-http-common @elastic/kibana-core packages/core/http/core-http-context-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/feature-flags/server @elastic/kibana-core src/core/packages/feature-flags/server-internal @elastic/kibana-core src/core/packages/feature-flags/server-mocks @elastic/kibana-core src/core/packages/http/browser @elastic/kibana-core +src/core/packages/http/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/docs/developer/best-practices/navigation.asciidoc b/docs/developer/best-practices/navigation.asciidoc index afb68638524f6..d3584437bd759 100644 --- a/docs/developer/best-practices/navigation.asciidoc +++ b/docs/developer/best-practices/navigation.asciidoc @@ -25,7 +25,7 @@ Assuming you want to link from your app to *Discover*. When building such URL th ==== Prepending a proper `basePath` -To prepend {kib}'s `basePath` use {kib-repo}tree/{branch}/packages/core/http/core-http-browser-internal/src/base_path.ts[core.http.basePath.prepend] helper: +To prepend {kib}'s `basePath` use {kib-repo}tree/{branch}/src/core/packages/http/browser-internal/src/base_path.ts[core.http.basePath.prepend] helper: [source,typescript jsx] ---- diff --git a/package.json b/package.json index 7652b35feb06c..4217bcac43099 100644 --- a/package.json +++ b/package.json @@ -301,7 +301,7 @@ "@kbn/core-feature-flags-server-mocks": "link:src/core/packages/feature-flags/server-mocks", "@kbn/core-history-block-plugin": "link:test/plugin_functional/plugins/core_history_block", "@kbn/core-http-browser": "link:src/core/packages/http/browser", - "@kbn/core-http-browser-internal": "link:packages/core/http/core-http-browser-internal", + "@kbn/core-http-browser-internal": "link:src/core/packages/http/browser-internal", "@kbn/core-http-common": "link:packages/core/http/core-http-common", "@kbn/core-http-context-server-internal": "link:packages/core/http/core-http-context-server-internal", "@kbn/core-http-plugin": "link:test/plugin_functional/plugins/core_http", diff --git a/packages/core/http/core-http-browser-internal/README.md b/src/core/packages/http/browser-internal/README.md similarity index 100% rename from packages/core/http/core-http-browser-internal/README.md rename to src/core/packages/http/browser-internal/README.md diff --git a/packages/core/http/core-http-browser-internal/index.ts b/src/core/packages/http/browser-internal/index.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/index.ts rename to src/core/packages/http/browser-internal/index.ts diff --git a/packages/core/http/core-http-browser-internal/jest.config.js b/src/core/packages/http/browser-internal/jest.config.js similarity index 84% rename from packages/core/http/core-http-browser-internal/jest.config.js rename to src/core/packages/http/browser-internal/jest.config.js index 20ba6dc285440..3b0493d0e7e6a 100644 --- a/packages/core/http/core-http-browser-internal/jest.config.js +++ b/src/core/packages/http/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/http/core-http-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/http/browser-internal'], }; diff --git a/packages/core/http/core-http-browser-internal/kibana.jsonc b/src/core/packages/http/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/http/core-http-browser-internal/kibana.jsonc rename to src/core/packages/http/browser-internal/kibana.jsonc diff --git a/packages/core/http/core-http-browser-internal/package.json b/src/core/packages/http/browser-internal/package.json similarity index 100% rename from packages/core/http/core-http-browser-internal/package.json rename to src/core/packages/http/browser-internal/package.json diff --git a/packages/core/http/core-http-browser-internal/src/_import_objects.ndjson b/src/core/packages/http/browser-internal/src/_import_objects.ndjson similarity index 100% rename from packages/core/http/core-http-browser-internal/src/_import_objects.ndjson rename to src/core/packages/http/browser-internal/src/_import_objects.ndjson diff --git a/packages/core/http/core-http-browser-internal/src/anonymous_paths_service.test.ts b/src/core/packages/http/browser-internal/src/anonymous_paths_service.test.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/anonymous_paths_service.test.ts rename to src/core/packages/http/browser-internal/src/anonymous_paths_service.test.ts diff --git a/packages/core/http/core-http-browser-internal/src/anonymous_paths_service.ts b/src/core/packages/http/browser-internal/src/anonymous_paths_service.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/anonymous_paths_service.ts rename to src/core/packages/http/browser-internal/src/anonymous_paths_service.ts diff --git a/packages/core/http/core-http-browser-internal/src/base_path.test.ts b/src/core/packages/http/browser-internal/src/base_path.test.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/base_path.test.ts rename to src/core/packages/http/browser-internal/src/base_path.test.ts diff --git a/packages/core/http/core-http-browser-internal/src/base_path.ts b/src/core/packages/http/browser-internal/src/base_path.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/base_path.ts rename to src/core/packages/http/browser-internal/src/base_path.ts diff --git a/packages/core/http/core-http-browser-internal/src/external_url_service.test.ts b/src/core/packages/http/browser-internal/src/external_url_service.test.ts similarity index 99% rename from packages/core/http/core-http-browser-internal/src/external_url_service.test.ts rename to src/core/packages/http/browser-internal/src/external_url_service.test.ts index 8b595185b26bb..fef1566f3eafa 100644 --- a/packages/core/http/core-http-browser-internal/src/external_url_service.test.ts +++ b/src/core/packages/http/browser-internal/src/external_url_service.test.ts @@ -129,7 +129,7 @@ describe('External Url Service', () => { it('allows relative URLs that attempt to bypass the server base path', () => { const { setup } = setupService({ location, serverBasePath, policy }); - const urlCandidate = `/some/../../path?foo=bar`; + const urlCandidate = `/some/../../../path?foo=bar`; const result = setup.validateUrl(`${serverBasePath}${urlCandidate}`); expect(result).toBeInstanceOf(URL); @@ -155,7 +155,7 @@ describe('External Url Service', () => { it('disallows relative URLs that attempt to bypass the server base path', () => { const { setup } = setupService({ location, serverBasePath, policy }); - const urlCandidate = `/some/../../path?foo=bar`; + const urlCandidate = `/some/../../../path?foo=bar`; const result = setup.validateUrl(`${serverBasePath}${urlCandidate}`); expect(result).toBeNull(); @@ -196,7 +196,7 @@ describe('External Url Service', () => { describe('handles bypass of base path via relative URL', () => { it('does not allow relative URLs that escape base path', () => { const { setup } = setupService({ location, serverBasePath, policy: [] }); - const urlCandidate = `../../base_path_escape`; + const urlCandidate = `../../../base_path_escape`; const result = setup.validateUrl(urlCandidate); expect(result).toBeNull(); diff --git a/packages/core/http/core-http-browser-internal/src/external_url_service.ts b/src/core/packages/http/browser-internal/src/external_url_service.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/external_url_service.ts rename to src/core/packages/http/browser-internal/src/external_url_service.ts diff --git a/packages/core/http/core-http-browser-internal/src/fetch.test.ts b/src/core/packages/http/browser-internal/src/fetch.test.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/fetch.test.ts rename to src/core/packages/http/browser-internal/src/fetch.test.ts diff --git a/packages/core/http/core-http-browser-internal/src/fetch.ts b/src/core/packages/http/browser-internal/src/fetch.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/fetch.ts rename to src/core/packages/http/browser-internal/src/fetch.ts diff --git a/packages/core/http/core-http-browser-internal/src/http_fetch_error.ts b/src/core/packages/http/browser-internal/src/http_fetch_error.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/http_fetch_error.ts rename to src/core/packages/http/browser-internal/src/http_fetch_error.ts diff --git a/packages/core/http/core-http-browser-internal/src/http_intercept_controller.ts b/src/core/packages/http/browser-internal/src/http_intercept_controller.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/http_intercept_controller.ts rename to src/core/packages/http/browser-internal/src/http_intercept_controller.ts diff --git a/packages/core/http/core-http-browser-internal/src/http_intercept_halt_error.ts b/src/core/packages/http/browser-internal/src/http_intercept_halt_error.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/http_intercept_halt_error.ts rename to src/core/packages/http/browser-internal/src/http_intercept_halt_error.ts diff --git a/packages/core/http/core-http-browser-internal/src/http_service.test.mocks.ts b/src/core/packages/http/browser-internal/src/http_service.test.mocks.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/http_service.test.mocks.ts rename to src/core/packages/http/browser-internal/src/http_service.test.mocks.ts diff --git a/packages/core/http/core-http-browser-internal/src/http_service.test.ts b/src/core/packages/http/browser-internal/src/http_service.test.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/http_service.test.ts rename to src/core/packages/http/browser-internal/src/http_service.test.ts diff --git a/packages/core/http/core-http-browser-internal/src/http_service.ts b/src/core/packages/http/browser-internal/src/http_service.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/http_service.ts rename to src/core/packages/http/browser-internal/src/http_service.ts diff --git a/packages/core/http/core-http-browser-internal/src/intercept.ts b/src/core/packages/http/browser-internal/src/intercept.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/intercept.ts rename to src/core/packages/http/browser-internal/src/intercept.ts diff --git a/packages/core/http/core-http-browser-internal/src/loading_count_service.mock.ts b/src/core/packages/http/browser-internal/src/loading_count_service.mock.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/loading_count_service.mock.ts rename to src/core/packages/http/browser-internal/src/loading_count_service.mock.ts diff --git a/packages/core/http/core-http-browser-internal/src/loading_count_service.test.ts b/src/core/packages/http/browser-internal/src/loading_count_service.test.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/loading_count_service.test.ts rename to src/core/packages/http/browser-internal/src/loading_count_service.test.ts diff --git a/packages/core/http/core-http-browser-internal/src/loading_count_service.ts b/src/core/packages/http/browser-internal/src/loading_count_service.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/loading_count_service.ts rename to src/core/packages/http/browser-internal/src/loading_count_service.ts diff --git a/packages/core/http/core-http-browser-internal/src/static_assets.test.ts b/src/core/packages/http/browser-internal/src/static_assets.test.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/static_assets.test.ts rename to src/core/packages/http/browser-internal/src/static_assets.test.ts diff --git a/packages/core/http/core-http-browser-internal/src/static_assets.ts b/src/core/packages/http/browser-internal/src/static_assets.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/static_assets.ts rename to src/core/packages/http/browser-internal/src/static_assets.ts diff --git a/packages/core/http/core-http-browser-internal/src/types.ts b/src/core/packages/http/browser-internal/src/types.ts similarity index 100% rename from packages/core/http/core-http-browser-internal/src/types.ts rename to src/core/packages/http/browser-internal/src/types.ts diff --git a/packages/core/http/core-http-browser-internal/tsconfig.json b/src/core/packages/http/browser-internal/tsconfig.json similarity index 93% rename from packages/core/http/core-http-browser-internal/tsconfig.json rename to src/core/packages/http/browser-internal/tsconfig.json index 382c591951eb7..aae9fc99d8b11 100644 --- a/packages/core/http/core-http-browser-internal/tsconfig.json +++ b/src/core/packages/http/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 52ee4c78ceec9..9612059069f92 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -382,8 +382,8 @@ "@kbn/core-history-block-plugin/*": ["test/plugin_functional/plugins/core_history_block/*"], "@kbn/core-http-browser": ["src/core/packages/http/browser"], "@kbn/core-http-browser/*": ["src/core/packages/http/browser/*"], - "@kbn/core-http-browser-internal": ["packages/core/http/core-http-browser-internal"], - "@kbn/core-http-browser-internal/*": ["packages/core/http/core-http-browser-internal/*"], + "@kbn/core-http-browser-internal": ["src/core/packages/http/browser-internal"], + "@kbn/core-http-browser-internal/*": ["src/core/packages/http/browser-internal/*"], "@kbn/core-http-browser-mocks": ["packages/core/http/core-http-browser-mocks"], "@kbn/core-http-browser-mocks/*": ["packages/core/http/core-http-browser-mocks/*"], "@kbn/core-http-common": ["packages/core/http/core-http-common"], diff --git a/yarn.lock b/yarn.lock index aa15502a2c893..97522b40435bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4573,7 +4573,7 @@ version "0.0.0" uid "" -"@kbn/core-http-browser-internal@link:packages/core/http/core-http-browser-internal": +"@kbn/core-http-browser-internal@link:src/core/packages/http/browser-internal": version "0.0.0" uid "" From aefd1e150bc53fa4aee774ccaa115ee2f335579f Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:36:08 +0100 Subject: [PATCH 048/167] Relocating module `@kbn/core-http-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/http/common}/README.md | 0 .../core/packages/http/common}/index.ts | 0 .../core/packages/http/common}/jest.config.js | 4 ++-- .../core/packages/http/common}/kibana.jsonc | 0 .../core/packages/http/common}/package.json | 0 .../core/packages/http/common}/src/constants.ts | 0 .../core/packages/http/common}/src/external_url_policy.ts | 0 .../core/packages/http/common}/src/versioning.ts | 0 .../core/packages/http/common}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/http/core-http-common => src/core/packages/http/common}/README.md (100%) rename {packages/core/http/core-http-common => src/core/packages/http/common}/index.ts (100%) rename {packages/core/http/core-http-common => src/core/packages/http/common}/jest.config.js (85%) rename {packages/core/http/core-http-common => src/core/packages/http/common}/kibana.jsonc (100%) rename {packages/core/http/core-http-common => src/core/packages/http/common}/package.json (100%) rename {packages/core/http/core-http-common => src/core/packages/http/common}/src/constants.ts (100%) rename {packages/core/http/core-http-common => src/core/packages/http/common}/src/external_url_policy.ts (100%) rename {packages/core/http/core-http-common => src/core/packages/http/common}/src/versioning.ts (100%) rename {packages/core/http/core-http-common => src/core/packages/http/common}/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 913330329937b..778c85480cb50 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -81,7 +81,6 @@ packages/core/execution-context/core-execution-context-browser-mocks @elastic/ki packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core packages/core/http/core-http-browser-mocks @elastic/kibana-core -packages/core/http/core-http-common @elastic/kibana-core packages/core/http/core-http-context-server-internal @elastic/kibana-core packages/core/http/core-http-context-server-mocks @elastic/kibana-core packages/core/http/core-http-request-handler-context-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/feature-flags/server-internal @elastic/kibana-core src/core/packages/feature-flags/server-mocks @elastic/kibana-core src/core/packages/http/browser @elastic/kibana-core src/core/packages/http/browser-internal @elastic/kibana-core +src/core/packages/http/common @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 4217bcac43099..91e4cc5960878 100644 --- a/package.json +++ b/package.json @@ -302,7 +302,7 @@ "@kbn/core-history-block-plugin": "link:test/plugin_functional/plugins/core_history_block", "@kbn/core-http-browser": "link:src/core/packages/http/browser", "@kbn/core-http-browser-internal": "link:src/core/packages/http/browser-internal", - "@kbn/core-http-common": "link:packages/core/http/core-http-common", + "@kbn/core-http-common": "link:src/core/packages/http/common", "@kbn/core-http-context-server-internal": "link:packages/core/http/core-http-context-server-internal", "@kbn/core-http-plugin": "link:test/plugin_functional/plugins/core_http", "@kbn/core-http-request-handler-context-server": "link:packages/core/http/core-http-request-handler-context-server", diff --git a/packages/core/http/core-http-common/README.md b/src/core/packages/http/common/README.md similarity index 100% rename from packages/core/http/core-http-common/README.md rename to src/core/packages/http/common/README.md diff --git a/packages/core/http/core-http-common/index.ts b/src/core/packages/http/common/index.ts similarity index 100% rename from packages/core/http/core-http-common/index.ts rename to src/core/packages/http/common/index.ts diff --git a/packages/core/http/core-http-common/jest.config.js b/src/core/packages/http/common/jest.config.js similarity index 85% rename from packages/core/http/core-http-common/jest.config.js rename to src/core/packages/http/common/jest.config.js index 114a20478960e..f41f6058a8711 100644 --- a/packages/core/http/core-http-common/jest.config.js +++ b/src/core/packages/http/common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/http/core-http-common'], + rootDir: '../../../../..', + roots: ['/src/core/packages/http/common'], }; diff --git a/packages/core/http/core-http-common/kibana.jsonc b/src/core/packages/http/common/kibana.jsonc similarity index 100% rename from packages/core/http/core-http-common/kibana.jsonc rename to src/core/packages/http/common/kibana.jsonc diff --git a/packages/core/http/core-http-common/package.json b/src/core/packages/http/common/package.json similarity index 100% rename from packages/core/http/core-http-common/package.json rename to src/core/packages/http/common/package.json diff --git a/packages/core/http/core-http-common/src/constants.ts b/src/core/packages/http/common/src/constants.ts similarity index 100% rename from packages/core/http/core-http-common/src/constants.ts rename to src/core/packages/http/common/src/constants.ts diff --git a/packages/core/http/core-http-common/src/external_url_policy.ts b/src/core/packages/http/common/src/external_url_policy.ts similarity index 100% rename from packages/core/http/core-http-common/src/external_url_policy.ts rename to src/core/packages/http/common/src/external_url_policy.ts diff --git a/packages/core/http/core-http-common/src/versioning.ts b/src/core/packages/http/common/src/versioning.ts similarity index 100% rename from packages/core/http/core-http-common/src/versioning.ts rename to src/core/packages/http/common/src/versioning.ts diff --git a/packages/core/http/core-http-common/tsconfig.json b/src/core/packages/http/common/tsconfig.json similarity index 78% rename from packages/core/http/core-http-common/tsconfig.json rename to src/core/packages/http/common/tsconfig.json index e7513f6481e89..131ff3e6bb433 100644 --- a/packages/core/http/core-http-common/tsconfig.json +++ b/src/core/packages/http/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 9612059069f92..e769568dafe49 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -386,8 +386,8 @@ "@kbn/core-http-browser-internal/*": ["src/core/packages/http/browser-internal/*"], "@kbn/core-http-browser-mocks": ["packages/core/http/core-http-browser-mocks"], "@kbn/core-http-browser-mocks/*": ["packages/core/http/core-http-browser-mocks/*"], - "@kbn/core-http-common": ["packages/core/http/core-http-common"], - "@kbn/core-http-common/*": ["packages/core/http/core-http-common/*"], + "@kbn/core-http-common": ["src/core/packages/http/common"], + "@kbn/core-http-common/*": ["src/core/packages/http/common/*"], "@kbn/core-http-context-server-internal": ["packages/core/http/core-http-context-server-internal"], "@kbn/core-http-context-server-internal/*": ["packages/core/http/core-http-context-server-internal/*"], "@kbn/core-http-context-server-mocks": ["packages/core/http/core-http-context-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 97522b40435bb..8ae1bb9fc0270 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4585,7 +4585,7 @@ version "0.0.0" uid "" -"@kbn/core-http-common@link:packages/core/http/core-http-common": +"@kbn/core-http-common@link:src/core/packages/http/common": version "0.0.0" uid "" From e87b4a77662d1a38adc50aba4205a1505ae309ff Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:37:00 +0100 Subject: [PATCH 049/167] Relocating module `@kbn/core-http-context-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/http/context-server-internal}/README.md | 0 .../core/packages/http/context-server-internal}/index.ts | 0 .../packages/http/context-server-internal}/jest.config.js | 4 ++-- .../core/packages/http/context-server-internal}/kibana.jsonc | 0 .../core/packages/http/context-server-internal}/package.json | 0 .../context-server-internal}/src/context_container.test.ts | 0 .../http/context-server-internal}/src/context_container.ts | 0 .../src/context_service.test.mocks.ts | 0 .../http/context-server-internal}/src/context_service.test.ts | 0 .../http/context-server-internal}/src/context_service.ts | 0 .../core/packages/http/context-server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/http/core-http-context-server-internal => src/core/packages/http/context-server-internal}/README.md (100%) rename {packages/core/http/core-http-context-server-internal => src/core/packages/http/context-server-internal}/index.ts (100%) rename {packages/core/http/core-http-context-server-internal => src/core/packages/http/context-server-internal}/jest.config.js (83%) rename {packages/core/http/core-http-context-server-internal => src/core/packages/http/context-server-internal}/kibana.jsonc (100%) rename {packages/core/http/core-http-context-server-internal => src/core/packages/http/context-server-internal}/package.json (100%) rename {packages/core/http/core-http-context-server-internal => src/core/packages/http/context-server-internal}/src/context_container.test.ts (100%) rename {packages/core/http/core-http-context-server-internal => src/core/packages/http/context-server-internal}/src/context_container.ts (100%) rename {packages/core/http/core-http-context-server-internal => src/core/packages/http/context-server-internal}/src/context_service.test.mocks.ts (100%) rename {packages/core/http/core-http-context-server-internal => src/core/packages/http/context-server-internal}/src/context_service.test.ts (100%) rename {packages/core/http/core-http-context-server-internal => src/core/packages/http/context-server-internal}/src/context_service.ts (100%) rename {packages/core/http/core-http-context-server-internal => src/core/packages/http/context-server-internal}/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 778c85480cb50..3c66211a1fc51 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -81,7 +81,6 @@ packages/core/execution-context/core-execution-context-browser-mocks @elastic/ki packages/core/execution-context/core-execution-context-server-mocks @elastic/kibana-core packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core packages/core/http/core-http-browser-mocks @elastic/kibana-core -packages/core/http/core-http-context-server-internal @elastic/kibana-core packages/core/http/core-http-context-server-mocks @elastic/kibana-core packages/core/http/core-http-request-handler-context-server @elastic/kibana-core packages/core/http/core-http-request-handler-context-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/feature-flags/server-mocks @elastic/kibana-core src/core/packages/http/browser @elastic/kibana-core src/core/packages/http/browser-internal @elastic/kibana-core src/core/packages/http/common @elastic/kibana-core +src/core/packages/http/context-server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 91e4cc5960878..60714698d28c8 100644 --- a/package.json +++ b/package.json @@ -303,7 +303,7 @@ "@kbn/core-http-browser": "link:src/core/packages/http/browser", "@kbn/core-http-browser-internal": "link:src/core/packages/http/browser-internal", "@kbn/core-http-common": "link:src/core/packages/http/common", - "@kbn/core-http-context-server-internal": "link:packages/core/http/core-http-context-server-internal", + "@kbn/core-http-context-server-internal": "link:src/core/packages/http/context-server-internal", "@kbn/core-http-plugin": "link:test/plugin_functional/plugins/core_http", "@kbn/core-http-request-handler-context-server": "link:packages/core/http/core-http-request-handler-context-server", "@kbn/core-http-request-handler-context-server-internal": "link:packages/core/http/core-http-request-handler-context-server-internal", diff --git a/packages/core/http/core-http-context-server-internal/README.md b/src/core/packages/http/context-server-internal/README.md similarity index 100% rename from packages/core/http/core-http-context-server-internal/README.md rename to src/core/packages/http/context-server-internal/README.md diff --git a/packages/core/http/core-http-context-server-internal/index.ts b/src/core/packages/http/context-server-internal/index.ts similarity index 100% rename from packages/core/http/core-http-context-server-internal/index.ts rename to src/core/packages/http/context-server-internal/index.ts diff --git a/packages/core/http/core-http-context-server-internal/jest.config.js b/src/core/packages/http/context-server-internal/jest.config.js similarity index 83% rename from packages/core/http/core-http-context-server-internal/jest.config.js rename to src/core/packages/http/context-server-internal/jest.config.js index 34433ea07fa1b..63cdc973eaa7f 100644 --- a/packages/core/http/core-http-context-server-internal/jest.config.js +++ b/src/core/packages/http/context-server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/http/core-http-context-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/http/context-server-internal'], }; diff --git a/packages/core/http/core-http-context-server-internal/kibana.jsonc b/src/core/packages/http/context-server-internal/kibana.jsonc similarity index 100% rename from packages/core/http/core-http-context-server-internal/kibana.jsonc rename to src/core/packages/http/context-server-internal/kibana.jsonc diff --git a/packages/core/http/core-http-context-server-internal/package.json b/src/core/packages/http/context-server-internal/package.json similarity index 100% rename from packages/core/http/core-http-context-server-internal/package.json rename to src/core/packages/http/context-server-internal/package.json diff --git a/packages/core/http/core-http-context-server-internal/src/context_container.test.ts b/src/core/packages/http/context-server-internal/src/context_container.test.ts similarity index 100% rename from packages/core/http/core-http-context-server-internal/src/context_container.test.ts rename to src/core/packages/http/context-server-internal/src/context_container.test.ts diff --git a/packages/core/http/core-http-context-server-internal/src/context_container.ts b/src/core/packages/http/context-server-internal/src/context_container.ts similarity index 100% rename from packages/core/http/core-http-context-server-internal/src/context_container.ts rename to src/core/packages/http/context-server-internal/src/context_container.ts diff --git a/packages/core/http/core-http-context-server-internal/src/context_service.test.mocks.ts b/src/core/packages/http/context-server-internal/src/context_service.test.mocks.ts similarity index 100% rename from packages/core/http/core-http-context-server-internal/src/context_service.test.mocks.ts rename to src/core/packages/http/context-server-internal/src/context_service.test.mocks.ts diff --git a/packages/core/http/core-http-context-server-internal/src/context_service.test.ts b/src/core/packages/http/context-server-internal/src/context_service.test.ts similarity index 100% rename from packages/core/http/core-http-context-server-internal/src/context_service.test.ts rename to src/core/packages/http/context-server-internal/src/context_service.test.ts diff --git a/packages/core/http/core-http-context-server-internal/src/context_service.ts b/src/core/packages/http/context-server-internal/src/context_service.ts similarity index 100% rename from packages/core/http/core-http-context-server-internal/src/context_service.ts rename to src/core/packages/http/context-server-internal/src/context_service.ts diff --git a/packages/core/http/core-http-context-server-internal/tsconfig.json b/src/core/packages/http/context-server-internal/tsconfig.json similarity index 88% rename from packages/core/http/core-http-context-server-internal/tsconfig.json rename to src/core/packages/http/context-server-internal/tsconfig.json index 0caeb0d5e0093..6443773f9a9b1 100644 --- a/packages/core/http/core-http-context-server-internal/tsconfig.json +++ b/src/core/packages/http/context-server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index e769568dafe49..c09097989b4b7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -388,8 +388,8 @@ "@kbn/core-http-browser-mocks/*": ["packages/core/http/core-http-browser-mocks/*"], "@kbn/core-http-common": ["src/core/packages/http/common"], "@kbn/core-http-common/*": ["src/core/packages/http/common/*"], - "@kbn/core-http-context-server-internal": ["packages/core/http/core-http-context-server-internal"], - "@kbn/core-http-context-server-internal/*": ["packages/core/http/core-http-context-server-internal/*"], + "@kbn/core-http-context-server-internal": ["src/core/packages/http/context-server-internal"], + "@kbn/core-http-context-server-internal/*": ["src/core/packages/http/context-server-internal/*"], "@kbn/core-http-context-server-mocks": ["packages/core/http/core-http-context-server-mocks"], "@kbn/core-http-context-server-mocks/*": ["packages/core/http/core-http-context-server-mocks/*"], "@kbn/core-http-plugin": ["test/plugin_functional/plugins/core_http"], diff --git a/yarn.lock b/yarn.lock index 8ae1bb9fc0270..ea5ce32b596ef 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4589,7 +4589,7 @@ version "0.0.0" uid "" -"@kbn/core-http-context-server-internal@link:packages/core/http/core-http-context-server-internal": +"@kbn/core-http-context-server-internal@link:src/core/packages/http/context-server-internal": version "0.0.0" uid "" From bab3a672343e2786f0af2234dbf774e8d6d84c7e Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:37:55 +0100 Subject: [PATCH 050/167] Relocating module `@kbn/core-http-request-handler-context-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/http/request-handler-context-server}/README.md | 0 .../packages/http/request-handler-context-server}/index.ts | 0 .../http/request-handler-context-server}/jest.config.js | 4 ++-- .../http/request-handler-context-server}/kibana.jsonc | 0 .../http/request-handler-context-server}/package.json | 0 .../http/request-handler-context-server}/src/index.ts | 0 .../src/preboot_request_handler_context.ts | 0 .../src/request_handler_context.ts | 0 .../http/request-handler-context-server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/http/core-http-request-handler-context-server => src/core/packages/http/request-handler-context-server}/README.md (100%) rename {packages/core/http/core-http-request-handler-context-server => src/core/packages/http/request-handler-context-server}/index.ts (100%) rename {packages/core/http/core-http-request-handler-context-server => src/core/packages/http/request-handler-context-server}/jest.config.js (82%) rename {packages/core/http/core-http-request-handler-context-server => src/core/packages/http/request-handler-context-server}/kibana.jsonc (100%) rename {packages/core/http/core-http-request-handler-context-server => src/core/packages/http/request-handler-context-server}/package.json (100%) rename {packages/core/http/core-http-request-handler-context-server => src/core/packages/http/request-handler-context-server}/src/index.ts (100%) rename {packages/core/http/core-http-request-handler-context-server => src/core/packages/http/request-handler-context-server}/src/preboot_request_handler_context.ts (100%) rename {packages/core/http/core-http-request-handler-context-server => src/core/packages/http/request-handler-context-server}/src/request_handler_context.ts (100%) rename {packages/core/http/core-http-request-handler-context-server => src/core/packages/http/request-handler-context-server}/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3c66211a1fc51..f86540a51a006 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -82,7 +82,6 @@ packages/core/execution-context/core-execution-context-server-mocks @elastic/kib packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core packages/core/http/core-http-browser-mocks @elastic/kibana-core packages/core/http/core-http-context-server-mocks @elastic/kibana-core -packages/core/http/core-http-request-handler-context-server @elastic/kibana-core packages/core/http/core-http-request-handler-context-server-internal @elastic/kibana-core packages/core/http/core-http-resources-server @elastic/kibana-core packages/core/http/core-http-resources-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/http/browser @elastic/kibana-core src/core/packages/http/browser-internal @elastic/kibana-core src/core/packages/http/common @elastic/kibana-core src/core/packages/http/context-server-internal @elastic/kibana-core +src/core/packages/http/request-handler-context-server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 60714698d28c8..bfa2776bc9dda 100644 --- a/package.json +++ b/package.json @@ -305,7 +305,7 @@ "@kbn/core-http-common": "link:src/core/packages/http/common", "@kbn/core-http-context-server-internal": "link:src/core/packages/http/context-server-internal", "@kbn/core-http-plugin": "link:test/plugin_functional/plugins/core_http", - "@kbn/core-http-request-handler-context-server": "link:packages/core/http/core-http-request-handler-context-server", + "@kbn/core-http-request-handler-context-server": "link:src/core/packages/http/request-handler-context-server", "@kbn/core-http-request-handler-context-server-internal": "link:packages/core/http/core-http-request-handler-context-server-internal", "@kbn/core-http-resources-server": "link:packages/core/http/core-http-resources-server", "@kbn/core-http-resources-server-internal": "link:packages/core/http/core-http-resources-server-internal", diff --git a/packages/core/http/core-http-request-handler-context-server/README.md b/src/core/packages/http/request-handler-context-server/README.md similarity index 100% rename from packages/core/http/core-http-request-handler-context-server/README.md rename to src/core/packages/http/request-handler-context-server/README.md diff --git a/packages/core/http/core-http-request-handler-context-server/index.ts b/src/core/packages/http/request-handler-context-server/index.ts similarity index 100% rename from packages/core/http/core-http-request-handler-context-server/index.ts rename to src/core/packages/http/request-handler-context-server/index.ts diff --git a/packages/core/http/core-http-request-handler-context-server/jest.config.js b/src/core/packages/http/request-handler-context-server/jest.config.js similarity index 82% rename from packages/core/http/core-http-request-handler-context-server/jest.config.js rename to src/core/packages/http/request-handler-context-server/jest.config.js index fc1ea0974b801..db0cc3c5ea443 100644 --- a/packages/core/http/core-http-request-handler-context-server/jest.config.js +++ b/src/core/packages/http/request-handler-context-server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/http/core-http-request-handler-context-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/http/request-handler-context-server'], }; diff --git a/packages/core/http/core-http-request-handler-context-server/kibana.jsonc b/src/core/packages/http/request-handler-context-server/kibana.jsonc similarity index 100% rename from packages/core/http/core-http-request-handler-context-server/kibana.jsonc rename to src/core/packages/http/request-handler-context-server/kibana.jsonc diff --git a/packages/core/http/core-http-request-handler-context-server/package.json b/src/core/packages/http/request-handler-context-server/package.json similarity index 100% rename from packages/core/http/core-http-request-handler-context-server/package.json rename to src/core/packages/http/request-handler-context-server/package.json diff --git a/packages/core/http/core-http-request-handler-context-server/src/index.ts b/src/core/packages/http/request-handler-context-server/src/index.ts similarity index 100% rename from packages/core/http/core-http-request-handler-context-server/src/index.ts rename to src/core/packages/http/request-handler-context-server/src/index.ts diff --git a/packages/core/http/core-http-request-handler-context-server/src/preboot_request_handler_context.ts b/src/core/packages/http/request-handler-context-server/src/preboot_request_handler_context.ts similarity index 100% rename from packages/core/http/core-http-request-handler-context-server/src/preboot_request_handler_context.ts rename to src/core/packages/http/request-handler-context-server/src/preboot_request_handler_context.ts diff --git a/packages/core/http/core-http-request-handler-context-server/src/request_handler_context.ts b/src/core/packages/http/request-handler-context-server/src/request_handler_context.ts similarity index 100% rename from packages/core/http/core-http-request-handler-context-server/src/request_handler_context.ts rename to src/core/packages/http/request-handler-context-server/src/request_handler_context.ts diff --git a/packages/core/http/core-http-request-handler-context-server/tsconfig.json b/src/core/packages/http/request-handler-context-server/tsconfig.json similarity index 90% rename from packages/core/http/core-http-request-handler-context-server/tsconfig.json rename to src/core/packages/http/request-handler-context-server/tsconfig.json index 905a13801f223..f799bfe0e0c7f 100644 --- a/packages/core/http/core-http-request-handler-context-server/tsconfig.json +++ b/src/core/packages/http/request-handler-context-server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c09097989b4b7..6c27f8f3cb7ae 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -394,8 +394,8 @@ "@kbn/core-http-context-server-mocks/*": ["packages/core/http/core-http-context-server-mocks/*"], "@kbn/core-http-plugin": ["test/plugin_functional/plugins/core_http"], "@kbn/core-http-plugin/*": ["test/plugin_functional/plugins/core_http/*"], - "@kbn/core-http-request-handler-context-server": ["packages/core/http/core-http-request-handler-context-server"], - "@kbn/core-http-request-handler-context-server/*": ["packages/core/http/core-http-request-handler-context-server/*"], + "@kbn/core-http-request-handler-context-server": ["src/core/packages/http/request-handler-context-server"], + "@kbn/core-http-request-handler-context-server/*": ["src/core/packages/http/request-handler-context-server/*"], "@kbn/core-http-request-handler-context-server-internal": ["packages/core/http/core-http-request-handler-context-server-internal"], "@kbn/core-http-request-handler-context-server-internal/*": ["packages/core/http/core-http-request-handler-context-server-internal/*"], "@kbn/core-http-resources-server": ["packages/core/http/core-http-resources-server"], diff --git a/yarn.lock b/yarn.lock index ea5ce32b596ef..a91eed08b39da 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4605,7 +4605,7 @@ version "0.0.0" uid "" -"@kbn/core-http-request-handler-context-server@link:packages/core/http/core-http-request-handler-context-server": +"@kbn/core-http-request-handler-context-server@link:src/core/packages/http/request-handler-context-server": version "0.0.0" uid "" From 9afd9e2f15e34755f79fccc93960fd6a9bbad50c Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:38:48 +0100 Subject: [PATCH 051/167] Relocating module `@kbn/core-http-request-handler-context-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../http/request-handler-context-server-internal}/README.md | 0 .../http/request-handler-context-server-internal}/index.ts | 0 .../request-handler-context-server-internal}/jest.config.js | 4 ++-- .../request-handler-context-server-internal}/kibana.jsonc | 0 .../request-handler-context-server-internal}/package.json | 0 .../src/core_route_handler_context.test.ts | 0 .../src/core_route_handler_context.ts | 0 .../request-handler-context-server-internal}/src/index.ts | 0 .../src/preboot_core_route_handler_context.test.ts | 0 .../src/preboot_core_route_handler_context.ts | 0 .../test_helpers/core_route_handler_context_params.mock.ts | 0 .../src/test_helpers/index.ts | 0 .../preboot_core_route_handler_context_params.mock.ts | 0 .../request-handler-context-server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 18 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/README.md (100%) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/index.ts (100%) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/jest.config.js (81%) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/kibana.jsonc (100%) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/package.json (100%) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/src/core_route_handler_context.test.ts (100%) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/src/core_route_handler_context.ts (100%) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/src/index.ts (100%) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/src/preboot_core_route_handler_context.test.ts (100%) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/src/preboot_core_route_handler_context.ts (100%) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/src/test_helpers/core_route_handler_context_params.mock.ts (100%) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/src/test_helpers/index.ts (100%) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/src/test_helpers/preboot_core_route_handler_context_params.mock.ts (100%) rename {packages/core/http/core-http-request-handler-context-server-internal => src/core/packages/http/request-handler-context-server-internal}/tsconfig.json (95%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f86540a51a006..5a8fb99eda59c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -82,7 +82,6 @@ packages/core/execution-context/core-execution-context-server-mocks @elastic/kib packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core packages/core/http/core-http-browser-mocks @elastic/kibana-core packages/core/http/core-http-context-server-mocks @elastic/kibana-core -packages/core/http/core-http-request-handler-context-server-internal @elastic/kibana-core packages/core/http/core-http-resources-server @elastic/kibana-core packages/core/http/core-http-resources-server-internal @elastic/kibana-core packages/core/http/core-http-resources-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/http/browser-internal @elastic/kibana-core src/core/packages/http/common @elastic/kibana-core src/core/packages/http/context-server-internal @elastic/kibana-core src/core/packages/http/request-handler-context-server @elastic/kibana-core +src/core/packages/http/request-handler-context-server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index bfa2776bc9dda..4ca8a99ffc799 100644 --- a/package.json +++ b/package.json @@ -306,7 +306,7 @@ "@kbn/core-http-context-server-internal": "link:src/core/packages/http/context-server-internal", "@kbn/core-http-plugin": "link:test/plugin_functional/plugins/core_http", "@kbn/core-http-request-handler-context-server": "link:src/core/packages/http/request-handler-context-server", - "@kbn/core-http-request-handler-context-server-internal": "link:packages/core/http/core-http-request-handler-context-server-internal", + "@kbn/core-http-request-handler-context-server-internal": "link:src/core/packages/http/request-handler-context-server-internal", "@kbn/core-http-resources-server": "link:packages/core/http/core-http-resources-server", "@kbn/core-http-resources-server-internal": "link:packages/core/http/core-http-resources-server-internal", "@kbn/core-http-router-server-internal": "link:packages/core/http/core-http-router-server-internal", diff --git a/packages/core/http/core-http-request-handler-context-server-internal/README.md b/src/core/packages/http/request-handler-context-server-internal/README.md similarity index 100% rename from packages/core/http/core-http-request-handler-context-server-internal/README.md rename to src/core/packages/http/request-handler-context-server-internal/README.md diff --git a/packages/core/http/core-http-request-handler-context-server-internal/index.ts b/src/core/packages/http/request-handler-context-server-internal/index.ts similarity index 100% rename from packages/core/http/core-http-request-handler-context-server-internal/index.ts rename to src/core/packages/http/request-handler-context-server-internal/index.ts diff --git a/packages/core/http/core-http-request-handler-context-server-internal/jest.config.js b/src/core/packages/http/request-handler-context-server-internal/jest.config.js similarity index 81% rename from packages/core/http/core-http-request-handler-context-server-internal/jest.config.js rename to src/core/packages/http/request-handler-context-server-internal/jest.config.js index 7ccfbb169f2ae..5668e9fbf9499 100644 --- a/packages/core/http/core-http-request-handler-context-server-internal/jest.config.js +++ b/src/core/packages/http/request-handler-context-server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/http/core-http-request-handler-context-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/http/request-handler-context-server-internal'], }; diff --git a/packages/core/http/core-http-request-handler-context-server-internal/kibana.jsonc b/src/core/packages/http/request-handler-context-server-internal/kibana.jsonc similarity index 100% rename from packages/core/http/core-http-request-handler-context-server-internal/kibana.jsonc rename to src/core/packages/http/request-handler-context-server-internal/kibana.jsonc diff --git a/packages/core/http/core-http-request-handler-context-server-internal/package.json b/src/core/packages/http/request-handler-context-server-internal/package.json similarity index 100% rename from packages/core/http/core-http-request-handler-context-server-internal/package.json rename to src/core/packages/http/request-handler-context-server-internal/package.json diff --git a/packages/core/http/core-http-request-handler-context-server-internal/src/core_route_handler_context.test.ts b/src/core/packages/http/request-handler-context-server-internal/src/core_route_handler_context.test.ts similarity index 100% rename from packages/core/http/core-http-request-handler-context-server-internal/src/core_route_handler_context.test.ts rename to src/core/packages/http/request-handler-context-server-internal/src/core_route_handler_context.test.ts diff --git a/packages/core/http/core-http-request-handler-context-server-internal/src/core_route_handler_context.ts b/src/core/packages/http/request-handler-context-server-internal/src/core_route_handler_context.ts similarity index 100% rename from packages/core/http/core-http-request-handler-context-server-internal/src/core_route_handler_context.ts rename to src/core/packages/http/request-handler-context-server-internal/src/core_route_handler_context.ts diff --git a/packages/core/http/core-http-request-handler-context-server-internal/src/index.ts b/src/core/packages/http/request-handler-context-server-internal/src/index.ts similarity index 100% rename from packages/core/http/core-http-request-handler-context-server-internal/src/index.ts rename to src/core/packages/http/request-handler-context-server-internal/src/index.ts diff --git a/packages/core/http/core-http-request-handler-context-server-internal/src/preboot_core_route_handler_context.test.ts b/src/core/packages/http/request-handler-context-server-internal/src/preboot_core_route_handler_context.test.ts similarity index 100% rename from packages/core/http/core-http-request-handler-context-server-internal/src/preboot_core_route_handler_context.test.ts rename to src/core/packages/http/request-handler-context-server-internal/src/preboot_core_route_handler_context.test.ts diff --git a/packages/core/http/core-http-request-handler-context-server-internal/src/preboot_core_route_handler_context.ts b/src/core/packages/http/request-handler-context-server-internal/src/preboot_core_route_handler_context.ts similarity index 100% rename from packages/core/http/core-http-request-handler-context-server-internal/src/preboot_core_route_handler_context.ts rename to src/core/packages/http/request-handler-context-server-internal/src/preboot_core_route_handler_context.ts diff --git a/packages/core/http/core-http-request-handler-context-server-internal/src/test_helpers/core_route_handler_context_params.mock.ts b/src/core/packages/http/request-handler-context-server-internal/src/test_helpers/core_route_handler_context_params.mock.ts similarity index 100% rename from packages/core/http/core-http-request-handler-context-server-internal/src/test_helpers/core_route_handler_context_params.mock.ts rename to src/core/packages/http/request-handler-context-server-internal/src/test_helpers/core_route_handler_context_params.mock.ts diff --git a/packages/core/http/core-http-request-handler-context-server-internal/src/test_helpers/index.ts b/src/core/packages/http/request-handler-context-server-internal/src/test_helpers/index.ts similarity index 100% rename from packages/core/http/core-http-request-handler-context-server-internal/src/test_helpers/index.ts rename to src/core/packages/http/request-handler-context-server-internal/src/test_helpers/index.ts diff --git a/packages/core/http/core-http-request-handler-context-server-internal/src/test_helpers/preboot_core_route_handler_context_params.mock.ts b/src/core/packages/http/request-handler-context-server-internal/src/test_helpers/preboot_core_route_handler_context_params.mock.ts similarity index 100% rename from packages/core/http/core-http-request-handler-context-server-internal/src/test_helpers/preboot_core_route_handler_context_params.mock.ts rename to src/core/packages/http/request-handler-context-server-internal/src/test_helpers/preboot_core_route_handler_context_params.mock.ts diff --git a/packages/core/http/core-http-request-handler-context-server-internal/tsconfig.json b/src/core/packages/http/request-handler-context-server-internal/tsconfig.json similarity index 95% rename from packages/core/http/core-http-request-handler-context-server-internal/tsconfig.json rename to src/core/packages/http/request-handler-context-server-internal/tsconfig.json index 99c86608d99de..0f7d05034003f 100644 --- a/packages/core/http/core-http-request-handler-context-server-internal/tsconfig.json +++ b/src/core/packages/http/request-handler-context-server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 6c27f8f3cb7ae..72a492629c2e3 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -396,8 +396,8 @@ "@kbn/core-http-plugin/*": ["test/plugin_functional/plugins/core_http/*"], "@kbn/core-http-request-handler-context-server": ["src/core/packages/http/request-handler-context-server"], "@kbn/core-http-request-handler-context-server/*": ["src/core/packages/http/request-handler-context-server/*"], - "@kbn/core-http-request-handler-context-server-internal": ["packages/core/http/core-http-request-handler-context-server-internal"], - "@kbn/core-http-request-handler-context-server-internal/*": ["packages/core/http/core-http-request-handler-context-server-internal/*"], + "@kbn/core-http-request-handler-context-server-internal": ["src/core/packages/http/request-handler-context-server-internal"], + "@kbn/core-http-request-handler-context-server-internal/*": ["src/core/packages/http/request-handler-context-server-internal/*"], "@kbn/core-http-resources-server": ["packages/core/http/core-http-resources-server"], "@kbn/core-http-resources-server/*": ["packages/core/http/core-http-resources-server/*"], "@kbn/core-http-resources-server-internal": ["packages/core/http/core-http-resources-server-internal"], diff --git a/yarn.lock b/yarn.lock index a91eed08b39da..fdcc2983c71a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4601,7 +4601,7 @@ version "0.0.0" uid "" -"@kbn/core-http-request-handler-context-server-internal@link:packages/core/http/core-http-request-handler-context-server-internal": +"@kbn/core-http-request-handler-context-server-internal@link:src/core/packages/http/request-handler-context-server-internal": version "0.0.0" uid "" From f8552b8eb6a921f00994509cbd6436b0e7d86574 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:39:40 +0100 Subject: [PATCH 052/167] Relocating module `@kbn/core-http-resources-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/http/resources-server}/README.md | 0 .../core/packages/http/resources-server}/index.ts | 0 .../core/packages/http/resources-server}/jest.config.js | 4 ++-- .../core/packages/http/resources-server}/kibana.jsonc | 0 .../core/packages/http/resources-server}/package.json | 0 .../core/packages/http/resources-server}/src/index.ts | 0 .../core/packages/http/resources-server}/src/types.ts | 0 .../core/packages/http/resources-server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/http/core-http-resources-server => src/core/packages/http/resources-server}/README.md (100%) rename {packages/core/http/core-http-resources-server => src/core/packages/http/resources-server}/index.ts (100%) rename {packages/core/http/core-http-resources-server => src/core/packages/http/resources-server}/jest.config.js (84%) rename {packages/core/http/core-http-resources-server => src/core/packages/http/resources-server}/kibana.jsonc (100%) rename {packages/core/http/core-http-resources-server => src/core/packages/http/resources-server}/package.json (100%) rename {packages/core/http/core-http-resources-server => src/core/packages/http/resources-server}/src/index.ts (100%) rename {packages/core/http/core-http-resources-server => src/core/packages/http/resources-server}/src/types.ts (100%) rename {packages/core/http/core-http-resources-server => src/core/packages/http/resources-server}/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5a8fb99eda59c..c2cf1f77cfbc8 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -82,7 +82,6 @@ packages/core/execution-context/core-execution-context-server-mocks @elastic/kib packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core packages/core/http/core-http-browser-mocks @elastic/kibana-core packages/core/http/core-http-context-server-mocks @elastic/kibana-core -packages/core/http/core-http-resources-server @elastic/kibana-core packages/core/http/core-http-resources-server-internal @elastic/kibana-core packages/core/http/core-http-resources-server-mocks @elastic/kibana-core packages/core/http/core-http-router-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/http/common @elastic/kibana-core src/core/packages/http/context-server-internal @elastic/kibana-core src/core/packages/http/request-handler-context-server @elastic/kibana-core src/core/packages/http/request-handler-context-server-internal @elastic/kibana-core +src/core/packages/http/resources-server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 4ca8a99ffc799..8a67fe7cfe377 100644 --- a/package.json +++ b/package.json @@ -307,7 +307,7 @@ "@kbn/core-http-plugin": "link:test/plugin_functional/plugins/core_http", "@kbn/core-http-request-handler-context-server": "link:src/core/packages/http/request-handler-context-server", "@kbn/core-http-request-handler-context-server-internal": "link:src/core/packages/http/request-handler-context-server-internal", - "@kbn/core-http-resources-server": "link:packages/core/http/core-http-resources-server", + "@kbn/core-http-resources-server": "link:src/core/packages/http/resources-server", "@kbn/core-http-resources-server-internal": "link:packages/core/http/core-http-resources-server-internal", "@kbn/core-http-router-server-internal": "link:packages/core/http/core-http-router-server-internal", "@kbn/core-http-server": "link:packages/core/http/core-http-server", diff --git a/packages/core/http/core-http-resources-server/README.md b/src/core/packages/http/resources-server/README.md similarity index 100% rename from packages/core/http/core-http-resources-server/README.md rename to src/core/packages/http/resources-server/README.md diff --git a/packages/core/http/core-http-resources-server/index.ts b/src/core/packages/http/resources-server/index.ts similarity index 100% rename from packages/core/http/core-http-resources-server/index.ts rename to src/core/packages/http/resources-server/index.ts diff --git a/packages/core/http/core-http-resources-server/jest.config.js b/src/core/packages/http/resources-server/jest.config.js similarity index 84% rename from packages/core/http/core-http-resources-server/jest.config.js rename to src/core/packages/http/resources-server/jest.config.js index 5f132637ef8e8..52941f6b2503f 100644 --- a/packages/core/http/core-http-resources-server/jest.config.js +++ b/src/core/packages/http/resources-server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/http/core-http-resources-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/http/resources-server'], }; diff --git a/packages/core/http/core-http-resources-server/kibana.jsonc b/src/core/packages/http/resources-server/kibana.jsonc similarity index 100% rename from packages/core/http/core-http-resources-server/kibana.jsonc rename to src/core/packages/http/resources-server/kibana.jsonc diff --git a/packages/core/http/core-http-resources-server/package.json b/src/core/packages/http/resources-server/package.json similarity index 100% rename from packages/core/http/core-http-resources-server/package.json rename to src/core/packages/http/resources-server/package.json diff --git a/packages/core/http/core-http-resources-server/src/index.ts b/src/core/packages/http/resources-server/src/index.ts similarity index 100% rename from packages/core/http/core-http-resources-server/src/index.ts rename to src/core/packages/http/resources-server/src/index.ts diff --git a/packages/core/http/core-http-resources-server/src/types.ts b/src/core/packages/http/resources-server/src/types.ts similarity index 100% rename from packages/core/http/core-http-resources-server/src/types.ts rename to src/core/packages/http/resources-server/src/types.ts diff --git a/packages/core/http/core-http-resources-server/tsconfig.json b/src/core/packages/http/resources-server/tsconfig.json similarity index 85% rename from packages/core/http/core-http-resources-server/tsconfig.json rename to src/core/packages/http/resources-server/tsconfig.json index 3f8e3b88aece5..162de37d434dc 100644 --- a/packages/core/http/core-http-resources-server/tsconfig.json +++ b/src/core/packages/http/resources-server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 72a492629c2e3..17214ccb8faa0 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -398,8 +398,8 @@ "@kbn/core-http-request-handler-context-server/*": ["src/core/packages/http/request-handler-context-server/*"], "@kbn/core-http-request-handler-context-server-internal": ["src/core/packages/http/request-handler-context-server-internal"], "@kbn/core-http-request-handler-context-server-internal/*": ["src/core/packages/http/request-handler-context-server-internal/*"], - "@kbn/core-http-resources-server": ["packages/core/http/core-http-resources-server"], - "@kbn/core-http-resources-server/*": ["packages/core/http/core-http-resources-server/*"], + "@kbn/core-http-resources-server": ["src/core/packages/http/resources-server"], + "@kbn/core-http-resources-server/*": ["src/core/packages/http/resources-server/*"], "@kbn/core-http-resources-server-internal": ["packages/core/http/core-http-resources-server-internal"], "@kbn/core-http-resources-server-internal/*": ["packages/core/http/core-http-resources-server-internal/*"], "@kbn/core-http-resources-server-mocks": ["packages/core/http/core-http-resources-server-mocks"], diff --git a/yarn.lock b/yarn.lock index fdcc2983c71a0..3a0ec95e57e30 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4617,7 +4617,7 @@ version "0.0.0" uid "" -"@kbn/core-http-resources-server@link:packages/core/http/core-http-resources-server": +"@kbn/core-http-resources-server@link:src/core/packages/http/resources-server": version "0.0.0" uid "" From 824282513dd01bcffb98c750278f0caf2f794411 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:40:33 +0100 Subject: [PATCH 053/167] Relocating module `@kbn/core-http-resources-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/http/resources-server-internal}/README.md | 0 .../core/packages/http/resources-server-internal}/index.ts | 0 .../packages/http/resources-server-internal}/jest.config.js | 4 ++-- .../packages/http/resources-server-internal}/kibana.jsonc | 0 .../packages/http/resources-server-internal}/package.json | 0 .../src/http_resources_service.test.ts | 0 .../resources-server-internal}/src/http_resources_service.ts | 0 .../packages/http/resources-server-internal}/src/index.ts | 0 .../src/test_helpers/http_resources_service_test_mocks.ts | 0 .../packages/http/resources-server-internal}/src/types.ts | 0 .../packages/http/resources-server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/http/core-http-resources-server-internal => src/core/packages/http/resources-server-internal}/README.md (100%) rename {packages/core/http/core-http-resources-server-internal => src/core/packages/http/resources-server-internal}/index.ts (100%) rename {packages/core/http/core-http-resources-server-internal => src/core/packages/http/resources-server-internal}/jest.config.js (83%) rename {packages/core/http/core-http-resources-server-internal => src/core/packages/http/resources-server-internal}/kibana.jsonc (100%) rename {packages/core/http/core-http-resources-server-internal => src/core/packages/http/resources-server-internal}/package.json (100%) rename {packages/core/http/core-http-resources-server-internal => src/core/packages/http/resources-server-internal}/src/http_resources_service.test.ts (100%) rename {packages/core/http/core-http-resources-server-internal => src/core/packages/http/resources-server-internal}/src/http_resources_service.ts (100%) rename {packages/core/http/core-http-resources-server-internal => src/core/packages/http/resources-server-internal}/src/index.ts (100%) rename {packages/core/http/core-http-resources-server-internal => src/core/packages/http/resources-server-internal}/src/test_helpers/http_resources_service_test_mocks.ts (100%) rename {packages/core/http/core-http-resources-server-internal => src/core/packages/http/resources-server-internal}/src/types.ts (100%) rename {packages/core/http/core-http-resources-server-internal => src/core/packages/http/resources-server-internal}/tsconfig.json (92%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c2cf1f77cfbc8..f460d2310ab0c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -82,7 +82,6 @@ packages/core/execution-context/core-execution-context-server-mocks @elastic/kib packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core packages/core/http/core-http-browser-mocks @elastic/kibana-core packages/core/http/core-http-context-server-mocks @elastic/kibana-core -packages/core/http/core-http-resources-server-internal @elastic/kibana-core packages/core/http/core-http-resources-server-mocks @elastic/kibana-core packages/core/http/core-http-router-server-internal @elastic/kibana-core packages/core/http/core-http-router-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/http/context-server-internal @elastic/kibana-core src/core/packages/http/request-handler-context-server @elastic/kibana-core src/core/packages/http/request-handler-context-server-internal @elastic/kibana-core src/core/packages/http/resources-server @elastic/kibana-core +src/core/packages/http/resources-server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 8a67fe7cfe377..960cb9351a2fe 100644 --- a/package.json +++ b/package.json @@ -308,7 +308,7 @@ "@kbn/core-http-request-handler-context-server": "link:src/core/packages/http/request-handler-context-server", "@kbn/core-http-request-handler-context-server-internal": "link:src/core/packages/http/request-handler-context-server-internal", "@kbn/core-http-resources-server": "link:src/core/packages/http/resources-server", - "@kbn/core-http-resources-server-internal": "link:packages/core/http/core-http-resources-server-internal", + "@kbn/core-http-resources-server-internal": "link:src/core/packages/http/resources-server-internal", "@kbn/core-http-router-server-internal": "link:packages/core/http/core-http-router-server-internal", "@kbn/core-http-server": "link:packages/core/http/core-http-server", "@kbn/core-http-server-internal": "link:packages/core/http/core-http-server-internal", diff --git a/packages/core/http/core-http-resources-server-internal/README.md b/src/core/packages/http/resources-server-internal/README.md similarity index 100% rename from packages/core/http/core-http-resources-server-internal/README.md rename to src/core/packages/http/resources-server-internal/README.md diff --git a/packages/core/http/core-http-resources-server-internal/index.ts b/src/core/packages/http/resources-server-internal/index.ts similarity index 100% rename from packages/core/http/core-http-resources-server-internal/index.ts rename to src/core/packages/http/resources-server-internal/index.ts diff --git a/packages/core/http/core-http-resources-server-internal/jest.config.js b/src/core/packages/http/resources-server-internal/jest.config.js similarity index 83% rename from packages/core/http/core-http-resources-server-internal/jest.config.js rename to src/core/packages/http/resources-server-internal/jest.config.js index 4488993c9eaff..8923c52f51d95 100644 --- a/packages/core/http/core-http-resources-server-internal/jest.config.js +++ b/src/core/packages/http/resources-server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/http/core-http-resources-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/http/resources-server-internal'], }; diff --git a/packages/core/http/core-http-resources-server-internal/kibana.jsonc b/src/core/packages/http/resources-server-internal/kibana.jsonc similarity index 100% rename from packages/core/http/core-http-resources-server-internal/kibana.jsonc rename to src/core/packages/http/resources-server-internal/kibana.jsonc diff --git a/packages/core/http/core-http-resources-server-internal/package.json b/src/core/packages/http/resources-server-internal/package.json similarity index 100% rename from packages/core/http/core-http-resources-server-internal/package.json rename to src/core/packages/http/resources-server-internal/package.json diff --git a/packages/core/http/core-http-resources-server-internal/src/http_resources_service.test.ts b/src/core/packages/http/resources-server-internal/src/http_resources_service.test.ts similarity index 100% rename from packages/core/http/core-http-resources-server-internal/src/http_resources_service.test.ts rename to src/core/packages/http/resources-server-internal/src/http_resources_service.test.ts diff --git a/packages/core/http/core-http-resources-server-internal/src/http_resources_service.ts b/src/core/packages/http/resources-server-internal/src/http_resources_service.ts similarity index 100% rename from packages/core/http/core-http-resources-server-internal/src/http_resources_service.ts rename to src/core/packages/http/resources-server-internal/src/http_resources_service.ts diff --git a/packages/core/http/core-http-resources-server-internal/src/index.ts b/src/core/packages/http/resources-server-internal/src/index.ts similarity index 100% rename from packages/core/http/core-http-resources-server-internal/src/index.ts rename to src/core/packages/http/resources-server-internal/src/index.ts diff --git a/packages/core/http/core-http-resources-server-internal/src/test_helpers/http_resources_service_test_mocks.ts b/src/core/packages/http/resources-server-internal/src/test_helpers/http_resources_service_test_mocks.ts similarity index 100% rename from packages/core/http/core-http-resources-server-internal/src/test_helpers/http_resources_service_test_mocks.ts rename to src/core/packages/http/resources-server-internal/src/test_helpers/http_resources_service_test_mocks.ts diff --git a/packages/core/http/core-http-resources-server-internal/src/types.ts b/src/core/packages/http/resources-server-internal/src/types.ts similarity index 100% rename from packages/core/http/core-http-resources-server-internal/src/types.ts rename to src/core/packages/http/resources-server-internal/src/types.ts diff --git a/packages/core/http/core-http-resources-server-internal/tsconfig.json b/src/core/packages/http/resources-server-internal/tsconfig.json similarity index 92% rename from packages/core/http/core-http-resources-server-internal/tsconfig.json rename to src/core/packages/http/resources-server-internal/tsconfig.json index 31dd86729ffd2..6c3c03815356c 100644 --- a/packages/core/http/core-http-resources-server-internal/tsconfig.json +++ b/src/core/packages/http/resources-server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 17214ccb8faa0..66d894332a0e1 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -400,8 +400,8 @@ "@kbn/core-http-request-handler-context-server-internal/*": ["src/core/packages/http/request-handler-context-server-internal/*"], "@kbn/core-http-resources-server": ["src/core/packages/http/resources-server"], "@kbn/core-http-resources-server/*": ["src/core/packages/http/resources-server/*"], - "@kbn/core-http-resources-server-internal": ["packages/core/http/core-http-resources-server-internal"], - "@kbn/core-http-resources-server-internal/*": ["packages/core/http/core-http-resources-server-internal/*"], + "@kbn/core-http-resources-server-internal": ["src/core/packages/http/resources-server-internal"], + "@kbn/core-http-resources-server-internal/*": ["src/core/packages/http/resources-server-internal/*"], "@kbn/core-http-resources-server-mocks": ["packages/core/http/core-http-resources-server-mocks"], "@kbn/core-http-resources-server-mocks/*": ["packages/core/http/core-http-resources-server-mocks/*"], "@kbn/core-http-router-server-internal": ["packages/core/http/core-http-router-server-internal"], diff --git a/yarn.lock b/yarn.lock index 3a0ec95e57e30..10e5c56c70ddb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4609,7 +4609,7 @@ version "0.0.0" uid "" -"@kbn/core-http-resources-server-internal@link:packages/core/http/core-http-resources-server-internal": +"@kbn/core-http-resources-server-internal@link:src/core/packages/http/resources-server-internal": version "0.0.0" uid "" From f0794112b04258f9e527317eb4c19707975dfdc9 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:41:25 +0100 Subject: [PATCH 054/167] Relocating module `@kbn/core-http-router-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/http/router-server-internal}/README.md | 0 .../core/packages/http/router-server-internal}/index.ts | 0 .../core/packages/http/router-server-internal}/jest.config.js | 4 ++-- .../core/packages/http/router-server-internal}/kibana.jsonc | 0 .../core/packages/http/router-server-internal}/package.json | 0 .../http/router-server-internal}/src/error_wrapper.test.ts | 0 .../http/router-server-internal}/src/error_wrapper.ts | 0 .../core/packages/http/router-server-internal}/src/headers.ts | 0 .../http/router-server-internal}/src/patch_requests.ts | 0 .../packages/http/router-server-internal}/src/request.test.ts | 0 .../core/packages/http/router-server-internal}/src/request.ts | 0 .../http/router-server-internal}/src/response.test.ts | 0 .../packages/http/router-server-internal}/src/response.ts | 0 .../http/router-server-internal}/src/response_adapter.ts | 0 .../core/packages/http/router-server-internal}/src/route.ts | 0 .../packages/http/router-server-internal}/src/router.test.ts | 0 .../http/router-server-internal}/src/router.test.util.ts | 0 .../core/packages/http/router-server-internal}/src/router.ts | 0 .../src/security_route_config_validator.test.ts | 0 .../src/security_route_config_validator.ts | 0 .../packages/http/router-server-internal}/src/socket.test.ts | 0 .../core/packages/http/router-server-internal}/src/socket.ts | 0 .../src/strip_illegal_http2_headers.test.ts | 0 .../src/strip_illegal_http2_headers.ts | 0 .../packages/http/router-server-internal}/src/util.test.ts | 0 .../core/packages/http/router-server-internal}/src/util.ts | 0 .../http/router-server-internal}/src/validator.test.ts | 0 .../packages/http/router-server-internal}/src/validator.ts | 0 .../src/versioned_router/core_versioned_route.test.ts | 0 .../src/versioned_router/core_versioned_route.test.util.ts | 0 .../src/versioned_router/core_versioned_route.ts | 0 .../src/versioned_router/core_versioned_router.test.ts | 0 .../src/versioned_router/core_versioned_router.ts | 0 .../src/versioned_router/handler_resolvers.test.ts | 0 .../src/versioned_router/handler_resolvers.ts | 0 .../router-server-internal}/src/versioned_router/index.ts | 0 .../router-server-internal}/src/versioned_router/mocks.ts | 0 .../src/versioned_router/route_version_utils.test.ts | 0 .../src/versioned_router/route_version_utils.ts | 0 .../router-server-internal}/src/versioned_router/types.ts | 0 .../router-server-internal}/src/versioned_router/util.test.ts | 0 .../http/router-server-internal}/src/versioned_router/util.ts | 0 .../router-server-internal}/src/versioned_router/validate.ts | 0 .../core/packages/http/router-server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 48 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/README.md (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/index.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/jest.config.js (83%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/kibana.jsonc (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/package.json (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/error_wrapper.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/error_wrapper.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/headers.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/patch_requests.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/request.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/request.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/response.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/response.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/response_adapter.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/route.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/router.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/router.test.util.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/router.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/security_route_config_validator.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/security_route_config_validator.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/socket.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/socket.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/strip_illegal_http2_headers.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/strip_illegal_http2_headers.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/util.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/util.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/validator.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/validator.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/core_versioned_route.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/core_versioned_route.test.util.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/core_versioned_route.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/core_versioned_router.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/core_versioned_router.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/handler_resolvers.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/handler_resolvers.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/index.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/mocks.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/route_version_utils.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/route_version_utils.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/types.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/util.test.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/util.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/src/versioned_router/validate.ts (100%) rename {packages/core/http/core-http-router-server-internal => src/core/packages/http/router-server-internal}/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f460d2310ab0c..b9c8a33063e19 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -83,7 +83,6 @@ packages/core/fatal-errors/core-fatal-errors-browser-mocks @elastic/kibana-core packages/core/http/core-http-browser-mocks @elastic/kibana-core packages/core/http/core-http-context-server-mocks @elastic/kibana-core packages/core/http/core-http-resources-server-mocks @elastic/kibana-core -packages/core/http/core-http-router-server-internal @elastic/kibana-core packages/core/http/core-http-router-server-mocks @elastic/kibana-core packages/core/http/core-http-server @elastic/kibana-core packages/core/http/core-http-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/http/request-handler-context-server @elastic/kibana-core src/core/packages/http/request-handler-context-server-internal @elastic/kibana-core src/core/packages/http/resources-server @elastic/kibana-core src/core/packages/http/resources-server-internal @elastic/kibana-core +src/core/packages/http/router-server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 960cb9351a2fe..5ebf2d3aaf69e 100644 --- a/package.json +++ b/package.json @@ -309,7 +309,7 @@ "@kbn/core-http-request-handler-context-server-internal": "link:src/core/packages/http/request-handler-context-server-internal", "@kbn/core-http-resources-server": "link:src/core/packages/http/resources-server", "@kbn/core-http-resources-server-internal": "link:src/core/packages/http/resources-server-internal", - "@kbn/core-http-router-server-internal": "link:packages/core/http/core-http-router-server-internal", + "@kbn/core-http-router-server-internal": "link:src/core/packages/http/router-server-internal", "@kbn/core-http-server": "link:packages/core/http/core-http-server", "@kbn/core-http-server-internal": "link:packages/core/http/core-http-server-internal", "@kbn/core-http-server-utils": "link:packages/core/http/core-http-server-utils", diff --git a/packages/core/http/core-http-router-server-internal/README.md b/src/core/packages/http/router-server-internal/README.md similarity index 100% rename from packages/core/http/core-http-router-server-internal/README.md rename to src/core/packages/http/router-server-internal/README.md diff --git a/packages/core/http/core-http-router-server-internal/index.ts b/src/core/packages/http/router-server-internal/index.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/index.ts rename to src/core/packages/http/router-server-internal/index.ts diff --git a/packages/core/http/core-http-router-server-internal/jest.config.js b/src/core/packages/http/router-server-internal/jest.config.js similarity index 83% rename from packages/core/http/core-http-router-server-internal/jest.config.js rename to src/core/packages/http/router-server-internal/jest.config.js index 270d78ff2b1a1..5f57ddc25b045 100644 --- a/packages/core/http/core-http-router-server-internal/jest.config.js +++ b/src/core/packages/http/router-server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/http/core-http-router-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/http/router-server-internal'], }; diff --git a/packages/core/http/core-http-router-server-internal/kibana.jsonc b/src/core/packages/http/router-server-internal/kibana.jsonc similarity index 100% rename from packages/core/http/core-http-router-server-internal/kibana.jsonc rename to src/core/packages/http/router-server-internal/kibana.jsonc diff --git a/packages/core/http/core-http-router-server-internal/package.json b/src/core/packages/http/router-server-internal/package.json similarity index 100% rename from packages/core/http/core-http-router-server-internal/package.json rename to src/core/packages/http/router-server-internal/package.json diff --git a/packages/core/http/core-http-router-server-internal/src/error_wrapper.test.ts b/src/core/packages/http/router-server-internal/src/error_wrapper.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/error_wrapper.test.ts rename to src/core/packages/http/router-server-internal/src/error_wrapper.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/error_wrapper.ts b/src/core/packages/http/router-server-internal/src/error_wrapper.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/error_wrapper.ts rename to src/core/packages/http/router-server-internal/src/error_wrapper.ts diff --git a/packages/core/http/core-http-router-server-internal/src/headers.ts b/src/core/packages/http/router-server-internal/src/headers.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/headers.ts rename to src/core/packages/http/router-server-internal/src/headers.ts diff --git a/packages/core/http/core-http-router-server-internal/src/patch_requests.ts b/src/core/packages/http/router-server-internal/src/patch_requests.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/patch_requests.ts rename to src/core/packages/http/router-server-internal/src/patch_requests.ts diff --git a/packages/core/http/core-http-router-server-internal/src/request.test.ts b/src/core/packages/http/router-server-internal/src/request.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/request.test.ts rename to src/core/packages/http/router-server-internal/src/request.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/request.ts b/src/core/packages/http/router-server-internal/src/request.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/request.ts rename to src/core/packages/http/router-server-internal/src/request.ts diff --git a/packages/core/http/core-http-router-server-internal/src/response.test.ts b/src/core/packages/http/router-server-internal/src/response.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/response.test.ts rename to src/core/packages/http/router-server-internal/src/response.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/response.ts b/src/core/packages/http/router-server-internal/src/response.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/response.ts rename to src/core/packages/http/router-server-internal/src/response.ts diff --git a/packages/core/http/core-http-router-server-internal/src/response_adapter.ts b/src/core/packages/http/router-server-internal/src/response_adapter.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/response_adapter.ts rename to src/core/packages/http/router-server-internal/src/response_adapter.ts diff --git a/packages/core/http/core-http-router-server-internal/src/route.ts b/src/core/packages/http/router-server-internal/src/route.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/route.ts rename to src/core/packages/http/router-server-internal/src/route.ts diff --git a/packages/core/http/core-http-router-server-internal/src/router.test.ts b/src/core/packages/http/router-server-internal/src/router.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/router.test.ts rename to src/core/packages/http/router-server-internal/src/router.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/router.test.util.ts b/src/core/packages/http/router-server-internal/src/router.test.util.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/router.test.util.ts rename to src/core/packages/http/router-server-internal/src/router.test.util.ts diff --git a/packages/core/http/core-http-router-server-internal/src/router.ts b/src/core/packages/http/router-server-internal/src/router.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/router.ts rename to src/core/packages/http/router-server-internal/src/router.ts diff --git a/packages/core/http/core-http-router-server-internal/src/security_route_config_validator.test.ts b/src/core/packages/http/router-server-internal/src/security_route_config_validator.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/security_route_config_validator.test.ts rename to src/core/packages/http/router-server-internal/src/security_route_config_validator.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/security_route_config_validator.ts b/src/core/packages/http/router-server-internal/src/security_route_config_validator.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/security_route_config_validator.ts rename to src/core/packages/http/router-server-internal/src/security_route_config_validator.ts diff --git a/packages/core/http/core-http-router-server-internal/src/socket.test.ts b/src/core/packages/http/router-server-internal/src/socket.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/socket.test.ts rename to src/core/packages/http/router-server-internal/src/socket.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/socket.ts b/src/core/packages/http/router-server-internal/src/socket.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/socket.ts rename to src/core/packages/http/router-server-internal/src/socket.ts diff --git a/packages/core/http/core-http-router-server-internal/src/strip_illegal_http2_headers.test.ts b/src/core/packages/http/router-server-internal/src/strip_illegal_http2_headers.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/strip_illegal_http2_headers.test.ts rename to src/core/packages/http/router-server-internal/src/strip_illegal_http2_headers.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/strip_illegal_http2_headers.ts b/src/core/packages/http/router-server-internal/src/strip_illegal_http2_headers.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/strip_illegal_http2_headers.ts rename to src/core/packages/http/router-server-internal/src/strip_illegal_http2_headers.ts diff --git a/packages/core/http/core-http-router-server-internal/src/util.test.ts b/src/core/packages/http/router-server-internal/src/util.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/util.test.ts rename to src/core/packages/http/router-server-internal/src/util.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/util.ts b/src/core/packages/http/router-server-internal/src/util.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/util.ts rename to src/core/packages/http/router-server-internal/src/util.ts diff --git a/packages/core/http/core-http-router-server-internal/src/validator.test.ts b/src/core/packages/http/router-server-internal/src/validator.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/validator.test.ts rename to src/core/packages/http/router-server-internal/src/validator.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/validator.ts b/src/core/packages/http/router-server-internal/src/validator.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/validator.ts rename to src/core/packages/http/router-server-internal/src/validator.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/core_versioned_route.test.ts b/src/core/packages/http/router-server-internal/src/versioned_router/core_versioned_route.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/core_versioned_route.test.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/core_versioned_route.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/core_versioned_route.test.util.ts b/src/core/packages/http/router-server-internal/src/versioned_router/core_versioned_route.test.util.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/core_versioned_route.test.util.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/core_versioned_route.test.util.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/core_versioned_route.ts b/src/core/packages/http/router-server-internal/src/versioned_router/core_versioned_route.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/core_versioned_route.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/core_versioned_route.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/core_versioned_router.test.ts b/src/core/packages/http/router-server-internal/src/versioned_router/core_versioned_router.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/core_versioned_router.test.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/core_versioned_router.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/core_versioned_router.ts b/src/core/packages/http/router-server-internal/src/versioned_router/core_versioned_router.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/core_versioned_router.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/core_versioned_router.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/handler_resolvers.test.ts b/src/core/packages/http/router-server-internal/src/versioned_router/handler_resolvers.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/handler_resolvers.test.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/handler_resolvers.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/handler_resolvers.ts b/src/core/packages/http/router-server-internal/src/versioned_router/handler_resolvers.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/handler_resolvers.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/handler_resolvers.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/index.ts b/src/core/packages/http/router-server-internal/src/versioned_router/index.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/index.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/index.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/mocks.ts b/src/core/packages/http/router-server-internal/src/versioned_router/mocks.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/mocks.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/mocks.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/route_version_utils.test.ts b/src/core/packages/http/router-server-internal/src/versioned_router/route_version_utils.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/route_version_utils.test.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/route_version_utils.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/route_version_utils.ts b/src/core/packages/http/router-server-internal/src/versioned_router/route_version_utils.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/route_version_utils.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/route_version_utils.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/types.ts b/src/core/packages/http/router-server-internal/src/versioned_router/types.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/types.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/types.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/util.test.ts b/src/core/packages/http/router-server-internal/src/versioned_router/util.test.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/util.test.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/util.test.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/util.ts b/src/core/packages/http/router-server-internal/src/versioned_router/util.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/util.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/util.ts diff --git a/packages/core/http/core-http-router-server-internal/src/versioned_router/validate.ts b/src/core/packages/http/router-server-internal/src/versioned_router/validate.ts similarity index 100% rename from packages/core/http/core-http-router-server-internal/src/versioned_router/validate.ts rename to src/core/packages/http/router-server-internal/src/versioned_router/validate.ts diff --git a/packages/core/http/core-http-router-server-internal/tsconfig.json b/src/core/packages/http/router-server-internal/tsconfig.json similarity index 90% rename from packages/core/http/core-http-router-server-internal/tsconfig.json rename to src/core/packages/http/router-server-internal/tsconfig.json index 5224fd5db16b5..7887583e6e462 100644 --- a/packages/core/http/core-http-router-server-internal/tsconfig.json +++ b/src/core/packages/http/router-server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 66d894332a0e1..6f419bcd86df8 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -404,8 +404,8 @@ "@kbn/core-http-resources-server-internal/*": ["src/core/packages/http/resources-server-internal/*"], "@kbn/core-http-resources-server-mocks": ["packages/core/http/core-http-resources-server-mocks"], "@kbn/core-http-resources-server-mocks/*": ["packages/core/http/core-http-resources-server-mocks/*"], - "@kbn/core-http-router-server-internal": ["packages/core/http/core-http-router-server-internal"], - "@kbn/core-http-router-server-internal/*": ["packages/core/http/core-http-router-server-internal/*"], + "@kbn/core-http-router-server-internal": ["src/core/packages/http/router-server-internal"], + "@kbn/core-http-router-server-internal/*": ["src/core/packages/http/router-server-internal/*"], "@kbn/core-http-router-server-mocks": ["packages/core/http/core-http-router-server-mocks"], "@kbn/core-http-router-server-mocks/*": ["packages/core/http/core-http-router-server-mocks/*"], "@kbn/core-http-server": ["packages/core/http/core-http-server"], diff --git a/yarn.lock b/yarn.lock index 10e5c56c70ddb..5af14c451dc69 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4621,7 +4621,7 @@ version "0.0.0" uid "" -"@kbn/core-http-router-server-internal@link:packages/core/http/core-http-router-server-internal": +"@kbn/core-http-router-server-internal@link:src/core/packages/http/router-server-internal": version "0.0.0" uid "" From 7c27eb7c8e8eab78067efc714b3a1e590f8d535a Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:42:18 +0100 Subject: [PATCH 055/167] Relocating module `@kbn/core-http-server` --- .github/CODEOWNERS | 2 +- docs/developer/architecture/core/http-service.asciidoc | 2 +- .../architecture/core/patterns-scoped-services.asciidoc | 4 ++-- package.json | 2 +- .../core/packages/http/server}/README.md | 0 .../core/packages/http/server}/index.ts | 0 .../core/packages/http/server}/jest.config.js | 4 ++-- .../core/packages/http/server}/kibana.jsonc | 0 .../core/packages/http/server}/package.json | 0 .../core/packages/http/server}/src/auth_headers.ts | 0 .../core/packages/http/server}/src/auth_state.ts | 0 .../core/packages/http/server}/src/base_path.ts | 0 .../core/packages/http/server}/src/csp.ts | 0 .../core/packages/http/server}/src/elu_monitor.ts | 0 .../core/packages/http/server}/src/external_url.ts | 0 .../core/packages/http/server}/src/http_contract.ts | 0 .../core/packages/http/server}/src/lifecycle/auth.ts | 0 .../core/packages/http/server}/src/lifecycle/index.ts | 0 .../core/packages/http/server}/src/lifecycle/on_post_auth.ts | 0 .../core/packages/http/server}/src/lifecycle/on_pre_auth.ts | 0 .../packages/http/server}/src/lifecycle/on_pre_response.ts | 0 .../packages/http/server}/src/lifecycle/on_pre_routing.ts | 0 .../packages/http/server}/src/router/context_container.ts | 0 .../core/packages/http/server}/src/router/context_provider.ts | 0 .../core/packages/http/server}/src/router/headers.ts | 0 .../core/packages/http/server}/src/router/index.ts | 0 .../core/packages/http/server}/src/router/raw_request.ts | 0 .../core/packages/http/server}/src/router/request.ts | 0 .../core/packages/http/server}/src/router/request_handler.ts | 0 .../http/server}/src/router/request_handler_context.ts | 0 .../core/packages/http/server}/src/router/response.test.ts | 0 .../core/packages/http/server}/src/router/response.ts | 0 .../core/packages/http/server}/src/router/response_factory.ts | 0 .../core/packages/http/server}/src/router/route.ts | 0 .../core/packages/http/server}/src/router/route_validator.ts | 0 .../core/packages/http/server}/src/router/router.ts | 0 .../core/packages/http/server}/src/router/socket.ts | 0 .../core/packages/http/server}/src/router/utils.test.ts | 0 .../core/packages/http/server}/src/router/utils.ts | 0 .../core/packages/http/server}/src/session_storage.ts | 0 .../core/packages/http/server}/src/static_assets.ts | 0 .../core/packages/http/server}/src/versioning/README.md | 0 .../core/packages/http/server}/src/versioning/index.ts | 0 .../core/packages/http/server}/src/versioning/types.ts | 0 .../core/packages/http/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 47 files changed, 11 insertions(+), 11 deletions(-) rename {packages/core/http/core-http-server => src/core/packages/http/server}/README.md (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/index.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/jest.config.js (85%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/kibana.jsonc (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/package.json (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/auth_headers.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/auth_state.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/base_path.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/csp.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/elu_monitor.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/external_url.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/http_contract.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/lifecycle/auth.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/lifecycle/index.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/lifecycle/on_post_auth.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/lifecycle/on_pre_auth.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/lifecycle/on_pre_response.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/lifecycle/on_pre_routing.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/context_container.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/context_provider.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/headers.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/index.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/raw_request.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/request.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/request_handler.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/request_handler_context.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/response.test.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/response.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/response_factory.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/route.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/route_validator.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/router.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/socket.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/utils.test.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/router/utils.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/session_storage.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/static_assets.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/versioning/README.md (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/versioning/index.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/src/versioning/types.ts (100%) rename {packages/core/http/core-http-server => src/core/packages/http/server}/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b9c8a33063e19..f1121ac064576 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -84,7 +84,6 @@ packages/core/http/core-http-browser-mocks @elastic/kibana-core packages/core/http/core-http-context-server-mocks @elastic/kibana-core packages/core/http/core-http-resources-server-mocks @elastic/kibana-core packages/core/http/core-http-router-server-mocks @elastic/kibana-core -packages/core/http/core-http-server @elastic/kibana-core packages/core/http/core-http-server-internal @elastic/kibana-core packages/core/http/core-http-server-mocks @elastic/kibana-core packages/core/http/core-http-server-utils @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/http/request-handler-context-server-internal @elastic/kibana-c src/core/packages/http/resources-server @elastic/kibana-core src/core/packages/http/resources-server-internal @elastic/kibana-core src/core/packages/http/router-server-internal @elastic/kibana-core +src/core/packages/http/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/docs/developer/architecture/core/http-service.asciidoc b/docs/developer/architecture/core/http-service.asciidoc index 3c8181160310b..b51ed9749b50d 100644 --- a/docs/developer/architecture/core/http-service.asciidoc +++ b/docs/developer/architecture/core/http-service.asciidoc @@ -12,7 +12,7 @@ The service allows plugins to: * to execute custom logic on an incoming request or server response. * implement custom authentication and authorization strategy. -Refer to {kib-repo}/blob/8.9/packages/core/http/core-http-server/src/http_contract.ts[HTTP service contract types]. +Refer to {kib-repo}/blob/8.9/src/core/packages/http/server/src/http_contract.ts[HTTP service contract types]. [source,typescript] ---- diff --git a/docs/developer/architecture/core/patterns-scoped-services.asciidoc b/docs/developer/architecture/core/patterns-scoped-services.asciidoc index 47cbd4cd1d4a6..94ea598850b84 100644 --- a/docs/developer/architecture/core/patterns-scoped-services.asciidoc +++ b/docs/developer/architecture/core/patterns-scoped-services.asciidoc @@ -7,7 +7,7 @@ should perform a check whether an end-user has access to the data. The Kibana Platform introduced a handler interface on the server-side to perform that association internally. Core services, that require impersonation with an incoming request, are exposed via `context` argument of -{kib-repo}/blob/8.9/packages/core/http/core-http-server/src/router/request_handler.ts[the request handler interface]. +{kib-repo}/blob/8.9/src/core/packages/http/server/src/router/request_handler.ts[the request handler interface]. [source,js] ---- @@ -16,7 +16,7 @@ async function handler(context, req, res) { } ---- -The {kib-repo}/blob/8.9/packages/core/http/core-http-server/src/router/request_handler.ts[request handler context] exposes the following scoped *core* services: +The {kib-repo}/blob/8.9/src/core/packages/http/server/src/router/request_handler.ts[request handler context] exposes the following scoped *core* services: * {kib-repo}/blob/8.9/packages/core/saved-objects/core-saved-objects-api-server/src/saved_objects_client.ts[`context.savedObjects.client`] * {kib-repo}/blob/8.9/src/core/packages/elasticsearch/server/src/client/scoped_cluster_client.ts[`context.elasticsearch.client`] diff --git a/package.json b/package.json index 5ebf2d3aaf69e..2f908c3a30378 100644 --- a/package.json +++ b/package.json @@ -310,7 +310,7 @@ "@kbn/core-http-resources-server": "link:src/core/packages/http/resources-server", "@kbn/core-http-resources-server-internal": "link:src/core/packages/http/resources-server-internal", "@kbn/core-http-router-server-internal": "link:src/core/packages/http/router-server-internal", - "@kbn/core-http-server": "link:packages/core/http/core-http-server", + "@kbn/core-http-server": "link:src/core/packages/http/server", "@kbn/core-http-server-internal": "link:packages/core/http/core-http-server-internal", "@kbn/core-http-server-utils": "link:packages/core/http/core-http-server-utils", "@kbn/core-i18n-browser": "link:packages/core/i18n/core-i18n-browser", diff --git a/packages/core/http/core-http-server/README.md b/src/core/packages/http/server/README.md similarity index 100% rename from packages/core/http/core-http-server/README.md rename to src/core/packages/http/server/README.md diff --git a/packages/core/http/core-http-server/index.ts b/src/core/packages/http/server/index.ts similarity index 100% rename from packages/core/http/core-http-server/index.ts rename to src/core/packages/http/server/index.ts diff --git a/packages/core/http/core-http-server/jest.config.js b/src/core/packages/http/server/jest.config.js similarity index 85% rename from packages/core/http/core-http-server/jest.config.js rename to src/core/packages/http/server/jest.config.js index 3d9c0920e2663..9e7d88447e6ef 100644 --- a/packages/core/http/core-http-server/jest.config.js +++ b/src/core/packages/http/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/http/core-http-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/http/server'], }; diff --git a/packages/core/http/core-http-server/kibana.jsonc b/src/core/packages/http/server/kibana.jsonc similarity index 100% rename from packages/core/http/core-http-server/kibana.jsonc rename to src/core/packages/http/server/kibana.jsonc diff --git a/packages/core/http/core-http-server/package.json b/src/core/packages/http/server/package.json similarity index 100% rename from packages/core/http/core-http-server/package.json rename to src/core/packages/http/server/package.json diff --git a/packages/core/http/core-http-server/src/auth_headers.ts b/src/core/packages/http/server/src/auth_headers.ts similarity index 100% rename from packages/core/http/core-http-server/src/auth_headers.ts rename to src/core/packages/http/server/src/auth_headers.ts diff --git a/packages/core/http/core-http-server/src/auth_state.ts b/src/core/packages/http/server/src/auth_state.ts similarity index 100% rename from packages/core/http/core-http-server/src/auth_state.ts rename to src/core/packages/http/server/src/auth_state.ts diff --git a/packages/core/http/core-http-server/src/base_path.ts b/src/core/packages/http/server/src/base_path.ts similarity index 100% rename from packages/core/http/core-http-server/src/base_path.ts rename to src/core/packages/http/server/src/base_path.ts diff --git a/packages/core/http/core-http-server/src/csp.ts b/src/core/packages/http/server/src/csp.ts similarity index 100% rename from packages/core/http/core-http-server/src/csp.ts rename to src/core/packages/http/server/src/csp.ts diff --git a/packages/core/http/core-http-server/src/elu_monitor.ts b/src/core/packages/http/server/src/elu_monitor.ts similarity index 100% rename from packages/core/http/core-http-server/src/elu_monitor.ts rename to src/core/packages/http/server/src/elu_monitor.ts diff --git a/packages/core/http/core-http-server/src/external_url.ts b/src/core/packages/http/server/src/external_url.ts similarity index 100% rename from packages/core/http/core-http-server/src/external_url.ts rename to src/core/packages/http/server/src/external_url.ts diff --git a/packages/core/http/core-http-server/src/http_contract.ts b/src/core/packages/http/server/src/http_contract.ts similarity index 100% rename from packages/core/http/core-http-server/src/http_contract.ts rename to src/core/packages/http/server/src/http_contract.ts diff --git a/packages/core/http/core-http-server/src/lifecycle/auth.ts b/src/core/packages/http/server/src/lifecycle/auth.ts similarity index 100% rename from packages/core/http/core-http-server/src/lifecycle/auth.ts rename to src/core/packages/http/server/src/lifecycle/auth.ts diff --git a/packages/core/http/core-http-server/src/lifecycle/index.ts b/src/core/packages/http/server/src/lifecycle/index.ts similarity index 100% rename from packages/core/http/core-http-server/src/lifecycle/index.ts rename to src/core/packages/http/server/src/lifecycle/index.ts diff --git a/packages/core/http/core-http-server/src/lifecycle/on_post_auth.ts b/src/core/packages/http/server/src/lifecycle/on_post_auth.ts similarity index 100% rename from packages/core/http/core-http-server/src/lifecycle/on_post_auth.ts rename to src/core/packages/http/server/src/lifecycle/on_post_auth.ts diff --git a/packages/core/http/core-http-server/src/lifecycle/on_pre_auth.ts b/src/core/packages/http/server/src/lifecycle/on_pre_auth.ts similarity index 100% rename from packages/core/http/core-http-server/src/lifecycle/on_pre_auth.ts rename to src/core/packages/http/server/src/lifecycle/on_pre_auth.ts diff --git a/packages/core/http/core-http-server/src/lifecycle/on_pre_response.ts b/src/core/packages/http/server/src/lifecycle/on_pre_response.ts similarity index 100% rename from packages/core/http/core-http-server/src/lifecycle/on_pre_response.ts rename to src/core/packages/http/server/src/lifecycle/on_pre_response.ts diff --git a/packages/core/http/core-http-server/src/lifecycle/on_pre_routing.ts b/src/core/packages/http/server/src/lifecycle/on_pre_routing.ts similarity index 100% rename from packages/core/http/core-http-server/src/lifecycle/on_pre_routing.ts rename to src/core/packages/http/server/src/lifecycle/on_pre_routing.ts diff --git a/packages/core/http/core-http-server/src/router/context_container.ts b/src/core/packages/http/server/src/router/context_container.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/context_container.ts rename to src/core/packages/http/server/src/router/context_container.ts diff --git a/packages/core/http/core-http-server/src/router/context_provider.ts b/src/core/packages/http/server/src/router/context_provider.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/context_provider.ts rename to src/core/packages/http/server/src/router/context_provider.ts diff --git a/packages/core/http/core-http-server/src/router/headers.ts b/src/core/packages/http/server/src/router/headers.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/headers.ts rename to src/core/packages/http/server/src/router/headers.ts diff --git a/packages/core/http/core-http-server/src/router/index.ts b/src/core/packages/http/server/src/router/index.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/index.ts rename to src/core/packages/http/server/src/router/index.ts diff --git a/packages/core/http/core-http-server/src/router/raw_request.ts b/src/core/packages/http/server/src/router/raw_request.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/raw_request.ts rename to src/core/packages/http/server/src/router/raw_request.ts diff --git a/packages/core/http/core-http-server/src/router/request.ts b/src/core/packages/http/server/src/router/request.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/request.ts rename to src/core/packages/http/server/src/router/request.ts diff --git a/packages/core/http/core-http-server/src/router/request_handler.ts b/src/core/packages/http/server/src/router/request_handler.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/request_handler.ts rename to src/core/packages/http/server/src/router/request_handler.ts diff --git a/packages/core/http/core-http-server/src/router/request_handler_context.ts b/src/core/packages/http/server/src/router/request_handler_context.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/request_handler_context.ts rename to src/core/packages/http/server/src/router/request_handler_context.ts diff --git a/packages/core/http/core-http-server/src/router/response.test.ts b/src/core/packages/http/server/src/router/response.test.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/response.test.ts rename to src/core/packages/http/server/src/router/response.test.ts diff --git a/packages/core/http/core-http-server/src/router/response.ts b/src/core/packages/http/server/src/router/response.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/response.ts rename to src/core/packages/http/server/src/router/response.ts diff --git a/packages/core/http/core-http-server/src/router/response_factory.ts b/src/core/packages/http/server/src/router/response_factory.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/response_factory.ts rename to src/core/packages/http/server/src/router/response_factory.ts diff --git a/packages/core/http/core-http-server/src/router/route.ts b/src/core/packages/http/server/src/router/route.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/route.ts rename to src/core/packages/http/server/src/router/route.ts diff --git a/packages/core/http/core-http-server/src/router/route_validator.ts b/src/core/packages/http/server/src/router/route_validator.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/route_validator.ts rename to src/core/packages/http/server/src/router/route_validator.ts diff --git a/packages/core/http/core-http-server/src/router/router.ts b/src/core/packages/http/server/src/router/router.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/router.ts rename to src/core/packages/http/server/src/router/router.ts diff --git a/packages/core/http/core-http-server/src/router/socket.ts b/src/core/packages/http/server/src/router/socket.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/socket.ts rename to src/core/packages/http/server/src/router/socket.ts diff --git a/packages/core/http/core-http-server/src/router/utils.test.ts b/src/core/packages/http/server/src/router/utils.test.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/utils.test.ts rename to src/core/packages/http/server/src/router/utils.test.ts diff --git a/packages/core/http/core-http-server/src/router/utils.ts b/src/core/packages/http/server/src/router/utils.ts similarity index 100% rename from packages/core/http/core-http-server/src/router/utils.ts rename to src/core/packages/http/server/src/router/utils.ts diff --git a/packages/core/http/core-http-server/src/session_storage.ts b/src/core/packages/http/server/src/session_storage.ts similarity index 100% rename from packages/core/http/core-http-server/src/session_storage.ts rename to src/core/packages/http/server/src/session_storage.ts diff --git a/packages/core/http/core-http-server/src/static_assets.ts b/src/core/packages/http/server/src/static_assets.ts similarity index 100% rename from packages/core/http/core-http-server/src/static_assets.ts rename to src/core/packages/http/server/src/static_assets.ts diff --git a/packages/core/http/core-http-server/src/versioning/README.md b/src/core/packages/http/server/src/versioning/README.md similarity index 100% rename from packages/core/http/core-http-server/src/versioning/README.md rename to src/core/packages/http/server/src/versioning/README.md diff --git a/packages/core/http/core-http-server/src/versioning/index.ts b/src/core/packages/http/server/src/versioning/index.ts similarity index 100% rename from packages/core/http/core-http-server/src/versioning/index.ts rename to src/core/packages/http/server/src/versioning/index.ts diff --git a/packages/core/http/core-http-server/src/versioning/types.ts b/src/core/packages/http/server/src/versioning/types.ts similarity index 100% rename from packages/core/http/core-http-server/src/versioning/types.ts rename to src/core/packages/http/server/src/versioning/types.ts diff --git a/packages/core/http/core-http-server/tsconfig.json b/src/core/packages/http/server/tsconfig.json similarity index 87% rename from packages/core/http/core-http-server/tsconfig.json rename to src/core/packages/http/server/tsconfig.json index 50a0ce973eb4e..964aafe1a080e 100644 --- a/packages/core/http/core-http-server/tsconfig.json +++ b/src/core/packages/http/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 6f419bcd86df8..eb2734835e6d4 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -408,8 +408,8 @@ "@kbn/core-http-router-server-internal/*": ["src/core/packages/http/router-server-internal/*"], "@kbn/core-http-router-server-mocks": ["packages/core/http/core-http-router-server-mocks"], "@kbn/core-http-router-server-mocks/*": ["packages/core/http/core-http-router-server-mocks/*"], - "@kbn/core-http-server": ["packages/core/http/core-http-server"], - "@kbn/core-http-server/*": ["packages/core/http/core-http-server/*"], + "@kbn/core-http-server": ["src/core/packages/http/server"], + "@kbn/core-http-server/*": ["src/core/packages/http/server/*"], "@kbn/core-http-server-internal": ["packages/core/http/core-http-server-internal"], "@kbn/core-http-server-internal/*": ["packages/core/http/core-http-server-internal/*"], "@kbn/core-http-server-mocks": ["packages/core/http/core-http-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 5af14c451dc69..3178a5e32ba7c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4641,7 +4641,7 @@ version "0.0.0" uid "" -"@kbn/core-http-server@link:packages/core/http/core-http-server": +"@kbn/core-http-server@link:src/core/packages/http/server": version "0.0.0" uid "" From 64b9856e15a76076e296870bca91a4f0d051449e Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:43:11 +0100 Subject: [PATCH 056/167] Relocating module `@kbn/core-http-server-internal` --- .github/CODEOWNERS | 4 ++-- package.json | 2 +- .../core/packages/http/server-internal}/README.md | 0 .../core/packages/http/server-internal}/index.ts | 0 .../packages/http/server-internal}/jest.config.js | 4 ++-- .../packages/http/server-internal}/kibana.jsonc | 0 .../packages/http/server-internal}/package.json | 0 .../__fixtures/static/compression_available.json | 0 .../__fixtures/static/compression_available.json.gz | Bin .../src/__fixtures/static/some_json.json | 0 .../src/__snapshots__/http_config.test.ts.snap | 0 .../src/__snapshots__/http_service.test.ts.snap | 0 .../https_redirect_server.test.ts.snap | 0 .../src/auth_headers_storage.test.ts | 0 .../server-internal}/src/auth_headers_storage.ts | 0 .../http/server-internal}/src/auth_state_storage.ts | 0 .../server-internal}/src/base_path_service.test.ts | 0 .../http/server-internal}/src/base_path_service.ts | 0 .../src/cdn_config/cdn_config.test.ts | 0 .../server-internal}/src/cdn_config/cdn_config.ts | 0 .../http/server-internal}/src/cdn_config/index.ts | 0 .../server-internal}/src/cookie_session_storage.ts | 0 .../http/server-internal}/src/csp/config.test.ts | 0 .../http/server-internal}/src/csp/config.ts | 0 .../server-internal}/src/csp/csp_config.test.ts | 0 .../http/server-internal}/src/csp/csp_config.ts | 0 .../server-internal}/src/csp/csp_directives.test.ts | 0 .../http/server-internal}/src/csp/csp_directives.ts | 0 .../packages/http/server-internal}/src/csp/index.ts | 0 .../src/external_url/config.test.ts | 0 .../server-internal}/src/external_url/config.ts | 0 .../src/external_url/external_url_config.ts | 0 .../http/server-internal}/src/external_url/index.ts | 0 .../http/server-internal}/src/http_config.test.ts | 0 .../http/server-internal}/src/http_config.ts | 0 .../server-internal}/src/http_server.test.mocks.ts | 0 .../http/server-internal}/src/http_server.test.ts | 0 .../http/server-internal}/src/http_server.ts | 0 .../server-internal}/src/http_service.test.mocks.ts | 0 .../http/server-internal}/src/http_service.test.ts | 0 .../http/server-internal}/src/http_service.ts | 0 .../src/https_redirect_server.test.ts | 0 .../server-internal}/src/https_redirect_server.ts | 0 .../http/server-internal}/src/lifecycle/auth.ts | 0 .../server-internal}/src/lifecycle/on_post_auth.ts | 0 .../server-internal}/src/lifecycle/on_pre_auth.ts | 0 .../src/lifecycle/on_pre_response.ts | 0 .../src/lifecycle/on_pre_routing.ts | 0 .../server-internal}/src/lifecycle_handlers.test.ts | 0 .../http/server-internal}/src/lifecycle_handlers.ts | 0 .../src/logging/get_payload_size.test.ts | 0 .../src/logging/get_payload_size.ts | 0 .../src/logging/get_response_log.test.ts | 0 .../src/logging/get_response_log.ts | 0 .../http/server-internal}/src/logging/index.ts | 0 .../src/permissions_policy/config.ts | 0 .../src/permissions_policy/index.ts | 0 .../src/register_lifecycle_handlers.test.ts | 0 .../src/register_lifecycle_handlers.ts | 0 .../src/security_response_headers_config.test.ts | 0 .../src/security_response_headers_config.ts | 0 .../server-internal}/src/static_assets/index.ts | 0 .../src/static_assets/static_assets.test.ts | 0 .../src/static_assets/static_assets.ts | 0 .../http/server-internal}/src/static_assets/util.ts | 0 .../packages/http/server-internal}/src/types.ts | 0 .../packages/http/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 69 files changed, 9 insertions(+), 9 deletions(-) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/README.md (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/index.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/jest.config.js (84%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/kibana.jsonc (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/package.json (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/__fixtures/static/compression_available.json (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/__fixtures/static/compression_available.json.gz (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/__fixtures/static/some_json.json (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/__snapshots__/http_config.test.ts.snap (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/__snapshots__/http_service.test.ts.snap (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/__snapshots__/https_redirect_server.test.ts.snap (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/auth_headers_storage.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/auth_headers_storage.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/auth_state_storage.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/base_path_service.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/base_path_service.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/cdn_config/cdn_config.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/cdn_config/cdn_config.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/cdn_config/index.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/cookie_session_storage.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/csp/config.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/csp/config.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/csp/csp_config.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/csp/csp_config.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/csp/csp_directives.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/csp/csp_directives.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/csp/index.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/external_url/config.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/external_url/config.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/external_url/external_url_config.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/external_url/index.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/http_config.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/http_config.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/http_server.test.mocks.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/http_server.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/http_server.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/http_service.test.mocks.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/http_service.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/http_service.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/https_redirect_server.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/https_redirect_server.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/lifecycle/auth.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/lifecycle/on_post_auth.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/lifecycle/on_pre_auth.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/lifecycle/on_pre_response.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/lifecycle/on_pre_routing.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/lifecycle_handlers.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/lifecycle_handlers.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/logging/get_payload_size.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/logging/get_payload_size.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/logging/get_response_log.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/logging/get_response_log.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/logging/index.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/permissions_policy/config.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/permissions_policy/index.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/register_lifecycle_handlers.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/register_lifecycle_handlers.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/security_response_headers_config.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/security_response_headers_config.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/static_assets/index.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/static_assets/static_assets.test.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/static_assets/static_assets.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/static_assets/util.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/src/types.ts (100%) rename {packages/core/http/core-http-server-internal => src/core/packages/http/server-internal}/tsconfig.json (95%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f1121ac064576..28c07ecba1118 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -84,7 +84,6 @@ packages/core/http/core-http-browser-mocks @elastic/kibana-core packages/core/http/core-http-context-server-mocks @elastic/kibana-core packages/core/http/core-http-resources-server-mocks @elastic/kibana-core packages/core/http/core-http-router-server-mocks @elastic/kibana-core -packages/core/http/core-http-server-internal @elastic/kibana-core packages/core/http/core-http-server-mocks @elastic/kibana-core packages/core/http/core-http-server-utils @elastic/kibana-core packages/core/i18n/core-i18n-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/http/resources-server @elastic/kibana-core src/core/packages/http/resources-server-internal @elastic/kibana-core src/core/packages/http/router-server-internal @elastic/kibana-core src/core/packages/http/server @elastic/kibana-core +src/core/packages/http/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management @@ -1918,7 +1918,7 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi /x-pack/test_serverless/**/test_suites/search/platform_security/ @elastic/kibana-security /x-pack/test_serverless/**/test_suites/security/platform_security/ @elastic/kibana-security /x-pack/test_serverless/**/test_suites/observability/platform_security/ @elastic/kibana-security -/packages/core/http/core-http-server-internal/src/cdn_config/ @elastic/kibana-security @elastic/kibana-core +/src/core/packages/http/server-internal/src/cdn_config/ @elastic/kibana-security @elastic/kibana-core #CC# /x-pack/plugins/security/ @elastic/kibana-security # Response Ops team diff --git a/package.json b/package.json index 2f908c3a30378..e5236e951ccb5 100644 --- a/package.json +++ b/package.json @@ -311,7 +311,7 @@ "@kbn/core-http-resources-server-internal": "link:src/core/packages/http/resources-server-internal", "@kbn/core-http-router-server-internal": "link:src/core/packages/http/router-server-internal", "@kbn/core-http-server": "link:src/core/packages/http/server", - "@kbn/core-http-server-internal": "link:packages/core/http/core-http-server-internal", + "@kbn/core-http-server-internal": "link:src/core/packages/http/server-internal", "@kbn/core-http-server-utils": "link:packages/core/http/core-http-server-utils", "@kbn/core-i18n-browser": "link:packages/core/i18n/core-i18n-browser", "@kbn/core-i18n-browser-internal": "link:packages/core/i18n/core-i18n-browser-internal", diff --git a/packages/core/http/core-http-server-internal/README.md b/src/core/packages/http/server-internal/README.md similarity index 100% rename from packages/core/http/core-http-server-internal/README.md rename to src/core/packages/http/server-internal/README.md diff --git a/packages/core/http/core-http-server-internal/index.ts b/src/core/packages/http/server-internal/index.ts similarity index 100% rename from packages/core/http/core-http-server-internal/index.ts rename to src/core/packages/http/server-internal/index.ts diff --git a/packages/core/http/core-http-server-internal/jest.config.js b/src/core/packages/http/server-internal/jest.config.js similarity index 84% rename from packages/core/http/core-http-server-internal/jest.config.js rename to src/core/packages/http/server-internal/jest.config.js index f53fe944b48e6..de8efc4859bcf 100644 --- a/packages/core/http/core-http-server-internal/jest.config.js +++ b/src/core/packages/http/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/http/core-http-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/http/server-internal'], }; diff --git a/packages/core/http/core-http-server-internal/kibana.jsonc b/src/core/packages/http/server-internal/kibana.jsonc similarity index 100% rename from packages/core/http/core-http-server-internal/kibana.jsonc rename to src/core/packages/http/server-internal/kibana.jsonc diff --git a/packages/core/http/core-http-server-internal/package.json b/src/core/packages/http/server-internal/package.json similarity index 100% rename from packages/core/http/core-http-server-internal/package.json rename to src/core/packages/http/server-internal/package.json diff --git a/packages/core/http/core-http-server-internal/src/__fixtures/static/compression_available.json b/src/core/packages/http/server-internal/src/__fixtures/static/compression_available.json similarity index 100% rename from packages/core/http/core-http-server-internal/src/__fixtures/static/compression_available.json rename to src/core/packages/http/server-internal/src/__fixtures/static/compression_available.json diff --git a/packages/core/http/core-http-server-internal/src/__fixtures/static/compression_available.json.gz b/src/core/packages/http/server-internal/src/__fixtures/static/compression_available.json.gz similarity index 100% rename from packages/core/http/core-http-server-internal/src/__fixtures/static/compression_available.json.gz rename to src/core/packages/http/server-internal/src/__fixtures/static/compression_available.json.gz diff --git a/packages/core/http/core-http-server-internal/src/__fixtures/static/some_json.json b/src/core/packages/http/server-internal/src/__fixtures/static/some_json.json similarity index 100% rename from packages/core/http/core-http-server-internal/src/__fixtures/static/some_json.json rename to src/core/packages/http/server-internal/src/__fixtures/static/some_json.json diff --git a/packages/core/http/core-http-server-internal/src/__snapshots__/http_config.test.ts.snap b/src/core/packages/http/server-internal/src/__snapshots__/http_config.test.ts.snap similarity index 100% rename from packages/core/http/core-http-server-internal/src/__snapshots__/http_config.test.ts.snap rename to src/core/packages/http/server-internal/src/__snapshots__/http_config.test.ts.snap diff --git a/packages/core/http/core-http-server-internal/src/__snapshots__/http_service.test.ts.snap b/src/core/packages/http/server-internal/src/__snapshots__/http_service.test.ts.snap similarity index 100% rename from packages/core/http/core-http-server-internal/src/__snapshots__/http_service.test.ts.snap rename to src/core/packages/http/server-internal/src/__snapshots__/http_service.test.ts.snap diff --git a/packages/core/http/core-http-server-internal/src/__snapshots__/https_redirect_server.test.ts.snap b/src/core/packages/http/server-internal/src/__snapshots__/https_redirect_server.test.ts.snap similarity index 100% rename from packages/core/http/core-http-server-internal/src/__snapshots__/https_redirect_server.test.ts.snap rename to src/core/packages/http/server-internal/src/__snapshots__/https_redirect_server.test.ts.snap diff --git a/packages/core/http/core-http-server-internal/src/auth_headers_storage.test.ts b/src/core/packages/http/server-internal/src/auth_headers_storage.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/auth_headers_storage.test.ts rename to src/core/packages/http/server-internal/src/auth_headers_storage.test.ts diff --git a/packages/core/http/core-http-server-internal/src/auth_headers_storage.ts b/src/core/packages/http/server-internal/src/auth_headers_storage.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/auth_headers_storage.ts rename to src/core/packages/http/server-internal/src/auth_headers_storage.ts diff --git a/packages/core/http/core-http-server-internal/src/auth_state_storage.ts b/src/core/packages/http/server-internal/src/auth_state_storage.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/auth_state_storage.ts rename to src/core/packages/http/server-internal/src/auth_state_storage.ts diff --git a/packages/core/http/core-http-server-internal/src/base_path_service.test.ts b/src/core/packages/http/server-internal/src/base_path_service.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/base_path_service.test.ts rename to src/core/packages/http/server-internal/src/base_path_service.test.ts diff --git a/packages/core/http/core-http-server-internal/src/base_path_service.ts b/src/core/packages/http/server-internal/src/base_path_service.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/base_path_service.ts rename to src/core/packages/http/server-internal/src/base_path_service.ts diff --git a/packages/core/http/core-http-server-internal/src/cdn_config/cdn_config.test.ts b/src/core/packages/http/server-internal/src/cdn_config/cdn_config.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/cdn_config/cdn_config.test.ts rename to src/core/packages/http/server-internal/src/cdn_config/cdn_config.test.ts diff --git a/packages/core/http/core-http-server-internal/src/cdn_config/cdn_config.ts b/src/core/packages/http/server-internal/src/cdn_config/cdn_config.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/cdn_config/cdn_config.ts rename to src/core/packages/http/server-internal/src/cdn_config/cdn_config.ts diff --git a/packages/core/http/core-http-server-internal/src/cdn_config/index.ts b/src/core/packages/http/server-internal/src/cdn_config/index.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/cdn_config/index.ts rename to src/core/packages/http/server-internal/src/cdn_config/index.ts diff --git a/packages/core/http/core-http-server-internal/src/cookie_session_storage.ts b/src/core/packages/http/server-internal/src/cookie_session_storage.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/cookie_session_storage.ts rename to src/core/packages/http/server-internal/src/cookie_session_storage.ts diff --git a/packages/core/http/core-http-server-internal/src/csp/config.test.ts b/src/core/packages/http/server-internal/src/csp/config.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/csp/config.test.ts rename to src/core/packages/http/server-internal/src/csp/config.test.ts diff --git a/packages/core/http/core-http-server-internal/src/csp/config.ts b/src/core/packages/http/server-internal/src/csp/config.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/csp/config.ts rename to src/core/packages/http/server-internal/src/csp/config.ts diff --git a/packages/core/http/core-http-server-internal/src/csp/csp_config.test.ts b/src/core/packages/http/server-internal/src/csp/csp_config.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/csp/csp_config.test.ts rename to src/core/packages/http/server-internal/src/csp/csp_config.test.ts diff --git a/packages/core/http/core-http-server-internal/src/csp/csp_config.ts b/src/core/packages/http/server-internal/src/csp/csp_config.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/csp/csp_config.ts rename to src/core/packages/http/server-internal/src/csp/csp_config.ts diff --git a/packages/core/http/core-http-server-internal/src/csp/csp_directives.test.ts b/src/core/packages/http/server-internal/src/csp/csp_directives.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/csp/csp_directives.test.ts rename to src/core/packages/http/server-internal/src/csp/csp_directives.test.ts diff --git a/packages/core/http/core-http-server-internal/src/csp/csp_directives.ts b/src/core/packages/http/server-internal/src/csp/csp_directives.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/csp/csp_directives.ts rename to src/core/packages/http/server-internal/src/csp/csp_directives.ts diff --git a/packages/core/http/core-http-server-internal/src/csp/index.ts b/src/core/packages/http/server-internal/src/csp/index.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/csp/index.ts rename to src/core/packages/http/server-internal/src/csp/index.ts diff --git a/packages/core/http/core-http-server-internal/src/external_url/config.test.ts b/src/core/packages/http/server-internal/src/external_url/config.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/external_url/config.test.ts rename to src/core/packages/http/server-internal/src/external_url/config.test.ts diff --git a/packages/core/http/core-http-server-internal/src/external_url/config.ts b/src/core/packages/http/server-internal/src/external_url/config.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/external_url/config.ts rename to src/core/packages/http/server-internal/src/external_url/config.ts diff --git a/packages/core/http/core-http-server-internal/src/external_url/external_url_config.ts b/src/core/packages/http/server-internal/src/external_url/external_url_config.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/external_url/external_url_config.ts rename to src/core/packages/http/server-internal/src/external_url/external_url_config.ts diff --git a/packages/core/http/core-http-server-internal/src/external_url/index.ts b/src/core/packages/http/server-internal/src/external_url/index.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/external_url/index.ts rename to src/core/packages/http/server-internal/src/external_url/index.ts diff --git a/packages/core/http/core-http-server-internal/src/http_config.test.ts b/src/core/packages/http/server-internal/src/http_config.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/http_config.test.ts rename to src/core/packages/http/server-internal/src/http_config.test.ts diff --git a/packages/core/http/core-http-server-internal/src/http_config.ts b/src/core/packages/http/server-internal/src/http_config.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/http_config.ts rename to src/core/packages/http/server-internal/src/http_config.ts diff --git a/packages/core/http/core-http-server-internal/src/http_server.test.mocks.ts b/src/core/packages/http/server-internal/src/http_server.test.mocks.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/http_server.test.mocks.ts rename to src/core/packages/http/server-internal/src/http_server.test.mocks.ts diff --git a/packages/core/http/core-http-server-internal/src/http_server.test.ts b/src/core/packages/http/server-internal/src/http_server.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/http_server.test.ts rename to src/core/packages/http/server-internal/src/http_server.test.ts diff --git a/packages/core/http/core-http-server-internal/src/http_server.ts b/src/core/packages/http/server-internal/src/http_server.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/http_server.ts rename to src/core/packages/http/server-internal/src/http_server.ts diff --git a/packages/core/http/core-http-server-internal/src/http_service.test.mocks.ts b/src/core/packages/http/server-internal/src/http_service.test.mocks.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/http_service.test.mocks.ts rename to src/core/packages/http/server-internal/src/http_service.test.mocks.ts diff --git a/packages/core/http/core-http-server-internal/src/http_service.test.ts b/src/core/packages/http/server-internal/src/http_service.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/http_service.test.ts rename to src/core/packages/http/server-internal/src/http_service.test.ts diff --git a/packages/core/http/core-http-server-internal/src/http_service.ts b/src/core/packages/http/server-internal/src/http_service.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/http_service.ts rename to src/core/packages/http/server-internal/src/http_service.ts diff --git a/packages/core/http/core-http-server-internal/src/https_redirect_server.test.ts b/src/core/packages/http/server-internal/src/https_redirect_server.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/https_redirect_server.test.ts rename to src/core/packages/http/server-internal/src/https_redirect_server.test.ts diff --git a/packages/core/http/core-http-server-internal/src/https_redirect_server.ts b/src/core/packages/http/server-internal/src/https_redirect_server.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/https_redirect_server.ts rename to src/core/packages/http/server-internal/src/https_redirect_server.ts diff --git a/packages/core/http/core-http-server-internal/src/lifecycle/auth.ts b/src/core/packages/http/server-internal/src/lifecycle/auth.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/lifecycle/auth.ts rename to src/core/packages/http/server-internal/src/lifecycle/auth.ts diff --git a/packages/core/http/core-http-server-internal/src/lifecycle/on_post_auth.ts b/src/core/packages/http/server-internal/src/lifecycle/on_post_auth.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/lifecycle/on_post_auth.ts rename to src/core/packages/http/server-internal/src/lifecycle/on_post_auth.ts diff --git a/packages/core/http/core-http-server-internal/src/lifecycle/on_pre_auth.ts b/src/core/packages/http/server-internal/src/lifecycle/on_pre_auth.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/lifecycle/on_pre_auth.ts rename to src/core/packages/http/server-internal/src/lifecycle/on_pre_auth.ts diff --git a/packages/core/http/core-http-server-internal/src/lifecycle/on_pre_response.ts b/src/core/packages/http/server-internal/src/lifecycle/on_pre_response.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/lifecycle/on_pre_response.ts rename to src/core/packages/http/server-internal/src/lifecycle/on_pre_response.ts diff --git a/packages/core/http/core-http-server-internal/src/lifecycle/on_pre_routing.ts b/src/core/packages/http/server-internal/src/lifecycle/on_pre_routing.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/lifecycle/on_pre_routing.ts rename to src/core/packages/http/server-internal/src/lifecycle/on_pre_routing.ts diff --git a/packages/core/http/core-http-server-internal/src/lifecycle_handlers.test.ts b/src/core/packages/http/server-internal/src/lifecycle_handlers.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/lifecycle_handlers.test.ts rename to src/core/packages/http/server-internal/src/lifecycle_handlers.test.ts diff --git a/packages/core/http/core-http-server-internal/src/lifecycle_handlers.ts b/src/core/packages/http/server-internal/src/lifecycle_handlers.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/lifecycle_handlers.ts rename to src/core/packages/http/server-internal/src/lifecycle_handlers.ts diff --git a/packages/core/http/core-http-server-internal/src/logging/get_payload_size.test.ts b/src/core/packages/http/server-internal/src/logging/get_payload_size.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/logging/get_payload_size.test.ts rename to src/core/packages/http/server-internal/src/logging/get_payload_size.test.ts diff --git a/packages/core/http/core-http-server-internal/src/logging/get_payload_size.ts b/src/core/packages/http/server-internal/src/logging/get_payload_size.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/logging/get_payload_size.ts rename to src/core/packages/http/server-internal/src/logging/get_payload_size.ts diff --git a/packages/core/http/core-http-server-internal/src/logging/get_response_log.test.ts b/src/core/packages/http/server-internal/src/logging/get_response_log.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/logging/get_response_log.test.ts rename to src/core/packages/http/server-internal/src/logging/get_response_log.test.ts diff --git a/packages/core/http/core-http-server-internal/src/logging/get_response_log.ts b/src/core/packages/http/server-internal/src/logging/get_response_log.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/logging/get_response_log.ts rename to src/core/packages/http/server-internal/src/logging/get_response_log.ts diff --git a/packages/core/http/core-http-server-internal/src/logging/index.ts b/src/core/packages/http/server-internal/src/logging/index.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/logging/index.ts rename to src/core/packages/http/server-internal/src/logging/index.ts diff --git a/packages/core/http/core-http-server-internal/src/permissions_policy/config.ts b/src/core/packages/http/server-internal/src/permissions_policy/config.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/permissions_policy/config.ts rename to src/core/packages/http/server-internal/src/permissions_policy/config.ts diff --git a/packages/core/http/core-http-server-internal/src/permissions_policy/index.ts b/src/core/packages/http/server-internal/src/permissions_policy/index.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/permissions_policy/index.ts rename to src/core/packages/http/server-internal/src/permissions_policy/index.ts diff --git a/packages/core/http/core-http-server-internal/src/register_lifecycle_handlers.test.ts b/src/core/packages/http/server-internal/src/register_lifecycle_handlers.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/register_lifecycle_handlers.test.ts rename to src/core/packages/http/server-internal/src/register_lifecycle_handlers.test.ts diff --git a/packages/core/http/core-http-server-internal/src/register_lifecycle_handlers.ts b/src/core/packages/http/server-internal/src/register_lifecycle_handlers.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/register_lifecycle_handlers.ts rename to src/core/packages/http/server-internal/src/register_lifecycle_handlers.ts diff --git a/packages/core/http/core-http-server-internal/src/security_response_headers_config.test.ts b/src/core/packages/http/server-internal/src/security_response_headers_config.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/security_response_headers_config.test.ts rename to src/core/packages/http/server-internal/src/security_response_headers_config.test.ts diff --git a/packages/core/http/core-http-server-internal/src/security_response_headers_config.ts b/src/core/packages/http/server-internal/src/security_response_headers_config.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/security_response_headers_config.ts rename to src/core/packages/http/server-internal/src/security_response_headers_config.ts diff --git a/packages/core/http/core-http-server-internal/src/static_assets/index.ts b/src/core/packages/http/server-internal/src/static_assets/index.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/static_assets/index.ts rename to src/core/packages/http/server-internal/src/static_assets/index.ts diff --git a/packages/core/http/core-http-server-internal/src/static_assets/static_assets.test.ts b/src/core/packages/http/server-internal/src/static_assets/static_assets.test.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/static_assets/static_assets.test.ts rename to src/core/packages/http/server-internal/src/static_assets/static_assets.test.ts diff --git a/packages/core/http/core-http-server-internal/src/static_assets/static_assets.ts b/src/core/packages/http/server-internal/src/static_assets/static_assets.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/static_assets/static_assets.ts rename to src/core/packages/http/server-internal/src/static_assets/static_assets.ts diff --git a/packages/core/http/core-http-server-internal/src/static_assets/util.ts b/src/core/packages/http/server-internal/src/static_assets/util.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/static_assets/util.ts rename to src/core/packages/http/server-internal/src/static_assets/util.ts diff --git a/packages/core/http/core-http-server-internal/src/types.ts b/src/core/packages/http/server-internal/src/types.ts similarity index 100% rename from packages/core/http/core-http-server-internal/src/types.ts rename to src/core/packages/http/server-internal/src/types.ts diff --git a/packages/core/http/core-http-server-internal/tsconfig.json b/src/core/packages/http/server-internal/tsconfig.json similarity index 95% rename from packages/core/http/core-http-server-internal/tsconfig.json rename to src/core/packages/http/server-internal/tsconfig.json index 8e76d71f341da..d318d85bde77e 100644 --- a/packages/core/http/core-http-server-internal/tsconfig.json +++ b/src/core/packages/http/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index eb2734835e6d4..c58c63ed42cc4 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -410,8 +410,8 @@ "@kbn/core-http-router-server-mocks/*": ["packages/core/http/core-http-router-server-mocks/*"], "@kbn/core-http-server": ["src/core/packages/http/server"], "@kbn/core-http-server/*": ["src/core/packages/http/server/*"], - "@kbn/core-http-server-internal": ["packages/core/http/core-http-server-internal"], - "@kbn/core-http-server-internal/*": ["packages/core/http/core-http-server-internal/*"], + "@kbn/core-http-server-internal": ["src/core/packages/http/server-internal"], + "@kbn/core-http-server-internal/*": ["src/core/packages/http/server-internal/*"], "@kbn/core-http-server-mocks": ["packages/core/http/core-http-server-mocks"], "@kbn/core-http-server-mocks/*": ["packages/core/http/core-http-server-mocks/*"], "@kbn/core-http-server-utils": ["packages/core/http/core-http-server-utils"], diff --git a/yarn.lock b/yarn.lock index 3178a5e32ba7c..62daf28c1f4af 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4629,7 +4629,7 @@ version "0.0.0" uid "" -"@kbn/core-http-server-internal@link:packages/core/http/core-http-server-internal": +"@kbn/core-http-server-internal@link:src/core/packages/http/server-internal": version "0.0.0" uid "" From 82227b2504c35726efde0008d309d92582335a39 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:44:04 +0100 Subject: [PATCH 057/167] Relocating module `@kbn/core-http-server-utils` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/http/server-utils}/README.md | 0 .../core/packages/http/server-utils}/index.ts | 0 .../core/packages/http/server-utils}/jest.config.js | 4 ++-- .../core/packages/http/server-utils}/kibana.jsonc | 0 .../core/packages/http/server-utils}/package.json | 0 .../core/packages/http/server-utils}/src/request.ts | 0 .../core/packages/http/server-utils}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/http/core-http-server-utils => src/core/packages/http/server-utils}/README.md (100%) rename {packages/core/http/core-http-server-utils => src/core/packages/http/server-utils}/index.ts (100%) rename {packages/core/http/core-http-server-utils => src/core/packages/http/server-utils}/jest.config.js (85%) rename {packages/core/http/core-http-server-utils => src/core/packages/http/server-utils}/kibana.jsonc (100%) rename {packages/core/http/core-http-server-utils => src/core/packages/http/server-utils}/package.json (100%) rename {packages/core/http/core-http-server-utils => src/core/packages/http/server-utils}/src/request.ts (100%) rename {packages/core/http/core-http-server-utils => src/core/packages/http/server-utils}/tsconfig.json (84%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 28c07ecba1118..5df78fd7be72b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -85,7 +85,6 @@ packages/core/http/core-http-context-server-mocks @elastic/kibana-core packages/core/http/core-http-resources-server-mocks @elastic/kibana-core packages/core/http/core-http-router-server-mocks @elastic/kibana-core packages/core/http/core-http-server-mocks @elastic/kibana-core -packages/core/http/core-http-server-utils @elastic/kibana-core packages/core/i18n/core-i18n-browser @elastic/kibana-core packages/core/i18n/core-i18n-browser-internal @elastic/kibana-core packages/core/i18n/core-i18n-browser-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/http/resources-server-internal @elastic/kibana-core src/core/packages/http/router-server-internal @elastic/kibana-core src/core/packages/http/server @elastic/kibana-core src/core/packages/http/server-internal @elastic/kibana-core +src/core/packages/http/server-utils @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index e5236e951ccb5..587b1afd3ecb3 100644 --- a/package.json +++ b/package.json @@ -312,7 +312,7 @@ "@kbn/core-http-router-server-internal": "link:src/core/packages/http/router-server-internal", "@kbn/core-http-server": "link:src/core/packages/http/server", "@kbn/core-http-server-internal": "link:src/core/packages/http/server-internal", - "@kbn/core-http-server-utils": "link:packages/core/http/core-http-server-utils", + "@kbn/core-http-server-utils": "link:src/core/packages/http/server-utils", "@kbn/core-i18n-browser": "link:packages/core/i18n/core-i18n-browser", "@kbn/core-i18n-browser-internal": "link:packages/core/i18n/core-i18n-browser-internal", "@kbn/core-i18n-server": "link:packages/core/i18n/core-i18n-server", diff --git a/packages/core/http/core-http-server-utils/README.md b/src/core/packages/http/server-utils/README.md similarity index 100% rename from packages/core/http/core-http-server-utils/README.md rename to src/core/packages/http/server-utils/README.md diff --git a/packages/core/http/core-http-server-utils/index.ts b/src/core/packages/http/server-utils/index.ts similarity index 100% rename from packages/core/http/core-http-server-utils/index.ts rename to src/core/packages/http/server-utils/index.ts diff --git a/packages/core/http/core-http-server-utils/jest.config.js b/src/core/packages/http/server-utils/jest.config.js similarity index 85% rename from packages/core/http/core-http-server-utils/jest.config.js rename to src/core/packages/http/server-utils/jest.config.js index eff6f9ba0e4c6..e310d5cb0c78e 100644 --- a/packages/core/http/core-http-server-utils/jest.config.js +++ b/src/core/packages/http/server-utils/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/http/core-http-server-utils'], + rootDir: '../../../../..', + roots: ['/src/core/packages/http/server-utils'], }; diff --git a/packages/core/http/core-http-server-utils/kibana.jsonc b/src/core/packages/http/server-utils/kibana.jsonc similarity index 100% rename from packages/core/http/core-http-server-utils/kibana.jsonc rename to src/core/packages/http/server-utils/kibana.jsonc diff --git a/packages/core/http/core-http-server-utils/package.json b/src/core/packages/http/server-utils/package.json similarity index 100% rename from packages/core/http/core-http-server-utils/package.json rename to src/core/packages/http/server-utils/package.json diff --git a/packages/core/http/core-http-server-utils/src/request.ts b/src/core/packages/http/server-utils/src/request.ts similarity index 100% rename from packages/core/http/core-http-server-utils/src/request.ts rename to src/core/packages/http/server-utils/src/request.ts diff --git a/packages/core/http/core-http-server-utils/tsconfig.json b/src/core/packages/http/server-utils/tsconfig.json similarity index 84% rename from packages/core/http/core-http-server-utils/tsconfig.json rename to src/core/packages/http/server-utils/tsconfig.json index 0a0e4516c8c5d..21a43245dc49a 100644 --- a/packages/core/http/core-http-server-utils/tsconfig.json +++ b/src/core/packages/http/server-utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c58c63ed42cc4..c7f55274a5d26 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -414,8 +414,8 @@ "@kbn/core-http-server-internal/*": ["src/core/packages/http/server-internal/*"], "@kbn/core-http-server-mocks": ["packages/core/http/core-http-server-mocks"], "@kbn/core-http-server-mocks/*": ["packages/core/http/core-http-server-mocks/*"], - "@kbn/core-http-server-utils": ["packages/core/http/core-http-server-utils"], - "@kbn/core-http-server-utils/*": ["packages/core/http/core-http-server-utils/*"], + "@kbn/core-http-server-utils": ["src/core/packages/http/server-utils"], + "@kbn/core-http-server-utils/*": ["src/core/packages/http/server-utils/*"], "@kbn/core-i18n-browser": ["packages/core/i18n/core-i18n-browser"], "@kbn/core-i18n-browser/*": ["packages/core/i18n/core-i18n-browser/*"], "@kbn/core-i18n-browser-internal": ["packages/core/i18n/core-i18n-browser-internal"], diff --git a/yarn.lock b/yarn.lock index 62daf28c1f4af..e723051e2ec88 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4637,7 +4637,7 @@ version "0.0.0" uid "" -"@kbn/core-http-server-utils@link:packages/core/http/core-http-server-utils": +"@kbn/core-http-server-utils@link:src/core/packages/http/server-utils": version "0.0.0" uid "" From 4ae7b7d685c5c68d86b3d7f82a6a480a258bc1a2 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:44:57 +0100 Subject: [PATCH 058/167] Relocating module `@kbn/core-i18n-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/i18n/browser}/README.md | 0 .../core/packages/i18n/browser}/index.ts | 0 .../core/packages/i18n/browser}/jest.config.js | 4 ++-- .../core/packages/i18n/browser}/kibana.jsonc | 0 .../core/packages/i18n/browser}/package.json | 0 .../core/packages/i18n/browser}/src/types.ts | 0 .../core/packages/i18n/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/i18n/core-i18n-browser => src/core/packages/i18n/browser}/README.md (100%) rename {packages/core/i18n/core-i18n-browser => src/core/packages/i18n/browser}/index.ts (100%) rename {packages/core/i18n/core-i18n-browser => src/core/packages/i18n/browser}/jest.config.js (85%) rename {packages/core/i18n/core-i18n-browser => src/core/packages/i18n/browser}/kibana.jsonc (100%) rename {packages/core/i18n/core-i18n-browser => src/core/packages/i18n/browser}/package.json (100%) rename {packages/core/i18n/core-i18n-browser => src/core/packages/i18n/browser}/src/types.ts (100%) rename {packages/core/i18n/core-i18n-browser => src/core/packages/i18n/browser}/tsconfig.json (80%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5df78fd7be72b..cb56a11906a52 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -85,7 +85,6 @@ packages/core/http/core-http-context-server-mocks @elastic/kibana-core packages/core/http/core-http-resources-server-mocks @elastic/kibana-core packages/core/http/core-http-router-server-mocks @elastic/kibana-core packages/core/http/core-http-server-mocks @elastic/kibana-core -packages/core/i18n/core-i18n-browser @elastic/kibana-core packages/core/i18n/core-i18n-browser-internal @elastic/kibana-core packages/core/i18n/core-i18n-browser-mocks @elastic/kibana-core packages/core/i18n/core-i18n-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/http/router-server-internal @elastic/kibana-core src/core/packages/http/server @elastic/kibana-core src/core/packages/http/server-internal @elastic/kibana-core src/core/packages/http/server-utils @elastic/kibana-core +src/core/packages/i18n/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 587b1afd3ecb3..5653ff17c0306 100644 --- a/package.json +++ b/package.json @@ -313,7 +313,7 @@ "@kbn/core-http-server": "link:src/core/packages/http/server", "@kbn/core-http-server-internal": "link:src/core/packages/http/server-internal", "@kbn/core-http-server-utils": "link:src/core/packages/http/server-utils", - "@kbn/core-i18n-browser": "link:packages/core/i18n/core-i18n-browser", + "@kbn/core-i18n-browser": "link:src/core/packages/i18n/browser", "@kbn/core-i18n-browser-internal": "link:packages/core/i18n/core-i18n-browser-internal", "@kbn/core-i18n-server": "link:packages/core/i18n/core-i18n-server", "@kbn/core-i18n-server-internal": "link:packages/core/i18n/core-i18n-server-internal", diff --git a/packages/core/i18n/core-i18n-browser/README.md b/src/core/packages/i18n/browser/README.md similarity index 100% rename from packages/core/i18n/core-i18n-browser/README.md rename to src/core/packages/i18n/browser/README.md diff --git a/packages/core/i18n/core-i18n-browser/index.ts b/src/core/packages/i18n/browser/index.ts similarity index 100% rename from packages/core/i18n/core-i18n-browser/index.ts rename to src/core/packages/i18n/browser/index.ts diff --git a/packages/core/i18n/core-i18n-browser/jest.config.js b/src/core/packages/i18n/browser/jest.config.js similarity index 85% rename from packages/core/i18n/core-i18n-browser/jest.config.js rename to src/core/packages/i18n/browser/jest.config.js index 5bb5c07d329e5..d49bf28b3edc7 100644 --- a/packages/core/i18n/core-i18n-browser/jest.config.js +++ b/src/core/packages/i18n/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/i18n/core-i18n-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/i18n/browser'], }; diff --git a/packages/core/i18n/core-i18n-browser/kibana.jsonc b/src/core/packages/i18n/browser/kibana.jsonc similarity index 100% rename from packages/core/i18n/core-i18n-browser/kibana.jsonc rename to src/core/packages/i18n/browser/kibana.jsonc diff --git a/packages/core/i18n/core-i18n-browser/package.json b/src/core/packages/i18n/browser/package.json similarity index 100% rename from packages/core/i18n/core-i18n-browser/package.json rename to src/core/packages/i18n/browser/package.json diff --git a/packages/core/i18n/core-i18n-browser/src/types.ts b/src/core/packages/i18n/browser/src/types.ts similarity index 100% rename from packages/core/i18n/core-i18n-browser/src/types.ts rename to src/core/packages/i18n/browser/src/types.ts diff --git a/packages/core/i18n/core-i18n-browser/tsconfig.json b/src/core/packages/i18n/browser/tsconfig.json similarity index 80% rename from packages/core/i18n/core-i18n-browser/tsconfig.json rename to src/core/packages/i18n/browser/tsconfig.json index 6f535b8372d54..560e494ba5c84 100644 --- a/packages/core/i18n/core-i18n-browser/tsconfig.json +++ b/src/core/packages/i18n/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c7f55274a5d26..91ba6989e7219 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -416,8 +416,8 @@ "@kbn/core-http-server-mocks/*": ["packages/core/http/core-http-server-mocks/*"], "@kbn/core-http-server-utils": ["src/core/packages/http/server-utils"], "@kbn/core-http-server-utils/*": ["src/core/packages/http/server-utils/*"], - "@kbn/core-i18n-browser": ["packages/core/i18n/core-i18n-browser"], - "@kbn/core-i18n-browser/*": ["packages/core/i18n/core-i18n-browser/*"], + "@kbn/core-i18n-browser": ["src/core/packages/i18n/browser"], + "@kbn/core-i18n-browser/*": ["src/core/packages/i18n/browser/*"], "@kbn/core-i18n-browser-internal": ["packages/core/i18n/core-i18n-browser-internal"], "@kbn/core-i18n-browser-internal/*": ["packages/core/i18n/core-i18n-browser-internal/*"], "@kbn/core-i18n-browser-mocks": ["packages/core/i18n/core-i18n-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index e723051e2ec88..88a5038bbb866 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4653,7 +4653,7 @@ version "0.0.0" uid "" -"@kbn/core-i18n-browser@link:packages/core/i18n/core-i18n-browser": +"@kbn/core-i18n-browser@link:src/core/packages/i18n/browser": version "0.0.0" uid "" From e32efb65d2b6072b5e0356e16a9545476edab3dd Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:45:51 +0100 Subject: [PATCH 059/167] Relocating module `@kbn/core-i18n-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/i18n/browser-internal}/README.md | 0 .../core/packages/i18n/browser-internal}/index.ts | 0 .../core/packages/i18n/browser-internal}/jest.config.js | 4 ++-- .../core/packages/i18n/browser-internal}/kibana.jsonc | 0 .../core/packages/i18n/browser-internal}/package.json | 0 .../src/__snapshots__/i18n_service.test.tsx.snap | 0 .../i18n/browser-internal}/src/i18n_eui_mapping.test.ts | 0 .../packages/i18n/browser-internal}/src/i18n_eui_mapping.tsx | 0 .../packages/i18n/browser-internal}/src/i18n_service.test.tsx | 0 .../core/packages/i18n/browser-internal}/src/i18n_service.tsx | 0 .../core/packages/i18n/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/i18n/core-i18n-browser-internal => src/core/packages/i18n/browser-internal}/README.md (100%) rename {packages/core/i18n/core-i18n-browser-internal => src/core/packages/i18n/browser-internal}/index.ts (100%) rename {packages/core/i18n/core-i18n-browser-internal => src/core/packages/i18n/browser-internal}/jest.config.js (84%) rename {packages/core/i18n/core-i18n-browser-internal => src/core/packages/i18n/browser-internal}/kibana.jsonc (100%) rename {packages/core/i18n/core-i18n-browser-internal => src/core/packages/i18n/browser-internal}/package.json (100%) rename {packages/core/i18n/core-i18n-browser-internal => src/core/packages/i18n/browser-internal}/src/__snapshots__/i18n_service.test.tsx.snap (100%) rename {packages/core/i18n/core-i18n-browser-internal => src/core/packages/i18n/browser-internal}/src/i18n_eui_mapping.test.ts (100%) rename {packages/core/i18n/core-i18n-browser-internal => src/core/packages/i18n/browser-internal}/src/i18n_eui_mapping.tsx (100%) rename {packages/core/i18n/core-i18n-browser-internal => src/core/packages/i18n/browser-internal}/src/i18n_service.test.tsx (100%) rename {packages/core/i18n/core-i18n-browser-internal => src/core/packages/i18n/browser-internal}/src/i18n_service.tsx (100%) rename {packages/core/i18n/core-i18n-browser-internal => src/core/packages/i18n/browser-internal}/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index cb56a11906a52..312dc71216aee 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -85,7 +85,6 @@ packages/core/http/core-http-context-server-mocks @elastic/kibana-core packages/core/http/core-http-resources-server-mocks @elastic/kibana-core packages/core/http/core-http-router-server-mocks @elastic/kibana-core packages/core/http/core-http-server-mocks @elastic/kibana-core -packages/core/i18n/core-i18n-browser-internal @elastic/kibana-core packages/core/i18n/core-i18n-browser-mocks @elastic/kibana-core packages/core/i18n/core-i18n-server @elastic/kibana-core packages/core/i18n/core-i18n-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/http/server @elastic/kibana-core src/core/packages/http/server-internal @elastic/kibana-core src/core/packages/http/server-utils @elastic/kibana-core src/core/packages/i18n/browser @elastic/kibana-core +src/core/packages/i18n/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 5653ff17c0306..e46cd6bb0a1ce 100644 --- a/package.json +++ b/package.json @@ -314,7 +314,7 @@ "@kbn/core-http-server-internal": "link:src/core/packages/http/server-internal", "@kbn/core-http-server-utils": "link:src/core/packages/http/server-utils", "@kbn/core-i18n-browser": "link:src/core/packages/i18n/browser", - "@kbn/core-i18n-browser-internal": "link:packages/core/i18n/core-i18n-browser-internal", + "@kbn/core-i18n-browser-internal": "link:src/core/packages/i18n/browser-internal", "@kbn/core-i18n-server": "link:packages/core/i18n/core-i18n-server", "@kbn/core-i18n-server-internal": "link:packages/core/i18n/core-i18n-server-internal", "@kbn/core-injected-metadata-browser-internal": "link:packages/core/injected-metadata/core-injected-metadata-browser-internal", diff --git a/packages/core/i18n/core-i18n-browser-internal/README.md b/src/core/packages/i18n/browser-internal/README.md similarity index 100% rename from packages/core/i18n/core-i18n-browser-internal/README.md rename to src/core/packages/i18n/browser-internal/README.md diff --git a/packages/core/i18n/core-i18n-browser-internal/index.ts b/src/core/packages/i18n/browser-internal/index.ts similarity index 100% rename from packages/core/i18n/core-i18n-browser-internal/index.ts rename to src/core/packages/i18n/browser-internal/index.ts diff --git a/packages/core/i18n/core-i18n-browser-internal/jest.config.js b/src/core/packages/i18n/browser-internal/jest.config.js similarity index 84% rename from packages/core/i18n/core-i18n-browser-internal/jest.config.js rename to src/core/packages/i18n/browser-internal/jest.config.js index 6594f54b4a6cf..c3b564c016692 100644 --- a/packages/core/i18n/core-i18n-browser-internal/jest.config.js +++ b/src/core/packages/i18n/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/i18n/core-i18n-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/i18n/browser-internal'], }; diff --git a/packages/core/i18n/core-i18n-browser-internal/kibana.jsonc b/src/core/packages/i18n/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/i18n/core-i18n-browser-internal/kibana.jsonc rename to src/core/packages/i18n/browser-internal/kibana.jsonc diff --git a/packages/core/i18n/core-i18n-browser-internal/package.json b/src/core/packages/i18n/browser-internal/package.json similarity index 100% rename from packages/core/i18n/core-i18n-browser-internal/package.json rename to src/core/packages/i18n/browser-internal/package.json diff --git a/packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap b/src/core/packages/i18n/browser-internal/src/__snapshots__/i18n_service.test.tsx.snap similarity index 100% rename from packages/core/i18n/core-i18n-browser-internal/src/__snapshots__/i18n_service.test.tsx.snap rename to src/core/packages/i18n/browser-internal/src/__snapshots__/i18n_service.test.tsx.snap diff --git a/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.test.ts b/src/core/packages/i18n/browser-internal/src/i18n_eui_mapping.test.ts similarity index 100% rename from packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.test.ts rename to src/core/packages/i18n/browser-internal/src/i18n_eui_mapping.test.ts diff --git a/packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx b/src/core/packages/i18n/browser-internal/src/i18n_eui_mapping.tsx similarity index 100% rename from packages/core/i18n/core-i18n-browser-internal/src/i18n_eui_mapping.tsx rename to src/core/packages/i18n/browser-internal/src/i18n_eui_mapping.tsx diff --git a/packages/core/i18n/core-i18n-browser-internal/src/i18n_service.test.tsx b/src/core/packages/i18n/browser-internal/src/i18n_service.test.tsx similarity index 100% rename from packages/core/i18n/core-i18n-browser-internal/src/i18n_service.test.tsx rename to src/core/packages/i18n/browser-internal/src/i18n_service.test.tsx diff --git a/packages/core/i18n/core-i18n-browser-internal/src/i18n_service.tsx b/src/core/packages/i18n/browser-internal/src/i18n_service.tsx similarity index 100% rename from packages/core/i18n/core-i18n-browser-internal/src/i18n_service.tsx rename to src/core/packages/i18n/browser-internal/src/i18n_service.tsx diff --git a/packages/core/i18n/core-i18n-browser-internal/tsconfig.json b/src/core/packages/i18n/browser-internal/tsconfig.json similarity index 85% rename from packages/core/i18n/core-i18n-browser-internal/tsconfig.json rename to src/core/packages/i18n/browser-internal/tsconfig.json index fe90039b68112..6ab84058fc78f 100644 --- a/packages/core/i18n/core-i18n-browser-internal/tsconfig.json +++ b/src/core/packages/i18n/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 91ba6989e7219..41770944bfcd6 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -418,8 +418,8 @@ "@kbn/core-http-server-utils/*": ["src/core/packages/http/server-utils/*"], "@kbn/core-i18n-browser": ["src/core/packages/i18n/browser"], "@kbn/core-i18n-browser/*": ["src/core/packages/i18n/browser/*"], - "@kbn/core-i18n-browser-internal": ["packages/core/i18n/core-i18n-browser-internal"], - "@kbn/core-i18n-browser-internal/*": ["packages/core/i18n/core-i18n-browser-internal/*"], + "@kbn/core-i18n-browser-internal": ["src/core/packages/i18n/browser-internal"], + "@kbn/core-i18n-browser-internal/*": ["src/core/packages/i18n/browser-internal/*"], "@kbn/core-i18n-browser-mocks": ["packages/core/i18n/core-i18n-browser-mocks"], "@kbn/core-i18n-browser-mocks/*": ["packages/core/i18n/core-i18n-browser-mocks/*"], "@kbn/core-i18n-server": ["packages/core/i18n/core-i18n-server"], diff --git a/yarn.lock b/yarn.lock index 88a5038bbb866..f5bb64ab4511e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4645,7 +4645,7 @@ version "0.0.0" uid "" -"@kbn/core-i18n-browser-internal@link:packages/core/i18n/core-i18n-browser-internal": +"@kbn/core-i18n-browser-internal@link:src/core/packages/i18n/browser-internal": version "0.0.0" uid "" From d6bff8dd3b3c255ad09ec2727cd3397f6836f91d Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:46:43 +0100 Subject: [PATCH 060/167] Relocating module `@kbn/core-i18n-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/i18n/server}/README.md | 0 .../core/packages/i18n/server}/index.ts | 0 .../core/packages/i18n/server}/jest.config.js | 4 ++-- .../core/packages/i18n/server}/kibana.jsonc | 0 .../core/packages/i18n/server}/package.json | 0 .../core/packages/i18n/server}/src/types.ts | 0 .../core/packages/i18n/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/i18n/core-i18n-server => src/core/packages/i18n/server}/README.md (100%) rename {packages/core/i18n/core-i18n-server => src/core/packages/i18n/server}/index.ts (100%) rename {packages/core/i18n/core-i18n-server => src/core/packages/i18n/server}/jest.config.js (85%) rename {packages/core/i18n/core-i18n-server => src/core/packages/i18n/server}/kibana.jsonc (100%) rename {packages/core/i18n/core-i18n-server => src/core/packages/i18n/server}/package.json (100%) rename {packages/core/i18n/core-i18n-server => src/core/packages/i18n/server}/src/types.ts (100%) rename {packages/core/i18n/core-i18n-server => src/core/packages/i18n/server}/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 312dc71216aee..8537a9a1b1401 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -86,7 +86,6 @@ packages/core/http/core-http-resources-server-mocks @elastic/kibana-core packages/core/http/core-http-router-server-mocks @elastic/kibana-core packages/core/http/core-http-server-mocks @elastic/kibana-core packages/core/i18n/core-i18n-browser-mocks @elastic/kibana-core -packages/core/i18n/core-i18n-server @elastic/kibana-core packages/core/i18n/core-i18n-server-internal @elastic/kibana-core packages/core/i18n/core-i18n-server-mocks @elastic/kibana-core packages/core/injected-metadata/core-injected-metadata-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/http/server-internal @elastic/kibana-core src/core/packages/http/server-utils @elastic/kibana-core src/core/packages/i18n/browser @elastic/kibana-core src/core/packages/i18n/browser-internal @elastic/kibana-core +src/core/packages/i18n/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index e46cd6bb0a1ce..4bdb25f646486 100644 --- a/package.json +++ b/package.json @@ -315,7 +315,7 @@ "@kbn/core-http-server-utils": "link:src/core/packages/http/server-utils", "@kbn/core-i18n-browser": "link:src/core/packages/i18n/browser", "@kbn/core-i18n-browser-internal": "link:src/core/packages/i18n/browser-internal", - "@kbn/core-i18n-server": "link:packages/core/i18n/core-i18n-server", + "@kbn/core-i18n-server": "link:src/core/packages/i18n/server", "@kbn/core-i18n-server-internal": "link:packages/core/i18n/core-i18n-server-internal", "@kbn/core-injected-metadata-browser-internal": "link:packages/core/injected-metadata/core-injected-metadata-browser-internal", "@kbn/core-injected-metadata-common-internal": "link:packages/core/injected-metadata/core-injected-metadata-common-internal", diff --git a/packages/core/i18n/core-i18n-server/README.md b/src/core/packages/i18n/server/README.md similarity index 100% rename from packages/core/i18n/core-i18n-server/README.md rename to src/core/packages/i18n/server/README.md diff --git a/packages/core/i18n/core-i18n-server/index.ts b/src/core/packages/i18n/server/index.ts similarity index 100% rename from packages/core/i18n/core-i18n-server/index.ts rename to src/core/packages/i18n/server/index.ts diff --git a/packages/core/i18n/core-i18n-server/jest.config.js b/src/core/packages/i18n/server/jest.config.js similarity index 85% rename from packages/core/i18n/core-i18n-server/jest.config.js rename to src/core/packages/i18n/server/jest.config.js index 9e0622d6f8389..d8e4c3d082114 100644 --- a/packages/core/i18n/core-i18n-server/jest.config.js +++ b/src/core/packages/i18n/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/i18n/core-i18n-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/i18n/server'], }; diff --git a/packages/core/i18n/core-i18n-server/kibana.jsonc b/src/core/packages/i18n/server/kibana.jsonc similarity index 100% rename from packages/core/i18n/core-i18n-server/kibana.jsonc rename to src/core/packages/i18n/server/kibana.jsonc diff --git a/packages/core/i18n/core-i18n-server/package.json b/src/core/packages/i18n/server/package.json similarity index 100% rename from packages/core/i18n/core-i18n-server/package.json rename to src/core/packages/i18n/server/package.json diff --git a/packages/core/i18n/core-i18n-server/src/types.ts b/src/core/packages/i18n/server/src/types.ts similarity index 100% rename from packages/core/i18n/core-i18n-server/src/types.ts rename to src/core/packages/i18n/server/src/types.ts diff --git a/packages/core/i18n/core-i18n-server/tsconfig.json b/src/core/packages/i18n/server/tsconfig.json similarity index 78% rename from packages/core/i18n/core-i18n-server/tsconfig.json rename to src/core/packages/i18n/server/tsconfig.json index e7513f6481e89..131ff3e6bb433 100644 --- a/packages/core/i18n/core-i18n-server/tsconfig.json +++ b/src/core/packages/i18n/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 41770944bfcd6..bdc3770e33a5d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -422,8 +422,8 @@ "@kbn/core-i18n-browser-internal/*": ["src/core/packages/i18n/browser-internal/*"], "@kbn/core-i18n-browser-mocks": ["packages/core/i18n/core-i18n-browser-mocks"], "@kbn/core-i18n-browser-mocks/*": ["packages/core/i18n/core-i18n-browser-mocks/*"], - "@kbn/core-i18n-server": ["packages/core/i18n/core-i18n-server"], - "@kbn/core-i18n-server/*": ["packages/core/i18n/core-i18n-server/*"], + "@kbn/core-i18n-server": ["src/core/packages/i18n/server"], + "@kbn/core-i18n-server/*": ["src/core/packages/i18n/server/*"], "@kbn/core-i18n-server-internal": ["packages/core/i18n/core-i18n-server-internal"], "@kbn/core-i18n-server-internal/*": ["packages/core/i18n/core-i18n-server-internal/*"], "@kbn/core-i18n-server-mocks": ["packages/core/i18n/core-i18n-server-mocks"], diff --git a/yarn.lock b/yarn.lock index f5bb64ab4511e..92bade7c47a34 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4665,7 +4665,7 @@ version "0.0.0" uid "" -"@kbn/core-i18n-server@link:packages/core/i18n/core-i18n-server": +"@kbn/core-i18n-server@link:src/core/packages/i18n/server": version "0.0.0" uid "" From 440f5a782eb1a45e66df91a45025361cafba76e9 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:47:36 +0100 Subject: [PATCH 061/167] Relocating module `@kbn/core-i18n-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/i18n/server-internal}/README.md | 0 .../core/packages/i18n/server-internal}/index.ts | 0 .../core/packages/i18n/server-internal}/jest.config.js | 4 ++-- .../core/packages/i18n/server-internal}/kibana.jsonc | 0 .../core/packages/i18n/server-internal}/package.json | 0 .../core/packages/i18n/server-internal}/src/constants.ts | 0 .../server-internal}/src/get_kibana_translation_files.test.ts | 0 .../i18n/server-internal}/src/get_kibana_translation_files.ts | 0 .../server-internal}/src/get_translation_paths.test.mocks.ts | 0 .../i18n/server-internal}/src/get_translation_paths.test.ts | 0 .../i18n/server-internal}/src/get_translation_paths.ts | 0 .../core/packages/i18n/server-internal}/src/i18n_config.ts | 0 .../i18n/server-internal}/src/i18n_service.test.mocks.ts | 0 .../packages/i18n/server-internal}/src/i18n_service.test.ts | 0 .../core/packages/i18n/server-internal}/src/i18n_service.ts | 0 .../core/packages/i18n/server-internal}/src/index.ts | 0 .../packages/i18n/server-internal}/src/init_translations.ts | 0 .../core/packages/i18n/server-internal}/src/routes/index.ts | 0 .../i18n/server-internal}/src/routes/translations.test.ts | 0 .../packages/i18n/server-internal}/src/routes/translations.ts | 0 .../core/packages/i18n/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 25 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/README.md (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/index.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/jest.config.js (84%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/kibana.jsonc (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/package.json (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/constants.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/get_kibana_translation_files.test.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/get_kibana_translation_files.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/get_translation_paths.test.mocks.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/get_translation_paths.test.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/get_translation_paths.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/i18n_config.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/i18n_service.test.mocks.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/i18n_service.test.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/i18n_service.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/index.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/init_translations.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/routes/index.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/routes/translations.test.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/src/routes/translations.ts (100%) rename {packages/core/i18n/core-i18n-server-internal => src/core/packages/i18n/server-internal}/tsconfig.json (92%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8537a9a1b1401..c232684d6ecb0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -86,7 +86,6 @@ packages/core/http/core-http-resources-server-mocks @elastic/kibana-core packages/core/http/core-http-router-server-mocks @elastic/kibana-core packages/core/http/core-http-server-mocks @elastic/kibana-core packages/core/i18n/core-i18n-browser-mocks @elastic/kibana-core -packages/core/i18n/core-i18n-server-internal @elastic/kibana-core packages/core/i18n/core-i18n-server-mocks @elastic/kibana-core packages/core/injected-metadata/core-injected-metadata-browser-internal @elastic/kibana-core packages/core/injected-metadata/core-injected-metadata-browser-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/http/server-utils @elastic/kibana-core src/core/packages/i18n/browser @elastic/kibana-core src/core/packages/i18n/browser-internal @elastic/kibana-core src/core/packages/i18n/server @elastic/kibana-core +src/core/packages/i18n/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 4bdb25f646486..bd5b5b3144e83 100644 --- a/package.json +++ b/package.json @@ -316,7 +316,7 @@ "@kbn/core-i18n-browser": "link:src/core/packages/i18n/browser", "@kbn/core-i18n-browser-internal": "link:src/core/packages/i18n/browser-internal", "@kbn/core-i18n-server": "link:src/core/packages/i18n/server", - "@kbn/core-i18n-server-internal": "link:packages/core/i18n/core-i18n-server-internal", + "@kbn/core-i18n-server-internal": "link:src/core/packages/i18n/server-internal", "@kbn/core-injected-metadata-browser-internal": "link:packages/core/injected-metadata/core-injected-metadata-browser-internal", "@kbn/core-injected-metadata-common-internal": "link:packages/core/injected-metadata/core-injected-metadata-common-internal", "@kbn/core-integrations-browser-internal": "link:packages/core/integrations/core-integrations-browser-internal", diff --git a/packages/core/i18n/core-i18n-server-internal/README.md b/src/core/packages/i18n/server-internal/README.md similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/README.md rename to src/core/packages/i18n/server-internal/README.md diff --git a/packages/core/i18n/core-i18n-server-internal/index.ts b/src/core/packages/i18n/server-internal/index.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/index.ts rename to src/core/packages/i18n/server-internal/index.ts diff --git a/packages/core/i18n/core-i18n-server-internal/jest.config.js b/src/core/packages/i18n/server-internal/jest.config.js similarity index 84% rename from packages/core/i18n/core-i18n-server-internal/jest.config.js rename to src/core/packages/i18n/server-internal/jest.config.js index 561d36c0739d2..ab999bb98113a 100644 --- a/packages/core/i18n/core-i18n-server-internal/jest.config.js +++ b/src/core/packages/i18n/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/i18n/core-i18n-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/i18n/server-internal'], }; diff --git a/packages/core/i18n/core-i18n-server-internal/kibana.jsonc b/src/core/packages/i18n/server-internal/kibana.jsonc similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/kibana.jsonc rename to src/core/packages/i18n/server-internal/kibana.jsonc diff --git a/packages/core/i18n/core-i18n-server-internal/package.json b/src/core/packages/i18n/server-internal/package.json similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/package.json rename to src/core/packages/i18n/server-internal/package.json diff --git a/packages/core/i18n/core-i18n-server-internal/src/constants.ts b/src/core/packages/i18n/server-internal/src/constants.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/constants.ts rename to src/core/packages/i18n/server-internal/src/constants.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/get_kibana_translation_files.test.ts b/src/core/packages/i18n/server-internal/src/get_kibana_translation_files.test.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/get_kibana_translation_files.test.ts rename to src/core/packages/i18n/server-internal/src/get_kibana_translation_files.test.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/get_kibana_translation_files.ts b/src/core/packages/i18n/server-internal/src/get_kibana_translation_files.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/get_kibana_translation_files.ts rename to src/core/packages/i18n/server-internal/src/get_kibana_translation_files.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/get_translation_paths.test.mocks.ts b/src/core/packages/i18n/server-internal/src/get_translation_paths.test.mocks.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/get_translation_paths.test.mocks.ts rename to src/core/packages/i18n/server-internal/src/get_translation_paths.test.mocks.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/get_translation_paths.test.ts b/src/core/packages/i18n/server-internal/src/get_translation_paths.test.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/get_translation_paths.test.ts rename to src/core/packages/i18n/server-internal/src/get_translation_paths.test.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/get_translation_paths.ts b/src/core/packages/i18n/server-internal/src/get_translation_paths.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/get_translation_paths.ts rename to src/core/packages/i18n/server-internal/src/get_translation_paths.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/i18n_config.ts b/src/core/packages/i18n/server-internal/src/i18n_config.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/i18n_config.ts rename to src/core/packages/i18n/server-internal/src/i18n_config.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/i18n_service.test.mocks.ts b/src/core/packages/i18n/server-internal/src/i18n_service.test.mocks.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/i18n_service.test.mocks.ts rename to src/core/packages/i18n/server-internal/src/i18n_service.test.mocks.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/i18n_service.test.ts b/src/core/packages/i18n/server-internal/src/i18n_service.test.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/i18n_service.test.ts rename to src/core/packages/i18n/server-internal/src/i18n_service.test.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/i18n_service.ts b/src/core/packages/i18n/server-internal/src/i18n_service.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/i18n_service.ts rename to src/core/packages/i18n/server-internal/src/i18n_service.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/index.ts b/src/core/packages/i18n/server-internal/src/index.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/index.ts rename to src/core/packages/i18n/server-internal/src/index.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/init_translations.ts b/src/core/packages/i18n/server-internal/src/init_translations.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/init_translations.ts rename to src/core/packages/i18n/server-internal/src/init_translations.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/routes/index.ts b/src/core/packages/i18n/server-internal/src/routes/index.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/routes/index.ts rename to src/core/packages/i18n/server-internal/src/routes/index.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/routes/translations.test.ts b/src/core/packages/i18n/server-internal/src/routes/translations.test.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/routes/translations.test.ts rename to src/core/packages/i18n/server-internal/src/routes/translations.test.ts diff --git a/packages/core/i18n/core-i18n-server-internal/src/routes/translations.ts b/src/core/packages/i18n/server-internal/src/routes/translations.ts similarity index 100% rename from packages/core/i18n/core-i18n-server-internal/src/routes/translations.ts rename to src/core/packages/i18n/server-internal/src/routes/translations.ts diff --git a/packages/core/i18n/core-i18n-server-internal/tsconfig.json b/src/core/packages/i18n/server-internal/tsconfig.json similarity index 92% rename from packages/core/i18n/core-i18n-server-internal/tsconfig.json rename to src/core/packages/i18n/server-internal/tsconfig.json index a00305e2ca096..f59588082be09 100644 --- a/packages/core/i18n/core-i18n-server-internal/tsconfig.json +++ b/src/core/packages/i18n/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index bdc3770e33a5d..f15ad26043ff3 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -424,8 +424,8 @@ "@kbn/core-i18n-browser-mocks/*": ["packages/core/i18n/core-i18n-browser-mocks/*"], "@kbn/core-i18n-server": ["src/core/packages/i18n/server"], "@kbn/core-i18n-server/*": ["src/core/packages/i18n/server/*"], - "@kbn/core-i18n-server-internal": ["packages/core/i18n/core-i18n-server-internal"], - "@kbn/core-i18n-server-internal/*": ["packages/core/i18n/core-i18n-server-internal/*"], + "@kbn/core-i18n-server-internal": ["src/core/packages/i18n/server-internal"], + "@kbn/core-i18n-server-internal/*": ["src/core/packages/i18n/server-internal/*"], "@kbn/core-i18n-server-mocks": ["packages/core/i18n/core-i18n-server-mocks"], "@kbn/core-i18n-server-mocks/*": ["packages/core/i18n/core-i18n-server-mocks/*"], "@kbn/core-injected-metadata-browser-internal": ["packages/core/injected-metadata/core-injected-metadata-browser-internal"], diff --git a/yarn.lock b/yarn.lock index 92bade7c47a34..fba62fdb57492 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4657,7 +4657,7 @@ version "0.0.0" uid "" -"@kbn/core-i18n-server-internal@link:packages/core/i18n/core-i18n-server-internal": +"@kbn/core-i18n-server-internal@link:src/core/packages/i18n/server-internal": version "0.0.0" uid "" From 58a44a0620bc0f7eda21df80bf38e177a05a5de8 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:48:28 +0100 Subject: [PATCH 062/167] Relocating module `@kbn/core-injected-metadata-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/injected-metadata/browser-internal}/README.md | 0 .../packages/injected-metadata/browser-internal}/index.ts | 0 .../injected-metadata/browser-internal}/jest.config.js | 4 ++-- .../packages/injected-metadata/browser-internal}/kibana.jsonc | 0 .../packages/injected-metadata/browser-internal}/package.json | 0 .../browser-internal}/src/injected_metadata_service.test.ts | 0 .../browser-internal}/src/injected_metadata_service.ts | 0 .../packages/injected-metadata/browser-internal}/src/types.ts | 0 .../injected-metadata/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/injected-metadata/core-injected-metadata-browser-internal => src/core/packages/injected-metadata/browser-internal}/README.md (100%) rename {packages/core/injected-metadata/core-injected-metadata-browser-internal => src/core/packages/injected-metadata/browser-internal}/index.ts (100%) rename {packages/core/injected-metadata/core-injected-metadata-browser-internal => src/core/packages/injected-metadata/browser-internal}/jest.config.js (80%) rename {packages/core/injected-metadata/core-injected-metadata-browser-internal => src/core/packages/injected-metadata/browser-internal}/kibana.jsonc (100%) rename {packages/core/injected-metadata/core-injected-metadata-browser-internal => src/core/packages/injected-metadata/browser-internal}/package.json (100%) rename {packages/core/injected-metadata/core-injected-metadata-browser-internal => src/core/packages/injected-metadata/browser-internal}/src/injected_metadata_service.test.ts (100%) rename {packages/core/injected-metadata/core-injected-metadata-browser-internal => src/core/packages/injected-metadata/browser-internal}/src/injected_metadata_service.ts (100%) rename {packages/core/injected-metadata/core-injected-metadata-browser-internal => src/core/packages/injected-metadata/browser-internal}/src/types.ts (100%) rename {packages/core/injected-metadata/core-injected-metadata-browser-internal => src/core/packages/injected-metadata/browser-internal}/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c232684d6ecb0..e1538a4b74961 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -87,7 +87,6 @@ packages/core/http/core-http-router-server-mocks @elastic/kibana-core packages/core/http/core-http-server-mocks @elastic/kibana-core packages/core/i18n/core-i18n-browser-mocks @elastic/kibana-core packages/core/i18n/core-i18n-server-mocks @elastic/kibana-core -packages/core/injected-metadata/core-injected-metadata-browser-internal @elastic/kibana-core packages/core/injected-metadata/core-injected-metadata-browser-mocks @elastic/kibana-core packages/core/injected-metadata/core-injected-metadata-common-internal @elastic/kibana-core packages/core/integrations/core-integrations-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/i18n/browser @elastic/kibana-core src/core/packages/i18n/browser-internal @elastic/kibana-core src/core/packages/i18n/server @elastic/kibana-core src/core/packages/i18n/server-internal @elastic/kibana-core +src/core/packages/injected-metadata/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index bd5b5b3144e83..d45a168cd9baf 100644 --- a/package.json +++ b/package.json @@ -317,7 +317,7 @@ "@kbn/core-i18n-browser-internal": "link:src/core/packages/i18n/browser-internal", "@kbn/core-i18n-server": "link:src/core/packages/i18n/server", "@kbn/core-i18n-server-internal": "link:src/core/packages/i18n/server-internal", - "@kbn/core-injected-metadata-browser-internal": "link:packages/core/injected-metadata/core-injected-metadata-browser-internal", + "@kbn/core-injected-metadata-browser-internal": "link:src/core/packages/injected-metadata/browser-internal", "@kbn/core-injected-metadata-common-internal": "link:packages/core/injected-metadata/core-injected-metadata-common-internal", "@kbn/core-integrations-browser-internal": "link:packages/core/integrations/core-integrations-browser-internal", "@kbn/core-lifecycle-browser": "link:packages/core/lifecycle/core-lifecycle-browser", diff --git a/packages/core/injected-metadata/core-injected-metadata-browser-internal/README.md b/src/core/packages/injected-metadata/browser-internal/README.md similarity index 100% rename from packages/core/injected-metadata/core-injected-metadata-browser-internal/README.md rename to src/core/packages/injected-metadata/browser-internal/README.md diff --git a/packages/core/injected-metadata/core-injected-metadata-browser-internal/index.ts b/src/core/packages/injected-metadata/browser-internal/index.ts similarity index 100% rename from packages/core/injected-metadata/core-injected-metadata-browser-internal/index.ts rename to src/core/packages/injected-metadata/browser-internal/index.ts diff --git a/packages/core/injected-metadata/core-injected-metadata-browser-internal/jest.config.js b/src/core/packages/injected-metadata/browser-internal/jest.config.js similarity index 80% rename from packages/core/injected-metadata/core-injected-metadata-browser-internal/jest.config.js rename to src/core/packages/injected-metadata/browser-internal/jest.config.js index df07bb9aa5f60..df73a086f114e 100644 --- a/packages/core/injected-metadata/core-injected-metadata-browser-internal/jest.config.js +++ b/src/core/packages/injected-metadata/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/injected-metadata/core-injected-metadata-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/injected-metadata/browser-internal'], }; diff --git a/packages/core/injected-metadata/core-injected-metadata-browser-internal/kibana.jsonc b/src/core/packages/injected-metadata/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/injected-metadata/core-injected-metadata-browser-internal/kibana.jsonc rename to src/core/packages/injected-metadata/browser-internal/kibana.jsonc diff --git a/packages/core/injected-metadata/core-injected-metadata-browser-internal/package.json b/src/core/packages/injected-metadata/browser-internal/package.json similarity index 100% rename from packages/core/injected-metadata/core-injected-metadata-browser-internal/package.json rename to src/core/packages/injected-metadata/browser-internal/package.json diff --git a/packages/core/injected-metadata/core-injected-metadata-browser-internal/src/injected_metadata_service.test.ts b/src/core/packages/injected-metadata/browser-internal/src/injected_metadata_service.test.ts similarity index 100% rename from packages/core/injected-metadata/core-injected-metadata-browser-internal/src/injected_metadata_service.test.ts rename to src/core/packages/injected-metadata/browser-internal/src/injected_metadata_service.test.ts diff --git a/packages/core/injected-metadata/core-injected-metadata-browser-internal/src/injected_metadata_service.ts b/src/core/packages/injected-metadata/browser-internal/src/injected_metadata_service.ts similarity index 100% rename from packages/core/injected-metadata/core-injected-metadata-browser-internal/src/injected_metadata_service.ts rename to src/core/packages/injected-metadata/browser-internal/src/injected_metadata_service.ts diff --git a/packages/core/injected-metadata/core-injected-metadata-browser-internal/src/types.ts b/src/core/packages/injected-metadata/browser-internal/src/types.ts similarity index 100% rename from packages/core/injected-metadata/core-injected-metadata-browser-internal/src/types.ts rename to src/core/packages/injected-metadata/browser-internal/src/types.ts diff --git a/packages/core/injected-metadata/core-injected-metadata-browser-internal/tsconfig.json b/src/core/packages/injected-metadata/browser-internal/tsconfig.json similarity index 87% rename from packages/core/injected-metadata/core-injected-metadata-browser-internal/tsconfig.json rename to src/core/packages/injected-metadata/browser-internal/tsconfig.json index 5b8cc7fff4bc2..75d261eaee357 100644 --- a/packages/core/injected-metadata/core-injected-metadata-browser-internal/tsconfig.json +++ b/src/core/packages/injected-metadata/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index f15ad26043ff3..ccbcd075bb8da 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -428,8 +428,8 @@ "@kbn/core-i18n-server-internal/*": ["src/core/packages/i18n/server-internal/*"], "@kbn/core-i18n-server-mocks": ["packages/core/i18n/core-i18n-server-mocks"], "@kbn/core-i18n-server-mocks/*": ["packages/core/i18n/core-i18n-server-mocks/*"], - "@kbn/core-injected-metadata-browser-internal": ["packages/core/injected-metadata/core-injected-metadata-browser-internal"], - "@kbn/core-injected-metadata-browser-internal/*": ["packages/core/injected-metadata/core-injected-metadata-browser-internal/*"], + "@kbn/core-injected-metadata-browser-internal": ["src/core/packages/injected-metadata/browser-internal"], + "@kbn/core-injected-metadata-browser-internal/*": ["src/core/packages/injected-metadata/browser-internal/*"], "@kbn/core-injected-metadata-browser-mocks": ["packages/core/injected-metadata/core-injected-metadata-browser-mocks"], "@kbn/core-injected-metadata-browser-mocks/*": ["packages/core/injected-metadata/core-injected-metadata-browser-mocks/*"], "@kbn/core-injected-metadata-common-internal": ["packages/core/injected-metadata/core-injected-metadata-common-internal"], diff --git a/yarn.lock b/yarn.lock index fba62fdb57492..4ffbde4f5ce5e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4669,7 +4669,7 @@ version "0.0.0" uid "" -"@kbn/core-injected-metadata-browser-internal@link:packages/core/injected-metadata/core-injected-metadata-browser-internal": +"@kbn/core-injected-metadata-browser-internal@link:src/core/packages/injected-metadata/browser-internal": version "0.0.0" uid "" From a2d64b5b6e836c0f661fbba82c5cdd7c8d218fd9 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:49:20 +0100 Subject: [PATCH 063/167] Relocating module `@kbn/core-injected-metadata-common-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/injected-metadata/common-internal}/README.md | 0 .../core/packages/injected-metadata/common-internal}/index.ts | 0 .../injected-metadata/common-internal}/jest.config.js | 4 ++-- .../packages/injected-metadata/common-internal}/kibana.jsonc | 0 .../packages/injected-metadata/common-internal}/package.json | 0 .../packages/injected-metadata/common-internal}/src/types.ts | 0 .../packages/injected-metadata/common-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/injected-metadata/core-injected-metadata-common-internal => src/core/packages/injected-metadata/common-internal}/README.md (100%) rename {packages/core/injected-metadata/core-injected-metadata-common-internal => src/core/packages/injected-metadata/common-internal}/index.ts (100%) rename {packages/core/injected-metadata/core-injected-metadata-common-internal => src/core/packages/injected-metadata/common-internal}/jest.config.js (80%) rename {packages/core/injected-metadata/core-injected-metadata-common-internal => src/core/packages/injected-metadata/common-internal}/kibana.jsonc (100%) rename {packages/core/injected-metadata/core-injected-metadata-common-internal => src/core/packages/injected-metadata/common-internal}/package.json (100%) rename {packages/core/injected-metadata/core-injected-metadata-common-internal => src/core/packages/injected-metadata/common-internal}/src/types.ts (100%) rename {packages/core/injected-metadata/core-injected-metadata-common-internal => src/core/packages/injected-metadata/common-internal}/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e1538a4b74961..1f7b805d54e50 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -88,7 +88,6 @@ packages/core/http/core-http-server-mocks @elastic/kibana-core packages/core/i18n/core-i18n-browser-mocks @elastic/kibana-core packages/core/i18n/core-i18n-server-mocks @elastic/kibana-core packages/core/injected-metadata/core-injected-metadata-browser-mocks @elastic/kibana-core -packages/core/injected-metadata/core-injected-metadata-common-internal @elastic/kibana-core packages/core/integrations/core-integrations-browser-internal @elastic/kibana-core packages/core/integrations/core-integrations-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/i18n/browser-internal @elastic/kibana-core src/core/packages/i18n/server @elastic/kibana-core src/core/packages/i18n/server-internal @elastic/kibana-core src/core/packages/injected-metadata/browser-internal @elastic/kibana-core +src/core/packages/injected-metadata/common-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index d45a168cd9baf..27f38d21dcf84 100644 --- a/package.json +++ b/package.json @@ -318,7 +318,7 @@ "@kbn/core-i18n-server": "link:src/core/packages/i18n/server", "@kbn/core-i18n-server-internal": "link:src/core/packages/i18n/server-internal", "@kbn/core-injected-metadata-browser-internal": "link:src/core/packages/injected-metadata/browser-internal", - "@kbn/core-injected-metadata-common-internal": "link:packages/core/injected-metadata/core-injected-metadata-common-internal", + "@kbn/core-injected-metadata-common-internal": "link:src/core/packages/injected-metadata/common-internal", "@kbn/core-integrations-browser-internal": "link:packages/core/integrations/core-integrations-browser-internal", "@kbn/core-lifecycle-browser": "link:packages/core/lifecycle/core-lifecycle-browser", "@kbn/core-lifecycle-browser-internal": "link:packages/core/lifecycle/core-lifecycle-browser-internal", diff --git a/packages/core/injected-metadata/core-injected-metadata-common-internal/README.md b/src/core/packages/injected-metadata/common-internal/README.md similarity index 100% rename from packages/core/injected-metadata/core-injected-metadata-common-internal/README.md rename to src/core/packages/injected-metadata/common-internal/README.md diff --git a/packages/core/injected-metadata/core-injected-metadata-common-internal/index.ts b/src/core/packages/injected-metadata/common-internal/index.ts similarity index 100% rename from packages/core/injected-metadata/core-injected-metadata-common-internal/index.ts rename to src/core/packages/injected-metadata/common-internal/index.ts diff --git a/packages/core/injected-metadata/core-injected-metadata-common-internal/jest.config.js b/src/core/packages/injected-metadata/common-internal/jest.config.js similarity index 80% rename from packages/core/injected-metadata/core-injected-metadata-common-internal/jest.config.js rename to src/core/packages/injected-metadata/common-internal/jest.config.js index 38dbe1dc8a2d6..31f3ff66a6a01 100644 --- a/packages/core/injected-metadata/core-injected-metadata-common-internal/jest.config.js +++ b/src/core/packages/injected-metadata/common-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/injected-metadata/core-injected-metadata-common-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/injected-metadata/common-internal'], }; diff --git a/packages/core/injected-metadata/core-injected-metadata-common-internal/kibana.jsonc b/src/core/packages/injected-metadata/common-internal/kibana.jsonc similarity index 100% rename from packages/core/injected-metadata/core-injected-metadata-common-internal/kibana.jsonc rename to src/core/packages/injected-metadata/common-internal/kibana.jsonc diff --git a/packages/core/injected-metadata/core-injected-metadata-common-internal/package.json b/src/core/packages/injected-metadata/common-internal/package.json similarity index 100% rename from packages/core/injected-metadata/core-injected-metadata-common-internal/package.json rename to src/core/packages/injected-metadata/common-internal/package.json diff --git a/packages/core/injected-metadata/core-injected-metadata-common-internal/src/types.ts b/src/core/packages/injected-metadata/common-internal/src/types.ts similarity index 100% rename from packages/core/injected-metadata/core-injected-metadata-common-internal/src/types.ts rename to src/core/packages/injected-metadata/common-internal/src/types.ts diff --git a/packages/core/injected-metadata/core-injected-metadata-common-internal/tsconfig.json b/src/core/packages/injected-metadata/common-internal/tsconfig.json similarity index 89% rename from packages/core/injected-metadata/core-injected-metadata-common-internal/tsconfig.json rename to src/core/packages/injected-metadata/common-internal/tsconfig.json index 85b7e12e85625..33a5e49bed1c6 100644 --- a/packages/core/injected-metadata/core-injected-metadata-common-internal/tsconfig.json +++ b/src/core/packages/injected-metadata/common-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index ccbcd075bb8da..77a334ddcfe85 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -432,8 +432,8 @@ "@kbn/core-injected-metadata-browser-internal/*": ["src/core/packages/injected-metadata/browser-internal/*"], "@kbn/core-injected-metadata-browser-mocks": ["packages/core/injected-metadata/core-injected-metadata-browser-mocks"], "@kbn/core-injected-metadata-browser-mocks/*": ["packages/core/injected-metadata/core-injected-metadata-browser-mocks/*"], - "@kbn/core-injected-metadata-common-internal": ["packages/core/injected-metadata/core-injected-metadata-common-internal"], - "@kbn/core-injected-metadata-common-internal/*": ["packages/core/injected-metadata/core-injected-metadata-common-internal/*"], + "@kbn/core-injected-metadata-common-internal": ["src/core/packages/injected-metadata/common-internal"], + "@kbn/core-injected-metadata-common-internal/*": ["src/core/packages/injected-metadata/common-internal/*"], "@kbn/core-integrations-browser-internal": ["packages/core/integrations/core-integrations-browser-internal"], "@kbn/core-integrations-browser-internal/*": ["packages/core/integrations/core-integrations-browser-internal/*"], "@kbn/core-integrations-browser-mocks": ["packages/core/integrations/core-integrations-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index 4ffbde4f5ce5e..96c78cd2f575b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4677,7 +4677,7 @@ version "0.0.0" uid "" -"@kbn/core-injected-metadata-common-internal@link:packages/core/injected-metadata/core-injected-metadata-common-internal": +"@kbn/core-injected-metadata-common-internal@link:src/core/packages/injected-metadata/common-internal": version "0.0.0" uid "" From 61c391a1084871f7a4426322277bac3c55d675f5 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:50:15 +0100 Subject: [PATCH 064/167] Relocating module `@kbn/core-integrations-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/integrations/browser-internal}/README.md | 0 .../core/packages/integrations/browser-internal}/index.ts | 0 .../packages/integrations/browser-internal}/jest.config.js | 4 ++-- .../core/packages/integrations/browser-internal}/kibana.jsonc | 0 .../core/packages/integrations/browser-internal}/package.json | 0 .../browser-internal}/src/integrations_service.test.mocks.ts | 0 .../browser-internal}/src/integrations_service.test.ts | 0 .../browser-internal}/src/integrations_service.ts | 0 .../integrations/browser-internal}/src/moment/index.ts | 0 .../browser-internal}/src/moment/moment_service.test.mocks.ts | 0 .../browser-internal}/src/moment/moment_service.test.ts | 0 .../browser-internal}/src/moment/moment_service.ts | 0 .../browser-internal}/src/styles/disable_animations.css | 0 .../integrations/browser-internal}/src/styles/index.ts | 0 .../browser-internal}/src/styles/styles_service.test.ts | 0 .../browser-internal}/src/styles/styles_service.ts | 0 .../packages/integrations/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 21 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/README.md (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/index.ts (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/jest.config.js (82%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/kibana.jsonc (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/package.json (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/src/integrations_service.test.mocks.ts (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/src/integrations_service.test.ts (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/src/integrations_service.ts (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/src/moment/index.ts (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/src/moment/moment_service.test.mocks.ts (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/src/moment/moment_service.test.ts (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/src/moment/moment_service.ts (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/src/styles/disable_animations.css (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/src/styles/index.ts (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/src/styles/styles_service.test.ts (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/src/styles/styles_service.ts (100%) rename {packages/core/integrations/core-integrations-browser-internal => src/core/packages/integrations/browser-internal}/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1f7b805d54e50..66f1043470c63 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -88,7 +88,6 @@ packages/core/http/core-http-server-mocks @elastic/kibana-core packages/core/i18n/core-i18n-browser-mocks @elastic/kibana-core packages/core/i18n/core-i18n-server-mocks @elastic/kibana-core packages/core/injected-metadata/core-injected-metadata-browser-mocks @elastic/kibana-core -packages/core/integrations/core-integrations-browser-internal @elastic/kibana-core packages/core/integrations/core-integrations-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-browser @elastic/kibana-core packages/core/lifecycle/core-lifecycle-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/i18n/server @elastic/kibana-core src/core/packages/i18n/server-internal @elastic/kibana-core src/core/packages/injected-metadata/browser-internal @elastic/kibana-core src/core/packages/injected-metadata/common-internal @elastic/kibana-core +src/core/packages/integrations/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 27f38d21dcf84..8ee78842f4481 100644 --- a/package.json +++ b/package.json @@ -319,7 +319,7 @@ "@kbn/core-i18n-server-internal": "link:src/core/packages/i18n/server-internal", "@kbn/core-injected-metadata-browser-internal": "link:src/core/packages/injected-metadata/browser-internal", "@kbn/core-injected-metadata-common-internal": "link:src/core/packages/injected-metadata/common-internal", - "@kbn/core-integrations-browser-internal": "link:packages/core/integrations/core-integrations-browser-internal", + "@kbn/core-integrations-browser-internal": "link:src/core/packages/integrations/browser-internal", "@kbn/core-lifecycle-browser": "link:packages/core/lifecycle/core-lifecycle-browser", "@kbn/core-lifecycle-browser-internal": "link:packages/core/lifecycle/core-lifecycle-browser-internal", "@kbn/core-lifecycle-server": "link:packages/core/lifecycle/core-lifecycle-server", diff --git a/packages/core/integrations/core-integrations-browser-internal/README.md b/src/core/packages/integrations/browser-internal/README.md similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/README.md rename to src/core/packages/integrations/browser-internal/README.md diff --git a/packages/core/integrations/core-integrations-browser-internal/index.ts b/src/core/packages/integrations/browser-internal/index.ts similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/index.ts rename to src/core/packages/integrations/browser-internal/index.ts diff --git a/packages/core/integrations/core-integrations-browser-internal/jest.config.js b/src/core/packages/integrations/browser-internal/jest.config.js similarity index 82% rename from packages/core/integrations/core-integrations-browser-internal/jest.config.js rename to src/core/packages/integrations/browser-internal/jest.config.js index b63189d72c7a0..12212c5759826 100644 --- a/packages/core/integrations/core-integrations-browser-internal/jest.config.js +++ b/src/core/packages/integrations/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/integrations/core-integrations-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/integrations/browser-internal'], }; diff --git a/packages/core/integrations/core-integrations-browser-internal/kibana.jsonc b/src/core/packages/integrations/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/kibana.jsonc rename to src/core/packages/integrations/browser-internal/kibana.jsonc diff --git a/packages/core/integrations/core-integrations-browser-internal/package.json b/src/core/packages/integrations/browser-internal/package.json similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/package.json rename to src/core/packages/integrations/browser-internal/package.json diff --git a/packages/core/integrations/core-integrations-browser-internal/src/integrations_service.test.mocks.ts b/src/core/packages/integrations/browser-internal/src/integrations_service.test.mocks.ts similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/src/integrations_service.test.mocks.ts rename to src/core/packages/integrations/browser-internal/src/integrations_service.test.mocks.ts diff --git a/packages/core/integrations/core-integrations-browser-internal/src/integrations_service.test.ts b/src/core/packages/integrations/browser-internal/src/integrations_service.test.ts similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/src/integrations_service.test.ts rename to src/core/packages/integrations/browser-internal/src/integrations_service.test.ts diff --git a/packages/core/integrations/core-integrations-browser-internal/src/integrations_service.ts b/src/core/packages/integrations/browser-internal/src/integrations_service.ts similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/src/integrations_service.ts rename to src/core/packages/integrations/browser-internal/src/integrations_service.ts diff --git a/packages/core/integrations/core-integrations-browser-internal/src/moment/index.ts b/src/core/packages/integrations/browser-internal/src/moment/index.ts similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/src/moment/index.ts rename to src/core/packages/integrations/browser-internal/src/moment/index.ts diff --git a/packages/core/integrations/core-integrations-browser-internal/src/moment/moment_service.test.mocks.ts b/src/core/packages/integrations/browser-internal/src/moment/moment_service.test.mocks.ts similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/src/moment/moment_service.test.mocks.ts rename to src/core/packages/integrations/browser-internal/src/moment/moment_service.test.mocks.ts diff --git a/packages/core/integrations/core-integrations-browser-internal/src/moment/moment_service.test.ts b/src/core/packages/integrations/browser-internal/src/moment/moment_service.test.ts similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/src/moment/moment_service.test.ts rename to src/core/packages/integrations/browser-internal/src/moment/moment_service.test.ts diff --git a/packages/core/integrations/core-integrations-browser-internal/src/moment/moment_service.ts b/src/core/packages/integrations/browser-internal/src/moment/moment_service.ts similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/src/moment/moment_service.ts rename to src/core/packages/integrations/browser-internal/src/moment/moment_service.ts diff --git a/packages/core/integrations/core-integrations-browser-internal/src/styles/disable_animations.css b/src/core/packages/integrations/browser-internal/src/styles/disable_animations.css similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/src/styles/disable_animations.css rename to src/core/packages/integrations/browser-internal/src/styles/disable_animations.css diff --git a/packages/core/integrations/core-integrations-browser-internal/src/styles/index.ts b/src/core/packages/integrations/browser-internal/src/styles/index.ts similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/src/styles/index.ts rename to src/core/packages/integrations/browser-internal/src/styles/index.ts diff --git a/packages/core/integrations/core-integrations-browser-internal/src/styles/styles_service.test.ts b/src/core/packages/integrations/browser-internal/src/styles/styles_service.test.ts similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/src/styles/styles_service.test.ts rename to src/core/packages/integrations/browser-internal/src/styles/styles_service.test.ts diff --git a/packages/core/integrations/core-integrations-browser-internal/src/styles/styles_service.ts b/src/core/packages/integrations/browser-internal/src/styles/styles_service.ts similarity index 100% rename from packages/core/integrations/core-integrations-browser-internal/src/styles/styles_service.ts rename to src/core/packages/integrations/browser-internal/src/styles/styles_service.ts diff --git a/packages/core/integrations/core-integrations-browser-internal/tsconfig.json b/src/core/packages/integrations/browser-internal/tsconfig.json similarity index 87% rename from packages/core/integrations/core-integrations-browser-internal/tsconfig.json rename to src/core/packages/integrations/browser-internal/tsconfig.json index a160ce80ae03a..d755da40092c3 100644 --- a/packages/core/integrations/core-integrations-browser-internal/tsconfig.json +++ b/src/core/packages/integrations/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 77a334ddcfe85..dee2f54bcc73c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -434,8 +434,8 @@ "@kbn/core-injected-metadata-browser-mocks/*": ["packages/core/injected-metadata/core-injected-metadata-browser-mocks/*"], "@kbn/core-injected-metadata-common-internal": ["src/core/packages/injected-metadata/common-internal"], "@kbn/core-injected-metadata-common-internal/*": ["src/core/packages/injected-metadata/common-internal/*"], - "@kbn/core-integrations-browser-internal": ["packages/core/integrations/core-integrations-browser-internal"], - "@kbn/core-integrations-browser-internal/*": ["packages/core/integrations/core-integrations-browser-internal/*"], + "@kbn/core-integrations-browser-internal": ["src/core/packages/integrations/browser-internal"], + "@kbn/core-integrations-browser-internal/*": ["src/core/packages/integrations/browser-internal/*"], "@kbn/core-integrations-browser-mocks": ["packages/core/integrations/core-integrations-browser-mocks"], "@kbn/core-integrations-browser-mocks/*": ["packages/core/integrations/core-integrations-browser-mocks/*"], "@kbn/core-lifecycle-browser": ["packages/core/lifecycle/core-lifecycle-browser"], diff --git a/yarn.lock b/yarn.lock index 96c78cd2f575b..71eeaa6299a47 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4681,7 +4681,7 @@ version "0.0.0" uid "" -"@kbn/core-integrations-browser-internal@link:packages/core/integrations/core-integrations-browser-internal": +"@kbn/core-integrations-browser-internal@link:src/core/packages/integrations/browser-internal": version "0.0.0" uid "" From 71d819b4ed28ca6ef69f1583284f779e54b2ef24 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:51:08 +0100 Subject: [PATCH 065/167] Relocating module `@kbn/core-lifecycle-browser` --- .github/CODEOWNERS | 2 +- .../architecture/kibana-platform-plugin-api.asciidoc | 2 +- package.json | 2 +- .../core/packages/lifecycle/browser}/README.md | 0 .../core/packages/lifecycle/browser}/index.ts | 0 .../core/packages/lifecycle/browser}/jest.config.js | 4 ++-- .../core/packages/lifecycle/browser}/kibana.jsonc | 0 .../core/packages/lifecycle/browser}/package.json | 0 .../core/packages/lifecycle/browser}/src/core_setup.ts | 0 .../core/packages/lifecycle/browser}/src/core_start.ts | 0 .../core/packages/lifecycle/browser}/src/index.ts | 0 .../core/packages/lifecycle/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 9 insertions(+), 9 deletions(-) rename {packages/core/lifecycle/core-lifecycle-browser => src/core/packages/lifecycle/browser}/README.md (100%) rename {packages/core/lifecycle/core-lifecycle-browser => src/core/packages/lifecycle/browser}/index.ts (100%) rename {packages/core/lifecycle/core-lifecycle-browser => src/core/packages/lifecycle/browser}/jest.config.js (84%) rename {packages/core/lifecycle/core-lifecycle-browser => src/core/packages/lifecycle/browser}/kibana.jsonc (100%) rename {packages/core/lifecycle/core-lifecycle-browser => src/core/packages/lifecycle/browser}/package.json (100%) rename {packages/core/lifecycle/core-lifecycle-browser => src/core/packages/lifecycle/browser}/src/core_setup.ts (100%) rename {packages/core/lifecycle/core-lifecycle-browser => src/core/packages/lifecycle/browser}/src/core_start.ts (100%) rename {packages/core/lifecycle/core-lifecycle-browser => src/core/packages/lifecycle/browser}/src/index.ts (100%) rename {packages/core/lifecycle/core-lifecycle-browser => src/core/packages/lifecycle/browser}/tsconfig.json (94%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 66f1043470c63..82924ecaad434 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -89,7 +89,6 @@ packages/core/i18n/core-i18n-browser-mocks @elastic/kibana-core packages/core/i18n/core-i18n-server-mocks @elastic/kibana-core packages/core/injected-metadata/core-injected-metadata-browser-mocks @elastic/kibana-core packages/core/integrations/core-integrations-browser-mocks @elastic/kibana-core -packages/core/lifecycle/core-lifecycle-browser @elastic/kibana-core packages/core/lifecycle/core-lifecycle-browser-internal @elastic/kibana-core packages/core/lifecycle/core-lifecycle-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/i18n/server-internal @elastic/kibana-core src/core/packages/injected-metadata/browser-internal @elastic/kibana-core src/core/packages/injected-metadata/common-internal @elastic/kibana-core src/core/packages/integrations/browser-internal @elastic/kibana-core +src/core/packages/lifecycle/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/docs/developer/architecture/kibana-platform-plugin-api.asciidoc b/docs/developer/architecture/kibana-platform-plugin-api.asciidoc index 4c23aead9d566..1d051d2541cc4 100644 --- a/docs/developer/architecture/kibana-platform-plugin-api.asciidoc +++ b/docs/developer/architecture/kibana-platform-plugin-api.asciidoc @@ -230,7 +230,7 @@ These are the contracts exposed by the core services for each lifecycle: |_start_ |{kib-repo}blob/{branch}/packages/core/lifecycle/core-lifecycle-server/src/core_start.ts[CoreStart] -|{kib-repo}blob/{branch}/packages/core/lifecycle/core-lifecycle-browser/src/core_start.ts[CoreStart] +|{kib-repo}blob/{branch}/src/core/packages/lifecycle/browser/src/core_start.ts[CoreStart] |_stop_ | |=== diff --git a/package.json b/package.json index 8ee78842f4481..bfb97d76a84ea 100644 --- a/package.json +++ b/package.json @@ -320,7 +320,7 @@ "@kbn/core-injected-metadata-browser-internal": "link:src/core/packages/injected-metadata/browser-internal", "@kbn/core-injected-metadata-common-internal": "link:src/core/packages/injected-metadata/common-internal", "@kbn/core-integrations-browser-internal": "link:src/core/packages/integrations/browser-internal", - "@kbn/core-lifecycle-browser": "link:packages/core/lifecycle/core-lifecycle-browser", + "@kbn/core-lifecycle-browser": "link:src/core/packages/lifecycle/browser", "@kbn/core-lifecycle-browser-internal": "link:packages/core/lifecycle/core-lifecycle-browser-internal", "@kbn/core-lifecycle-server": "link:packages/core/lifecycle/core-lifecycle-server", "@kbn/core-lifecycle-server-internal": "link:packages/core/lifecycle/core-lifecycle-server-internal", diff --git a/packages/core/lifecycle/core-lifecycle-browser/README.md b/src/core/packages/lifecycle/browser/README.md similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser/README.md rename to src/core/packages/lifecycle/browser/README.md diff --git a/packages/core/lifecycle/core-lifecycle-browser/index.ts b/src/core/packages/lifecycle/browser/index.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser/index.ts rename to src/core/packages/lifecycle/browser/index.ts diff --git a/packages/core/lifecycle/core-lifecycle-browser/jest.config.js b/src/core/packages/lifecycle/browser/jest.config.js similarity index 84% rename from packages/core/lifecycle/core-lifecycle-browser/jest.config.js rename to src/core/packages/lifecycle/browser/jest.config.js index e9c3cd75591a7..f402e6156b9ae 100644 --- a/packages/core/lifecycle/core-lifecycle-browser/jest.config.js +++ b/src/core/packages/lifecycle/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/lifecycle/core-lifecycle-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/lifecycle/browser'], }; diff --git a/packages/core/lifecycle/core-lifecycle-browser/kibana.jsonc b/src/core/packages/lifecycle/browser/kibana.jsonc similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser/kibana.jsonc rename to src/core/packages/lifecycle/browser/kibana.jsonc diff --git a/packages/core/lifecycle/core-lifecycle-browser/package.json b/src/core/packages/lifecycle/browser/package.json similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser/package.json rename to src/core/packages/lifecycle/browser/package.json diff --git a/packages/core/lifecycle/core-lifecycle-browser/src/core_setup.ts b/src/core/packages/lifecycle/browser/src/core_setup.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser/src/core_setup.ts rename to src/core/packages/lifecycle/browser/src/core_setup.ts diff --git a/packages/core/lifecycle/core-lifecycle-browser/src/core_start.ts b/src/core/packages/lifecycle/browser/src/core_start.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser/src/core_start.ts rename to src/core/packages/lifecycle/browser/src/core_start.ts diff --git a/packages/core/lifecycle/core-lifecycle-browser/src/index.ts b/src/core/packages/lifecycle/browser/src/index.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser/src/index.ts rename to src/core/packages/lifecycle/browser/src/index.ts diff --git a/packages/core/lifecycle/core-lifecycle-browser/tsconfig.json b/src/core/packages/lifecycle/browser/tsconfig.json similarity index 94% rename from packages/core/lifecycle/core-lifecycle-browser/tsconfig.json rename to src/core/packages/lifecycle/browser/tsconfig.json index b7ded984ac90b..35420a3f1cd9a 100644 --- a/packages/core/lifecycle/core-lifecycle-browser/tsconfig.json +++ b/src/core/packages/lifecycle/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index dee2f54bcc73c..85e4909ae09b6 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -438,8 +438,8 @@ "@kbn/core-integrations-browser-internal/*": ["src/core/packages/integrations/browser-internal/*"], "@kbn/core-integrations-browser-mocks": ["packages/core/integrations/core-integrations-browser-mocks"], "@kbn/core-integrations-browser-mocks/*": ["packages/core/integrations/core-integrations-browser-mocks/*"], - "@kbn/core-lifecycle-browser": ["packages/core/lifecycle/core-lifecycle-browser"], - "@kbn/core-lifecycle-browser/*": ["packages/core/lifecycle/core-lifecycle-browser/*"], + "@kbn/core-lifecycle-browser": ["src/core/packages/lifecycle/browser"], + "@kbn/core-lifecycle-browser/*": ["src/core/packages/lifecycle/browser/*"], "@kbn/core-lifecycle-browser-internal": ["packages/core/lifecycle/core-lifecycle-browser-internal"], "@kbn/core-lifecycle-browser-internal/*": ["packages/core/lifecycle/core-lifecycle-browser-internal/*"], "@kbn/core-lifecycle-browser-mocks": ["packages/core/lifecycle/core-lifecycle-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index 71eeaa6299a47..71995eb919a04 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4697,7 +4697,7 @@ version "0.0.0" uid "" -"@kbn/core-lifecycle-browser@link:packages/core/lifecycle/core-lifecycle-browser": +"@kbn/core-lifecycle-browser@link:src/core/packages/lifecycle/browser": version "0.0.0" uid "" From 8059740af84c49c6d9526a9eb38f260a4d2bf78f Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:52:02 +0100 Subject: [PATCH 066/167] Relocating module `@kbn/core-lifecycle-browser-internal` --- .github/CODEOWNERS | 2 +- .../architecture/kibana-platform-plugin-api.asciidoc | 2 +- package.json | 2 +- .../core/packages/lifecycle/browser-internal}/README.md | 0 .../core/packages/lifecycle/browser-internal}/index.ts | 0 .../core/packages/lifecycle/browser-internal}/jest.config.js | 4 ++-- .../core/packages/lifecycle/browser-internal}/kibana.jsonc | 0 .../core/packages/lifecycle/browser-internal}/package.json | 0 .../core/packages/lifecycle/browser-internal}/src/index.ts | 0 .../lifecycle/browser-internal}/src/internal_core_setup.ts | 0 .../lifecycle/browser-internal}/src/internal_core_start.ts | 0 .../core/packages/lifecycle/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 9 insertions(+), 9 deletions(-) rename {packages/core/lifecycle/core-lifecycle-browser-internal => src/core/packages/lifecycle/browser-internal}/README.md (100%) rename {packages/core/lifecycle/core-lifecycle-browser-internal => src/core/packages/lifecycle/browser-internal}/index.ts (100%) rename {packages/core/lifecycle/core-lifecycle-browser-internal => src/core/packages/lifecycle/browser-internal}/jest.config.js (82%) rename {packages/core/lifecycle/core-lifecycle-browser-internal => src/core/packages/lifecycle/browser-internal}/kibana.jsonc (100%) rename {packages/core/lifecycle/core-lifecycle-browser-internal => src/core/packages/lifecycle/browser-internal}/package.json (100%) rename {packages/core/lifecycle/core-lifecycle-browser-internal => src/core/packages/lifecycle/browser-internal}/src/index.ts (100%) rename {packages/core/lifecycle/core-lifecycle-browser-internal => src/core/packages/lifecycle/browser-internal}/src/internal_core_setup.ts (100%) rename {packages/core/lifecycle/core-lifecycle-browser-internal => src/core/packages/lifecycle/browser-internal}/src/internal_core_start.ts (100%) rename {packages/core/lifecycle/core-lifecycle-browser-internal => src/core/packages/lifecycle/browser-internal}/tsconfig.json (91%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 82924ecaad434..1ca3582c9d0d2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -89,7 +89,6 @@ packages/core/i18n/core-i18n-browser-mocks @elastic/kibana-core packages/core/i18n/core-i18n-server-mocks @elastic/kibana-core packages/core/injected-metadata/core-injected-metadata-browser-mocks @elastic/kibana-core packages/core/integrations/core-integrations-browser-mocks @elastic/kibana-core -packages/core/lifecycle/core-lifecycle-browser-internal @elastic/kibana-core packages/core/lifecycle/core-lifecycle-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-server @elastic/kibana-core packages/core/lifecycle/core-lifecycle-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/injected-metadata/browser-internal @elastic/kibana-core src/core/packages/injected-metadata/common-internal @elastic/kibana-core src/core/packages/integrations/browser-internal @elastic/kibana-core src/core/packages/lifecycle/browser @elastic/kibana-core +src/core/packages/lifecycle/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/docs/developer/architecture/kibana-platform-plugin-api.asciidoc b/docs/developer/architecture/kibana-platform-plugin-api.asciidoc index 1d051d2541cc4..b4f3e0cc82297 100644 --- a/docs/developer/architecture/kibana-platform-plugin-api.asciidoc +++ b/docs/developer/architecture/kibana-platform-plugin-api.asciidoc @@ -226,7 +226,7 @@ These are the contracts exposed by the core services for each lifecycle: |_setup_ |{kib-repo}blob/{branch}/packages/core/lifecycle/core-lifecycle-server/src/core_setup.ts[CoreSetup] -|{kib-repo}blob/{branch}/packages/core/lifecycle/core-lifecycle-browser-internal/src/internal_core_setup.ts[CoreSetup] +|{kib-repo}blob/{branch}/src/core/packages/lifecycle/browser-internal/src/internal_core_setup.ts[CoreSetup] |_start_ |{kib-repo}blob/{branch}/packages/core/lifecycle/core-lifecycle-server/src/core_start.ts[CoreStart] diff --git a/package.json b/package.json index bfb97d76a84ea..ab75f402669cb 100644 --- a/package.json +++ b/package.json @@ -321,7 +321,7 @@ "@kbn/core-injected-metadata-common-internal": "link:src/core/packages/injected-metadata/common-internal", "@kbn/core-integrations-browser-internal": "link:src/core/packages/integrations/browser-internal", "@kbn/core-lifecycle-browser": "link:src/core/packages/lifecycle/browser", - "@kbn/core-lifecycle-browser-internal": "link:packages/core/lifecycle/core-lifecycle-browser-internal", + "@kbn/core-lifecycle-browser-internal": "link:src/core/packages/lifecycle/browser-internal", "@kbn/core-lifecycle-server": "link:packages/core/lifecycle/core-lifecycle-server", "@kbn/core-lifecycle-server-internal": "link:packages/core/lifecycle/core-lifecycle-server-internal", "@kbn/core-logging-browser-internal": "link:packages/core/logging/core-logging-browser-internal", diff --git a/packages/core/lifecycle/core-lifecycle-browser-internal/README.md b/src/core/packages/lifecycle/browser-internal/README.md similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser-internal/README.md rename to src/core/packages/lifecycle/browser-internal/README.md diff --git a/packages/core/lifecycle/core-lifecycle-browser-internal/index.ts b/src/core/packages/lifecycle/browser-internal/index.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser-internal/index.ts rename to src/core/packages/lifecycle/browser-internal/index.ts diff --git a/packages/core/lifecycle/core-lifecycle-browser-internal/jest.config.js b/src/core/packages/lifecycle/browser-internal/jest.config.js similarity index 82% rename from packages/core/lifecycle/core-lifecycle-browser-internal/jest.config.js rename to src/core/packages/lifecycle/browser-internal/jest.config.js index 08879ad555f4f..b30487db11950 100644 --- a/packages/core/lifecycle/core-lifecycle-browser-internal/jest.config.js +++ b/src/core/packages/lifecycle/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/lifecycle/core-lifecycle-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/lifecycle/browser-internal'], }; diff --git a/packages/core/lifecycle/core-lifecycle-browser-internal/kibana.jsonc b/src/core/packages/lifecycle/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser-internal/kibana.jsonc rename to src/core/packages/lifecycle/browser-internal/kibana.jsonc diff --git a/packages/core/lifecycle/core-lifecycle-browser-internal/package.json b/src/core/packages/lifecycle/browser-internal/package.json similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser-internal/package.json rename to src/core/packages/lifecycle/browser-internal/package.json diff --git a/packages/core/lifecycle/core-lifecycle-browser-internal/src/index.ts b/src/core/packages/lifecycle/browser-internal/src/index.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser-internal/src/index.ts rename to src/core/packages/lifecycle/browser-internal/src/index.ts diff --git a/packages/core/lifecycle/core-lifecycle-browser-internal/src/internal_core_setup.ts b/src/core/packages/lifecycle/browser-internal/src/internal_core_setup.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser-internal/src/internal_core_setup.ts rename to src/core/packages/lifecycle/browser-internal/src/internal_core_setup.ts diff --git a/packages/core/lifecycle/core-lifecycle-browser-internal/src/internal_core_start.ts b/src/core/packages/lifecycle/browser-internal/src/internal_core_start.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-browser-internal/src/internal_core_start.ts rename to src/core/packages/lifecycle/browser-internal/src/internal_core_start.ts diff --git a/packages/core/lifecycle/core-lifecycle-browser-internal/tsconfig.json b/src/core/packages/lifecycle/browser-internal/tsconfig.json similarity index 91% rename from packages/core/lifecycle/core-lifecycle-browser-internal/tsconfig.json rename to src/core/packages/lifecycle/browser-internal/tsconfig.json index 84c55c0e87b90..7a7c613f4fbf8 100644 --- a/packages/core/lifecycle/core-lifecycle-browser-internal/tsconfig.json +++ b/src/core/packages/lifecycle/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 85e4909ae09b6..5e9df4baa0673 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -440,8 +440,8 @@ "@kbn/core-integrations-browser-mocks/*": ["packages/core/integrations/core-integrations-browser-mocks/*"], "@kbn/core-lifecycle-browser": ["src/core/packages/lifecycle/browser"], "@kbn/core-lifecycle-browser/*": ["src/core/packages/lifecycle/browser/*"], - "@kbn/core-lifecycle-browser-internal": ["packages/core/lifecycle/core-lifecycle-browser-internal"], - "@kbn/core-lifecycle-browser-internal/*": ["packages/core/lifecycle/core-lifecycle-browser-internal/*"], + "@kbn/core-lifecycle-browser-internal": ["src/core/packages/lifecycle/browser-internal"], + "@kbn/core-lifecycle-browser-internal/*": ["src/core/packages/lifecycle/browser-internal/*"], "@kbn/core-lifecycle-browser-mocks": ["packages/core/lifecycle/core-lifecycle-browser-mocks"], "@kbn/core-lifecycle-browser-mocks/*": ["packages/core/lifecycle/core-lifecycle-browser-mocks/*"], "@kbn/core-lifecycle-server": ["packages/core/lifecycle/core-lifecycle-server"], diff --git a/yarn.lock b/yarn.lock index 71995eb919a04..64c067f0f08c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4689,7 +4689,7 @@ version "0.0.0" uid "" -"@kbn/core-lifecycle-browser-internal@link:packages/core/lifecycle/core-lifecycle-browser-internal": +"@kbn/core-lifecycle-browser-internal@link:src/core/packages/lifecycle/browser-internal": version "0.0.0" uid "" From 226cad699b0d46affdce14d96c764cd9b2bac31b Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:52:55 +0100 Subject: [PATCH 067/167] Relocating module `@kbn/core-lifecycle-server` --- .github/CODEOWNERS | 2 +- .../architecture/kibana-platform-plugin-api.asciidoc | 4 ++-- package.json | 2 +- .../core/packages/lifecycle/server}/README.md | 0 .../core/packages/lifecycle/server}/index.ts | 0 .../core/packages/lifecycle/server}/jest.config.js | 4 ++-- .../core/packages/lifecycle/server}/kibana.jsonc | 0 .../core/packages/lifecycle/server}/package.json | 0 .../core/packages/lifecycle/server}/src/core_preboot.ts | 0 .../core/packages/lifecycle/server}/src/core_setup.ts | 0 .../core/packages/lifecycle/server}/src/core_start.ts | 0 .../core/packages/lifecycle/server}/src/index.ts | 0 .../core/packages/lifecycle/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 10 insertions(+), 10 deletions(-) rename {packages/core/lifecycle/core-lifecycle-server => src/core/packages/lifecycle/server}/README.md (100%) rename {packages/core/lifecycle/core-lifecycle-server => src/core/packages/lifecycle/server}/index.ts (100%) rename {packages/core/lifecycle/core-lifecycle-server => src/core/packages/lifecycle/server}/jest.config.js (84%) rename {packages/core/lifecycle/core-lifecycle-server => src/core/packages/lifecycle/server}/kibana.jsonc (100%) rename {packages/core/lifecycle/core-lifecycle-server => src/core/packages/lifecycle/server}/package.json (100%) rename {packages/core/lifecycle/core-lifecycle-server => src/core/packages/lifecycle/server}/src/core_preboot.ts (100%) rename {packages/core/lifecycle/core-lifecycle-server => src/core/packages/lifecycle/server}/src/core_setup.ts (100%) rename {packages/core/lifecycle/core-lifecycle-server => src/core/packages/lifecycle/server}/src/core_start.ts (100%) rename {packages/core/lifecycle/core-lifecycle-server => src/core/packages/lifecycle/server}/src/index.ts (100%) rename {packages/core/lifecycle/core-lifecycle-server => src/core/packages/lifecycle/server}/tsconfig.json (95%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1ca3582c9d0d2..57624f8a9cb8f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -90,7 +90,6 @@ packages/core/i18n/core-i18n-server-mocks @elastic/kibana-core packages/core/injected-metadata/core-injected-metadata-browser-mocks @elastic/kibana-core packages/core/integrations/core-integrations-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-browser-mocks @elastic/kibana-core -packages/core/lifecycle/core-lifecycle-server @elastic/kibana-core packages/core/lifecycle/core-lifecycle-server-internal @elastic/kibana-core packages/core/lifecycle/core-lifecycle-server-mocks @elastic/kibana-core packages/core/logging/core-logging-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/injected-metadata/common-internal @elastic/kibana-core src/core/packages/integrations/browser-internal @elastic/kibana-core src/core/packages/lifecycle/browser @elastic/kibana-core src/core/packages/lifecycle/browser-internal @elastic/kibana-core +src/core/packages/lifecycle/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/docs/developer/architecture/kibana-platform-plugin-api.asciidoc b/docs/developer/architecture/kibana-platform-plugin-api.asciidoc index b4f3e0cc82297..05a7cf751b391 100644 --- a/docs/developer/architecture/kibana-platform-plugin-api.asciidoc +++ b/docs/developer/architecture/kibana-platform-plugin-api.asciidoc @@ -225,11 +225,11 @@ These are the contracts exposed by the core services for each lifecycle: |{kib-repo}blob/{branch}/packages/core/plugins/core-plugins-browser/src/plugin_initializer.ts[PluginInitializerContext] |_setup_ -|{kib-repo}blob/{branch}/packages/core/lifecycle/core-lifecycle-server/src/core_setup.ts[CoreSetup] +|{kib-repo}blob/{branch}/src/core/packages/lifecycle/server/src/core_setup.ts[CoreSetup] |{kib-repo}blob/{branch}/src/core/packages/lifecycle/browser-internal/src/internal_core_setup.ts[CoreSetup] |_start_ -|{kib-repo}blob/{branch}/packages/core/lifecycle/core-lifecycle-server/src/core_start.ts[CoreStart] +|{kib-repo}blob/{branch}/src/core/packages/lifecycle/server/src/core_start.ts[CoreStart] |{kib-repo}blob/{branch}/src/core/packages/lifecycle/browser/src/core_start.ts[CoreStart] |_stop_ | diff --git a/package.json b/package.json index ab75f402669cb..fce46743e2654 100644 --- a/package.json +++ b/package.json @@ -322,7 +322,7 @@ "@kbn/core-integrations-browser-internal": "link:src/core/packages/integrations/browser-internal", "@kbn/core-lifecycle-browser": "link:src/core/packages/lifecycle/browser", "@kbn/core-lifecycle-browser-internal": "link:src/core/packages/lifecycle/browser-internal", - "@kbn/core-lifecycle-server": "link:packages/core/lifecycle/core-lifecycle-server", + "@kbn/core-lifecycle-server": "link:src/core/packages/lifecycle/server", "@kbn/core-lifecycle-server-internal": "link:packages/core/lifecycle/core-lifecycle-server-internal", "@kbn/core-logging-browser-internal": "link:packages/core/logging/core-logging-browser-internal", "@kbn/core-logging-common-internal": "link:packages/core/logging/core-logging-common-internal", diff --git a/packages/core/lifecycle/core-lifecycle-server/README.md b/src/core/packages/lifecycle/server/README.md similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server/README.md rename to src/core/packages/lifecycle/server/README.md diff --git a/packages/core/lifecycle/core-lifecycle-server/index.ts b/src/core/packages/lifecycle/server/index.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server/index.ts rename to src/core/packages/lifecycle/server/index.ts diff --git a/packages/core/lifecycle/core-lifecycle-server/jest.config.js b/src/core/packages/lifecycle/server/jest.config.js similarity index 84% rename from packages/core/lifecycle/core-lifecycle-server/jest.config.js rename to src/core/packages/lifecycle/server/jest.config.js index c78af9f60faba..514246a8a9cff 100644 --- a/packages/core/lifecycle/core-lifecycle-server/jest.config.js +++ b/src/core/packages/lifecycle/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/lifecycle/core-lifecycle-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/lifecycle/server'], }; diff --git a/packages/core/lifecycle/core-lifecycle-server/kibana.jsonc b/src/core/packages/lifecycle/server/kibana.jsonc similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server/kibana.jsonc rename to src/core/packages/lifecycle/server/kibana.jsonc diff --git a/packages/core/lifecycle/core-lifecycle-server/package.json b/src/core/packages/lifecycle/server/package.json similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server/package.json rename to src/core/packages/lifecycle/server/package.json diff --git a/packages/core/lifecycle/core-lifecycle-server/src/core_preboot.ts b/src/core/packages/lifecycle/server/src/core_preboot.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server/src/core_preboot.ts rename to src/core/packages/lifecycle/server/src/core_preboot.ts diff --git a/packages/core/lifecycle/core-lifecycle-server/src/core_setup.ts b/src/core/packages/lifecycle/server/src/core_setup.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server/src/core_setup.ts rename to src/core/packages/lifecycle/server/src/core_setup.ts diff --git a/packages/core/lifecycle/core-lifecycle-server/src/core_start.ts b/src/core/packages/lifecycle/server/src/core_start.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server/src/core_start.ts rename to src/core/packages/lifecycle/server/src/core_start.ts diff --git a/packages/core/lifecycle/core-lifecycle-server/src/index.ts b/src/core/packages/lifecycle/server/src/index.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server/src/index.ts rename to src/core/packages/lifecycle/server/src/index.ts diff --git a/packages/core/lifecycle/core-lifecycle-server/tsconfig.json b/src/core/packages/lifecycle/server/tsconfig.json similarity index 95% rename from packages/core/lifecycle/core-lifecycle-server/tsconfig.json rename to src/core/packages/lifecycle/server/tsconfig.json index c8b95eed1e6d7..2a1ee1ca6d63d 100644 --- a/packages/core/lifecycle/core-lifecycle-server/tsconfig.json +++ b/src/core/packages/lifecycle/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 5e9df4baa0673..8b4b7fc283acb 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -444,8 +444,8 @@ "@kbn/core-lifecycle-browser-internal/*": ["src/core/packages/lifecycle/browser-internal/*"], "@kbn/core-lifecycle-browser-mocks": ["packages/core/lifecycle/core-lifecycle-browser-mocks"], "@kbn/core-lifecycle-browser-mocks/*": ["packages/core/lifecycle/core-lifecycle-browser-mocks/*"], - "@kbn/core-lifecycle-server": ["packages/core/lifecycle/core-lifecycle-server"], - "@kbn/core-lifecycle-server/*": ["packages/core/lifecycle/core-lifecycle-server/*"], + "@kbn/core-lifecycle-server": ["src/core/packages/lifecycle/server"], + "@kbn/core-lifecycle-server/*": ["src/core/packages/lifecycle/server/*"], "@kbn/core-lifecycle-server-internal": ["packages/core/lifecycle/core-lifecycle-server-internal"], "@kbn/core-lifecycle-server-internal/*": ["packages/core/lifecycle/core-lifecycle-server-internal/*"], "@kbn/core-lifecycle-server-mocks": ["packages/core/lifecycle/core-lifecycle-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 64c067f0f08c3..c946800b2d770 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4709,7 +4709,7 @@ version "0.0.0" uid "" -"@kbn/core-lifecycle-server@link:packages/core/lifecycle/core-lifecycle-server": +"@kbn/core-lifecycle-server@link:src/core/packages/lifecycle/server": version "0.0.0" uid "" From 9c961e8fbdce609c4cad4c7bc6eefd4270059cd3 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:53:48 +0100 Subject: [PATCH 068/167] Relocating module `@kbn/core-lifecycle-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/lifecycle/server-internal}/README.md | 0 .../core/packages/lifecycle/server-internal}/index.ts | 0 .../core/packages/lifecycle/server-internal}/jest.config.js | 4 ++-- .../core/packages/lifecycle/server-internal}/kibana.jsonc | 0 .../core/packages/lifecycle/server-internal}/package.json | 0 .../core/packages/lifecycle/server-internal}/src/index.ts | 0 .../lifecycle/server-internal}/src/internal_core_preboot.ts | 0 .../lifecycle/server-internal}/src/internal_core_setup.ts | 0 .../lifecycle/server-internal}/src/internal_core_start.ts | 0 .../core/packages/lifecycle/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/lifecycle/core-lifecycle-server-internal => src/core/packages/lifecycle/server-internal}/README.md (100%) rename {packages/core/lifecycle/core-lifecycle-server-internal => src/core/packages/lifecycle/server-internal}/index.ts (100%) rename {packages/core/lifecycle/core-lifecycle-server-internal => src/core/packages/lifecycle/server-internal}/jest.config.js (83%) rename {packages/core/lifecycle/core-lifecycle-server-internal => src/core/packages/lifecycle/server-internal}/kibana.jsonc (100%) rename {packages/core/lifecycle/core-lifecycle-server-internal => src/core/packages/lifecycle/server-internal}/package.json (100%) rename {packages/core/lifecycle/core-lifecycle-server-internal => src/core/packages/lifecycle/server-internal}/src/index.ts (100%) rename {packages/core/lifecycle/core-lifecycle-server-internal => src/core/packages/lifecycle/server-internal}/src/internal_core_preboot.ts (100%) rename {packages/core/lifecycle/core-lifecycle-server-internal => src/core/packages/lifecycle/server-internal}/src/internal_core_setup.ts (100%) rename {packages/core/lifecycle/core-lifecycle-server-internal => src/core/packages/lifecycle/server-internal}/src/internal_core_start.ts (100%) rename {packages/core/lifecycle/core-lifecycle-server-internal => src/core/packages/lifecycle/server-internal}/tsconfig.json (96%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 57624f8a9cb8f..4ecf9a939c4f8 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -90,7 +90,6 @@ packages/core/i18n/core-i18n-server-mocks @elastic/kibana-core packages/core/injected-metadata/core-injected-metadata-browser-mocks @elastic/kibana-core packages/core/integrations/core-integrations-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-browser-mocks @elastic/kibana-core -packages/core/lifecycle/core-lifecycle-server-internal @elastic/kibana-core packages/core/lifecycle/core-lifecycle-server-mocks @elastic/kibana-core packages/core/logging/core-logging-browser-internal @elastic/kibana-core packages/core/logging/core-logging-browser-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/integrations/browser-internal @elastic/kibana-core src/core/packages/lifecycle/browser @elastic/kibana-core src/core/packages/lifecycle/browser-internal @elastic/kibana-core src/core/packages/lifecycle/server @elastic/kibana-core +src/core/packages/lifecycle/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index fce46743e2654..2153377bcf633 100644 --- a/package.json +++ b/package.json @@ -323,7 +323,7 @@ "@kbn/core-lifecycle-browser": "link:src/core/packages/lifecycle/browser", "@kbn/core-lifecycle-browser-internal": "link:src/core/packages/lifecycle/browser-internal", "@kbn/core-lifecycle-server": "link:src/core/packages/lifecycle/server", - "@kbn/core-lifecycle-server-internal": "link:packages/core/lifecycle/core-lifecycle-server-internal", + "@kbn/core-lifecycle-server-internal": "link:src/core/packages/lifecycle/server-internal", "@kbn/core-logging-browser-internal": "link:packages/core/logging/core-logging-browser-internal", "@kbn/core-logging-common-internal": "link:packages/core/logging/core-logging-common-internal", "@kbn/core-logging-server": "link:packages/core/logging/core-logging-server", diff --git a/packages/core/lifecycle/core-lifecycle-server-internal/README.md b/src/core/packages/lifecycle/server-internal/README.md similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server-internal/README.md rename to src/core/packages/lifecycle/server-internal/README.md diff --git a/packages/core/lifecycle/core-lifecycle-server-internal/index.ts b/src/core/packages/lifecycle/server-internal/index.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server-internal/index.ts rename to src/core/packages/lifecycle/server-internal/index.ts diff --git a/packages/core/lifecycle/core-lifecycle-server-internal/jest.config.js b/src/core/packages/lifecycle/server-internal/jest.config.js similarity index 83% rename from packages/core/lifecycle/core-lifecycle-server-internal/jest.config.js rename to src/core/packages/lifecycle/server-internal/jest.config.js index 590ce4aa7a579..672f626f012af 100644 --- a/packages/core/lifecycle/core-lifecycle-server-internal/jest.config.js +++ b/src/core/packages/lifecycle/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/lifecycle/core-lifecycle-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/lifecycle/server-internal'], }; diff --git a/packages/core/lifecycle/core-lifecycle-server-internal/kibana.jsonc b/src/core/packages/lifecycle/server-internal/kibana.jsonc similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server-internal/kibana.jsonc rename to src/core/packages/lifecycle/server-internal/kibana.jsonc diff --git a/packages/core/lifecycle/core-lifecycle-server-internal/package.json b/src/core/packages/lifecycle/server-internal/package.json similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server-internal/package.json rename to src/core/packages/lifecycle/server-internal/package.json diff --git a/packages/core/lifecycle/core-lifecycle-server-internal/src/index.ts b/src/core/packages/lifecycle/server-internal/src/index.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server-internal/src/index.ts rename to src/core/packages/lifecycle/server-internal/src/index.ts diff --git a/packages/core/lifecycle/core-lifecycle-server-internal/src/internal_core_preboot.ts b/src/core/packages/lifecycle/server-internal/src/internal_core_preboot.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server-internal/src/internal_core_preboot.ts rename to src/core/packages/lifecycle/server-internal/src/internal_core_preboot.ts diff --git a/packages/core/lifecycle/core-lifecycle-server-internal/src/internal_core_setup.ts b/src/core/packages/lifecycle/server-internal/src/internal_core_setup.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server-internal/src/internal_core_setup.ts rename to src/core/packages/lifecycle/server-internal/src/internal_core_setup.ts diff --git a/packages/core/lifecycle/core-lifecycle-server-internal/src/internal_core_start.ts b/src/core/packages/lifecycle/server-internal/src/internal_core_start.ts similarity index 100% rename from packages/core/lifecycle/core-lifecycle-server-internal/src/internal_core_start.ts rename to src/core/packages/lifecycle/server-internal/src/internal_core_start.ts diff --git a/packages/core/lifecycle/core-lifecycle-server-internal/tsconfig.json b/src/core/packages/lifecycle/server-internal/tsconfig.json similarity index 96% rename from packages/core/lifecycle/core-lifecycle-server-internal/tsconfig.json rename to src/core/packages/lifecycle/server-internal/tsconfig.json index 5f7939e82e533..5180c54f857dc 100644 --- a/packages/core/lifecycle/core-lifecycle-server-internal/tsconfig.json +++ b/src/core/packages/lifecycle/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 8b4b7fc283acb..16f9576652c8a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -446,8 +446,8 @@ "@kbn/core-lifecycle-browser-mocks/*": ["packages/core/lifecycle/core-lifecycle-browser-mocks/*"], "@kbn/core-lifecycle-server": ["src/core/packages/lifecycle/server"], "@kbn/core-lifecycle-server/*": ["src/core/packages/lifecycle/server/*"], - "@kbn/core-lifecycle-server-internal": ["packages/core/lifecycle/core-lifecycle-server-internal"], - "@kbn/core-lifecycle-server-internal/*": ["packages/core/lifecycle/core-lifecycle-server-internal/*"], + "@kbn/core-lifecycle-server-internal": ["src/core/packages/lifecycle/server-internal"], + "@kbn/core-lifecycle-server-internal/*": ["src/core/packages/lifecycle/server-internal/*"], "@kbn/core-lifecycle-server-mocks": ["packages/core/lifecycle/core-lifecycle-server-mocks"], "@kbn/core-lifecycle-server-mocks/*": ["packages/core/lifecycle/core-lifecycle-server-mocks/*"], "@kbn/core-logging-browser-internal": ["packages/core/logging/core-logging-browser-internal"], diff --git a/yarn.lock b/yarn.lock index c946800b2d770..27ec9657ca90c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4701,7 +4701,7 @@ version "0.0.0" uid "" -"@kbn/core-lifecycle-server-internal@link:packages/core/lifecycle/core-lifecycle-server-internal": +"@kbn/core-lifecycle-server-internal@link:src/core/packages/lifecycle/server-internal": version "0.0.0" uid "" From a894c82604eb9ef7d41d28a45df01282a1b9ed38 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:54:40 +0100 Subject: [PATCH 069/167] Relocating module `@kbn/core-logging-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/logging/browser-internal}/README.md | 0 .../core/packages/logging/browser-internal}/index.ts | 0 .../core/packages/logging/browser-internal}/jest.config.js | 4 ++-- .../core/packages/logging/browser-internal}/kibana.jsonc | 0 .../core/packages/logging/browser-internal}/package.json | 0 .../browser-internal}/src/appenders/console_appender.test.ts | 0 .../browser-internal}/src/appenders/console_appender.ts | 0 .../packages/logging/browser-internal}/src/appenders/index.ts | 0 .../core/packages/logging/browser-internal}/src/index.ts | 0 .../src/layouts/__snapshots__/pattern_layout.test.ts.snap | 0 .../packages/logging/browser-internal}/src/layouts/index.ts | 0 .../browser-internal}/src/layouts/pattern_layout.test.ts | 0 .../logging/browser-internal}/src/layouts/pattern_layout.ts | 0 .../packages/logging/browser-internal}/src/logger.test.ts | 0 .../core/packages/logging/browser-internal}/src/logger.ts | 0 .../logging/browser-internal}/src/logging_system.test.ts | 0 .../packages/logging/browser-internal}/src/logging_system.ts | 0 .../core/packages/logging/browser-internal}/src/types.ts | 0 .../core/packages/logging/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 23 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/README.md (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/index.ts (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/jest.config.js (83%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/kibana.jsonc (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/package.json (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/src/appenders/console_appender.test.ts (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/src/appenders/console_appender.ts (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/src/appenders/index.ts (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/src/index.ts (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/src/layouts/__snapshots__/pattern_layout.test.ts.snap (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/src/layouts/index.ts (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/src/layouts/pattern_layout.test.ts (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/src/layouts/pattern_layout.ts (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/src/logger.test.ts (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/src/logger.ts (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/src/logging_system.test.ts (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/src/logging_system.ts (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/src/types.ts (100%) rename {packages/core/logging/core-logging-browser-internal => src/core/packages/logging/browser-internal}/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4ecf9a939c4f8..c2ae150f6af45 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -91,7 +91,6 @@ packages/core/injected-metadata/core-injected-metadata-browser-mocks @elastic/ki packages/core/integrations/core-integrations-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-server-mocks @elastic/kibana-core -packages/core/logging/core-logging-browser-internal @elastic/kibana-core packages/core/logging/core-logging-browser-mocks @elastic/kibana-core packages/core/logging/core-logging-common-internal @elastic/kibana-core packages/core/logging/core-logging-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/lifecycle/browser @elastic/kibana-core src/core/packages/lifecycle/browser-internal @elastic/kibana-core src/core/packages/lifecycle/server @elastic/kibana-core src/core/packages/lifecycle/server-internal @elastic/kibana-core +src/core/packages/logging/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 2153377bcf633..bbaef9126afae 100644 --- a/package.json +++ b/package.json @@ -324,7 +324,7 @@ "@kbn/core-lifecycle-browser-internal": "link:src/core/packages/lifecycle/browser-internal", "@kbn/core-lifecycle-server": "link:src/core/packages/lifecycle/server", "@kbn/core-lifecycle-server-internal": "link:src/core/packages/lifecycle/server-internal", - "@kbn/core-logging-browser-internal": "link:packages/core/logging/core-logging-browser-internal", + "@kbn/core-logging-browser-internal": "link:src/core/packages/logging/browser-internal", "@kbn/core-logging-common-internal": "link:packages/core/logging/core-logging-common-internal", "@kbn/core-logging-server": "link:packages/core/logging/core-logging-server", "@kbn/core-logging-server-internal": "link:packages/core/logging/core-logging-server-internal", diff --git a/packages/core/logging/core-logging-browser-internal/README.md b/src/core/packages/logging/browser-internal/README.md similarity index 100% rename from packages/core/logging/core-logging-browser-internal/README.md rename to src/core/packages/logging/browser-internal/README.md diff --git a/packages/core/logging/core-logging-browser-internal/index.ts b/src/core/packages/logging/browser-internal/index.ts similarity index 100% rename from packages/core/logging/core-logging-browser-internal/index.ts rename to src/core/packages/logging/browser-internal/index.ts diff --git a/packages/core/logging/core-logging-browser-internal/jest.config.js b/src/core/packages/logging/browser-internal/jest.config.js similarity index 83% rename from packages/core/logging/core-logging-browser-internal/jest.config.js rename to src/core/packages/logging/browser-internal/jest.config.js index e5368b214af83..5aa1dc9e83126 100644 --- a/packages/core/logging/core-logging-browser-internal/jest.config.js +++ b/src/core/packages/logging/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/logging/core-logging-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/logging/browser-internal'], }; diff --git a/packages/core/logging/core-logging-browser-internal/kibana.jsonc b/src/core/packages/logging/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/logging/core-logging-browser-internal/kibana.jsonc rename to src/core/packages/logging/browser-internal/kibana.jsonc diff --git a/packages/core/logging/core-logging-browser-internal/package.json b/src/core/packages/logging/browser-internal/package.json similarity index 100% rename from packages/core/logging/core-logging-browser-internal/package.json rename to src/core/packages/logging/browser-internal/package.json diff --git a/packages/core/logging/core-logging-browser-internal/src/appenders/console_appender.test.ts b/src/core/packages/logging/browser-internal/src/appenders/console_appender.test.ts similarity index 100% rename from packages/core/logging/core-logging-browser-internal/src/appenders/console_appender.test.ts rename to src/core/packages/logging/browser-internal/src/appenders/console_appender.test.ts diff --git a/packages/core/logging/core-logging-browser-internal/src/appenders/console_appender.ts b/src/core/packages/logging/browser-internal/src/appenders/console_appender.ts similarity index 100% rename from packages/core/logging/core-logging-browser-internal/src/appenders/console_appender.ts rename to src/core/packages/logging/browser-internal/src/appenders/console_appender.ts diff --git a/packages/core/logging/core-logging-browser-internal/src/appenders/index.ts b/src/core/packages/logging/browser-internal/src/appenders/index.ts similarity index 100% rename from packages/core/logging/core-logging-browser-internal/src/appenders/index.ts rename to src/core/packages/logging/browser-internal/src/appenders/index.ts diff --git a/packages/core/logging/core-logging-browser-internal/src/index.ts b/src/core/packages/logging/browser-internal/src/index.ts similarity index 100% rename from packages/core/logging/core-logging-browser-internal/src/index.ts rename to src/core/packages/logging/browser-internal/src/index.ts diff --git a/packages/core/logging/core-logging-browser-internal/src/layouts/__snapshots__/pattern_layout.test.ts.snap b/src/core/packages/logging/browser-internal/src/layouts/__snapshots__/pattern_layout.test.ts.snap similarity index 100% rename from packages/core/logging/core-logging-browser-internal/src/layouts/__snapshots__/pattern_layout.test.ts.snap rename to src/core/packages/logging/browser-internal/src/layouts/__snapshots__/pattern_layout.test.ts.snap diff --git a/packages/core/logging/core-logging-browser-internal/src/layouts/index.ts b/src/core/packages/logging/browser-internal/src/layouts/index.ts similarity index 100% rename from packages/core/logging/core-logging-browser-internal/src/layouts/index.ts rename to src/core/packages/logging/browser-internal/src/layouts/index.ts diff --git a/packages/core/logging/core-logging-browser-internal/src/layouts/pattern_layout.test.ts b/src/core/packages/logging/browser-internal/src/layouts/pattern_layout.test.ts similarity index 100% rename from packages/core/logging/core-logging-browser-internal/src/layouts/pattern_layout.test.ts rename to src/core/packages/logging/browser-internal/src/layouts/pattern_layout.test.ts diff --git a/packages/core/logging/core-logging-browser-internal/src/layouts/pattern_layout.ts b/src/core/packages/logging/browser-internal/src/layouts/pattern_layout.ts similarity index 100% rename from packages/core/logging/core-logging-browser-internal/src/layouts/pattern_layout.ts rename to src/core/packages/logging/browser-internal/src/layouts/pattern_layout.ts diff --git a/packages/core/logging/core-logging-browser-internal/src/logger.test.ts b/src/core/packages/logging/browser-internal/src/logger.test.ts similarity index 100% rename from packages/core/logging/core-logging-browser-internal/src/logger.test.ts rename to src/core/packages/logging/browser-internal/src/logger.test.ts diff --git a/packages/core/logging/core-logging-browser-internal/src/logger.ts b/src/core/packages/logging/browser-internal/src/logger.ts similarity index 100% rename from packages/core/logging/core-logging-browser-internal/src/logger.ts rename to src/core/packages/logging/browser-internal/src/logger.ts diff --git a/packages/core/logging/core-logging-browser-internal/src/logging_system.test.ts b/src/core/packages/logging/browser-internal/src/logging_system.test.ts similarity index 100% rename from packages/core/logging/core-logging-browser-internal/src/logging_system.test.ts rename to src/core/packages/logging/browser-internal/src/logging_system.test.ts diff --git a/packages/core/logging/core-logging-browser-internal/src/logging_system.ts b/src/core/packages/logging/browser-internal/src/logging_system.ts similarity index 100% rename from packages/core/logging/core-logging-browser-internal/src/logging_system.ts rename to src/core/packages/logging/browser-internal/src/logging_system.ts diff --git a/packages/core/logging/core-logging-browser-internal/src/types.ts b/src/core/packages/logging/browser-internal/src/types.ts similarity index 100% rename from packages/core/logging/core-logging-browser-internal/src/types.ts rename to src/core/packages/logging/browser-internal/src/types.ts diff --git a/packages/core/logging/core-logging-browser-internal/tsconfig.json b/src/core/packages/logging/browser-internal/tsconfig.json similarity index 85% rename from packages/core/logging/core-logging-browser-internal/tsconfig.json rename to src/core/packages/logging/browser-internal/tsconfig.json index 89c06b251c39b..5622d8f447ac1 100644 --- a/packages/core/logging/core-logging-browser-internal/tsconfig.json +++ b/src/core/packages/logging/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 16f9576652c8a..199bc7c8504e5 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -450,8 +450,8 @@ "@kbn/core-lifecycle-server-internal/*": ["src/core/packages/lifecycle/server-internal/*"], "@kbn/core-lifecycle-server-mocks": ["packages/core/lifecycle/core-lifecycle-server-mocks"], "@kbn/core-lifecycle-server-mocks/*": ["packages/core/lifecycle/core-lifecycle-server-mocks/*"], - "@kbn/core-logging-browser-internal": ["packages/core/logging/core-logging-browser-internal"], - "@kbn/core-logging-browser-internal/*": ["packages/core/logging/core-logging-browser-internal/*"], + "@kbn/core-logging-browser-internal": ["src/core/packages/logging/browser-internal"], + "@kbn/core-logging-browser-internal/*": ["src/core/packages/logging/browser-internal/*"], "@kbn/core-logging-browser-mocks": ["packages/core/logging/core-logging-browser-mocks"], "@kbn/core-logging-browser-mocks/*": ["packages/core/logging/core-logging-browser-mocks/*"], "@kbn/core-logging-common-internal": ["packages/core/logging/core-logging-common-internal"], diff --git a/yarn.lock b/yarn.lock index 27ec9657ca90c..c28c7d513521e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4713,7 +4713,7 @@ version "0.0.0" uid "" -"@kbn/core-logging-browser-internal@link:packages/core/logging/core-logging-browser-internal": +"@kbn/core-logging-browser-internal@link:src/core/packages/logging/browser-internal": version "0.0.0" uid "" From 99f4bc7703722627aa11d19028279f15cc8a792f Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:55:34 +0100 Subject: [PATCH 070/167] Relocating module `@kbn/core-logging-common-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/logging/common-internal}/README.md | 0 .../core/packages/logging/common-internal}/index.ts | 0 .../core/packages/logging/common-internal}/jest.config.js | 4 ++-- .../core/packages/logging/common-internal}/kibana.jsonc | 0 .../core/packages/logging/common-internal}/package.json | 0 .../packages/logging/common-internal}/src/browser_config.ts | 0 .../core/packages/logging/common-internal}/src/index.ts | 0 .../src/layouts/__snapshots__/pattern_layout.test.ts.snap | 0 .../logging/common-internal}/src/layouts/conversions/date.ts | 0 .../logging/common-internal}/src/layouts/conversions/index.ts | 0 .../logging/common-internal}/src/layouts/conversions/level.ts | 0 .../common-internal}/src/layouts/conversions/logger.ts | 0 .../common-internal}/src/layouts/conversions/message.test.ts | 0 .../common-internal}/src/layouts/conversions/message.ts | 0 .../logging/common-internal}/src/layouts/conversions/meta.ts | 0 .../logging/common-internal}/src/layouts/conversions/types.ts | 0 .../packages/logging/common-internal}/src/layouts/index.ts | 0 .../common-internal}/src/layouts/pattern_layout.test.ts | 0 .../logging/common-internal}/src/layouts/pattern_layout.ts | 0 .../core/packages/logging/common-internal}/src/logger.test.ts | 0 .../core/packages/logging/common-internal}/src/logger.ts | 0 .../logging/common-internal}/src/logger_context.test.ts | 0 .../packages/logging/common-internal}/src/logger_context.ts | 0 .../core/packages/logging/common-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 28 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/README.md (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/index.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/jest.config.js (83%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/kibana.jsonc (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/package.json (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/browser_config.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/index.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/layouts/__snapshots__/pattern_layout.test.ts.snap (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/layouts/conversions/date.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/layouts/conversions/index.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/layouts/conversions/level.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/layouts/conversions/logger.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/layouts/conversions/message.test.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/layouts/conversions/message.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/layouts/conversions/meta.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/layouts/conversions/types.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/layouts/index.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/layouts/pattern_layout.test.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/layouts/pattern_layout.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/logger.test.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/logger.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/logger_context.test.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/src/logger_context.ts (100%) rename {packages/core/logging/core-logging-common-internal => src/core/packages/logging/common-internal}/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c2ae150f6af45..b5c6fcaac3662 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -92,7 +92,6 @@ packages/core/integrations/core-integrations-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-server-mocks @elastic/kibana-core packages/core/logging/core-logging-browser-mocks @elastic/kibana-core -packages/core/logging/core-logging-common-internal @elastic/kibana-core packages/core/logging/core-logging-server @elastic/kibana-core packages/core/logging/core-logging-server-internal @elastic/kibana-core packages/core/logging/core-logging-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/lifecycle/browser-internal @elastic/kibana-core src/core/packages/lifecycle/server @elastic/kibana-core src/core/packages/lifecycle/server-internal @elastic/kibana-core src/core/packages/logging/browser-internal @elastic/kibana-core +src/core/packages/logging/common-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index bbaef9126afae..6a27aaf32707e 100644 --- a/package.json +++ b/package.json @@ -325,7 +325,7 @@ "@kbn/core-lifecycle-server": "link:src/core/packages/lifecycle/server", "@kbn/core-lifecycle-server-internal": "link:src/core/packages/lifecycle/server-internal", "@kbn/core-logging-browser-internal": "link:src/core/packages/logging/browser-internal", - "@kbn/core-logging-common-internal": "link:packages/core/logging/core-logging-common-internal", + "@kbn/core-logging-common-internal": "link:src/core/packages/logging/common-internal", "@kbn/core-logging-server": "link:packages/core/logging/core-logging-server", "@kbn/core-logging-server-internal": "link:packages/core/logging/core-logging-server-internal", "@kbn/core-metrics-collectors-server-internal": "link:packages/core/metrics/core-metrics-collectors-server-internal", diff --git a/packages/core/logging/core-logging-common-internal/README.md b/src/core/packages/logging/common-internal/README.md similarity index 100% rename from packages/core/logging/core-logging-common-internal/README.md rename to src/core/packages/logging/common-internal/README.md diff --git a/packages/core/logging/core-logging-common-internal/index.ts b/src/core/packages/logging/common-internal/index.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/index.ts rename to src/core/packages/logging/common-internal/index.ts diff --git a/packages/core/logging/core-logging-common-internal/jest.config.js b/src/core/packages/logging/common-internal/jest.config.js similarity index 83% rename from packages/core/logging/core-logging-common-internal/jest.config.js rename to src/core/packages/logging/common-internal/jest.config.js index 178b1c8580aeb..05e852c3691a4 100644 --- a/packages/core/logging/core-logging-common-internal/jest.config.js +++ b/src/core/packages/logging/common-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/logging/core-logging-common-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/logging/common-internal'], }; diff --git a/packages/core/logging/core-logging-common-internal/kibana.jsonc b/src/core/packages/logging/common-internal/kibana.jsonc similarity index 100% rename from packages/core/logging/core-logging-common-internal/kibana.jsonc rename to src/core/packages/logging/common-internal/kibana.jsonc diff --git a/packages/core/logging/core-logging-common-internal/package.json b/src/core/packages/logging/common-internal/package.json similarity index 100% rename from packages/core/logging/core-logging-common-internal/package.json rename to src/core/packages/logging/common-internal/package.json diff --git a/packages/core/logging/core-logging-common-internal/src/browser_config.ts b/src/core/packages/logging/common-internal/src/browser_config.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/browser_config.ts rename to src/core/packages/logging/common-internal/src/browser_config.ts diff --git a/packages/core/logging/core-logging-common-internal/src/index.ts b/src/core/packages/logging/common-internal/src/index.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/index.ts rename to src/core/packages/logging/common-internal/src/index.ts diff --git a/packages/core/logging/core-logging-common-internal/src/layouts/__snapshots__/pattern_layout.test.ts.snap b/src/core/packages/logging/common-internal/src/layouts/__snapshots__/pattern_layout.test.ts.snap similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/layouts/__snapshots__/pattern_layout.test.ts.snap rename to src/core/packages/logging/common-internal/src/layouts/__snapshots__/pattern_layout.test.ts.snap diff --git a/packages/core/logging/core-logging-common-internal/src/layouts/conversions/date.ts b/src/core/packages/logging/common-internal/src/layouts/conversions/date.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/layouts/conversions/date.ts rename to src/core/packages/logging/common-internal/src/layouts/conversions/date.ts diff --git a/packages/core/logging/core-logging-common-internal/src/layouts/conversions/index.ts b/src/core/packages/logging/common-internal/src/layouts/conversions/index.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/layouts/conversions/index.ts rename to src/core/packages/logging/common-internal/src/layouts/conversions/index.ts diff --git a/packages/core/logging/core-logging-common-internal/src/layouts/conversions/level.ts b/src/core/packages/logging/common-internal/src/layouts/conversions/level.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/layouts/conversions/level.ts rename to src/core/packages/logging/common-internal/src/layouts/conversions/level.ts diff --git a/packages/core/logging/core-logging-common-internal/src/layouts/conversions/logger.ts b/src/core/packages/logging/common-internal/src/layouts/conversions/logger.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/layouts/conversions/logger.ts rename to src/core/packages/logging/common-internal/src/layouts/conversions/logger.ts diff --git a/packages/core/logging/core-logging-common-internal/src/layouts/conversions/message.test.ts b/src/core/packages/logging/common-internal/src/layouts/conversions/message.test.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/layouts/conversions/message.test.ts rename to src/core/packages/logging/common-internal/src/layouts/conversions/message.test.ts diff --git a/packages/core/logging/core-logging-common-internal/src/layouts/conversions/message.ts b/src/core/packages/logging/common-internal/src/layouts/conversions/message.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/layouts/conversions/message.ts rename to src/core/packages/logging/common-internal/src/layouts/conversions/message.ts diff --git a/packages/core/logging/core-logging-common-internal/src/layouts/conversions/meta.ts b/src/core/packages/logging/common-internal/src/layouts/conversions/meta.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/layouts/conversions/meta.ts rename to src/core/packages/logging/common-internal/src/layouts/conversions/meta.ts diff --git a/packages/core/logging/core-logging-common-internal/src/layouts/conversions/types.ts b/src/core/packages/logging/common-internal/src/layouts/conversions/types.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/layouts/conversions/types.ts rename to src/core/packages/logging/common-internal/src/layouts/conversions/types.ts diff --git a/packages/core/logging/core-logging-common-internal/src/layouts/index.ts b/src/core/packages/logging/common-internal/src/layouts/index.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/layouts/index.ts rename to src/core/packages/logging/common-internal/src/layouts/index.ts diff --git a/packages/core/logging/core-logging-common-internal/src/layouts/pattern_layout.test.ts b/src/core/packages/logging/common-internal/src/layouts/pattern_layout.test.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/layouts/pattern_layout.test.ts rename to src/core/packages/logging/common-internal/src/layouts/pattern_layout.test.ts diff --git a/packages/core/logging/core-logging-common-internal/src/layouts/pattern_layout.ts b/src/core/packages/logging/common-internal/src/layouts/pattern_layout.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/layouts/pattern_layout.ts rename to src/core/packages/logging/common-internal/src/layouts/pattern_layout.ts diff --git a/packages/core/logging/core-logging-common-internal/src/logger.test.ts b/src/core/packages/logging/common-internal/src/logger.test.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/logger.test.ts rename to src/core/packages/logging/common-internal/src/logger.test.ts diff --git a/packages/core/logging/core-logging-common-internal/src/logger.ts b/src/core/packages/logging/common-internal/src/logger.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/logger.ts rename to src/core/packages/logging/common-internal/src/logger.ts diff --git a/packages/core/logging/core-logging-common-internal/src/logger_context.test.ts b/src/core/packages/logging/common-internal/src/logger_context.test.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/logger_context.test.ts rename to src/core/packages/logging/common-internal/src/logger_context.test.ts diff --git a/packages/core/logging/core-logging-common-internal/src/logger_context.ts b/src/core/packages/logging/common-internal/src/logger_context.ts similarity index 100% rename from packages/core/logging/core-logging-common-internal/src/logger_context.ts rename to src/core/packages/logging/common-internal/src/logger_context.ts diff --git a/packages/core/logging/core-logging-common-internal/tsconfig.json b/src/core/packages/logging/common-internal/tsconfig.json similarity index 82% rename from packages/core/logging/core-logging-common-internal/tsconfig.json rename to src/core/packages/logging/common-internal/tsconfig.json index 371dc89b18172..1d7a83bee14ee 100644 --- a/packages/core/logging/core-logging-common-internal/tsconfig.json +++ b/src/core/packages/logging/common-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 199bc7c8504e5..d3eca4dc8576e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -454,8 +454,8 @@ "@kbn/core-logging-browser-internal/*": ["src/core/packages/logging/browser-internal/*"], "@kbn/core-logging-browser-mocks": ["packages/core/logging/core-logging-browser-mocks"], "@kbn/core-logging-browser-mocks/*": ["packages/core/logging/core-logging-browser-mocks/*"], - "@kbn/core-logging-common-internal": ["packages/core/logging/core-logging-common-internal"], - "@kbn/core-logging-common-internal/*": ["packages/core/logging/core-logging-common-internal/*"], + "@kbn/core-logging-common-internal": ["src/core/packages/logging/common-internal"], + "@kbn/core-logging-common-internal/*": ["src/core/packages/logging/common-internal/*"], "@kbn/core-logging-server": ["packages/core/logging/core-logging-server"], "@kbn/core-logging-server/*": ["packages/core/logging/core-logging-server/*"], "@kbn/core-logging-server-internal": ["packages/core/logging/core-logging-server-internal"], diff --git a/yarn.lock b/yarn.lock index c28c7d513521e..68f9b56921ae8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4721,7 +4721,7 @@ version "0.0.0" uid "" -"@kbn/core-logging-common-internal@link:packages/core/logging/core-logging-common-internal": +"@kbn/core-logging-common-internal@link:src/core/packages/logging/common-internal": version "0.0.0" uid "" From 4fe64b16b13aefba478b0f16a264f45bcd766e75 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:56:26 +0100 Subject: [PATCH 071/167] Relocating module `@kbn/core-logging-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/logging/server}/README.md | 0 .../core/packages/logging/server}/index.ts | 0 .../core/packages/logging/server}/jest.config.js | 4 ++-- .../core/packages/logging/server}/kibana.jsonc | 0 .../core/packages/logging/server}/package.json | 0 .../core/packages/logging/server}/src/appenders/console.ts | 0 .../core/packages/logging/server}/src/appenders/file.ts | 0 .../core/packages/logging/server}/src/appenders/index.ts | 0 .../core/packages/logging/server}/src/appenders/rewrite.ts | 0 .../packages/logging/server}/src/appenders/rolling_file.ts | 0 .../core/packages/logging/server}/src/contracts.ts | 0 .../core/packages/logging/server}/src/layout.ts | 0 .../core/packages/logging/server}/src/logger.ts | 0 .../core/packages/logging/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 18 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/README.md (100%) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/index.ts (100%) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/jest.config.js (85%) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/kibana.jsonc (100%) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/package.json (100%) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/src/appenders/console.ts (100%) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/src/appenders/file.ts (100%) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/src/appenders/index.ts (100%) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/src/appenders/rewrite.ts (100%) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/src/appenders/rolling_file.ts (100%) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/src/contracts.ts (100%) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/src/layout.ts (100%) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/src/logger.ts (100%) rename {packages/core/logging/core-logging-server => src/core/packages/logging/server}/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b5c6fcaac3662..6e7dbe55d8a72 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -92,7 +92,6 @@ packages/core/integrations/core-integrations-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-server-mocks @elastic/kibana-core packages/core/logging/core-logging-browser-mocks @elastic/kibana-core -packages/core/logging/core-logging-server @elastic/kibana-core packages/core/logging/core-logging-server-internal @elastic/kibana-core packages/core/logging/core-logging-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-collectors-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/lifecycle/server @elastic/kibana-core src/core/packages/lifecycle/server-internal @elastic/kibana-core src/core/packages/logging/browser-internal @elastic/kibana-core src/core/packages/logging/common-internal @elastic/kibana-core +src/core/packages/logging/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 6a27aaf32707e..1f962daf995c0 100644 --- a/package.json +++ b/package.json @@ -326,7 +326,7 @@ "@kbn/core-lifecycle-server-internal": "link:src/core/packages/lifecycle/server-internal", "@kbn/core-logging-browser-internal": "link:src/core/packages/logging/browser-internal", "@kbn/core-logging-common-internal": "link:src/core/packages/logging/common-internal", - "@kbn/core-logging-server": "link:packages/core/logging/core-logging-server", + "@kbn/core-logging-server": "link:src/core/packages/logging/server", "@kbn/core-logging-server-internal": "link:packages/core/logging/core-logging-server-internal", "@kbn/core-metrics-collectors-server-internal": "link:packages/core/metrics/core-metrics-collectors-server-internal", "@kbn/core-metrics-server": "link:packages/core/metrics/core-metrics-server", diff --git a/packages/core/logging/core-logging-server/README.md b/src/core/packages/logging/server/README.md similarity index 100% rename from packages/core/logging/core-logging-server/README.md rename to src/core/packages/logging/server/README.md diff --git a/packages/core/logging/core-logging-server/index.ts b/src/core/packages/logging/server/index.ts similarity index 100% rename from packages/core/logging/core-logging-server/index.ts rename to src/core/packages/logging/server/index.ts diff --git a/packages/core/logging/core-logging-server/jest.config.js b/src/core/packages/logging/server/jest.config.js similarity index 85% rename from packages/core/logging/core-logging-server/jest.config.js rename to src/core/packages/logging/server/jest.config.js index b9bb942a43d75..8085d628b6202 100644 --- a/packages/core/logging/core-logging-server/jest.config.js +++ b/src/core/packages/logging/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/logging/core-logging-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/logging/server'], }; diff --git a/packages/core/logging/core-logging-server/kibana.jsonc b/src/core/packages/logging/server/kibana.jsonc similarity index 100% rename from packages/core/logging/core-logging-server/kibana.jsonc rename to src/core/packages/logging/server/kibana.jsonc diff --git a/packages/core/logging/core-logging-server/package.json b/src/core/packages/logging/server/package.json similarity index 100% rename from packages/core/logging/core-logging-server/package.json rename to src/core/packages/logging/server/package.json diff --git a/packages/core/logging/core-logging-server/src/appenders/console.ts b/src/core/packages/logging/server/src/appenders/console.ts similarity index 100% rename from packages/core/logging/core-logging-server/src/appenders/console.ts rename to src/core/packages/logging/server/src/appenders/console.ts diff --git a/packages/core/logging/core-logging-server/src/appenders/file.ts b/src/core/packages/logging/server/src/appenders/file.ts similarity index 100% rename from packages/core/logging/core-logging-server/src/appenders/file.ts rename to src/core/packages/logging/server/src/appenders/file.ts diff --git a/packages/core/logging/core-logging-server/src/appenders/index.ts b/src/core/packages/logging/server/src/appenders/index.ts similarity index 100% rename from packages/core/logging/core-logging-server/src/appenders/index.ts rename to src/core/packages/logging/server/src/appenders/index.ts diff --git a/packages/core/logging/core-logging-server/src/appenders/rewrite.ts b/src/core/packages/logging/server/src/appenders/rewrite.ts similarity index 100% rename from packages/core/logging/core-logging-server/src/appenders/rewrite.ts rename to src/core/packages/logging/server/src/appenders/rewrite.ts diff --git a/packages/core/logging/core-logging-server/src/appenders/rolling_file.ts b/src/core/packages/logging/server/src/appenders/rolling_file.ts similarity index 100% rename from packages/core/logging/core-logging-server/src/appenders/rolling_file.ts rename to src/core/packages/logging/server/src/appenders/rolling_file.ts diff --git a/packages/core/logging/core-logging-server/src/contracts.ts b/src/core/packages/logging/server/src/contracts.ts similarity index 100% rename from packages/core/logging/core-logging-server/src/contracts.ts rename to src/core/packages/logging/server/src/contracts.ts diff --git a/packages/core/logging/core-logging-server/src/layout.ts b/src/core/packages/logging/server/src/layout.ts similarity index 100% rename from packages/core/logging/core-logging-server/src/layout.ts rename to src/core/packages/logging/server/src/layout.ts diff --git a/packages/core/logging/core-logging-server/src/logger.ts b/src/core/packages/logging/server/src/logger.ts similarity index 100% rename from packages/core/logging/core-logging-server/src/logger.ts rename to src/core/packages/logging/server/src/logger.ts diff --git a/packages/core/logging/core-logging-server/tsconfig.json b/src/core/packages/logging/server/tsconfig.json similarity index 83% rename from packages/core/logging/core-logging-server/tsconfig.json rename to src/core/packages/logging/server/tsconfig.json index 0f3e14ff4a6f6..821460e075713 100644 --- a/packages/core/logging/core-logging-server/tsconfig.json +++ b/src/core/packages/logging/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index d3eca4dc8576e..0717720dea63e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -456,8 +456,8 @@ "@kbn/core-logging-browser-mocks/*": ["packages/core/logging/core-logging-browser-mocks/*"], "@kbn/core-logging-common-internal": ["src/core/packages/logging/common-internal"], "@kbn/core-logging-common-internal/*": ["src/core/packages/logging/common-internal/*"], - "@kbn/core-logging-server": ["packages/core/logging/core-logging-server"], - "@kbn/core-logging-server/*": ["packages/core/logging/core-logging-server/*"], + "@kbn/core-logging-server": ["src/core/packages/logging/server"], + "@kbn/core-logging-server/*": ["src/core/packages/logging/server/*"], "@kbn/core-logging-server-internal": ["packages/core/logging/core-logging-server-internal"], "@kbn/core-logging-server-internal/*": ["packages/core/logging/core-logging-server-internal/*"], "@kbn/core-logging-server-mocks": ["packages/core/logging/core-logging-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 68f9b56921ae8..5a146f1f46618 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4733,7 +4733,7 @@ version "0.0.0" uid "" -"@kbn/core-logging-server@link:packages/core/logging/core-logging-server": +"@kbn/core-logging-server@link:src/core/packages/logging/server": version "0.0.0" uid "" From 652cfa5b8cefd30bb30cd6fa3557ae2ea3341930 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:57:19 +0100 Subject: [PATCH 072/167] Relocating module `@kbn/core-logging-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/logging/server-internal}/README.md | 0 .../core/packages/logging/server-internal}/index.ts | 0 .../core/packages/logging/server-internal}/jest.config.js | 4 ++-- .../core/packages/logging/server-internal}/kibana.jsonc | 0 .../core/packages/logging/server-internal}/package.json | 0 .../src/__snapshots__/logging_system.test.ts.snap | 0 .../server-internal}/src/appenders/appenders.test.mocks.ts | 0 .../logging/server-internal}/src/appenders/appenders.test.ts | 0 .../logging/server-internal}/src/appenders/appenders.ts | 0 .../src/appenders/buffer/buffer_appender.test.ts | 0 .../server-internal}/src/appenders/buffer/buffer_appender.ts | 0 .../src/appenders/console/console_appender.test.ts | 0 .../src/appenders/console/console_appender.ts | 0 .../src/appenders/file/file_appender.test.mocks.ts | 0 .../server-internal}/src/appenders/file/file_appender.test.ts | 0 .../server-internal}/src/appenders/file/file_appender.ts | 0 .../logging/server-internal}/src/appenders/rewrite/mocks.ts | 0 .../server-internal}/src/appenders/rewrite/policies/index.ts | 0 .../src/appenders/rewrite/policies/meta/index.ts | 0 .../src/appenders/rewrite/policies/meta/meta_policy.test.ts | 0 .../src/appenders/rewrite/policies/meta/meta_policy.ts | 0 .../server-internal}/src/appenders/rewrite/policies/policy.ts | 0 .../src/appenders/rewrite/rewrite_appender.test.mocks.ts | 0 .../src/appenders/rewrite/rewrite_appender.test.ts | 0 .../src/appenders/rewrite/rewrite_appender.ts | 0 .../server-internal}/src/appenders/rolling_file/mocks.ts | 0 .../src/appenders/rolling_file/policies/index.ts | 0 .../src/appenders/rolling_file/policies/policy.ts | 0 .../src/appenders/rolling_file/policies/size_limit/index.ts | 0 .../policies/size_limit/size_limit_policy.test.ts | 0 .../rolling_file/policies/size_limit/size_limit_policy.ts | 0 .../policies/time_interval/get_next_rolling_time.test.ts | 0 .../policies/time_interval/get_next_rolling_time.ts | 0 .../appenders/rolling_file/policies/time_interval/index.ts | 0 .../policies/time_interval/time_interval_policy.test.mocks.ts | 0 .../policies/time_interval/time_interval_policy.test.ts | 0 .../policies/time_interval/time_interval_policy.ts | 0 .../rolling_file/policies/time_interval/utils.test.ts | 0 .../appenders/rolling_file/policies/time_interval/utils.ts | 0 .../rolling_file/retention/create_retention_policy.test.ts | 0 .../rolling_file/retention/create_retention_policy.ts | 0 .../src/appenders/rolling_file/retention/fs.ts | 0 .../src/appenders/rolling_file/retention/index.ts | 0 .../rolling_file/retention/retention_policy.test.mocks.ts | 0 .../appenders/rolling_file/retention/retention_policy.test.ts | 0 .../src/appenders/rolling_file/retention/retention_policy.ts | 0 .../src/appenders/rolling_file/retention/utils.test.mocks.ts | 0 .../src/appenders/rolling_file/retention/utils.test.ts | 0 .../src/appenders/rolling_file/retention/utils.ts | 0 .../rolling_file/rolling_file_appender.test.mocks.ts | 0 .../src/appenders/rolling_file/rolling_file_appender.test.ts | 0 .../src/appenders/rolling_file/rolling_file_appender.ts | 0 .../src/appenders/rolling_file/rolling_file_context.ts | 0 .../src/appenders/rolling_file/rolling_file_manager.ts | 0 .../src/appenders/rolling_file/strategies/index.ts | 0 .../src/appenders/rolling_file/strategies/numeric/index.ts | 0 .../strategies/numeric/numeric_strategy.test.mocks.ts | 0 .../rolling_file/strategies/numeric/numeric_strategy.test.ts | 0 .../rolling_file/strategies/numeric/numeric_strategy.ts | 0 .../rolling_file/strategies/numeric/pattern_matcher.test.ts | 0 .../rolling_file/strategies/numeric/pattern_matcher.ts | 0 .../strategies/numeric/rolling_tasks.test.mocks.ts | 0 .../rolling_file/strategies/numeric/rolling_tasks.test.ts | 0 .../rolling_file/strategies/numeric/rolling_tasks.ts | 0 .../rolling_file/strategies/numeric/utils.test.mocks.ts | 0 .../appenders/rolling_file/strategies/numeric/utils.test.ts | 0 .../src/appenders/rolling_file/strategies/numeric/utils.ts | 0 .../src/appenders/rolling_file/strategies/strategy.ts | 0 .../logging/server-internal}/src/global_context/index.ts | 0 .../src/global_context/merge_global_context.test.ts | 0 .../src/global_context/merge_global_context.ts | 0 .../logging/server-internal}/src/global_context/types.ts | 0 .../src/layouts/__snapshots__/json_layout.test.ts.snap | 0 .../src/layouts/__snapshots__/pattern_layout.test.ts.snap | 0 .../logging/server-internal}/src/layouts/conversions/index.ts | 0 .../logging/server-internal}/src/layouts/conversions/level.ts | 0 .../server-internal}/src/layouts/conversions/logger.ts | 0 .../logging/server-internal}/src/layouts/conversions/pid.ts | 0 .../logging/server-internal}/src/layouts/json_layout.test.ts | 0 .../logging/server-internal}/src/layouts/json_layout.ts | 0 .../logging/server-internal}/src/layouts/layouts.test.ts | 0 .../packages/logging/server-internal}/src/layouts/layouts.ts | 0 .../server-internal}/src/layouts/pattern_layout.test.ts | 0 .../logging/server-internal}/src/layouts/pattern_layout.ts | 0 .../core/packages/logging/server-internal}/src/logger.test.ts | 0 .../core/packages/logging/server-internal}/src/logger.ts | 0 .../logging/server-internal}/src/logger_adapter.test.ts | 0 .../packages/logging/server-internal}/src/logger_adapter.ts | 0 .../logging/server-internal}/src/logging_config.test.ts | 0 .../packages/logging/server-internal}/src/logging_config.ts | 0 .../logging/server-internal}/src/logging_service.test.ts | 0 .../packages/logging/server-internal}/src/logging_service.ts | 0 .../logging/server-internal}/src/logging_system.test.mocks.ts | 0 .../logging/server-internal}/src/logging_system.test.ts | 0 .../packages/logging/server-internal}/src/logging_system.ts | 0 .../core/packages/logging/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 100 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/README.md (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/index.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/jest.config.js (83%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/kibana.jsonc (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/package.json (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/__snapshots__/logging_system.test.ts.snap (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/appenders.test.mocks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/appenders.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/appenders.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/buffer/buffer_appender.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/buffer/buffer_appender.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/console/console_appender.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/console/console_appender.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/file/file_appender.test.mocks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/file/file_appender.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/file/file_appender.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rewrite/mocks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rewrite/policies/index.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rewrite/policies/meta/index.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rewrite/policies/meta/meta_policy.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rewrite/policies/meta/meta_policy.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rewrite/policies/policy.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rewrite/rewrite_appender.test.mocks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rewrite/rewrite_appender.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rewrite/rewrite_appender.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/mocks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/policies/index.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/policies/policy.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/policies/size_limit/index.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/policies/size_limit/size_limit_policy.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/policies/size_limit/size_limit_policy.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/policies/time_interval/get_next_rolling_time.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/policies/time_interval/get_next_rolling_time.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/policies/time_interval/index.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/policies/time_interval/time_interval_policy.test.mocks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/policies/time_interval/time_interval_policy.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/policies/time_interval/time_interval_policy.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/policies/time_interval/utils.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/policies/time_interval/utils.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/retention/create_retention_policy.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/retention/create_retention_policy.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/retention/fs.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/retention/index.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/retention/retention_policy.test.mocks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/retention/retention_policy.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/retention/retention_policy.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/retention/utils.test.mocks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/retention/utils.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/retention/utils.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/rolling_file_appender.test.mocks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/rolling_file_appender.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/rolling_file_appender.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/rolling_file_context.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/rolling_file_manager.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/index.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/numeric/index.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/numeric/numeric_strategy.test.mocks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/numeric/numeric_strategy.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/numeric/numeric_strategy.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/numeric/pattern_matcher.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/numeric/pattern_matcher.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/numeric/rolling_tasks.test.mocks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/numeric/rolling_tasks.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/numeric/rolling_tasks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/numeric/utils.test.mocks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/numeric/utils.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/numeric/utils.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/appenders/rolling_file/strategies/strategy.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/global_context/index.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/global_context/merge_global_context.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/global_context/merge_global_context.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/global_context/types.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/layouts/__snapshots__/json_layout.test.ts.snap (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/layouts/__snapshots__/pattern_layout.test.ts.snap (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/layouts/conversions/index.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/layouts/conversions/level.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/layouts/conversions/logger.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/layouts/conversions/pid.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/layouts/json_layout.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/layouts/json_layout.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/layouts/layouts.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/layouts/layouts.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/layouts/pattern_layout.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/layouts/pattern_layout.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/logger.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/logger.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/logger_adapter.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/logger_adapter.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/logging_config.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/logging_config.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/logging_service.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/logging_service.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/logging_system.test.mocks.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/logging_system.test.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/src/logging_system.ts (100%) rename {packages/core/logging/core-logging-server-internal => src/core/packages/logging/server-internal}/tsconfig.json (91%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6e7dbe55d8a72..f0c6c71672215 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -92,7 +92,6 @@ packages/core/integrations/core-integrations-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-server-mocks @elastic/kibana-core packages/core/logging/core-logging-browser-mocks @elastic/kibana-core -packages/core/logging/core-logging-server-internal @elastic/kibana-core packages/core/logging/core-logging-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-collectors-server-internal @elastic/kibana-core packages/core/metrics/core-metrics-collectors-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/lifecycle/server-internal @elastic/kibana-core src/core/packages/logging/browser-internal @elastic/kibana-core src/core/packages/logging/common-internal @elastic/kibana-core src/core/packages/logging/server @elastic/kibana-core +src/core/packages/logging/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 1f962daf995c0..a131f1ff0d739 100644 --- a/package.json +++ b/package.json @@ -327,7 +327,7 @@ "@kbn/core-logging-browser-internal": "link:src/core/packages/logging/browser-internal", "@kbn/core-logging-common-internal": "link:src/core/packages/logging/common-internal", "@kbn/core-logging-server": "link:src/core/packages/logging/server", - "@kbn/core-logging-server-internal": "link:packages/core/logging/core-logging-server-internal", + "@kbn/core-logging-server-internal": "link:src/core/packages/logging/server-internal", "@kbn/core-metrics-collectors-server-internal": "link:packages/core/metrics/core-metrics-collectors-server-internal", "@kbn/core-metrics-server": "link:packages/core/metrics/core-metrics-server", "@kbn/core-metrics-server-internal": "link:packages/core/metrics/core-metrics-server-internal", diff --git a/packages/core/logging/core-logging-server-internal/README.md b/src/core/packages/logging/server-internal/README.md similarity index 100% rename from packages/core/logging/core-logging-server-internal/README.md rename to src/core/packages/logging/server-internal/README.md diff --git a/packages/core/logging/core-logging-server-internal/index.ts b/src/core/packages/logging/server-internal/index.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/index.ts rename to src/core/packages/logging/server-internal/index.ts diff --git a/packages/core/logging/core-logging-server-internal/jest.config.js b/src/core/packages/logging/server-internal/jest.config.js similarity index 83% rename from packages/core/logging/core-logging-server-internal/jest.config.js rename to src/core/packages/logging/server-internal/jest.config.js index 69794c68e4e3f..e84e50c013952 100644 --- a/packages/core/logging/core-logging-server-internal/jest.config.js +++ b/src/core/packages/logging/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/logging/core-logging-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/logging/server-internal'], }; diff --git a/packages/core/logging/core-logging-server-internal/kibana.jsonc b/src/core/packages/logging/server-internal/kibana.jsonc similarity index 100% rename from packages/core/logging/core-logging-server-internal/kibana.jsonc rename to src/core/packages/logging/server-internal/kibana.jsonc diff --git a/packages/core/logging/core-logging-server-internal/package.json b/src/core/packages/logging/server-internal/package.json similarity index 100% rename from packages/core/logging/core-logging-server-internal/package.json rename to src/core/packages/logging/server-internal/package.json diff --git a/packages/core/logging/core-logging-server-internal/src/__snapshots__/logging_system.test.ts.snap b/src/core/packages/logging/server-internal/src/__snapshots__/logging_system.test.ts.snap similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/__snapshots__/logging_system.test.ts.snap rename to src/core/packages/logging/server-internal/src/__snapshots__/logging_system.test.ts.snap diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/appenders.test.mocks.ts b/src/core/packages/logging/server-internal/src/appenders/appenders.test.mocks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/appenders.test.mocks.ts rename to src/core/packages/logging/server-internal/src/appenders/appenders.test.mocks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/appenders.test.ts b/src/core/packages/logging/server-internal/src/appenders/appenders.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/appenders.test.ts rename to src/core/packages/logging/server-internal/src/appenders/appenders.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/appenders.ts b/src/core/packages/logging/server-internal/src/appenders/appenders.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/appenders.ts rename to src/core/packages/logging/server-internal/src/appenders/appenders.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/buffer/buffer_appender.test.ts b/src/core/packages/logging/server-internal/src/appenders/buffer/buffer_appender.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/buffer/buffer_appender.test.ts rename to src/core/packages/logging/server-internal/src/appenders/buffer/buffer_appender.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/buffer/buffer_appender.ts b/src/core/packages/logging/server-internal/src/appenders/buffer/buffer_appender.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/buffer/buffer_appender.ts rename to src/core/packages/logging/server-internal/src/appenders/buffer/buffer_appender.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/console/console_appender.test.ts b/src/core/packages/logging/server-internal/src/appenders/console/console_appender.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/console/console_appender.test.ts rename to src/core/packages/logging/server-internal/src/appenders/console/console_appender.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/console/console_appender.ts b/src/core/packages/logging/server-internal/src/appenders/console/console_appender.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/console/console_appender.ts rename to src/core/packages/logging/server-internal/src/appenders/console/console_appender.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/file/file_appender.test.mocks.ts b/src/core/packages/logging/server-internal/src/appenders/file/file_appender.test.mocks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/file/file_appender.test.mocks.ts rename to src/core/packages/logging/server-internal/src/appenders/file/file_appender.test.mocks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/file/file_appender.test.ts b/src/core/packages/logging/server-internal/src/appenders/file/file_appender.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/file/file_appender.test.ts rename to src/core/packages/logging/server-internal/src/appenders/file/file_appender.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/file/file_appender.ts b/src/core/packages/logging/server-internal/src/appenders/file/file_appender.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/file/file_appender.ts rename to src/core/packages/logging/server-internal/src/appenders/file/file_appender.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rewrite/mocks.ts b/src/core/packages/logging/server-internal/src/appenders/rewrite/mocks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rewrite/mocks.ts rename to src/core/packages/logging/server-internal/src/appenders/rewrite/mocks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rewrite/policies/index.ts b/src/core/packages/logging/server-internal/src/appenders/rewrite/policies/index.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rewrite/policies/index.ts rename to src/core/packages/logging/server-internal/src/appenders/rewrite/policies/index.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rewrite/policies/meta/index.ts b/src/core/packages/logging/server-internal/src/appenders/rewrite/policies/meta/index.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rewrite/policies/meta/index.ts rename to src/core/packages/logging/server-internal/src/appenders/rewrite/policies/meta/index.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rewrite/policies/meta/meta_policy.test.ts b/src/core/packages/logging/server-internal/src/appenders/rewrite/policies/meta/meta_policy.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rewrite/policies/meta/meta_policy.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rewrite/policies/meta/meta_policy.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rewrite/policies/meta/meta_policy.ts b/src/core/packages/logging/server-internal/src/appenders/rewrite/policies/meta/meta_policy.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rewrite/policies/meta/meta_policy.ts rename to src/core/packages/logging/server-internal/src/appenders/rewrite/policies/meta/meta_policy.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rewrite/policies/policy.ts b/src/core/packages/logging/server-internal/src/appenders/rewrite/policies/policy.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rewrite/policies/policy.ts rename to src/core/packages/logging/server-internal/src/appenders/rewrite/policies/policy.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rewrite/rewrite_appender.test.mocks.ts b/src/core/packages/logging/server-internal/src/appenders/rewrite/rewrite_appender.test.mocks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rewrite/rewrite_appender.test.mocks.ts rename to src/core/packages/logging/server-internal/src/appenders/rewrite/rewrite_appender.test.mocks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rewrite/rewrite_appender.test.ts b/src/core/packages/logging/server-internal/src/appenders/rewrite/rewrite_appender.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rewrite/rewrite_appender.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rewrite/rewrite_appender.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rewrite/rewrite_appender.ts b/src/core/packages/logging/server-internal/src/appenders/rewrite/rewrite_appender.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rewrite/rewrite_appender.ts rename to src/core/packages/logging/server-internal/src/appenders/rewrite/rewrite_appender.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/mocks.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/mocks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/mocks.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/mocks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/index.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/index.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/index.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/index.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/policy.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/policy.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/policy.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/policy.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/size_limit/index.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/size_limit/index.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/size_limit/index.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/size_limit/index.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/size_limit/size_limit_policy.test.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/size_limit/size_limit_policy.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/size_limit/size_limit_policy.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/size_limit/size_limit_policy.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/size_limit/size_limit_policy.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/size_limit/size_limit_policy.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/size_limit/size_limit_policy.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/size_limit/size_limit_policy.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/get_next_rolling_time.test.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/get_next_rolling_time.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/get_next_rolling_time.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/get_next_rolling_time.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/get_next_rolling_time.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/get_next_rolling_time.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/get_next_rolling_time.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/get_next_rolling_time.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/index.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/index.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/index.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/index.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/time_interval_policy.test.mocks.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/time_interval_policy.test.mocks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/time_interval_policy.test.mocks.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/time_interval_policy.test.mocks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/time_interval_policy.test.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/time_interval_policy.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/time_interval_policy.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/time_interval_policy.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/time_interval_policy.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/time_interval_policy.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/time_interval_policy.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/time_interval_policy.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/utils.test.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/utils.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/utils.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/utils.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/utils.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/utils.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/policies/time_interval/utils.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/policies/time_interval/utils.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/create_retention_policy.test.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/create_retention_policy.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/create_retention_policy.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/create_retention_policy.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/create_retention_policy.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/create_retention_policy.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/create_retention_policy.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/create_retention_policy.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/fs.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/fs.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/fs.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/fs.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/index.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/index.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/index.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/index.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/retention_policy.test.mocks.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/retention_policy.test.mocks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/retention_policy.test.mocks.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/retention_policy.test.mocks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/retention_policy.test.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/retention_policy.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/retention_policy.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/retention_policy.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/retention_policy.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/retention_policy.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/retention_policy.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/retention_policy.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/utils.test.mocks.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/utils.test.mocks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/utils.test.mocks.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/utils.test.mocks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/utils.test.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/utils.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/utils.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/utils.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/utils.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/utils.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/retention/utils.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/retention/utils.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/rolling_file_appender.test.mocks.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/rolling_file_appender.test.mocks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/rolling_file_appender.test.mocks.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/rolling_file_appender.test.mocks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/rolling_file_appender.test.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/rolling_file_appender.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/rolling_file_appender.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/rolling_file_appender.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/rolling_file_appender.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/rolling_file_appender.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/rolling_file_appender.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/rolling_file_appender.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/rolling_file_context.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/rolling_file_context.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/rolling_file_context.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/rolling_file_context.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/rolling_file_manager.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/rolling_file_manager.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/rolling_file_manager.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/rolling_file_manager.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/index.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/index.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/index.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/index.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/index.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/index.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/index.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/index.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/numeric_strategy.test.mocks.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/numeric_strategy.test.mocks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/numeric_strategy.test.mocks.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/numeric_strategy.test.mocks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/numeric_strategy.test.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/numeric_strategy.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/numeric_strategy.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/numeric_strategy.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/numeric_strategy.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/numeric_strategy.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/numeric_strategy.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/numeric_strategy.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/pattern_matcher.test.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/pattern_matcher.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/pattern_matcher.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/pattern_matcher.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/pattern_matcher.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/pattern_matcher.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/pattern_matcher.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/pattern_matcher.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/rolling_tasks.test.mocks.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/rolling_tasks.test.mocks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/rolling_tasks.test.mocks.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/rolling_tasks.test.mocks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/rolling_tasks.test.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/rolling_tasks.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/rolling_tasks.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/rolling_tasks.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/rolling_tasks.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/rolling_tasks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/rolling_tasks.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/rolling_tasks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/utils.test.mocks.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/utils.test.mocks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/utils.test.mocks.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/utils.test.mocks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/utils.test.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/utils.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/utils.test.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/utils.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/utils.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/utils.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/numeric/utils.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/numeric/utils.ts diff --git a/packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/strategy.ts b/src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/strategy.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/appenders/rolling_file/strategies/strategy.ts rename to src/core/packages/logging/server-internal/src/appenders/rolling_file/strategies/strategy.ts diff --git a/packages/core/logging/core-logging-server-internal/src/global_context/index.ts b/src/core/packages/logging/server-internal/src/global_context/index.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/global_context/index.ts rename to src/core/packages/logging/server-internal/src/global_context/index.ts diff --git a/packages/core/logging/core-logging-server-internal/src/global_context/merge_global_context.test.ts b/src/core/packages/logging/server-internal/src/global_context/merge_global_context.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/global_context/merge_global_context.test.ts rename to src/core/packages/logging/server-internal/src/global_context/merge_global_context.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/global_context/merge_global_context.ts b/src/core/packages/logging/server-internal/src/global_context/merge_global_context.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/global_context/merge_global_context.ts rename to src/core/packages/logging/server-internal/src/global_context/merge_global_context.ts diff --git a/packages/core/logging/core-logging-server-internal/src/global_context/types.ts b/src/core/packages/logging/server-internal/src/global_context/types.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/global_context/types.ts rename to src/core/packages/logging/server-internal/src/global_context/types.ts diff --git a/packages/core/logging/core-logging-server-internal/src/layouts/__snapshots__/json_layout.test.ts.snap b/src/core/packages/logging/server-internal/src/layouts/__snapshots__/json_layout.test.ts.snap similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/layouts/__snapshots__/json_layout.test.ts.snap rename to src/core/packages/logging/server-internal/src/layouts/__snapshots__/json_layout.test.ts.snap diff --git a/packages/core/logging/core-logging-server-internal/src/layouts/__snapshots__/pattern_layout.test.ts.snap b/src/core/packages/logging/server-internal/src/layouts/__snapshots__/pattern_layout.test.ts.snap similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/layouts/__snapshots__/pattern_layout.test.ts.snap rename to src/core/packages/logging/server-internal/src/layouts/__snapshots__/pattern_layout.test.ts.snap diff --git a/packages/core/logging/core-logging-server-internal/src/layouts/conversions/index.ts b/src/core/packages/logging/server-internal/src/layouts/conversions/index.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/layouts/conversions/index.ts rename to src/core/packages/logging/server-internal/src/layouts/conversions/index.ts diff --git a/packages/core/logging/core-logging-server-internal/src/layouts/conversions/level.ts b/src/core/packages/logging/server-internal/src/layouts/conversions/level.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/layouts/conversions/level.ts rename to src/core/packages/logging/server-internal/src/layouts/conversions/level.ts diff --git a/packages/core/logging/core-logging-server-internal/src/layouts/conversions/logger.ts b/src/core/packages/logging/server-internal/src/layouts/conversions/logger.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/layouts/conversions/logger.ts rename to src/core/packages/logging/server-internal/src/layouts/conversions/logger.ts diff --git a/packages/core/logging/core-logging-server-internal/src/layouts/conversions/pid.ts b/src/core/packages/logging/server-internal/src/layouts/conversions/pid.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/layouts/conversions/pid.ts rename to src/core/packages/logging/server-internal/src/layouts/conversions/pid.ts diff --git a/packages/core/logging/core-logging-server-internal/src/layouts/json_layout.test.ts b/src/core/packages/logging/server-internal/src/layouts/json_layout.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/layouts/json_layout.test.ts rename to src/core/packages/logging/server-internal/src/layouts/json_layout.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/layouts/json_layout.ts b/src/core/packages/logging/server-internal/src/layouts/json_layout.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/layouts/json_layout.ts rename to src/core/packages/logging/server-internal/src/layouts/json_layout.ts diff --git a/packages/core/logging/core-logging-server-internal/src/layouts/layouts.test.ts b/src/core/packages/logging/server-internal/src/layouts/layouts.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/layouts/layouts.test.ts rename to src/core/packages/logging/server-internal/src/layouts/layouts.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/layouts/layouts.ts b/src/core/packages/logging/server-internal/src/layouts/layouts.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/layouts/layouts.ts rename to src/core/packages/logging/server-internal/src/layouts/layouts.ts diff --git a/packages/core/logging/core-logging-server-internal/src/layouts/pattern_layout.test.ts b/src/core/packages/logging/server-internal/src/layouts/pattern_layout.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/layouts/pattern_layout.test.ts rename to src/core/packages/logging/server-internal/src/layouts/pattern_layout.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/layouts/pattern_layout.ts b/src/core/packages/logging/server-internal/src/layouts/pattern_layout.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/layouts/pattern_layout.ts rename to src/core/packages/logging/server-internal/src/layouts/pattern_layout.ts diff --git a/packages/core/logging/core-logging-server-internal/src/logger.test.ts b/src/core/packages/logging/server-internal/src/logger.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/logger.test.ts rename to src/core/packages/logging/server-internal/src/logger.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/logger.ts b/src/core/packages/logging/server-internal/src/logger.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/logger.ts rename to src/core/packages/logging/server-internal/src/logger.ts diff --git a/packages/core/logging/core-logging-server-internal/src/logger_adapter.test.ts b/src/core/packages/logging/server-internal/src/logger_adapter.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/logger_adapter.test.ts rename to src/core/packages/logging/server-internal/src/logger_adapter.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/logger_adapter.ts b/src/core/packages/logging/server-internal/src/logger_adapter.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/logger_adapter.ts rename to src/core/packages/logging/server-internal/src/logger_adapter.ts diff --git a/packages/core/logging/core-logging-server-internal/src/logging_config.test.ts b/src/core/packages/logging/server-internal/src/logging_config.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/logging_config.test.ts rename to src/core/packages/logging/server-internal/src/logging_config.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/logging_config.ts b/src/core/packages/logging/server-internal/src/logging_config.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/logging_config.ts rename to src/core/packages/logging/server-internal/src/logging_config.ts diff --git a/packages/core/logging/core-logging-server-internal/src/logging_service.test.ts b/src/core/packages/logging/server-internal/src/logging_service.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/logging_service.test.ts rename to src/core/packages/logging/server-internal/src/logging_service.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/logging_service.ts b/src/core/packages/logging/server-internal/src/logging_service.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/logging_service.ts rename to src/core/packages/logging/server-internal/src/logging_service.ts diff --git a/packages/core/logging/core-logging-server-internal/src/logging_system.test.mocks.ts b/src/core/packages/logging/server-internal/src/logging_system.test.mocks.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/logging_system.test.mocks.ts rename to src/core/packages/logging/server-internal/src/logging_system.test.mocks.ts diff --git a/packages/core/logging/core-logging-server-internal/src/logging_system.test.ts b/src/core/packages/logging/server-internal/src/logging_system.test.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/logging_system.test.ts rename to src/core/packages/logging/server-internal/src/logging_system.test.ts diff --git a/packages/core/logging/core-logging-server-internal/src/logging_system.ts b/src/core/packages/logging/server-internal/src/logging_system.ts similarity index 100% rename from packages/core/logging/core-logging-server-internal/src/logging_system.ts rename to src/core/packages/logging/server-internal/src/logging_system.ts diff --git a/packages/core/logging/core-logging-server-internal/tsconfig.json b/src/core/packages/logging/server-internal/tsconfig.json similarity index 91% rename from packages/core/logging/core-logging-server-internal/tsconfig.json rename to src/core/packages/logging/server-internal/tsconfig.json index 00b081d8f6440..8a143f840a8f9 100644 --- a/packages/core/logging/core-logging-server-internal/tsconfig.json +++ b/src/core/packages/logging/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 0717720dea63e..22ecef8e6dcb0 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -458,8 +458,8 @@ "@kbn/core-logging-common-internal/*": ["src/core/packages/logging/common-internal/*"], "@kbn/core-logging-server": ["src/core/packages/logging/server"], "@kbn/core-logging-server/*": ["src/core/packages/logging/server/*"], - "@kbn/core-logging-server-internal": ["packages/core/logging/core-logging-server-internal"], - "@kbn/core-logging-server-internal/*": ["packages/core/logging/core-logging-server-internal/*"], + "@kbn/core-logging-server-internal": ["src/core/packages/logging/server-internal"], + "@kbn/core-logging-server-internal/*": ["src/core/packages/logging/server-internal/*"], "@kbn/core-logging-server-mocks": ["packages/core/logging/core-logging-server-mocks"], "@kbn/core-logging-server-mocks/*": ["packages/core/logging/core-logging-server-mocks/*"], "@kbn/core-metrics-collectors-server-internal": ["packages/core/metrics/core-metrics-collectors-server-internal"], diff --git a/yarn.lock b/yarn.lock index 5a146f1f46618..30765bc81b1a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4725,7 +4725,7 @@ version "0.0.0" uid "" -"@kbn/core-logging-server-internal@link:packages/core/logging/core-logging-server-internal": +"@kbn/core-logging-server-internal@link:src/core/packages/logging/server-internal": version "0.0.0" uid "" From 5a8fe74e5c1403ed37b51a4fd1fe1ec20e70b2bf Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:58:11 +0100 Subject: [PATCH 073/167] Relocating module `@kbn/core-metrics-collectors-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/metrics/collectors-server-internal}/README.md | 0 .../packages/metrics/collectors-server-internal}/index.ts | 0 .../metrics/collectors-server-internal}/jest.config.js | 4 ++-- .../packages/metrics/collectors-server-internal}/kibana.jsonc | 0 .../packages/metrics/collectors-server-internal}/package.json | 0 .../collectors-server-internal}/src/__mocks__/perf_hooks.ts | 0 .../collectors-server-internal}/src/cgroup/cgroup.test.ts | 0 .../metrics/collectors-server-internal}/src/cgroup/cgroup.ts | 0 .../collectors-server-internal}/src/cgroup/constants.ts | 0 .../src/cgroup/gather_info.test.ts | 0 .../collectors-server-internal}/src/cgroup/gather_info.ts | 0 .../metrics/collectors-server-internal}/src/cgroup/index.ts | 0 .../metrics/collectors-server-internal}/src/cgroup/types.ts | 0 .../metrics/collectors-server-internal}/src/cgroup/v1.test.ts | 0 .../metrics/collectors-server-internal}/src/cgroup/v1.ts | 0 .../metrics/collectors-server-internal}/src/cgroup/v2.test.ts | 0 .../metrics/collectors-server-internal}/src/cgroup/v2.ts | 0 .../src/elasticsearch_client.test.ts | 0 .../collectors-server-internal}/src/elasticsearch_client.ts | 0 .../src/event_loop_delays_monitor.test.ts | 0 .../src/event_loop_delays_monitor.ts | 0 .../src/event_loop_utilization_monitor.test.mocks.ts | 0 .../src/event_loop_utilization_monitor.test.ts | 0 .../src/event_loop_utilization_monitor.ts | 0 .../metrics/collectors-server-internal}/src/mocks_internal.ts | 0 .../metrics/collectors-server-internal}/src/os.test.mocks.ts | 0 .../metrics/collectors-server-internal}/src/os.test.ts | 0 .../packages/metrics/collectors-server-internal}/src/os.ts | 0 .../collectors-server-internal}/src/process.test.mocks.ts | 0 .../metrics/collectors-server-internal}/src/process.test.ts | 0 .../metrics/collectors-server-internal}/src/process.ts | 0 .../metrics/collectors-server-internal}/src/server.ts | 0 .../metrics/collectors-server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 37 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/README.md (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/index.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/jest.config.js (82%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/kibana.jsonc (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/package.json (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/__mocks__/perf_hooks.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/cgroup/cgroup.test.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/cgroup/cgroup.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/cgroup/constants.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/cgroup/gather_info.test.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/cgroup/gather_info.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/cgroup/index.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/cgroup/types.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/cgroup/v1.test.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/cgroup/v1.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/cgroup/v2.test.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/cgroup/v2.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/elasticsearch_client.test.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/elasticsearch_client.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/event_loop_delays_monitor.test.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/event_loop_delays_monitor.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/event_loop_utilization_monitor.test.mocks.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/event_loop_utilization_monitor.test.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/event_loop_utilization_monitor.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/mocks_internal.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/os.test.mocks.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/os.test.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/os.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/process.test.mocks.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/process.test.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/process.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/src/server.ts (100%) rename {packages/core/metrics/core-metrics-collectors-server-internal => src/core/packages/metrics/collectors-server-internal}/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f0c6c71672215..07451a6b82201 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -93,7 +93,6 @@ packages/core/lifecycle/core-lifecycle-browser-mocks @elastic/kibana-core packages/core/lifecycle/core-lifecycle-server-mocks @elastic/kibana-core packages/core/logging/core-logging-browser-mocks @elastic/kibana-core packages/core/logging/core-logging-server-mocks @elastic/kibana-core -packages/core/metrics/core-metrics-collectors-server-internal @elastic/kibana-core packages/core/metrics/core-metrics-collectors-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-server @elastic/kibana-core packages/core/metrics/core-metrics-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/logging/browser-internal @elastic/kibana-core src/core/packages/logging/common-internal @elastic/kibana-core src/core/packages/logging/server @elastic/kibana-core src/core/packages/logging/server-internal @elastic/kibana-core +src/core/packages/metrics/collectors-server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index a131f1ff0d739..4bb5fedc4755e 100644 --- a/package.json +++ b/package.json @@ -328,7 +328,7 @@ "@kbn/core-logging-common-internal": "link:src/core/packages/logging/common-internal", "@kbn/core-logging-server": "link:src/core/packages/logging/server", "@kbn/core-logging-server-internal": "link:src/core/packages/logging/server-internal", - "@kbn/core-metrics-collectors-server-internal": "link:packages/core/metrics/core-metrics-collectors-server-internal", + "@kbn/core-metrics-collectors-server-internal": "link:src/core/packages/metrics/collectors-server-internal", "@kbn/core-metrics-server": "link:packages/core/metrics/core-metrics-server", "@kbn/core-metrics-server-internal": "link:packages/core/metrics/core-metrics-server-internal", "@kbn/core-mount-utils-browser": "link:packages/core/mount-utils/core-mount-utils-browser", diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/README.md b/src/core/packages/metrics/collectors-server-internal/README.md similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/README.md rename to src/core/packages/metrics/collectors-server-internal/README.md diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/index.ts b/src/core/packages/metrics/collectors-server-internal/index.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/index.ts rename to src/core/packages/metrics/collectors-server-internal/index.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/jest.config.js b/src/core/packages/metrics/collectors-server-internal/jest.config.js similarity index 82% rename from packages/core/metrics/core-metrics-collectors-server-internal/jest.config.js rename to src/core/packages/metrics/collectors-server-internal/jest.config.js index 8a792577d5973..e67ec2b87b798 100644 --- a/packages/core/metrics/core-metrics-collectors-server-internal/jest.config.js +++ b/src/core/packages/metrics/collectors-server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/metrics/core-metrics-collectors-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/metrics/collectors-server-internal'], }; diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/kibana.jsonc b/src/core/packages/metrics/collectors-server-internal/kibana.jsonc similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/kibana.jsonc rename to src/core/packages/metrics/collectors-server-internal/kibana.jsonc diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/package.json b/src/core/packages/metrics/collectors-server-internal/package.json similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/package.json rename to src/core/packages/metrics/collectors-server-internal/package.json diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/__mocks__/perf_hooks.ts b/src/core/packages/metrics/collectors-server-internal/src/__mocks__/perf_hooks.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/__mocks__/perf_hooks.ts rename to src/core/packages/metrics/collectors-server-internal/src/__mocks__/perf_hooks.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/cgroup.test.ts b/src/core/packages/metrics/collectors-server-internal/src/cgroup/cgroup.test.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/cgroup.test.ts rename to src/core/packages/metrics/collectors-server-internal/src/cgroup/cgroup.test.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/cgroup.ts b/src/core/packages/metrics/collectors-server-internal/src/cgroup/cgroup.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/cgroup.ts rename to src/core/packages/metrics/collectors-server-internal/src/cgroup/cgroup.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/constants.ts b/src/core/packages/metrics/collectors-server-internal/src/cgroup/constants.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/constants.ts rename to src/core/packages/metrics/collectors-server-internal/src/cgroup/constants.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/gather_info.test.ts b/src/core/packages/metrics/collectors-server-internal/src/cgroup/gather_info.test.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/gather_info.test.ts rename to src/core/packages/metrics/collectors-server-internal/src/cgroup/gather_info.test.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/gather_info.ts b/src/core/packages/metrics/collectors-server-internal/src/cgroup/gather_info.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/gather_info.ts rename to src/core/packages/metrics/collectors-server-internal/src/cgroup/gather_info.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/index.ts b/src/core/packages/metrics/collectors-server-internal/src/cgroup/index.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/index.ts rename to src/core/packages/metrics/collectors-server-internal/src/cgroup/index.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/types.ts b/src/core/packages/metrics/collectors-server-internal/src/cgroup/types.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/types.ts rename to src/core/packages/metrics/collectors-server-internal/src/cgroup/types.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/v1.test.ts b/src/core/packages/metrics/collectors-server-internal/src/cgroup/v1.test.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/v1.test.ts rename to src/core/packages/metrics/collectors-server-internal/src/cgroup/v1.test.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/v1.ts b/src/core/packages/metrics/collectors-server-internal/src/cgroup/v1.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/v1.ts rename to src/core/packages/metrics/collectors-server-internal/src/cgroup/v1.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/v2.test.ts b/src/core/packages/metrics/collectors-server-internal/src/cgroup/v2.test.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/v2.test.ts rename to src/core/packages/metrics/collectors-server-internal/src/cgroup/v2.test.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/v2.ts b/src/core/packages/metrics/collectors-server-internal/src/cgroup/v2.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/cgroup/v2.ts rename to src/core/packages/metrics/collectors-server-internal/src/cgroup/v2.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/elasticsearch_client.test.ts b/src/core/packages/metrics/collectors-server-internal/src/elasticsearch_client.test.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/elasticsearch_client.test.ts rename to src/core/packages/metrics/collectors-server-internal/src/elasticsearch_client.test.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/elasticsearch_client.ts b/src/core/packages/metrics/collectors-server-internal/src/elasticsearch_client.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/elasticsearch_client.ts rename to src/core/packages/metrics/collectors-server-internal/src/elasticsearch_client.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/event_loop_delays_monitor.test.ts b/src/core/packages/metrics/collectors-server-internal/src/event_loop_delays_monitor.test.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/event_loop_delays_monitor.test.ts rename to src/core/packages/metrics/collectors-server-internal/src/event_loop_delays_monitor.test.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/event_loop_delays_monitor.ts b/src/core/packages/metrics/collectors-server-internal/src/event_loop_delays_monitor.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/event_loop_delays_monitor.ts rename to src/core/packages/metrics/collectors-server-internal/src/event_loop_delays_monitor.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/event_loop_utilization_monitor.test.mocks.ts b/src/core/packages/metrics/collectors-server-internal/src/event_loop_utilization_monitor.test.mocks.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/event_loop_utilization_monitor.test.mocks.ts rename to src/core/packages/metrics/collectors-server-internal/src/event_loop_utilization_monitor.test.mocks.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/event_loop_utilization_monitor.test.ts b/src/core/packages/metrics/collectors-server-internal/src/event_loop_utilization_monitor.test.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/event_loop_utilization_monitor.test.ts rename to src/core/packages/metrics/collectors-server-internal/src/event_loop_utilization_monitor.test.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/event_loop_utilization_monitor.ts b/src/core/packages/metrics/collectors-server-internal/src/event_loop_utilization_monitor.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/event_loop_utilization_monitor.ts rename to src/core/packages/metrics/collectors-server-internal/src/event_loop_utilization_monitor.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/mocks_internal.ts b/src/core/packages/metrics/collectors-server-internal/src/mocks_internal.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/mocks_internal.ts rename to src/core/packages/metrics/collectors-server-internal/src/mocks_internal.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/os.test.mocks.ts b/src/core/packages/metrics/collectors-server-internal/src/os.test.mocks.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/os.test.mocks.ts rename to src/core/packages/metrics/collectors-server-internal/src/os.test.mocks.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/os.test.ts b/src/core/packages/metrics/collectors-server-internal/src/os.test.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/os.test.ts rename to src/core/packages/metrics/collectors-server-internal/src/os.test.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/os.ts b/src/core/packages/metrics/collectors-server-internal/src/os.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/os.ts rename to src/core/packages/metrics/collectors-server-internal/src/os.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/process.test.mocks.ts b/src/core/packages/metrics/collectors-server-internal/src/process.test.mocks.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/process.test.mocks.ts rename to src/core/packages/metrics/collectors-server-internal/src/process.test.mocks.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/process.test.ts b/src/core/packages/metrics/collectors-server-internal/src/process.test.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/process.test.ts rename to src/core/packages/metrics/collectors-server-internal/src/process.test.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/process.ts b/src/core/packages/metrics/collectors-server-internal/src/process.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/process.ts rename to src/core/packages/metrics/collectors-server-internal/src/process.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/src/server.ts b/src/core/packages/metrics/collectors-server-internal/src/server.ts similarity index 100% rename from packages/core/metrics/core-metrics-collectors-server-internal/src/server.ts rename to src/core/packages/metrics/collectors-server-internal/src/server.ts diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/tsconfig.json b/src/core/packages/metrics/collectors-server-internal/tsconfig.json similarity index 88% rename from packages/core/metrics/core-metrics-collectors-server-internal/tsconfig.json rename to src/core/packages/metrics/collectors-server-internal/tsconfig.json index d1a2498ffbd68..eca2210394d20 100644 --- a/packages/core/metrics/core-metrics-collectors-server-internal/tsconfig.json +++ b/src/core/packages/metrics/collectors-server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 22ecef8e6dcb0..2ce746f386df4 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -462,8 +462,8 @@ "@kbn/core-logging-server-internal/*": ["src/core/packages/logging/server-internal/*"], "@kbn/core-logging-server-mocks": ["packages/core/logging/core-logging-server-mocks"], "@kbn/core-logging-server-mocks/*": ["packages/core/logging/core-logging-server-mocks/*"], - "@kbn/core-metrics-collectors-server-internal": ["packages/core/metrics/core-metrics-collectors-server-internal"], - "@kbn/core-metrics-collectors-server-internal/*": ["packages/core/metrics/core-metrics-collectors-server-internal/*"], + "@kbn/core-metrics-collectors-server-internal": ["src/core/packages/metrics/collectors-server-internal"], + "@kbn/core-metrics-collectors-server-internal/*": ["src/core/packages/metrics/collectors-server-internal/*"], "@kbn/core-metrics-collectors-server-mocks": ["packages/core/metrics/core-metrics-collectors-server-mocks"], "@kbn/core-metrics-collectors-server-mocks/*": ["packages/core/metrics/core-metrics-collectors-server-mocks/*"], "@kbn/core-metrics-server": ["packages/core/metrics/core-metrics-server"], diff --git a/yarn.lock b/yarn.lock index 30765bc81b1a2..3b9c9c3689d19 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4737,7 +4737,7 @@ version "0.0.0" uid "" -"@kbn/core-metrics-collectors-server-internal@link:packages/core/metrics/core-metrics-collectors-server-internal": +"@kbn/core-metrics-collectors-server-internal@link:src/core/packages/metrics/collectors-server-internal": version "0.0.0" uid "" From ee3a23bd53cd08d73caeb042a2bd62058290068e Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:59:04 +0100 Subject: [PATCH 074/167] Relocating module `@kbn/core-metrics-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/metrics/server}/README.md | 0 .../core/packages/metrics/server}/index.ts | 0 .../core/packages/metrics/server}/jest.config.js | 4 ++-- .../core/packages/metrics/server}/kibana.jsonc | 0 .../core/packages/metrics/server}/package.json | 0 .../core/packages/metrics/server}/src/collectors.ts | 0 .../core/packages/metrics/server}/src/contracts.ts | 0 .../core/packages/metrics/server}/src/metrics.ts | 0 .../core/packages/metrics/server}/tsconfig.json | 2 +- .../usage_collection/common/types/stats/core_metrics.ts | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 9 insertions(+), 9 deletions(-) rename {packages/core/metrics/core-metrics-server => src/core/packages/metrics/server}/README.md (100%) rename {packages/core/metrics/core-metrics-server => src/core/packages/metrics/server}/index.ts (100%) rename {packages/core/metrics/core-metrics-server => src/core/packages/metrics/server}/jest.config.js (85%) rename {packages/core/metrics/core-metrics-server => src/core/packages/metrics/server}/kibana.jsonc (100%) rename {packages/core/metrics/core-metrics-server => src/core/packages/metrics/server}/package.json (100%) rename {packages/core/metrics/core-metrics-server => src/core/packages/metrics/server}/src/collectors.ts (100%) rename {packages/core/metrics/core-metrics-server => src/core/packages/metrics/server}/src/contracts.ts (100%) rename {packages/core/metrics/core-metrics-server => src/core/packages/metrics/server}/src/metrics.ts (100%) rename {packages/core/metrics/core-metrics-server => src/core/packages/metrics/server}/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 07451a6b82201..1e5c70af4c176 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -94,7 +94,6 @@ packages/core/lifecycle/core-lifecycle-server-mocks @elastic/kibana-core packages/core/logging/core-logging-browser-mocks @elastic/kibana-core packages/core/logging/core-logging-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-collectors-server-mocks @elastic/kibana-core -packages/core/metrics/core-metrics-server @elastic/kibana-core packages/core/metrics/core-metrics-server-internal @elastic/kibana-core packages/core/metrics/core-metrics-server-mocks @elastic/kibana-core packages/core/mount-utils/core-mount-utils-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/logging/common-internal @elastic/kibana-core src/core/packages/logging/server @elastic/kibana-core src/core/packages/logging/server-internal @elastic/kibana-core src/core/packages/metrics/collectors-server-internal @elastic/kibana-core +src/core/packages/metrics/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 4bb5fedc4755e..eb5935992f696 100644 --- a/package.json +++ b/package.json @@ -329,7 +329,7 @@ "@kbn/core-logging-server": "link:src/core/packages/logging/server", "@kbn/core-logging-server-internal": "link:src/core/packages/logging/server-internal", "@kbn/core-metrics-collectors-server-internal": "link:src/core/packages/metrics/collectors-server-internal", - "@kbn/core-metrics-server": "link:packages/core/metrics/core-metrics-server", + "@kbn/core-metrics-server": "link:src/core/packages/metrics/server", "@kbn/core-metrics-server-internal": "link:packages/core/metrics/core-metrics-server-internal", "@kbn/core-mount-utils-browser": "link:packages/core/mount-utils/core-mount-utils-browser", "@kbn/core-mount-utils-browser-internal": "link:packages/core/mount-utils/core-mount-utils-browser-internal", diff --git a/packages/core/metrics/core-metrics-server/README.md b/src/core/packages/metrics/server/README.md similarity index 100% rename from packages/core/metrics/core-metrics-server/README.md rename to src/core/packages/metrics/server/README.md diff --git a/packages/core/metrics/core-metrics-server/index.ts b/src/core/packages/metrics/server/index.ts similarity index 100% rename from packages/core/metrics/core-metrics-server/index.ts rename to src/core/packages/metrics/server/index.ts diff --git a/packages/core/metrics/core-metrics-server/jest.config.js b/src/core/packages/metrics/server/jest.config.js similarity index 85% rename from packages/core/metrics/core-metrics-server/jest.config.js rename to src/core/packages/metrics/server/jest.config.js index ed815652a90c0..f7e5fb7a706ef 100644 --- a/packages/core/metrics/core-metrics-server/jest.config.js +++ b/src/core/packages/metrics/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/metrics/core-metrics-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/metrics/server'], }; diff --git a/packages/core/metrics/core-metrics-server/kibana.jsonc b/src/core/packages/metrics/server/kibana.jsonc similarity index 100% rename from packages/core/metrics/core-metrics-server/kibana.jsonc rename to src/core/packages/metrics/server/kibana.jsonc diff --git a/packages/core/metrics/core-metrics-server/package.json b/src/core/packages/metrics/server/package.json similarity index 100% rename from packages/core/metrics/core-metrics-server/package.json rename to src/core/packages/metrics/server/package.json diff --git a/packages/core/metrics/core-metrics-server/src/collectors.ts b/src/core/packages/metrics/server/src/collectors.ts similarity index 100% rename from packages/core/metrics/core-metrics-server/src/collectors.ts rename to src/core/packages/metrics/server/src/collectors.ts diff --git a/packages/core/metrics/core-metrics-server/src/contracts.ts b/src/core/packages/metrics/server/src/contracts.ts similarity index 100% rename from packages/core/metrics/core-metrics-server/src/contracts.ts rename to src/core/packages/metrics/server/src/contracts.ts diff --git a/packages/core/metrics/core-metrics-server/src/metrics.ts b/src/core/packages/metrics/server/src/metrics.ts similarity index 100% rename from packages/core/metrics/core-metrics-server/src/metrics.ts rename to src/core/packages/metrics/server/src/metrics.ts diff --git a/packages/core/metrics/core-metrics-server/tsconfig.json b/src/core/packages/metrics/server/tsconfig.json similarity index 82% rename from packages/core/metrics/core-metrics-server/tsconfig.json rename to src/core/packages/metrics/server/tsconfig.json index 5dccac215ffaf..59554de320901 100644 --- a/packages/core/metrics/core-metrics-server/tsconfig.json +++ b/src/core/packages/metrics/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/src/plugins/usage_collection/common/types/stats/core_metrics.ts b/src/plugins/usage_collection/common/types/stats/core_metrics.ts index 3e4042faf8115..22310e85f553a 100644 --- a/src/plugins/usage_collection/common/types/stats/core_metrics.ts +++ b/src/plugins/usage_collection/common/types/stats/core_metrics.ts @@ -10,7 +10,7 @@ /** * The types are exact duplicates of the ops metrics types declared in core needed for reporting in the stats api. * We use a copy of these to detect changes in the ops metrics reported from core - * See packages/core/metrics/core-metrics-server/index.ts + * See src/core/packages/metrics/server/index.ts */ /** diff --git a/tsconfig.base.json b/tsconfig.base.json index 2ce746f386df4..026dd81ec7bd7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -466,8 +466,8 @@ "@kbn/core-metrics-collectors-server-internal/*": ["src/core/packages/metrics/collectors-server-internal/*"], "@kbn/core-metrics-collectors-server-mocks": ["packages/core/metrics/core-metrics-collectors-server-mocks"], "@kbn/core-metrics-collectors-server-mocks/*": ["packages/core/metrics/core-metrics-collectors-server-mocks/*"], - "@kbn/core-metrics-server": ["packages/core/metrics/core-metrics-server"], - "@kbn/core-metrics-server/*": ["packages/core/metrics/core-metrics-server/*"], + "@kbn/core-metrics-server": ["src/core/packages/metrics/server"], + "@kbn/core-metrics-server/*": ["src/core/packages/metrics/server/*"], "@kbn/core-metrics-server-internal": ["packages/core/metrics/core-metrics-server-internal"], "@kbn/core-metrics-server-internal/*": ["packages/core/metrics/core-metrics-server-internal/*"], "@kbn/core-metrics-server-mocks": ["packages/core/metrics/core-metrics-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 3b9c9c3689d19..2971002e11d67 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4753,7 +4753,7 @@ version "0.0.0" uid "" -"@kbn/core-metrics-server@link:packages/core/metrics/core-metrics-server": +"@kbn/core-metrics-server@link:src/core/packages/metrics/server": version "0.0.0" uid "" From e669359a7f350ab7aa391da5b469e524ea977e68 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 22:59:56 +0100 Subject: [PATCH 075/167] Relocating module `@kbn/core-metrics-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/metrics/server-internal}/README.md | 0 .../core/packages/metrics/server-internal}/index.ts | 0 .../core/packages/metrics/server-internal}/jest.config.js | 4 ++-- .../core/packages/metrics/server-internal}/kibana.jsonc | 0 .../core/packages/metrics/server-internal}/package.json | 0 .../server-internal}/src/logging/get_ops_metrics_log.test.ts | 0 .../server-internal}/src/logging/get_ops_metrics_log.ts | 0 .../packages/metrics/server-internal}/src/logging/index.ts | 0 .../server-internal}/src/metrics_service.test.mocks.ts | 0 .../metrics/server-internal}/src/metrics_service.test.ts | 0 .../packages/metrics/server-internal}/src/metrics_service.ts | 0 .../core/packages/metrics/server-internal}/src/ops_config.ts | 0 .../server-internal}/src/ops_metrics_collector.test.mocks.ts | 0 .../server-internal}/src/ops_metrics_collector.test.ts | 0 .../metrics/server-internal}/src/ops_metrics_collector.ts | 0 .../metrics/server-internal}/src/routes/elu_history.ts | 0 .../server-internal}/src/routes/history_window.test.ts | 0 .../metrics/server-internal}/src/routes/history_window.ts | 0 .../core/packages/metrics/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 23 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/README.md (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/index.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/jest.config.js (83%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/kibana.jsonc (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/package.json (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/src/logging/get_ops_metrics_log.test.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/src/logging/get_ops_metrics_log.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/src/logging/index.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/src/metrics_service.test.mocks.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/src/metrics_service.test.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/src/metrics_service.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/src/ops_config.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/src/ops_metrics_collector.test.mocks.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/src/ops_metrics_collector.test.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/src/ops_metrics_collector.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/src/routes/elu_history.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/src/routes/history_window.test.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/src/routes/history_window.ts (100%) rename {packages/core/metrics/core-metrics-server-internal => src/core/packages/metrics/server-internal}/tsconfig.json (94%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1e5c70af4c176..ffd08cc8fa901 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -94,7 +94,6 @@ packages/core/lifecycle/core-lifecycle-server-mocks @elastic/kibana-core packages/core/logging/core-logging-browser-mocks @elastic/kibana-core packages/core/logging/core-logging-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-collectors-server-mocks @elastic/kibana-core -packages/core/metrics/core-metrics-server-internal @elastic/kibana-core packages/core/metrics/core-metrics-server-mocks @elastic/kibana-core packages/core/mount-utils/core-mount-utils-browser @elastic/kibana-core packages/core/mount-utils/core-mount-utils-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/logging/server @elastic/kibana-core src/core/packages/logging/server-internal @elastic/kibana-core src/core/packages/metrics/collectors-server-internal @elastic/kibana-core src/core/packages/metrics/server @elastic/kibana-core +src/core/packages/metrics/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index eb5935992f696..3b5d18f7ec358 100644 --- a/package.json +++ b/package.json @@ -330,7 +330,7 @@ "@kbn/core-logging-server-internal": "link:src/core/packages/logging/server-internal", "@kbn/core-metrics-collectors-server-internal": "link:src/core/packages/metrics/collectors-server-internal", "@kbn/core-metrics-server": "link:src/core/packages/metrics/server", - "@kbn/core-metrics-server-internal": "link:packages/core/metrics/core-metrics-server-internal", + "@kbn/core-metrics-server-internal": "link:src/core/packages/metrics/server-internal", "@kbn/core-mount-utils-browser": "link:packages/core/mount-utils/core-mount-utils-browser", "@kbn/core-mount-utils-browser-internal": "link:packages/core/mount-utils/core-mount-utils-browser-internal", "@kbn/core-node-server": "link:packages/core/node/core-node-server", diff --git a/packages/core/metrics/core-metrics-server-internal/README.md b/src/core/packages/metrics/server-internal/README.md similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/README.md rename to src/core/packages/metrics/server-internal/README.md diff --git a/packages/core/metrics/core-metrics-server-internal/index.ts b/src/core/packages/metrics/server-internal/index.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/index.ts rename to src/core/packages/metrics/server-internal/index.ts diff --git a/packages/core/metrics/core-metrics-server-internal/jest.config.js b/src/core/packages/metrics/server-internal/jest.config.js similarity index 83% rename from packages/core/metrics/core-metrics-server-internal/jest.config.js rename to src/core/packages/metrics/server-internal/jest.config.js index 3d22a4031f40f..1e8808523903d 100644 --- a/packages/core/metrics/core-metrics-server-internal/jest.config.js +++ b/src/core/packages/metrics/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/metrics/core-metrics-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/metrics/server-internal'], }; diff --git a/packages/core/metrics/core-metrics-server-internal/kibana.jsonc b/src/core/packages/metrics/server-internal/kibana.jsonc similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/kibana.jsonc rename to src/core/packages/metrics/server-internal/kibana.jsonc diff --git a/packages/core/metrics/core-metrics-server-internal/package.json b/src/core/packages/metrics/server-internal/package.json similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/package.json rename to src/core/packages/metrics/server-internal/package.json diff --git a/packages/core/metrics/core-metrics-server-internal/src/logging/get_ops_metrics_log.test.ts b/src/core/packages/metrics/server-internal/src/logging/get_ops_metrics_log.test.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/src/logging/get_ops_metrics_log.test.ts rename to src/core/packages/metrics/server-internal/src/logging/get_ops_metrics_log.test.ts diff --git a/packages/core/metrics/core-metrics-server-internal/src/logging/get_ops_metrics_log.ts b/src/core/packages/metrics/server-internal/src/logging/get_ops_metrics_log.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/src/logging/get_ops_metrics_log.ts rename to src/core/packages/metrics/server-internal/src/logging/get_ops_metrics_log.ts diff --git a/packages/core/metrics/core-metrics-server-internal/src/logging/index.ts b/src/core/packages/metrics/server-internal/src/logging/index.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/src/logging/index.ts rename to src/core/packages/metrics/server-internal/src/logging/index.ts diff --git a/packages/core/metrics/core-metrics-server-internal/src/metrics_service.test.mocks.ts b/src/core/packages/metrics/server-internal/src/metrics_service.test.mocks.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/src/metrics_service.test.mocks.ts rename to src/core/packages/metrics/server-internal/src/metrics_service.test.mocks.ts diff --git a/packages/core/metrics/core-metrics-server-internal/src/metrics_service.test.ts b/src/core/packages/metrics/server-internal/src/metrics_service.test.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/src/metrics_service.test.ts rename to src/core/packages/metrics/server-internal/src/metrics_service.test.ts diff --git a/packages/core/metrics/core-metrics-server-internal/src/metrics_service.ts b/src/core/packages/metrics/server-internal/src/metrics_service.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/src/metrics_service.ts rename to src/core/packages/metrics/server-internal/src/metrics_service.ts diff --git a/packages/core/metrics/core-metrics-server-internal/src/ops_config.ts b/src/core/packages/metrics/server-internal/src/ops_config.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/src/ops_config.ts rename to src/core/packages/metrics/server-internal/src/ops_config.ts diff --git a/packages/core/metrics/core-metrics-server-internal/src/ops_metrics_collector.test.mocks.ts b/src/core/packages/metrics/server-internal/src/ops_metrics_collector.test.mocks.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/src/ops_metrics_collector.test.mocks.ts rename to src/core/packages/metrics/server-internal/src/ops_metrics_collector.test.mocks.ts diff --git a/packages/core/metrics/core-metrics-server-internal/src/ops_metrics_collector.test.ts b/src/core/packages/metrics/server-internal/src/ops_metrics_collector.test.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/src/ops_metrics_collector.test.ts rename to src/core/packages/metrics/server-internal/src/ops_metrics_collector.test.ts diff --git a/packages/core/metrics/core-metrics-server-internal/src/ops_metrics_collector.ts b/src/core/packages/metrics/server-internal/src/ops_metrics_collector.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/src/ops_metrics_collector.ts rename to src/core/packages/metrics/server-internal/src/ops_metrics_collector.ts diff --git a/packages/core/metrics/core-metrics-server-internal/src/routes/elu_history.ts b/src/core/packages/metrics/server-internal/src/routes/elu_history.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/src/routes/elu_history.ts rename to src/core/packages/metrics/server-internal/src/routes/elu_history.ts diff --git a/packages/core/metrics/core-metrics-server-internal/src/routes/history_window.test.ts b/src/core/packages/metrics/server-internal/src/routes/history_window.test.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/src/routes/history_window.test.ts rename to src/core/packages/metrics/server-internal/src/routes/history_window.test.ts diff --git a/packages/core/metrics/core-metrics-server-internal/src/routes/history_window.ts b/src/core/packages/metrics/server-internal/src/routes/history_window.ts similarity index 100% rename from packages/core/metrics/core-metrics-server-internal/src/routes/history_window.ts rename to src/core/packages/metrics/server-internal/src/routes/history_window.ts diff --git a/packages/core/metrics/core-metrics-server-internal/tsconfig.json b/src/core/packages/metrics/server-internal/tsconfig.json similarity index 94% rename from packages/core/metrics/core-metrics-server-internal/tsconfig.json rename to src/core/packages/metrics/server-internal/tsconfig.json index dfc7c4766d110..adf1cdbc8b92b 100644 --- a/packages/core/metrics/core-metrics-server-internal/tsconfig.json +++ b/src/core/packages/metrics/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 026dd81ec7bd7..3878f7e09622f 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -468,8 +468,8 @@ "@kbn/core-metrics-collectors-server-mocks/*": ["packages/core/metrics/core-metrics-collectors-server-mocks/*"], "@kbn/core-metrics-server": ["src/core/packages/metrics/server"], "@kbn/core-metrics-server/*": ["src/core/packages/metrics/server/*"], - "@kbn/core-metrics-server-internal": ["packages/core/metrics/core-metrics-server-internal"], - "@kbn/core-metrics-server-internal/*": ["packages/core/metrics/core-metrics-server-internal/*"], + "@kbn/core-metrics-server-internal": ["src/core/packages/metrics/server-internal"], + "@kbn/core-metrics-server-internal/*": ["src/core/packages/metrics/server-internal/*"], "@kbn/core-metrics-server-mocks": ["packages/core/metrics/core-metrics-server-mocks"], "@kbn/core-metrics-server-mocks/*": ["packages/core/metrics/core-metrics-server-mocks/*"], "@kbn/core-mount-utils-browser": ["packages/core/mount-utils/core-mount-utils-browser"], diff --git a/yarn.lock b/yarn.lock index 2971002e11d67..4eb61f4b313b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4745,7 +4745,7 @@ version "0.0.0" uid "" -"@kbn/core-metrics-server-internal@link:packages/core/metrics/core-metrics-server-internal": +"@kbn/core-metrics-server-internal@link:src/core/packages/metrics/server-internal": version "0.0.0" uid "" From 6327a85254be6ffdf04b8e89ba28c533cfdd39d5 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:00:51 +0100 Subject: [PATCH 076/167] Relocating module `@kbn/core-mount-utils-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/mount-utils/browser}/README.md | 0 .../core/packages/mount-utils/browser}/index.ts | 0 .../core/packages/mount-utils/browser}/jest.config.js | 4 ++-- .../core/packages/mount-utils/browser}/kibana.jsonc | 0 .../core/packages/mount-utils/browser}/package.json | 0 .../core/packages/mount-utils/browser}/src/mount_point.ts | 0 .../core/packages/mount-utils/browser}/src/overlay_ref.ts | 0 .../core/packages/mount-utils/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/mount-utils/core-mount-utils-browser => src/core/packages/mount-utils/browser}/README.md (100%) rename {packages/core/mount-utils/core-mount-utils-browser => src/core/packages/mount-utils/browser}/index.ts (100%) rename {packages/core/mount-utils/core-mount-utils-browser => src/core/packages/mount-utils/browser}/jest.config.js (83%) rename {packages/core/mount-utils/core-mount-utils-browser => src/core/packages/mount-utils/browser}/kibana.jsonc (100%) rename {packages/core/mount-utils/core-mount-utils-browser => src/core/packages/mount-utils/browser}/package.json (100%) rename {packages/core/mount-utils/core-mount-utils-browser => src/core/packages/mount-utils/browser}/src/mount_point.ts (100%) rename {packages/core/mount-utils/core-mount-utils-browser => src/core/packages/mount-utils/browser}/src/overlay_ref.ts (100%) rename {packages/core/mount-utils/core-mount-utils-browser => src/core/packages/mount-utils/browser}/tsconfig.json (79%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ffd08cc8fa901..b7b62f38a620c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -95,7 +95,6 @@ packages/core/logging/core-logging-browser-mocks @elastic/kibana-core packages/core/logging/core-logging-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-collectors-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-server-mocks @elastic/kibana-core -packages/core/mount-utils/core-mount-utils-browser @elastic/kibana-core packages/core/mount-utils/core-mount-utils-browser-internal @elastic/kibana-core packages/core/node/core-node-server @elastic/kibana-core packages/core/node/core-node-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/logging/server-internal @elastic/kibana-core src/core/packages/metrics/collectors-server-internal @elastic/kibana-core src/core/packages/metrics/server @elastic/kibana-core src/core/packages/metrics/server-internal @elastic/kibana-core +src/core/packages/mount-utils/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 3b5d18f7ec358..efcb94b76e189 100644 --- a/package.json +++ b/package.json @@ -331,7 +331,7 @@ "@kbn/core-metrics-collectors-server-internal": "link:src/core/packages/metrics/collectors-server-internal", "@kbn/core-metrics-server": "link:src/core/packages/metrics/server", "@kbn/core-metrics-server-internal": "link:src/core/packages/metrics/server-internal", - "@kbn/core-mount-utils-browser": "link:packages/core/mount-utils/core-mount-utils-browser", + "@kbn/core-mount-utils-browser": "link:src/core/packages/mount-utils/browser", "@kbn/core-mount-utils-browser-internal": "link:packages/core/mount-utils/core-mount-utils-browser-internal", "@kbn/core-node-server": "link:packages/core/node/core-node-server", "@kbn/core-node-server-internal": "link:packages/core/node/core-node-server-internal", diff --git a/packages/core/mount-utils/core-mount-utils-browser/README.md b/src/core/packages/mount-utils/browser/README.md similarity index 100% rename from packages/core/mount-utils/core-mount-utils-browser/README.md rename to src/core/packages/mount-utils/browser/README.md diff --git a/packages/core/mount-utils/core-mount-utils-browser/index.ts b/src/core/packages/mount-utils/browser/index.ts similarity index 100% rename from packages/core/mount-utils/core-mount-utils-browser/index.ts rename to src/core/packages/mount-utils/browser/index.ts diff --git a/packages/core/mount-utils/core-mount-utils-browser/jest.config.js b/src/core/packages/mount-utils/browser/jest.config.js similarity index 83% rename from packages/core/mount-utils/core-mount-utils-browser/jest.config.js rename to src/core/packages/mount-utils/browser/jest.config.js index 155ca552f97f8..acb0a708847ae 100644 --- a/packages/core/mount-utils/core-mount-utils-browser/jest.config.js +++ b/src/core/packages/mount-utils/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/mount-utils/core-mount-utils-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/mount-utils/browser'], }; diff --git a/packages/core/mount-utils/core-mount-utils-browser/kibana.jsonc b/src/core/packages/mount-utils/browser/kibana.jsonc similarity index 100% rename from packages/core/mount-utils/core-mount-utils-browser/kibana.jsonc rename to src/core/packages/mount-utils/browser/kibana.jsonc diff --git a/packages/core/mount-utils/core-mount-utils-browser/package.json b/src/core/packages/mount-utils/browser/package.json similarity index 100% rename from packages/core/mount-utils/core-mount-utils-browser/package.json rename to src/core/packages/mount-utils/browser/package.json diff --git a/packages/core/mount-utils/core-mount-utils-browser/src/mount_point.ts b/src/core/packages/mount-utils/browser/src/mount_point.ts similarity index 100% rename from packages/core/mount-utils/core-mount-utils-browser/src/mount_point.ts rename to src/core/packages/mount-utils/browser/src/mount_point.ts diff --git a/packages/core/mount-utils/core-mount-utils-browser/src/overlay_ref.ts b/src/core/packages/mount-utils/browser/src/overlay_ref.ts similarity index 100% rename from packages/core/mount-utils/core-mount-utils-browser/src/overlay_ref.ts rename to src/core/packages/mount-utils/browser/src/overlay_ref.ts diff --git a/packages/core/mount-utils/core-mount-utils-browser/tsconfig.json b/src/core/packages/mount-utils/browser/tsconfig.json similarity index 79% rename from packages/core/mount-utils/core-mount-utils-browser/tsconfig.json rename to src/core/packages/mount-utils/browser/tsconfig.json index 0f16c2b9311d8..14019fa2b02b7 100644 --- a/packages/core/mount-utils/core-mount-utils-browser/tsconfig.json +++ b/src/core/packages/mount-utils/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 3878f7e09622f..d626314ea7ee8 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -472,8 +472,8 @@ "@kbn/core-metrics-server-internal/*": ["src/core/packages/metrics/server-internal/*"], "@kbn/core-metrics-server-mocks": ["packages/core/metrics/core-metrics-server-mocks"], "@kbn/core-metrics-server-mocks/*": ["packages/core/metrics/core-metrics-server-mocks/*"], - "@kbn/core-mount-utils-browser": ["packages/core/mount-utils/core-mount-utils-browser"], - "@kbn/core-mount-utils-browser/*": ["packages/core/mount-utils/core-mount-utils-browser/*"], + "@kbn/core-mount-utils-browser": ["src/core/packages/mount-utils/browser"], + "@kbn/core-mount-utils-browser/*": ["src/core/packages/mount-utils/browser/*"], "@kbn/core-mount-utils-browser-internal": ["packages/core/mount-utils/core-mount-utils-browser-internal"], "@kbn/core-mount-utils-browser-internal/*": ["packages/core/mount-utils/core-mount-utils-browser-internal/*"], "@kbn/core-node-server": ["packages/core/node/core-node-server"], diff --git a/yarn.lock b/yarn.lock index 4eb61f4b313b8..a16a3bda30544 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4761,7 +4761,7 @@ version "0.0.0" uid "" -"@kbn/core-mount-utils-browser@link:packages/core/mount-utils/core-mount-utils-browser": +"@kbn/core-mount-utils-browser@link:src/core/packages/mount-utils/browser": version "0.0.0" uid "" From 88acd0a66eb77b3805687a37ee2f0412b56e5205 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:01:47 +0100 Subject: [PATCH 077/167] Relocating module `@kbn/core-mount-utils-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/mount-utils/browser-internal}/README.md | 0 .../core/packages/mount-utils/browser-internal}/index.ts | 0 .../packages/mount-utils/browser-internal}/jest.config.js | 4 ++-- .../core/packages/mount-utils/browser-internal}/kibana.jsonc | 0 .../core/packages/mount-utils/browser-internal}/package.json | 0 .../packages/mount-utils/browser-internal}/src/mount.test.tsx | 0 .../core/packages/mount-utils/browser-internal}/src/mount.tsx | 0 .../mount-utils/browser-internal}/src/mount_wrapper.scss | 0 .../core/packages/mount-utils/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/mount-utils/core-mount-utils-browser-internal => src/core/packages/mount-utils/browser-internal}/README.md (100%) rename {packages/core/mount-utils/core-mount-utils-browser-internal => src/core/packages/mount-utils/browser-internal}/index.ts (100%) rename {packages/core/mount-utils/core-mount-utils-browser-internal => src/core/packages/mount-utils/browser-internal}/jest.config.js (82%) rename {packages/core/mount-utils/core-mount-utils-browser-internal => src/core/packages/mount-utils/browser-internal}/kibana.jsonc (100%) rename {packages/core/mount-utils/core-mount-utils-browser-internal => src/core/packages/mount-utils/browser-internal}/package.json (100%) rename {packages/core/mount-utils/core-mount-utils-browser-internal => src/core/packages/mount-utils/browser-internal}/src/mount.test.tsx (100%) rename {packages/core/mount-utils/core-mount-utils-browser-internal => src/core/packages/mount-utils/browser-internal}/src/mount.tsx (100%) rename {packages/core/mount-utils/core-mount-utils-browser-internal => src/core/packages/mount-utils/browser-internal}/src/mount_wrapper.scss (100%) rename {packages/core/mount-utils/core-mount-utils-browser-internal => src/core/packages/mount-utils/browser-internal}/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b7b62f38a620c..74494cda29384 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -95,7 +95,6 @@ packages/core/logging/core-logging-browser-mocks @elastic/kibana-core packages/core/logging/core-logging-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-collectors-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-server-mocks @elastic/kibana-core -packages/core/mount-utils/core-mount-utils-browser-internal @elastic/kibana-core packages/core/node/core-node-server @elastic/kibana-core packages/core/node/core-node-server-internal @elastic/kibana-core packages/core/node/core-node-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/metrics/collectors-server-internal @elastic/kibana-core src/core/packages/metrics/server @elastic/kibana-core src/core/packages/metrics/server-internal @elastic/kibana-core src/core/packages/mount-utils/browser @elastic/kibana-core +src/core/packages/mount-utils/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index efcb94b76e189..1a53daa0a868f 100644 --- a/package.json +++ b/package.json @@ -332,7 +332,7 @@ "@kbn/core-metrics-server": "link:src/core/packages/metrics/server", "@kbn/core-metrics-server-internal": "link:src/core/packages/metrics/server-internal", "@kbn/core-mount-utils-browser": "link:src/core/packages/mount-utils/browser", - "@kbn/core-mount-utils-browser-internal": "link:packages/core/mount-utils/core-mount-utils-browser-internal", + "@kbn/core-mount-utils-browser-internal": "link:src/core/packages/mount-utils/browser-internal", "@kbn/core-node-server": "link:packages/core/node/core-node-server", "@kbn/core-node-server-internal": "link:packages/core/node/core-node-server-internal", "@kbn/core-notifications-browser": "link:packages/core/notifications/core-notifications-browser", diff --git a/packages/core/mount-utils/core-mount-utils-browser-internal/README.md b/src/core/packages/mount-utils/browser-internal/README.md similarity index 100% rename from packages/core/mount-utils/core-mount-utils-browser-internal/README.md rename to src/core/packages/mount-utils/browser-internal/README.md diff --git a/packages/core/mount-utils/core-mount-utils-browser-internal/index.ts b/src/core/packages/mount-utils/browser-internal/index.ts similarity index 100% rename from packages/core/mount-utils/core-mount-utils-browser-internal/index.ts rename to src/core/packages/mount-utils/browser-internal/index.ts diff --git a/packages/core/mount-utils/core-mount-utils-browser-internal/jest.config.js b/src/core/packages/mount-utils/browser-internal/jest.config.js similarity index 82% rename from packages/core/mount-utils/core-mount-utils-browser-internal/jest.config.js rename to src/core/packages/mount-utils/browser-internal/jest.config.js index c8177c0890c00..187114de74be5 100644 --- a/packages/core/mount-utils/core-mount-utils-browser-internal/jest.config.js +++ b/src/core/packages/mount-utils/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/mount-utils/core-mount-utils-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/mount-utils/browser-internal'], }; diff --git a/packages/core/mount-utils/core-mount-utils-browser-internal/kibana.jsonc b/src/core/packages/mount-utils/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/mount-utils/core-mount-utils-browser-internal/kibana.jsonc rename to src/core/packages/mount-utils/browser-internal/kibana.jsonc diff --git a/packages/core/mount-utils/core-mount-utils-browser-internal/package.json b/src/core/packages/mount-utils/browser-internal/package.json similarity index 100% rename from packages/core/mount-utils/core-mount-utils-browser-internal/package.json rename to src/core/packages/mount-utils/browser-internal/package.json diff --git a/packages/core/mount-utils/core-mount-utils-browser-internal/src/mount.test.tsx b/src/core/packages/mount-utils/browser-internal/src/mount.test.tsx similarity index 100% rename from packages/core/mount-utils/core-mount-utils-browser-internal/src/mount.test.tsx rename to src/core/packages/mount-utils/browser-internal/src/mount.test.tsx diff --git a/packages/core/mount-utils/core-mount-utils-browser-internal/src/mount.tsx b/src/core/packages/mount-utils/browser-internal/src/mount.tsx similarity index 100% rename from packages/core/mount-utils/core-mount-utils-browser-internal/src/mount.tsx rename to src/core/packages/mount-utils/browser-internal/src/mount.tsx diff --git a/packages/core/mount-utils/core-mount-utils-browser-internal/src/mount_wrapper.scss b/src/core/packages/mount-utils/browser-internal/src/mount_wrapper.scss similarity index 100% rename from packages/core/mount-utils/core-mount-utils-browser-internal/src/mount_wrapper.scss rename to src/core/packages/mount-utils/browser-internal/src/mount_wrapper.scss diff --git a/packages/core/mount-utils/core-mount-utils-browser-internal/tsconfig.json b/src/core/packages/mount-utils/browser-internal/tsconfig.json similarity index 85% rename from packages/core/mount-utils/core-mount-utils-browser-internal/tsconfig.json rename to src/core/packages/mount-utils/browser-internal/tsconfig.json index fad08cdeb8787..4adaaaf2018e2 100644 --- a/packages/core/mount-utils/core-mount-utils-browser-internal/tsconfig.json +++ b/src/core/packages/mount-utils/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index d626314ea7ee8..fc6fb1f762159 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -474,8 +474,8 @@ "@kbn/core-metrics-server-mocks/*": ["packages/core/metrics/core-metrics-server-mocks/*"], "@kbn/core-mount-utils-browser": ["src/core/packages/mount-utils/browser"], "@kbn/core-mount-utils-browser/*": ["src/core/packages/mount-utils/browser/*"], - "@kbn/core-mount-utils-browser-internal": ["packages/core/mount-utils/core-mount-utils-browser-internal"], - "@kbn/core-mount-utils-browser-internal/*": ["packages/core/mount-utils/core-mount-utils-browser-internal/*"], + "@kbn/core-mount-utils-browser-internal": ["src/core/packages/mount-utils/browser-internal"], + "@kbn/core-mount-utils-browser-internal/*": ["src/core/packages/mount-utils/browser-internal/*"], "@kbn/core-node-server": ["packages/core/node/core-node-server"], "@kbn/core-node-server/*": ["packages/core/node/core-node-server/*"], "@kbn/core-node-server-internal": ["packages/core/node/core-node-server-internal"], diff --git a/yarn.lock b/yarn.lock index a16a3bda30544..6cc0108475cb6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4757,7 +4757,7 @@ version "0.0.0" uid "" -"@kbn/core-mount-utils-browser-internal@link:packages/core/mount-utils/core-mount-utils-browser-internal": +"@kbn/core-mount-utils-browser-internal@link:src/core/packages/mount-utils/browser-internal": version "0.0.0" uid "" From 7283d7f3cbe04d7dc848a72663c409e301d10cb9 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:02:44 +0100 Subject: [PATCH 078/167] Relocating module `@kbn/core-node-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/node/server}/README.md | 0 .../core/packages/node/server}/index.ts | 0 .../core/packages/node/server}/jest.config.js | 4 ++-- .../core/packages/node/server}/kibana.jsonc | 0 .../core/packages/node/server}/package.json | 0 .../core/packages/node/server}/src/types.ts | 0 .../core/packages/node/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/node/core-node-server => src/core/packages/node/server}/README.md (100%) rename {packages/core/node/core-node-server => src/core/packages/node/server}/index.ts (100%) rename {packages/core/node/core-node-server => src/core/packages/node/server}/jest.config.js (85%) rename {packages/core/node/core-node-server => src/core/packages/node/server}/kibana.jsonc (100%) rename {packages/core/node/core-node-server => src/core/packages/node/server}/package.json (100%) rename {packages/core/node/core-node-server => src/core/packages/node/server}/src/types.ts (100%) rename {packages/core/node/core-node-server => src/core/packages/node/server}/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 74494cda29384..6247b7ac02a83 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -95,7 +95,6 @@ packages/core/logging/core-logging-browser-mocks @elastic/kibana-core packages/core/logging/core-logging-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-collectors-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-server-mocks @elastic/kibana-core -packages/core/node/core-node-server @elastic/kibana-core packages/core/node/core-node-server-internal @elastic/kibana-core packages/core/node/core-node-server-mocks @elastic/kibana-core packages/core/notifications/core-notifications-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/metrics/server @elastic/kibana-core src/core/packages/metrics/server-internal @elastic/kibana-core src/core/packages/mount-utils/browser @elastic/kibana-core src/core/packages/mount-utils/browser-internal @elastic/kibana-core +src/core/packages/node/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 1a53daa0a868f..e15280c8109af 100644 --- a/package.json +++ b/package.json @@ -333,7 +333,7 @@ "@kbn/core-metrics-server-internal": "link:src/core/packages/metrics/server-internal", "@kbn/core-mount-utils-browser": "link:src/core/packages/mount-utils/browser", "@kbn/core-mount-utils-browser-internal": "link:src/core/packages/mount-utils/browser-internal", - "@kbn/core-node-server": "link:packages/core/node/core-node-server", + "@kbn/core-node-server": "link:src/core/packages/node/server", "@kbn/core-node-server-internal": "link:packages/core/node/core-node-server-internal", "@kbn/core-notifications-browser": "link:packages/core/notifications/core-notifications-browser", "@kbn/core-notifications-browser-internal": "link:packages/core/notifications/core-notifications-browser-internal", diff --git a/packages/core/node/core-node-server/README.md b/src/core/packages/node/server/README.md similarity index 100% rename from packages/core/node/core-node-server/README.md rename to src/core/packages/node/server/README.md diff --git a/packages/core/node/core-node-server/index.ts b/src/core/packages/node/server/index.ts similarity index 100% rename from packages/core/node/core-node-server/index.ts rename to src/core/packages/node/server/index.ts diff --git a/packages/core/node/core-node-server/jest.config.js b/src/core/packages/node/server/jest.config.js similarity index 85% rename from packages/core/node/core-node-server/jest.config.js rename to src/core/packages/node/server/jest.config.js index bf1865bd1bab0..b2dea786e3899 100644 --- a/packages/core/node/core-node-server/jest.config.js +++ b/src/core/packages/node/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/node/core-node-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/node/server'], }; diff --git a/packages/core/node/core-node-server/kibana.jsonc b/src/core/packages/node/server/kibana.jsonc similarity index 100% rename from packages/core/node/core-node-server/kibana.jsonc rename to src/core/packages/node/server/kibana.jsonc diff --git a/packages/core/node/core-node-server/package.json b/src/core/packages/node/server/package.json similarity index 100% rename from packages/core/node/core-node-server/package.json rename to src/core/packages/node/server/package.json diff --git a/packages/core/node/core-node-server/src/types.ts b/src/core/packages/node/server/src/types.ts similarity index 100% rename from packages/core/node/core-node-server/src/types.ts rename to src/core/packages/node/server/src/types.ts diff --git a/packages/core/node/core-node-server/tsconfig.json b/src/core/packages/node/server/tsconfig.json similarity index 78% rename from packages/core/node/core-node-server/tsconfig.json rename to src/core/packages/node/server/tsconfig.json index e7513f6481e89..131ff3e6bb433 100644 --- a/packages/core/node/core-node-server/tsconfig.json +++ b/src/core/packages/node/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index fc6fb1f762159..ccac820fa7dc7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -476,8 +476,8 @@ "@kbn/core-mount-utils-browser/*": ["src/core/packages/mount-utils/browser/*"], "@kbn/core-mount-utils-browser-internal": ["src/core/packages/mount-utils/browser-internal"], "@kbn/core-mount-utils-browser-internal/*": ["src/core/packages/mount-utils/browser-internal/*"], - "@kbn/core-node-server": ["packages/core/node/core-node-server"], - "@kbn/core-node-server/*": ["packages/core/node/core-node-server/*"], + "@kbn/core-node-server": ["src/core/packages/node/server"], + "@kbn/core-node-server/*": ["src/core/packages/node/server/*"], "@kbn/core-node-server-internal": ["packages/core/node/core-node-server-internal"], "@kbn/core-node-server-internal/*": ["packages/core/node/core-node-server-internal/*"], "@kbn/core-node-server-mocks": ["packages/core/node/core-node-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 6cc0108475cb6..d9f3cdc85b21e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4773,7 +4773,7 @@ version "0.0.0" uid "" -"@kbn/core-node-server@link:packages/core/node/core-node-server": +"@kbn/core-node-server@link:src/core/packages/node/server": version "0.0.0" uid "" From 97ac0c37235aacd52a7197a0128879be3b594e1d Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:03:43 +0100 Subject: [PATCH 079/167] Relocating module `@kbn/core-node-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/node/server-internal}/README.md | 0 .../core/packages/node/server-internal}/index.ts | 0 .../core/packages/node/server-internal}/jest.config.js | 4 ++-- .../core/packages/node/server-internal}/kibana.jsonc | 0 .../core/packages/node/server-internal}/package.json | 0 .../packages/node/server-internal}/src/node_config.test.ts | 0 .../core/packages/node/server-internal}/src/node_config.ts | 0 .../packages/node/server-internal}/src/node_service.test.ts | 0 .../core/packages/node/server-internal}/src/node_service.ts | 0 .../core/packages/node/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/node/core-node-server-internal => src/core/packages/node/server-internal}/README.md (100%) rename {packages/core/node/core-node-server-internal => src/core/packages/node/server-internal}/index.ts (100%) rename {packages/core/node/core-node-server-internal => src/core/packages/node/server-internal}/jest.config.js (84%) rename {packages/core/node/core-node-server-internal => src/core/packages/node/server-internal}/kibana.jsonc (100%) rename {packages/core/node/core-node-server-internal => src/core/packages/node/server-internal}/package.json (100%) rename {packages/core/node/core-node-server-internal => src/core/packages/node/server-internal}/src/node_config.test.ts (100%) rename {packages/core/node/core-node-server-internal => src/core/packages/node/server-internal}/src/node_config.ts (100%) rename {packages/core/node/core-node-server-internal => src/core/packages/node/server-internal}/src/node_service.test.ts (100%) rename {packages/core/node/core-node-server-internal => src/core/packages/node/server-internal}/src/node_service.ts (100%) rename {packages/core/node/core-node-server-internal => src/core/packages/node/server-internal}/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6247b7ac02a83..70be43de17316 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -95,7 +95,6 @@ packages/core/logging/core-logging-browser-mocks @elastic/kibana-core packages/core/logging/core-logging-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-collectors-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-server-mocks @elastic/kibana-core -packages/core/node/core-node-server-internal @elastic/kibana-core packages/core/node/core-node-server-mocks @elastic/kibana-core packages/core/notifications/core-notifications-browser @elastic/kibana-core packages/core/notifications/core-notifications-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/metrics/server-internal @elastic/kibana-core src/core/packages/mount-utils/browser @elastic/kibana-core src/core/packages/mount-utils/browser-internal @elastic/kibana-core src/core/packages/node/server @elastic/kibana-core +src/core/packages/node/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index e15280c8109af..39655592ae21f 100644 --- a/package.json +++ b/package.json @@ -334,7 +334,7 @@ "@kbn/core-mount-utils-browser": "link:src/core/packages/mount-utils/browser", "@kbn/core-mount-utils-browser-internal": "link:src/core/packages/mount-utils/browser-internal", "@kbn/core-node-server": "link:src/core/packages/node/server", - "@kbn/core-node-server-internal": "link:packages/core/node/core-node-server-internal", + "@kbn/core-node-server-internal": "link:src/core/packages/node/server-internal", "@kbn/core-notifications-browser": "link:packages/core/notifications/core-notifications-browser", "@kbn/core-notifications-browser-internal": "link:packages/core/notifications/core-notifications-browser-internal", "@kbn/core-overlays-browser": "link:packages/core/overlays/core-overlays-browser", diff --git a/packages/core/node/core-node-server-internal/README.md b/src/core/packages/node/server-internal/README.md similarity index 100% rename from packages/core/node/core-node-server-internal/README.md rename to src/core/packages/node/server-internal/README.md diff --git a/packages/core/node/core-node-server-internal/index.ts b/src/core/packages/node/server-internal/index.ts similarity index 100% rename from packages/core/node/core-node-server-internal/index.ts rename to src/core/packages/node/server-internal/index.ts diff --git a/packages/core/node/core-node-server-internal/jest.config.js b/src/core/packages/node/server-internal/jest.config.js similarity index 84% rename from packages/core/node/core-node-server-internal/jest.config.js rename to src/core/packages/node/server-internal/jest.config.js index 5c5ebb4acc407..757a709247a6a 100644 --- a/packages/core/node/core-node-server-internal/jest.config.js +++ b/src/core/packages/node/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/node/core-node-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/node/server-internal'], }; diff --git a/packages/core/node/core-node-server-internal/kibana.jsonc b/src/core/packages/node/server-internal/kibana.jsonc similarity index 100% rename from packages/core/node/core-node-server-internal/kibana.jsonc rename to src/core/packages/node/server-internal/kibana.jsonc diff --git a/packages/core/node/core-node-server-internal/package.json b/src/core/packages/node/server-internal/package.json similarity index 100% rename from packages/core/node/core-node-server-internal/package.json rename to src/core/packages/node/server-internal/package.json diff --git a/packages/core/node/core-node-server-internal/src/node_config.test.ts b/src/core/packages/node/server-internal/src/node_config.test.ts similarity index 100% rename from packages/core/node/core-node-server-internal/src/node_config.test.ts rename to src/core/packages/node/server-internal/src/node_config.test.ts diff --git a/packages/core/node/core-node-server-internal/src/node_config.ts b/src/core/packages/node/server-internal/src/node_config.ts similarity index 100% rename from packages/core/node/core-node-server-internal/src/node_config.ts rename to src/core/packages/node/server-internal/src/node_config.ts diff --git a/packages/core/node/core-node-server-internal/src/node_service.test.ts b/src/core/packages/node/server-internal/src/node_service.test.ts similarity index 100% rename from packages/core/node/core-node-server-internal/src/node_service.test.ts rename to src/core/packages/node/server-internal/src/node_service.test.ts diff --git a/packages/core/node/core-node-server-internal/src/node_service.ts b/src/core/packages/node/server-internal/src/node_service.ts similarity index 100% rename from packages/core/node/core-node-server-internal/src/node_service.ts rename to src/core/packages/node/server-internal/src/node_service.ts diff --git a/packages/core/node/core-node-server-internal/tsconfig.json b/src/core/packages/node/server-internal/tsconfig.json similarity index 90% rename from packages/core/node/core-node-server-internal/tsconfig.json rename to src/core/packages/node/server-internal/tsconfig.json index 7bbe90ab8be74..c11e7a754d185 100644 --- a/packages/core/node/core-node-server-internal/tsconfig.json +++ b/src/core/packages/node/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index ccac820fa7dc7..c9abd330f9a84 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -478,8 +478,8 @@ "@kbn/core-mount-utils-browser-internal/*": ["src/core/packages/mount-utils/browser-internal/*"], "@kbn/core-node-server": ["src/core/packages/node/server"], "@kbn/core-node-server/*": ["src/core/packages/node/server/*"], - "@kbn/core-node-server-internal": ["packages/core/node/core-node-server-internal"], - "@kbn/core-node-server-internal/*": ["packages/core/node/core-node-server-internal/*"], + "@kbn/core-node-server-internal": ["src/core/packages/node/server-internal"], + "@kbn/core-node-server-internal/*": ["src/core/packages/node/server-internal/*"], "@kbn/core-node-server-mocks": ["packages/core/node/core-node-server-mocks"], "@kbn/core-node-server-mocks/*": ["packages/core/node/core-node-server-mocks/*"], "@kbn/core-notifications-browser": ["packages/core/notifications/core-notifications-browser"], diff --git a/yarn.lock b/yarn.lock index d9f3cdc85b21e..56613a50a486d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4765,7 +4765,7 @@ version "0.0.0" uid "" -"@kbn/core-node-server-internal@link:packages/core/node/core-node-server-internal": +"@kbn/core-node-server-internal@link:src/core/packages/node/server-internal": version "0.0.0" uid "" From 045984cdd46a650b99cf62e36d47c0264b50787e Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:04:40 +0100 Subject: [PATCH 080/167] Relocating module `@kbn/core-notifications-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/notifications/browser}/README.md | 0 .../core/packages/notifications/browser}/index.ts | 0 .../core/packages/notifications/browser}/jest.config.js | 4 ++-- .../core/packages/notifications/browser}/kibana.jsonc | 0 .../core/packages/notifications/browser}/package.json | 0 .../core/packages/notifications/browser}/src/contracts.ts | 0 .../core/packages/notifications/browser}/src/types.ts | 0 .../core/packages/notifications/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/notifications/core-notifications-browser => src/core/packages/notifications/browser}/README.md (100%) rename {packages/core/notifications/core-notifications-browser => src/core/packages/notifications/browser}/index.ts (100%) rename {packages/core/notifications/core-notifications-browser => src/core/packages/notifications/browser}/jest.config.js (83%) rename {packages/core/notifications/core-notifications-browser => src/core/packages/notifications/browser}/kibana.jsonc (100%) rename {packages/core/notifications/core-notifications-browser => src/core/packages/notifications/browser}/package.json (100%) rename {packages/core/notifications/core-notifications-browser => src/core/packages/notifications/browser}/src/contracts.ts (100%) rename {packages/core/notifications/core-notifications-browser => src/core/packages/notifications/browser}/src/types.ts (100%) rename {packages/core/notifications/core-notifications-browser => src/core/packages/notifications/browser}/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 70be43de17316..2df55f916e5c2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -96,7 +96,6 @@ packages/core/logging/core-logging-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-collectors-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-server-mocks @elastic/kibana-core packages/core/node/core-node-server-mocks @elastic/kibana-core -packages/core/notifications/core-notifications-browser @elastic/kibana-core packages/core/notifications/core-notifications-browser-internal @elastic/kibana-core packages/core/notifications/core-notifications-browser-mocks @elastic/kibana-core packages/core/overlays/core-overlays-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/mount-utils/browser @elastic/kibana-core src/core/packages/mount-utils/browser-internal @elastic/kibana-core src/core/packages/node/server @elastic/kibana-core src/core/packages/node/server-internal @elastic/kibana-core +src/core/packages/notifications/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 39655592ae21f..dfbcfc4161dc6 100644 --- a/package.json +++ b/package.json @@ -335,7 +335,7 @@ "@kbn/core-mount-utils-browser-internal": "link:src/core/packages/mount-utils/browser-internal", "@kbn/core-node-server": "link:src/core/packages/node/server", "@kbn/core-node-server-internal": "link:src/core/packages/node/server-internal", - "@kbn/core-notifications-browser": "link:packages/core/notifications/core-notifications-browser", + "@kbn/core-notifications-browser": "link:src/core/packages/notifications/browser", "@kbn/core-notifications-browser-internal": "link:packages/core/notifications/core-notifications-browser-internal", "@kbn/core-overlays-browser": "link:packages/core/overlays/core-overlays-browser", "@kbn/core-overlays-browser-internal": "link:packages/core/overlays/core-overlays-browser-internal", diff --git a/packages/core/notifications/core-notifications-browser/README.md b/src/core/packages/notifications/browser/README.md similarity index 100% rename from packages/core/notifications/core-notifications-browser/README.md rename to src/core/packages/notifications/browser/README.md diff --git a/packages/core/notifications/core-notifications-browser/index.ts b/src/core/packages/notifications/browser/index.ts similarity index 100% rename from packages/core/notifications/core-notifications-browser/index.ts rename to src/core/packages/notifications/browser/index.ts diff --git a/packages/core/notifications/core-notifications-browser/jest.config.js b/src/core/packages/notifications/browser/jest.config.js similarity index 83% rename from packages/core/notifications/core-notifications-browser/jest.config.js rename to src/core/packages/notifications/browser/jest.config.js index 12636f77856c5..1b1968033daf1 100644 --- a/packages/core/notifications/core-notifications-browser/jest.config.js +++ b/src/core/packages/notifications/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/notifications/core-notifications-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/notifications/browser'], }; diff --git a/packages/core/notifications/core-notifications-browser/kibana.jsonc b/src/core/packages/notifications/browser/kibana.jsonc similarity index 100% rename from packages/core/notifications/core-notifications-browser/kibana.jsonc rename to src/core/packages/notifications/browser/kibana.jsonc diff --git a/packages/core/notifications/core-notifications-browser/package.json b/src/core/packages/notifications/browser/package.json similarity index 100% rename from packages/core/notifications/core-notifications-browser/package.json rename to src/core/packages/notifications/browser/package.json diff --git a/packages/core/notifications/core-notifications-browser/src/contracts.ts b/src/core/packages/notifications/browser/src/contracts.ts similarity index 100% rename from packages/core/notifications/core-notifications-browser/src/contracts.ts rename to src/core/packages/notifications/browser/src/contracts.ts diff --git a/packages/core/notifications/core-notifications-browser/src/types.ts b/src/core/packages/notifications/browser/src/types.ts similarity index 100% rename from packages/core/notifications/core-notifications-browser/src/types.ts rename to src/core/packages/notifications/browser/src/types.ts diff --git a/packages/core/notifications/core-notifications-browser/tsconfig.json b/src/core/packages/notifications/browser/tsconfig.json similarity index 83% rename from packages/core/notifications/core-notifications-browser/tsconfig.json rename to src/core/packages/notifications/browser/tsconfig.json index e74804a5abae4..51eaf07038922 100644 --- a/packages/core/notifications/core-notifications-browser/tsconfig.json +++ b/src/core/packages/notifications/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c9abd330f9a84..691d15d77087d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -482,8 +482,8 @@ "@kbn/core-node-server-internal/*": ["src/core/packages/node/server-internal/*"], "@kbn/core-node-server-mocks": ["packages/core/node/core-node-server-mocks"], "@kbn/core-node-server-mocks/*": ["packages/core/node/core-node-server-mocks/*"], - "@kbn/core-notifications-browser": ["packages/core/notifications/core-notifications-browser"], - "@kbn/core-notifications-browser/*": ["packages/core/notifications/core-notifications-browser/*"], + "@kbn/core-notifications-browser": ["src/core/packages/notifications/browser"], + "@kbn/core-notifications-browser/*": ["src/core/packages/notifications/browser/*"], "@kbn/core-notifications-browser-internal": ["packages/core/notifications/core-notifications-browser-internal"], "@kbn/core-notifications-browser-internal/*": ["packages/core/notifications/core-notifications-browser-internal/*"], "@kbn/core-notifications-browser-mocks": ["packages/core/notifications/core-notifications-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index 56613a50a486d..7f94ec4a36779 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4785,7 +4785,7 @@ version "0.0.0" uid "" -"@kbn/core-notifications-browser@link:packages/core/notifications/core-notifications-browser": +"@kbn/core-notifications-browser@link:src/core/packages/notifications/browser": version "0.0.0" uid "" From 0fd1cee422d560ffa8a8c5b1154bce0ce28f2276 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:05:38 +0100 Subject: [PATCH 081/167] Relocating module `@kbn/core-notifications-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/notifications/browser-internal}/README.md | 0 .../core/packages/notifications/browser-internal}/index.ts | 0 .../packages/notifications/browser-internal}/jest.config.js | 4 ++-- .../packages/notifications/browser-internal}/kibana.jsonc | 0 .../packages/notifications/browser-internal}/package.json | 0 .../browser-internal}/src/notifications_service.ts | 0 .../src/toasts/__snapshots__/deduplicate_toasts.test.tsx.snap | 0 .../src/toasts/__snapshots__/error_toast.test.tsx.snap | 0 .../src/toasts/__snapshots__/toasts_service.test.tsx.snap | 0 .../browser-internal}/src/toasts/deduplicate_toasts.test.tsx | 0 .../browser-internal}/src/toasts/deduplicate_toasts.tsx | 0 .../browser-internal}/src/toasts/error_toast.test.tsx | 0 .../browser-internal}/src/toasts/error_toast.tsx | 0 .../browser-internal}/src/toasts/global_toast_list.test.tsx | 0 .../browser-internal}/src/toasts/global_toast_list.tsx | 0 .../notifications/browser-internal}/src/toasts/index.ts | 0 .../browser-internal}/src/toasts/telemetry/event_reporter.ts | 0 .../browser-internal}/src/toasts/telemetry/event_types.ts | 0 .../browser-internal}/src/toasts/telemetry/index.ts | 0 .../browser-internal}/src/toasts/toasts_api.test.ts | 0 .../notifications/browser-internal}/src/toasts/toasts_api.tsx | 0 .../browser-internal}/src/toasts/toasts_service.test.mocks.ts | 0 .../browser-internal}/src/toasts/toasts_service.test.tsx | 0 .../browser-internal}/src/toasts/toasts_service.tsx | 0 .../packages/notifications/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 29 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/README.md (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/index.ts (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/jest.config.js (81%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/kibana.jsonc (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/package.json (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/notifications_service.ts (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/__snapshots__/deduplicate_toasts.test.tsx.snap (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/__snapshots__/error_toast.test.tsx.snap (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/__snapshots__/toasts_service.test.tsx.snap (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/deduplicate_toasts.test.tsx (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/deduplicate_toasts.tsx (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/error_toast.test.tsx (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/error_toast.tsx (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/global_toast_list.test.tsx (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/global_toast_list.tsx (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/index.ts (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/telemetry/event_reporter.ts (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/telemetry/event_types.ts (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/telemetry/index.ts (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/toasts_api.test.ts (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/toasts_api.tsx (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/toasts_service.test.mocks.ts (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/toasts_service.test.tsx (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/src/toasts/toasts_service.tsx (100%) rename {packages/core/notifications/core-notifications-browser-internal => src/core/packages/notifications/browser-internal}/tsconfig.json (94%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2df55f916e5c2..6261cae13e79f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -96,7 +96,6 @@ packages/core/logging/core-logging-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-collectors-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-server-mocks @elastic/kibana-core packages/core/node/core-node-server-mocks @elastic/kibana-core -packages/core/notifications/core-notifications-browser-internal @elastic/kibana-core packages/core/notifications/core-notifications-browser-mocks @elastic/kibana-core packages/core/overlays/core-overlays-browser @elastic/kibana-core packages/core/overlays/core-overlays-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/mount-utils/browser-internal @elastic/kibana-core src/core/packages/node/server @elastic/kibana-core src/core/packages/node/server-internal @elastic/kibana-core src/core/packages/notifications/browser @elastic/kibana-core +src/core/packages/notifications/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index dfbcfc4161dc6..0aae15f02f29d 100644 --- a/package.json +++ b/package.json @@ -336,7 +336,7 @@ "@kbn/core-node-server": "link:src/core/packages/node/server", "@kbn/core-node-server-internal": "link:src/core/packages/node/server-internal", "@kbn/core-notifications-browser": "link:src/core/packages/notifications/browser", - "@kbn/core-notifications-browser-internal": "link:packages/core/notifications/core-notifications-browser-internal", + "@kbn/core-notifications-browser-internal": "link:src/core/packages/notifications/browser-internal", "@kbn/core-overlays-browser": "link:packages/core/overlays/core-overlays-browser", "@kbn/core-overlays-browser-internal": "link:packages/core/overlays/core-overlays-browser-internal", "@kbn/core-plugin-a-plugin": "link:test/plugin_functional/plugins/core_plugin_a", diff --git a/packages/core/notifications/core-notifications-browser-internal/README.md b/src/core/packages/notifications/browser-internal/README.md similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/README.md rename to src/core/packages/notifications/browser-internal/README.md diff --git a/packages/core/notifications/core-notifications-browser-internal/index.ts b/src/core/packages/notifications/browser-internal/index.ts similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/index.ts rename to src/core/packages/notifications/browser-internal/index.ts diff --git a/packages/core/notifications/core-notifications-browser-internal/jest.config.js b/src/core/packages/notifications/browser-internal/jest.config.js similarity index 81% rename from packages/core/notifications/core-notifications-browser-internal/jest.config.js rename to src/core/packages/notifications/browser-internal/jest.config.js index 262f30ad0dab6..71ce8e953967d 100644 --- a/packages/core/notifications/core-notifications-browser-internal/jest.config.js +++ b/src/core/packages/notifications/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/notifications/core-notifications-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/notifications/browser-internal'], }; diff --git a/packages/core/notifications/core-notifications-browser-internal/kibana.jsonc b/src/core/packages/notifications/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/kibana.jsonc rename to src/core/packages/notifications/browser-internal/kibana.jsonc diff --git a/packages/core/notifications/core-notifications-browser-internal/package.json b/src/core/packages/notifications/browser-internal/package.json similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/package.json rename to src/core/packages/notifications/browser-internal/package.json diff --git a/packages/core/notifications/core-notifications-browser-internal/src/notifications_service.ts b/src/core/packages/notifications/browser-internal/src/notifications_service.ts similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/notifications_service.ts rename to src/core/packages/notifications/browser-internal/src/notifications_service.ts diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/__snapshots__/deduplicate_toasts.test.tsx.snap b/src/core/packages/notifications/browser-internal/src/toasts/__snapshots__/deduplicate_toasts.test.tsx.snap similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/__snapshots__/deduplicate_toasts.test.tsx.snap rename to src/core/packages/notifications/browser-internal/src/toasts/__snapshots__/deduplicate_toasts.test.tsx.snap diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/__snapshots__/error_toast.test.tsx.snap b/src/core/packages/notifications/browser-internal/src/toasts/__snapshots__/error_toast.test.tsx.snap similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/__snapshots__/error_toast.test.tsx.snap rename to src/core/packages/notifications/browser-internal/src/toasts/__snapshots__/error_toast.test.tsx.snap diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/__snapshots__/toasts_service.test.tsx.snap b/src/core/packages/notifications/browser-internal/src/toasts/__snapshots__/toasts_service.test.tsx.snap similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/__snapshots__/toasts_service.test.tsx.snap rename to src/core/packages/notifications/browser-internal/src/toasts/__snapshots__/toasts_service.test.tsx.snap diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/deduplicate_toasts.test.tsx b/src/core/packages/notifications/browser-internal/src/toasts/deduplicate_toasts.test.tsx similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/deduplicate_toasts.test.tsx rename to src/core/packages/notifications/browser-internal/src/toasts/deduplicate_toasts.test.tsx diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/deduplicate_toasts.tsx b/src/core/packages/notifications/browser-internal/src/toasts/deduplicate_toasts.tsx similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/deduplicate_toasts.tsx rename to src/core/packages/notifications/browser-internal/src/toasts/deduplicate_toasts.tsx diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/error_toast.test.tsx b/src/core/packages/notifications/browser-internal/src/toasts/error_toast.test.tsx similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/error_toast.test.tsx rename to src/core/packages/notifications/browser-internal/src/toasts/error_toast.test.tsx diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/error_toast.tsx b/src/core/packages/notifications/browser-internal/src/toasts/error_toast.tsx similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/error_toast.tsx rename to src/core/packages/notifications/browser-internal/src/toasts/error_toast.tsx diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/global_toast_list.test.tsx b/src/core/packages/notifications/browser-internal/src/toasts/global_toast_list.test.tsx similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/global_toast_list.test.tsx rename to src/core/packages/notifications/browser-internal/src/toasts/global_toast_list.test.tsx diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/global_toast_list.tsx b/src/core/packages/notifications/browser-internal/src/toasts/global_toast_list.tsx similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/global_toast_list.tsx rename to src/core/packages/notifications/browser-internal/src/toasts/global_toast_list.tsx diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/index.ts b/src/core/packages/notifications/browser-internal/src/toasts/index.ts similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/index.ts rename to src/core/packages/notifications/browser-internal/src/toasts/index.ts diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/telemetry/event_reporter.ts b/src/core/packages/notifications/browser-internal/src/toasts/telemetry/event_reporter.ts similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/telemetry/event_reporter.ts rename to src/core/packages/notifications/browser-internal/src/toasts/telemetry/event_reporter.ts diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/telemetry/event_types.ts b/src/core/packages/notifications/browser-internal/src/toasts/telemetry/event_types.ts similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/telemetry/event_types.ts rename to src/core/packages/notifications/browser-internal/src/toasts/telemetry/event_types.ts diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/telemetry/index.ts b/src/core/packages/notifications/browser-internal/src/toasts/telemetry/index.ts similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/telemetry/index.ts rename to src/core/packages/notifications/browser-internal/src/toasts/telemetry/index.ts diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/toasts_api.test.ts b/src/core/packages/notifications/browser-internal/src/toasts/toasts_api.test.ts similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/toasts_api.test.ts rename to src/core/packages/notifications/browser-internal/src/toasts/toasts_api.test.ts diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/toasts_api.tsx b/src/core/packages/notifications/browser-internal/src/toasts/toasts_api.tsx similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/toasts_api.tsx rename to src/core/packages/notifications/browser-internal/src/toasts/toasts_api.tsx diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/toasts_service.test.mocks.ts b/src/core/packages/notifications/browser-internal/src/toasts/toasts_service.test.mocks.ts similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/toasts_service.test.mocks.ts rename to src/core/packages/notifications/browser-internal/src/toasts/toasts_service.test.mocks.ts diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/toasts_service.test.tsx b/src/core/packages/notifications/browser-internal/src/toasts/toasts_service.test.tsx similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/toasts_service.test.tsx rename to src/core/packages/notifications/browser-internal/src/toasts/toasts_service.test.tsx diff --git a/packages/core/notifications/core-notifications-browser-internal/src/toasts/toasts_service.tsx b/src/core/packages/notifications/browser-internal/src/toasts/toasts_service.tsx similarity index 100% rename from packages/core/notifications/core-notifications-browser-internal/src/toasts/toasts_service.tsx rename to src/core/packages/notifications/browser-internal/src/toasts/toasts_service.tsx diff --git a/packages/core/notifications/core-notifications-browser-internal/tsconfig.json b/src/core/packages/notifications/browser-internal/tsconfig.json similarity index 94% rename from packages/core/notifications/core-notifications-browser-internal/tsconfig.json rename to src/core/packages/notifications/browser-internal/tsconfig.json index 0aa4081925399..0524975e63e97 100644 --- a/packages/core/notifications/core-notifications-browser-internal/tsconfig.json +++ b/src/core/packages/notifications/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 691d15d77087d..75780f582e718 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -484,8 +484,8 @@ "@kbn/core-node-server-mocks/*": ["packages/core/node/core-node-server-mocks/*"], "@kbn/core-notifications-browser": ["src/core/packages/notifications/browser"], "@kbn/core-notifications-browser/*": ["src/core/packages/notifications/browser/*"], - "@kbn/core-notifications-browser-internal": ["packages/core/notifications/core-notifications-browser-internal"], - "@kbn/core-notifications-browser-internal/*": ["packages/core/notifications/core-notifications-browser-internal/*"], + "@kbn/core-notifications-browser-internal": ["src/core/packages/notifications/browser-internal"], + "@kbn/core-notifications-browser-internal/*": ["src/core/packages/notifications/browser-internal/*"], "@kbn/core-notifications-browser-mocks": ["packages/core/notifications/core-notifications-browser-mocks"], "@kbn/core-notifications-browser-mocks/*": ["packages/core/notifications/core-notifications-browser-mocks/*"], "@kbn/core-overlays-browser": ["packages/core/overlays/core-overlays-browser"], diff --git a/yarn.lock b/yarn.lock index 7f94ec4a36779..e40cff96f28c8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4777,7 +4777,7 @@ version "0.0.0" uid "" -"@kbn/core-notifications-browser-internal@link:packages/core/notifications/core-notifications-browser-internal": +"@kbn/core-notifications-browser-internal@link:src/core/packages/notifications/browser-internal": version "0.0.0" uid "" From 2aeb6ce922c77a780b72a424886695110bac00bd Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:06:33 +0100 Subject: [PATCH 082/167] Relocating module `@kbn/core-overlays-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/overlays/browser}/README.md | 0 .../core/packages/overlays/browser}/index.ts | 0 .../core/packages/overlays/browser}/jest.config.js | 4 ++-- .../core/packages/overlays/browser}/kibana.jsonc | 0 .../core/packages/overlays/browser}/package.json | 0 .../core/packages/overlays/browser}/src/banners.ts | 0 .../core/packages/overlays/browser}/src/flyout.ts | 0 .../core/packages/overlays/browser}/src/modal.ts | 0 .../core/packages/overlays/browser}/src/overlays.ts | 0 .../core/packages/overlays/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/overlays/core-overlays-browser => src/core/packages/overlays/browser}/README.md (100%) rename {packages/core/overlays/core-overlays-browser => src/core/packages/overlays/browser}/index.ts (100%) rename {packages/core/overlays/core-overlays-browser => src/core/packages/overlays/browser}/jest.config.js (84%) rename {packages/core/overlays/core-overlays-browser => src/core/packages/overlays/browser}/kibana.jsonc (100%) rename {packages/core/overlays/core-overlays-browser => src/core/packages/overlays/browser}/package.json (100%) rename {packages/core/overlays/core-overlays-browser => src/core/packages/overlays/browser}/src/banners.ts (100%) rename {packages/core/overlays/core-overlays-browser => src/core/packages/overlays/browser}/src/flyout.ts (100%) rename {packages/core/overlays/core-overlays-browser => src/core/packages/overlays/browser}/src/modal.ts (100%) rename {packages/core/overlays/core-overlays-browser => src/core/packages/overlays/browser}/src/overlays.ts (100%) rename {packages/core/overlays/core-overlays-browser => src/core/packages/overlays/browser}/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6261cae13e79f..090bdac7cccdd 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -97,7 +97,6 @@ packages/core/metrics/core-metrics-collectors-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-server-mocks @elastic/kibana-core packages/core/node/core-node-server-mocks @elastic/kibana-core packages/core/notifications/core-notifications-browser-mocks @elastic/kibana-core -packages/core/overlays/core-overlays-browser @elastic/kibana-core packages/core/overlays/core-overlays-browser-internal @elastic/kibana-core packages/core/overlays/core-overlays-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-base-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/node/server @elastic/kibana-core src/core/packages/node/server-internal @elastic/kibana-core src/core/packages/notifications/browser @elastic/kibana-core src/core/packages/notifications/browser-internal @elastic/kibana-core +src/core/packages/overlays/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 0aae15f02f29d..e8ede75213d85 100644 --- a/package.json +++ b/package.json @@ -337,7 +337,7 @@ "@kbn/core-node-server-internal": "link:src/core/packages/node/server-internal", "@kbn/core-notifications-browser": "link:src/core/packages/notifications/browser", "@kbn/core-notifications-browser-internal": "link:src/core/packages/notifications/browser-internal", - "@kbn/core-overlays-browser": "link:packages/core/overlays/core-overlays-browser", + "@kbn/core-overlays-browser": "link:src/core/packages/overlays/browser", "@kbn/core-overlays-browser-internal": "link:packages/core/overlays/core-overlays-browser-internal", "@kbn/core-plugin-a-plugin": "link:test/plugin_functional/plugins/core_plugin_a", "@kbn/core-plugin-appleave-plugin": "link:test/plugin_functional/plugins/core_plugin_appleave", diff --git a/packages/core/overlays/core-overlays-browser/README.md b/src/core/packages/overlays/browser/README.md similarity index 100% rename from packages/core/overlays/core-overlays-browser/README.md rename to src/core/packages/overlays/browser/README.md diff --git a/packages/core/overlays/core-overlays-browser/index.ts b/src/core/packages/overlays/browser/index.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser/index.ts rename to src/core/packages/overlays/browser/index.ts diff --git a/packages/core/overlays/core-overlays-browser/jest.config.js b/src/core/packages/overlays/browser/jest.config.js similarity index 84% rename from packages/core/overlays/core-overlays-browser/jest.config.js rename to src/core/packages/overlays/browser/jest.config.js index af2bec17d7949..18a1b0a2ca674 100644 --- a/packages/core/overlays/core-overlays-browser/jest.config.js +++ b/src/core/packages/overlays/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/overlays/core-overlays-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/overlays/browser'], }; diff --git a/packages/core/overlays/core-overlays-browser/kibana.jsonc b/src/core/packages/overlays/browser/kibana.jsonc similarity index 100% rename from packages/core/overlays/core-overlays-browser/kibana.jsonc rename to src/core/packages/overlays/browser/kibana.jsonc diff --git a/packages/core/overlays/core-overlays-browser/package.json b/src/core/packages/overlays/browser/package.json similarity index 100% rename from packages/core/overlays/core-overlays-browser/package.json rename to src/core/packages/overlays/browser/package.json diff --git a/packages/core/overlays/core-overlays-browser/src/banners.ts b/src/core/packages/overlays/browser/src/banners.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser/src/banners.ts rename to src/core/packages/overlays/browser/src/banners.ts diff --git a/packages/core/overlays/core-overlays-browser/src/flyout.ts b/src/core/packages/overlays/browser/src/flyout.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser/src/flyout.ts rename to src/core/packages/overlays/browser/src/flyout.ts diff --git a/packages/core/overlays/core-overlays-browser/src/modal.ts b/src/core/packages/overlays/browser/src/modal.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser/src/modal.ts rename to src/core/packages/overlays/browser/src/modal.ts diff --git a/packages/core/overlays/core-overlays-browser/src/overlays.ts b/src/core/packages/overlays/browser/src/overlays.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser/src/overlays.ts rename to src/core/packages/overlays/browser/src/overlays.ts diff --git a/packages/core/overlays/core-overlays-browser/tsconfig.json b/src/core/packages/overlays/browser/tsconfig.json similarity index 83% rename from packages/core/overlays/core-overlays-browser/tsconfig.json rename to src/core/packages/overlays/browser/tsconfig.json index 461df2c838a70..d0852cba12c93 100644 --- a/packages/core/overlays/core-overlays-browser/tsconfig.json +++ b/src/core/packages/overlays/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 75780f582e718..8d03c9cd91bab 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -488,8 +488,8 @@ "@kbn/core-notifications-browser-internal/*": ["src/core/packages/notifications/browser-internal/*"], "@kbn/core-notifications-browser-mocks": ["packages/core/notifications/core-notifications-browser-mocks"], "@kbn/core-notifications-browser-mocks/*": ["packages/core/notifications/core-notifications-browser-mocks/*"], - "@kbn/core-overlays-browser": ["packages/core/overlays/core-overlays-browser"], - "@kbn/core-overlays-browser/*": ["packages/core/overlays/core-overlays-browser/*"], + "@kbn/core-overlays-browser": ["src/core/packages/overlays/browser"], + "@kbn/core-overlays-browser/*": ["src/core/packages/overlays/browser/*"], "@kbn/core-overlays-browser-internal": ["packages/core/overlays/core-overlays-browser-internal"], "@kbn/core-overlays-browser-internal/*": ["packages/core/overlays/core-overlays-browser-internal/*"], "@kbn/core-overlays-browser-mocks": ["packages/core/overlays/core-overlays-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index e40cff96f28c8..c817e50fd63eb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4797,7 +4797,7 @@ version "0.0.0" uid "" -"@kbn/core-overlays-browser@link:packages/core/overlays/core-overlays-browser": +"@kbn/core-overlays-browser@link:src/core/packages/overlays/browser": version "0.0.0" uid "" From 9827548132d76db5484d4b8dfa6989eb8acec425 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:07:29 +0100 Subject: [PATCH 083/167] Relocating module `@kbn/core-overlays-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/overlays/browser-internal}/README.md | 0 .../core/packages/overlays/browser-internal}/index.ts | 0 .../core/packages/overlays/browser-internal}/jest.config.js | 4 ++-- .../core/packages/overlays/browser-internal}/kibana.jsonc | 0 .../core/packages/overlays/browser-internal}/package.json | 0 .../browser-internal}/src/banners/banners_list.test.tsx | 0 .../overlays/browser-internal}/src/banners/banners_list.tsx | 0 .../src/banners/banners_service.test.mocks.ts | 0 .../browser-internal}/src/banners/banners_service.test.ts | 0 .../browser-internal}/src/banners/banners_service.tsx | 0 .../packages/overlays/browser-internal}/src/banners/index.ts | 0 .../browser-internal}/src/banners/priority_map.test.ts | 0 .../overlays/browser-internal}/src/banners/priority_map.ts | 0 .../browser-internal}/src/banners/user_banner_service.test.ts | 0 .../browser-internal}/src/banners/user_banner_service.tsx | 0 .../src/flyout/__snapshots__/flyout_service.test.tsx.snap | 0 .../browser-internal}/src/flyout/flyout_service.test.tsx | 0 .../overlays/browser-internal}/src/flyout/flyout_service.tsx | 0 .../packages/overlays/browser-internal}/src/flyout/index.ts | 0 .../src/modal/__snapshots__/modal_service.test.tsx.snap | 0 .../packages/overlays/browser-internal}/src/modal/index.ts | 0 .../browser-internal}/src/modal/modal_service.test.tsx | 0 .../overlays/browser-internal}/src/modal/modal_service.tsx | 0 .../overlays/browser-internal}/src/overlay.test.mocks.ts | 0 .../overlays/browser-internal}/src/overlay_service.ts | 0 .../core/packages/overlays/browser-internal}/tsconfig.json | 4 ++-- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 30 files changed, 9 insertions(+), 9 deletions(-) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/README.md (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/index.ts (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/jest.config.js (83%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/kibana.jsonc (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/package.json (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/banners/banners_list.test.tsx (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/banners/banners_list.tsx (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/banners/banners_service.test.mocks.ts (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/banners/banners_service.test.ts (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/banners/banners_service.tsx (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/banners/index.ts (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/banners/priority_map.test.ts (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/banners/priority_map.ts (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/banners/user_banner_service.test.ts (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/banners/user_banner_service.tsx (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/flyout/__snapshots__/flyout_service.test.tsx.snap (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/flyout/flyout_service.test.tsx (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/flyout/flyout_service.tsx (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/flyout/index.ts (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/modal/__snapshots__/modal_service.test.tsx.snap (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/modal/index.ts (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/modal/modal_service.test.tsx (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/modal/modal_service.tsx (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/overlay.test.mocks.ts (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/src/overlay_service.ts (100%) rename {packages/core/overlays/core-overlays-browser-internal => src/core/packages/overlays/browser-internal}/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 090bdac7cccdd..d0e9ea9808fa3 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -97,7 +97,6 @@ packages/core/metrics/core-metrics-collectors-server-mocks @elastic/kibana-core packages/core/metrics/core-metrics-server-mocks @elastic/kibana-core packages/core/node/core-node-server-mocks @elastic/kibana-core packages/core/notifications/core-notifications-browser-mocks @elastic/kibana-core -packages/core/overlays/core-overlays-browser-internal @elastic/kibana-core packages/core/overlays/core-overlays-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-base-server-internal @elastic/kibana-core packages/core/plugins/core-plugins-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/node/server-internal @elastic/kibana-core src/core/packages/notifications/browser @elastic/kibana-core src/core/packages/notifications/browser-internal @elastic/kibana-core src/core/packages/overlays/browser @elastic/kibana-core +src/core/packages/overlays/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index e8ede75213d85..deb7198d116ba 100644 --- a/package.json +++ b/package.json @@ -338,7 +338,7 @@ "@kbn/core-notifications-browser": "link:src/core/packages/notifications/browser", "@kbn/core-notifications-browser-internal": "link:src/core/packages/notifications/browser-internal", "@kbn/core-overlays-browser": "link:src/core/packages/overlays/browser", - "@kbn/core-overlays-browser-internal": "link:packages/core/overlays/core-overlays-browser-internal", + "@kbn/core-overlays-browser-internal": "link:src/core/packages/overlays/browser-internal", "@kbn/core-plugin-a-plugin": "link:test/plugin_functional/plugins/core_plugin_a", "@kbn/core-plugin-appleave-plugin": "link:test/plugin_functional/plugins/core_plugin_appleave", "@kbn/core-plugin-b-plugin": "link:test/plugin_functional/plugins/core_plugin_b", diff --git a/packages/core/overlays/core-overlays-browser-internal/README.md b/src/core/packages/overlays/browser-internal/README.md similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/README.md rename to src/core/packages/overlays/browser-internal/README.md diff --git a/packages/core/overlays/core-overlays-browser-internal/index.ts b/src/core/packages/overlays/browser-internal/index.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/index.ts rename to src/core/packages/overlays/browser-internal/index.ts diff --git a/packages/core/overlays/core-overlays-browser-internal/jest.config.js b/src/core/packages/overlays/browser-internal/jest.config.js similarity index 83% rename from packages/core/overlays/core-overlays-browser-internal/jest.config.js rename to src/core/packages/overlays/browser-internal/jest.config.js index 7e3863eb1df7f..7fd547e4c6406 100644 --- a/packages/core/overlays/core-overlays-browser-internal/jest.config.js +++ b/src/core/packages/overlays/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/overlays/core-overlays-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/overlays/browser-internal'], }; diff --git a/packages/core/overlays/core-overlays-browser-internal/kibana.jsonc b/src/core/packages/overlays/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/kibana.jsonc rename to src/core/packages/overlays/browser-internal/kibana.jsonc diff --git a/packages/core/overlays/core-overlays-browser-internal/package.json b/src/core/packages/overlays/browser-internal/package.json similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/package.json rename to src/core/packages/overlays/browser-internal/package.json diff --git a/packages/core/overlays/core-overlays-browser-internal/src/banners/banners_list.test.tsx b/src/core/packages/overlays/browser-internal/src/banners/banners_list.test.tsx similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/banners/banners_list.test.tsx rename to src/core/packages/overlays/browser-internal/src/banners/banners_list.test.tsx diff --git a/packages/core/overlays/core-overlays-browser-internal/src/banners/banners_list.tsx b/src/core/packages/overlays/browser-internal/src/banners/banners_list.tsx similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/banners/banners_list.tsx rename to src/core/packages/overlays/browser-internal/src/banners/banners_list.tsx diff --git a/packages/core/overlays/core-overlays-browser-internal/src/banners/banners_service.test.mocks.ts b/src/core/packages/overlays/browser-internal/src/banners/banners_service.test.mocks.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/banners/banners_service.test.mocks.ts rename to src/core/packages/overlays/browser-internal/src/banners/banners_service.test.mocks.ts diff --git a/packages/core/overlays/core-overlays-browser-internal/src/banners/banners_service.test.ts b/src/core/packages/overlays/browser-internal/src/banners/banners_service.test.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/banners/banners_service.test.ts rename to src/core/packages/overlays/browser-internal/src/banners/banners_service.test.ts diff --git a/packages/core/overlays/core-overlays-browser-internal/src/banners/banners_service.tsx b/src/core/packages/overlays/browser-internal/src/banners/banners_service.tsx similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/banners/banners_service.tsx rename to src/core/packages/overlays/browser-internal/src/banners/banners_service.tsx diff --git a/packages/core/overlays/core-overlays-browser-internal/src/banners/index.ts b/src/core/packages/overlays/browser-internal/src/banners/index.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/banners/index.ts rename to src/core/packages/overlays/browser-internal/src/banners/index.ts diff --git a/packages/core/overlays/core-overlays-browser-internal/src/banners/priority_map.test.ts b/src/core/packages/overlays/browser-internal/src/banners/priority_map.test.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/banners/priority_map.test.ts rename to src/core/packages/overlays/browser-internal/src/banners/priority_map.test.ts diff --git a/packages/core/overlays/core-overlays-browser-internal/src/banners/priority_map.ts b/src/core/packages/overlays/browser-internal/src/banners/priority_map.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/banners/priority_map.ts rename to src/core/packages/overlays/browser-internal/src/banners/priority_map.ts diff --git a/packages/core/overlays/core-overlays-browser-internal/src/banners/user_banner_service.test.ts b/src/core/packages/overlays/browser-internal/src/banners/user_banner_service.test.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/banners/user_banner_service.test.ts rename to src/core/packages/overlays/browser-internal/src/banners/user_banner_service.test.ts diff --git a/packages/core/overlays/core-overlays-browser-internal/src/banners/user_banner_service.tsx b/src/core/packages/overlays/browser-internal/src/banners/user_banner_service.tsx similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/banners/user_banner_service.tsx rename to src/core/packages/overlays/browser-internal/src/banners/user_banner_service.tsx diff --git a/packages/core/overlays/core-overlays-browser-internal/src/flyout/__snapshots__/flyout_service.test.tsx.snap b/src/core/packages/overlays/browser-internal/src/flyout/__snapshots__/flyout_service.test.tsx.snap similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/flyout/__snapshots__/flyout_service.test.tsx.snap rename to src/core/packages/overlays/browser-internal/src/flyout/__snapshots__/flyout_service.test.tsx.snap diff --git a/packages/core/overlays/core-overlays-browser-internal/src/flyout/flyout_service.test.tsx b/src/core/packages/overlays/browser-internal/src/flyout/flyout_service.test.tsx similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/flyout/flyout_service.test.tsx rename to src/core/packages/overlays/browser-internal/src/flyout/flyout_service.test.tsx diff --git a/packages/core/overlays/core-overlays-browser-internal/src/flyout/flyout_service.tsx b/src/core/packages/overlays/browser-internal/src/flyout/flyout_service.tsx similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/flyout/flyout_service.tsx rename to src/core/packages/overlays/browser-internal/src/flyout/flyout_service.tsx diff --git a/packages/core/overlays/core-overlays-browser-internal/src/flyout/index.ts b/src/core/packages/overlays/browser-internal/src/flyout/index.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/flyout/index.ts rename to src/core/packages/overlays/browser-internal/src/flyout/index.ts diff --git a/packages/core/overlays/core-overlays-browser-internal/src/modal/__snapshots__/modal_service.test.tsx.snap b/src/core/packages/overlays/browser-internal/src/modal/__snapshots__/modal_service.test.tsx.snap similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/modal/__snapshots__/modal_service.test.tsx.snap rename to src/core/packages/overlays/browser-internal/src/modal/__snapshots__/modal_service.test.tsx.snap diff --git a/packages/core/overlays/core-overlays-browser-internal/src/modal/index.ts b/src/core/packages/overlays/browser-internal/src/modal/index.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/modal/index.ts rename to src/core/packages/overlays/browser-internal/src/modal/index.ts diff --git a/packages/core/overlays/core-overlays-browser-internal/src/modal/modal_service.test.tsx b/src/core/packages/overlays/browser-internal/src/modal/modal_service.test.tsx similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/modal/modal_service.test.tsx rename to src/core/packages/overlays/browser-internal/src/modal/modal_service.test.tsx diff --git a/packages/core/overlays/core-overlays-browser-internal/src/modal/modal_service.tsx b/src/core/packages/overlays/browser-internal/src/modal/modal_service.tsx similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/modal/modal_service.tsx rename to src/core/packages/overlays/browser-internal/src/modal/modal_service.tsx diff --git a/packages/core/overlays/core-overlays-browser-internal/src/overlay.test.mocks.ts b/src/core/packages/overlays/browser-internal/src/overlay.test.mocks.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/overlay.test.mocks.ts rename to src/core/packages/overlays/browser-internal/src/overlay.test.mocks.ts diff --git a/packages/core/overlays/core-overlays-browser-internal/src/overlay_service.ts b/src/core/packages/overlays/browser-internal/src/overlay_service.ts similarity index 100% rename from packages/core/overlays/core-overlays-browser-internal/src/overlay_service.ts rename to src/core/packages/overlays/browser-internal/src/overlay_service.ts diff --git a/packages/core/overlays/core-overlays-browser-internal/tsconfig.json b/src/core/packages/overlays/browser-internal/tsconfig.json similarity index 90% rename from packages/core/overlays/core-overlays-browser-internal/tsconfig.json rename to src/core/packages/overlays/browser-internal/tsconfig.json index 13263f09b74d5..fd7e592cabd5b 100644 --- a/packages/core/overlays/core-overlays-browser-internal/tsconfig.json +++ b/src/core/packages/overlays/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ @@ -12,7 +12,7 @@ "include": [ "**/*.ts", "**/*.tsx", - "../../../../typings/emotion.d.ts" + "../../../../../typings/emotion.d.ts" ], "kbn_references": [ "@kbn/i18n-react", diff --git a/tsconfig.base.json b/tsconfig.base.json index 8d03c9cd91bab..11379405efd4e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -490,8 +490,8 @@ "@kbn/core-notifications-browser-mocks/*": ["packages/core/notifications/core-notifications-browser-mocks/*"], "@kbn/core-overlays-browser": ["src/core/packages/overlays/browser"], "@kbn/core-overlays-browser/*": ["src/core/packages/overlays/browser/*"], - "@kbn/core-overlays-browser-internal": ["packages/core/overlays/core-overlays-browser-internal"], - "@kbn/core-overlays-browser-internal/*": ["packages/core/overlays/core-overlays-browser-internal/*"], + "@kbn/core-overlays-browser-internal": ["src/core/packages/overlays/browser-internal"], + "@kbn/core-overlays-browser-internal/*": ["src/core/packages/overlays/browser-internal/*"], "@kbn/core-overlays-browser-mocks": ["packages/core/overlays/core-overlays-browser-mocks"], "@kbn/core-overlays-browser-mocks/*": ["packages/core/overlays/core-overlays-browser-mocks/*"], "@kbn/core-plugin-a-plugin": ["test/plugin_functional/plugins/core_plugin_a"], diff --git a/yarn.lock b/yarn.lock index c817e50fd63eb..e5511110fa887 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4789,7 +4789,7 @@ version "0.0.0" uid "" -"@kbn/core-overlays-browser-internal@link:packages/core/overlays/core-overlays-browser-internal": +"@kbn/core-overlays-browser-internal@link:src/core/packages/overlays/browser-internal": version "0.0.0" uid "" From 5516c9907fd3ee0965e2d57dbe45f7760361366f Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:08:25 +0100 Subject: [PATCH 084/167] Relocating module `@kbn/core-plugins-base-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/plugins/base-server-internal}/README.md | 0 .../core/packages/plugins/base-server-internal}/index.ts | 0 .../packages/plugins/base-server-internal}/jest.config.js | 4 ++-- .../core/packages/plugins/base-server-internal}/kibana.jsonc | 0 .../core/packages/plugins/base-server-internal}/package.json | 0 .../core/packages/plugins/base-server-internal}/src/index.ts | 0 .../core/packages/plugins/base-server-internal}/src/types.ts | 0 .../core/packages/plugins/base-server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/plugins/core-plugins-base-server-internal => src/core/packages/plugins/base-server-internal}/README.md (100%) rename {packages/core/plugins/core-plugins-base-server-internal => src/core/packages/plugins/base-server-internal}/index.ts (100%) rename {packages/core/plugins/core-plugins-base-server-internal => src/core/packages/plugins/base-server-internal}/jest.config.js (83%) rename {packages/core/plugins/core-plugins-base-server-internal => src/core/packages/plugins/base-server-internal}/kibana.jsonc (100%) rename {packages/core/plugins/core-plugins-base-server-internal => src/core/packages/plugins/base-server-internal}/package.json (100%) rename {packages/core/plugins/core-plugins-base-server-internal => src/core/packages/plugins/base-server-internal}/src/index.ts (100%) rename {packages/core/plugins/core-plugins-base-server-internal => src/core/packages/plugins/base-server-internal}/src/types.ts (100%) rename {packages/core/plugins/core-plugins-base-server-internal => src/core/packages/plugins/base-server-internal}/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d0e9ea9808fa3..037640fd232cd 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -98,7 +98,6 @@ packages/core/metrics/core-metrics-server-mocks @elastic/kibana-core packages/core/node/core-node-server-mocks @elastic/kibana-core packages/core/notifications/core-notifications-browser-mocks @elastic/kibana-core packages/core/overlays/core-overlays-browser-mocks @elastic/kibana-core -packages/core/plugins/core-plugins-base-server-internal @elastic/kibana-core packages/core/plugins/core-plugins-browser @elastic/kibana-core packages/core/plugins/core-plugins-browser-internal @elastic/kibana-core packages/core/plugins/core-plugins-browser-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/notifications/browser @elastic/kibana-core src/core/packages/notifications/browser-internal @elastic/kibana-core src/core/packages/overlays/browser @elastic/kibana-core src/core/packages/overlays/browser-internal @elastic/kibana-core +src/core/packages/plugins/base-server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index deb7198d116ba..efed6c7654e46 100644 --- a/package.json +++ b/package.json @@ -352,7 +352,7 @@ "@kbn/core-plugin-initializer-context-plugin": "link:test/node_roles_functional/plugins/core_plugin_initializer_context", "@kbn/core-plugin-route-timeouts-plugin": "link:test/plugin_functional/plugins/core_plugin_route_timeouts", "@kbn/core-plugin-static-assets-plugin": "link:test/plugin_functional/plugins/core_plugin_static_assets", - "@kbn/core-plugins-base-server-internal": "link:packages/core/plugins/core-plugins-base-server-internal", + "@kbn/core-plugins-base-server-internal": "link:src/core/packages/plugins/base-server-internal", "@kbn/core-plugins-browser": "link:packages/core/plugins/core-plugins-browser", "@kbn/core-plugins-browser-internal": "link:packages/core/plugins/core-plugins-browser-internal", "@kbn/core-plugins-contracts-browser": "link:packages/core/plugins/core-plugins-contracts-browser", diff --git a/packages/core/plugins/core-plugins-base-server-internal/README.md b/src/core/packages/plugins/base-server-internal/README.md similarity index 100% rename from packages/core/plugins/core-plugins-base-server-internal/README.md rename to src/core/packages/plugins/base-server-internal/README.md diff --git a/packages/core/plugins/core-plugins-base-server-internal/index.ts b/src/core/packages/plugins/base-server-internal/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-base-server-internal/index.ts rename to src/core/packages/plugins/base-server-internal/index.ts diff --git a/packages/core/plugins/core-plugins-base-server-internal/jest.config.js b/src/core/packages/plugins/base-server-internal/jest.config.js similarity index 83% rename from packages/core/plugins/core-plugins-base-server-internal/jest.config.js rename to src/core/packages/plugins/base-server-internal/jest.config.js index 9fe0344b91f2e..dee46df2b70a7 100644 --- a/packages/core/plugins/core-plugins-base-server-internal/jest.config.js +++ b/src/core/packages/plugins/base-server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/plugins/core-plugins-base-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/plugins/base-server-internal'], }; diff --git a/packages/core/plugins/core-plugins-base-server-internal/kibana.jsonc b/src/core/packages/plugins/base-server-internal/kibana.jsonc similarity index 100% rename from packages/core/plugins/core-plugins-base-server-internal/kibana.jsonc rename to src/core/packages/plugins/base-server-internal/kibana.jsonc diff --git a/packages/core/plugins/core-plugins-base-server-internal/package.json b/src/core/packages/plugins/base-server-internal/package.json similarity index 100% rename from packages/core/plugins/core-plugins-base-server-internal/package.json rename to src/core/packages/plugins/base-server-internal/package.json diff --git a/packages/core/plugins/core-plugins-base-server-internal/src/index.ts b/src/core/packages/plugins/base-server-internal/src/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-base-server-internal/src/index.ts rename to src/core/packages/plugins/base-server-internal/src/index.ts diff --git a/packages/core/plugins/core-plugins-base-server-internal/src/types.ts b/src/core/packages/plugins/base-server-internal/src/types.ts similarity index 100% rename from packages/core/plugins/core-plugins-base-server-internal/src/types.ts rename to src/core/packages/plugins/base-server-internal/src/types.ts diff --git a/packages/core/plugins/core-plugins-base-server-internal/tsconfig.json b/src/core/packages/plugins/base-server-internal/tsconfig.json similarity index 82% rename from packages/core/plugins/core-plugins-base-server-internal/tsconfig.json rename to src/core/packages/plugins/base-server-internal/tsconfig.json index 48f63905bf591..d2b20ab587a93 100644 --- a/packages/core/plugins/core-plugins-base-server-internal/tsconfig.json +++ b/src/core/packages/plugins/base-server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 11379405efd4e..6f317836ec5db 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -520,8 +520,8 @@ "@kbn/core-plugin-route-timeouts-plugin/*": ["test/plugin_functional/plugins/core_plugin_route_timeouts/*"], "@kbn/core-plugin-static-assets-plugin": ["test/plugin_functional/plugins/core_plugin_static_assets"], "@kbn/core-plugin-static-assets-plugin/*": ["test/plugin_functional/plugins/core_plugin_static_assets/*"], - "@kbn/core-plugins-base-server-internal": ["packages/core/plugins/core-plugins-base-server-internal"], - "@kbn/core-plugins-base-server-internal/*": ["packages/core/plugins/core-plugins-base-server-internal/*"], + "@kbn/core-plugins-base-server-internal": ["src/core/packages/plugins/base-server-internal"], + "@kbn/core-plugins-base-server-internal/*": ["src/core/packages/plugins/base-server-internal/*"], "@kbn/core-plugins-browser": ["packages/core/plugins/core-plugins-browser"], "@kbn/core-plugins-browser/*": ["packages/core/plugins/core-plugins-browser/*"], "@kbn/core-plugins-browser-internal": ["packages/core/plugins/core-plugins-browser-internal"], diff --git a/yarn.lock b/yarn.lock index e5511110fa887..9724006df032b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4853,7 +4853,7 @@ version "0.0.0" uid "" -"@kbn/core-plugins-base-server-internal@link:packages/core/plugins/core-plugins-base-server-internal": +"@kbn/core-plugins-base-server-internal@link:src/core/packages/plugins/base-server-internal": version "0.0.0" uid "" From 84a2a8d4a4b224e8467e666e6a5c270eb2fa2c85 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:09:25 +0100 Subject: [PATCH 085/167] Relocating module `@kbn/core-plugins-browser` --- .github/CODEOWNERS | 2 +- .../architecture/kibana-platform-plugin-api.asciidoc | 4 ++-- package.json | 2 +- .../core/packages/plugins/browser}/README.md | 0 .../core/packages/plugins/browser}/index.ts | 0 .../core/packages/plugins/browser}/jest.config.js | 4 ++-- .../core/packages/plugins/browser}/kibana.jsonc | 0 .../core/packages/plugins/browser}/package.json | 0 .../core/packages/plugins/browser}/src/index.ts | 0 .../core/packages/plugins/browser}/src/plugin.ts | 0 .../core/packages/plugins/browser}/src/plugin_initializer.ts | 0 .../core/packages/plugins/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 10 insertions(+), 10 deletions(-) rename {packages/core/plugins/core-plugins-browser => src/core/packages/plugins/browser}/README.md (100%) rename {packages/core/plugins/core-plugins-browser => src/core/packages/plugins/browser}/index.ts (100%) rename {packages/core/plugins/core-plugins-browser => src/core/packages/plugins/browser}/jest.config.js (84%) rename {packages/core/plugins/core-plugins-browser => src/core/packages/plugins/browser}/kibana.jsonc (100%) rename {packages/core/plugins/core-plugins-browser => src/core/packages/plugins/browser}/package.json (100%) rename {packages/core/plugins/core-plugins-browser => src/core/packages/plugins/browser}/src/index.ts (100%) rename {packages/core/plugins/core-plugins-browser => src/core/packages/plugins/browser}/src/plugin.ts (100%) rename {packages/core/plugins/core-plugins-browser => src/core/packages/plugins/browser}/src/plugin_initializer.ts (100%) rename {packages/core/plugins/core-plugins-browser => src/core/packages/plugins/browser}/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 037640fd232cd..87898f4e42b3f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -98,7 +98,6 @@ packages/core/metrics/core-metrics-server-mocks @elastic/kibana-core packages/core/node/core-node-server-mocks @elastic/kibana-core packages/core/notifications/core-notifications-browser-mocks @elastic/kibana-core packages/core/overlays/core-overlays-browser-mocks @elastic/kibana-core -packages/core/plugins/core-plugins-browser @elastic/kibana-core packages/core/plugins/core-plugins-browser-internal @elastic/kibana-core packages/core/plugins/core-plugins-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-contracts-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/notifications/browser-internal @elastic/kibana-core src/core/packages/overlays/browser @elastic/kibana-core src/core/packages/overlays/browser-internal @elastic/kibana-core src/core/packages/plugins/base-server-internal @elastic/kibana-core +src/core/packages/plugins/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/docs/developer/architecture/kibana-platform-plugin-api.asciidoc b/docs/developer/architecture/kibana-platform-plugin-api.asciidoc index 05a7cf751b391..661f8e313d917 100644 --- a/docs/developer/architecture/kibana-platform-plugin-api.asciidoc +++ b/docs/developer/architecture/kibana-platform-plugin-api.asciidoc @@ -51,7 +51,7 @@ NOTE: `package.json` files are irrelevant to and ignored by {kib} for discoverin *[2] `public/index.ts`* is the entry point into the client-side code of this plugin. It must export a function named `plugin`, which will -receive {kib-repo}blob/{branch}/packages/core/plugins/core-plugins-browser/src/plugin_initializer.ts[a standard set of core capabilities] as an argument. +receive {kib-repo}blob/{branch}/src/core/packages/plugins/browser/src/plugin_initializer.ts[a standard set of core capabilities] as an argument. It should return an instance of its plugin class for {kib} to load. @@ -222,7 +222,7 @@ These are the contracts exposed by the core services for each lifecycle: |lifecycle |server contract|browser contract |_constructor_ |{kib-repo}blob/{branch}/packages/core/plugins/core-plugins-server/src/types.ts[PluginInitializerContext] -|{kib-repo}blob/{branch}/packages/core/plugins/core-plugins-browser/src/plugin_initializer.ts[PluginInitializerContext] +|{kib-repo}blob/{branch}/src/core/packages/plugins/browser/src/plugin_initializer.ts[PluginInitializerContext] |_setup_ |{kib-repo}blob/{branch}/src/core/packages/lifecycle/server/src/core_setup.ts[CoreSetup] diff --git a/package.json b/package.json index efed6c7654e46..41f2857495e3d 100644 --- a/package.json +++ b/package.json @@ -353,7 +353,7 @@ "@kbn/core-plugin-route-timeouts-plugin": "link:test/plugin_functional/plugins/core_plugin_route_timeouts", "@kbn/core-plugin-static-assets-plugin": "link:test/plugin_functional/plugins/core_plugin_static_assets", "@kbn/core-plugins-base-server-internal": "link:src/core/packages/plugins/base-server-internal", - "@kbn/core-plugins-browser": "link:packages/core/plugins/core-plugins-browser", + "@kbn/core-plugins-browser": "link:src/core/packages/plugins/browser", "@kbn/core-plugins-browser-internal": "link:packages/core/plugins/core-plugins-browser-internal", "@kbn/core-plugins-contracts-browser": "link:packages/core/plugins/core-plugins-contracts-browser", "@kbn/core-plugins-contracts-server": "link:packages/core/plugins/core-plugins-contracts-server", diff --git a/packages/core/plugins/core-plugins-browser/README.md b/src/core/packages/plugins/browser/README.md similarity index 100% rename from packages/core/plugins/core-plugins-browser/README.md rename to src/core/packages/plugins/browser/README.md diff --git a/packages/core/plugins/core-plugins-browser/index.ts b/src/core/packages/plugins/browser/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser/index.ts rename to src/core/packages/plugins/browser/index.ts diff --git a/packages/core/plugins/core-plugins-browser/jest.config.js b/src/core/packages/plugins/browser/jest.config.js similarity index 84% rename from packages/core/plugins/core-plugins-browser/jest.config.js rename to src/core/packages/plugins/browser/jest.config.js index 3815ad0fd6b85..46258dbf62123 100644 --- a/packages/core/plugins/core-plugins-browser/jest.config.js +++ b/src/core/packages/plugins/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/plugins/core-plugins-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/plugins/browser'], }; diff --git a/packages/core/plugins/core-plugins-browser/kibana.jsonc b/src/core/packages/plugins/browser/kibana.jsonc similarity index 100% rename from packages/core/plugins/core-plugins-browser/kibana.jsonc rename to src/core/packages/plugins/browser/kibana.jsonc diff --git a/packages/core/plugins/core-plugins-browser/package.json b/src/core/packages/plugins/browser/package.json similarity index 100% rename from packages/core/plugins/core-plugins-browser/package.json rename to src/core/packages/plugins/browser/package.json diff --git a/packages/core/plugins/core-plugins-browser/src/index.ts b/src/core/packages/plugins/browser/src/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser/src/index.ts rename to src/core/packages/plugins/browser/src/index.ts diff --git a/packages/core/plugins/core-plugins-browser/src/plugin.ts b/src/core/packages/plugins/browser/src/plugin.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser/src/plugin.ts rename to src/core/packages/plugins/browser/src/plugin.ts diff --git a/packages/core/plugins/core-plugins-browser/src/plugin_initializer.ts b/src/core/packages/plugins/browser/src/plugin_initializer.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser/src/plugin_initializer.ts rename to src/core/packages/plugins/browser/src/plugin_initializer.ts diff --git a/packages/core/plugins/core-plugins-browser/tsconfig.json b/src/core/packages/plugins/browser/tsconfig.json similarity index 87% rename from packages/core/plugins/core-plugins-browser/tsconfig.json rename to src/core/packages/plugins/browser/tsconfig.json index 18cb8ba7041fc..16949ca59db18 100644 --- a/packages/core/plugins/core-plugins-browser/tsconfig.json +++ b/src/core/packages/plugins/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 6f317836ec5db..c2ea8fce09536 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -522,8 +522,8 @@ "@kbn/core-plugin-static-assets-plugin/*": ["test/plugin_functional/plugins/core_plugin_static_assets/*"], "@kbn/core-plugins-base-server-internal": ["src/core/packages/plugins/base-server-internal"], "@kbn/core-plugins-base-server-internal/*": ["src/core/packages/plugins/base-server-internal/*"], - "@kbn/core-plugins-browser": ["packages/core/plugins/core-plugins-browser"], - "@kbn/core-plugins-browser/*": ["packages/core/plugins/core-plugins-browser/*"], + "@kbn/core-plugins-browser": ["src/core/packages/plugins/browser"], + "@kbn/core-plugins-browser/*": ["src/core/packages/plugins/browser/*"], "@kbn/core-plugins-browser-internal": ["packages/core/plugins/core-plugins-browser-internal"], "@kbn/core-plugins-browser-internal/*": ["packages/core/plugins/core-plugins-browser-internal/*"], "@kbn/core-plugins-browser-mocks": ["packages/core/plugins/core-plugins-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index 9724006df032b..9a55218bd1f37 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4865,7 +4865,7 @@ version "0.0.0" uid "" -"@kbn/core-plugins-browser@link:packages/core/plugins/core-plugins-browser": +"@kbn/core-plugins-browser@link:src/core/packages/plugins/browser": version "0.0.0" uid "" From 318011f1246740b83201fb458caaf63e1635eca6 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:10:23 +0100 Subject: [PATCH 086/167] Relocating module `@kbn/core-plugins-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/plugins/browser-internal}/README.md | 0 .../core/packages/plugins/browser-internal}/index.ts | 0 .../core/packages/plugins/browser-internal}/jest.config.js | 4 ++-- .../core/packages/plugins/browser-internal}/kibana.jsonc | 0 .../core/packages/plugins/browser-internal}/package.json | 0 .../core/packages/plugins/browser-internal}/src/index.ts | 0 .../plugins/browser-internal}/src/plugin.test.mocks.ts | 0 .../packages/plugins/browser-internal}/src/plugin.test.ts | 0 .../core/packages/plugins/browser-internal}/src/plugin.ts | 0 .../plugins/browser-internal}/src/plugin_context.test.ts | 0 .../packages/plugins/browser-internal}/src/plugin_context.ts | 0 .../browser-internal}/src/plugin_contract_resolver.test.ts | 0 .../plugins/browser-internal}/src/plugin_contract_resolver.ts | 0 .../plugins/browser-internal}/src/plugin_reader.test.ts | 0 .../packages/plugins/browser-internal}/src/plugin_reader.ts | 0 .../browser-internal}/src/plugins_service.test.mocks.ts | 0 .../plugins/browser-internal}/src/plugins_service.test.ts | 0 .../packages/plugins/browser-internal}/src/plugins_service.ts | 0 .../plugins/browser-internal}/src/test_helpers/index.ts | 0 .../plugins/browser-internal}/src/test_helpers/mocks.ts | 0 .../src/test_helpers/plugin_contract_resolver.mock.ts | 0 .../core/packages/plugins/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 26 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/README.md (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/index.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/jest.config.js (83%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/kibana.jsonc (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/package.json (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/index.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/plugin.test.mocks.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/plugin.test.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/plugin.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/plugin_context.test.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/plugin_context.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/plugin_contract_resolver.test.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/plugin_contract_resolver.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/plugin_reader.test.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/plugin_reader.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/plugins_service.test.mocks.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/plugins_service.test.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/plugins_service.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/test_helpers/index.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/test_helpers/mocks.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/src/test_helpers/plugin_contract_resolver.mock.ts (100%) rename {packages/core/plugins/core-plugins-browser-internal => src/core/packages/plugins/browser-internal}/tsconfig.json (96%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 87898f4e42b3f..b42f30725e495 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -98,7 +98,6 @@ packages/core/metrics/core-metrics-server-mocks @elastic/kibana-core packages/core/node/core-node-server-mocks @elastic/kibana-core packages/core/notifications/core-notifications-browser-mocks @elastic/kibana-core packages/core/overlays/core-overlays-browser-mocks @elastic/kibana-core -packages/core/plugins/core-plugins-browser-internal @elastic/kibana-core packages/core/plugins/core-plugins-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-contracts-browser @elastic/kibana-core packages/core/plugins/core-plugins-contracts-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/overlays/browser @elastic/kibana-core src/core/packages/overlays/browser-internal @elastic/kibana-core src/core/packages/plugins/base-server-internal @elastic/kibana-core src/core/packages/plugins/browser @elastic/kibana-core +src/core/packages/plugins/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 41f2857495e3d..48ac22b9fc717 100644 --- a/package.json +++ b/package.json @@ -354,7 +354,7 @@ "@kbn/core-plugin-static-assets-plugin": "link:test/plugin_functional/plugins/core_plugin_static_assets", "@kbn/core-plugins-base-server-internal": "link:src/core/packages/plugins/base-server-internal", "@kbn/core-plugins-browser": "link:src/core/packages/plugins/browser", - "@kbn/core-plugins-browser-internal": "link:packages/core/plugins/core-plugins-browser-internal", + "@kbn/core-plugins-browser-internal": "link:src/core/packages/plugins/browser-internal", "@kbn/core-plugins-contracts-browser": "link:packages/core/plugins/core-plugins-contracts-browser", "@kbn/core-plugins-contracts-server": "link:packages/core/plugins/core-plugins-contracts-server", "@kbn/core-plugins-server": "link:packages/core/plugins/core-plugins-server", diff --git a/packages/core/plugins/core-plugins-browser-internal/README.md b/src/core/packages/plugins/browser-internal/README.md similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/README.md rename to src/core/packages/plugins/browser-internal/README.md diff --git a/packages/core/plugins/core-plugins-browser-internal/index.ts b/src/core/packages/plugins/browser-internal/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/index.ts rename to src/core/packages/plugins/browser-internal/index.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/jest.config.js b/src/core/packages/plugins/browser-internal/jest.config.js similarity index 83% rename from packages/core/plugins/core-plugins-browser-internal/jest.config.js rename to src/core/packages/plugins/browser-internal/jest.config.js index 27379c59cd7d6..9af195384cac0 100644 --- a/packages/core/plugins/core-plugins-browser-internal/jest.config.js +++ b/src/core/packages/plugins/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/plugins/core-plugins-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/plugins/browser-internal'], }; diff --git a/packages/core/plugins/core-plugins-browser-internal/kibana.jsonc b/src/core/packages/plugins/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/kibana.jsonc rename to src/core/packages/plugins/browser-internal/kibana.jsonc diff --git a/packages/core/plugins/core-plugins-browser-internal/package.json b/src/core/packages/plugins/browser-internal/package.json similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/package.json rename to src/core/packages/plugins/browser-internal/package.json diff --git a/packages/core/plugins/core-plugins-browser-internal/src/index.ts b/src/core/packages/plugins/browser-internal/src/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/index.ts rename to src/core/packages/plugins/browser-internal/src/index.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/plugin.test.mocks.ts b/src/core/packages/plugins/browser-internal/src/plugin.test.mocks.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/plugin.test.mocks.ts rename to src/core/packages/plugins/browser-internal/src/plugin.test.mocks.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/plugin.test.ts b/src/core/packages/plugins/browser-internal/src/plugin.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/plugin.test.ts rename to src/core/packages/plugins/browser-internal/src/plugin.test.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/plugin.ts b/src/core/packages/plugins/browser-internal/src/plugin.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/plugin.ts rename to src/core/packages/plugins/browser-internal/src/plugin.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/plugin_context.test.ts b/src/core/packages/plugins/browser-internal/src/plugin_context.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/plugin_context.test.ts rename to src/core/packages/plugins/browser-internal/src/plugin_context.test.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/plugin_context.ts b/src/core/packages/plugins/browser-internal/src/plugin_context.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/plugin_context.ts rename to src/core/packages/plugins/browser-internal/src/plugin_context.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/plugin_contract_resolver.test.ts b/src/core/packages/plugins/browser-internal/src/plugin_contract_resolver.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/plugin_contract_resolver.test.ts rename to src/core/packages/plugins/browser-internal/src/plugin_contract_resolver.test.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/plugin_contract_resolver.ts b/src/core/packages/plugins/browser-internal/src/plugin_contract_resolver.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/plugin_contract_resolver.ts rename to src/core/packages/plugins/browser-internal/src/plugin_contract_resolver.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/plugin_reader.test.ts b/src/core/packages/plugins/browser-internal/src/plugin_reader.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/plugin_reader.test.ts rename to src/core/packages/plugins/browser-internal/src/plugin_reader.test.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/plugin_reader.ts b/src/core/packages/plugins/browser-internal/src/plugin_reader.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/plugin_reader.ts rename to src/core/packages/plugins/browser-internal/src/plugin_reader.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/plugins_service.test.mocks.ts b/src/core/packages/plugins/browser-internal/src/plugins_service.test.mocks.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/plugins_service.test.mocks.ts rename to src/core/packages/plugins/browser-internal/src/plugins_service.test.mocks.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/plugins_service.test.ts b/src/core/packages/plugins/browser-internal/src/plugins_service.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/plugins_service.test.ts rename to src/core/packages/plugins/browser-internal/src/plugins_service.test.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/plugins_service.ts b/src/core/packages/plugins/browser-internal/src/plugins_service.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/plugins_service.ts rename to src/core/packages/plugins/browser-internal/src/plugins_service.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/test_helpers/index.ts b/src/core/packages/plugins/browser-internal/src/test_helpers/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/test_helpers/index.ts rename to src/core/packages/plugins/browser-internal/src/test_helpers/index.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/test_helpers/mocks.ts b/src/core/packages/plugins/browser-internal/src/test_helpers/mocks.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/test_helpers/mocks.ts rename to src/core/packages/plugins/browser-internal/src/test_helpers/mocks.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/src/test_helpers/plugin_contract_resolver.mock.ts b/src/core/packages/plugins/browser-internal/src/test_helpers/plugin_contract_resolver.mock.ts similarity index 100% rename from packages/core/plugins/core-plugins-browser-internal/src/test_helpers/plugin_contract_resolver.mock.ts rename to src/core/packages/plugins/browser-internal/src/test_helpers/plugin_contract_resolver.mock.ts diff --git a/packages/core/plugins/core-plugins-browser-internal/tsconfig.json b/src/core/packages/plugins/browser-internal/tsconfig.json similarity index 96% rename from packages/core/plugins/core-plugins-browser-internal/tsconfig.json rename to src/core/packages/plugins/browser-internal/tsconfig.json index e2e502e821362..66d1be4eede1d 100644 --- a/packages/core/plugins/core-plugins-browser-internal/tsconfig.json +++ b/src/core/packages/plugins/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c2ea8fce09536..20d66a4182531 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -524,8 +524,8 @@ "@kbn/core-plugins-base-server-internal/*": ["src/core/packages/plugins/base-server-internal/*"], "@kbn/core-plugins-browser": ["src/core/packages/plugins/browser"], "@kbn/core-plugins-browser/*": ["src/core/packages/plugins/browser/*"], - "@kbn/core-plugins-browser-internal": ["packages/core/plugins/core-plugins-browser-internal"], - "@kbn/core-plugins-browser-internal/*": ["packages/core/plugins/core-plugins-browser-internal/*"], + "@kbn/core-plugins-browser-internal": ["src/core/packages/plugins/browser-internal"], + "@kbn/core-plugins-browser-internal/*": ["src/core/packages/plugins/browser-internal/*"], "@kbn/core-plugins-browser-mocks": ["packages/core/plugins/core-plugins-browser-mocks"], "@kbn/core-plugins-browser-mocks/*": ["packages/core/plugins/core-plugins-browser-mocks/*"], "@kbn/core-plugins-contracts-browser": ["packages/core/plugins/core-plugins-contracts-browser"], diff --git a/yarn.lock b/yarn.lock index 9a55218bd1f37..f738d9482a769 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4857,7 +4857,7 @@ version "0.0.0" uid "" -"@kbn/core-plugins-browser-internal@link:packages/core/plugins/core-plugins-browser-internal": +"@kbn/core-plugins-browser-internal@link:src/core/packages/plugins/browser-internal": version "0.0.0" uid "" From 92c632c69ef6c5357057607632c035a8d58a7b65 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:11:21 +0100 Subject: [PATCH 087/167] Relocating module `@kbn/core-plugins-contracts-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/plugins/contracts-browser}/README.md | 0 .../core/packages/plugins/contracts-browser}/index.ts | 0 .../core/packages/plugins/contracts-browser}/jest.config.js | 4 ++-- .../core/packages/plugins/contracts-browser}/kibana.jsonc | 0 .../core/packages/plugins/contracts-browser}/package.json | 0 .../core/packages/plugins/contracts-browser}/src/contracts.ts | 0 .../core/packages/plugins/contracts-browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/plugins/core-plugins-contracts-browser => src/core/packages/plugins/contracts-browser}/README.md (100%) rename {packages/core/plugins/core-plugins-contracts-browser => src/core/packages/plugins/contracts-browser}/index.ts (100%) rename {packages/core/plugins/core-plugins-contracts-browser => src/core/packages/plugins/contracts-browser}/jest.config.js (83%) rename {packages/core/plugins/core-plugins-contracts-browser => src/core/packages/plugins/contracts-browser}/kibana.jsonc (100%) rename {packages/core/plugins/core-plugins-contracts-browser => src/core/packages/plugins/contracts-browser}/package.json (100%) rename {packages/core/plugins/core-plugins-contracts-browser => src/core/packages/plugins/contracts-browser}/src/contracts.ts (100%) rename {packages/core/plugins/core-plugins-contracts-browser => src/core/packages/plugins/contracts-browser}/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b42f30725e495..73f2d06c1d7fe 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -99,7 +99,6 @@ packages/core/node/core-node-server-mocks @elastic/kibana-core packages/core/notifications/core-notifications-browser-mocks @elastic/kibana-core packages/core/overlays/core-overlays-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-browser-mocks @elastic/kibana-core -packages/core/plugins/core-plugins-contracts-browser @elastic/kibana-core packages/core/plugins/core-plugins-contracts-server @elastic/kibana-core packages/core/plugins/core-plugins-server @elastic/kibana-core packages/core/plugins/core-plugins-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/overlays/browser-internal @elastic/kibana-core src/core/packages/plugins/base-server-internal @elastic/kibana-core src/core/packages/plugins/browser @elastic/kibana-core src/core/packages/plugins/browser-internal @elastic/kibana-core +src/core/packages/plugins/contracts-browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 48ac22b9fc717..382086360b774 100644 --- a/package.json +++ b/package.json @@ -355,7 +355,7 @@ "@kbn/core-plugins-base-server-internal": "link:src/core/packages/plugins/base-server-internal", "@kbn/core-plugins-browser": "link:src/core/packages/plugins/browser", "@kbn/core-plugins-browser-internal": "link:src/core/packages/plugins/browser-internal", - "@kbn/core-plugins-contracts-browser": "link:packages/core/plugins/core-plugins-contracts-browser", + "@kbn/core-plugins-contracts-browser": "link:src/core/packages/plugins/contracts-browser", "@kbn/core-plugins-contracts-server": "link:packages/core/plugins/core-plugins-contracts-server", "@kbn/core-plugins-server": "link:packages/core/plugins/core-plugins-server", "@kbn/core-plugins-server-internal": "link:packages/core/plugins/core-plugins-server-internal", diff --git a/packages/core/plugins/core-plugins-contracts-browser/README.md b/src/core/packages/plugins/contracts-browser/README.md similarity index 100% rename from packages/core/plugins/core-plugins-contracts-browser/README.md rename to src/core/packages/plugins/contracts-browser/README.md diff --git a/packages/core/plugins/core-plugins-contracts-browser/index.ts b/src/core/packages/plugins/contracts-browser/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-contracts-browser/index.ts rename to src/core/packages/plugins/contracts-browser/index.ts diff --git a/packages/core/plugins/core-plugins-contracts-browser/jest.config.js b/src/core/packages/plugins/contracts-browser/jest.config.js similarity index 83% rename from packages/core/plugins/core-plugins-contracts-browser/jest.config.js rename to src/core/packages/plugins/contracts-browser/jest.config.js index eda5c2f762548..e5f9df32ebdac 100644 --- a/packages/core/plugins/core-plugins-contracts-browser/jest.config.js +++ b/src/core/packages/plugins/contracts-browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/plugins/core-plugins-contracts-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/plugins/contracts-browser'], }; diff --git a/packages/core/plugins/core-plugins-contracts-browser/kibana.jsonc b/src/core/packages/plugins/contracts-browser/kibana.jsonc similarity index 100% rename from packages/core/plugins/core-plugins-contracts-browser/kibana.jsonc rename to src/core/packages/plugins/contracts-browser/kibana.jsonc diff --git a/packages/core/plugins/core-plugins-contracts-browser/package.json b/src/core/packages/plugins/contracts-browser/package.json similarity index 100% rename from packages/core/plugins/core-plugins-contracts-browser/package.json rename to src/core/packages/plugins/contracts-browser/package.json diff --git a/packages/core/plugins/core-plugins-contracts-browser/src/contracts.ts b/src/core/packages/plugins/contracts-browser/src/contracts.ts similarity index 100% rename from packages/core/plugins/core-plugins-contracts-browser/src/contracts.ts rename to src/core/packages/plugins/contracts-browser/src/contracts.ts diff --git a/packages/core/plugins/core-plugins-contracts-browser/tsconfig.json b/src/core/packages/plugins/contracts-browser/tsconfig.json similarity index 82% rename from packages/core/plugins/core-plugins-contracts-browser/tsconfig.json rename to src/core/packages/plugins/contracts-browser/tsconfig.json index 2d841f928c1ba..94a5421dcd1fc 100644 --- a/packages/core/plugins/core-plugins-contracts-browser/tsconfig.json +++ b/src/core/packages/plugins/contracts-browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 20d66a4182531..88587ee8e732a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -528,8 +528,8 @@ "@kbn/core-plugins-browser-internal/*": ["src/core/packages/plugins/browser-internal/*"], "@kbn/core-plugins-browser-mocks": ["packages/core/plugins/core-plugins-browser-mocks"], "@kbn/core-plugins-browser-mocks/*": ["packages/core/plugins/core-plugins-browser-mocks/*"], - "@kbn/core-plugins-contracts-browser": ["packages/core/plugins/core-plugins-contracts-browser"], - "@kbn/core-plugins-contracts-browser/*": ["packages/core/plugins/core-plugins-contracts-browser/*"], + "@kbn/core-plugins-contracts-browser": ["src/core/packages/plugins/contracts-browser"], + "@kbn/core-plugins-contracts-browser/*": ["src/core/packages/plugins/contracts-browser/*"], "@kbn/core-plugins-contracts-server": ["packages/core/plugins/core-plugins-contracts-server"], "@kbn/core-plugins-contracts-server/*": ["packages/core/plugins/core-plugins-contracts-server/*"], "@kbn/core-plugins-server": ["packages/core/plugins/core-plugins-server"], diff --git a/yarn.lock b/yarn.lock index f738d9482a769..d44036e0ad226 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4869,7 +4869,7 @@ version "0.0.0" uid "" -"@kbn/core-plugins-contracts-browser@link:packages/core/plugins/core-plugins-contracts-browser": +"@kbn/core-plugins-contracts-browser@link:src/core/packages/plugins/contracts-browser": version "0.0.0" uid "" From bab56ed4ce24f301c67908d0b265741543053889 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:12:17 +0100 Subject: [PATCH 088/167] Relocating module `@kbn/core-plugins-contracts-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/plugins/contracts-server}/README.md | 0 .../core/packages/plugins/contracts-server}/index.ts | 0 .../core/packages/plugins/contracts-server}/jest.config.js | 4 ++-- .../core/packages/plugins/contracts-server}/kibana.jsonc | 0 .../core/packages/plugins/contracts-server}/package.json | 0 .../core/packages/plugins/contracts-server}/src/contracts.ts | 0 .../core/packages/plugins/contracts-server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/plugins/core-plugins-contracts-server => src/core/packages/plugins/contracts-server}/README.md (100%) rename {packages/core/plugins/core-plugins-contracts-server => src/core/packages/plugins/contracts-server}/index.ts (100%) rename {packages/core/plugins/core-plugins-contracts-server => src/core/packages/plugins/contracts-server}/jest.config.js (83%) rename {packages/core/plugins/core-plugins-contracts-server => src/core/packages/plugins/contracts-server}/kibana.jsonc (100%) rename {packages/core/plugins/core-plugins-contracts-server => src/core/packages/plugins/contracts-server}/package.json (100%) rename {packages/core/plugins/core-plugins-contracts-server => src/core/packages/plugins/contracts-server}/src/contracts.ts (100%) rename {packages/core/plugins/core-plugins-contracts-server => src/core/packages/plugins/contracts-server}/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 73f2d06c1d7fe..508fcfc43aefe 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -99,7 +99,6 @@ packages/core/node/core-node-server-mocks @elastic/kibana-core packages/core/notifications/core-notifications-browser-mocks @elastic/kibana-core packages/core/overlays/core-overlays-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-browser-mocks @elastic/kibana-core -packages/core/plugins/core-plugins-contracts-server @elastic/kibana-core packages/core/plugins/core-plugins-server @elastic/kibana-core packages/core/plugins/core-plugins-server-internal @elastic/kibana-core packages/core/plugins/core-plugins-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/plugins/base-server-internal @elastic/kibana-core src/core/packages/plugins/browser @elastic/kibana-core src/core/packages/plugins/browser-internal @elastic/kibana-core src/core/packages/plugins/contracts-browser @elastic/kibana-core +src/core/packages/plugins/contracts-server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 382086360b774..25df0838c2cec 100644 --- a/package.json +++ b/package.json @@ -356,7 +356,7 @@ "@kbn/core-plugins-browser": "link:src/core/packages/plugins/browser", "@kbn/core-plugins-browser-internal": "link:src/core/packages/plugins/browser-internal", "@kbn/core-plugins-contracts-browser": "link:src/core/packages/plugins/contracts-browser", - "@kbn/core-plugins-contracts-server": "link:packages/core/plugins/core-plugins-contracts-server", + "@kbn/core-plugins-contracts-server": "link:src/core/packages/plugins/contracts-server", "@kbn/core-plugins-server": "link:packages/core/plugins/core-plugins-server", "@kbn/core-plugins-server-internal": "link:packages/core/plugins/core-plugins-server-internal", "@kbn/core-preboot-server": "link:packages/core/preboot/core-preboot-server", diff --git a/packages/core/plugins/core-plugins-contracts-server/README.md b/src/core/packages/plugins/contracts-server/README.md similarity index 100% rename from packages/core/plugins/core-plugins-contracts-server/README.md rename to src/core/packages/plugins/contracts-server/README.md diff --git a/packages/core/plugins/core-plugins-contracts-server/index.ts b/src/core/packages/plugins/contracts-server/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-contracts-server/index.ts rename to src/core/packages/plugins/contracts-server/index.ts diff --git a/packages/core/plugins/core-plugins-contracts-server/jest.config.js b/src/core/packages/plugins/contracts-server/jest.config.js similarity index 83% rename from packages/core/plugins/core-plugins-contracts-server/jest.config.js rename to src/core/packages/plugins/contracts-server/jest.config.js index 0a3ee38ea23d9..7978e453eddfb 100644 --- a/packages/core/plugins/core-plugins-contracts-server/jest.config.js +++ b/src/core/packages/plugins/contracts-server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/plugins/core-plugins-contracts-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/plugins/contracts-server'], }; diff --git a/packages/core/plugins/core-plugins-contracts-server/kibana.jsonc b/src/core/packages/plugins/contracts-server/kibana.jsonc similarity index 100% rename from packages/core/plugins/core-plugins-contracts-server/kibana.jsonc rename to src/core/packages/plugins/contracts-server/kibana.jsonc diff --git a/packages/core/plugins/core-plugins-contracts-server/package.json b/src/core/packages/plugins/contracts-server/package.json similarity index 100% rename from packages/core/plugins/core-plugins-contracts-server/package.json rename to src/core/packages/plugins/contracts-server/package.json diff --git a/packages/core/plugins/core-plugins-contracts-server/src/contracts.ts b/src/core/packages/plugins/contracts-server/src/contracts.ts similarity index 100% rename from packages/core/plugins/core-plugins-contracts-server/src/contracts.ts rename to src/core/packages/plugins/contracts-server/src/contracts.ts diff --git a/packages/core/plugins/core-plugins-contracts-server/tsconfig.json b/src/core/packages/plugins/contracts-server/tsconfig.json similarity index 82% rename from packages/core/plugins/core-plugins-contracts-server/tsconfig.json rename to src/core/packages/plugins/contracts-server/tsconfig.json index 2d841f928c1ba..94a5421dcd1fc 100644 --- a/packages/core/plugins/core-plugins-contracts-server/tsconfig.json +++ b/src/core/packages/plugins/contracts-server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 88587ee8e732a..5b283969c3e29 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -530,8 +530,8 @@ "@kbn/core-plugins-browser-mocks/*": ["packages/core/plugins/core-plugins-browser-mocks/*"], "@kbn/core-plugins-contracts-browser": ["src/core/packages/plugins/contracts-browser"], "@kbn/core-plugins-contracts-browser/*": ["src/core/packages/plugins/contracts-browser/*"], - "@kbn/core-plugins-contracts-server": ["packages/core/plugins/core-plugins-contracts-server"], - "@kbn/core-plugins-contracts-server/*": ["packages/core/plugins/core-plugins-contracts-server/*"], + "@kbn/core-plugins-contracts-server": ["src/core/packages/plugins/contracts-server"], + "@kbn/core-plugins-contracts-server/*": ["src/core/packages/plugins/contracts-server/*"], "@kbn/core-plugins-server": ["packages/core/plugins/core-plugins-server"], "@kbn/core-plugins-server/*": ["packages/core/plugins/core-plugins-server/*"], "@kbn/core-plugins-server-internal": ["packages/core/plugins/core-plugins-server-internal"], diff --git a/yarn.lock b/yarn.lock index d44036e0ad226..2855b94fc0116 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4873,7 +4873,7 @@ version "0.0.0" uid "" -"@kbn/core-plugins-contracts-server@link:packages/core/plugins/core-plugins-contracts-server": +"@kbn/core-plugins-contracts-server@link:src/core/packages/plugins/contracts-server": version "0.0.0" uid "" From af02cefc2e2e2b980a4b0f7926b63d3cdac5726a Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:13:12 +0100 Subject: [PATCH 089/167] Relocating module `@kbn/core-plugins-server` --- .github/CODEOWNERS | 2 +- .../architecture/kibana-platform-plugin-api.asciidoc | 8 ++++---- package.json | 2 +- .../core/packages/plugins/server}/README.md | 0 .../core/packages/plugins/server}/index.ts | 0 .../core/packages/plugins/server}/jest.config.js | 4 ++-- .../core/packages/plugins/server}/kibana.jsonc | 0 .../core/packages/plugins/server}/package.json | 0 .../core/packages/plugins/server}/src/index.ts | 0 .../packages/plugins/server}/src/shared_global_config.ts | 0 .../core/packages/plugins/server}/src/types.ts | 0 .../core/packages/plugins/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 12 insertions(+), 12 deletions(-) rename {packages/core/plugins/core-plugins-server => src/core/packages/plugins/server}/README.md (100%) rename {packages/core/plugins/core-plugins-server => src/core/packages/plugins/server}/index.ts (100%) rename {packages/core/plugins/core-plugins-server => src/core/packages/plugins/server}/jest.config.js (85%) rename {packages/core/plugins/core-plugins-server => src/core/packages/plugins/server}/kibana.jsonc (100%) rename {packages/core/plugins/core-plugins-server => src/core/packages/plugins/server}/package.json (100%) rename {packages/core/plugins/core-plugins-server => src/core/packages/plugins/server}/src/index.ts (100%) rename {packages/core/plugins/core-plugins-server => src/core/packages/plugins/server}/src/shared_global_config.ts (100%) rename {packages/core/plugins/core-plugins-server => src/core/packages/plugins/server}/src/types.ts (100%) rename {packages/core/plugins/core-plugins-server => src/core/packages/plugins/server}/tsconfig.json (91%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 508fcfc43aefe..08fbee2b2670f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -99,7 +99,6 @@ packages/core/node/core-node-server-mocks @elastic/kibana-core packages/core/notifications/core-notifications-browser-mocks @elastic/kibana-core packages/core/overlays/core-overlays-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-browser-mocks @elastic/kibana-core -packages/core/plugins/core-plugins-server @elastic/kibana-core packages/core/plugins/core-plugins-server-internal @elastic/kibana-core packages/core/plugins/core-plugins-server-mocks @elastic/kibana-core packages/core/preboot/core-preboot-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/plugins/browser @elastic/kibana-core src/core/packages/plugins/browser-internal @elastic/kibana-core src/core/packages/plugins/contracts-browser @elastic/kibana-core src/core/packages/plugins/contracts-server @elastic/kibana-core +src/core/packages/plugins/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/docs/developer/architecture/kibana-platform-plugin-api.asciidoc b/docs/developer/architecture/kibana-platform-plugin-api.asciidoc index 661f8e313d917..878720812bf4a 100644 --- a/docs/developer/architecture/kibana-platform-plugin-api.asciidoc +++ b/docs/developer/architecture/kibana-platform-plugin-api.asciidoc @@ -44,7 +44,7 @@ plugin and to specify if this plugin has server-side code, browser-side code, or } ---- -Learn about the {kib-repo}blob/{branch}/packages/core/plugins/core-plugins-server/src/types.ts[manifest +Learn about the {kib-repo}blob/{branch}/src/core/packages/plugins/server/src/types.ts[manifest file format]. NOTE: `package.json` files are irrelevant to and ignored by {kib} for discovering and loading plugins. @@ -93,7 +93,7 @@ export class MyPlugin implements Plugin { ---- *[4] `server/index.ts`* is the entry-point into the server-side code of -this plugin. {kib-repo}blob/{branch}/packages/core/plugins/core-plugins-server/src/types.ts[It is identical] in almost every way to the client-side +this plugin. {kib-repo}blob/{branch}/src/core/packages/plugins/server/src/types.ts[It is identical] in almost every way to the client-side entry-point: @@ -221,7 +221,7 @@ These are the contracts exposed by the core services for each lifecycle: |=== |lifecycle |server contract|browser contract |_constructor_ -|{kib-repo}blob/{branch}/packages/core/plugins/core-plugins-server/src/types.ts[PluginInitializerContext] +|{kib-repo}blob/{branch}/src/core/packages/plugins/server/src/types.ts[PluginInitializerContext] |{kib-repo}blob/{branch}/src/core/packages/plugins/browser/src/plugin_initializer.ts[PluginInitializerContext] |_setup_ @@ -283,7 +283,7 @@ export class MyPlugin implements Plugin { Unlike core, capabilities exposed by plugins are _not_ automatically injected into all plugins. Instead, if a plugin wishes to use the public interface provided by another plugin, it must first declare that -plugin as a dependency in it's {kib-repo}blob/{branch}/packages/core/plugins/core-plugins-server/src/types.ts[`kibana.json`] manifest file. +plugin as a dependency in it's {kib-repo}blob/{branch}/src/core/packages/plugins/server/src/types.ts[`kibana.json`] manifest file. *demo kibana.json:* diff --git a/package.json b/package.json index 25df0838c2cec..c06e8eb92dce1 100644 --- a/package.json +++ b/package.json @@ -357,7 +357,7 @@ "@kbn/core-plugins-browser-internal": "link:src/core/packages/plugins/browser-internal", "@kbn/core-plugins-contracts-browser": "link:src/core/packages/plugins/contracts-browser", "@kbn/core-plugins-contracts-server": "link:src/core/packages/plugins/contracts-server", - "@kbn/core-plugins-server": "link:packages/core/plugins/core-plugins-server", + "@kbn/core-plugins-server": "link:src/core/packages/plugins/server", "@kbn/core-plugins-server-internal": "link:packages/core/plugins/core-plugins-server-internal", "@kbn/core-preboot-server": "link:packages/core/preboot/core-preboot-server", "@kbn/core-preboot-server-internal": "link:packages/core/preboot/core-preboot-server-internal", diff --git a/packages/core/plugins/core-plugins-server/README.md b/src/core/packages/plugins/server/README.md similarity index 100% rename from packages/core/plugins/core-plugins-server/README.md rename to src/core/packages/plugins/server/README.md diff --git a/packages/core/plugins/core-plugins-server/index.ts b/src/core/packages/plugins/server/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-server/index.ts rename to src/core/packages/plugins/server/index.ts diff --git a/packages/core/plugins/core-plugins-server/jest.config.js b/src/core/packages/plugins/server/jest.config.js similarity index 85% rename from packages/core/plugins/core-plugins-server/jest.config.js rename to src/core/packages/plugins/server/jest.config.js index 76edb6acca526..1d0833c2e4159 100644 --- a/packages/core/plugins/core-plugins-server/jest.config.js +++ b/src/core/packages/plugins/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/plugins/core-plugins-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/plugins/server'], }; diff --git a/packages/core/plugins/core-plugins-server/kibana.jsonc b/src/core/packages/plugins/server/kibana.jsonc similarity index 100% rename from packages/core/plugins/core-plugins-server/kibana.jsonc rename to src/core/packages/plugins/server/kibana.jsonc diff --git a/packages/core/plugins/core-plugins-server/package.json b/src/core/packages/plugins/server/package.json similarity index 100% rename from packages/core/plugins/core-plugins-server/package.json rename to src/core/packages/plugins/server/package.json diff --git a/packages/core/plugins/core-plugins-server/src/index.ts b/src/core/packages/plugins/server/src/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-server/src/index.ts rename to src/core/packages/plugins/server/src/index.ts diff --git a/packages/core/plugins/core-plugins-server/src/shared_global_config.ts b/src/core/packages/plugins/server/src/shared_global_config.ts similarity index 100% rename from packages/core/plugins/core-plugins-server/src/shared_global_config.ts rename to src/core/packages/plugins/server/src/shared_global_config.ts diff --git a/packages/core/plugins/core-plugins-server/src/types.ts b/src/core/packages/plugins/server/src/types.ts similarity index 100% rename from packages/core/plugins/core-plugins-server/src/types.ts rename to src/core/packages/plugins/server/src/types.ts diff --git a/packages/core/plugins/core-plugins-server/tsconfig.json b/src/core/packages/plugins/server/tsconfig.json similarity index 91% rename from packages/core/plugins/core-plugins-server/tsconfig.json rename to src/core/packages/plugins/server/tsconfig.json index c6eee13f49312..acdb00c4f9c2c 100644 --- a/packages/core/plugins/core-plugins-server/tsconfig.json +++ b/src/core/packages/plugins/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 5b283969c3e29..c08209bf09e57 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -532,8 +532,8 @@ "@kbn/core-plugins-contracts-browser/*": ["src/core/packages/plugins/contracts-browser/*"], "@kbn/core-plugins-contracts-server": ["src/core/packages/plugins/contracts-server"], "@kbn/core-plugins-contracts-server/*": ["src/core/packages/plugins/contracts-server/*"], - "@kbn/core-plugins-server": ["packages/core/plugins/core-plugins-server"], - "@kbn/core-plugins-server/*": ["packages/core/plugins/core-plugins-server/*"], + "@kbn/core-plugins-server": ["src/core/packages/plugins/server"], + "@kbn/core-plugins-server/*": ["src/core/packages/plugins/server/*"], "@kbn/core-plugins-server-internal": ["packages/core/plugins/core-plugins-server-internal"], "@kbn/core-plugins-server-internal/*": ["packages/core/plugins/core-plugins-server-internal/*"], "@kbn/core-plugins-server-mocks": ["packages/core/plugins/core-plugins-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 2855b94fc0116..aa22170e91db1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4885,7 +4885,7 @@ version "0.0.0" uid "" -"@kbn/core-plugins-server@link:packages/core/plugins/core-plugins-server": +"@kbn/core-plugins-server@link:src/core/packages/plugins/server": version "0.0.0" uid "" From 416487c8dcecdab459d24d4d1f6709566bd0e687 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:14:07 +0100 Subject: [PATCH 090/167] Relocating module `@kbn/core-plugins-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/plugins/server-internal}/README.md | 0 .../core/packages/plugins/server-internal}/index.ts | 0 .../core/packages/plugins/server-internal}/jest.config.js | 4 ++-- .../core/packages/plugins/server-internal}/kibana.jsonc | 0 .../core/packages/plugins/server-internal}/package.json | 0 .../core/packages/plugins/server-internal}/src/constants.ts | 0 .../server-internal}/src/create_browser_config.test.ts | 0 .../plugins/server-internal}/src/create_browser_config.ts | 0 .../packages/plugins/server-internal}/src/discovery/index.ts | 0 .../server-internal}/src/discovery/is_camel_case.test.ts | 0 .../plugins/server-internal}/src/discovery/is_camel_case.ts | 0 .../server-internal}/src/discovery/plugin_discovery_error.ts | 0 .../src/discovery/plugin_manifest_from_plugin_package.test.ts | 0 .../src/discovery/plugin_manifest_from_plugin_package.ts | 0 .../src/discovery/plugin_manifest_parser.test.mocks.ts | 0 .../src/discovery/plugin_manifest_parser.test.ts | 0 .../server-internal}/src/discovery/plugin_manifest_parser.ts | 0 .../src/discovery/plugins_discovery.test.mocks.ts | 0 .../server-internal}/src/discovery/plugins_discovery.test.ts | 0 .../server-internal}/src/discovery/plugins_discovery.ts | 0 .../src/discovery/scan_plugin_search_paths.test.ts | 0 .../src/discovery/scan_plugin_search_paths.ts | 0 .../core/packages/plugins/server-internal}/src/index.ts | 0 .../plugins/server-internal}/src/legacy_config.test.ts | 0 .../packages/plugins/server-internal}/src/legacy_config.ts | 0 .../core/packages/plugins/server-internal}/src/plugin.test.ts | 0 .../core/packages/plugins/server-internal}/src/plugin.ts | 0 .../plugins/server-internal}/src/plugin_context.test.ts | 0 .../packages/plugins/server-internal}/src/plugin_context.ts | 0 .../server-internal}/src/plugin_contract_resolver.test.ts | 0 .../plugins/server-internal}/src/plugin_contract_resolver.ts | 0 .../plugins/server-internal}/src/plugins_config.test.ts | 0 .../packages/plugins/server-internal}/src/plugins_config.ts | 0 .../server-internal}/src/plugins_service.test.mocks.ts | 0 .../plugins/server-internal}/src/plugins_service.test.ts | 0 .../packages/plugins/server-internal}/src/plugins_service.ts | 0 .../plugins/server-internal}/src/plugins_system.test.mocks.ts | 0 .../plugins/server-internal}/src/plugins_system.test.ts | 0 .../packages/plugins/server-internal}/src/plugins_system.ts | 0 .../test_helpers/create_core_context_config_service.mock.ts | 0 .../plugins/server-internal}/src/test_helpers/index.ts | 0 .../src/test_helpers/plugin_contract_resolver.mock.ts | 0 .../core/packages/plugins/server-internal}/src/types.test.ts | 0 .../core/packages/plugins/server-internal}/src/types.ts | 0 .../core/packages/plugins/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 49 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/README.md (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/index.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/jest.config.js (83%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/kibana.jsonc (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/package.json (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/constants.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/create_browser_config.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/create_browser_config.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/index.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/is_camel_case.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/is_camel_case.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/plugin_discovery_error.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/plugin_manifest_from_plugin_package.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/plugin_manifest_from_plugin_package.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/plugin_manifest_parser.test.mocks.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/plugin_manifest_parser.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/plugin_manifest_parser.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/plugins_discovery.test.mocks.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/plugins_discovery.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/plugins_discovery.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/scan_plugin_search_paths.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/discovery/scan_plugin_search_paths.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/index.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/legacy_config.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/legacy_config.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugin.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugin.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugin_context.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugin_context.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugin_contract_resolver.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugin_contract_resolver.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugins_config.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugins_config.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugins_service.test.mocks.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugins_service.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugins_service.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugins_system.test.mocks.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugins_system.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/plugins_system.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/test_helpers/create_core_context_config_service.mock.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/test_helpers/index.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/test_helpers/plugin_contract_resolver.mock.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/types.test.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/src/types.ts (100%) rename {packages/core/plugins/core-plugins-server-internal => src/core/packages/plugins/server-internal}/tsconfig.json (95%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 08fbee2b2670f..c43f0e7fd56af 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -99,7 +99,6 @@ packages/core/node/core-node-server-mocks @elastic/kibana-core packages/core/notifications/core-notifications-browser-mocks @elastic/kibana-core packages/core/overlays/core-overlays-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-browser-mocks @elastic/kibana-core -packages/core/plugins/core-plugins-server-internal @elastic/kibana-core packages/core/plugins/core-plugins-server-mocks @elastic/kibana-core packages/core/preboot/core-preboot-server @elastic/kibana-core packages/core/preboot/core-preboot-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/plugins/browser-internal @elastic/kibana-core src/core/packages/plugins/contracts-browser @elastic/kibana-core src/core/packages/plugins/contracts-server @elastic/kibana-core src/core/packages/plugins/server @elastic/kibana-core +src/core/packages/plugins/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index c06e8eb92dce1..d20adcc5b5ab4 100644 --- a/package.json +++ b/package.json @@ -358,7 +358,7 @@ "@kbn/core-plugins-contracts-browser": "link:src/core/packages/plugins/contracts-browser", "@kbn/core-plugins-contracts-server": "link:src/core/packages/plugins/contracts-server", "@kbn/core-plugins-server": "link:src/core/packages/plugins/server", - "@kbn/core-plugins-server-internal": "link:packages/core/plugins/core-plugins-server-internal", + "@kbn/core-plugins-server-internal": "link:src/core/packages/plugins/server-internal", "@kbn/core-preboot-server": "link:packages/core/preboot/core-preboot-server", "@kbn/core-preboot-server-internal": "link:packages/core/preboot/core-preboot-server-internal", "@kbn/core-provider-plugin": "link:test/plugin_functional/plugins/core_provider_plugin", diff --git a/packages/core/plugins/core-plugins-server-internal/README.md b/src/core/packages/plugins/server-internal/README.md similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/README.md rename to src/core/packages/plugins/server-internal/README.md diff --git a/packages/core/plugins/core-plugins-server-internal/index.ts b/src/core/packages/plugins/server-internal/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/index.ts rename to src/core/packages/plugins/server-internal/index.ts diff --git a/packages/core/plugins/core-plugins-server-internal/jest.config.js b/src/core/packages/plugins/server-internal/jest.config.js similarity index 83% rename from packages/core/plugins/core-plugins-server-internal/jest.config.js rename to src/core/packages/plugins/server-internal/jest.config.js index bb4f033b12383..5028d05dc8b9c 100644 --- a/packages/core/plugins/core-plugins-server-internal/jest.config.js +++ b/src/core/packages/plugins/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/plugins/core-plugins-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/plugins/server-internal'], }; diff --git a/packages/core/plugins/core-plugins-server-internal/kibana.jsonc b/src/core/packages/plugins/server-internal/kibana.jsonc similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/kibana.jsonc rename to src/core/packages/plugins/server-internal/kibana.jsonc diff --git a/packages/core/plugins/core-plugins-server-internal/package.json b/src/core/packages/plugins/server-internal/package.json similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/package.json rename to src/core/packages/plugins/server-internal/package.json diff --git a/packages/core/plugins/core-plugins-server-internal/src/constants.ts b/src/core/packages/plugins/server-internal/src/constants.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/constants.ts rename to src/core/packages/plugins/server-internal/src/constants.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/create_browser_config.test.ts b/src/core/packages/plugins/server-internal/src/create_browser_config.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/create_browser_config.test.ts rename to src/core/packages/plugins/server-internal/src/create_browser_config.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/create_browser_config.ts b/src/core/packages/plugins/server-internal/src/create_browser_config.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/create_browser_config.ts rename to src/core/packages/plugins/server-internal/src/create_browser_config.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/index.ts b/src/core/packages/plugins/server-internal/src/discovery/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/index.ts rename to src/core/packages/plugins/server-internal/src/discovery/index.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/is_camel_case.test.ts b/src/core/packages/plugins/server-internal/src/discovery/is_camel_case.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/is_camel_case.test.ts rename to src/core/packages/plugins/server-internal/src/discovery/is_camel_case.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/is_camel_case.ts b/src/core/packages/plugins/server-internal/src/discovery/is_camel_case.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/is_camel_case.ts rename to src/core/packages/plugins/server-internal/src/discovery/is_camel_case.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/plugin_discovery_error.ts b/src/core/packages/plugins/server-internal/src/discovery/plugin_discovery_error.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/plugin_discovery_error.ts rename to src/core/packages/plugins/server-internal/src/discovery/plugin_discovery_error.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/plugin_manifest_from_plugin_package.test.ts b/src/core/packages/plugins/server-internal/src/discovery/plugin_manifest_from_plugin_package.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/plugin_manifest_from_plugin_package.test.ts rename to src/core/packages/plugins/server-internal/src/discovery/plugin_manifest_from_plugin_package.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/plugin_manifest_from_plugin_package.ts b/src/core/packages/plugins/server-internal/src/discovery/plugin_manifest_from_plugin_package.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/plugin_manifest_from_plugin_package.ts rename to src/core/packages/plugins/server-internal/src/discovery/plugin_manifest_from_plugin_package.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/plugin_manifest_parser.test.mocks.ts b/src/core/packages/plugins/server-internal/src/discovery/plugin_manifest_parser.test.mocks.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/plugin_manifest_parser.test.mocks.ts rename to src/core/packages/plugins/server-internal/src/discovery/plugin_manifest_parser.test.mocks.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/plugin_manifest_parser.test.ts b/src/core/packages/plugins/server-internal/src/discovery/plugin_manifest_parser.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/plugin_manifest_parser.test.ts rename to src/core/packages/plugins/server-internal/src/discovery/plugin_manifest_parser.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/plugin_manifest_parser.ts b/src/core/packages/plugins/server-internal/src/discovery/plugin_manifest_parser.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/plugin_manifest_parser.ts rename to src/core/packages/plugins/server-internal/src/discovery/plugin_manifest_parser.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/plugins_discovery.test.mocks.ts b/src/core/packages/plugins/server-internal/src/discovery/plugins_discovery.test.mocks.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/plugins_discovery.test.mocks.ts rename to src/core/packages/plugins/server-internal/src/discovery/plugins_discovery.test.mocks.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/plugins_discovery.test.ts b/src/core/packages/plugins/server-internal/src/discovery/plugins_discovery.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/plugins_discovery.test.ts rename to src/core/packages/plugins/server-internal/src/discovery/plugins_discovery.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/plugins_discovery.ts b/src/core/packages/plugins/server-internal/src/discovery/plugins_discovery.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/plugins_discovery.ts rename to src/core/packages/plugins/server-internal/src/discovery/plugins_discovery.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/scan_plugin_search_paths.test.ts b/src/core/packages/plugins/server-internal/src/discovery/scan_plugin_search_paths.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/scan_plugin_search_paths.test.ts rename to src/core/packages/plugins/server-internal/src/discovery/scan_plugin_search_paths.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/discovery/scan_plugin_search_paths.ts b/src/core/packages/plugins/server-internal/src/discovery/scan_plugin_search_paths.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/discovery/scan_plugin_search_paths.ts rename to src/core/packages/plugins/server-internal/src/discovery/scan_plugin_search_paths.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/index.ts b/src/core/packages/plugins/server-internal/src/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/index.ts rename to src/core/packages/plugins/server-internal/src/index.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/legacy_config.test.ts b/src/core/packages/plugins/server-internal/src/legacy_config.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/legacy_config.test.ts rename to src/core/packages/plugins/server-internal/src/legacy_config.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/legacy_config.ts b/src/core/packages/plugins/server-internal/src/legacy_config.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/legacy_config.ts rename to src/core/packages/plugins/server-internal/src/legacy_config.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugin.test.ts b/src/core/packages/plugins/server-internal/src/plugin.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugin.test.ts rename to src/core/packages/plugins/server-internal/src/plugin.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugin.ts b/src/core/packages/plugins/server-internal/src/plugin.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugin.ts rename to src/core/packages/plugins/server-internal/src/plugin.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugin_context.test.ts b/src/core/packages/plugins/server-internal/src/plugin_context.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugin_context.test.ts rename to src/core/packages/plugins/server-internal/src/plugin_context.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugin_context.ts b/src/core/packages/plugins/server-internal/src/plugin_context.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugin_context.ts rename to src/core/packages/plugins/server-internal/src/plugin_context.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugin_contract_resolver.test.ts b/src/core/packages/plugins/server-internal/src/plugin_contract_resolver.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugin_contract_resolver.test.ts rename to src/core/packages/plugins/server-internal/src/plugin_contract_resolver.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugin_contract_resolver.ts b/src/core/packages/plugins/server-internal/src/plugin_contract_resolver.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugin_contract_resolver.ts rename to src/core/packages/plugins/server-internal/src/plugin_contract_resolver.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugins_config.test.ts b/src/core/packages/plugins/server-internal/src/plugins_config.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugins_config.test.ts rename to src/core/packages/plugins/server-internal/src/plugins_config.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugins_config.ts b/src/core/packages/plugins/server-internal/src/plugins_config.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugins_config.ts rename to src/core/packages/plugins/server-internal/src/plugins_config.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugins_service.test.mocks.ts b/src/core/packages/plugins/server-internal/src/plugins_service.test.mocks.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugins_service.test.mocks.ts rename to src/core/packages/plugins/server-internal/src/plugins_service.test.mocks.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugins_service.test.ts b/src/core/packages/plugins/server-internal/src/plugins_service.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugins_service.test.ts rename to src/core/packages/plugins/server-internal/src/plugins_service.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugins_service.ts b/src/core/packages/plugins/server-internal/src/plugins_service.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugins_service.ts rename to src/core/packages/plugins/server-internal/src/plugins_service.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugins_system.test.mocks.ts b/src/core/packages/plugins/server-internal/src/plugins_system.test.mocks.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugins_system.test.mocks.ts rename to src/core/packages/plugins/server-internal/src/plugins_system.test.mocks.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugins_system.test.ts b/src/core/packages/plugins/server-internal/src/plugins_system.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugins_system.test.ts rename to src/core/packages/plugins/server-internal/src/plugins_system.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/plugins_system.ts b/src/core/packages/plugins/server-internal/src/plugins_system.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/plugins_system.ts rename to src/core/packages/plugins/server-internal/src/plugins_system.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/test_helpers/create_core_context_config_service.mock.ts b/src/core/packages/plugins/server-internal/src/test_helpers/create_core_context_config_service.mock.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/test_helpers/create_core_context_config_service.mock.ts rename to src/core/packages/plugins/server-internal/src/test_helpers/create_core_context_config_service.mock.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/test_helpers/index.ts b/src/core/packages/plugins/server-internal/src/test_helpers/index.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/test_helpers/index.ts rename to src/core/packages/plugins/server-internal/src/test_helpers/index.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/test_helpers/plugin_contract_resolver.mock.ts b/src/core/packages/plugins/server-internal/src/test_helpers/plugin_contract_resolver.mock.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/test_helpers/plugin_contract_resolver.mock.ts rename to src/core/packages/plugins/server-internal/src/test_helpers/plugin_contract_resolver.mock.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/types.test.ts b/src/core/packages/plugins/server-internal/src/types.test.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/types.test.ts rename to src/core/packages/plugins/server-internal/src/types.test.ts diff --git a/packages/core/plugins/core-plugins-server-internal/src/types.ts b/src/core/packages/plugins/server-internal/src/types.ts similarity index 100% rename from packages/core/plugins/core-plugins-server-internal/src/types.ts rename to src/core/packages/plugins/server-internal/src/types.ts diff --git a/packages/core/plugins/core-plugins-server-internal/tsconfig.json b/src/core/packages/plugins/server-internal/tsconfig.json similarity index 95% rename from packages/core/plugins/core-plugins-server-internal/tsconfig.json rename to src/core/packages/plugins/server-internal/tsconfig.json index 14beddf2c7fb7..018b16b8817e0 100644 --- a/packages/core/plugins/core-plugins-server-internal/tsconfig.json +++ b/src/core/packages/plugins/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c08209bf09e57..f33f0f0abf5ef 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -534,8 +534,8 @@ "@kbn/core-plugins-contracts-server/*": ["src/core/packages/plugins/contracts-server/*"], "@kbn/core-plugins-server": ["src/core/packages/plugins/server"], "@kbn/core-plugins-server/*": ["src/core/packages/plugins/server/*"], - "@kbn/core-plugins-server-internal": ["packages/core/plugins/core-plugins-server-internal"], - "@kbn/core-plugins-server-internal/*": ["packages/core/plugins/core-plugins-server-internal/*"], + "@kbn/core-plugins-server-internal": ["src/core/packages/plugins/server-internal"], + "@kbn/core-plugins-server-internal/*": ["src/core/packages/plugins/server-internal/*"], "@kbn/core-plugins-server-mocks": ["packages/core/plugins/core-plugins-server-mocks"], "@kbn/core-plugins-server-mocks/*": ["packages/core/plugins/core-plugins-server-mocks/*"], "@kbn/core-preboot-server": ["packages/core/preboot/core-preboot-server"], diff --git a/yarn.lock b/yarn.lock index aa22170e91db1..5af3668c59a8a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4877,7 +4877,7 @@ version "0.0.0" uid "" -"@kbn/core-plugins-server-internal@link:packages/core/plugins/core-plugins-server-internal": +"@kbn/core-plugins-server-internal@link:src/core/packages/plugins/server-internal": version "0.0.0" uid "" From 5a63c4e1aeb7f1f9f79f3e447ea574202a715229 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:15:07 +0100 Subject: [PATCH 091/167] Relocating module `@kbn/core-preboot-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/preboot/server}/README.md | 0 .../core/packages/preboot/server}/index.ts | 0 .../core/packages/preboot/server}/jest.config.js | 4 ++-- .../core/packages/preboot/server}/kibana.jsonc | 0 .../core/packages/preboot/server}/package.json | 0 .../core/packages/preboot/server}/src/contracts.ts | 0 .../core/packages/preboot/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/preboot/core-preboot-server => src/core/packages/preboot/server}/README.md (100%) rename {packages/core/preboot/core-preboot-server => src/core/packages/preboot/server}/index.ts (100%) rename {packages/core/preboot/core-preboot-server => src/core/packages/preboot/server}/jest.config.js (85%) rename {packages/core/preboot/core-preboot-server => src/core/packages/preboot/server}/kibana.jsonc (100%) rename {packages/core/preboot/core-preboot-server => src/core/packages/preboot/server}/package.json (100%) rename {packages/core/preboot/core-preboot-server => src/core/packages/preboot/server}/src/contracts.ts (100%) rename {packages/core/preboot/core-preboot-server => src/core/packages/preboot/server}/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c43f0e7fd56af..e9a46fc6bc548 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -100,7 +100,6 @@ packages/core/notifications/core-notifications-browser-mocks @elastic/kibana-cor packages/core/overlays/core-overlays-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-server-mocks @elastic/kibana-core -packages/core/preboot/core-preboot-server @elastic/kibana-core packages/core/preboot/core-preboot-server-internal @elastic/kibana-core packages/core/preboot/core-preboot-server-mocks @elastic/kibana-core packages/core/rendering/core-rendering-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/plugins/contracts-browser @elastic/kibana-core src/core/packages/plugins/contracts-server @elastic/kibana-core src/core/packages/plugins/server @elastic/kibana-core src/core/packages/plugins/server-internal @elastic/kibana-core +src/core/packages/preboot/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index d20adcc5b5ab4..cd770adfebc4c 100644 --- a/package.json +++ b/package.json @@ -359,7 +359,7 @@ "@kbn/core-plugins-contracts-server": "link:src/core/packages/plugins/contracts-server", "@kbn/core-plugins-server": "link:src/core/packages/plugins/server", "@kbn/core-plugins-server-internal": "link:src/core/packages/plugins/server-internal", - "@kbn/core-preboot-server": "link:packages/core/preboot/core-preboot-server", + "@kbn/core-preboot-server": "link:src/core/packages/preboot/server", "@kbn/core-preboot-server-internal": "link:packages/core/preboot/core-preboot-server-internal", "@kbn/core-provider-plugin": "link:test/plugin_functional/plugins/core_provider_plugin", "@kbn/core-rendering-browser": "link:packages/core/rendering/core-rendering-browser", diff --git a/packages/core/preboot/core-preboot-server/README.md b/src/core/packages/preboot/server/README.md similarity index 100% rename from packages/core/preboot/core-preboot-server/README.md rename to src/core/packages/preboot/server/README.md diff --git a/packages/core/preboot/core-preboot-server/index.ts b/src/core/packages/preboot/server/index.ts similarity index 100% rename from packages/core/preboot/core-preboot-server/index.ts rename to src/core/packages/preboot/server/index.ts diff --git a/packages/core/preboot/core-preboot-server/jest.config.js b/src/core/packages/preboot/server/jest.config.js similarity index 85% rename from packages/core/preboot/core-preboot-server/jest.config.js rename to src/core/packages/preboot/server/jest.config.js index d8ad56f1ea400..3cf123c9c082a 100644 --- a/packages/core/preboot/core-preboot-server/jest.config.js +++ b/src/core/packages/preboot/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/preboot/core-preboot-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/preboot/server'], }; diff --git a/packages/core/preboot/core-preboot-server/kibana.jsonc b/src/core/packages/preboot/server/kibana.jsonc similarity index 100% rename from packages/core/preboot/core-preboot-server/kibana.jsonc rename to src/core/packages/preboot/server/kibana.jsonc diff --git a/packages/core/preboot/core-preboot-server/package.json b/src/core/packages/preboot/server/package.json similarity index 100% rename from packages/core/preboot/core-preboot-server/package.json rename to src/core/packages/preboot/server/package.json diff --git a/packages/core/preboot/core-preboot-server/src/contracts.ts b/src/core/packages/preboot/server/src/contracts.ts similarity index 100% rename from packages/core/preboot/core-preboot-server/src/contracts.ts rename to src/core/packages/preboot/server/src/contracts.ts diff --git a/packages/core/preboot/core-preboot-server/tsconfig.json b/src/core/packages/preboot/server/tsconfig.json similarity index 78% rename from packages/core/preboot/core-preboot-server/tsconfig.json rename to src/core/packages/preboot/server/tsconfig.json index e7513f6481e89..131ff3e6bb433 100644 --- a/packages/core/preboot/core-preboot-server/tsconfig.json +++ b/src/core/packages/preboot/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index f33f0f0abf5ef..52f93d5f76489 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -538,8 +538,8 @@ "@kbn/core-plugins-server-internal/*": ["src/core/packages/plugins/server-internal/*"], "@kbn/core-plugins-server-mocks": ["packages/core/plugins/core-plugins-server-mocks"], "@kbn/core-plugins-server-mocks/*": ["packages/core/plugins/core-plugins-server-mocks/*"], - "@kbn/core-preboot-server": ["packages/core/preboot/core-preboot-server"], - "@kbn/core-preboot-server/*": ["packages/core/preboot/core-preboot-server/*"], + "@kbn/core-preboot-server": ["src/core/packages/preboot/server"], + "@kbn/core-preboot-server/*": ["src/core/packages/preboot/server/*"], "@kbn/core-preboot-server-internal": ["packages/core/preboot/core-preboot-server-internal"], "@kbn/core-preboot-server-internal/*": ["packages/core/preboot/core-preboot-server-internal/*"], "@kbn/core-preboot-server-mocks": ["packages/core/preboot/core-preboot-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 5af3668c59a8a..9cb2b345fd94f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4897,7 +4897,7 @@ version "0.0.0" uid "" -"@kbn/core-preboot-server@link:packages/core/preboot/core-preboot-server": +"@kbn/core-preboot-server@link:src/core/packages/preboot/server": version "0.0.0" uid "" From fad81e23e2af5655d685b00ac193c919b9f1ce2b Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:16:01 +0100 Subject: [PATCH 092/167] Relocating module `@kbn/core-preboot-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/preboot/server-internal}/README.md | 0 .../core/packages/preboot/server-internal}/index.ts | 0 .../core/packages/preboot/server-internal}/jest.config.js | 4 ++-- .../core/packages/preboot/server-internal}/kibana.jsonc | 0 .../core/packages/preboot/server-internal}/package.json | 0 .../preboot/server-internal}/src/preboot_service.test.ts | 0 .../packages/preboot/server-internal}/src/preboot_service.ts | 0 .../core/packages/preboot/server-internal}/src/types.ts | 0 .../core/packages/preboot/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/preboot/core-preboot-server-internal => src/core/packages/preboot/server-internal}/README.md (100%) rename {packages/core/preboot/core-preboot-server-internal => src/core/packages/preboot/server-internal}/index.ts (100%) rename {packages/core/preboot/core-preboot-server-internal => src/core/packages/preboot/server-internal}/jest.config.js (83%) rename {packages/core/preboot/core-preboot-server-internal => src/core/packages/preboot/server-internal}/kibana.jsonc (100%) rename {packages/core/preboot/core-preboot-server-internal => src/core/packages/preboot/server-internal}/package.json (100%) rename {packages/core/preboot/core-preboot-server-internal => src/core/packages/preboot/server-internal}/src/preboot_service.test.ts (100%) rename {packages/core/preboot/core-preboot-server-internal => src/core/packages/preboot/server-internal}/src/preboot_service.ts (100%) rename {packages/core/preboot/core-preboot-server-internal => src/core/packages/preboot/server-internal}/src/types.ts (100%) rename {packages/core/preboot/core-preboot-server-internal => src/core/packages/preboot/server-internal}/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e9a46fc6bc548..dab6493278c73 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -100,7 +100,6 @@ packages/core/notifications/core-notifications-browser-mocks @elastic/kibana-cor packages/core/overlays/core-overlays-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-server-mocks @elastic/kibana-core -packages/core/preboot/core-preboot-server-internal @elastic/kibana-core packages/core/preboot/core-preboot-server-mocks @elastic/kibana-core packages/core/rendering/core-rendering-browser @elastic/kibana-core packages/core/rendering/core-rendering-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/plugins/contracts-server @elastic/kibana-core src/core/packages/plugins/server @elastic/kibana-core src/core/packages/plugins/server-internal @elastic/kibana-core src/core/packages/preboot/server @elastic/kibana-core +src/core/packages/preboot/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index cd770adfebc4c..96c8453d8669c 100644 --- a/package.json +++ b/package.json @@ -360,7 +360,7 @@ "@kbn/core-plugins-server": "link:src/core/packages/plugins/server", "@kbn/core-plugins-server-internal": "link:src/core/packages/plugins/server-internal", "@kbn/core-preboot-server": "link:src/core/packages/preboot/server", - "@kbn/core-preboot-server-internal": "link:packages/core/preboot/core-preboot-server-internal", + "@kbn/core-preboot-server-internal": "link:src/core/packages/preboot/server-internal", "@kbn/core-provider-plugin": "link:test/plugin_functional/plugins/core_provider_plugin", "@kbn/core-rendering-browser": "link:packages/core/rendering/core-rendering-browser", "@kbn/core-rendering-browser-internal": "link:packages/core/rendering/core-rendering-browser-internal", diff --git a/packages/core/preboot/core-preboot-server-internal/README.md b/src/core/packages/preboot/server-internal/README.md similarity index 100% rename from packages/core/preboot/core-preboot-server-internal/README.md rename to src/core/packages/preboot/server-internal/README.md diff --git a/packages/core/preboot/core-preboot-server-internal/index.ts b/src/core/packages/preboot/server-internal/index.ts similarity index 100% rename from packages/core/preboot/core-preboot-server-internal/index.ts rename to src/core/packages/preboot/server-internal/index.ts diff --git a/packages/core/preboot/core-preboot-server-internal/jest.config.js b/src/core/packages/preboot/server-internal/jest.config.js similarity index 83% rename from packages/core/preboot/core-preboot-server-internal/jest.config.js rename to src/core/packages/preboot/server-internal/jest.config.js index 3615bf647f5b6..3201c1ab09ff9 100644 --- a/packages/core/preboot/core-preboot-server-internal/jest.config.js +++ b/src/core/packages/preboot/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/preboot/core-preboot-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/preboot/server-internal'], }; diff --git a/packages/core/preboot/core-preboot-server-internal/kibana.jsonc b/src/core/packages/preboot/server-internal/kibana.jsonc similarity index 100% rename from packages/core/preboot/core-preboot-server-internal/kibana.jsonc rename to src/core/packages/preboot/server-internal/kibana.jsonc diff --git a/packages/core/preboot/core-preboot-server-internal/package.json b/src/core/packages/preboot/server-internal/package.json similarity index 100% rename from packages/core/preboot/core-preboot-server-internal/package.json rename to src/core/packages/preboot/server-internal/package.json diff --git a/packages/core/preboot/core-preboot-server-internal/src/preboot_service.test.ts b/src/core/packages/preboot/server-internal/src/preboot_service.test.ts similarity index 100% rename from packages/core/preboot/core-preboot-server-internal/src/preboot_service.test.ts rename to src/core/packages/preboot/server-internal/src/preboot_service.test.ts diff --git a/packages/core/preboot/core-preboot-server-internal/src/preboot_service.ts b/src/core/packages/preboot/server-internal/src/preboot_service.ts similarity index 100% rename from packages/core/preboot/core-preboot-server-internal/src/preboot_service.ts rename to src/core/packages/preboot/server-internal/src/preboot_service.ts diff --git a/packages/core/preboot/core-preboot-server-internal/src/types.ts b/src/core/packages/preboot/server-internal/src/types.ts similarity index 100% rename from packages/core/preboot/core-preboot-server-internal/src/types.ts rename to src/core/packages/preboot/server-internal/src/types.ts diff --git a/packages/core/preboot/core-preboot-server-internal/tsconfig.json b/src/core/packages/preboot/server-internal/tsconfig.json similarity index 88% rename from packages/core/preboot/core-preboot-server-internal/tsconfig.json rename to src/core/packages/preboot/server-internal/tsconfig.json index fa2cee0f60496..bc8f2aee585c0 100644 --- a/packages/core/preboot/core-preboot-server-internal/tsconfig.json +++ b/src/core/packages/preboot/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 52f93d5f76489..68c4d851d6c5a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -540,8 +540,8 @@ "@kbn/core-plugins-server-mocks/*": ["packages/core/plugins/core-plugins-server-mocks/*"], "@kbn/core-preboot-server": ["src/core/packages/preboot/server"], "@kbn/core-preboot-server/*": ["src/core/packages/preboot/server/*"], - "@kbn/core-preboot-server-internal": ["packages/core/preboot/core-preboot-server-internal"], - "@kbn/core-preboot-server-internal/*": ["packages/core/preboot/core-preboot-server-internal/*"], + "@kbn/core-preboot-server-internal": ["src/core/packages/preboot/server-internal"], + "@kbn/core-preboot-server-internal/*": ["src/core/packages/preboot/server-internal/*"], "@kbn/core-preboot-server-mocks": ["packages/core/preboot/core-preboot-server-mocks"], "@kbn/core-preboot-server-mocks/*": ["packages/core/preboot/core-preboot-server-mocks/*"], "@kbn/core-provider-plugin": ["test/plugin_functional/plugins/core_provider_plugin"], diff --git a/yarn.lock b/yarn.lock index 9cb2b345fd94f..b56cf4e659616 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4889,7 +4889,7 @@ version "0.0.0" uid "" -"@kbn/core-preboot-server-internal@link:packages/core/preboot/core-preboot-server-internal": +"@kbn/core-preboot-server-internal@link:src/core/packages/preboot/server-internal": version "0.0.0" uid "" From f70e58e60372168cd99e591115de690fffa04f95 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:16:56 +0100 Subject: [PATCH 093/167] Relocating module `@kbn/core-rendering-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/rendering/browser}/README.md | 0 .../core/packages/rendering/browser}/index.ts | 0 .../core/packages/rendering/browser}/jest.config.js | 4 ++-- .../core/packages/rendering/browser}/kibana.jsonc | 0 .../core/packages/rendering/browser}/package.json | 0 .../core/packages/rendering/browser}/src/index.ts | 0 .../packages/rendering/browser}/src/use_app_fixed_viewport.ts | 0 .../core/packages/rendering/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/rendering/core-rendering-browser => src/core/packages/rendering/browser}/README.md (100%) rename {packages/core/rendering/core-rendering-browser => src/core/packages/rendering/browser}/index.ts (100%) rename {packages/core/rendering/core-rendering-browser => src/core/packages/rendering/browser}/jest.config.js (84%) rename {packages/core/rendering/core-rendering-browser => src/core/packages/rendering/browser}/kibana.jsonc (100%) rename {packages/core/rendering/core-rendering-browser => src/core/packages/rendering/browser}/package.json (100%) rename {packages/core/rendering/core-rendering-browser => src/core/packages/rendering/browser}/src/index.ts (100%) rename {packages/core/rendering/core-rendering-browser => src/core/packages/rendering/browser}/src/use_app_fixed_viewport.ts (100%) rename {packages/core/rendering/core-rendering-browser => src/core/packages/rendering/browser}/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dab6493278c73..e504afee3125a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -101,7 +101,6 @@ packages/core/overlays/core-overlays-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-server-mocks @elastic/kibana-core packages/core/preboot/core-preboot-server-mocks @elastic/kibana-core -packages/core/rendering/core-rendering-browser @elastic/kibana-core packages/core/rendering/core-rendering-browser-internal @elastic/kibana-core packages/core/rendering/core-rendering-browser-mocks @elastic/kibana-core packages/core/rendering/core-rendering-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/plugins/server @elastic/kibana-core src/core/packages/plugins/server-internal @elastic/kibana-core src/core/packages/preboot/server @elastic/kibana-core src/core/packages/preboot/server-internal @elastic/kibana-core +src/core/packages/rendering/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 96c8453d8669c..72405354dcd05 100644 --- a/package.json +++ b/package.json @@ -362,7 +362,7 @@ "@kbn/core-preboot-server": "link:src/core/packages/preboot/server", "@kbn/core-preboot-server-internal": "link:src/core/packages/preboot/server-internal", "@kbn/core-provider-plugin": "link:test/plugin_functional/plugins/core_provider_plugin", - "@kbn/core-rendering-browser": "link:packages/core/rendering/core-rendering-browser", + "@kbn/core-rendering-browser": "link:src/core/packages/rendering/browser", "@kbn/core-rendering-browser-internal": "link:packages/core/rendering/core-rendering-browser-internal", "@kbn/core-rendering-server-internal": "link:packages/core/rendering/core-rendering-server-internal", "@kbn/core-root-browser-internal": "link:packages/core/root/core-root-browser-internal", diff --git a/packages/core/rendering/core-rendering-browser/README.md b/src/core/packages/rendering/browser/README.md similarity index 100% rename from packages/core/rendering/core-rendering-browser/README.md rename to src/core/packages/rendering/browser/README.md diff --git a/packages/core/rendering/core-rendering-browser/index.ts b/src/core/packages/rendering/browser/index.ts similarity index 100% rename from packages/core/rendering/core-rendering-browser/index.ts rename to src/core/packages/rendering/browser/index.ts diff --git a/packages/core/rendering/core-rendering-browser/jest.config.js b/src/core/packages/rendering/browser/jest.config.js similarity index 84% rename from packages/core/rendering/core-rendering-browser/jest.config.js rename to src/core/packages/rendering/browser/jest.config.js index 13f1819553812..8d72dd41b7b9e 100644 --- a/packages/core/rendering/core-rendering-browser/jest.config.js +++ b/src/core/packages/rendering/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/rendering/core-rendering-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/rendering/browser'], }; diff --git a/packages/core/rendering/core-rendering-browser/kibana.jsonc b/src/core/packages/rendering/browser/kibana.jsonc similarity index 100% rename from packages/core/rendering/core-rendering-browser/kibana.jsonc rename to src/core/packages/rendering/browser/kibana.jsonc diff --git a/packages/core/rendering/core-rendering-browser/package.json b/src/core/packages/rendering/browser/package.json similarity index 100% rename from packages/core/rendering/core-rendering-browser/package.json rename to src/core/packages/rendering/browser/package.json diff --git a/packages/core/rendering/core-rendering-browser/src/index.ts b/src/core/packages/rendering/browser/src/index.ts similarity index 100% rename from packages/core/rendering/core-rendering-browser/src/index.ts rename to src/core/packages/rendering/browser/src/index.ts diff --git a/packages/core/rendering/core-rendering-browser/src/use_app_fixed_viewport.ts b/src/core/packages/rendering/browser/src/use_app_fixed_viewport.ts similarity index 100% rename from packages/core/rendering/core-rendering-browser/src/use_app_fixed_viewport.ts rename to src/core/packages/rendering/browser/src/use_app_fixed_viewport.ts diff --git a/packages/core/rendering/core-rendering-browser/tsconfig.json b/src/core/packages/rendering/browser/tsconfig.json similarity index 82% rename from packages/core/rendering/core-rendering-browser/tsconfig.json rename to src/core/packages/rendering/browser/tsconfig.json index 3a932605dfa75..b6a3b06e7710a 100644 --- a/packages/core/rendering/core-rendering-browser/tsconfig.json +++ b/src/core/packages/rendering/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 68c4d851d6c5a..85035134ab093 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -546,8 +546,8 @@ "@kbn/core-preboot-server-mocks/*": ["packages/core/preboot/core-preboot-server-mocks/*"], "@kbn/core-provider-plugin": ["test/plugin_functional/plugins/core_provider_plugin"], "@kbn/core-provider-plugin/*": ["test/plugin_functional/plugins/core_provider_plugin/*"], - "@kbn/core-rendering-browser": ["packages/core/rendering/core-rendering-browser"], - "@kbn/core-rendering-browser/*": ["packages/core/rendering/core-rendering-browser/*"], + "@kbn/core-rendering-browser": ["src/core/packages/rendering/browser"], + "@kbn/core-rendering-browser/*": ["src/core/packages/rendering/browser/*"], "@kbn/core-rendering-browser-internal": ["packages/core/rendering/core-rendering-browser-internal"], "@kbn/core-rendering-browser-internal/*": ["packages/core/rendering/core-rendering-browser-internal/*"], "@kbn/core-rendering-browser-mocks": ["packages/core/rendering/core-rendering-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index b56cf4e659616..4ca23f963cd68 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4913,7 +4913,7 @@ version "0.0.0" uid "" -"@kbn/core-rendering-browser@link:packages/core/rendering/core-rendering-browser": +"@kbn/core-rendering-browser@link:src/core/packages/rendering/browser": version "0.0.0" uid "" From d71e8855424d994d9af71e3ca38cfa295618518c Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:17:51 +0100 Subject: [PATCH 094/167] Relocating module `@kbn/core-rendering-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/rendering/browser-internal}/README.md | 0 .../core/packages/rendering/browser-internal}/index.ts | 0 .../core/packages/rendering/browser-internal}/jest.config.js | 4 ++-- .../core/packages/rendering/browser-internal}/kibana.jsonc | 0 .../core/packages/rendering/browser-internal}/package.json | 0 .../rendering/browser-internal}/src/app_containers.test.tsx | 0 .../rendering/browser-internal}/src/app_containers.tsx | 0 .../core/packages/rendering/browser-internal}/src/index.ts | 0 .../browser-internal}/src/rendering_service.test.tsx | 0 .../rendering/browser-internal}/src/rendering_service.tsx | 0 .../core/packages/rendering/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/rendering/core-rendering-browser-internal => src/core/packages/rendering/browser-internal}/README.md (100%) rename {packages/core/rendering/core-rendering-browser-internal => src/core/packages/rendering/browser-internal}/index.ts (100%) rename {packages/core/rendering/core-rendering-browser-internal => src/core/packages/rendering/browser-internal}/jest.config.js (82%) rename {packages/core/rendering/core-rendering-browser-internal => src/core/packages/rendering/browser-internal}/kibana.jsonc (100%) rename {packages/core/rendering/core-rendering-browser-internal => src/core/packages/rendering/browser-internal}/package.json (100%) rename {packages/core/rendering/core-rendering-browser-internal => src/core/packages/rendering/browser-internal}/src/app_containers.test.tsx (100%) rename {packages/core/rendering/core-rendering-browser-internal => src/core/packages/rendering/browser-internal}/src/app_containers.tsx (100%) rename {packages/core/rendering/core-rendering-browser-internal => src/core/packages/rendering/browser-internal}/src/index.ts (100%) rename {packages/core/rendering/core-rendering-browser-internal => src/core/packages/rendering/browser-internal}/src/rendering_service.test.tsx (100%) rename {packages/core/rendering/core-rendering-browser-internal => src/core/packages/rendering/browser-internal}/src/rendering_service.tsx (100%) rename {packages/core/rendering/core-rendering-browser-internal => src/core/packages/rendering/browser-internal}/tsconfig.json (94%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e504afee3125a..6fd040f66cc10 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -101,7 +101,6 @@ packages/core/overlays/core-overlays-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-server-mocks @elastic/kibana-core packages/core/preboot/core-preboot-server-mocks @elastic/kibana-core -packages/core/rendering/core-rendering-browser-internal @elastic/kibana-core packages/core/rendering/core-rendering-browser-mocks @elastic/kibana-core packages/core/rendering/core-rendering-server-internal @elastic/kibana-core packages/core/rendering/core-rendering-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/plugins/server-internal @elastic/kibana-core src/core/packages/preboot/server @elastic/kibana-core src/core/packages/preboot/server-internal @elastic/kibana-core src/core/packages/rendering/browser @elastic/kibana-core +src/core/packages/rendering/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 72405354dcd05..5a0b221e970a6 100644 --- a/package.json +++ b/package.json @@ -363,7 +363,7 @@ "@kbn/core-preboot-server-internal": "link:src/core/packages/preboot/server-internal", "@kbn/core-provider-plugin": "link:test/plugin_functional/plugins/core_provider_plugin", "@kbn/core-rendering-browser": "link:src/core/packages/rendering/browser", - "@kbn/core-rendering-browser-internal": "link:packages/core/rendering/core-rendering-browser-internal", + "@kbn/core-rendering-browser-internal": "link:src/core/packages/rendering/browser-internal", "@kbn/core-rendering-server-internal": "link:packages/core/rendering/core-rendering-server-internal", "@kbn/core-root-browser-internal": "link:packages/core/root/core-root-browser-internal", "@kbn/core-root-server-internal": "link:packages/core/root/core-root-server-internal", diff --git a/packages/core/rendering/core-rendering-browser-internal/README.md b/src/core/packages/rendering/browser-internal/README.md similarity index 100% rename from packages/core/rendering/core-rendering-browser-internal/README.md rename to src/core/packages/rendering/browser-internal/README.md diff --git a/packages/core/rendering/core-rendering-browser-internal/index.ts b/src/core/packages/rendering/browser-internal/index.ts similarity index 100% rename from packages/core/rendering/core-rendering-browser-internal/index.ts rename to src/core/packages/rendering/browser-internal/index.ts diff --git a/packages/core/rendering/core-rendering-browser-internal/jest.config.js b/src/core/packages/rendering/browser-internal/jest.config.js similarity index 82% rename from packages/core/rendering/core-rendering-browser-internal/jest.config.js rename to src/core/packages/rendering/browser-internal/jest.config.js index 136cceee2f1f2..2eeaeb2608339 100644 --- a/packages/core/rendering/core-rendering-browser-internal/jest.config.js +++ b/src/core/packages/rendering/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/rendering/core-rendering-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/rendering/browser-internal'], }; diff --git a/packages/core/rendering/core-rendering-browser-internal/kibana.jsonc b/src/core/packages/rendering/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/rendering/core-rendering-browser-internal/kibana.jsonc rename to src/core/packages/rendering/browser-internal/kibana.jsonc diff --git a/packages/core/rendering/core-rendering-browser-internal/package.json b/src/core/packages/rendering/browser-internal/package.json similarity index 100% rename from packages/core/rendering/core-rendering-browser-internal/package.json rename to src/core/packages/rendering/browser-internal/package.json diff --git a/packages/core/rendering/core-rendering-browser-internal/src/app_containers.test.tsx b/src/core/packages/rendering/browser-internal/src/app_containers.test.tsx similarity index 100% rename from packages/core/rendering/core-rendering-browser-internal/src/app_containers.test.tsx rename to src/core/packages/rendering/browser-internal/src/app_containers.test.tsx diff --git a/packages/core/rendering/core-rendering-browser-internal/src/app_containers.tsx b/src/core/packages/rendering/browser-internal/src/app_containers.tsx similarity index 100% rename from packages/core/rendering/core-rendering-browser-internal/src/app_containers.tsx rename to src/core/packages/rendering/browser-internal/src/app_containers.tsx diff --git a/packages/core/rendering/core-rendering-browser-internal/src/index.ts b/src/core/packages/rendering/browser-internal/src/index.ts similarity index 100% rename from packages/core/rendering/core-rendering-browser-internal/src/index.ts rename to src/core/packages/rendering/browser-internal/src/index.ts diff --git a/packages/core/rendering/core-rendering-browser-internal/src/rendering_service.test.tsx b/src/core/packages/rendering/browser-internal/src/rendering_service.test.tsx similarity index 100% rename from packages/core/rendering/core-rendering-browser-internal/src/rendering_service.test.tsx rename to src/core/packages/rendering/browser-internal/src/rendering_service.test.tsx diff --git a/packages/core/rendering/core-rendering-browser-internal/src/rendering_service.tsx b/src/core/packages/rendering/browser-internal/src/rendering_service.tsx similarity index 100% rename from packages/core/rendering/core-rendering-browser-internal/src/rendering_service.tsx rename to src/core/packages/rendering/browser-internal/src/rendering_service.tsx diff --git a/packages/core/rendering/core-rendering-browser-internal/tsconfig.json b/src/core/packages/rendering/browser-internal/tsconfig.json similarity index 94% rename from packages/core/rendering/core-rendering-browser-internal/tsconfig.json rename to src/core/packages/rendering/browser-internal/tsconfig.json index 02657e4e54b43..cf6fbc53280ae 100644 --- a/packages/core/rendering/core-rendering-browser-internal/tsconfig.json +++ b/src/core/packages/rendering/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 85035134ab093..47f459ec8337b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -548,8 +548,8 @@ "@kbn/core-provider-plugin/*": ["test/plugin_functional/plugins/core_provider_plugin/*"], "@kbn/core-rendering-browser": ["src/core/packages/rendering/browser"], "@kbn/core-rendering-browser/*": ["src/core/packages/rendering/browser/*"], - "@kbn/core-rendering-browser-internal": ["packages/core/rendering/core-rendering-browser-internal"], - "@kbn/core-rendering-browser-internal/*": ["packages/core/rendering/core-rendering-browser-internal/*"], + "@kbn/core-rendering-browser-internal": ["src/core/packages/rendering/browser-internal"], + "@kbn/core-rendering-browser-internal/*": ["src/core/packages/rendering/browser-internal/*"], "@kbn/core-rendering-browser-mocks": ["packages/core/rendering/core-rendering-browser-mocks"], "@kbn/core-rendering-browser-mocks/*": ["packages/core/rendering/core-rendering-browser-mocks/*"], "@kbn/core-rendering-server-internal": ["packages/core/rendering/core-rendering-server-internal"], diff --git a/yarn.lock b/yarn.lock index 4ca23f963cd68..6ffe684c5e4ca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4905,7 +4905,7 @@ version "0.0.0" uid "" -"@kbn/core-rendering-browser-internal@link:packages/core/rendering/core-rendering-browser-internal": +"@kbn/core-rendering-browser-internal@link:src/core/packages/rendering/browser-internal": version "0.0.0" uid "" From 073afd4cbda9a13b26a267b33a6c14a510fa7bd5 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:18:50 +0100 Subject: [PATCH 095/167] Relocating module `@kbn/core-rendering-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- src/core/packages/apps/server-internal/assets/legacy_theme.js | 2 +- .../core/packages/rendering/server-internal}/README.md | 0 .../core/packages/rendering/server-internal}/index.ts | 0 .../core/packages/rendering/server-internal}/jest.config.js | 4 ++-- .../core/packages/rendering/server-internal}/kibana.jsonc | 0 .../core/packages/rendering/server-internal}/package.json | 0 .../src/__snapshots__/rendering_service.test.ts.snap | 0 .../src/bootstrap/__snapshots__/render_template.test.ts.snap | 0 .../src/bootstrap/bootstrap_renderer.test.mocks.ts | 0 .../server-internal}/src/bootstrap/bootstrap_renderer.test.ts | 0 .../server-internal}/src/bootstrap/bootstrap_renderer.ts | 0 .../src/bootstrap/get_js_dependency_paths.test.ts | 0 .../server-internal}/src/bootstrap/get_js_dependency_paths.ts | 0 .../src/bootstrap/get_plugin_bundle_paths.test.ts | 0 .../server-internal}/src/bootstrap/get_plugin_bundle_paths.ts | 0 .../server-internal}/src/bootstrap/get_theme_tag.test.ts | 0 .../rendering/server-internal}/src/bootstrap/get_theme_tag.ts | 0 .../rendering/server-internal}/src/bootstrap/index.ts | 0 .../src/bootstrap/register_bootstrap_route.test.ts | 0 .../src/bootstrap/register_bootstrap_route.ts | 0 .../server-internal}/src/bootstrap/render_template.test.ts | 0 .../server-internal}/src/bootstrap/render_template.ts | 0 .../rendering/server-internal}/src/filter_ui_plugins.test.ts | 0 .../rendering/server-internal}/src/filter_ui_plugins.ts | 0 .../server-internal}/src/get_apm_config.test.mocks.ts | 0 .../rendering/server-internal}/src/get_apm_config.test.ts | 0 .../packages/rendering/server-internal}/src/get_apm_config.ts | 0 .../core/packages/rendering/server-internal}/src/index.ts | 0 .../packages/rendering/server-internal}/src/internal_types.ts | 0 .../rendering/server-internal}/src/render_utils.test.ts | 0 .../packages/rendering/server-internal}/src/render_utils.ts | 0 .../server-internal}/src/rendering_service.test.mocks.ts | 0 .../rendering/server-internal}/src/rendering_service.test.ts | 0 .../rendering/server-internal}/src/rendering_service.tsx | 0 .../rendering/server-internal}/src/test_helpers/params.ts | 0 .../server-internal}/src/test_helpers/rendering_service.ts | 0 .../core/packages/rendering/server-internal}/src/types.ts | 0 .../packages/rendering/server-internal}/src/views/fonts.tsx | 0 .../packages/rendering/server-internal}/src/views/index.ts | 0 .../packages/rendering/server-internal}/src/views/logo.tsx | 0 .../packages/rendering/server-internal}/src/views/styles.tsx | 0 .../rendering/server-internal}/src/views/template.tsx | 0 .../core/packages/rendering/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 47 files changed, 9 insertions(+), 9 deletions(-) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/README.md (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/index.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/jest.config.js (83%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/kibana.jsonc (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/package.json (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/__snapshots__/rendering_service.test.ts.snap (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/__snapshots__/render_template.test.ts.snap (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/bootstrap_renderer.test.mocks.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/bootstrap_renderer.test.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/bootstrap_renderer.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/get_js_dependency_paths.test.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/get_js_dependency_paths.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/get_plugin_bundle_paths.test.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/get_plugin_bundle_paths.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/get_theme_tag.test.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/get_theme_tag.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/index.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/register_bootstrap_route.test.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/register_bootstrap_route.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/render_template.test.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/bootstrap/render_template.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/filter_ui_plugins.test.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/filter_ui_plugins.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/get_apm_config.test.mocks.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/get_apm_config.test.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/get_apm_config.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/index.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/internal_types.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/render_utils.test.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/render_utils.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/rendering_service.test.mocks.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/rendering_service.test.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/rendering_service.tsx (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/test_helpers/params.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/test_helpers/rendering_service.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/types.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/views/fonts.tsx (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/views/index.ts (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/views/logo.tsx (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/views/styles.tsx (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/src/views/template.tsx (100%) rename {packages/core/rendering/core-rendering-server-internal => src/core/packages/rendering/server-internal}/tsconfig.json (96%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6fd040f66cc10..40b811fc99775 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -102,7 +102,6 @@ packages/core/plugins/core-plugins-browser-mocks @elastic/kibana-core packages/core/plugins/core-plugins-server-mocks @elastic/kibana-core packages/core/preboot/core-preboot-server-mocks @elastic/kibana-core packages/core/rendering/core-rendering-browser-mocks @elastic/kibana-core -packages/core/rendering/core-rendering-server-internal @elastic/kibana-core packages/core/rendering/core-rendering-server-mocks @elastic/kibana-core packages/core/root/core-root-browser-internal @elastic/kibana-core packages/core/root/core-root-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/preboot/server @elastic/kibana-core src/core/packages/preboot/server-internal @elastic/kibana-core src/core/packages/rendering/browser @elastic/kibana-core src/core/packages/rendering/browser-internal @elastic/kibana-core +src/core/packages/rendering/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 5a0b221e970a6..1ffc7972757cf 100644 --- a/package.json +++ b/package.json @@ -364,7 +364,7 @@ "@kbn/core-provider-plugin": "link:test/plugin_functional/plugins/core_provider_plugin", "@kbn/core-rendering-browser": "link:src/core/packages/rendering/browser", "@kbn/core-rendering-browser-internal": "link:src/core/packages/rendering/browser-internal", - "@kbn/core-rendering-server-internal": "link:packages/core/rendering/core-rendering-server-internal", + "@kbn/core-rendering-server-internal": "link:src/core/packages/rendering/server-internal", "@kbn/core-root-browser-internal": "link:packages/core/root/core-root-browser-internal", "@kbn/core-root-server-internal": "link:packages/core/root/core-root-server-internal", "@kbn/core-saved-objects-api-browser": "link:packages/core/saved-objects/core-saved-objects-api-browser", diff --git a/src/core/packages/apps/server-internal/assets/legacy_theme.js b/src/core/packages/apps/server-internal/assets/legacy_theme.js index 4e2adcb204d5d..2ce4311a6e67f 100644 --- a/src/core/packages/apps/server-internal/assets/legacy_theme.js +++ b/src/core/packages/apps/server-internal/assets/legacy_theme.js @@ -25,7 +25,7 @@ function createInlineStyles(content) { } // must be kept in sync with -// packages/core/rendering/core-rendering-server-internal/src/views/styles.tsx +// src/core/packages/rendering/server-internal/src/views/styles.tsx var lightStyles = [ 'html { background-color: #F8FAFD; }', diff --git a/packages/core/rendering/core-rendering-server-internal/README.md b/src/core/packages/rendering/server-internal/README.md similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/README.md rename to src/core/packages/rendering/server-internal/README.md diff --git a/packages/core/rendering/core-rendering-server-internal/index.ts b/src/core/packages/rendering/server-internal/index.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/index.ts rename to src/core/packages/rendering/server-internal/index.ts diff --git a/packages/core/rendering/core-rendering-server-internal/jest.config.js b/src/core/packages/rendering/server-internal/jest.config.js similarity index 83% rename from packages/core/rendering/core-rendering-server-internal/jest.config.js rename to src/core/packages/rendering/server-internal/jest.config.js index 41a4ff4fb6b8a..702015c88662a 100644 --- a/packages/core/rendering/core-rendering-server-internal/jest.config.js +++ b/src/core/packages/rendering/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/rendering/core-rendering-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/rendering/server-internal'], }; diff --git a/packages/core/rendering/core-rendering-server-internal/kibana.jsonc b/src/core/packages/rendering/server-internal/kibana.jsonc similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/kibana.jsonc rename to src/core/packages/rendering/server-internal/kibana.jsonc diff --git a/packages/core/rendering/core-rendering-server-internal/package.json b/src/core/packages/rendering/server-internal/package.json similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/package.json rename to src/core/packages/rendering/server-internal/package.json diff --git a/packages/core/rendering/core-rendering-server-internal/src/__snapshots__/rendering_service.test.ts.snap b/src/core/packages/rendering/server-internal/src/__snapshots__/rendering_service.test.ts.snap similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/__snapshots__/rendering_service.test.ts.snap rename to src/core/packages/rendering/server-internal/src/__snapshots__/rendering_service.test.ts.snap diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/__snapshots__/render_template.test.ts.snap b/src/core/packages/rendering/server-internal/src/bootstrap/__snapshots__/render_template.test.ts.snap similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/__snapshots__/render_template.test.ts.snap rename to src/core/packages/rendering/server-internal/src/bootstrap/__snapshots__/render_template.test.ts.snap diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/bootstrap_renderer.test.mocks.ts b/src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.test.mocks.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/bootstrap_renderer.test.mocks.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.test.mocks.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/bootstrap_renderer.test.ts b/src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.test.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/bootstrap_renderer.test.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.test.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/bootstrap_renderer.ts b/src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/bootstrap_renderer.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/bootstrap_renderer.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_js_dependency_paths.test.ts b/src/core/packages/rendering/server-internal/src/bootstrap/get_js_dependency_paths.test.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_js_dependency_paths.test.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/get_js_dependency_paths.test.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_js_dependency_paths.ts b/src/core/packages/rendering/server-internal/src/bootstrap/get_js_dependency_paths.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_js_dependency_paths.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/get_js_dependency_paths.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_plugin_bundle_paths.test.ts b/src/core/packages/rendering/server-internal/src/bootstrap/get_plugin_bundle_paths.test.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_plugin_bundle_paths.test.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/get_plugin_bundle_paths.test.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_plugin_bundle_paths.ts b/src/core/packages/rendering/server-internal/src/bootstrap/get_plugin_bundle_paths.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_plugin_bundle_paths.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/get_plugin_bundle_paths.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.test.ts b/src/core/packages/rendering/server-internal/src/bootstrap/get_theme_tag.test.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.test.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/get_theme_tag.test.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.ts b/src/core/packages/rendering/server-internal/src/bootstrap/get_theme_tag.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/get_theme_tag.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/index.ts b/src/core/packages/rendering/server-internal/src/bootstrap/index.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/index.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/index.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/register_bootstrap_route.test.ts b/src/core/packages/rendering/server-internal/src/bootstrap/register_bootstrap_route.test.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/register_bootstrap_route.test.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/register_bootstrap_route.test.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/register_bootstrap_route.ts b/src/core/packages/rendering/server-internal/src/bootstrap/register_bootstrap_route.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/register_bootstrap_route.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/register_bootstrap_route.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/render_template.test.ts b/src/core/packages/rendering/server-internal/src/bootstrap/render_template.test.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/render_template.test.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/render_template.test.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/render_template.ts b/src/core/packages/rendering/server-internal/src/bootstrap/render_template.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/bootstrap/render_template.ts rename to src/core/packages/rendering/server-internal/src/bootstrap/render_template.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/filter_ui_plugins.test.ts b/src/core/packages/rendering/server-internal/src/filter_ui_plugins.test.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/filter_ui_plugins.test.ts rename to src/core/packages/rendering/server-internal/src/filter_ui_plugins.test.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/filter_ui_plugins.ts b/src/core/packages/rendering/server-internal/src/filter_ui_plugins.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/filter_ui_plugins.ts rename to src/core/packages/rendering/server-internal/src/filter_ui_plugins.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/get_apm_config.test.mocks.ts b/src/core/packages/rendering/server-internal/src/get_apm_config.test.mocks.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/get_apm_config.test.mocks.ts rename to src/core/packages/rendering/server-internal/src/get_apm_config.test.mocks.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/get_apm_config.test.ts b/src/core/packages/rendering/server-internal/src/get_apm_config.test.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/get_apm_config.test.ts rename to src/core/packages/rendering/server-internal/src/get_apm_config.test.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/get_apm_config.ts b/src/core/packages/rendering/server-internal/src/get_apm_config.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/get_apm_config.ts rename to src/core/packages/rendering/server-internal/src/get_apm_config.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/index.ts b/src/core/packages/rendering/server-internal/src/index.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/index.ts rename to src/core/packages/rendering/server-internal/src/index.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/internal_types.ts b/src/core/packages/rendering/server-internal/src/internal_types.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/internal_types.ts rename to src/core/packages/rendering/server-internal/src/internal_types.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/render_utils.test.ts b/src/core/packages/rendering/server-internal/src/render_utils.test.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/render_utils.test.ts rename to src/core/packages/rendering/server-internal/src/render_utils.test.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/render_utils.ts b/src/core/packages/rendering/server-internal/src/render_utils.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/render_utils.ts rename to src/core/packages/rendering/server-internal/src/render_utils.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/rendering_service.test.mocks.ts b/src/core/packages/rendering/server-internal/src/rendering_service.test.mocks.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/rendering_service.test.mocks.ts rename to src/core/packages/rendering/server-internal/src/rendering_service.test.mocks.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/rendering_service.test.ts b/src/core/packages/rendering/server-internal/src/rendering_service.test.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/rendering_service.test.ts rename to src/core/packages/rendering/server-internal/src/rendering_service.test.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/rendering_service.tsx b/src/core/packages/rendering/server-internal/src/rendering_service.tsx similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/rendering_service.tsx rename to src/core/packages/rendering/server-internal/src/rendering_service.tsx diff --git a/packages/core/rendering/core-rendering-server-internal/src/test_helpers/params.ts b/src/core/packages/rendering/server-internal/src/test_helpers/params.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/test_helpers/params.ts rename to src/core/packages/rendering/server-internal/src/test_helpers/params.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/test_helpers/rendering_service.ts b/src/core/packages/rendering/server-internal/src/test_helpers/rendering_service.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/test_helpers/rendering_service.ts rename to src/core/packages/rendering/server-internal/src/test_helpers/rendering_service.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/types.ts b/src/core/packages/rendering/server-internal/src/types.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/types.ts rename to src/core/packages/rendering/server-internal/src/types.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/views/fonts.tsx b/src/core/packages/rendering/server-internal/src/views/fonts.tsx similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/views/fonts.tsx rename to src/core/packages/rendering/server-internal/src/views/fonts.tsx diff --git a/packages/core/rendering/core-rendering-server-internal/src/views/index.ts b/src/core/packages/rendering/server-internal/src/views/index.ts similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/views/index.ts rename to src/core/packages/rendering/server-internal/src/views/index.ts diff --git a/packages/core/rendering/core-rendering-server-internal/src/views/logo.tsx b/src/core/packages/rendering/server-internal/src/views/logo.tsx similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/views/logo.tsx rename to src/core/packages/rendering/server-internal/src/views/logo.tsx diff --git a/packages/core/rendering/core-rendering-server-internal/src/views/styles.tsx b/src/core/packages/rendering/server-internal/src/views/styles.tsx similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/views/styles.tsx rename to src/core/packages/rendering/server-internal/src/views/styles.tsx diff --git a/packages/core/rendering/core-rendering-server-internal/src/views/template.tsx b/src/core/packages/rendering/server-internal/src/views/template.tsx similarity index 100% rename from packages/core/rendering/core-rendering-server-internal/src/views/template.tsx rename to src/core/packages/rendering/server-internal/src/views/template.tsx diff --git a/packages/core/rendering/core-rendering-server-internal/tsconfig.json b/src/core/packages/rendering/server-internal/tsconfig.json similarity index 96% rename from packages/core/rendering/core-rendering-server-internal/tsconfig.json rename to src/core/packages/rendering/server-internal/tsconfig.json index 28a22d3d51ca9..aca7d8f632031 100644 --- a/packages/core/rendering/core-rendering-server-internal/tsconfig.json +++ b/src/core/packages/rendering/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 47f459ec8337b..590a28dbe9df6 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -552,8 +552,8 @@ "@kbn/core-rendering-browser-internal/*": ["src/core/packages/rendering/browser-internal/*"], "@kbn/core-rendering-browser-mocks": ["packages/core/rendering/core-rendering-browser-mocks"], "@kbn/core-rendering-browser-mocks/*": ["packages/core/rendering/core-rendering-browser-mocks/*"], - "@kbn/core-rendering-server-internal": ["packages/core/rendering/core-rendering-server-internal"], - "@kbn/core-rendering-server-internal/*": ["packages/core/rendering/core-rendering-server-internal/*"], + "@kbn/core-rendering-server-internal": ["src/core/packages/rendering/server-internal"], + "@kbn/core-rendering-server-internal/*": ["src/core/packages/rendering/server-internal/*"], "@kbn/core-rendering-server-mocks": ["packages/core/rendering/core-rendering-server-mocks"], "@kbn/core-rendering-server-mocks/*": ["packages/core/rendering/core-rendering-server-mocks/*"], "@kbn/core-root-browser-internal": ["packages/core/root/core-root-browser-internal"], diff --git a/yarn.lock b/yarn.lock index 6ffe684c5e4ca..262618100fe13 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4917,7 +4917,7 @@ version "0.0.0" uid "" -"@kbn/core-rendering-server-internal@link:packages/core/rendering/core-rendering-server-internal": +"@kbn/core-rendering-server-internal@link:src/core/packages/rendering/server-internal": version "0.0.0" uid "" From 56e6002708ef19315f33a010396510bf2b05b15b Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:19:47 +0100 Subject: [PATCH 096/167] Relocating module `@kbn/core-root-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/root/browser-internal}/README.md | 0 .../core/packages/root/browser-internal}/index.ts | 0 .../core/packages/root/browser-internal}/jest.config.js | 4 ++-- .../core/packages/root/browser-internal}/kibana.jsonc | 0 .../core/packages/root/browser-internal}/package.json | 0 .../root/browser-internal}/src/apm_resource_counter.ts | 0 .../packages/root/browser-internal}/src/apm_system.test.ts | 0 .../core/packages/root/browser-internal}/src/apm_system.ts | 0 .../root/browser-internal}/src/core_system.test.mocks.ts | 0 .../packages/root/browser-internal}/src/core_system.test.ts | 0 .../core/packages/root/browser-internal}/src/core_system.ts | 0 .../core/packages/root/browser-internal}/src/events.ts | 0 .../browser-internal}/src/fetch_optional_memory_info.test.ts | 0 .../root/browser-internal}/src/fetch_optional_memory_info.ts | 0 .../core/packages/root/browser-internal}/src/index.ts | 0 .../root/browser-internal}/src/kbn_bootstrap.test.mocks.ts | 0 .../packages/root/browser-internal}/src/kbn_bootstrap.test.ts | 0 .../core/packages/root/browser-internal}/src/kbn_bootstrap.ts | 0 .../core/packages/root/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 23 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/README.md (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/index.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/jest.config.js (84%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/kibana.jsonc (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/package.json (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/src/apm_resource_counter.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/src/apm_system.test.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/src/apm_system.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/src/core_system.test.mocks.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/src/core_system.test.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/src/core_system.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/src/events.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/src/fetch_optional_memory_info.test.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/src/fetch_optional_memory_info.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/src/index.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/src/kbn_bootstrap.test.mocks.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/src/kbn_bootstrap.test.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/src/kbn_bootstrap.ts (100%) rename {packages/core/root/core-root-browser-internal => src/core/packages/root/browser-internal}/tsconfig.json (98%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 40b811fc99775..380c18b217ba5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -103,7 +103,6 @@ packages/core/plugins/core-plugins-server-mocks @elastic/kibana-core packages/core/preboot/core-preboot-server-mocks @elastic/kibana-core packages/core/rendering/core-rendering-browser-mocks @elastic/kibana-core packages/core/rendering/core-rendering-server-mocks @elastic/kibana-core -packages/core/root/core-root-browser-internal @elastic/kibana-core packages/core/root/core-root-server-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-browser @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/preboot/server-internal @elastic/kibana-core src/core/packages/rendering/browser @elastic/kibana-core src/core/packages/rendering/browser-internal @elastic/kibana-core src/core/packages/rendering/server-internal @elastic/kibana-core +src/core/packages/root/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 1ffc7972757cf..cbb101bdff4a0 100644 --- a/package.json +++ b/package.json @@ -365,7 +365,7 @@ "@kbn/core-rendering-browser": "link:src/core/packages/rendering/browser", "@kbn/core-rendering-browser-internal": "link:src/core/packages/rendering/browser-internal", "@kbn/core-rendering-server-internal": "link:src/core/packages/rendering/server-internal", - "@kbn/core-root-browser-internal": "link:packages/core/root/core-root-browser-internal", + "@kbn/core-root-browser-internal": "link:src/core/packages/root/browser-internal", "@kbn/core-root-server-internal": "link:packages/core/root/core-root-server-internal", "@kbn/core-saved-objects-api-browser": "link:packages/core/saved-objects/core-saved-objects-api-browser", "@kbn/core-saved-objects-api-server": "link:packages/core/saved-objects/core-saved-objects-api-server", diff --git a/packages/core/root/core-root-browser-internal/README.md b/src/core/packages/root/browser-internal/README.md similarity index 100% rename from packages/core/root/core-root-browser-internal/README.md rename to src/core/packages/root/browser-internal/README.md diff --git a/packages/core/root/core-root-browser-internal/index.ts b/src/core/packages/root/browser-internal/index.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/index.ts rename to src/core/packages/root/browser-internal/index.ts diff --git a/packages/core/root/core-root-browser-internal/jest.config.js b/src/core/packages/root/browser-internal/jest.config.js similarity index 84% rename from packages/core/root/core-root-browser-internal/jest.config.js rename to src/core/packages/root/browser-internal/jest.config.js index 354b27cceb18a..f819b1b26a00b 100644 --- a/packages/core/root/core-root-browser-internal/jest.config.js +++ b/src/core/packages/root/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/root/core-root-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/root/browser-internal'], }; diff --git a/packages/core/root/core-root-browser-internal/kibana.jsonc b/src/core/packages/root/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/root/core-root-browser-internal/kibana.jsonc rename to src/core/packages/root/browser-internal/kibana.jsonc diff --git a/packages/core/root/core-root-browser-internal/package.json b/src/core/packages/root/browser-internal/package.json similarity index 100% rename from packages/core/root/core-root-browser-internal/package.json rename to src/core/packages/root/browser-internal/package.json diff --git a/packages/core/root/core-root-browser-internal/src/apm_resource_counter.ts b/src/core/packages/root/browser-internal/src/apm_resource_counter.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/src/apm_resource_counter.ts rename to src/core/packages/root/browser-internal/src/apm_resource_counter.ts diff --git a/packages/core/root/core-root-browser-internal/src/apm_system.test.ts b/src/core/packages/root/browser-internal/src/apm_system.test.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/src/apm_system.test.ts rename to src/core/packages/root/browser-internal/src/apm_system.test.ts diff --git a/packages/core/root/core-root-browser-internal/src/apm_system.ts b/src/core/packages/root/browser-internal/src/apm_system.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/src/apm_system.ts rename to src/core/packages/root/browser-internal/src/apm_system.ts diff --git a/packages/core/root/core-root-browser-internal/src/core_system.test.mocks.ts b/src/core/packages/root/browser-internal/src/core_system.test.mocks.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/src/core_system.test.mocks.ts rename to src/core/packages/root/browser-internal/src/core_system.test.mocks.ts diff --git a/packages/core/root/core-root-browser-internal/src/core_system.test.ts b/src/core/packages/root/browser-internal/src/core_system.test.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/src/core_system.test.ts rename to src/core/packages/root/browser-internal/src/core_system.test.ts diff --git a/packages/core/root/core-root-browser-internal/src/core_system.ts b/src/core/packages/root/browser-internal/src/core_system.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/src/core_system.ts rename to src/core/packages/root/browser-internal/src/core_system.ts diff --git a/packages/core/root/core-root-browser-internal/src/events.ts b/src/core/packages/root/browser-internal/src/events.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/src/events.ts rename to src/core/packages/root/browser-internal/src/events.ts diff --git a/packages/core/root/core-root-browser-internal/src/fetch_optional_memory_info.test.ts b/src/core/packages/root/browser-internal/src/fetch_optional_memory_info.test.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/src/fetch_optional_memory_info.test.ts rename to src/core/packages/root/browser-internal/src/fetch_optional_memory_info.test.ts diff --git a/packages/core/root/core-root-browser-internal/src/fetch_optional_memory_info.ts b/src/core/packages/root/browser-internal/src/fetch_optional_memory_info.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/src/fetch_optional_memory_info.ts rename to src/core/packages/root/browser-internal/src/fetch_optional_memory_info.ts diff --git a/packages/core/root/core-root-browser-internal/src/index.ts b/src/core/packages/root/browser-internal/src/index.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/src/index.ts rename to src/core/packages/root/browser-internal/src/index.ts diff --git a/packages/core/root/core-root-browser-internal/src/kbn_bootstrap.test.mocks.ts b/src/core/packages/root/browser-internal/src/kbn_bootstrap.test.mocks.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/src/kbn_bootstrap.test.mocks.ts rename to src/core/packages/root/browser-internal/src/kbn_bootstrap.test.mocks.ts diff --git a/packages/core/root/core-root-browser-internal/src/kbn_bootstrap.test.ts b/src/core/packages/root/browser-internal/src/kbn_bootstrap.test.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/src/kbn_bootstrap.test.ts rename to src/core/packages/root/browser-internal/src/kbn_bootstrap.test.ts diff --git a/packages/core/root/core-root-browser-internal/src/kbn_bootstrap.ts b/src/core/packages/root/browser-internal/src/kbn_bootstrap.ts similarity index 100% rename from packages/core/root/core-root-browser-internal/src/kbn_bootstrap.ts rename to src/core/packages/root/browser-internal/src/kbn_bootstrap.ts diff --git a/packages/core/root/core-root-browser-internal/tsconfig.json b/src/core/packages/root/browser-internal/tsconfig.json similarity index 98% rename from packages/core/root/core-root-browser-internal/tsconfig.json rename to src/core/packages/root/browser-internal/tsconfig.json index 159275fb15012..abd4c3d7a2995 100644 --- a/packages/core/root/core-root-browser-internal/tsconfig.json +++ b/src/core/packages/root/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 590a28dbe9df6..7aaea033c923e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -556,8 +556,8 @@ "@kbn/core-rendering-server-internal/*": ["src/core/packages/rendering/server-internal/*"], "@kbn/core-rendering-server-mocks": ["packages/core/rendering/core-rendering-server-mocks"], "@kbn/core-rendering-server-mocks/*": ["packages/core/rendering/core-rendering-server-mocks/*"], - "@kbn/core-root-browser-internal": ["packages/core/root/core-root-browser-internal"], - "@kbn/core-root-browser-internal/*": ["packages/core/root/core-root-browser-internal/*"], + "@kbn/core-root-browser-internal": ["src/core/packages/root/browser-internal"], + "@kbn/core-root-browser-internal/*": ["src/core/packages/root/browser-internal/*"], "@kbn/core-root-server-internal": ["packages/core/root/core-root-server-internal"], "@kbn/core-root-server-internal/*": ["packages/core/root/core-root-server-internal/*"], "@kbn/core-saved-objects-api-browser": ["packages/core/saved-objects/core-saved-objects-api-browser"], diff --git a/yarn.lock b/yarn.lock index 262618100fe13..977789b1efbb2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4925,7 +4925,7 @@ version "0.0.0" uid "" -"@kbn/core-root-browser-internal@link:packages/core/root/core-root-browser-internal": +"@kbn/core-root-browser-internal@link:src/core/packages/root/browser-internal": version "0.0.0" uid "" From 452dd9370a4c95d8eac1120d5c97615ee269b232 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:20:46 +0100 Subject: [PATCH 097/167] Relocating module `@kbn/core-root-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/root/server-internal}/README.md | 0 .../core/packages/root/server-internal}/index.ts | 0 .../core/packages/root/server-internal}/jest.config.js | 4 ++-- .../core/packages/root/server-internal}/kibana.jsonc | 0 .../core/packages/root/server-internal}/package.json | 0 .../core/packages/root/server-internal}/src/bootstrap.ts | 0 .../core/packages/root/server-internal}/src/constants.ts | 0 .../core/packages/root/server-internal}/src/core_config.ts | 0 .../core/packages/root/server-internal}/src/events/index.ts | 0 .../root/server-internal}/src/events/kibana_started.ts | 0 .../core/packages/root/server-internal}/src/index.ts | 0 .../root/server-internal}/src/register_service_config.ts | 0 .../src/root/__snapshots__/index.test.ts.snap | 0 .../packages/root/server-internal}/src/root/elastic_config.ts | 0 .../root/server-internal}/src/root/index.test.mocks.ts | 0 .../packages/root/server-internal}/src/root/index.test.ts | 0 .../core/packages/root/server-internal}/src/root/index.ts | 0 .../root/server-internal}/src/root/serverless_config.ts | 0 .../packages/root/server-internal}/src/server.test.mocks.ts | 0 .../core/packages/root/server-internal}/src/server.test.ts | 0 .../core/packages/root/server-internal}/src/server.ts | 0 .../core/packages/root/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 26 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/README.md (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/index.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/jest.config.js (84%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/kibana.jsonc (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/package.json (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/bootstrap.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/constants.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/core_config.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/events/index.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/events/kibana_started.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/index.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/register_service_config.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/root/__snapshots__/index.test.ts.snap (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/root/elastic_config.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/root/index.test.mocks.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/root/index.test.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/root/index.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/root/serverless_config.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/server.test.mocks.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/server.test.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/src/server.ts (100%) rename {packages/core/root/core-root-server-internal => src/core/packages/root/server-internal}/tsconfig.json (98%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 380c18b217ba5..0e7d021aa9b3b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -103,7 +103,6 @@ packages/core/plugins/core-plugins-server-mocks @elastic/kibana-core packages/core/preboot/core-preboot-server-mocks @elastic/kibana-core packages/core/rendering/core-rendering-browser-mocks @elastic/kibana-core packages/core/rendering/core-rendering-server-mocks @elastic/kibana-core -packages/core/root/core-root-server-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-browser @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/rendering/browser @elastic/kibana-core src/core/packages/rendering/browser-internal @elastic/kibana-core src/core/packages/rendering/server-internal @elastic/kibana-core src/core/packages/root/browser-internal @elastic/kibana-core +src/core/packages/root/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index cbb101bdff4a0..63cf02b0e6ecb 100644 --- a/package.json +++ b/package.json @@ -366,7 +366,7 @@ "@kbn/core-rendering-browser-internal": "link:src/core/packages/rendering/browser-internal", "@kbn/core-rendering-server-internal": "link:src/core/packages/rendering/server-internal", "@kbn/core-root-browser-internal": "link:src/core/packages/root/browser-internal", - "@kbn/core-root-server-internal": "link:packages/core/root/core-root-server-internal", + "@kbn/core-root-server-internal": "link:src/core/packages/root/server-internal", "@kbn/core-saved-objects-api-browser": "link:packages/core/saved-objects/core-saved-objects-api-browser", "@kbn/core-saved-objects-api-server": "link:packages/core/saved-objects/core-saved-objects-api-server", "@kbn/core-saved-objects-api-server-internal": "link:packages/core/saved-objects/core-saved-objects-api-server-internal", diff --git a/packages/core/root/core-root-server-internal/README.md b/src/core/packages/root/server-internal/README.md similarity index 100% rename from packages/core/root/core-root-server-internal/README.md rename to src/core/packages/root/server-internal/README.md diff --git a/packages/core/root/core-root-server-internal/index.ts b/src/core/packages/root/server-internal/index.ts similarity index 100% rename from packages/core/root/core-root-server-internal/index.ts rename to src/core/packages/root/server-internal/index.ts diff --git a/packages/core/root/core-root-server-internal/jest.config.js b/src/core/packages/root/server-internal/jest.config.js similarity index 84% rename from packages/core/root/core-root-server-internal/jest.config.js rename to src/core/packages/root/server-internal/jest.config.js index 3bdb94443629c..a9ace28a9b0a6 100644 --- a/packages/core/root/core-root-server-internal/jest.config.js +++ b/src/core/packages/root/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/root/core-root-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/root/server-internal'], }; diff --git a/packages/core/root/core-root-server-internal/kibana.jsonc b/src/core/packages/root/server-internal/kibana.jsonc similarity index 100% rename from packages/core/root/core-root-server-internal/kibana.jsonc rename to src/core/packages/root/server-internal/kibana.jsonc diff --git a/packages/core/root/core-root-server-internal/package.json b/src/core/packages/root/server-internal/package.json similarity index 100% rename from packages/core/root/core-root-server-internal/package.json rename to src/core/packages/root/server-internal/package.json diff --git a/packages/core/root/core-root-server-internal/src/bootstrap.ts b/src/core/packages/root/server-internal/src/bootstrap.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/bootstrap.ts rename to src/core/packages/root/server-internal/src/bootstrap.ts diff --git a/packages/core/root/core-root-server-internal/src/constants.ts b/src/core/packages/root/server-internal/src/constants.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/constants.ts rename to src/core/packages/root/server-internal/src/constants.ts diff --git a/packages/core/root/core-root-server-internal/src/core_config.ts b/src/core/packages/root/server-internal/src/core_config.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/core_config.ts rename to src/core/packages/root/server-internal/src/core_config.ts diff --git a/packages/core/root/core-root-server-internal/src/events/index.ts b/src/core/packages/root/server-internal/src/events/index.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/events/index.ts rename to src/core/packages/root/server-internal/src/events/index.ts diff --git a/packages/core/root/core-root-server-internal/src/events/kibana_started.ts b/src/core/packages/root/server-internal/src/events/kibana_started.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/events/kibana_started.ts rename to src/core/packages/root/server-internal/src/events/kibana_started.ts diff --git a/packages/core/root/core-root-server-internal/src/index.ts b/src/core/packages/root/server-internal/src/index.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/index.ts rename to src/core/packages/root/server-internal/src/index.ts diff --git a/packages/core/root/core-root-server-internal/src/register_service_config.ts b/src/core/packages/root/server-internal/src/register_service_config.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/register_service_config.ts rename to src/core/packages/root/server-internal/src/register_service_config.ts diff --git a/packages/core/root/core-root-server-internal/src/root/__snapshots__/index.test.ts.snap b/src/core/packages/root/server-internal/src/root/__snapshots__/index.test.ts.snap similarity index 100% rename from packages/core/root/core-root-server-internal/src/root/__snapshots__/index.test.ts.snap rename to src/core/packages/root/server-internal/src/root/__snapshots__/index.test.ts.snap diff --git a/packages/core/root/core-root-server-internal/src/root/elastic_config.ts b/src/core/packages/root/server-internal/src/root/elastic_config.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/root/elastic_config.ts rename to src/core/packages/root/server-internal/src/root/elastic_config.ts diff --git a/packages/core/root/core-root-server-internal/src/root/index.test.mocks.ts b/src/core/packages/root/server-internal/src/root/index.test.mocks.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/root/index.test.mocks.ts rename to src/core/packages/root/server-internal/src/root/index.test.mocks.ts diff --git a/packages/core/root/core-root-server-internal/src/root/index.test.ts b/src/core/packages/root/server-internal/src/root/index.test.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/root/index.test.ts rename to src/core/packages/root/server-internal/src/root/index.test.ts diff --git a/packages/core/root/core-root-server-internal/src/root/index.ts b/src/core/packages/root/server-internal/src/root/index.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/root/index.ts rename to src/core/packages/root/server-internal/src/root/index.ts diff --git a/packages/core/root/core-root-server-internal/src/root/serverless_config.ts b/src/core/packages/root/server-internal/src/root/serverless_config.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/root/serverless_config.ts rename to src/core/packages/root/server-internal/src/root/serverless_config.ts diff --git a/packages/core/root/core-root-server-internal/src/server.test.mocks.ts b/src/core/packages/root/server-internal/src/server.test.mocks.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/server.test.mocks.ts rename to src/core/packages/root/server-internal/src/server.test.mocks.ts diff --git a/packages/core/root/core-root-server-internal/src/server.test.ts b/src/core/packages/root/server-internal/src/server.test.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/server.test.ts rename to src/core/packages/root/server-internal/src/server.test.ts diff --git a/packages/core/root/core-root-server-internal/src/server.ts b/src/core/packages/root/server-internal/src/server.ts similarity index 100% rename from packages/core/root/core-root-server-internal/src/server.ts rename to src/core/packages/root/server-internal/src/server.ts diff --git a/packages/core/root/core-root-server-internal/tsconfig.json b/src/core/packages/root/server-internal/tsconfig.json similarity index 98% rename from packages/core/root/core-root-server-internal/tsconfig.json rename to src/core/packages/root/server-internal/tsconfig.json index 843a701db807b..7fbaf2274b6cf 100644 --- a/packages/core/root/core-root-server-internal/tsconfig.json +++ b/src/core/packages/root/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 7aaea033c923e..974d9f725668a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -558,8 +558,8 @@ "@kbn/core-rendering-server-mocks/*": ["packages/core/rendering/core-rendering-server-mocks/*"], "@kbn/core-root-browser-internal": ["src/core/packages/root/browser-internal"], "@kbn/core-root-browser-internal/*": ["src/core/packages/root/browser-internal/*"], - "@kbn/core-root-server-internal": ["packages/core/root/core-root-server-internal"], - "@kbn/core-root-server-internal/*": ["packages/core/root/core-root-server-internal/*"], + "@kbn/core-root-server-internal": ["src/core/packages/root/server-internal"], + "@kbn/core-root-server-internal/*": ["src/core/packages/root/server-internal/*"], "@kbn/core-saved-objects-api-browser": ["packages/core/saved-objects/core-saved-objects-api-browser"], "@kbn/core-saved-objects-api-browser/*": ["packages/core/saved-objects/core-saved-objects-api-browser/*"], "@kbn/core-saved-objects-api-server": ["packages/core/saved-objects/core-saved-objects-api-server"], diff --git a/yarn.lock b/yarn.lock index 977789b1efbb2..56cecec655275 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4929,7 +4929,7 @@ version "0.0.0" uid "" -"@kbn/core-root-server-internal@link:packages/core/root/core-root-server-internal": +"@kbn/core-root-server-internal@link:src/core/packages/root/server-internal": version "0.0.0" uid "" From e58c4f4f8e0306a444d31e74c7f95cd7ebae24b3 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:21:48 +0100 Subject: [PATCH 098/167] Relocating module `@kbn/core-saved-objects-api-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/saved-objects/api-browser}/README.md | 0 .../core/packages/saved-objects/api-browser}/index.ts | 0 .../core/packages/saved-objects/api-browser}/jest.config.js | 4 ++-- .../core/packages/saved-objects/api-browser}/kibana.jsonc | 0 .../core/packages/saved-objects/api-browser}/package.json | 0 .../core/packages/saved-objects/api-browser}/src/apis/base.ts | 0 .../saved-objects/api-browser}/src/apis/bulk_create.ts | 0 .../saved-objects/api-browser}/src/apis/bulk_delete.ts | 0 .../saved-objects/api-browser}/src/apis/bulk_resolve.ts | 0 .../saved-objects/api-browser}/src/apis/bulk_update.ts | 0 .../packages/saved-objects/api-browser}/src/apis/create.ts | 0 .../packages/saved-objects/api-browser}/src/apis/delete.ts | 0 .../core/packages/saved-objects/api-browser}/src/apis/find.ts | 0 .../packages/saved-objects/api-browser}/src/apis/index.ts | 0 .../packages/saved-objects/api-browser}/src/apis/resolve.ts | 0 .../packages/saved-objects/api-browser}/src/apis/update.ts | 0 .../saved-objects/api-browser}/src/saved_objects_client.ts | 0 .../saved-objects/api-browser}/src/simple_saved_object.ts | 0 .../core/packages/saved-objects/api-browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 23 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/README.md (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/jest.config.js (82%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/kibana.jsonc (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/package.json (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/src/apis/base.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/src/apis/bulk_create.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/src/apis/bulk_delete.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/src/apis/bulk_resolve.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/src/apis/bulk_update.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/src/apis/create.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/src/apis/delete.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/src/apis/find.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/src/apis/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/src/apis/resolve.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/src/apis/update.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/src/saved_objects_client.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/src/simple_saved_object.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-browser => src/core/packages/saved-objects/api-browser}/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0e7d021aa9b3b..4520dc44cd02d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -103,7 +103,6 @@ packages/core/plugins/core-plugins-server-mocks @elastic/kibana-core packages/core/preboot/core-preboot-server-mocks @elastic/kibana-core packages/core/rendering/core-rendering-browser-mocks @elastic/kibana-core packages/core/rendering/core-rendering-server-mocks @elastic/kibana-core -packages/core/saved-objects/core-saved-objects-api-browser @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/rendering/browser-internal @elastic/kibana-core src/core/packages/rendering/server-internal @elastic/kibana-core src/core/packages/root/browser-internal @elastic/kibana-core src/core/packages/root/server-internal @elastic/kibana-core +src/core/packages/saved-objects/api-browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 63cf02b0e6ecb..c827678974698 100644 --- a/package.json +++ b/package.json @@ -367,7 +367,7 @@ "@kbn/core-rendering-server-internal": "link:src/core/packages/rendering/server-internal", "@kbn/core-root-browser-internal": "link:src/core/packages/root/browser-internal", "@kbn/core-root-server-internal": "link:src/core/packages/root/server-internal", - "@kbn/core-saved-objects-api-browser": "link:packages/core/saved-objects/core-saved-objects-api-browser", + "@kbn/core-saved-objects-api-browser": "link:src/core/packages/saved-objects/api-browser", "@kbn/core-saved-objects-api-server": "link:packages/core/saved-objects/core-saved-objects-api-server", "@kbn/core-saved-objects-api-server-internal": "link:packages/core/saved-objects/core-saved-objects-api-server-internal", "@kbn/core-saved-objects-base-server-internal": "link:packages/core/saved-objects/core-saved-objects-base-server-internal", diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/README.md b/src/core/packages/saved-objects/api-browser/README.md similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/README.md rename to src/core/packages/saved-objects/api-browser/README.md diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/index.ts b/src/core/packages/saved-objects/api-browser/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/index.ts rename to src/core/packages/saved-objects/api-browser/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/jest.config.js b/src/core/packages/saved-objects/api-browser/jest.config.js similarity index 82% rename from packages/core/saved-objects/core-saved-objects-api-browser/jest.config.js rename to src/core/packages/saved-objects/api-browser/jest.config.js index fe9cc7e366f24..2333ba74b821a 100644 --- a/packages/core/saved-objects/core-saved-objects-api-browser/jest.config.js +++ b/src/core/packages/saved-objects/api-browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/saved-objects/core-saved-objects-api-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/saved-objects/api-browser'], }; diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/kibana.jsonc b/src/core/packages/saved-objects/api-browser/kibana.jsonc similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/kibana.jsonc rename to src/core/packages/saved-objects/api-browser/kibana.jsonc diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/package.json b/src/core/packages/saved-objects/api-browser/package.json similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/package.json rename to src/core/packages/saved-objects/api-browser/package.json diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/src/apis/base.ts b/src/core/packages/saved-objects/api-browser/src/apis/base.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/src/apis/base.ts rename to src/core/packages/saved-objects/api-browser/src/apis/base.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/src/apis/bulk_create.ts b/src/core/packages/saved-objects/api-browser/src/apis/bulk_create.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/src/apis/bulk_create.ts rename to src/core/packages/saved-objects/api-browser/src/apis/bulk_create.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/src/apis/bulk_delete.ts b/src/core/packages/saved-objects/api-browser/src/apis/bulk_delete.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/src/apis/bulk_delete.ts rename to src/core/packages/saved-objects/api-browser/src/apis/bulk_delete.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/src/apis/bulk_resolve.ts b/src/core/packages/saved-objects/api-browser/src/apis/bulk_resolve.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/src/apis/bulk_resolve.ts rename to src/core/packages/saved-objects/api-browser/src/apis/bulk_resolve.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/src/apis/bulk_update.ts b/src/core/packages/saved-objects/api-browser/src/apis/bulk_update.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/src/apis/bulk_update.ts rename to src/core/packages/saved-objects/api-browser/src/apis/bulk_update.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/src/apis/create.ts b/src/core/packages/saved-objects/api-browser/src/apis/create.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/src/apis/create.ts rename to src/core/packages/saved-objects/api-browser/src/apis/create.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/src/apis/delete.ts b/src/core/packages/saved-objects/api-browser/src/apis/delete.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/src/apis/delete.ts rename to src/core/packages/saved-objects/api-browser/src/apis/delete.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/src/apis/find.ts b/src/core/packages/saved-objects/api-browser/src/apis/find.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/src/apis/find.ts rename to src/core/packages/saved-objects/api-browser/src/apis/find.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/src/apis/index.ts b/src/core/packages/saved-objects/api-browser/src/apis/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/src/apis/index.ts rename to src/core/packages/saved-objects/api-browser/src/apis/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/src/apis/resolve.ts b/src/core/packages/saved-objects/api-browser/src/apis/resolve.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/src/apis/resolve.ts rename to src/core/packages/saved-objects/api-browser/src/apis/resolve.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/src/apis/update.ts b/src/core/packages/saved-objects/api-browser/src/apis/update.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/src/apis/update.ts rename to src/core/packages/saved-objects/api-browser/src/apis/update.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/src/saved_objects_client.ts b/src/core/packages/saved-objects/api-browser/src/saved_objects_client.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/src/saved_objects_client.ts rename to src/core/packages/saved-objects/api-browser/src/saved_objects_client.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/src/simple_saved_object.ts b/src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-browser/src/simple_saved_object.ts rename to src/core/packages/saved-objects/api-browser/src/simple_saved_object.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/tsconfig.json b/src/core/packages/saved-objects/api-browser/tsconfig.json similarity index 85% rename from packages/core/saved-objects/core-saved-objects-api-browser/tsconfig.json rename to src/core/packages/saved-objects/api-browser/tsconfig.json index 5d64239e4a8f3..53670789e6836 100644 --- a/packages/core/saved-objects/core-saved-objects-api-browser/tsconfig.json +++ b/src/core/packages/saved-objects/api-browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 974d9f725668a..418e203aff23c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -560,8 +560,8 @@ "@kbn/core-root-browser-internal/*": ["src/core/packages/root/browser-internal/*"], "@kbn/core-root-server-internal": ["src/core/packages/root/server-internal"], "@kbn/core-root-server-internal/*": ["src/core/packages/root/server-internal/*"], - "@kbn/core-saved-objects-api-browser": ["packages/core/saved-objects/core-saved-objects-api-browser"], - "@kbn/core-saved-objects-api-browser/*": ["packages/core/saved-objects/core-saved-objects-api-browser/*"], + "@kbn/core-saved-objects-api-browser": ["src/core/packages/saved-objects/api-browser"], + "@kbn/core-saved-objects-api-browser/*": ["src/core/packages/saved-objects/api-browser/*"], "@kbn/core-saved-objects-api-server": ["packages/core/saved-objects/core-saved-objects-api-server"], "@kbn/core-saved-objects-api-server/*": ["packages/core/saved-objects/core-saved-objects-api-server/*"], "@kbn/core-saved-objects-api-server-internal": ["packages/core/saved-objects/core-saved-objects-api-server-internal"], diff --git a/yarn.lock b/yarn.lock index 56cecec655275..07105c0e47808 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4933,7 +4933,7 @@ version "0.0.0" uid "" -"@kbn/core-saved-objects-api-browser@link:packages/core/saved-objects/core-saved-objects-api-browser": +"@kbn/core-saved-objects-api-browser@link:src/core/packages/saved-objects/api-browser": version "0.0.0" uid "" From be987cebe19b0bea60d1b61631c097017d1be4fc Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:22:48 +0100 Subject: [PATCH 099/167] Relocating module `@kbn/core-saved-objects-api-server` --- .github/CODEOWNERS | 2 +- docs/developer/advanced/sharing-saved-objects.asciidoc | 4 ++-- .../architecture/core/patterns-scoped-services.asciidoc | 2 +- package.json | 2 +- .../core/packages/saved-objects/api-server}/README.md | 0 .../core/packages/saved-objects/api-server}/index.ts | 0 .../core/packages/saved-objects/api-server}/jest.config.js | 4 ++-- .../core/packages/saved-objects/api-server}/kibana.jsonc | 0 .../core/packages/saved-objects/api-server}/package.json | 0 .../core/packages/saved-objects/api-server}/src/apis/base.ts | 0 .../saved-objects/api-server}/src/apis/bulk_create.ts | 0 .../saved-objects/api-server}/src/apis/bulk_delete.ts | 0 .../packages/saved-objects/api-server}/src/apis/bulk_get.ts | 0 .../saved-objects/api-server}/src/apis/bulk_resolve.ts | 0 .../saved-objects/api-server}/src/apis/bulk_update.ts | 0 .../saved-objects/api-server}/src/apis/check_conflicts.ts | 0 .../saved-objects/api-server}/src/apis/close_point_in_time.ts | 0 .../api-server}/src/apis/collect_multinamespace_references.ts | 0 .../packages/saved-objects/api-server}/src/apis/create.ts | 0 .../api-server}/src/apis/create_point_in_time_finder.ts | 0 .../packages/saved-objects/api-server}/src/apis/delete.ts | 0 .../saved-objects/api-server}/src/apis/delete_by_namespace.ts | 0 .../core/packages/saved-objects/api-server}/src/apis/find.ts | 0 .../core/packages/saved-objects/api-server}/src/apis/get.ts | 0 .../saved-objects/api-server}/src/apis/increment_counter.ts | 0 .../core/packages/saved-objects/api-server}/src/apis/index.ts | 0 .../api-server}/src/apis/open_point_in_time_for_type.ts | 0 .../api-server}/src/apis/remove_references_to.ts | 0 .../packages/saved-objects/api-server}/src/apis/resolve.ts | 0 .../packages/saved-objects/api-server}/src/apis/update.ts | 0 .../api-server}/src/apis/update_objects_spaces.ts | 0 .../saved-objects/api-server}/src/saved_objects_client.ts | 0 .../saved-objects/api-server}/src/saved_objects_repository.ts | 0 .../core/packages/saved-objects/api-server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- .../plugins/shared/fleet/server/services/debug/index.ts | 2 +- yarn.lock | 2 +- 37 files changed, 12 insertions(+), 12 deletions(-) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/README.md (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/jest.config.js (82%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/kibana.jsonc (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/package.json (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/base.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/bulk_create.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/bulk_delete.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/bulk_get.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/bulk_resolve.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/bulk_update.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/check_conflicts.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/close_point_in_time.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/collect_multinamespace_references.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/create.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/create_point_in_time_finder.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/delete.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/delete_by_namespace.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/find.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/get.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/increment_counter.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/open_point_in_time_for_type.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/remove_references_to.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/resolve.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/update.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/apis/update_objects_spaces.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/saved_objects_client.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/src/saved_objects_repository.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server => src/core/packages/saved-objects/api-server}/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4520dc44cd02d..ad4e997e6aea8 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -103,7 +103,6 @@ packages/core/plugins/core-plugins-server-mocks @elastic/kibana-core packages/core/preboot/core-preboot-server-mocks @elastic/kibana-core packages/core/rendering/core-rendering-browser-mocks @elastic/kibana-core packages/core/rendering/core-rendering-server-mocks @elastic/kibana-core -packages/core/saved-objects/core-saved-objects-api-server @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-base-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/rendering/server-internal @elastic/kibana-core src/core/packages/root/browser-internal @elastic/kibana-core src/core/packages/root/server-internal @elastic/kibana-core src/core/packages/saved-objects/api-browser @elastic/kibana-core +src/core/packages/saved-objects/api-server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/docs/developer/advanced/sharing-saved-objects.asciidoc b/docs/developer/advanced/sharing-saved-objects.asciidoc index 7ec6ba857fed8..46c9a0b70829c 100644 --- a/docs/developer/advanced/sharing-saved-objects.asciidoc +++ b/docs/developer/advanced/sharing-saved-objects.asciidoc @@ -166,7 +166,7 @@ const savedObject = resolveResult.saved_object; TIP: See an example of this in https://github.com/elastic/kibana/pull/107256#user-content-example-steps[step 2 of the POC]! The -{kib-repo}blob/{branch}/packages/core/saved-objects/core-saved-objects-api-server/src/apis/resolve.ts[SavedObjectsResolveResponse +{kib-repo}blob/{branch}/src/core/packages/saved-objects/api-server/src/apis/resolve.ts[SavedObjectsResolveResponse interface] has four fields, summarized below: * `saved_object` - The saved object that was found. @@ -373,7 +373,7 @@ image::images/sharing-saved-objects-step-6.png["Sharing Saved Objects registrati > *Update saved object delete API usage to handle multiple spaces* If an object is shared to multiple spaces, it cannot be deleted without using the -{kib-repo}blob/{branch}/packages/core/saved-objects/core-saved-objects-api-server/src/apis/delete.ts[`force` +{kib-repo}blob/{branch}/src/core/packages/saved-objects/api-server/src/apis/delete.ts[`force` delete option]. You should always be aware when a saved object exists in multiple spaces, and you should warn users in that case. If your UI allows users to delete your objects, you can define a warning message like this: diff --git a/docs/developer/architecture/core/patterns-scoped-services.asciidoc b/docs/developer/architecture/core/patterns-scoped-services.asciidoc index 94ea598850b84..51b6ecba5cdbe 100644 --- a/docs/developer/architecture/core/patterns-scoped-services.asciidoc +++ b/docs/developer/architecture/core/patterns-scoped-services.asciidoc @@ -18,7 +18,7 @@ async function handler(context, req, res) { The {kib-repo}/blob/8.9/src/core/packages/http/server/src/router/request_handler.ts[request handler context] exposes the following scoped *core* services: -* {kib-repo}/blob/8.9/packages/core/saved-objects/core-saved-objects-api-server/src/saved_objects_client.ts[`context.savedObjects.client`] +* {kib-repo}/blob/8.9/src/core/packages/saved-objects/api-server/src/saved_objects_client.ts[`context.savedObjects.client`] * {kib-repo}/blob/8.9/src/core/packages/elasticsearch/server/src/client/scoped_cluster_client.ts[`context.elasticsearch.client`] * {kib-repo}/blob/8.9/packages/core/ui-settings/core-ui-settings-server/src/ui_settings_client.ts[`context.uiSettings.client`] diff --git a/package.json b/package.json index c827678974698..5ffd2895bc5f4 100644 --- a/package.json +++ b/package.json @@ -368,7 +368,7 @@ "@kbn/core-root-browser-internal": "link:src/core/packages/root/browser-internal", "@kbn/core-root-server-internal": "link:src/core/packages/root/server-internal", "@kbn/core-saved-objects-api-browser": "link:src/core/packages/saved-objects/api-browser", - "@kbn/core-saved-objects-api-server": "link:packages/core/saved-objects/core-saved-objects-api-server", + "@kbn/core-saved-objects-api-server": "link:src/core/packages/saved-objects/api-server", "@kbn/core-saved-objects-api-server-internal": "link:packages/core/saved-objects/core-saved-objects-api-server-internal", "@kbn/core-saved-objects-base-server-internal": "link:packages/core/saved-objects/core-saved-objects-base-server-internal", "@kbn/core-saved-objects-browser": "link:packages/core/saved-objects/core-saved-objects-browser", diff --git a/packages/core/saved-objects/core-saved-objects-api-server/README.md b/src/core/packages/saved-objects/api-server/README.md similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/README.md rename to src/core/packages/saved-objects/api-server/README.md diff --git a/packages/core/saved-objects/core-saved-objects-api-server/index.ts b/src/core/packages/saved-objects/api-server/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/index.ts rename to src/core/packages/saved-objects/api-server/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/jest.config.js b/src/core/packages/saved-objects/api-server/jest.config.js similarity index 82% rename from packages/core/saved-objects/core-saved-objects-api-server/jest.config.js rename to src/core/packages/saved-objects/api-server/jest.config.js index 9851e9c771715..f1724f3a65e80 100644 --- a/packages/core/saved-objects/core-saved-objects-api-server/jest.config.js +++ b/src/core/packages/saved-objects/api-server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/saved-objects/core-saved-objects-api-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/saved-objects/api-server'], }; diff --git a/packages/core/saved-objects/core-saved-objects-api-server/kibana.jsonc b/src/core/packages/saved-objects/api-server/kibana.jsonc similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/kibana.jsonc rename to src/core/packages/saved-objects/api-server/kibana.jsonc diff --git a/packages/core/saved-objects/core-saved-objects-api-server/package.json b/src/core/packages/saved-objects/api-server/package.json similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/package.json rename to src/core/packages/saved-objects/api-server/package.json diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/base.ts b/src/core/packages/saved-objects/api-server/src/apis/base.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/base.ts rename to src/core/packages/saved-objects/api-server/src/apis/base.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/bulk_create.ts b/src/core/packages/saved-objects/api-server/src/apis/bulk_create.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/bulk_create.ts rename to src/core/packages/saved-objects/api-server/src/apis/bulk_create.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/bulk_delete.ts b/src/core/packages/saved-objects/api-server/src/apis/bulk_delete.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/bulk_delete.ts rename to src/core/packages/saved-objects/api-server/src/apis/bulk_delete.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/bulk_get.ts b/src/core/packages/saved-objects/api-server/src/apis/bulk_get.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/bulk_get.ts rename to src/core/packages/saved-objects/api-server/src/apis/bulk_get.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/bulk_resolve.ts b/src/core/packages/saved-objects/api-server/src/apis/bulk_resolve.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/bulk_resolve.ts rename to src/core/packages/saved-objects/api-server/src/apis/bulk_resolve.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/bulk_update.ts b/src/core/packages/saved-objects/api-server/src/apis/bulk_update.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/bulk_update.ts rename to src/core/packages/saved-objects/api-server/src/apis/bulk_update.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/check_conflicts.ts b/src/core/packages/saved-objects/api-server/src/apis/check_conflicts.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/check_conflicts.ts rename to src/core/packages/saved-objects/api-server/src/apis/check_conflicts.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/close_point_in_time.ts b/src/core/packages/saved-objects/api-server/src/apis/close_point_in_time.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/close_point_in_time.ts rename to src/core/packages/saved-objects/api-server/src/apis/close_point_in_time.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/collect_multinamespace_references.ts b/src/core/packages/saved-objects/api-server/src/apis/collect_multinamespace_references.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/collect_multinamespace_references.ts rename to src/core/packages/saved-objects/api-server/src/apis/collect_multinamespace_references.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/create.ts b/src/core/packages/saved-objects/api-server/src/apis/create.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/create.ts rename to src/core/packages/saved-objects/api-server/src/apis/create.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/create_point_in_time_finder.ts b/src/core/packages/saved-objects/api-server/src/apis/create_point_in_time_finder.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/create_point_in_time_finder.ts rename to src/core/packages/saved-objects/api-server/src/apis/create_point_in_time_finder.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/delete.ts b/src/core/packages/saved-objects/api-server/src/apis/delete.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/delete.ts rename to src/core/packages/saved-objects/api-server/src/apis/delete.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/delete_by_namespace.ts b/src/core/packages/saved-objects/api-server/src/apis/delete_by_namespace.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/delete_by_namespace.ts rename to src/core/packages/saved-objects/api-server/src/apis/delete_by_namespace.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/find.ts b/src/core/packages/saved-objects/api-server/src/apis/find.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/find.ts rename to src/core/packages/saved-objects/api-server/src/apis/find.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/get.ts b/src/core/packages/saved-objects/api-server/src/apis/get.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/get.ts rename to src/core/packages/saved-objects/api-server/src/apis/get.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/increment_counter.ts b/src/core/packages/saved-objects/api-server/src/apis/increment_counter.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/increment_counter.ts rename to src/core/packages/saved-objects/api-server/src/apis/increment_counter.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/index.ts b/src/core/packages/saved-objects/api-server/src/apis/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/index.ts rename to src/core/packages/saved-objects/api-server/src/apis/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/open_point_in_time_for_type.ts b/src/core/packages/saved-objects/api-server/src/apis/open_point_in_time_for_type.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/open_point_in_time_for_type.ts rename to src/core/packages/saved-objects/api-server/src/apis/open_point_in_time_for_type.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/remove_references_to.ts b/src/core/packages/saved-objects/api-server/src/apis/remove_references_to.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/remove_references_to.ts rename to src/core/packages/saved-objects/api-server/src/apis/remove_references_to.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/resolve.ts b/src/core/packages/saved-objects/api-server/src/apis/resolve.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/resolve.ts rename to src/core/packages/saved-objects/api-server/src/apis/resolve.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/update.ts b/src/core/packages/saved-objects/api-server/src/apis/update.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/update.ts rename to src/core/packages/saved-objects/api-server/src/apis/update.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/apis/update_objects_spaces.ts b/src/core/packages/saved-objects/api-server/src/apis/update_objects_spaces.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/apis/update_objects_spaces.ts rename to src/core/packages/saved-objects/api-server/src/apis/update_objects_spaces.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/saved_objects_client.ts b/src/core/packages/saved-objects/api-server/src/saved_objects_client.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/saved_objects_client.ts rename to src/core/packages/saved-objects/api-server/src/saved_objects_client.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/src/saved_objects_repository.ts b/src/core/packages/saved-objects/api-server/src/saved_objects_repository.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server/src/saved_objects_repository.ts rename to src/core/packages/saved-objects/api-server/src/saved_objects_repository.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server/tsconfig.json b/src/core/packages/saved-objects/api-server/tsconfig.json similarity index 83% rename from packages/core/saved-objects/core-saved-objects-api-server/tsconfig.json rename to src/core/packages/saved-objects/api-server/tsconfig.json index c091f255cbd21..05fb8dd8c3f30 100644 --- a/packages/core/saved-objects/core-saved-objects-api-server/tsconfig.json +++ b/src/core/packages/saved-objects/api-server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 418e203aff23c..301d47fb4a962 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -562,8 +562,8 @@ "@kbn/core-root-server-internal/*": ["src/core/packages/root/server-internal/*"], "@kbn/core-saved-objects-api-browser": ["src/core/packages/saved-objects/api-browser"], "@kbn/core-saved-objects-api-browser/*": ["src/core/packages/saved-objects/api-browser/*"], - "@kbn/core-saved-objects-api-server": ["packages/core/saved-objects/core-saved-objects-api-server"], - "@kbn/core-saved-objects-api-server/*": ["packages/core/saved-objects/core-saved-objects-api-server/*"], + "@kbn/core-saved-objects-api-server": ["src/core/packages/saved-objects/api-server"], + "@kbn/core-saved-objects-api-server/*": ["src/core/packages/saved-objects/api-server/*"], "@kbn/core-saved-objects-api-server-internal": ["packages/core/saved-objects/core-saved-objects-api-server-internal"], "@kbn/core-saved-objects-api-server-internal/*": ["packages/core/saved-objects/core-saved-objects-api-server-internal/*"], "@kbn/core-saved-objects-api-server-mocks": ["packages/core/saved-objects/core-saved-objects-api-server-mocks"], diff --git a/x-pack/platform/plugins/shared/fleet/server/services/debug/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/debug/index.ts index b0e9d7167f1a4..d1239861b33f9 100644 --- a/x-pack/platform/plugins/shared/fleet/server/services/debug/index.ts +++ b/x-pack/platform/plugins/shared/fleet/server/services/debug/index.ts @@ -28,7 +28,7 @@ export async function fetchSavedObjectNames(soClient: SavedObjectsClientContract type, aggs: { names: { - terms: { field: `${type}.attributes.name` }, // cf. SavedObjectsFindOptions definition in packages/core/saved-objects/core-saved-objects-api-server/src/apis/find.ts + terms: { field: `${type}.attributes.name` }, // cf. SavedObjectsFindOptions definition in src/core/packages/saved-objects/api-server/src/apis/find.ts }, }, }); diff --git a/yarn.lock b/yarn.lock index 07105c0e47808..777d3a14d8313 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4945,7 +4945,7 @@ version "0.0.0" uid "" -"@kbn/core-saved-objects-api-server@link:packages/core/saved-objects/core-saved-objects-api-server": +"@kbn/core-saved-objects-api-server@link:src/core/packages/saved-objects/api-server": version "0.0.0" uid "" From 51dfea613f008ddbf592a6e44174b8fc6d31ed12 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:23:43 +0100 Subject: [PATCH 100/167] Relocating module `@kbn/core-saved-objects-api-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/saved-objects/api-server-internal}/README.md | 0 .../core/packages/saved-objects/api-server-internal}/index.ts | 0 .../saved-objects/api-server-internal}/jest.config.js | 4 ++-- .../packages/saved-objects/api-server-internal}/kibana.jsonc | 0 .../packages/saved-objects/api-server-internal}/package.json | 0 .../packages/saved-objects/api-server-internal}/src/index.ts | 0 .../api-server-internal}/src/lib/apis/bulk_create.test.ts | 0 .../api-server-internal}/src/lib/apis/bulk_create.ts | 0 .../api-server-internal}/src/lib/apis/bulk_delete.test.ts | 0 .../api-server-internal}/src/lib/apis/bulk_delete.ts | 0 .../src/lib/apis/bulk_get.isolated.test.mocks.ts | 0 .../src/lib/apis/bulk_get.isolated.test.ts | 0 .../api-server-internal}/src/lib/apis/bulk_get.test.ts | 0 .../api-server-internal}/src/lib/apis/bulk_get.ts | 0 .../api-server-internal}/src/lib/apis/bulk_resolve.test.ts | 0 .../api-server-internal}/src/lib/apis/bulk_resolve.ts | 0 .../api-server-internal}/src/lib/apis/bulk_update.test.ts | 0 .../api-server-internal}/src/lib/apis/bulk_update.ts | 0 .../api-server-internal}/src/lib/apis/check_conflicts.test.ts | 0 .../api-server-internal}/src/lib/apis/check_conflicts.ts | 0 .../src/lib/apis/collect_multinamespace_references.test.ts | 0 .../src/lib/apis/collect_multinamespaces_references.ts | 0 .../api-server-internal}/src/lib/apis/create.test.ts | 0 .../saved-objects/api-server-internal}/src/lib/apis/create.ts | 0 .../api-server-internal}/src/lib/apis/delete.test.ts | 0 .../saved-objects/api-server-internal}/src/lib/apis/delete.ts | 0 .../src/lib/apis/delete_by_namespace.test.ts | 0 .../api-server-internal}/src/lib/apis/delete_by_namespace.ts | 0 .../src/lib/apis/find.isolated.test.mocks.ts | 0 .../api-server-internal}/src/lib/apis/find.isolated.test.ts | 0 .../api-server-internal}/src/lib/apis/find.test.ts | 0 .../saved-objects/api-server-internal}/src/lib/apis/find.ts | 0 .../src/lib/apis/get.isolated.test.mocks.ts | 0 .../api-server-internal}/src/lib/apis/get.isolated.test.ts | 0 .../api-server-internal}/src/lib/apis/get.test.ts | 0 .../saved-objects/api-server-internal}/src/lib/apis/get.ts | 0 .../api-server-internal}/src/lib/apis/helpers/common.ts | 0 .../api-server-internal}/src/lib/apis/helpers/encryption.ts | 0 .../api-server-internal}/src/lib/apis/helpers/index.ts | 0 .../src/lib/apis/helpers/migration.test.ts | 0 .../api-server-internal}/src/lib/apis/helpers/migration.ts | 0 .../src/lib/apis/helpers/preflight_check.ts | 0 .../api-server-internal}/src/lib/apis/helpers/serializer.ts | 0 .../api-server-internal}/src/lib/apis/helpers/user.ts | 0 .../src/lib/apis/helpers/validation.test.ts | 0 .../api-server-internal}/src/lib/apis/helpers/validation.ts | 0 .../src/lib/apis/helpers/validation_fixtures.ts | 0 .../src/lib/apis/increment_counter.test.ts | 0 .../api-server-internal}/src/lib/apis/increment_counter.ts | 0 .../saved-objects/api-server-internal}/src/lib/apis/index.ts | 0 .../internals/collect_multi_namespace_references.test.mock.ts | 0 .../apis/internals/collect_multi_namespace_references.test.ts | 0 .../lib/apis/internals/collect_multi_namespace_references.ts | 0 .../lib/apis/internals/delete_legacy_url_aliases.test.mock.ts | 0 .../src/lib/apis/internals/delete_legacy_url_aliases.test.ts | 0 .../src/lib/apis/internals/delete_legacy_url_aliases.ts | 0 .../src/lib/apis/internals/find_legacy_url_aliases.test.ts | 0 .../src/lib/apis/internals/find_legacy_url_aliases.ts | 0 .../src/lib/apis/internals/increment_counter_internal.ts | 0 .../api-server-internal}/src/lib/apis/internals/index.ts | 0 .../src/lib/apis/internals/internal_bulk_resolve.test.mock.ts | 0 .../src/lib/apis/internals/internal_bulk_resolve.test.ts | 0 .../src/lib/apis/internals/internal_bulk_resolve.ts | 0 .../apis/internals/preflight_check_for_create.test.mock.ts | 0 .../src/lib/apis/internals/preflight_check_for_create.test.ts | 0 .../src/lib/apis/internals/preflight_check_for_create.ts | 0 .../apis/internals/repository_bulk_delete_internal_types.ts | 0 .../src/lib/apis/internals/update_objects_spaces.test.mock.ts | 0 .../src/lib/apis/internals/update_objects_spaces.test.ts | 0 .../src/lib/apis/internals/update_objects_spaces.ts | 0 .../src/lib/apis/open_point_in_time.test.ts | 0 .../api-server-internal}/src/lib/apis/open_point_in_time.ts | 0 .../src/lib/apis/remove_references_to.test.ts | 0 .../api-server-internal}/src/lib/apis/remove_references_to.ts | 0 .../api-server-internal}/src/lib/apis/resolve.test.ts | 0 .../api-server-internal}/src/lib/apis/resolve.ts | 0 .../saved-objects/api-server-internal}/src/lib/apis/types.ts | 0 .../api-server-internal}/src/lib/apis/update.test.ts | 0 .../saved-objects/api-server-internal}/src/lib/apis/update.ts | 0 .../src/lib/apis/update_objects_spaces.test.ts | 0 .../src/lib/apis/update_objects_spaces.ts | 0 .../api-server-internal}/src/lib/apis/utils/either.ts | 0 .../api-server-internal}/src/lib/apis/utils/es_responses.ts | 0 .../src/lib/apis/utils/find_shared_origin_objects.test.ts | 0 .../src/lib/apis/utils/find_shared_origin_objects.ts | 0 .../api-server-internal}/src/lib/apis/utils/index.ts | 0 .../src/lib/apis/utils/internal_utils.test.ts | 0 .../api-server-internal}/src/lib/apis/utils/internal_utils.ts | 0 .../src/lib/apis/utils/merge_for_update.test.ts | 0 .../src/lib/apis/utils/merge_for_update.ts | 0 .../saved-objects/api-server-internal}/src/lib/constants.ts | 0 .../saved-objects/api-server-internal}/src/lib/index.ts | 0 .../api-server-internal}/src/lib/point_in_time_finder.test.ts | 0 .../api-server-internal}/src/lib/point_in_time_finder.ts | 0 .../src/lib/repository.encryption_extension.test.ts | 0 .../src/lib/repository.security_extension.test.ts | 0 .../src/lib/repository.spaces_extension.test.ts | 0 .../api-server-internal}/src/lib/repository.test.mock.ts | 0 .../api-server-internal}/src/lib/repository.test.ts | 0 .../saved-objects/api-server-internal}/src/lib/repository.ts | 0 .../src/lib/repository_create_repository.test.ts | 0 .../src/lib/repository_es_client.test.mock.ts | 0 .../api-server-internal}/src/lib/repository_es_client.test.ts | 0 .../api-server-internal}/src/lib/repository_es_client.ts | 0 .../src/lib/scoped_client_provider.test.ts | 0 .../api-server-internal}/src/lib/scoped_client_provider.ts | 0 .../src/lib/search/aggregations/aggs_types/bucket_aggs.ts | 0 .../src/lib/search/aggregations/aggs_types/common_schemas.ts | 0 .../src/lib/search/aggregations/aggs_types/index.ts | 0 .../src/lib/search/aggregations/aggs_types/metrics_aggs.ts | 0 .../src/lib/search/aggregations/aggs_types/pipeline_aggs.ts | 0 .../src/lib/search/aggregations/aggs_types/schemas.test.ts | 0 .../api-server-internal}/src/lib/search/aggregations/index.ts | 0 .../src/lib/search/aggregations/validation.test.ts | 0 .../src/lib/search/aggregations/validation.ts | 0 .../src/lib/search/aggregations/validation_utils.test.ts | 0 .../src/lib/search/aggregations/validation_utils.ts | 0 .../api-server-internal}/src/lib/search/index.ts | 0 .../search_dsl/__snapshots__/sorting_params.test.ts.snap | 0 .../api-server-internal}/src/lib/search/search_dsl/index.ts | 0 .../src/lib/search/search_dsl/pit_params.test.ts | 0 .../src/lib/search/search_dsl/pit_params.ts | 0 .../src/lib/search/search_dsl/query_params.test.ts | 0 .../src/lib/search/search_dsl/query_params.tests.mocks.ts | 0 .../src/lib/search/search_dsl/query_params.ts | 0 .../src/lib/search/search_dsl/references_filter.test.ts | 0 .../src/lib/search/search_dsl/references_filter.ts | 0 .../src/lib/search/search_dsl/search_dsl.test.ts | 0 .../src/lib/search/search_dsl/search_dsl.ts | 0 .../src/lib/search/search_dsl/sorting_params.test.ts | 0 .../src/lib/search/search_dsl/sorting_params.ts | 0 .../src/lib/search/utils/filter_utils.test.ts | 0 .../api-server-internal}/src/lib/search/utils/filter_utils.ts | 0 .../api-server-internal}/src/lib/search/utils/index.ts | 0 .../api-server-internal}/src/lib/utils/create_helpers.ts | 0 .../src/lib/utils/decorate_es_error.test.ts | 0 .../api-server-internal}/src/lib/utils/decorate_es_error.ts | 0 .../src/lib/utils/included_fields.test.ts | 0 .../api-server-internal}/src/lib/utils/included_fields.ts | 0 .../saved-objects/api-server-internal}/src/lib/utils/index.ts | 0 .../api-server-internal}/src/lib/utils/update_utils.ts | 0 .../api-server-internal}/src/mocks/api_context.mock.ts | 0 .../api-server-internal}/src/mocks/api_helpers.mocks.ts | 0 .../saved-objects/api-server-internal}/src/mocks/helpers.ts | 0 .../saved-objects/api-server-internal}/src/mocks/index.ts | 0 .../api-server-internal}/src/mocks/kibana_migrator.mock.ts | 0 .../api-server-internal}/src/mocks/migrator.mock.ts | 0 .../src/mocks/point_in_time_finder.mock.ts | 0 .../api-server-internal}/src/mocks/repository.mock.ts | 0 .../src/mocks/saved_objects_extensions.mock.ts | 0 .../api-server-internal}/src/saved_objects_client.test.ts | 0 .../api-server-internal}/src/saved_objects_client.ts | 0 .../src/test_helpers/repository.test.common.ts | 0 .../packages/saved-objects/api-server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 158 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/README.md (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/jest.config.js (81%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/kibana.jsonc (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/package.json (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/bulk_create.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/bulk_create.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/bulk_delete.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/bulk_delete.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/bulk_get.isolated.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/bulk_get.isolated.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/bulk_get.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/bulk_get.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/bulk_resolve.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/bulk_resolve.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/bulk_update.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/bulk_update.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/check_conflicts.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/check_conflicts.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/collect_multinamespace_references.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/collect_multinamespaces_references.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/create.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/create.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/delete.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/delete.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/delete_by_namespace.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/delete_by_namespace.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/find.isolated.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/find.isolated.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/find.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/find.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/get.isolated.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/get.isolated.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/get.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/get.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/helpers/common.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/helpers/encryption.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/helpers/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/helpers/migration.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/helpers/migration.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/helpers/preflight_check.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/helpers/serializer.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/helpers/user.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/helpers/validation.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/helpers/validation.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/helpers/validation_fixtures.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/increment_counter.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/increment_counter.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/collect_multi_namespace_references.test.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/collect_multi_namespace_references.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/collect_multi_namespace_references.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/delete_legacy_url_aliases.test.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/delete_legacy_url_aliases.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/delete_legacy_url_aliases.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/find_legacy_url_aliases.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/find_legacy_url_aliases.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/increment_counter_internal.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/internal_bulk_resolve.test.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/internal_bulk_resolve.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/internal_bulk_resolve.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/preflight_check_for_create.test.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/preflight_check_for_create.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/preflight_check_for_create.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/repository_bulk_delete_internal_types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/update_objects_spaces.test.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/update_objects_spaces.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/internals/update_objects_spaces.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/open_point_in_time.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/open_point_in_time.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/remove_references_to.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/remove_references_to.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/resolve.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/resolve.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/update.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/update.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/update_objects_spaces.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/update_objects_spaces.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/utils/either.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/utils/es_responses.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/utils/find_shared_origin_objects.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/utils/find_shared_origin_objects.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/utils/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/utils/internal_utils.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/utils/internal_utils.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/utils/merge_for_update.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/apis/utils/merge_for_update.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/constants.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/point_in_time_finder.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/point_in_time_finder.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/repository.encryption_extension.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/repository.security_extension.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/repository.spaces_extension.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/repository.test.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/repository.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/repository.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/repository_create_repository.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/repository_es_client.test.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/repository_es_client.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/repository_es_client.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/scoped_client_provider.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/scoped_client_provider.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/aggregations/aggs_types/bucket_aggs.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/aggregations/aggs_types/common_schemas.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/aggregations/aggs_types/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/aggregations/aggs_types/metrics_aggs.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/aggregations/aggs_types/pipeline_aggs.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/aggregations/aggs_types/schemas.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/aggregations/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/aggregations/validation.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/aggregations/validation.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/aggregations/validation_utils.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/aggregations/validation_utils.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/search_dsl/__snapshots__/sorting_params.test.ts.snap (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/search_dsl/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/search_dsl/pit_params.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/search_dsl/pit_params.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/search_dsl/query_params.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/search_dsl/query_params.tests.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/search_dsl/query_params.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/search_dsl/references_filter.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/search_dsl/references_filter.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/search_dsl/search_dsl.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/search_dsl/search_dsl.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/search_dsl/sorting_params.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/search_dsl/sorting_params.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/utils/filter_utils.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/utils/filter_utils.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/search/utils/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/utils/create_helpers.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/utils/decorate_es_error.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/utils/decorate_es_error.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/utils/included_fields.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/utils/included_fields.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/utils/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/lib/utils/update_utils.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/mocks/api_context.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/mocks/api_helpers.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/mocks/helpers.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/mocks/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/mocks/kibana_migrator.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/mocks/migrator.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/mocks/point_in_time_finder.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/mocks/repository.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/mocks/saved_objects_extensions.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/saved_objects_client.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/saved_objects_client.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/src/test_helpers/repository.test.common.ts (100%) rename {packages/core/saved-objects/core-saved-objects-api-server-internal => src/core/packages/saved-objects/api-server-internal}/tsconfig.json (95%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ad4e997e6aea8..c06feb3c92597 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -103,7 +103,6 @@ packages/core/plugins/core-plugins-server-mocks @elastic/kibana-core packages/core/preboot/core-preboot-server-mocks @elastic/kibana-core packages/core/rendering/core-rendering-browser-mocks @elastic/kibana-core packages/core/rendering/core-rendering-server-mocks @elastic/kibana-core -packages/core/saved-objects/core-saved-objects-api-server-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-base-server-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-base-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/root/browser-internal @elastic/kibana-core src/core/packages/root/server-internal @elastic/kibana-core src/core/packages/saved-objects/api-browser @elastic/kibana-core src/core/packages/saved-objects/api-server @elastic/kibana-core +src/core/packages/saved-objects/api-server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 5ffd2895bc5f4..9790ccf005374 100644 --- a/package.json +++ b/package.json @@ -369,7 +369,7 @@ "@kbn/core-root-server-internal": "link:src/core/packages/root/server-internal", "@kbn/core-saved-objects-api-browser": "link:src/core/packages/saved-objects/api-browser", "@kbn/core-saved-objects-api-server": "link:src/core/packages/saved-objects/api-server", - "@kbn/core-saved-objects-api-server-internal": "link:packages/core/saved-objects/core-saved-objects-api-server-internal", + "@kbn/core-saved-objects-api-server-internal": "link:src/core/packages/saved-objects/api-server-internal", "@kbn/core-saved-objects-base-server-internal": "link:packages/core/saved-objects/core-saved-objects-base-server-internal", "@kbn/core-saved-objects-browser": "link:packages/core/saved-objects/core-saved-objects-browser", "@kbn/core-saved-objects-browser-internal": "link:packages/core/saved-objects/core-saved-objects-browser-internal", diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/README.md b/src/core/packages/saved-objects/api-server-internal/README.md similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/README.md rename to src/core/packages/saved-objects/api-server-internal/README.md diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/index.ts b/src/core/packages/saved-objects/api-server-internal/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/index.ts rename to src/core/packages/saved-objects/api-server-internal/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/jest.config.js b/src/core/packages/saved-objects/api-server-internal/jest.config.js similarity index 81% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/jest.config.js rename to src/core/packages/saved-objects/api-server-internal/jest.config.js index 5c1a922b47336..66d06749ceb7b 100644 --- a/packages/core/saved-objects/core-saved-objects-api-server-internal/jest.config.js +++ b/src/core/packages/saved-objects/api-server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/saved-objects/core-saved-objects-api-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/saved-objects/api-server-internal'], }; diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/kibana.jsonc b/src/core/packages/saved-objects/api-server-internal/kibana.jsonc similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/kibana.jsonc rename to src/core/packages/saved-objects/api-server-internal/kibana.jsonc diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/package.json b/src/core/packages/saved-objects/api-server-internal/package.json similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/package.json rename to src/core/packages/saved-objects/api-server-internal/package.json diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/index.ts b/src/core/packages/saved-objects/api-server-internal/src/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/index.ts rename to src/core/packages/saved-objects/api-server-internal/src/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_create.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_create.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_create.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_create.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_create.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_create.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_create.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_create.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_delete.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_delete.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_delete.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_delete.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_delete.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_delete.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_delete.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_delete.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_get.isolated.test.mocks.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_get.isolated.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_get.isolated.test.mocks.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_get.isolated.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_get.isolated.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_get.isolated.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_get.isolated.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_get.isolated.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_get.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_get.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_get.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_get.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_get.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_get.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_get.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_get.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_resolve.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_resolve.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_resolve.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_resolve.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_resolve.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_resolve.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_resolve.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_resolve.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_update.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_update.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_update.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_update.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_update.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_update.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/bulk_update.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/bulk_update.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/check_conflicts.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/check_conflicts.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/check_conflicts.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/check_conflicts.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/check_conflicts.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/check_conflicts.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/check_conflicts.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/check_conflicts.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/collect_multinamespace_references.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/collect_multinamespace_references.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/collect_multinamespace_references.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/collect_multinamespace_references.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/collect_multinamespaces_references.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/collect_multinamespaces_references.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/collect_multinamespaces_references.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/collect_multinamespaces_references.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/create.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/create.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/create.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/create.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/create.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/create.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/create.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/create.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/delete.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/delete.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/delete.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/delete.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/delete.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/delete.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/delete.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/delete.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/delete_by_namespace.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/delete_by_namespace.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/delete_by_namespace.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/delete_by_namespace.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/delete_by_namespace.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/delete_by_namespace.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/delete_by_namespace.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/delete_by_namespace.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/find.isolated.test.mocks.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/find.isolated.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/find.isolated.test.mocks.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/find.isolated.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/find.isolated.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/find.isolated.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/find.isolated.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/find.isolated.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/find.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/find.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/find.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/find.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/find.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/find.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/find.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/find.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/get.isolated.test.mocks.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/get.isolated.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/get.isolated.test.mocks.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/get.isolated.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/get.isolated.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/get.isolated.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/get.isolated.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/get.isolated.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/get.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/get.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/get.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/get.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/get.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/get.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/get.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/get.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/common.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/common.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/common.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/common.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/encryption.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/encryption.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/encryption.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/encryption.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/index.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/index.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/migration.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/migration.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/migration.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/migration.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/migration.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/migration.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/migration.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/migration.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/preflight_check.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/preflight_check.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/preflight_check.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/preflight_check.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/serializer.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/serializer.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/serializer.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/serializer.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/user.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/user.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/user.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/user.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/validation.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/validation.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/validation.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/validation.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/validation.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/validation.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/validation.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/validation.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/validation_fixtures.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/validation_fixtures.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/validation_fixtures.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/helpers/validation_fixtures.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/increment_counter.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/increment_counter.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/increment_counter.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/increment_counter.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/increment_counter.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/increment_counter.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/increment_counter.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/increment_counter.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/index.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/index.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/collect_multi_namespace_references.test.mock.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/collect_multi_namespace_references.test.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/collect_multi_namespace_references.test.mock.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/collect_multi_namespace_references.test.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/collect_multi_namespace_references.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/collect_multi_namespace_references.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/collect_multi_namespace_references.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/collect_multi_namespace_references.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/collect_multi_namespace_references.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/collect_multi_namespace_references.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/collect_multi_namespace_references.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/collect_multi_namespace_references.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/delete_legacy_url_aliases.test.mock.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/delete_legacy_url_aliases.test.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/delete_legacy_url_aliases.test.mock.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/delete_legacy_url_aliases.test.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/delete_legacy_url_aliases.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/delete_legacy_url_aliases.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/delete_legacy_url_aliases.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/delete_legacy_url_aliases.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/delete_legacy_url_aliases.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/delete_legacy_url_aliases.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/delete_legacy_url_aliases.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/delete_legacy_url_aliases.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/find_legacy_url_aliases.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/find_legacy_url_aliases.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/find_legacy_url_aliases.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/find_legacy_url_aliases.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/find_legacy_url_aliases.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/find_legacy_url_aliases.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/find_legacy_url_aliases.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/find_legacy_url_aliases.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/increment_counter_internal.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/increment_counter_internal.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/increment_counter_internal.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/increment_counter_internal.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/index.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/index.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/internal_bulk_resolve.test.mock.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/internal_bulk_resolve.test.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/internal_bulk_resolve.test.mock.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/internal_bulk_resolve.test.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/internal_bulk_resolve.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/internal_bulk_resolve.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/internal_bulk_resolve.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/internal_bulk_resolve.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/internal_bulk_resolve.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/internal_bulk_resolve.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/internal_bulk_resolve.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/internal_bulk_resolve.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/preflight_check_for_create.test.mock.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/preflight_check_for_create.test.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/preflight_check_for_create.test.mock.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/preflight_check_for_create.test.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/preflight_check_for_create.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/preflight_check_for_create.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/preflight_check_for_create.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/preflight_check_for_create.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/preflight_check_for_create.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/preflight_check_for_create.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/preflight_check_for_create.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/preflight_check_for_create.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/repository_bulk_delete_internal_types.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/repository_bulk_delete_internal_types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/repository_bulk_delete_internal_types.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/repository_bulk_delete_internal_types.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/update_objects_spaces.test.mock.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/update_objects_spaces.test.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/update_objects_spaces.test.mock.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/update_objects_spaces.test.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/update_objects_spaces.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/update_objects_spaces.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/update_objects_spaces.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/update_objects_spaces.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/update_objects_spaces.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/update_objects_spaces.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/internals/update_objects_spaces.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/internals/update_objects_spaces.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/open_point_in_time.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/open_point_in_time.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/open_point_in_time.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/open_point_in_time.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/open_point_in_time.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/open_point_in_time.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/open_point_in_time.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/open_point_in_time.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/remove_references_to.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/remove_references_to.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/remove_references_to.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/remove_references_to.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/remove_references_to.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/remove_references_to.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/remove_references_to.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/remove_references_to.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/resolve.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/resolve.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/resolve.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/resolve.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/resolve.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/resolve.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/resolve.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/resolve.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/types.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/types.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/types.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/update.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/update.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/update.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/update.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/update.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/update.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/update.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/update.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/update_objects_spaces.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/update_objects_spaces.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/update_objects_spaces.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/update_objects_spaces.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/update_objects_spaces.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/update_objects_spaces.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/update_objects_spaces.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/update_objects_spaces.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/either.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/either.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/either.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/either.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/es_responses.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/es_responses.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/es_responses.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/es_responses.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/find_shared_origin_objects.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/find_shared_origin_objects.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/find_shared_origin_objects.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/find_shared_origin_objects.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/find_shared_origin_objects.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/find_shared_origin_objects.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/find_shared_origin_objects.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/find_shared_origin_objects.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/index.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/index.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/internal_utils.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/internal_utils.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/internal_utils.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/internal_utils.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/internal_utils.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/internal_utils.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/internal_utils.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/internal_utils.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/merge_for_update.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/merge_for_update.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/merge_for_update.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/merge_for_update.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/merge_for_update.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/merge_for_update.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/utils/merge_for_update.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/apis/utils/merge_for_update.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/constants.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/constants.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/constants.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/constants.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/index.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/index.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/point_in_time_finder.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/point_in_time_finder.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/point_in_time_finder.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/point_in_time_finder.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/point_in_time_finder.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/point_in_time_finder.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/point_in_time_finder.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/point_in_time_finder.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.encryption_extension.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/repository.encryption_extension.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.encryption_extension.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/repository.encryption_extension.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.security_extension.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/repository.security_extension.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.security_extension.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/repository.security_extension.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.spaces_extension.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/repository.spaces_extension.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.spaces_extension.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/repository.spaces_extension.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.test.mock.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/repository.test.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.test.mock.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/repository.test.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/repository.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/repository.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/repository.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/repository.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository_create_repository.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/repository_create_repository.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository_create_repository.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/repository_create_repository.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository_es_client.test.mock.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/repository_es_client.test.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository_es_client.test.mock.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/repository_es_client.test.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository_es_client.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/repository_es_client.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository_es_client.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/repository_es_client.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository_es_client.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/repository_es_client.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository_es_client.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/repository_es_client.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/scoped_client_provider.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/scoped_client_provider.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/scoped_client_provider.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/scoped_client_provider.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/scoped_client_provider.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/scoped_client_provider.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/scoped_client_provider.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/scoped_client_provider.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/aggs_types/bucket_aggs.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/aggs_types/bucket_aggs.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/aggs_types/bucket_aggs.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/aggs_types/bucket_aggs.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/aggs_types/common_schemas.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/aggs_types/common_schemas.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/aggs_types/common_schemas.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/aggs_types/common_schemas.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/aggs_types/index.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/aggs_types/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/aggs_types/index.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/aggs_types/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/aggs_types/metrics_aggs.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/aggs_types/metrics_aggs.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/aggs_types/metrics_aggs.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/aggs_types/metrics_aggs.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/aggs_types/pipeline_aggs.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/aggs_types/pipeline_aggs.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/aggs_types/pipeline_aggs.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/aggs_types/pipeline_aggs.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/aggs_types/schemas.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/aggs_types/schemas.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/aggs_types/schemas.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/aggs_types/schemas.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/index.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/index.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/validation.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/validation.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/validation.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/validation.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/validation.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/validation.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/validation.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/validation.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/validation_utils.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/validation_utils.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/validation_utils.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/validation_utils.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/validation_utils.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/validation_utils.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/aggregations/validation_utils.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/aggregations/validation_utils.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/index.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/index.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/__snapshots__/sorting_params.test.ts.snap b/src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/__snapshots__/sorting_params.test.ts.snap similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/__snapshots__/sorting_params.test.ts.snap rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/__snapshots__/sorting_params.test.ts.snap diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/index.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/index.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/pit_params.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/pit_params.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/pit_params.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/pit_params.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/pit_params.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/pit_params.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/pit_params.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/pit_params.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/query_params.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/query_params.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/query_params.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/query_params.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/query_params.tests.mocks.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/query_params.tests.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/query_params.tests.mocks.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/query_params.tests.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/query_params.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/query_params.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/query_params.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/query_params.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/references_filter.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/references_filter.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/references_filter.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/references_filter.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/references_filter.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/references_filter.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/references_filter.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/references_filter.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/search_dsl.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/search_dsl.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/search_dsl.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/search_dsl.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/search_dsl.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/search_dsl.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/search_dsl.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/search_dsl.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/sorting_params.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/sorting_params.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/sorting_params.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/sorting_params.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/sorting_params.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/sorting_params.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/search_dsl/sorting_params.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/search_dsl/sorting_params.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/utils/filter_utils.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/utils/filter_utils.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/utils/filter_utils.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/utils/filter_utils.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/utils/filter_utils.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/utils/filter_utils.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/utils/filter_utils.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/utils/filter_utils.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/utils/index.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/search/utils/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/search/utils/index.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/search/utils/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/create_helpers.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/utils/create_helpers.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/create_helpers.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/utils/create_helpers.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/decorate_es_error.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/utils/decorate_es_error.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/decorate_es_error.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/utils/decorate_es_error.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/decorate_es_error.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/utils/decorate_es_error.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/decorate_es_error.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/utils/decorate_es_error.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/included_fields.test.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/utils/included_fields.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/included_fields.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/utils/included_fields.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/included_fields.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/utils/included_fields.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/included_fields.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/utils/included_fields.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/index.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/utils/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/index.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/utils/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/update_utils.ts b/src/core/packages/saved-objects/api-server-internal/src/lib/utils/update_utils.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/utils/update_utils.ts rename to src/core/packages/saved-objects/api-server-internal/src/lib/utils/update_utils.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/api_context.mock.ts b/src/core/packages/saved-objects/api-server-internal/src/mocks/api_context.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/api_context.mock.ts rename to src/core/packages/saved-objects/api-server-internal/src/mocks/api_context.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/api_helpers.mocks.ts b/src/core/packages/saved-objects/api-server-internal/src/mocks/api_helpers.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/api_helpers.mocks.ts rename to src/core/packages/saved-objects/api-server-internal/src/mocks/api_helpers.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/helpers.ts b/src/core/packages/saved-objects/api-server-internal/src/mocks/helpers.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/helpers.ts rename to src/core/packages/saved-objects/api-server-internal/src/mocks/helpers.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/index.ts b/src/core/packages/saved-objects/api-server-internal/src/mocks/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/index.ts rename to src/core/packages/saved-objects/api-server-internal/src/mocks/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/kibana_migrator.mock.ts b/src/core/packages/saved-objects/api-server-internal/src/mocks/kibana_migrator.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/kibana_migrator.mock.ts rename to src/core/packages/saved-objects/api-server-internal/src/mocks/kibana_migrator.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/migrator.mock.ts b/src/core/packages/saved-objects/api-server-internal/src/mocks/migrator.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/migrator.mock.ts rename to src/core/packages/saved-objects/api-server-internal/src/mocks/migrator.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/point_in_time_finder.mock.ts b/src/core/packages/saved-objects/api-server-internal/src/mocks/point_in_time_finder.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/point_in_time_finder.mock.ts rename to src/core/packages/saved-objects/api-server-internal/src/mocks/point_in_time_finder.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/repository.mock.ts b/src/core/packages/saved-objects/api-server-internal/src/mocks/repository.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/repository.mock.ts rename to src/core/packages/saved-objects/api-server-internal/src/mocks/repository.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/saved_objects_extensions.mock.ts b/src/core/packages/saved-objects/api-server-internal/src/mocks/saved_objects_extensions.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/mocks/saved_objects_extensions.mock.ts rename to src/core/packages/saved-objects/api-server-internal/src/mocks/saved_objects_extensions.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/saved_objects_client.test.ts b/src/core/packages/saved-objects/api-server-internal/src/saved_objects_client.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/saved_objects_client.test.ts rename to src/core/packages/saved-objects/api-server-internal/src/saved_objects_client.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/saved_objects_client.ts b/src/core/packages/saved-objects/api-server-internal/src/saved_objects_client.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/saved_objects_client.ts rename to src/core/packages/saved-objects/api-server-internal/src/saved_objects_client.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/test_helpers/repository.test.common.ts b/src/core/packages/saved-objects/api-server-internal/src/test_helpers/repository.test.common.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/src/test_helpers/repository.test.common.ts rename to src/core/packages/saved-objects/api-server-internal/src/test_helpers/repository.test.common.ts diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/tsconfig.json b/src/core/packages/saved-objects/api-server-internal/tsconfig.json similarity index 95% rename from packages/core/saved-objects/core-saved-objects-api-server-internal/tsconfig.json rename to src/core/packages/saved-objects/api-server-internal/tsconfig.json index f9912727a8720..2b4ef81f68aeb 100644 --- a/packages/core/saved-objects/core-saved-objects-api-server-internal/tsconfig.json +++ b/src/core/packages/saved-objects/api-server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 301d47fb4a962..383bf19be92ef 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -564,8 +564,8 @@ "@kbn/core-saved-objects-api-browser/*": ["src/core/packages/saved-objects/api-browser/*"], "@kbn/core-saved-objects-api-server": ["src/core/packages/saved-objects/api-server"], "@kbn/core-saved-objects-api-server/*": ["src/core/packages/saved-objects/api-server/*"], - "@kbn/core-saved-objects-api-server-internal": ["packages/core/saved-objects/core-saved-objects-api-server-internal"], - "@kbn/core-saved-objects-api-server-internal/*": ["packages/core/saved-objects/core-saved-objects-api-server-internal/*"], + "@kbn/core-saved-objects-api-server-internal": ["src/core/packages/saved-objects/api-server-internal"], + "@kbn/core-saved-objects-api-server-internal/*": ["src/core/packages/saved-objects/api-server-internal/*"], "@kbn/core-saved-objects-api-server-mocks": ["packages/core/saved-objects/core-saved-objects-api-server-mocks"], "@kbn/core-saved-objects-api-server-mocks/*": ["packages/core/saved-objects/core-saved-objects-api-server-mocks/*"], "@kbn/core-saved-objects-base-server-internal": ["packages/core/saved-objects/core-saved-objects-base-server-internal"], diff --git a/yarn.lock b/yarn.lock index 777d3a14d8313..fdb6de346b839 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4937,7 +4937,7 @@ version "0.0.0" uid "" -"@kbn/core-saved-objects-api-server-internal@link:packages/core/saved-objects/core-saved-objects-api-server-internal": +"@kbn/core-saved-objects-api-server-internal@link:src/core/packages/saved-objects/api-server-internal": version "0.0.0" uid "" From afb7aceba97ba4dbb1f2eb8ae943fccf772915b6 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:24:39 +0100 Subject: [PATCH 101/167] Relocating module `@kbn/core-saved-objects-base-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/saved-objects/base-server-internal}/README.md | 0 .../packages/saved-objects/base-server-internal}/index.ts | 0 .../saved-objects/base-server-internal}/jest.config.js | 4 ++-- .../packages/saved-objects/base-server-internal}/kibana.jsonc | 0 .../packages/saved-objects/base-server-internal}/package.json | 0 .../saved-objects/base-server-internal}/src/constants.ts | 0 .../base-server-internal}/src/legacy_alias/constants.ts | 0 .../base-server-internal}/src/legacy_alias/index.ts | 0 .../base-server-internal}/src/legacy_alias/types.ts | 0 .../saved-objects/base-server-internal}/src/mappings/index.ts | 0 .../src/mappings/lib/get_property.test.ts | 0 .../base-server-internal}/src/mappings/lib/get_property.ts | 0 .../src/mappings/lib/get_root_properties.ts | 0 .../src/mappings/lib/get_root_properties_objects.test.ts | 0 .../src/mappings/lib/get_root_properties_objects.ts | 0 .../base-server-internal}/src/mappings/lib/get_types.ts | 0 .../base-server-internal}/src/mappings/lib/index.ts | 0 .../saved-objects/base-server-internal}/src/mappings/types.ts | 0 .../base-server-internal}/src/migration/document_migrator.ts | 0 .../base-server-internal}/src/migration/index.ts | 0 .../base-server-internal}/src/migration/kibana_migrator.ts | 0 .../src/model_version/aggregate_model_changes.test.ts | 0 .../src/model_version/aggregate_model_changes.ts | 0 .../src/model_version/backward_conversion_schema.test.ts | 0 .../src/model_version/backward_conversion_schema.ts | 0 .../src/model_version/build_transform_fn.test.ts | 0 .../src/model_version/build_transform_fn.ts | 0 .../base-server-internal}/src/model_version/constants.ts | 0 .../src/model_version/conversion.test.ts | 0 .../base-server-internal}/src/model_version/conversion.ts | 0 .../src/model_version/get_version_delta.test.ts | 0 .../src/model_version/get_version_delta.ts | 0 .../base-server-internal}/src/model_version/index.ts | 0 .../src/model_version/model_version_from_mappings.test.ts | 0 .../src/model_version/model_version_from_mappings.ts | 0 .../src/model_version/version_compare.test.ts | 0 .../src/model_version/version_compare.ts | 0 .../src/model_version/version_map.test.ts | 0 .../base-server-internal}/src/model_version/version_map.ts | 0 .../src/model_version/version_mapping_changes.test.ts | 0 .../src/model_version/version_mapping_changes.ts | 0 .../base-server-internal}/src/saved_objects_config.ts | 0 .../src/saved_objects_type_registry.test.ts | 0 .../base-server-internal}/src/saved_objects_type_registry.ts | 0 .../base-server-internal}/src/serialization/index.ts | 0 .../src/serialization/serializer.test.ts | 0 .../base-server-internal}/src/serialization/serializer.ts | 0 .../base-server-internal}/src/utils/get_field_list.test.ts | 0 .../base-server-internal}/src/utils/get_field_list.ts | 0 .../src/utils/get_index_for_type.test.ts | 0 .../base-server-internal}/src/utils/get_index_for_type.ts | 0 .../saved-objects/base-server-internal}/src/utils/index.ts | 0 .../base-server-internal}/src/utils/object_key.test.ts | 0 .../base-server-internal}/src/utils/object_key.ts | 0 .../base-server-internal}/src/validation/index.ts | 0 .../base-server-internal}/src/validation/schema.test.ts | 0 .../base-server-internal}/src/validation/schema.ts | 0 .../base-server-internal}/src/validation/validator.test.ts | 0 .../base-server-internal}/src/validation/validator.ts | 0 .../saved-objects/base-server-internal}/src/version/base64.ts | 0 .../src/version/decode_request_version.test.ts | 0 .../src/version/decode_request_version.ts | 0 .../base-server-internal}/src/version/decode_version.test.ts | 0 .../base-server-internal}/src/version/decode_version.ts | 0 .../src/version/encode_hit_version.test.ts | 0 .../base-server-internal}/src/version/encode_hit_version.ts | 0 .../base-server-internal}/src/version/encode_version.test.ts | 0 .../base-server-internal}/src/version/encode_version.ts | 0 .../saved-objects/base-server-internal}/src/version/index.ts | 0 .../saved-objects/base-server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 74 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/README.md (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/jest.config.js (81%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/kibana.jsonc (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/package.json (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/constants.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/legacy_alias/constants.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/legacy_alias/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/legacy_alias/types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/mappings/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/mappings/lib/get_property.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/mappings/lib/get_property.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/mappings/lib/get_root_properties.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/mappings/lib/get_root_properties_objects.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/mappings/lib/get_root_properties_objects.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/mappings/lib/get_types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/mappings/lib/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/mappings/types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/migration/document_migrator.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/migration/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/migration/kibana_migrator.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/aggregate_model_changes.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/aggregate_model_changes.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/backward_conversion_schema.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/backward_conversion_schema.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/build_transform_fn.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/build_transform_fn.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/constants.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/conversion.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/conversion.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/get_version_delta.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/get_version_delta.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/model_version_from_mappings.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/model_version_from_mappings.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/version_compare.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/version_compare.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/version_map.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/version_map.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/version_mapping_changes.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/model_version/version_mapping_changes.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/saved_objects_config.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/saved_objects_type_registry.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/saved_objects_type_registry.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/serialization/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/serialization/serializer.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/serialization/serializer.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/utils/get_field_list.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/utils/get_field_list.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/utils/get_index_for_type.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/utils/get_index_for_type.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/utils/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/utils/object_key.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/utils/object_key.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/validation/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/validation/schema.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/validation/schema.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/validation/validator.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/validation/validator.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/version/base64.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/version/decode_request_version.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/version/decode_request_version.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/version/decode_version.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/version/decode_version.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/version/encode_hit_version.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/version/encode_hit_version.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/version/encode_version.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/version/encode_version.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/src/version/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-base-server-internal => src/core/packages/saved-objects/base-server-internal}/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c06feb3c92597..f1d383099cbd0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -104,7 +104,6 @@ packages/core/preboot/core-preboot-server-mocks @elastic/kibana-core packages/core/rendering/core-rendering-browser-mocks @elastic/kibana-core packages/core/rendering/core-rendering-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server-mocks @elastic/kibana-core -packages/core/saved-objects/core-saved-objects-base-server-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-base-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-browser @elastic/kibana-core packages/core/saved-objects/core-saved-objects-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/root/server-internal @elastic/kibana-core src/core/packages/saved-objects/api-browser @elastic/kibana-core src/core/packages/saved-objects/api-server @elastic/kibana-core src/core/packages/saved-objects/api-server-internal @elastic/kibana-core +src/core/packages/saved-objects/base-server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 9790ccf005374..5900ffb344f17 100644 --- a/package.json +++ b/package.json @@ -370,7 +370,7 @@ "@kbn/core-saved-objects-api-browser": "link:src/core/packages/saved-objects/api-browser", "@kbn/core-saved-objects-api-server": "link:src/core/packages/saved-objects/api-server", "@kbn/core-saved-objects-api-server-internal": "link:src/core/packages/saved-objects/api-server-internal", - "@kbn/core-saved-objects-base-server-internal": "link:packages/core/saved-objects/core-saved-objects-base-server-internal", + "@kbn/core-saved-objects-base-server-internal": "link:src/core/packages/saved-objects/base-server-internal", "@kbn/core-saved-objects-browser": "link:packages/core/saved-objects/core-saved-objects-browser", "@kbn/core-saved-objects-browser-internal": "link:packages/core/saved-objects/core-saved-objects-browser-internal", "@kbn/core-saved-objects-common": "link:packages/core/saved-objects/core-saved-objects-common", diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/README.md b/src/core/packages/saved-objects/base-server-internal/README.md similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/README.md rename to src/core/packages/saved-objects/base-server-internal/README.md diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/index.ts b/src/core/packages/saved-objects/base-server-internal/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/index.ts rename to src/core/packages/saved-objects/base-server-internal/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/jest.config.js b/src/core/packages/saved-objects/base-server-internal/jest.config.js similarity index 81% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/jest.config.js rename to src/core/packages/saved-objects/base-server-internal/jest.config.js index 5fe7fa0dd07b2..89d3b4c405584 100644 --- a/packages/core/saved-objects/core-saved-objects-base-server-internal/jest.config.js +++ b/src/core/packages/saved-objects/base-server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/saved-objects/core-saved-objects-base-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/saved-objects/base-server-internal'], }; diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/kibana.jsonc b/src/core/packages/saved-objects/base-server-internal/kibana.jsonc similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/kibana.jsonc rename to src/core/packages/saved-objects/base-server-internal/kibana.jsonc diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/package.json b/src/core/packages/saved-objects/base-server-internal/package.json similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/package.json rename to src/core/packages/saved-objects/base-server-internal/package.json diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/constants.ts b/src/core/packages/saved-objects/base-server-internal/src/constants.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/constants.ts rename to src/core/packages/saved-objects/base-server-internal/src/constants.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/legacy_alias/constants.ts b/src/core/packages/saved-objects/base-server-internal/src/legacy_alias/constants.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/legacy_alias/constants.ts rename to src/core/packages/saved-objects/base-server-internal/src/legacy_alias/constants.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/legacy_alias/index.ts b/src/core/packages/saved-objects/base-server-internal/src/legacy_alias/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/legacy_alias/index.ts rename to src/core/packages/saved-objects/base-server-internal/src/legacy_alias/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/legacy_alias/types.ts b/src/core/packages/saved-objects/base-server-internal/src/legacy_alias/types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/legacy_alias/types.ts rename to src/core/packages/saved-objects/base-server-internal/src/legacy_alias/types.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/index.ts b/src/core/packages/saved-objects/base-server-internal/src/mappings/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/index.ts rename to src/core/packages/saved-objects/base-server-internal/src/mappings/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/get_property.test.ts b/src/core/packages/saved-objects/base-server-internal/src/mappings/lib/get_property.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/get_property.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/mappings/lib/get_property.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/get_property.ts b/src/core/packages/saved-objects/base-server-internal/src/mappings/lib/get_property.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/get_property.ts rename to src/core/packages/saved-objects/base-server-internal/src/mappings/lib/get_property.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/get_root_properties.ts b/src/core/packages/saved-objects/base-server-internal/src/mappings/lib/get_root_properties.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/get_root_properties.ts rename to src/core/packages/saved-objects/base-server-internal/src/mappings/lib/get_root_properties.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/get_root_properties_objects.test.ts b/src/core/packages/saved-objects/base-server-internal/src/mappings/lib/get_root_properties_objects.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/get_root_properties_objects.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/mappings/lib/get_root_properties_objects.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/get_root_properties_objects.ts b/src/core/packages/saved-objects/base-server-internal/src/mappings/lib/get_root_properties_objects.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/get_root_properties_objects.ts rename to src/core/packages/saved-objects/base-server-internal/src/mappings/lib/get_root_properties_objects.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/get_types.ts b/src/core/packages/saved-objects/base-server-internal/src/mappings/lib/get_types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/get_types.ts rename to src/core/packages/saved-objects/base-server-internal/src/mappings/lib/get_types.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/index.ts b/src/core/packages/saved-objects/base-server-internal/src/mappings/lib/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/lib/index.ts rename to src/core/packages/saved-objects/base-server-internal/src/mappings/lib/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/types.ts b/src/core/packages/saved-objects/base-server-internal/src/mappings/types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/mappings/types.ts rename to src/core/packages/saved-objects/base-server-internal/src/mappings/types.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/migration/document_migrator.ts b/src/core/packages/saved-objects/base-server-internal/src/migration/document_migrator.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/migration/document_migrator.ts rename to src/core/packages/saved-objects/base-server-internal/src/migration/document_migrator.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/migration/index.ts b/src/core/packages/saved-objects/base-server-internal/src/migration/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/migration/index.ts rename to src/core/packages/saved-objects/base-server-internal/src/migration/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/migration/kibana_migrator.ts b/src/core/packages/saved-objects/base-server-internal/src/migration/kibana_migrator.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/migration/kibana_migrator.ts rename to src/core/packages/saved-objects/base-server-internal/src/migration/kibana_migrator.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/aggregate_model_changes.test.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/aggregate_model_changes.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/aggregate_model_changes.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/aggregate_model_changes.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/aggregate_model_changes.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/aggregate_model_changes.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/aggregate_model_changes.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/aggregate_model_changes.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/backward_conversion_schema.test.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/backward_conversion_schema.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/backward_conversion_schema.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/backward_conversion_schema.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/backward_conversion_schema.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/backward_conversion_schema.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/backward_conversion_schema.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/backward_conversion_schema.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/build_transform_fn.test.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/build_transform_fn.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/build_transform_fn.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/build_transform_fn.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/build_transform_fn.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/build_transform_fn.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/build_transform_fn.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/build_transform_fn.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/constants.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/constants.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/constants.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/constants.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/conversion.test.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/conversion.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/conversion.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/conversion.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/conversion.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/conversion.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/conversion.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/conversion.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/get_version_delta.test.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/get_version_delta.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/get_version_delta.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/get_version_delta.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/get_version_delta.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/get_version_delta.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/get_version_delta.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/get_version_delta.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/index.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/index.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/model_version_from_mappings.test.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/model_version_from_mappings.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/model_version_from_mappings.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/model_version_from_mappings.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/model_version_from_mappings.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/model_version_from_mappings.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/model_version_from_mappings.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/model_version_from_mappings.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/version_compare.test.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/version_compare.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/version_compare.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/version_compare.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/version_compare.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/version_compare.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/version_compare.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/version_compare.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/version_map.test.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/version_map.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/version_map.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/version_map.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/version_map.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/version_map.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/version_map.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/version_map.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/version_mapping_changes.test.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/version_mapping_changes.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/version_mapping_changes.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/version_mapping_changes.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/version_mapping_changes.ts b/src/core/packages/saved-objects/base-server-internal/src/model_version/version_mapping_changes.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/model_version/version_mapping_changes.ts rename to src/core/packages/saved-objects/base-server-internal/src/model_version/version_mapping_changes.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/saved_objects_config.ts b/src/core/packages/saved-objects/base-server-internal/src/saved_objects_config.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/saved_objects_config.ts rename to src/core/packages/saved-objects/base-server-internal/src/saved_objects_config.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/saved_objects_type_registry.test.ts b/src/core/packages/saved-objects/base-server-internal/src/saved_objects_type_registry.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/saved_objects_type_registry.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/saved_objects_type_registry.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/saved_objects_type_registry.ts b/src/core/packages/saved-objects/base-server-internal/src/saved_objects_type_registry.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/saved_objects_type_registry.ts rename to src/core/packages/saved-objects/base-server-internal/src/saved_objects_type_registry.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/serialization/index.ts b/src/core/packages/saved-objects/base-server-internal/src/serialization/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/serialization/index.ts rename to src/core/packages/saved-objects/base-server-internal/src/serialization/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/serialization/serializer.test.ts b/src/core/packages/saved-objects/base-server-internal/src/serialization/serializer.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/serialization/serializer.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/serialization/serializer.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/serialization/serializer.ts b/src/core/packages/saved-objects/base-server-internal/src/serialization/serializer.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/serialization/serializer.ts rename to src/core/packages/saved-objects/base-server-internal/src/serialization/serializer.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/get_field_list.test.ts b/src/core/packages/saved-objects/base-server-internal/src/utils/get_field_list.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/get_field_list.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/utils/get_field_list.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/get_field_list.ts b/src/core/packages/saved-objects/base-server-internal/src/utils/get_field_list.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/get_field_list.ts rename to src/core/packages/saved-objects/base-server-internal/src/utils/get_field_list.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/get_index_for_type.test.ts b/src/core/packages/saved-objects/base-server-internal/src/utils/get_index_for_type.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/get_index_for_type.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/utils/get_index_for_type.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/get_index_for_type.ts b/src/core/packages/saved-objects/base-server-internal/src/utils/get_index_for_type.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/get_index_for_type.ts rename to src/core/packages/saved-objects/base-server-internal/src/utils/get_index_for_type.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/index.ts b/src/core/packages/saved-objects/base-server-internal/src/utils/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/index.ts rename to src/core/packages/saved-objects/base-server-internal/src/utils/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/object_key.test.ts b/src/core/packages/saved-objects/base-server-internal/src/utils/object_key.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/object_key.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/utils/object_key.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/object_key.ts b/src/core/packages/saved-objects/base-server-internal/src/utils/object_key.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/utils/object_key.ts rename to src/core/packages/saved-objects/base-server-internal/src/utils/object_key.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/validation/index.ts b/src/core/packages/saved-objects/base-server-internal/src/validation/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/validation/index.ts rename to src/core/packages/saved-objects/base-server-internal/src/validation/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/validation/schema.test.ts b/src/core/packages/saved-objects/base-server-internal/src/validation/schema.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/validation/schema.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/validation/schema.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/validation/schema.ts b/src/core/packages/saved-objects/base-server-internal/src/validation/schema.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/validation/schema.ts rename to src/core/packages/saved-objects/base-server-internal/src/validation/schema.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/validation/validator.test.ts b/src/core/packages/saved-objects/base-server-internal/src/validation/validator.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/validation/validator.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/validation/validator.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/validation/validator.ts b/src/core/packages/saved-objects/base-server-internal/src/validation/validator.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/validation/validator.ts rename to src/core/packages/saved-objects/base-server-internal/src/validation/validator.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/base64.ts b/src/core/packages/saved-objects/base-server-internal/src/version/base64.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/base64.ts rename to src/core/packages/saved-objects/base-server-internal/src/version/base64.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/decode_request_version.test.ts b/src/core/packages/saved-objects/base-server-internal/src/version/decode_request_version.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/decode_request_version.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/version/decode_request_version.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/decode_request_version.ts b/src/core/packages/saved-objects/base-server-internal/src/version/decode_request_version.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/decode_request_version.ts rename to src/core/packages/saved-objects/base-server-internal/src/version/decode_request_version.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/decode_version.test.ts b/src/core/packages/saved-objects/base-server-internal/src/version/decode_version.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/decode_version.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/version/decode_version.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/decode_version.ts b/src/core/packages/saved-objects/base-server-internal/src/version/decode_version.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/decode_version.ts rename to src/core/packages/saved-objects/base-server-internal/src/version/decode_version.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/encode_hit_version.test.ts b/src/core/packages/saved-objects/base-server-internal/src/version/encode_hit_version.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/encode_hit_version.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/version/encode_hit_version.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/encode_hit_version.ts b/src/core/packages/saved-objects/base-server-internal/src/version/encode_hit_version.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/encode_hit_version.ts rename to src/core/packages/saved-objects/base-server-internal/src/version/encode_hit_version.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/encode_version.test.ts b/src/core/packages/saved-objects/base-server-internal/src/version/encode_version.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/encode_version.test.ts rename to src/core/packages/saved-objects/base-server-internal/src/version/encode_version.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/encode_version.ts b/src/core/packages/saved-objects/base-server-internal/src/version/encode_version.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/encode_version.ts rename to src/core/packages/saved-objects/base-server-internal/src/version/encode_version.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/index.ts b/src/core/packages/saved-objects/base-server-internal/src/version/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/src/version/index.ts rename to src/core/packages/saved-objects/base-server-internal/src/version/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/tsconfig.json b/src/core/packages/saved-objects/base-server-internal/tsconfig.json similarity index 89% rename from packages/core/saved-objects/core-saved-objects-base-server-internal/tsconfig.json rename to src/core/packages/saved-objects/base-server-internal/tsconfig.json index 5227e67e6947a..2c3ee88e4f8dc 100644 --- a/packages/core/saved-objects/core-saved-objects-base-server-internal/tsconfig.json +++ b/src/core/packages/saved-objects/base-server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 383bf19be92ef..7b6f1e68b5d5a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -568,8 +568,8 @@ "@kbn/core-saved-objects-api-server-internal/*": ["src/core/packages/saved-objects/api-server-internal/*"], "@kbn/core-saved-objects-api-server-mocks": ["packages/core/saved-objects/core-saved-objects-api-server-mocks"], "@kbn/core-saved-objects-api-server-mocks/*": ["packages/core/saved-objects/core-saved-objects-api-server-mocks/*"], - "@kbn/core-saved-objects-base-server-internal": ["packages/core/saved-objects/core-saved-objects-base-server-internal"], - "@kbn/core-saved-objects-base-server-internal/*": ["packages/core/saved-objects/core-saved-objects-base-server-internal/*"], + "@kbn/core-saved-objects-base-server-internal": ["src/core/packages/saved-objects/base-server-internal"], + "@kbn/core-saved-objects-base-server-internal/*": ["src/core/packages/saved-objects/base-server-internal/*"], "@kbn/core-saved-objects-base-server-mocks": ["packages/core/saved-objects/core-saved-objects-base-server-mocks"], "@kbn/core-saved-objects-base-server-mocks/*": ["packages/core/saved-objects/core-saved-objects-base-server-mocks/*"], "@kbn/core-saved-objects-browser": ["packages/core/saved-objects/core-saved-objects-browser"], diff --git a/yarn.lock b/yarn.lock index fdb6de346b839..07cae45a0eff9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4949,7 +4949,7 @@ version "0.0.0" uid "" -"@kbn/core-saved-objects-base-server-internal@link:packages/core/saved-objects/core-saved-objects-base-server-internal": +"@kbn/core-saved-objects-base-server-internal@link:src/core/packages/saved-objects/base-server-internal": version "0.0.0" uid "" From 6f7fe41a4f75ccc98746875415cec7a024d6c5ac Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:25:37 +0100 Subject: [PATCH 102/167] Relocating module `@kbn/core-saved-objects-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/saved-objects/browser}/README.md | 0 .../core/packages/saved-objects/browser}/index.ts | 0 .../core/packages/saved-objects/browser}/jest.config.js | 4 ++-- .../core/packages/saved-objects/browser}/kibana.jsonc | 0 .../core/packages/saved-objects/browser}/package.json | 0 .../core/packages/saved-objects/browser}/src/contracts.ts | 0 .../core/packages/saved-objects/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/saved-objects/core-saved-objects-browser => src/core/packages/saved-objects/browser}/README.md (100%) rename {packages/core/saved-objects/core-saved-objects-browser => src/core/packages/saved-objects/browser}/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-browser => src/core/packages/saved-objects/browser}/jest.config.js (83%) rename {packages/core/saved-objects/core-saved-objects-browser => src/core/packages/saved-objects/browser}/kibana.jsonc (100%) rename {packages/core/saved-objects/core-saved-objects-browser => src/core/packages/saved-objects/browser}/package.json (100%) rename {packages/core/saved-objects/core-saved-objects-browser => src/core/packages/saved-objects/browser}/src/contracts.ts (100%) rename {packages/core/saved-objects/core-saved-objects-browser => src/core/packages/saved-objects/browser}/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f1d383099cbd0..4e15cf76e02b3 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -105,7 +105,6 @@ packages/core/rendering/core-rendering-browser-mocks @elastic/kibana-core packages/core/rendering/core-rendering-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-base-server-mocks @elastic/kibana-core -packages/core/saved-objects/core-saved-objects-browser @elastic/kibana-core packages/core/saved-objects/core-saved-objects-browser-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-common @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/saved-objects/api-browser @elastic/kibana-core src/core/packages/saved-objects/api-server @elastic/kibana-core src/core/packages/saved-objects/api-server-internal @elastic/kibana-core src/core/packages/saved-objects/base-server-internal @elastic/kibana-core +src/core/packages/saved-objects/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 5900ffb344f17..73d3d45125ce6 100644 --- a/package.json +++ b/package.json @@ -371,7 +371,7 @@ "@kbn/core-saved-objects-api-server": "link:src/core/packages/saved-objects/api-server", "@kbn/core-saved-objects-api-server-internal": "link:src/core/packages/saved-objects/api-server-internal", "@kbn/core-saved-objects-base-server-internal": "link:src/core/packages/saved-objects/base-server-internal", - "@kbn/core-saved-objects-browser": "link:packages/core/saved-objects/core-saved-objects-browser", + "@kbn/core-saved-objects-browser": "link:src/core/packages/saved-objects/browser", "@kbn/core-saved-objects-browser-internal": "link:packages/core/saved-objects/core-saved-objects-browser-internal", "@kbn/core-saved-objects-common": "link:packages/core/saved-objects/core-saved-objects-common", "@kbn/core-saved-objects-import-export-server-internal": "link:packages/core/saved-objects/core-saved-objects-import-export-server-internal", diff --git a/packages/core/saved-objects/core-saved-objects-browser/README.md b/src/core/packages/saved-objects/browser/README.md similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser/README.md rename to src/core/packages/saved-objects/browser/README.md diff --git a/packages/core/saved-objects/core-saved-objects-browser/index.ts b/src/core/packages/saved-objects/browser/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser/index.ts rename to src/core/packages/saved-objects/browser/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-browser/jest.config.js b/src/core/packages/saved-objects/browser/jest.config.js similarity index 83% rename from packages/core/saved-objects/core-saved-objects-browser/jest.config.js rename to src/core/packages/saved-objects/browser/jest.config.js index 65b640763e840..c62c6007cd6e1 100644 --- a/packages/core/saved-objects/core-saved-objects-browser/jest.config.js +++ b/src/core/packages/saved-objects/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/saved-objects/core-saved-objects-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/saved-objects/browser'], }; diff --git a/packages/core/saved-objects/core-saved-objects-browser/kibana.jsonc b/src/core/packages/saved-objects/browser/kibana.jsonc similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser/kibana.jsonc rename to src/core/packages/saved-objects/browser/kibana.jsonc diff --git a/packages/core/saved-objects/core-saved-objects-browser/package.json b/src/core/packages/saved-objects/browser/package.json similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser/package.json rename to src/core/packages/saved-objects/browser/package.json diff --git a/packages/core/saved-objects/core-saved-objects-browser/src/contracts.ts b/src/core/packages/saved-objects/browser/src/contracts.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser/src/contracts.ts rename to src/core/packages/saved-objects/browser/src/contracts.ts diff --git a/packages/core/saved-objects/core-saved-objects-browser/tsconfig.json b/src/core/packages/saved-objects/browser/tsconfig.json similarity index 83% rename from packages/core/saved-objects/core-saved-objects-browser/tsconfig.json rename to src/core/packages/saved-objects/browser/tsconfig.json index 737e72c758c99..443dc4821ca4f 100644 --- a/packages/core/saved-objects/core-saved-objects-browser/tsconfig.json +++ b/src/core/packages/saved-objects/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 7b6f1e68b5d5a..ff3a38a7e75c4 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -572,8 +572,8 @@ "@kbn/core-saved-objects-base-server-internal/*": ["src/core/packages/saved-objects/base-server-internal/*"], "@kbn/core-saved-objects-base-server-mocks": ["packages/core/saved-objects/core-saved-objects-base-server-mocks"], "@kbn/core-saved-objects-base-server-mocks/*": ["packages/core/saved-objects/core-saved-objects-base-server-mocks/*"], - "@kbn/core-saved-objects-browser": ["packages/core/saved-objects/core-saved-objects-browser"], - "@kbn/core-saved-objects-browser/*": ["packages/core/saved-objects/core-saved-objects-browser/*"], + "@kbn/core-saved-objects-browser": ["src/core/packages/saved-objects/browser"], + "@kbn/core-saved-objects-browser/*": ["src/core/packages/saved-objects/browser/*"], "@kbn/core-saved-objects-browser-internal": ["packages/core/saved-objects/core-saved-objects-browser-internal"], "@kbn/core-saved-objects-browser-internal/*": ["packages/core/saved-objects/core-saved-objects-browser-internal/*"], "@kbn/core-saved-objects-browser-mocks": ["packages/core/saved-objects/core-saved-objects-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index 07cae45a0eff9..4e0f95cf35ae3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4965,7 +4965,7 @@ version "0.0.0" uid "" -"@kbn/core-saved-objects-browser@link:packages/core/saved-objects/core-saved-objects-browser": +"@kbn/core-saved-objects-browser@link:src/core/packages/saved-objects/browser": version "0.0.0" uid "" From 1ecae9f40af29d3fdb5c6c8aa06730f001ce04a4 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:26:33 +0100 Subject: [PATCH 103/167] Relocating module `@kbn/core-saved-objects-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/saved-objects/browser-internal}/README.md | 0 .../core/packages/saved-objects/browser-internal}/index.ts | 0 .../packages/saved-objects/browser-internal}/jest.config.js | 4 ++-- .../packages/saved-objects/browser-internal}/kibana.jsonc | 0 .../packages/saved-objects/browser-internal}/package.json | 0 .../browser-internal}/src/saved_objects_client.test.ts | 0 .../browser-internal}/src/saved_objects_client.ts | 0 .../browser-internal}/src/saved_objects_service.ts | 0 .../browser-internal}/src/simple_saved_object.test.ts | 0 .../browser-internal}/src/simple_saved_object.ts | 0 .../packages/saved-objects/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/saved-objects/core-saved-objects-browser-internal => src/core/packages/saved-objects/browser-internal}/README.md (100%) rename {packages/core/saved-objects/core-saved-objects-browser-internal => src/core/packages/saved-objects/browser-internal}/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-browser-internal => src/core/packages/saved-objects/browser-internal}/jest.config.js (81%) rename {packages/core/saved-objects/core-saved-objects-browser-internal => src/core/packages/saved-objects/browser-internal}/kibana.jsonc (100%) rename {packages/core/saved-objects/core-saved-objects-browser-internal => src/core/packages/saved-objects/browser-internal}/package.json (100%) rename {packages/core/saved-objects/core-saved-objects-browser-internal => src/core/packages/saved-objects/browser-internal}/src/saved_objects_client.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-browser-internal => src/core/packages/saved-objects/browser-internal}/src/saved_objects_client.ts (100%) rename {packages/core/saved-objects/core-saved-objects-browser-internal => src/core/packages/saved-objects/browser-internal}/src/saved_objects_service.ts (100%) rename {packages/core/saved-objects/core-saved-objects-browser-internal => src/core/packages/saved-objects/browser-internal}/src/simple_saved_object.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-browser-internal => src/core/packages/saved-objects/browser-internal}/src/simple_saved_object.ts (100%) rename {packages/core/saved-objects/core-saved-objects-browser-internal => src/core/packages/saved-objects/browser-internal}/tsconfig.json (91%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4e15cf76e02b3..8f4333b403c24 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -105,7 +105,6 @@ packages/core/rendering/core-rendering-browser-mocks @elastic/kibana-core packages/core/rendering/core-rendering-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-base-server-mocks @elastic/kibana-core -packages/core/saved-objects/core-saved-objects-browser-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-common @elastic/kibana-core packages/core/saved-objects/core-saved-objects-import-export-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/saved-objects/api-server @elastic/kibana-core src/core/packages/saved-objects/api-server-internal @elastic/kibana-core src/core/packages/saved-objects/base-server-internal @elastic/kibana-core src/core/packages/saved-objects/browser @elastic/kibana-core +src/core/packages/saved-objects/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 73d3d45125ce6..20f41b4d3bc41 100644 --- a/package.json +++ b/package.json @@ -372,7 +372,7 @@ "@kbn/core-saved-objects-api-server-internal": "link:src/core/packages/saved-objects/api-server-internal", "@kbn/core-saved-objects-base-server-internal": "link:src/core/packages/saved-objects/base-server-internal", "@kbn/core-saved-objects-browser": "link:src/core/packages/saved-objects/browser", - "@kbn/core-saved-objects-browser-internal": "link:packages/core/saved-objects/core-saved-objects-browser-internal", + "@kbn/core-saved-objects-browser-internal": "link:src/core/packages/saved-objects/browser-internal", "@kbn/core-saved-objects-common": "link:packages/core/saved-objects/core-saved-objects-common", "@kbn/core-saved-objects-import-export-server-internal": "link:packages/core/saved-objects/core-saved-objects-import-export-server-internal", "@kbn/core-saved-objects-migration-server-internal": "link:packages/core/saved-objects/core-saved-objects-migration-server-internal", diff --git a/packages/core/saved-objects/core-saved-objects-browser-internal/README.md b/src/core/packages/saved-objects/browser-internal/README.md similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser-internal/README.md rename to src/core/packages/saved-objects/browser-internal/README.md diff --git a/packages/core/saved-objects/core-saved-objects-browser-internal/index.ts b/src/core/packages/saved-objects/browser-internal/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser-internal/index.ts rename to src/core/packages/saved-objects/browser-internal/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-browser-internal/jest.config.js b/src/core/packages/saved-objects/browser-internal/jest.config.js similarity index 81% rename from packages/core/saved-objects/core-saved-objects-browser-internal/jest.config.js rename to src/core/packages/saved-objects/browser-internal/jest.config.js index a56574b5d5db3..55dad3a27978d 100644 --- a/packages/core/saved-objects/core-saved-objects-browser-internal/jest.config.js +++ b/src/core/packages/saved-objects/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/saved-objects/core-saved-objects-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/saved-objects/browser-internal'], }; diff --git a/packages/core/saved-objects/core-saved-objects-browser-internal/kibana.jsonc b/src/core/packages/saved-objects/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser-internal/kibana.jsonc rename to src/core/packages/saved-objects/browser-internal/kibana.jsonc diff --git a/packages/core/saved-objects/core-saved-objects-browser-internal/package.json b/src/core/packages/saved-objects/browser-internal/package.json similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser-internal/package.json rename to src/core/packages/saved-objects/browser-internal/package.json diff --git a/packages/core/saved-objects/core-saved-objects-browser-internal/src/saved_objects_client.test.ts b/src/core/packages/saved-objects/browser-internal/src/saved_objects_client.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser-internal/src/saved_objects_client.test.ts rename to src/core/packages/saved-objects/browser-internal/src/saved_objects_client.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-browser-internal/src/saved_objects_client.ts b/src/core/packages/saved-objects/browser-internal/src/saved_objects_client.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser-internal/src/saved_objects_client.ts rename to src/core/packages/saved-objects/browser-internal/src/saved_objects_client.ts diff --git a/packages/core/saved-objects/core-saved-objects-browser-internal/src/saved_objects_service.ts b/src/core/packages/saved-objects/browser-internal/src/saved_objects_service.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser-internal/src/saved_objects_service.ts rename to src/core/packages/saved-objects/browser-internal/src/saved_objects_service.ts diff --git a/packages/core/saved-objects/core-saved-objects-browser-internal/src/simple_saved_object.test.ts b/src/core/packages/saved-objects/browser-internal/src/simple_saved_object.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser-internal/src/simple_saved_object.test.ts rename to src/core/packages/saved-objects/browser-internal/src/simple_saved_object.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-browser-internal/src/simple_saved_object.ts b/src/core/packages/saved-objects/browser-internal/src/simple_saved_object.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-browser-internal/src/simple_saved_object.ts rename to src/core/packages/saved-objects/browser-internal/src/simple_saved_object.ts diff --git a/packages/core/saved-objects/core-saved-objects-browser-internal/tsconfig.json b/src/core/packages/saved-objects/browser-internal/tsconfig.json similarity index 91% rename from packages/core/saved-objects/core-saved-objects-browser-internal/tsconfig.json rename to src/core/packages/saved-objects/browser-internal/tsconfig.json index d9b414c39220e..03d4b5959f090 100644 --- a/packages/core/saved-objects/core-saved-objects-browser-internal/tsconfig.json +++ b/src/core/packages/saved-objects/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index ff3a38a7e75c4..7b2630e007c74 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -574,8 +574,8 @@ "@kbn/core-saved-objects-base-server-mocks/*": ["packages/core/saved-objects/core-saved-objects-base-server-mocks/*"], "@kbn/core-saved-objects-browser": ["src/core/packages/saved-objects/browser"], "@kbn/core-saved-objects-browser/*": ["src/core/packages/saved-objects/browser/*"], - "@kbn/core-saved-objects-browser-internal": ["packages/core/saved-objects/core-saved-objects-browser-internal"], - "@kbn/core-saved-objects-browser-internal/*": ["packages/core/saved-objects/core-saved-objects-browser-internal/*"], + "@kbn/core-saved-objects-browser-internal": ["src/core/packages/saved-objects/browser-internal"], + "@kbn/core-saved-objects-browser-internal/*": ["src/core/packages/saved-objects/browser-internal/*"], "@kbn/core-saved-objects-browser-mocks": ["packages/core/saved-objects/core-saved-objects-browser-mocks"], "@kbn/core-saved-objects-browser-mocks/*": ["packages/core/saved-objects/core-saved-objects-browser-mocks/*"], "@kbn/core-saved-objects-common": ["packages/core/saved-objects/core-saved-objects-common"], diff --git a/yarn.lock b/yarn.lock index 4e0f95cf35ae3..f5d86eaab96ff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4957,7 +4957,7 @@ version "0.0.0" uid "" -"@kbn/core-saved-objects-browser-internal@link:packages/core/saved-objects/core-saved-objects-browser-internal": +"@kbn/core-saved-objects-browser-internal@link:src/core/packages/saved-objects/browser-internal": version "0.0.0" uid "" From 60f6cb20dd7eb2c5f433ba374cb16719870709b9 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:27:30 +0100 Subject: [PATCH 104/167] Relocating module `@kbn/core-saved-objects-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/saved-objects/common}/README.md | 0 .../core/packages/saved-objects/common}/index.ts | 0 .../core/packages/saved-objects/common}/jest.config.js | 4 ++-- .../core/packages/saved-objects/common}/kibana.jsonc | 0 .../core/packages/saved-objects/common}/package.json | 0 .../core/packages/saved-objects/common}/src/saved_objects.ts | 0 .../saved-objects/common}/src/saved_objects_imports.ts | 0 .../core/packages/saved-objects/common}/src/server_types.ts | 0 .../core/packages/saved-objects/common}/src/types.ts | 0 .../core/packages/saved-objects/common}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/saved-objects/core-saved-objects-common => src/core/packages/saved-objects/common}/README.md (100%) rename {packages/core/saved-objects/core-saved-objects-common => src/core/packages/saved-objects/common}/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-common => src/core/packages/saved-objects/common}/jest.config.js (83%) rename {packages/core/saved-objects/core-saved-objects-common => src/core/packages/saved-objects/common}/kibana.jsonc (100%) rename {packages/core/saved-objects/core-saved-objects-common => src/core/packages/saved-objects/common}/package.json (100%) rename {packages/core/saved-objects/core-saved-objects-common => src/core/packages/saved-objects/common}/src/saved_objects.ts (100%) rename {packages/core/saved-objects/core-saved-objects-common => src/core/packages/saved-objects/common}/src/saved_objects_imports.ts (100%) rename {packages/core/saved-objects/core-saved-objects-common => src/core/packages/saved-objects/common}/src/server_types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-common => src/core/packages/saved-objects/common}/src/types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-common => src/core/packages/saved-objects/common}/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8f4333b403c24..8e5e8e3a50a86 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -106,7 +106,6 @@ packages/core/rendering/core-rendering-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-base-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-core -packages/core/saved-objects/core-saved-objects-common @elastic/kibana-core packages/core/saved-objects/core-saved-objects-import-export-server-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/saved-objects/api-server-internal @elastic/kibana-core src/core/packages/saved-objects/base-server-internal @elastic/kibana-core src/core/packages/saved-objects/browser @elastic/kibana-core src/core/packages/saved-objects/browser-internal @elastic/kibana-core +src/core/packages/saved-objects/common @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 20f41b4d3bc41..0f9eed5c9c3e5 100644 --- a/package.json +++ b/package.json @@ -373,7 +373,7 @@ "@kbn/core-saved-objects-base-server-internal": "link:src/core/packages/saved-objects/base-server-internal", "@kbn/core-saved-objects-browser": "link:src/core/packages/saved-objects/browser", "@kbn/core-saved-objects-browser-internal": "link:src/core/packages/saved-objects/browser-internal", - "@kbn/core-saved-objects-common": "link:packages/core/saved-objects/core-saved-objects-common", + "@kbn/core-saved-objects-common": "link:src/core/packages/saved-objects/common", "@kbn/core-saved-objects-import-export-server-internal": "link:packages/core/saved-objects/core-saved-objects-import-export-server-internal", "@kbn/core-saved-objects-migration-server-internal": "link:packages/core/saved-objects/core-saved-objects-migration-server-internal", "@kbn/core-saved-objects-server": "link:packages/core/saved-objects/core-saved-objects-server", diff --git a/packages/core/saved-objects/core-saved-objects-common/README.md b/src/core/packages/saved-objects/common/README.md similarity index 100% rename from packages/core/saved-objects/core-saved-objects-common/README.md rename to src/core/packages/saved-objects/common/README.md diff --git a/packages/core/saved-objects/core-saved-objects-common/index.ts b/src/core/packages/saved-objects/common/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-common/index.ts rename to src/core/packages/saved-objects/common/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-common/jest.config.js b/src/core/packages/saved-objects/common/jest.config.js similarity index 83% rename from packages/core/saved-objects/core-saved-objects-common/jest.config.js rename to src/core/packages/saved-objects/common/jest.config.js index d35aa938edac9..8e6d138939682 100644 --- a/packages/core/saved-objects/core-saved-objects-common/jest.config.js +++ b/src/core/packages/saved-objects/common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/saved-objects/core-saved-objects-common'], + rootDir: '../../../../..', + roots: ['/src/core/packages/saved-objects/common'], }; diff --git a/packages/core/saved-objects/core-saved-objects-common/kibana.jsonc b/src/core/packages/saved-objects/common/kibana.jsonc similarity index 100% rename from packages/core/saved-objects/core-saved-objects-common/kibana.jsonc rename to src/core/packages/saved-objects/common/kibana.jsonc diff --git a/packages/core/saved-objects/core-saved-objects-common/package.json b/src/core/packages/saved-objects/common/package.json similarity index 100% rename from packages/core/saved-objects/core-saved-objects-common/package.json rename to src/core/packages/saved-objects/common/package.json diff --git a/packages/core/saved-objects/core-saved-objects-common/src/saved_objects.ts b/src/core/packages/saved-objects/common/src/saved_objects.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-common/src/saved_objects.ts rename to src/core/packages/saved-objects/common/src/saved_objects.ts diff --git a/packages/core/saved-objects/core-saved-objects-common/src/saved_objects_imports.ts b/src/core/packages/saved-objects/common/src/saved_objects_imports.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-common/src/saved_objects_imports.ts rename to src/core/packages/saved-objects/common/src/saved_objects_imports.ts diff --git a/packages/core/saved-objects/core-saved-objects-common/src/server_types.ts b/src/core/packages/saved-objects/common/src/server_types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-common/src/server_types.ts rename to src/core/packages/saved-objects/common/src/server_types.ts diff --git a/packages/core/saved-objects/core-saved-objects-common/src/types.ts b/src/core/packages/saved-objects/common/src/types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-common/src/types.ts rename to src/core/packages/saved-objects/common/src/types.ts diff --git a/packages/core/saved-objects/core-saved-objects-common/tsconfig.json b/src/core/packages/saved-objects/common/tsconfig.json similarity index 78% rename from packages/core/saved-objects/core-saved-objects-common/tsconfig.json rename to src/core/packages/saved-objects/common/tsconfig.json index e7513f6481e89..131ff3e6bb433 100644 --- a/packages/core/saved-objects/core-saved-objects-common/tsconfig.json +++ b/src/core/packages/saved-objects/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 7b2630e007c74..960c61216edcc 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -578,8 +578,8 @@ "@kbn/core-saved-objects-browser-internal/*": ["src/core/packages/saved-objects/browser-internal/*"], "@kbn/core-saved-objects-browser-mocks": ["packages/core/saved-objects/core-saved-objects-browser-mocks"], "@kbn/core-saved-objects-browser-mocks/*": ["packages/core/saved-objects/core-saved-objects-browser-mocks/*"], - "@kbn/core-saved-objects-common": ["packages/core/saved-objects/core-saved-objects-common"], - "@kbn/core-saved-objects-common/*": ["packages/core/saved-objects/core-saved-objects-common/*"], + "@kbn/core-saved-objects-common": ["src/core/packages/saved-objects/common"], + "@kbn/core-saved-objects-common/*": ["src/core/packages/saved-objects/common/*"], "@kbn/core-saved-objects-import-export-server-internal": ["packages/core/saved-objects/core-saved-objects-import-export-server-internal"], "@kbn/core-saved-objects-import-export-server-internal/*": ["packages/core/saved-objects/core-saved-objects-import-export-server-internal/*"], "@kbn/core-saved-objects-import-export-server-mocks": ["packages/core/saved-objects/core-saved-objects-import-export-server-mocks"], diff --git a/yarn.lock b/yarn.lock index f5d86eaab96ff..8074ad160eb2c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4969,7 +4969,7 @@ version "0.0.0" uid "" -"@kbn/core-saved-objects-common@link:packages/core/saved-objects/core-saved-objects-common": +"@kbn/core-saved-objects-common@link:src/core/packages/saved-objects/common": version "0.0.0" uid "" From 7d8c91cf5a3641e2bc4569ec8aa0209e9cbba931 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:28:27 +0100 Subject: [PATCH 105/167] Relocating module `@kbn/core-saved-objects-import-export-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../saved-objects/import-export-server-internal}/README.md | 0 .../saved-objects/import-export-server-internal}/index.ts | 0 .../import-export-server-internal}/jest.config.js | 4 ++-- .../saved-objects/import-export-server-internal}/kibana.jsonc | 0 .../saved-objects/import-export-server-internal}/package.json | 0 .../src/export/apply_export_transforms.test.ts | 0 .../src/export/apply_export_transforms.ts | 0 .../src/export/collect_exported_objects.test.mocks.ts | 0 .../src/export/collect_exported_objects.test.ts | 0 .../src/export/collect_exported_objects.ts | 0 .../import-export-server-internal}/src/export/constants.ts | 0 .../import-export-server-internal}/src/export/errors.ts | 0 .../import-export-server-internal}/src/export/index.ts | 0 .../src/export/saved_objects_exporter.test.ts | 0 .../src/export/saved_objects_exporter.ts | 0 .../src/export/sort_objects.test.ts | 0 .../import-export-server-internal}/src/export/sort_objects.ts | 0 .../import-export-server-internal}/src/export/utils.test.ts | 0 .../import-export-server-internal}/src/export/utils.ts | 0 .../import-export-server-internal}/src/import/errors.ts | 0 .../src/import/import_saved_objects.test.mock.ts | 0 .../src/import/import_saved_objects.test.ts | 0 .../src/import/import_saved_objects.ts | 0 .../import-export-server-internal}/src/import/index.ts | 0 .../src/import/lib/check_conflicts.test.ts | 0 .../src/import/lib/check_conflicts.ts | 0 .../src/import/lib/check_origin_conflicts.test.mock.ts | 0 .../src/import/lib/check_origin_conflicts.test.ts | 0 .../src/import/lib/check_origin_conflicts.ts | 0 .../src/import/lib/check_reference_origins.test.mock.ts | 0 .../src/import/lib/check_reference_origins.test.ts | 0 .../src/import/lib/check_reference_origins.ts | 0 .../src/import/lib/collect_saved_objects.test.ts | 0 .../src/import/lib/collect_saved_objects.ts | 0 .../src/import/lib/create_limit_stream.test.ts | 0 .../src/import/lib/create_limit_stream.ts | 0 .../src/import/lib/create_objects_filter.test.ts | 0 .../src/import/lib/create_objects_filter.ts | 0 .../src/import/lib/create_saved_objects.test.ts | 0 .../src/import/lib/create_saved_objects.ts | 0 .../src/import/lib/execute_import_hooks.test.ts | 0 .../src/import/lib/execute_import_hooks.ts | 0 .../src/import/lib/extract_errors.test.ts | 0 .../src/import/lib/extract_errors.ts | 0 .../src/import/lib/get_import_state_map_for_retries.test.ts | 0 .../src/import/lib/get_import_state_map_for_retries.ts | 0 .../src/import/lib/get_non_unique_entries.test.ts | 0 .../src/import/lib/get_non_unique_entries.ts | 0 .../import-export-server-internal}/src/import/lib/index.ts | 0 .../src/import/lib/regenerate_ids.test.ts | 0 .../src/import/lib/regenerate_ids.ts | 0 .../src/import/lib/split_overwrites.test.ts | 0 .../src/import/lib/split_overwrites.ts | 0 .../import-export-server-internal}/src/import/lib/types.ts | 0 .../src/import/lib/utils.test.ts | 0 .../import-export-server-internal}/src/import/lib/utils.ts | 0 .../src/import/lib/validate_references.test.ts | 0 .../src/import/lib/validate_references.ts | 0 .../src/import/lib/validate_retries.test.ts | 0 .../src/import/lib/validate_retries.ts | 0 .../src/import/resolve_import_errors.test.mock.ts | 0 .../src/import/resolve_import_errors.test.ts | 0 .../src/import/resolve_import_errors.ts | 0 .../src/import/saved_objects_importer.ts | 0 .../import-export-server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 69 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/README.md (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/jest.config.js (80%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/kibana.jsonc (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/package.json (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/apply_export_transforms.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/apply_export_transforms.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/collect_exported_objects.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/collect_exported_objects.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/collect_exported_objects.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/constants.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/errors.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/saved_objects_exporter.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/saved_objects_exporter.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/sort_objects.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/sort_objects.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/utils.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/export/utils.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/errors.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/import_saved_objects.test.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/import_saved_objects.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/import_saved_objects.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/check_conflicts.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/check_conflicts.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/check_origin_conflicts.test.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/check_origin_conflicts.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/check_origin_conflicts.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/check_reference_origins.test.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/check_reference_origins.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/check_reference_origins.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/collect_saved_objects.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/collect_saved_objects.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/create_limit_stream.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/create_limit_stream.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/create_objects_filter.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/create_objects_filter.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/create_saved_objects.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/create_saved_objects.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/execute_import_hooks.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/execute_import_hooks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/extract_errors.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/extract_errors.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/get_import_state_map_for_retries.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/get_import_state_map_for_retries.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/get_non_unique_entries.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/get_non_unique_entries.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/regenerate_ids.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/regenerate_ids.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/split_overwrites.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/split_overwrites.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/utils.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/utils.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/validate_references.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/validate_references.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/validate_retries.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/lib/validate_retries.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/resolve_import_errors.test.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/resolve_import_errors.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/resolve_import_errors.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/src/import/saved_objects_importer.ts (100%) rename {packages/core/saved-objects/core-saved-objects-import-export-server-internal => src/core/packages/saved-objects/import-export-server-internal}/tsconfig.json (93%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8e5e8e3a50a86..02d849eac745b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -106,7 +106,6 @@ packages/core/rendering/core-rendering-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-api-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-base-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-core -packages/core/saved-objects/core-saved-objects-import-export-server-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/saved-objects/base-server-internal @elastic/kibana-core src/core/packages/saved-objects/browser @elastic/kibana-core src/core/packages/saved-objects/browser-internal @elastic/kibana-core src/core/packages/saved-objects/common @elastic/kibana-core +src/core/packages/saved-objects/import-export-server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 0f9eed5c9c3e5..af4c4acd8b85b 100644 --- a/package.json +++ b/package.json @@ -374,7 +374,7 @@ "@kbn/core-saved-objects-browser": "link:src/core/packages/saved-objects/browser", "@kbn/core-saved-objects-browser-internal": "link:src/core/packages/saved-objects/browser-internal", "@kbn/core-saved-objects-common": "link:src/core/packages/saved-objects/common", - "@kbn/core-saved-objects-import-export-server-internal": "link:packages/core/saved-objects/core-saved-objects-import-export-server-internal", + "@kbn/core-saved-objects-import-export-server-internal": "link:src/core/packages/saved-objects/import-export-server-internal", "@kbn/core-saved-objects-migration-server-internal": "link:packages/core/saved-objects/core-saved-objects-migration-server-internal", "@kbn/core-saved-objects-server": "link:packages/core/saved-objects/core-saved-objects-server", "@kbn/core-saved-objects-server-internal": "link:packages/core/saved-objects/core-saved-objects-server-internal", diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/README.md b/src/core/packages/saved-objects/import-export-server-internal/README.md similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/README.md rename to src/core/packages/saved-objects/import-export-server-internal/README.md diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/index.ts b/src/core/packages/saved-objects/import-export-server-internal/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/index.ts rename to src/core/packages/saved-objects/import-export-server-internal/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/jest.config.js b/src/core/packages/saved-objects/import-export-server-internal/jest.config.js similarity index 80% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/jest.config.js rename to src/core/packages/saved-objects/import-export-server-internal/jest.config.js index 7ba02dc3f6782..2dc64cd3d45ce 100644 --- a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/jest.config.js +++ b/src/core/packages/saved-objects/import-export-server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/saved-objects/core-saved-objects-import-export-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/saved-objects/import-export-server-internal'], }; diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/kibana.jsonc b/src/core/packages/saved-objects/import-export-server-internal/kibana.jsonc similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/kibana.jsonc rename to src/core/packages/saved-objects/import-export-server-internal/kibana.jsonc diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/package.json b/src/core/packages/saved-objects/import-export-server-internal/package.json similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/package.json rename to src/core/packages/saved-objects/import-export-server-internal/package.json diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/apply_export_transforms.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/apply_export_transforms.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/apply_export_transforms.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/apply_export_transforms.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/apply_export_transforms.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/apply_export_transforms.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/apply_export_transforms.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/apply_export_transforms.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/collect_exported_objects.test.mocks.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/collect_exported_objects.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/collect_exported_objects.test.mocks.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/collect_exported_objects.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/collect_exported_objects.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/collect_exported_objects.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/collect_exported_objects.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/collect_exported_objects.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/collect_exported_objects.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/collect_exported_objects.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/collect_exported_objects.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/collect_exported_objects.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/constants.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/constants.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/constants.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/constants.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/errors.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/errors.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/errors.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/errors.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/index.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/index.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/saved_objects_exporter.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/saved_objects_exporter.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/saved_objects_exporter.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/saved_objects_exporter.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/saved_objects_exporter.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/saved_objects_exporter.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/saved_objects_exporter.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/saved_objects_exporter.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/sort_objects.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/sort_objects.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/sort_objects.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/sort_objects.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/sort_objects.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/sort_objects.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/sort_objects.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/sort_objects.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/utils.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/utils.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/utils.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/utils.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/utils.ts b/src/core/packages/saved-objects/import-export-server-internal/src/export/utils.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/export/utils.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/export/utils.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/errors.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/errors.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/errors.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/errors.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/import_saved_objects.test.mock.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/import_saved_objects.test.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/import_saved_objects.test.mock.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/import_saved_objects.test.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/import_saved_objects.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/import_saved_objects.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/import_saved_objects.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/import_saved_objects.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/import_saved_objects.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/import_saved_objects.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/import_saved_objects.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/import_saved_objects.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/index.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/index.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_conflicts.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_conflicts.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_conflicts.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_conflicts.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_conflicts.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_conflicts.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_conflicts.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_conflicts.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_origin_conflicts.test.mock.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_origin_conflicts.test.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_origin_conflicts.test.mock.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_origin_conflicts.test.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_origin_conflicts.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_origin_conflicts.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_origin_conflicts.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_origin_conflicts.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_origin_conflicts.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_origin_conflicts.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_origin_conflicts.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_origin_conflicts.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_reference_origins.test.mock.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_reference_origins.test.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_reference_origins.test.mock.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_reference_origins.test.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_reference_origins.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_reference_origins.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_reference_origins.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_reference_origins.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_reference_origins.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_reference_origins.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/check_reference_origins.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/check_reference_origins.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/collect_saved_objects.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/collect_saved_objects.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/collect_saved_objects.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/collect_saved_objects.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/collect_saved_objects.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/collect_saved_objects.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/collect_saved_objects.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/collect_saved_objects.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/create_limit_stream.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/create_limit_stream.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/create_limit_stream.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/create_limit_stream.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/create_limit_stream.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/create_limit_stream.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/create_limit_stream.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/create_limit_stream.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/create_objects_filter.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/create_objects_filter.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/create_objects_filter.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/create_objects_filter.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/create_objects_filter.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/create_objects_filter.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/create_objects_filter.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/create_objects_filter.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/create_saved_objects.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/create_saved_objects.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/create_saved_objects.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/create_saved_objects.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/create_saved_objects.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/create_saved_objects.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/create_saved_objects.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/create_saved_objects.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/execute_import_hooks.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/execute_import_hooks.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/execute_import_hooks.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/execute_import_hooks.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/execute_import_hooks.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/execute_import_hooks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/execute_import_hooks.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/execute_import_hooks.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/extract_errors.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/extract_errors.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/extract_errors.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/extract_errors.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/extract_errors.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/extract_errors.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/extract_errors.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/extract_errors.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/get_import_state_map_for_retries.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/get_import_state_map_for_retries.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/get_import_state_map_for_retries.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/get_import_state_map_for_retries.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/get_import_state_map_for_retries.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/get_import_state_map_for_retries.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/get_import_state_map_for_retries.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/get_import_state_map_for_retries.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/get_non_unique_entries.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/get_non_unique_entries.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/get_non_unique_entries.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/get_non_unique_entries.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/get_non_unique_entries.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/get_non_unique_entries.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/get_non_unique_entries.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/get_non_unique_entries.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/index.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/index.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/regenerate_ids.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/regenerate_ids.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/regenerate_ids.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/regenerate_ids.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/regenerate_ids.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/regenerate_ids.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/regenerate_ids.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/regenerate_ids.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/split_overwrites.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/split_overwrites.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/split_overwrites.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/split_overwrites.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/split_overwrites.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/split_overwrites.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/split_overwrites.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/split_overwrites.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/types.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/types.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/types.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/utils.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/utils.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/utils.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/utils.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/utils.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/utils.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/utils.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/utils.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/validate_references.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/validate_references.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/validate_references.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/validate_references.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/validate_references.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/validate_references.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/validate_references.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/validate_references.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/validate_retries.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/validate_retries.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/validate_retries.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/validate_retries.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/validate_retries.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/lib/validate_retries.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/lib/validate_retries.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/lib/validate_retries.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/resolve_import_errors.test.mock.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/resolve_import_errors.test.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/resolve_import_errors.test.mock.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/resolve_import_errors.test.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/resolve_import_errors.test.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/resolve_import_errors.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/resolve_import_errors.test.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/resolve_import_errors.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/resolve_import_errors.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/resolve_import_errors.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/resolve_import_errors.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/resolve_import_errors.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/saved_objects_importer.ts b/src/core/packages/saved-objects/import-export-server-internal/src/import/saved_objects_importer.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/src/import/saved_objects_importer.ts rename to src/core/packages/saved-objects/import-export-server-internal/src/import/saved_objects_importer.ts diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/tsconfig.json b/src/core/packages/saved-objects/import-export-server-internal/tsconfig.json similarity index 93% rename from packages/core/saved-objects/core-saved-objects-import-export-server-internal/tsconfig.json rename to src/core/packages/saved-objects/import-export-server-internal/tsconfig.json index a0d9ea37484a3..6f9a9360ba0cc 100644 --- a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/tsconfig.json +++ b/src/core/packages/saved-objects/import-export-server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 960c61216edcc..b73c64a93d0d7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -580,8 +580,8 @@ "@kbn/core-saved-objects-browser-mocks/*": ["packages/core/saved-objects/core-saved-objects-browser-mocks/*"], "@kbn/core-saved-objects-common": ["src/core/packages/saved-objects/common"], "@kbn/core-saved-objects-common/*": ["src/core/packages/saved-objects/common/*"], - "@kbn/core-saved-objects-import-export-server-internal": ["packages/core/saved-objects/core-saved-objects-import-export-server-internal"], - "@kbn/core-saved-objects-import-export-server-internal/*": ["packages/core/saved-objects/core-saved-objects-import-export-server-internal/*"], + "@kbn/core-saved-objects-import-export-server-internal": ["src/core/packages/saved-objects/import-export-server-internal"], + "@kbn/core-saved-objects-import-export-server-internal/*": ["src/core/packages/saved-objects/import-export-server-internal/*"], "@kbn/core-saved-objects-import-export-server-mocks": ["packages/core/saved-objects/core-saved-objects-import-export-server-mocks"], "@kbn/core-saved-objects-import-export-server-mocks/*": ["packages/core/saved-objects/core-saved-objects-import-export-server-mocks/*"], "@kbn/core-saved-objects-migration-server-internal": ["packages/core/saved-objects/core-saved-objects-migration-server-internal"], diff --git a/yarn.lock b/yarn.lock index 8074ad160eb2c..78f4b9f9dac5a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4973,7 +4973,7 @@ version "0.0.0" uid "" -"@kbn/core-saved-objects-import-export-server-internal@link:packages/core/saved-objects/core-saved-objects-import-export-server-internal": +"@kbn/core-saved-objects-import-export-server-internal@link:src/core/packages/saved-objects/import-export-server-internal": version "0.0.0" uid "" From 9bbce720af2ef87f6c4b622c9aa49dae05312dba Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:29:25 +0100 Subject: [PATCH 106/167] Relocating module `@kbn/core-saved-objects-migration-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../saved-objects/migration-server-internal}/README.md | 0 .../saved-objects/migration-server-internal}/index.ts | 0 .../saved-objects/migration-server-internal}/jest.config.js | 4 ++-- .../saved-objects/migration-server-internal}/kibana.jsonc | 0 .../saved-objects/migration-server-internal}/package.json | 0 .../saved-objects/migration-server-internal}/src/README.md | 0 .../__snapshots__/get_outdated_documents_query.test.ts.snap | 0 .../src/__snapshots__/kibana_migrator.test.ts.snap | 0 .../migrations_state_action_machine.test.ts.snap | 0 .../src/actions/bulk_overwrite_transformed_documents.test.ts | 0 .../src/actions/bulk_overwrite_transformed_documents.ts | 0 .../src/actions/calculate_exclude_filters.test.ts | 0 .../src/actions/calculate_exclude_filters.ts | 0 .../src/actions/catch_retryable_es_client_errors.test.ts | 0 .../src/actions/catch_retryable_es_client_errors.ts | 0 .../src/actions/check_cluster_routing_allocation.test.ts | 0 .../src/actions/check_cluster_routing_allocation.ts | 0 .../src/actions/check_for_unknown_docs.mocks.ts | 0 .../src/actions/check_for_unknown_docs.test.ts | 0 .../src/actions/check_for_unknown_docs.ts | 0 .../src/actions/check_target_mappings.test.ts | 0 .../src/actions/check_target_mappings.ts | 0 .../src/actions/cleanup_unknown_and_excluded.mocks.ts | 0 .../src/actions/cleanup_unknown_and_excluded.test.ts | 0 .../src/actions/cleanup_unknown_and_excluded.ts | 0 .../src/actions/clone_index.test.ts | 0 .../migration-server-internal}/src/actions/clone_index.ts | 0 .../migration-server-internal}/src/actions/close_pit.test.ts | 0 .../migration-server-internal}/src/actions/close_pit.ts | 0 .../migration-server-internal}/src/actions/constants.ts | 0 .../src/actions/create_index.test.ts | 0 .../migration-server-internal}/src/actions/create_index.ts | 0 .../src/actions/delete_by_query.test.ts | 0 .../migration-server-internal}/src/actions/delete_by_query.ts | 0 .../migration-server-internal}/src/actions/es_errors.test.ts | 0 .../migration-server-internal}/src/actions/es_errors.ts | 0 .../src/actions/fetch_indices.test.ts | 0 .../migration-server-internal}/src/actions/fetch_indices.ts | 0 .../migration-server-internal}/src/actions/index.ts | 0 .../migration-server-internal}/src/actions/open_pit.test.ts | 0 .../migration-server-internal}/src/actions/open_pit.ts | 0 .../src/actions/pickup_updated_mappings.test.ts | 0 .../src/actions/pickup_updated_mappings.ts | 0 .../src/actions/read_with_pit.test.ts | 0 .../migration-server-internal}/src/actions/read_with_pit.ts | 0 .../src/actions/refresh_index.test.ts | 0 .../migration-server-internal}/src/actions/refresh_index.ts | 0 .../migration-server-internal}/src/actions/reindex.test.ts | 0 .../migration-server-internal}/src/actions/reindex.ts | 0 .../src/actions/remove_write_block.test.ts | 0 .../src/actions/remove_write_block.ts | 0 .../src/actions/safe_write_block.test.ts | 0 .../src/actions/safe_write_block.ts | 0 .../src/actions/set_write_block.test.ts | 0 .../migration-server-internal}/src/actions/set_write_block.ts | 0 .../src/actions/synchronize_migrators.test.ts | 0 .../src/actions/synchronize_migrators.ts | 0 .../migration-server-internal}/src/actions/transform_docs.ts | 0 .../src/actions/update_aliases.test.ts | 0 .../migration-server-internal}/src/actions/update_aliases.ts | 0 .../src/actions/update_and_pickup_mappings.test.ts | 0 .../src/actions/update_and_pickup_mappings.ts | 0 .../src/actions/update_mappings.test.ts | 0 .../migration-server-internal}/src/actions/update_mappings.ts | 0 .../src/actions/update_source_mappings_properties.test.ts | 0 .../src/actions/update_source_mappings_properties.ts | 0 .../src/actions/wait_for_delete_by_query_task.test.ts | 0 .../src/actions/wait_for_delete_by_query_task.ts | 0 .../src/actions/wait_for_index_status.test.ts | 0 .../src/actions/wait_for_index_status.ts | 0 .../src/actions/wait_for_pickup_updated_mappings_task.test.ts | 0 .../src/actions/wait_for_pickup_updated_mappings_task.ts | 0 .../src/actions/wait_for_reindex_task.test.ts | 0 .../src/actions/wait_for_reindex_task.ts | 0 .../src/actions/wait_for_task.test.ts | 0 .../migration-server-internal}/src/actions/wait_for_task.ts | 0 .../migration-server-internal}/src/common/constants.ts | 0 .../migration-server-internal}/src/common/redact_state.ts | 0 .../migration-server-internal}/src/common/utils/delay.test.ts | 0 .../migration-server-internal}/src/common/utils/delay.ts | 0 .../migration-server-internal}/src/common/utils/index.ts | 0 .../migration-server-internal}/src/common/utils/logs.test.ts | 0 .../migration-server-internal}/src/common/utils/logs.ts | 0 .../src/core/__snapshots__/build_active_mappings.test.ts.snap | 0 .../src/core/build_active_mappings.test.ts | 0 .../src/core/build_active_mappings.ts | 0 .../src/core/build_index_map.test.ts | 0 .../migration-server-internal}/src/core/build_index_map.ts | 0 .../src/core/build_pickup_mappings_query.test.ts | 0 .../src/core/build_pickup_mappings_query.ts | 0 .../src/core/build_types_mappings.ts | 0 .../src/core/compare_mappings.test.ts | 0 .../migration-server-internal}/src/core/compare_mappings.ts | 0 .../migration-server-internal}/src/core/diff_mappings.test.ts | 0 .../migration-server-internal}/src/core/diff_mappings.ts | 0 .../migration-server-internal}/src/core/index.ts | 0 .../src/core/migrate_raw_docs.test.ts | 0 .../migration-server-internal}/src/core/migrate_raw_docs.ts | 0 .../migration-server-internal}/src/core/migration_logger.ts | 0 .../src/core/regenerate_object_id.ts | 0 .../src/core/transform_saved_object_document_error.test.ts | 0 .../src/core/transform_saved_object_document_error.ts | 0 .../migration-server-internal}/src/core/unused_types.ts | 0 .../document_migrator/build_active_migrations.test.mocks.ts | 0 .../src/document_migrator/build_active_migrations.test.ts | 0 .../src/document_migrator/build_active_migrations.ts | 0 .../src/document_migrator/document_migrator.test.mock.ts | 0 .../src/document_migrator/document_migrator.test.ts | 0 .../src/document_migrator/document_migrator.ts | 0 .../migration-server-internal}/src/document_migrator/index.ts | 0 .../src/document_migrator/internal_transforms.ts | 0 .../src/document_migrator/migrations/index.ts | 0 .../migrations/transform_migration_version.test.ts | 0 .../migrations/transform_migration_version.ts | 0 .../migrations/transform_set_managed_default.test.ts | 0 .../migrations/transform_set_managed_default.ts | 0 .../src/document_migrator/model_version.test.mocks.ts | 0 .../src/document_migrator/model_version.test.ts | 0 .../src/document_migrator/model_version.ts | 0 .../document_migrator/pipelines/downgrade_pipeline.test.ts | 0 .../src/document_migrator/pipelines/downgrade_pipeline.ts | 0 .../src/document_migrator/pipelines/index.ts | 0 .../src/document_migrator/pipelines/types.ts | 0 .../src/document_migrator/pipelines/upgrade_pipeline.test.ts | 0 .../src/document_migrator/pipelines/upgrade_pipeline.ts | 0 .../src/document_migrator/pipelines/utils.ts | 0 .../migration-server-internal}/src/document_migrator/types.ts | 0 .../src/document_migrator/utils.test.ts | 0 .../migration-server-internal}/src/document_migrator/utils.ts | 0 .../src/document_migrator/validate_migration.test.ts | 0 .../src/document_migrator/validate_migrations.ts | 0 .../src/get_outdated_documents_query.test.ts | 0 .../src/get_outdated_documents_query.ts | 0 .../saved-objects/migration-server-internal}/src/index.ts | 0 .../migration-server-internal}/src/initial_state.test.ts | 0 .../migration-server-internal}/src/initial_state.ts | 0 .../migration-server-internal}/src/kibana_migrator.test.ts | 0 .../migration-server-internal}/src/kibana_migrator.ts | 0 .../src/kibana_migrator_constants.ts | 0 .../src/kibana_migrator_utils.fixtures.ts | 0 .../src/kibana_migrator_utils.test.ts | 0 .../migration-server-internal}/src/kibana_migrator_utils.ts | 0 .../src/migrations_state_action_machine.test.ts | 0 .../src/migrations_state_action_machine.ts | 0 .../src/migrations_state_machine_cleanup.mocks.ts | 0 .../src/migrations_state_machine_cleanup.ts | 0 .../src/model/create_batches.test.ts | 0 .../migration-server-internal}/src/model/create_batches.ts | 0 .../src/model/extract_errors.test.ts | 0 .../migration-server-internal}/src/model/extract_errors.ts | 0 .../migration-server-internal}/src/model/helpers.test.ts | 0 .../migration-server-internal}/src/model/helpers.ts | 0 .../migration-server-internal}/src/model/index.ts | 0 .../migration-server-internal}/src/model/model.test.ts | 0 .../migration-server-internal}/src/model/model.ts | 0 .../migration-server-internal}/src/model/progress.test.ts | 0 .../migration-server-internal}/src/model/progress.ts | 0 .../migration-server-internal}/src/model/retry_state.test.ts | 0 .../migration-server-internal}/src/model/retry_state.ts | 0 .../migration-server-internal}/src/model/types.ts | 0 .../saved-objects/migration-server-internal}/src/next.test.ts | 0 .../saved-objects/migration-server-internal}/src/next.ts | 0 .../src/run_resilient_migrator.fixtures.ts | 0 .../src/run_resilient_migrator.test.ts | 0 .../migration-server-internal}/src/run_resilient_migrator.ts | 0 .../migration-server-internal}/src/run_v2_migration.test.ts | 0 .../migration-server-internal}/src/run_v2_migration.ts | 0 .../saved-objects/migration-server-internal}/src/state.ts | 0 .../src/state_action_machine.test.ts | 0 .../migration-server-internal}/src/state_action_machine.ts | 0 .../saved-objects/migration-server-internal}/src/types.ts | 0 .../migration-server-internal}/src/zdt/actions/index.ts | 0 .../src/zdt/actions/update_index_meta.test.mocks.ts | 0 .../src/zdt/actions/update_index_meta.test.ts | 0 .../src/zdt/actions/update_index_meta.ts | 0 .../src/zdt/actions/wait_for_delay.test.ts | 0 .../src/zdt/actions/wait_for_delay.ts | 0 .../src/zdt/context/create_context.ts | 0 .../migration-server-internal}/src/zdt/context/index.ts | 0 .../migration-server-internal}/src/zdt/context/types.ts | 0 .../saved-objects/migration-server-internal}/src/zdt/index.ts | 0 .../migration-server-internal}/src/zdt/migrate_index.ts | 0 .../src/zdt/migration_state_action_machine.ts | 0 .../migration-server-internal}/src/zdt/model/index.ts | 0 .../src/zdt/model/model.test.mocks.ts | 0 .../migration-server-internal}/src/zdt/model/model.test.ts | 0 .../migration-server-internal}/src/zdt/model/model.ts | 0 .../model/stages/cleanup_unknown_and_excluded_docs.test.ts | 0 .../src/zdt/model/stages/cleanup_unknown_and_excluded_docs.ts | 0 .../stages/cleanup_unknown_and_excluded_docs_refresh.test.ts | 0 .../model/stages/cleanup_unknown_and_excluded_docs_refresh.ts | 0 .../cleanup_unknown_and_excluded_docs_wait_for_task.test.ts | 0 .../stages/cleanup_unknown_and_excluded_docs_wait_for_task.ts | 0 .../src/zdt/model/stages/create_target_index.test.ts | 0 .../src/zdt/model/stages/create_target_index.ts | 0 .../src/zdt/model/stages/documents_update_init.test.mocks.ts | 0 .../src/zdt/model/stages/documents_update_init.test.ts | 0 .../src/zdt/model/stages/documents_update_init.ts | 0 .../migration-server-internal}/src/zdt/model/stages/index.ts | 0 .../src/zdt/model/stages/index_state_update_done.test.ts | 0 .../src/zdt/model/stages/index_state_update_done.ts | 0 .../src/zdt/model/stages/init.test.mocks.ts | 0 .../src/zdt/model/stages/init.test.ts | 0 .../migration-server-internal}/src/zdt/model/stages/init.ts | 0 .../model/stages/outdated_documents_search_bulk_index.test.ts | 0 .../zdt/model/stages/outdated_documents_search_bulk_index.ts | 0 .../model/stages/outdated_documents_search_close_pit.test.ts | 0 .../zdt/model/stages/outdated_documents_search_close_pit.ts | 0 .../model/stages/outdated_documents_search_open_pit.test.ts | 0 .../zdt/model/stages/outdated_documents_search_open_pit.ts | 0 .../zdt/model/stages/outdated_documents_search_read.test.ts | 0 .../src/zdt/model/stages/outdated_documents_search_read.ts | 0 .../model/stages/outdated_documents_search_refresh.test.ts | 0 .../src/zdt/model/stages/outdated_documents_search_refresh.ts | 0 .../model/stages/outdated_documents_search_transform.test.ts | 0 .../zdt/model/stages/outdated_documents_search_transform.ts | 0 .../src/zdt/model/stages/set_doc_migration_started.test.ts | 0 .../src/zdt/model/stages/set_doc_migration_started.ts | 0 .../set_doc_migration_started_wait_for_instances.test.ts | 0 .../stages/set_doc_migration_started_wait_for_instances.ts | 0 .../src/zdt/model/stages/update_aliases.test.ts | 0 .../src/zdt/model/stages/update_aliases.ts | 0 .../zdt/model/stages/update_document_model_version.test.ts | 0 .../src/zdt/model/stages/update_document_model_version.ts | 0 .../update_document_model_version_wait_for_instance.test.ts | 0 .../update_document_model_version_wait_for_instances.ts | 0 .../src/zdt/model/stages/update_index_mappings.test.ts | 0 .../src/zdt/model/stages/update_index_mappings.ts | 0 .../model/stages/update_index_mappings_wait_for_task.test.ts | 0 .../zdt/model/stages/update_index_mappings_wait_for_task.ts | 0 .../src/zdt/model/stages/update_mapping_model_version.test.ts | 0 .../src/zdt/model/stages/update_mapping_model_version.ts | 0 .../migration-server-internal}/src/zdt/model/types.ts | 0 .../migration-server-internal}/src/zdt/next.test.mocks.ts | 0 .../migration-server-internal}/src/zdt/next.test.ts | 0 .../saved-objects/migration-server-internal}/src/zdt/next.ts | 0 .../migration-server-internal}/src/zdt/run_zdt_migration.ts | 0 .../src/zdt/state/create_initial_state.test.ts | 0 .../src/zdt/state/create_initial_state.ts | 0 .../migration-server-internal}/src/zdt/state/index.ts | 0 .../migration-server-internal}/src/zdt/state/types.ts | 0 .../src/zdt/test_helpers/context.ts | 0 .../src/zdt/test_helpers/document_migrator.ts | 0 .../migration-server-internal}/src/zdt/test_helpers/index.ts | 0 .../src/zdt/test_helpers/saved_object.ts | 0 .../src/zdt/test_helpers/saved_object_type.ts | 0 .../migration-server-internal}/src/zdt/test_helpers/state.ts | 0 .../src/zdt/utils/build_index_mappings.test.ts | 0 .../src/zdt/utils/build_index_mappings.ts | 0 .../src/zdt/utils/check_index_algorithm.test.ts | 0 .../src/zdt/utils/check_index_algorithm.ts | 0 .../src/zdt/utils/check_version_compatibility.test.mocks.ts | 0 .../src/zdt/utils/check_version_compatibility.test.ts | 0 .../src/zdt/utils/check_version_compatibility.ts | 0 .../zdt/utils/generate_additive_mapping_diff.test.mocks.ts | 0 .../src/zdt/utils/generate_additive_mapping_diff.test.ts | 0 .../src/zdt/utils/generate_additive_mapping_diff.ts | 0 .../src/zdt/utils/get_alias_actions.test.ts | 0 .../src/zdt/utils/get_alias_actions.ts | 0 .../src/zdt/utils/get_creation_aliases.test.ts | 0 .../src/zdt/utils/get_creation_aliases.ts | 0 .../src/zdt/utils/get_current_index.test.ts | 0 .../src/zdt/utils/get_current_index.ts | 0 .../src/zdt/utils/get_migrator_configs.ts | 0 .../migration-server-internal}/src/zdt/utils/index.ts | 0 .../src/zdt/utils/outdated_documents_query.test.ts | 0 .../src/zdt/utils/outdated_documents_query.ts | 0 .../src/zdt/utils/transform_raw_docs.test.mocks.ts | 0 .../src/zdt/utils/transform_raw_docs.test.ts | 0 .../src/zdt/utils/transform_raw_docs.ts | 0 .../src/zdt/utils/update_index_meta.test.ts | 0 .../src/zdt/utils/update_index_meta.ts | 0 .../saved-objects/migration-server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 277 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/README.md (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/jest.config.js (80%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/kibana.jsonc (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/package.json (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/README.md (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/__snapshots__/get_outdated_documents_query.test.ts.snap (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/__snapshots__/kibana_migrator.test.ts.snap (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/__snapshots__/migrations_state_action_machine.test.ts.snap (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/bulk_overwrite_transformed_documents.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/bulk_overwrite_transformed_documents.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/calculate_exclude_filters.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/calculate_exclude_filters.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/catch_retryable_es_client_errors.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/catch_retryable_es_client_errors.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/check_cluster_routing_allocation.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/check_cluster_routing_allocation.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/check_for_unknown_docs.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/check_for_unknown_docs.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/check_for_unknown_docs.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/check_target_mappings.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/check_target_mappings.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/cleanup_unknown_and_excluded.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/cleanup_unknown_and_excluded.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/cleanup_unknown_and_excluded.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/clone_index.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/clone_index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/close_pit.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/close_pit.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/constants.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/create_index.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/create_index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/delete_by_query.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/delete_by_query.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/es_errors.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/es_errors.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/fetch_indices.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/fetch_indices.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/open_pit.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/open_pit.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/pickup_updated_mappings.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/pickup_updated_mappings.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/read_with_pit.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/read_with_pit.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/refresh_index.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/refresh_index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/reindex.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/reindex.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/remove_write_block.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/remove_write_block.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/safe_write_block.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/safe_write_block.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/set_write_block.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/set_write_block.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/synchronize_migrators.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/synchronize_migrators.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/transform_docs.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/update_aliases.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/update_aliases.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/update_and_pickup_mappings.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/update_and_pickup_mappings.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/update_mappings.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/update_mappings.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/update_source_mappings_properties.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/update_source_mappings_properties.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/wait_for_delete_by_query_task.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/wait_for_delete_by_query_task.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/wait_for_index_status.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/wait_for_index_status.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/wait_for_pickup_updated_mappings_task.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/wait_for_pickup_updated_mappings_task.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/wait_for_reindex_task.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/wait_for_reindex_task.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/wait_for_task.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/actions/wait_for_task.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/common/constants.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/common/redact_state.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/common/utils/delay.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/common/utils/delay.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/common/utils/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/common/utils/logs.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/common/utils/logs.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/__snapshots__/build_active_mappings.test.ts.snap (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/build_active_mappings.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/build_active_mappings.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/build_index_map.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/build_index_map.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/build_pickup_mappings_query.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/build_pickup_mappings_query.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/build_types_mappings.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/compare_mappings.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/compare_mappings.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/diff_mappings.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/diff_mappings.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/migrate_raw_docs.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/migrate_raw_docs.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/migration_logger.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/regenerate_object_id.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/transform_saved_object_document_error.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/transform_saved_object_document_error.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/core/unused_types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/build_active_migrations.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/build_active_migrations.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/build_active_migrations.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/document_migrator.test.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/document_migrator.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/document_migrator.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/internal_transforms.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/migrations/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/migrations/transform_migration_version.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/migrations/transform_migration_version.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/migrations/transform_set_managed_default.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/migrations/transform_set_managed_default.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/model_version.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/model_version.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/model_version.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/pipelines/downgrade_pipeline.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/pipelines/downgrade_pipeline.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/pipelines/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/pipelines/types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/pipelines/upgrade_pipeline.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/pipelines/upgrade_pipeline.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/pipelines/utils.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/utils.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/utils.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/validate_migration.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/document_migrator/validate_migrations.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/get_outdated_documents_query.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/get_outdated_documents_query.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/initial_state.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/initial_state.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/kibana_migrator.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/kibana_migrator.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/kibana_migrator_constants.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/kibana_migrator_utils.fixtures.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/kibana_migrator_utils.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/kibana_migrator_utils.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/migrations_state_action_machine.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/migrations_state_action_machine.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/migrations_state_machine_cleanup.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/migrations_state_machine_cleanup.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/create_batches.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/create_batches.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/extract_errors.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/extract_errors.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/helpers.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/helpers.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/model.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/model.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/progress.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/progress.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/retry_state.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/retry_state.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/model/types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/next.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/next.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/run_resilient_migrator.fixtures.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/run_resilient_migrator.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/run_resilient_migrator.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/run_v2_migration.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/run_v2_migration.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/state.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/state_action_machine.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/state_action_machine.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/actions/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/actions/update_index_meta.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/actions/update_index_meta.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/actions/update_index_meta.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/actions/wait_for_delay.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/actions/wait_for_delay.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/context/create_context.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/context/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/context/types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/migrate_index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/migration_state_action_machine.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/model.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/model.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/model.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/cleanup_unknown_and_excluded_docs.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/cleanup_unknown_and_excluded_docs.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_refresh.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_refresh.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_wait_for_task.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_wait_for_task.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/create_target_index.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/create_target_index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/documents_update_init.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/documents_update_init.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/documents_update_init.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/index_state_update_done.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/index_state_update_done.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/init.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/init.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/init.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/outdated_documents_search_bulk_index.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/outdated_documents_search_bulk_index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/outdated_documents_search_close_pit.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/outdated_documents_search_close_pit.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/outdated_documents_search_open_pit.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/outdated_documents_search_open_pit.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/outdated_documents_search_read.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/outdated_documents_search_read.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/outdated_documents_search_refresh.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/outdated_documents_search_refresh.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/outdated_documents_search_transform.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/outdated_documents_search_transform.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/set_doc_migration_started.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/set_doc_migration_started.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/set_doc_migration_started_wait_for_instances.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/set_doc_migration_started_wait_for_instances.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/update_aliases.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/update_aliases.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/update_document_model_version.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/update_document_model_version.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/update_document_model_version_wait_for_instance.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/update_document_model_version_wait_for_instances.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/update_index_mappings.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/update_index_mappings.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/update_index_mappings_wait_for_task.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/update_index_mappings_wait_for_task.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/update_mapping_model_version.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/stages/update_mapping_model_version.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/model/types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/next.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/next.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/next.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/run_zdt_migration.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/state/create_initial_state.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/state/create_initial_state.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/state/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/state/types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/test_helpers/context.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/test_helpers/document_migrator.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/test_helpers/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/test_helpers/saved_object.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/test_helpers/saved_object_type.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/test_helpers/state.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/build_index_mappings.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/build_index_mappings.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/check_index_algorithm.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/check_index_algorithm.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/check_version_compatibility.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/check_version_compatibility.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/check_version_compatibility.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/generate_additive_mapping_diff.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/generate_additive_mapping_diff.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/generate_additive_mapping_diff.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/get_alias_actions.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/get_alias_actions.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/get_creation_aliases.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/get_creation_aliases.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/get_current_index.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/get_current_index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/get_migrator_configs.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/outdated_documents_query.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/outdated_documents_query.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/transform_raw_docs.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/transform_raw_docs.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/transform_raw_docs.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/update_index_meta.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/src/zdt/utils/update_index_meta.ts (100%) rename {packages/core/saved-objects/core-saved-objects-migration-server-internal => src/core/packages/saved-objects/migration-server-internal}/tsconfig.json (95%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 02d849eac745b..81ae1e4634c7f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -107,7 +107,6 @@ packages/core/saved-objects/core-saved-objects-api-server-mocks @elastic/kibana- packages/core/saved-objects/core-saved-objects-base-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core -packages/core/saved-objects/core-saved-objects-migration-server-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/saved-objects/browser @elastic/kibana-core src/core/packages/saved-objects/browser-internal @elastic/kibana-core src/core/packages/saved-objects/common @elastic/kibana-core src/core/packages/saved-objects/import-export-server-internal @elastic/kibana-core +src/core/packages/saved-objects/migration-server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index af4c4acd8b85b..a3c339525c09a 100644 --- a/package.json +++ b/package.json @@ -375,7 +375,7 @@ "@kbn/core-saved-objects-browser-internal": "link:src/core/packages/saved-objects/browser-internal", "@kbn/core-saved-objects-common": "link:src/core/packages/saved-objects/common", "@kbn/core-saved-objects-import-export-server-internal": "link:src/core/packages/saved-objects/import-export-server-internal", - "@kbn/core-saved-objects-migration-server-internal": "link:packages/core/saved-objects/core-saved-objects-migration-server-internal", + "@kbn/core-saved-objects-migration-server-internal": "link:src/core/packages/saved-objects/migration-server-internal", "@kbn/core-saved-objects-server": "link:packages/core/saved-objects/core-saved-objects-server", "@kbn/core-saved-objects-server-internal": "link:packages/core/saved-objects/core-saved-objects-server-internal", "@kbn/core-saved-objects-utils-server": "link:packages/core/saved-objects/core-saved-objects-utils-server", diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/README.md b/src/core/packages/saved-objects/migration-server-internal/README.md similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/README.md rename to src/core/packages/saved-objects/migration-server-internal/README.md diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/index.ts b/src/core/packages/saved-objects/migration-server-internal/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/index.ts rename to src/core/packages/saved-objects/migration-server-internal/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/jest.config.js b/src/core/packages/saved-objects/migration-server-internal/jest.config.js similarity index 80% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/jest.config.js rename to src/core/packages/saved-objects/migration-server-internal/jest.config.js index aa15bbb4e44b6..03f89e6fdaa75 100644 --- a/packages/core/saved-objects/core-saved-objects-migration-server-internal/jest.config.js +++ b/src/core/packages/saved-objects/migration-server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/saved-objects/core-saved-objects-migration-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/saved-objects/migration-server-internal'], }; diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/kibana.jsonc b/src/core/packages/saved-objects/migration-server-internal/kibana.jsonc similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/kibana.jsonc rename to src/core/packages/saved-objects/migration-server-internal/kibana.jsonc diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/package.json b/src/core/packages/saved-objects/migration-server-internal/package.json similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/package.json rename to src/core/packages/saved-objects/migration-server-internal/package.json diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/README.md b/src/core/packages/saved-objects/migration-server-internal/src/README.md similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/README.md rename to src/core/packages/saved-objects/migration-server-internal/src/README.md diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/__snapshots__/get_outdated_documents_query.test.ts.snap b/src/core/packages/saved-objects/migration-server-internal/src/__snapshots__/get_outdated_documents_query.test.ts.snap similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/__snapshots__/get_outdated_documents_query.test.ts.snap rename to src/core/packages/saved-objects/migration-server-internal/src/__snapshots__/get_outdated_documents_query.test.ts.snap diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/__snapshots__/kibana_migrator.test.ts.snap b/src/core/packages/saved-objects/migration-server-internal/src/__snapshots__/kibana_migrator.test.ts.snap similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/__snapshots__/kibana_migrator.test.ts.snap rename to src/core/packages/saved-objects/migration-server-internal/src/__snapshots__/kibana_migrator.test.ts.snap diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/__snapshots__/migrations_state_action_machine.test.ts.snap b/src/core/packages/saved-objects/migration-server-internal/src/__snapshots__/migrations_state_action_machine.test.ts.snap similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/__snapshots__/migrations_state_action_machine.test.ts.snap rename to src/core/packages/saved-objects/migration-server-internal/src/__snapshots__/migrations_state_action_machine.test.ts.snap diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/bulk_overwrite_transformed_documents.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/bulk_overwrite_transformed_documents.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/bulk_overwrite_transformed_documents.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/bulk_overwrite_transformed_documents.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/bulk_overwrite_transformed_documents.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/bulk_overwrite_transformed_documents.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/bulk_overwrite_transformed_documents.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/bulk_overwrite_transformed_documents.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/calculate_exclude_filters.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/calculate_exclude_filters.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/calculate_exclude_filters.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/calculate_exclude_filters.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/calculate_exclude_filters.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/calculate_exclude_filters.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/calculate_exclude_filters.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/calculate_exclude_filters.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/catch_retryable_es_client_errors.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/catch_retryable_es_client_errors.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/catch_retryable_es_client_errors.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/catch_retryable_es_client_errors.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/catch_retryable_es_client_errors.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/catch_retryable_es_client_errors.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/catch_retryable_es_client_errors.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/catch_retryable_es_client_errors.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_cluster_routing_allocation.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/check_cluster_routing_allocation.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_cluster_routing_allocation.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/check_cluster_routing_allocation.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_cluster_routing_allocation.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/check_cluster_routing_allocation.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_cluster_routing_allocation.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/check_cluster_routing_allocation.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_for_unknown_docs.mocks.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/check_for_unknown_docs.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_for_unknown_docs.mocks.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/check_for_unknown_docs.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_for_unknown_docs.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/check_for_unknown_docs.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_for_unknown_docs.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/check_for_unknown_docs.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_for_unknown_docs.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/check_for_unknown_docs.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_for_unknown_docs.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/check_for_unknown_docs.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_target_mappings.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/check_target_mappings.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_target_mappings.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/check_target_mappings.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_target_mappings.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/check_target_mappings.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/check_target_mappings.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/check_target_mappings.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/cleanup_unknown_and_excluded.mocks.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/cleanup_unknown_and_excluded.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/cleanup_unknown_and_excluded.mocks.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/cleanup_unknown_and_excluded.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/cleanup_unknown_and_excluded.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/cleanup_unknown_and_excluded.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/cleanup_unknown_and_excluded.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/cleanup_unknown_and_excluded.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/cleanup_unknown_and_excluded.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/cleanup_unknown_and_excluded.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/cleanup_unknown_and_excluded.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/cleanup_unknown_and_excluded.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/clone_index.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/clone_index.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/clone_index.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/clone_index.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/clone_index.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/clone_index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/clone_index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/clone_index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/close_pit.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/close_pit.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/close_pit.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/close_pit.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/close_pit.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/close_pit.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/close_pit.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/close_pit.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/constants.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/constants.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/constants.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/constants.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/create_index.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/create_index.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/create_index.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/create_index.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/create_index.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/create_index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/create_index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/create_index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/delete_by_query.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/delete_by_query.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/delete_by_query.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/delete_by_query.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/delete_by_query.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/delete_by_query.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/delete_by_query.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/delete_by_query.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/es_errors.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/es_errors.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/es_errors.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/es_errors.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/es_errors.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/es_errors.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/es_errors.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/es_errors.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/fetch_indices.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/fetch_indices.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/fetch_indices.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/fetch_indices.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/fetch_indices.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/fetch_indices.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/fetch_indices.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/fetch_indices.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/open_pit.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/open_pit.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/open_pit.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/open_pit.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/open_pit.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/open_pit.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/open_pit.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/open_pit.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/pickup_updated_mappings.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/pickup_updated_mappings.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/pickup_updated_mappings.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/pickup_updated_mappings.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/pickup_updated_mappings.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/pickup_updated_mappings.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/pickup_updated_mappings.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/pickup_updated_mappings.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/read_with_pit.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/read_with_pit.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/read_with_pit.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/read_with_pit.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/read_with_pit.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/read_with_pit.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/read_with_pit.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/read_with_pit.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/refresh_index.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/refresh_index.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/refresh_index.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/refresh_index.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/refresh_index.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/refresh_index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/refresh_index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/refresh_index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/reindex.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/reindex.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/reindex.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/reindex.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/reindex.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/reindex.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/reindex.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/reindex.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/remove_write_block.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/remove_write_block.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/remove_write_block.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/remove_write_block.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/remove_write_block.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/remove_write_block.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/remove_write_block.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/remove_write_block.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/safe_write_block.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/safe_write_block.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/safe_write_block.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/safe_write_block.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/safe_write_block.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/safe_write_block.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/safe_write_block.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/safe_write_block.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/set_write_block.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/set_write_block.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/set_write_block.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/set_write_block.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/set_write_block.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/set_write_block.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/set_write_block.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/set_write_block.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/synchronize_migrators.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/synchronize_migrators.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/synchronize_migrators.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/synchronize_migrators.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/synchronize_migrators.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/synchronize_migrators.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/synchronize_migrators.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/synchronize_migrators.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/transform_docs.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/transform_docs.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/transform_docs.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/transform_docs.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_aliases.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/update_aliases.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_aliases.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/update_aliases.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_aliases.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/update_aliases.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_aliases.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/update_aliases.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_and_pickup_mappings.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/update_and_pickup_mappings.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_and_pickup_mappings.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/update_and_pickup_mappings.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_and_pickup_mappings.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/update_and_pickup_mappings.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_and_pickup_mappings.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/update_and_pickup_mappings.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_mappings.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/update_mappings.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_mappings.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/update_mappings.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_mappings.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/update_mappings.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_mappings.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/update_mappings.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_source_mappings_properties.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/update_source_mappings_properties.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_source_mappings_properties.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/update_source_mappings_properties.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_source_mappings_properties.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/update_source_mappings_properties.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/update_source_mappings_properties.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/update_source_mappings_properties.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_delete_by_query_task.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_delete_by_query_task.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_delete_by_query_task.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_delete_by_query_task.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_delete_by_query_task.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_delete_by_query_task.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_delete_by_query_task.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_delete_by_query_task.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_index_status.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_index_status.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_index_status.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_index_status.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_index_status.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_index_status.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_index_status.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_index_status.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_pickup_updated_mappings_task.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_pickup_updated_mappings_task.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_pickup_updated_mappings_task.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_pickup_updated_mappings_task.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_pickup_updated_mappings_task.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_pickup_updated_mappings_task.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_pickup_updated_mappings_task.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_pickup_updated_mappings_task.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_reindex_task.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_reindex_task.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_reindex_task.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_reindex_task.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_reindex_task.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_reindex_task.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_reindex_task.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_reindex_task.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_task.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_task.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_task.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_task.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_task.ts b/src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_task.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/wait_for_task.ts rename to src/core/packages/saved-objects/migration-server-internal/src/actions/wait_for_task.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/constants.ts b/src/core/packages/saved-objects/migration-server-internal/src/common/constants.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/constants.ts rename to src/core/packages/saved-objects/migration-server-internal/src/common/constants.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/redact_state.ts b/src/core/packages/saved-objects/migration-server-internal/src/common/redact_state.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/redact_state.ts rename to src/core/packages/saved-objects/migration-server-internal/src/common/redact_state.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/utils/delay.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/common/utils/delay.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/utils/delay.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/common/utils/delay.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/utils/delay.ts b/src/core/packages/saved-objects/migration-server-internal/src/common/utils/delay.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/utils/delay.ts rename to src/core/packages/saved-objects/migration-server-internal/src/common/utils/delay.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/utils/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/common/utils/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/utils/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/common/utils/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/utils/logs.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/common/utils/logs.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/utils/logs.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/common/utils/logs.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/utils/logs.ts b/src/core/packages/saved-objects/migration-server-internal/src/common/utils/logs.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/common/utils/logs.ts rename to src/core/packages/saved-objects/migration-server-internal/src/common/utils/logs.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/__snapshots__/build_active_mappings.test.ts.snap b/src/core/packages/saved-objects/migration-server-internal/src/core/__snapshots__/build_active_mappings.test.ts.snap similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/__snapshots__/build_active_mappings.test.ts.snap rename to src/core/packages/saved-objects/migration-server-internal/src/core/__snapshots__/build_active_mappings.test.ts.snap diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_active_mappings.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/build_active_mappings.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_active_mappings.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/build_active_mappings.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_active_mappings.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/build_active_mappings.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_active_mappings.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/build_active_mappings.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_index_map.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/build_index_map.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_index_map.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/build_index_map.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_index_map.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/build_index_map.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_index_map.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/build_index_map.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_pickup_mappings_query.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/build_pickup_mappings_query.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_pickup_mappings_query.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/build_pickup_mappings_query.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_pickup_mappings_query.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/build_pickup_mappings_query.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_pickup_mappings_query.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/build_pickup_mappings_query.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_types_mappings.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/build_types_mappings.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/build_types_mappings.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/build_types_mappings.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/compare_mappings.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/compare_mappings.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/compare_mappings.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/compare_mappings.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/compare_mappings.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/compare_mappings.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/compare_mappings.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/compare_mappings.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/diff_mappings.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/diff_mappings.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/diff_mappings.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/diff_mappings.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/diff_mappings.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/diff_mappings.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/diff_mappings.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/diff_mappings.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/migrate_raw_docs.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/migrate_raw_docs.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/migrate_raw_docs.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/migrate_raw_docs.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/migrate_raw_docs.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/migrate_raw_docs.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/migrate_raw_docs.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/migrate_raw_docs.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/migration_logger.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/migration_logger.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/migration_logger.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/migration_logger.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/regenerate_object_id.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/regenerate_object_id.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/regenerate_object_id.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/regenerate_object_id.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/transform_saved_object_document_error.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/transform_saved_object_document_error.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/transform_saved_object_document_error.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/transform_saved_object_document_error.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/transform_saved_object_document_error.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/transform_saved_object_document_error.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/transform_saved_object_document_error.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/transform_saved_object_document_error.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/unused_types.ts b/src/core/packages/saved-objects/migration-server-internal/src/core/unused_types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core/unused_types.ts rename to src/core/packages/saved-objects/migration-server-internal/src/core/unused_types.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/build_active_migrations.test.mocks.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/build_active_migrations.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/build_active_migrations.test.mocks.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/build_active_migrations.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/build_active_migrations.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/build_active_migrations.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/build_active_migrations.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/build_active_migrations.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/build_active_migrations.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/build_active_migrations.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/build_active_migrations.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/build_active_migrations.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/document_migrator.test.mock.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/document_migrator.test.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/document_migrator.test.mock.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/document_migrator.test.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/document_migrator.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/document_migrator.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/document_migrator.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/document_migrator.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/document_migrator.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/document_migrator.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/document_migrator.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/document_migrator.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/internal_transforms.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/internal_transforms.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/internal_transforms.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/internal_transforms.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/migrations/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/migrations/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/migrations/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/migrations/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/migrations/transform_migration_version.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/migrations/transform_migration_version.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/migrations/transform_migration_version.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/migrations/transform_migration_version.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/migrations/transform_migration_version.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/migrations/transform_migration_version.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/migrations/transform_migration_version.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/migrations/transform_migration_version.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/migrations/transform_set_managed_default.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/migrations/transform_set_managed_default.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/migrations/transform_set_managed_default.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/migrations/transform_set_managed_default.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/migrations/transform_set_managed_default.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/migrations/transform_set_managed_default.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/migrations/transform_set_managed_default.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/migrations/transform_set_managed_default.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/model_version.test.mocks.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/model_version.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/model_version.test.mocks.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/model_version.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/model_version.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/model_version.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/model_version.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/model_version.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/model_version.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/model_version.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/model_version.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/model_version.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/downgrade_pipeline.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/downgrade_pipeline.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/downgrade_pipeline.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/downgrade_pipeline.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/downgrade_pipeline.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/downgrade_pipeline.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/downgrade_pipeline.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/downgrade_pipeline.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/types.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/types.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/types.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/upgrade_pipeline.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/upgrade_pipeline.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/upgrade_pipeline.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/upgrade_pipeline.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/upgrade_pipeline.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/upgrade_pipeline.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/upgrade_pipeline.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/upgrade_pipeline.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/utils.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/utils.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/pipelines/utils.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/pipelines/utils.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/types.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/types.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/types.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/utils.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/utils.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/utils.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/utils.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/utils.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/utils.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/utils.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/utils.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/validate_migration.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migration.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/validate_migration.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migration.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/validate_migrations.ts b/src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/validate_migrations.ts rename to src/core/packages/saved-objects/migration-server-internal/src/document_migrator/validate_migrations.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/get_outdated_documents_query.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/get_outdated_documents_query.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/get_outdated_documents_query.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/get_outdated_documents_query.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/get_outdated_documents_query.ts b/src/core/packages/saved-objects/migration-server-internal/src/get_outdated_documents_query.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/get_outdated_documents_query.ts rename to src/core/packages/saved-objects/migration-server-internal/src/get_outdated_documents_query.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/initial_state.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/initial_state.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/initial_state.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/initial_state.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/initial_state.ts b/src/core/packages/saved-objects/migration-server-internal/src/initial_state.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/initial_state.ts rename to src/core/packages/saved-objects/migration-server-internal/src/initial_state.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/kibana_migrator.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/kibana_migrator.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/kibana_migrator.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/kibana_migrator.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/kibana_migrator.ts b/src/core/packages/saved-objects/migration-server-internal/src/kibana_migrator.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/kibana_migrator.ts rename to src/core/packages/saved-objects/migration-server-internal/src/kibana_migrator.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/kibana_migrator_constants.ts b/src/core/packages/saved-objects/migration-server-internal/src/kibana_migrator_constants.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/kibana_migrator_constants.ts rename to src/core/packages/saved-objects/migration-server-internal/src/kibana_migrator_constants.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/kibana_migrator_utils.fixtures.ts b/src/core/packages/saved-objects/migration-server-internal/src/kibana_migrator_utils.fixtures.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/kibana_migrator_utils.fixtures.ts rename to src/core/packages/saved-objects/migration-server-internal/src/kibana_migrator_utils.fixtures.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/kibana_migrator_utils.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/kibana_migrator_utils.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/kibana_migrator_utils.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/kibana_migrator_utils.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/kibana_migrator_utils.ts b/src/core/packages/saved-objects/migration-server-internal/src/kibana_migrator_utils.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/kibana_migrator_utils.ts rename to src/core/packages/saved-objects/migration-server-internal/src/kibana_migrator_utils.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/migrations_state_action_machine.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/migrations_state_action_machine.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/migrations_state_action_machine.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/migrations_state_action_machine.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/migrations_state_action_machine.ts b/src/core/packages/saved-objects/migration-server-internal/src/migrations_state_action_machine.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/migrations_state_action_machine.ts rename to src/core/packages/saved-objects/migration-server-internal/src/migrations_state_action_machine.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/migrations_state_machine_cleanup.mocks.ts b/src/core/packages/saved-objects/migration-server-internal/src/migrations_state_machine_cleanup.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/migrations_state_machine_cleanup.mocks.ts rename to src/core/packages/saved-objects/migration-server-internal/src/migrations_state_machine_cleanup.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/migrations_state_machine_cleanup.ts b/src/core/packages/saved-objects/migration-server-internal/src/migrations_state_machine_cleanup.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/migrations_state_machine_cleanup.ts rename to src/core/packages/saved-objects/migration-server-internal/src/migrations_state_machine_cleanup.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/create_batches.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/create_batches.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/create_batches.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/create_batches.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/create_batches.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/create_batches.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/create_batches.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/create_batches.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/extract_errors.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/extract_errors.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/extract_errors.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/extract_errors.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/extract_errors.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/extract_errors.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/extract_errors.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/extract_errors.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/helpers.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/helpers.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/helpers.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/helpers.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/helpers.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/helpers.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/helpers.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/helpers.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/model.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/model.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/model.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/model.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/model.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/model.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/model.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/model.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/progress.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/progress.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/progress.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/progress.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/progress.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/progress.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/progress.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/progress.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/retry_state.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/retry_state.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/retry_state.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/retry_state.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/retry_state.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/retry_state.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/retry_state.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/retry_state.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/types.ts b/src/core/packages/saved-objects/migration-server-internal/src/model/types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/model/types.ts rename to src/core/packages/saved-objects/migration-server-internal/src/model/types.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/next.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/next.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/next.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/next.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/next.ts b/src/core/packages/saved-objects/migration-server-internal/src/next.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/next.ts rename to src/core/packages/saved-objects/migration-server-internal/src/next.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/run_resilient_migrator.fixtures.ts b/src/core/packages/saved-objects/migration-server-internal/src/run_resilient_migrator.fixtures.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/run_resilient_migrator.fixtures.ts rename to src/core/packages/saved-objects/migration-server-internal/src/run_resilient_migrator.fixtures.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/run_resilient_migrator.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/run_resilient_migrator.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/run_resilient_migrator.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/run_resilient_migrator.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/run_resilient_migrator.ts b/src/core/packages/saved-objects/migration-server-internal/src/run_resilient_migrator.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/run_resilient_migrator.ts rename to src/core/packages/saved-objects/migration-server-internal/src/run_resilient_migrator.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/run_v2_migration.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/run_v2_migration.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/run_v2_migration.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/run_v2_migration.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/run_v2_migration.ts b/src/core/packages/saved-objects/migration-server-internal/src/run_v2_migration.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/run_v2_migration.ts rename to src/core/packages/saved-objects/migration-server-internal/src/run_v2_migration.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/state.ts b/src/core/packages/saved-objects/migration-server-internal/src/state.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/state.ts rename to src/core/packages/saved-objects/migration-server-internal/src/state.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/state_action_machine.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/state_action_machine.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/state_action_machine.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/state_action_machine.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/state_action_machine.ts b/src/core/packages/saved-objects/migration-server-internal/src/state_action_machine.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/state_action_machine.ts rename to src/core/packages/saved-objects/migration-server-internal/src/state_action_machine.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/types.ts b/src/core/packages/saved-objects/migration-server-internal/src/types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/types.ts rename to src/core/packages/saved-objects/migration-server-internal/src/types.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/actions/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/actions/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/actions/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/actions/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/actions/update_index_meta.test.mocks.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/actions/update_index_meta.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/actions/update_index_meta.test.mocks.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/actions/update_index_meta.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/actions/update_index_meta.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/actions/update_index_meta.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/actions/update_index_meta.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/actions/update_index_meta.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/actions/update_index_meta.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/actions/update_index_meta.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/actions/update_index_meta.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/actions/update_index_meta.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/actions/wait_for_delay.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/actions/wait_for_delay.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/actions/wait_for_delay.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/actions/wait_for_delay.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/actions/wait_for_delay.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/actions/wait_for_delay.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/actions/wait_for_delay.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/actions/wait_for_delay.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/context/create_context.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/context/create_context.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/context/create_context.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/context/create_context.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/context/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/context/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/context/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/context/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/context/types.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/context/types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/context/types.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/context/types.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/migrate_index.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/migrate_index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/migrate_index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/migrate_index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/migration_state_action_machine.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/migration_state_action_machine.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/migration_state_action_machine.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/migration_state_action_machine.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/model.test.mocks.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/model.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/model.test.mocks.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/model.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/model.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/model.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/model.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/model.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/model.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/model.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/model.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/model.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_refresh.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_refresh.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_refresh.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_refresh.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_refresh.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_refresh.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_refresh.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_refresh.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_wait_for_task.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_wait_for_task.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_wait_for_task.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_wait_for_task.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_wait_for_task.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_wait_for_task.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_wait_for_task.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/cleanup_unknown_and_excluded_docs_wait_for_task.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/create_target_index.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/create_target_index.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/create_target_index.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/create_target_index.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/create_target_index.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/create_target_index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/create_target_index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/create_target_index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/documents_update_init.test.mocks.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/documents_update_init.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/documents_update_init.test.mocks.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/documents_update_init.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/documents_update_init.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/documents_update_init.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/documents_update_init.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/documents_update_init.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/documents_update_init.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/documents_update_init.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/documents_update_init.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/documents_update_init.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/index_state_update_done.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/index_state_update_done.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/index_state_update_done.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/index_state_update_done.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/index_state_update_done.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/index_state_update_done.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/index_state_update_done.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/index_state_update_done.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/init.test.mocks.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/init.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/init.test.mocks.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/init.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/init.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/init.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/init.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/init.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/init.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/init.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/init.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/init.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_bulk_index.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_bulk_index.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_bulk_index.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_bulk_index.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_bulk_index.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_bulk_index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_bulk_index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_bulk_index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_close_pit.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_close_pit.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_close_pit.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_close_pit.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_close_pit.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_close_pit.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_close_pit.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_close_pit.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_open_pit.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_open_pit.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_open_pit.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_open_pit.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_open_pit.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_open_pit.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_open_pit.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_open_pit.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_read.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_read.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_read.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_read.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_read.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_read.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_read.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_read.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_refresh.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_refresh.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_refresh.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_refresh.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_refresh.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_refresh.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_refresh.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_refresh.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_transform.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_transform.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_transform.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_transform.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_transform.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_transform.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/outdated_documents_search_transform.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/outdated_documents_search_transform.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/set_doc_migration_started.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/set_doc_migration_started.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/set_doc_migration_started.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/set_doc_migration_started.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/set_doc_migration_started.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/set_doc_migration_started.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/set_doc_migration_started.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/set_doc_migration_started.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/set_doc_migration_started_wait_for_instances.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/set_doc_migration_started_wait_for_instances.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/set_doc_migration_started_wait_for_instances.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/set_doc_migration_started_wait_for_instances.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/set_doc_migration_started_wait_for_instances.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/set_doc_migration_started_wait_for_instances.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/set_doc_migration_started_wait_for_instances.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/set_doc_migration_started_wait_for_instances.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_aliases.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_aliases.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_aliases.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_aliases.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_aliases.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_aliases.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_aliases.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_aliases.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_document_model_version.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_document_model_version.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_document_model_version.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_document_model_version.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_document_model_version.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_document_model_version.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_document_model_version.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_document_model_version.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_document_model_version_wait_for_instance.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_document_model_version_wait_for_instance.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_document_model_version_wait_for_instance.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_document_model_version_wait_for_instance.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_document_model_version_wait_for_instances.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_document_model_version_wait_for_instances.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_document_model_version_wait_for_instances.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_document_model_version_wait_for_instances.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_index_mappings.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_index_mappings.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_index_mappings.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_index_mappings.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_index_mappings.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_index_mappings.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_index_mappings.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_index_mappings.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_index_mappings_wait_for_task.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_index_mappings_wait_for_task.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_index_mappings_wait_for_task.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_index_mappings_wait_for_task.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_index_mappings_wait_for_task.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_index_mappings_wait_for_task.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_index_mappings_wait_for_task.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_index_mappings_wait_for_task.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_mapping_model_version.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_mapping_model_version.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_mapping_model_version.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_mapping_model_version.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_mapping_model_version.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_mapping_model_version.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/stages/update_mapping_model_version.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/stages/update_mapping_model_version.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/types.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/model/types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/model/types.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/model/types.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/next.test.mocks.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/next.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/next.test.mocks.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/next.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/next.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/next.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/next.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/next.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/next.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/next.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/next.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/next.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/run_zdt_migration.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/run_zdt_migration.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/run_zdt_migration.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/run_zdt_migration.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/state/create_initial_state.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/state/create_initial_state.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/state/create_initial_state.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/state/create_initial_state.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/state/create_initial_state.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/state/create_initial_state.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/state/create_initial_state.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/state/create_initial_state.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/state/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/state/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/state/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/state/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/state/types.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/state/types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/state/types.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/state/types.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/test_helpers/context.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/test_helpers/context.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/test_helpers/context.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/test_helpers/context.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/test_helpers/document_migrator.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/test_helpers/document_migrator.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/test_helpers/document_migrator.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/test_helpers/document_migrator.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/test_helpers/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/test_helpers/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/test_helpers/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/test_helpers/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/test_helpers/saved_object.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/test_helpers/saved_object.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/test_helpers/saved_object.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/test_helpers/saved_object.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/test_helpers/saved_object_type.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/test_helpers/saved_object_type.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/test_helpers/saved_object_type.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/test_helpers/saved_object_type.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/test_helpers/state.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/test_helpers/state.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/test_helpers/state.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/test_helpers/state.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/build_index_mappings.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/build_index_mappings.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/build_index_mappings.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/build_index_mappings.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/build_index_mappings.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/build_index_mappings.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/build_index_mappings.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/build_index_mappings.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/check_index_algorithm.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/check_index_algorithm.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/check_index_algorithm.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/check_index_algorithm.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/check_index_algorithm.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/check_index_algorithm.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/check_index_algorithm.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/check_index_algorithm.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/check_version_compatibility.test.mocks.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/check_version_compatibility.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/check_version_compatibility.test.mocks.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/check_version_compatibility.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/check_version_compatibility.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/check_version_compatibility.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/check_version_compatibility.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/check_version_compatibility.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/check_version_compatibility.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/check_version_compatibility.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/check_version_compatibility.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/check_version_compatibility.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/generate_additive_mapping_diff.test.mocks.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/generate_additive_mapping_diff.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/generate_additive_mapping_diff.test.mocks.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/generate_additive_mapping_diff.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/generate_additive_mapping_diff.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/generate_additive_mapping_diff.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/generate_additive_mapping_diff.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/generate_additive_mapping_diff.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/generate_additive_mapping_diff.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/generate_additive_mapping_diff.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/generate_additive_mapping_diff.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/generate_additive_mapping_diff.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_alias_actions.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_alias_actions.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_alias_actions.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_alias_actions.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_alias_actions.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_alias_actions.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_alias_actions.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_alias_actions.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_creation_aliases.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_creation_aliases.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_creation_aliases.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_creation_aliases.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_creation_aliases.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_creation_aliases.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_creation_aliases.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_creation_aliases.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_current_index.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_current_index.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_current_index.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_current_index.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_current_index.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_current_index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_current_index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_current_index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_migrator_configs.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_migrator_configs.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/get_migrator_configs.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/get_migrator_configs.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/index.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/index.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/outdated_documents_query.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/outdated_documents_query.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/outdated_documents_query.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/outdated_documents_query.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/outdated_documents_query.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/outdated_documents_query.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/outdated_documents_query.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/outdated_documents_query.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/transform_raw_docs.test.mocks.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/transform_raw_docs.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/transform_raw_docs.test.mocks.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/transform_raw_docs.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/transform_raw_docs.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/transform_raw_docs.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/transform_raw_docs.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/transform_raw_docs.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/transform_raw_docs.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/transform_raw_docs.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/transform_raw_docs.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/transform_raw_docs.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/update_index_meta.test.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/update_index_meta.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/update_index_meta.test.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/update_index_meta.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/update_index_meta.ts b/src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/update_index_meta.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/src/zdt/utils/update_index_meta.ts rename to src/core/packages/saved-objects/migration-server-internal/src/zdt/utils/update_index_meta.ts diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/tsconfig.json b/src/core/packages/saved-objects/migration-server-internal/tsconfig.json similarity index 95% rename from packages/core/saved-objects/core-saved-objects-migration-server-internal/tsconfig.json rename to src/core/packages/saved-objects/migration-server-internal/tsconfig.json index c1d993b0f4761..31f3da33386f4 100644 --- a/packages/core/saved-objects/core-saved-objects-migration-server-internal/tsconfig.json +++ b/src/core/packages/saved-objects/migration-server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index b73c64a93d0d7..c55dc1b3a3806 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -584,8 +584,8 @@ "@kbn/core-saved-objects-import-export-server-internal/*": ["src/core/packages/saved-objects/import-export-server-internal/*"], "@kbn/core-saved-objects-import-export-server-mocks": ["packages/core/saved-objects/core-saved-objects-import-export-server-mocks"], "@kbn/core-saved-objects-import-export-server-mocks/*": ["packages/core/saved-objects/core-saved-objects-import-export-server-mocks/*"], - "@kbn/core-saved-objects-migration-server-internal": ["packages/core/saved-objects/core-saved-objects-migration-server-internal"], - "@kbn/core-saved-objects-migration-server-internal/*": ["packages/core/saved-objects/core-saved-objects-migration-server-internal/*"], + "@kbn/core-saved-objects-migration-server-internal": ["src/core/packages/saved-objects/migration-server-internal"], + "@kbn/core-saved-objects-migration-server-internal/*": ["src/core/packages/saved-objects/migration-server-internal/*"], "@kbn/core-saved-objects-migration-server-mocks": ["packages/core/saved-objects/core-saved-objects-migration-server-mocks"], "@kbn/core-saved-objects-migration-server-mocks/*": ["packages/core/saved-objects/core-saved-objects-migration-server-mocks/*"], "@kbn/core-saved-objects-server": ["packages/core/saved-objects/core-saved-objects-server"], diff --git a/yarn.lock b/yarn.lock index 78f4b9f9dac5a..5ad82866bf741 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4981,7 +4981,7 @@ version "0.0.0" uid "" -"@kbn/core-saved-objects-migration-server-internal@link:packages/core/saved-objects/core-saved-objects-migration-server-internal": +"@kbn/core-saved-objects-migration-server-internal@link:src/core/packages/saved-objects/migration-server-internal": version "0.0.0" uid "" From 202611558a2dd471b951153561a5a6d15cfe46b4 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:30:21 +0100 Subject: [PATCH 107/167] Relocating module `@kbn/core-saved-objects-server` --- .github/CODEOWNERS | 2 +- .../advanced/sharing-saved-objects.asciidoc | 2 +- .../core/saved-objects-service.asciidoc | 16 ++++++++-------- package.json | 2 +- .../packages/saved-objects/server}/README.md | 0 .../server}/docs/assets/mv_img_1.png | Bin .../server}/docs/model_versions.md | 14 +++++++------- .../packages/saved-objects/server}/index.ts | 0 .../saved-objects/server}/jest.config.js | 4 ++-- .../packages/saved-objects/server}/kibana.jsonc | 0 .../packages/saved-objects/server}/package.json | 0 .../saved-objects/server}/src/client_factory.ts | 0 .../saved-objects/server}/src/contracts.ts | 0 .../saved-objects/server}/src/export.ts | 0 .../server}/src/extensions/encryption.ts | 0 .../server}/src/extensions/extensions.ts | 0 .../server}/src/extensions/security.ts | 0 .../server}/src/extensions/spaces.ts | 0 .../saved-objects/server}/src/import.ts | 0 .../server}/src/mapping_definition.ts | 0 .../saved-objects/server}/src/migration.ts | 0 .../server}/src/model_version/index.ts | 0 .../server}/src/model_version/model_change.ts | 0 .../server}/src/model_version/model_version.ts | 0 .../server}/src/model_version/schemas.ts | 0 .../src/model_version/transformations.ts | 0 .../server}/src/request_handler_context.ts | 0 .../src/saved_objects_error_helpers.test.ts | 0 .../server}/src/saved_objects_error_helpers.ts | 0 .../server}/src/saved_objects_index_pattern.ts | 0 .../server}/src/saved_objects_management.ts | 0 .../server}/src/saved_objects_status.ts | 0 .../server}/src/saved_objects_type.ts | 0 .../saved-objects/server}/src/serialization.ts | 0 .../saved-objects/server}/src/type_registry.ts | 0 .../saved-objects/server}/src/validation.ts | 0 .../saved-objects/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- .../server/connectors/cases/retry_service.ts | 2 +- .../server/create_model_version.ts | 2 +- .../prebuilt_rules_customization.md | 2 +- yarn.lock | 2 +- 42 files changed, 27 insertions(+), 27 deletions(-) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/README.md (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/docs/assets/mv_img_1.png (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/docs/model_versions.md (97%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/jest.config.js (83%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/kibana.jsonc (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/package.json (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/client_factory.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/contracts.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/export.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/extensions/encryption.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/extensions/extensions.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/extensions/security.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/extensions/spaces.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/import.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/mapping_definition.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/migration.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/model_version/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/model_version/model_change.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/model_version/model_version.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/model_version/schemas.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/model_version/transformations.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/request_handler_context.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/saved_objects_error_helpers.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/saved_objects_error_helpers.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/saved_objects_index_pattern.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/saved_objects_management.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/saved_objects_status.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/saved_objects_type.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/serialization.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/type_registry.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/src/validation.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server => src/core/packages/saved-objects/server}/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 81ae1e4634c7f..dc65afb8a9246 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -108,7 +108,6 @@ packages/core/saved-objects/core-saved-objects-base-server-mocks @elastic/kibana packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core -packages/core/saved-objects/core-saved-objects-server @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-utils-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/saved-objects/browser-internal @elastic/kibana-core src/core/packages/saved-objects/common @elastic/kibana-core src/core/packages/saved-objects/import-export-server-internal @elastic/kibana-core src/core/packages/saved-objects/migration-server-internal @elastic/kibana-core +src/core/packages/saved-objects/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/docs/developer/advanced/sharing-saved-objects.asciidoc b/docs/developer/advanced/sharing-saved-objects.asciidoc index 46c9a0b70829c..3ac4370d46dae 100644 --- a/docs/developer/advanced/sharing-saved-objects.asciidoc +++ b/docs/developer/advanced/sharing-saved-objects.asciidoc @@ -477,7 +477,7 @@ return ( 2. Allow users to access your objects in the <> in <>. You can do this by ensuring that your objects are marked as - {kib-repo}blob/{branch}/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_management.ts[importable and exportable] in your <>: + {kib-repo}blob/{branch}/src/core/packages/saved-objects/server/src/saved_objects_management.ts[importable and exportable] in your <>: + ```ts name: 'my-object-type', diff --git a/docs/developer/architecture/core/saved-objects-service.asciidoc b/docs/developer/architecture/core/saved-objects-service.asciidoc index 1ae419adf9ed8..4b1d36b529851 100644 --- a/docs/developer/architecture/core/saved-objects-service.asciidoc +++ b/docs/developer/architecture/core/saved-objects-service.asciidoc @@ -166,19 +166,19 @@ Saved Objects support changes using `modelVersions``. The modelVersion API is a Model versions are decoupled from the stack version and satisfy the requirements for zero downtime and backward-compatibility. -Each Saved Object type may define model versions for its schema and are bound to a given https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_type.ts#L22-L27[savedObject type]. Changes to a saved object type are +Each Saved Object type may define model versions for its schema and are bound to a given https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/src/core/packages/saved-objects/server/src/saved_objects_type.ts#L22-L27[savedObject type]. Changes to a saved object type are specified by defining a new model. === Defining model versions As for old migrations, model versions are bound to a given -https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_type.ts#L22-L27[savedObject +https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/src/core/packages/saved-objects/server/src/saved_objects_type.ts#L22-L27[savedObject type] When registering a SO type, a new -https://github.com/elastic/kibana/blob/9a6a2ccdff619f827b31c40dd9ed30cb27203da7/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_type.ts#L138-L177[modelVersions] +https://github.com/elastic/kibana/blob/9a6a2ccdff619f827b31c40dd9ed30cb27203da7/src/core/packages/saved-objects/server/src/saved_objects_type.ts#L138-L177[modelVersions] property is available. This attribute is a map of -https://github.com/elastic/kibana/blob/9a6a2ccdff619f827b31c40dd9ed30cb27203da7/packages/core/saved-objects/core-saved-objects-server/src/model_version/model_version.ts#L12-L20[SavedObjectsModelVersion] +https://github.com/elastic/kibana/blob/9a6a2ccdff619f827b31c40dd9ed30cb27203da7/src/core/packages/saved-objects/server/src/model_version/model_version.ts#L12-L20[SavedObjectsModelVersion] which is the top-level type/container to define model versions. This map follows a similar `{ [version number] => version definition }` @@ -223,7 +223,7 @@ const myType: SavedObjectsType = { === Structure of a model version -https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/packages/core/saved-objects/core-saved-objects-server/src/model_version/model_version.ts#L12-L20[Model +https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/src/core/packages/saved-objects/server/src/model_version/model_version.ts#L12-L20[Model versions] are not just functions as the previous migrations were, but structured objects describing how the version behaves and what changed since the last one. @@ -289,7 +289,7 @@ It’s currently composed of two main properties: ==== changes -https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/packages/core/saved-objects/core-saved-objects-server/src/model_version/model_version.ts#L21-L51[link +https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/src/core/packages/saved-objects/server/src/model_version/model_version.ts#L21-L51[link to the TS doc for `changes`] Describes the list of changes applied during this version. @@ -408,7 +408,7 @@ theoretically shouldn’t.* ==== schemas -https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/packages/core/saved-objects/core-saved-objects-server/src/model_version/schemas.ts#L11-L16[link +https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/src/core/packages/saved-objects/server/src/model_version/schemas.ts#L11-L16[link to the TS doc for `schemas`] The schemas associated with this version. Schemas are used to validate @@ -477,7 +477,7 @@ inter-version compatibility themselves in their service layer instead._ ===== create This is a direct replacement for -https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_type.ts#L75-L82[the +https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/src/core/packages/saved-objects/server/src/saved_objects_type.ts#L75-L82[the old SavedObjectType.schemas] definition, now directly included in the model version definition. diff --git a/package.json b/package.json index a3c339525c09a..8635cc8a0deb3 100644 --- a/package.json +++ b/package.json @@ -376,7 +376,7 @@ "@kbn/core-saved-objects-common": "link:src/core/packages/saved-objects/common", "@kbn/core-saved-objects-import-export-server-internal": "link:src/core/packages/saved-objects/import-export-server-internal", "@kbn/core-saved-objects-migration-server-internal": "link:src/core/packages/saved-objects/migration-server-internal", - "@kbn/core-saved-objects-server": "link:packages/core/saved-objects/core-saved-objects-server", + "@kbn/core-saved-objects-server": "link:src/core/packages/saved-objects/server", "@kbn/core-saved-objects-server-internal": "link:packages/core/saved-objects/core-saved-objects-server-internal", "@kbn/core-saved-objects-utils-server": "link:packages/core/saved-objects/core-saved-objects-utils-server", "@kbn/core-security-browser": "link:packages/core/security/core-security-browser", diff --git a/packages/core/saved-objects/core-saved-objects-server/README.md b/src/core/packages/saved-objects/server/README.md similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/README.md rename to src/core/packages/saved-objects/server/README.md diff --git a/packages/core/saved-objects/core-saved-objects-server/docs/assets/mv_img_1.png b/src/core/packages/saved-objects/server/docs/assets/mv_img_1.png similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/docs/assets/mv_img_1.png rename to src/core/packages/saved-objects/server/docs/assets/mv_img_1.png diff --git a/packages/core/saved-objects/core-saved-objects-server/docs/model_versions.md b/src/core/packages/saved-objects/server/docs/model_versions.md similarity index 97% rename from packages/core/saved-objects/core-saved-objects-server/docs/model_versions.md rename to src/core/packages/saved-objects/server/docs/model_versions.md index 2790a2ebc8204..098f399686b7b 100644 --- a/packages/core/saved-objects/core-saved-objects-server/docs/model_versions.md +++ b/src/core/packages/saved-objects/server/docs/model_versions.md @@ -70,10 +70,10 @@ unsafe given our backward compatibility requirements. ## Defining model versions -As for old migrations, model versions are bound to a given [savedObject type](https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_type.ts#L22-L27) +As for old migrations, model versions are bound to a given [savedObject type](https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/src/core/packages/saved-objects/server/src/saved_objects_type.ts#L22-L27) -When registering a SO type, a new [modelVersions](https://github.com/elastic/kibana/blob/9a6a2ccdff619f827b31c40dd9ed30cb27203da7/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_type.ts#L138-L177) -property is available. This attribute is a map of [SavedObjectsModelVersion](https://github.com/elastic/kibana/blob/9a6a2ccdff619f827b31c40dd9ed30cb27203da7/packages/core/saved-objects/core-saved-objects-server/src/model_version/model_version.ts#L12-L20) +When registering a SO type, a new [modelVersions](https://github.com/elastic/kibana/blob/9a6a2ccdff619f827b31c40dd9ed30cb27203da7/src/core/packages/saved-objects/server/src/saved_objects_type.ts#L138-L177) +property is available. This attribute is a map of [SavedObjectsModelVersion](https://github.com/elastic/kibana/blob/9a6a2ccdff619f827b31c40dd9ed30cb27203da7/src/core/packages/saved-objects/server/src/model_version/model_version.ts#L12-L20) which is the top-level type/container to define model versions. This map follows a similar `{ [version number] => version definition }` format as the old migration map, however @@ -113,7 +113,7 @@ const myType: SavedObjectsType = { ## Structure of a model version -[Model versions](https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/packages/core/saved-objects/core-saved-objects-server/src/model_version/model_version.ts#L12-L20) +[Model versions](https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/src/core/packages/saved-objects/server/src/model_version/model_version.ts#L12-L20) are not just functions as the previous migrations were, but structured objects describing how the version behaves and what changed since the last one. *A base example of what a model version can look like:* @@ -175,7 +175,7 @@ It's currently composed of two main properties: ### changes -[link to the TS doc for `changes`](https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/packages/core/saved-objects/core-saved-objects-server/src/model_version/model_version.ts#L21-L51) +[link to the TS doc for `changes`](https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/src/core/packages/saved-objects/server/src/model_version/model_version.ts#L21-L51) Describes the list of changes applied during this version. @@ -281,7 +281,7 @@ let change: SavedObjectsModelUnsafeTransformChange = { ### schemas -[link to the TS doc for `schemas`](https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/packages/core/saved-objects/core-saved-objects-server/src/model_version/schemas.ts#L11-L16) +[link to the TS doc for `schemas`](https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/src/core/packages/saved-objects/server/src/model_version/schemas.ts#L11-L16) The schemas associated with this version. Schemas are used to validate or convert SO documents at various stages of their lifecycle. @@ -335,7 +335,7 @@ const versionSchema: SavedObjectModelVersionEvictionFn = (attributes) => { #### create -This is a direct replacement for [the old SavedObjectType.schemas](https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_type.ts#L75-L82) +This is a direct replacement for [the old SavedObjectType.schemas](https://github.com/elastic/kibana/blob/9b330e493216e8dde3166451e4714966f63f5ab7/src/core/packages/saved-objects/server/src/saved_objects_type.ts#L75-L82) definition, now directly included in the model version definition. As a refresher the `create` schema is a `@kbn/config-schema` object-type schema, and is used to validate the properties of the document diff --git a/packages/core/saved-objects/core-saved-objects-server/index.ts b/src/core/packages/saved-objects/server/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/index.ts rename to src/core/packages/saved-objects/server/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/jest.config.js b/src/core/packages/saved-objects/server/jest.config.js similarity index 83% rename from packages/core/saved-objects/core-saved-objects-server/jest.config.js rename to src/core/packages/saved-objects/server/jest.config.js index f30d24eb5919c..78eb06f85f28e 100644 --- a/packages/core/saved-objects/core-saved-objects-server/jest.config.js +++ b/src/core/packages/saved-objects/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/saved-objects/core-saved-objects-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/saved-objects/server'], }; diff --git a/packages/core/saved-objects/core-saved-objects-server/kibana.jsonc b/src/core/packages/saved-objects/server/kibana.jsonc similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/kibana.jsonc rename to src/core/packages/saved-objects/server/kibana.jsonc diff --git a/packages/core/saved-objects/core-saved-objects-server/package.json b/src/core/packages/saved-objects/server/package.json similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/package.json rename to src/core/packages/saved-objects/server/package.json diff --git a/packages/core/saved-objects/core-saved-objects-server/src/client_factory.ts b/src/core/packages/saved-objects/server/src/client_factory.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/client_factory.ts rename to src/core/packages/saved-objects/server/src/client_factory.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/contracts.ts b/src/core/packages/saved-objects/server/src/contracts.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/contracts.ts rename to src/core/packages/saved-objects/server/src/contracts.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/export.ts b/src/core/packages/saved-objects/server/src/export.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/export.ts rename to src/core/packages/saved-objects/server/src/export.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/extensions/encryption.ts b/src/core/packages/saved-objects/server/src/extensions/encryption.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/extensions/encryption.ts rename to src/core/packages/saved-objects/server/src/extensions/encryption.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/extensions/extensions.ts b/src/core/packages/saved-objects/server/src/extensions/extensions.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/extensions/extensions.ts rename to src/core/packages/saved-objects/server/src/extensions/extensions.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/extensions/security.ts b/src/core/packages/saved-objects/server/src/extensions/security.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/extensions/security.ts rename to src/core/packages/saved-objects/server/src/extensions/security.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/extensions/spaces.ts b/src/core/packages/saved-objects/server/src/extensions/spaces.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/extensions/spaces.ts rename to src/core/packages/saved-objects/server/src/extensions/spaces.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/import.ts b/src/core/packages/saved-objects/server/src/import.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/import.ts rename to src/core/packages/saved-objects/server/src/import.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/mapping_definition.ts b/src/core/packages/saved-objects/server/src/mapping_definition.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/mapping_definition.ts rename to src/core/packages/saved-objects/server/src/mapping_definition.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/migration.ts b/src/core/packages/saved-objects/server/src/migration.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/migration.ts rename to src/core/packages/saved-objects/server/src/migration.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/model_version/index.ts b/src/core/packages/saved-objects/server/src/model_version/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/model_version/index.ts rename to src/core/packages/saved-objects/server/src/model_version/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/model_version/model_change.ts b/src/core/packages/saved-objects/server/src/model_version/model_change.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/model_version/model_change.ts rename to src/core/packages/saved-objects/server/src/model_version/model_change.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/model_version/model_version.ts b/src/core/packages/saved-objects/server/src/model_version/model_version.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/model_version/model_version.ts rename to src/core/packages/saved-objects/server/src/model_version/model_version.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/model_version/schemas.ts b/src/core/packages/saved-objects/server/src/model_version/schemas.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/model_version/schemas.ts rename to src/core/packages/saved-objects/server/src/model_version/schemas.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/model_version/transformations.ts b/src/core/packages/saved-objects/server/src/model_version/transformations.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/model_version/transformations.ts rename to src/core/packages/saved-objects/server/src/model_version/transformations.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/request_handler_context.ts b/src/core/packages/saved-objects/server/src/request_handler_context.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/request_handler_context.ts rename to src/core/packages/saved-objects/server/src/request_handler_context.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_error_helpers.test.ts b/src/core/packages/saved-objects/server/src/saved_objects_error_helpers.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/saved_objects_error_helpers.test.ts rename to src/core/packages/saved-objects/server/src/saved_objects_error_helpers.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_error_helpers.ts b/src/core/packages/saved-objects/server/src/saved_objects_error_helpers.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/saved_objects_error_helpers.ts rename to src/core/packages/saved-objects/server/src/saved_objects_error_helpers.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_index_pattern.ts b/src/core/packages/saved-objects/server/src/saved_objects_index_pattern.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/saved_objects_index_pattern.ts rename to src/core/packages/saved-objects/server/src/saved_objects_index_pattern.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_management.ts b/src/core/packages/saved-objects/server/src/saved_objects_management.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/saved_objects_management.ts rename to src/core/packages/saved-objects/server/src/saved_objects_management.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_status.ts b/src/core/packages/saved-objects/server/src/saved_objects_status.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/saved_objects_status.ts rename to src/core/packages/saved-objects/server/src/saved_objects_status.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_type.ts b/src/core/packages/saved-objects/server/src/saved_objects_type.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/saved_objects_type.ts rename to src/core/packages/saved-objects/server/src/saved_objects_type.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/serialization.ts b/src/core/packages/saved-objects/server/src/serialization.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/serialization.ts rename to src/core/packages/saved-objects/server/src/serialization.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/type_registry.ts b/src/core/packages/saved-objects/server/src/type_registry.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/type_registry.ts rename to src/core/packages/saved-objects/server/src/type_registry.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/src/validation.ts b/src/core/packages/saved-objects/server/src/validation.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server/src/validation.ts rename to src/core/packages/saved-objects/server/src/validation.ts diff --git a/packages/core/saved-objects/core-saved-objects-server/tsconfig.json b/src/core/packages/saved-objects/server/tsconfig.json similarity index 90% rename from packages/core/saved-objects/core-saved-objects-server/tsconfig.json rename to src/core/packages/saved-objects/server/tsconfig.json index 71c4049e369da..8c73006487eee 100644 --- a/packages/core/saved-objects/core-saved-objects-server/tsconfig.json +++ b/src/core/packages/saved-objects/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index c55dc1b3a3806..2766a30a55a81 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -588,8 +588,8 @@ "@kbn/core-saved-objects-migration-server-internal/*": ["src/core/packages/saved-objects/migration-server-internal/*"], "@kbn/core-saved-objects-migration-server-mocks": ["packages/core/saved-objects/core-saved-objects-migration-server-mocks"], "@kbn/core-saved-objects-migration-server-mocks/*": ["packages/core/saved-objects/core-saved-objects-migration-server-mocks/*"], - "@kbn/core-saved-objects-server": ["packages/core/saved-objects/core-saved-objects-server"], - "@kbn/core-saved-objects-server/*": ["packages/core/saved-objects/core-saved-objects-server/*"], + "@kbn/core-saved-objects-server": ["src/core/packages/saved-objects/server"], + "@kbn/core-saved-objects-server/*": ["src/core/packages/saved-objects/server/*"], "@kbn/core-saved-objects-server-internal": ["packages/core/saved-objects/core-saved-objects-server-internal"], "@kbn/core-saved-objects-server-internal/*": ["packages/core/saved-objects/core-saved-objects-server-internal/*"], "@kbn/core-saved-objects-server-mocks": ["packages/core/saved-objects/core-saved-objects-server-mocks"], diff --git a/x-pack/platform/plugins/shared/cases/server/connectors/cases/retry_service.ts b/x-pack/platform/plugins/shared/cases/server/connectors/cases/retry_service.ts index bffb5d10c5b9f..1aba265af20b1 100644 --- a/x-pack/platform/plugins/shared/cases/server/connectors/cases/retry_service.ts +++ b/x-pack/platform/plugins/shared/cases/server/connectors/cases/retry_service.ts @@ -17,7 +17,7 @@ export class CaseConnectorRetryService { * 429 - Too Many Requests * 503 - ES Unavailable * - * Full list of errors: packages/core/saved-objects/core-saved-objects-server/src/saved_objects_error_helpers.ts + * Full list of errors: src/core/packages/saved-objects/server/src/saved_objects_error_helpers.ts */ private readonly RETRY_ERROR_STATUS_CODES: number[] = [409, 429, 503]; private readonly backOffStrategy: BackoffStrategy; diff --git a/x-pack/plugins/encrypted_saved_objects/server/create_model_version.ts b/x-pack/plugins/encrypted_saved_objects/server/create_model_version.ts index 952818e2b25d7..c8e2a2eea7619 100644 --- a/x-pack/plugins/encrypted_saved_objects/server/create_model_version.ts +++ b/x-pack/plugins/encrypted_saved_objects/server/create_model_version.ts @@ -93,7 +93,7 @@ function createMergedTransformFn( const decryptionParams = { // Note about isTypeBeingConverted: false // "Converting to multi-namespace clashes with the ZDT requirement for serverless" - // See deprecation in packages/core/saved-objects/core-saved-objects-server/src/migration.ts SavedObjectMigrationContext + // See deprecation in src/core/packages/saved-objects/server/src/migration.ts SavedObjectMigrationContext isTypeBeingConverted: false, originId, }; diff --git a/x-pack/solutions/security/plugins/security_solution/docs/rfcs/detection_response/prebuilt_rules_customization.md b/x-pack/solutions/security/plugins/security_solution/docs/rfcs/detection_response/prebuilt_rules_customization.md index fc7a72ff17f0f..388d80191bb23 100644 --- a/x-pack/solutions/security/plugins/security_solution/docs/rfcs/detection_response/prebuilt_rules_customization.md +++ b/x-pack/solutions/security/plugins/security_solution/docs/rfcs/detection_response/prebuilt_rules_customization.md @@ -393,7 +393,7 @@ No changes will be needed either for the `security-rule` [mapping](https://githu Historically, migrations to Elasticsearch saved objects were carried out by a procedure in which the changes in the SO were described in a migration operation that would be carried out **during an upgrade to a specific Kibana version**. See `x-pack/platform/plugins/shared/alerting/server/saved_objects/migrations/index.ts` for a list of migrations of SO that take place when a user updates Kibana to a specific version. -However, this mechanism is no longer supported by the Alerting Framework team - which maintained it -, and the new migration mechanism introduced to replace that, the [Model Version API](https://github.com/elastic/kibana/blob/main/packages/core/saved-objects/core-saved-objects-server/docs/model_versions.md), which is Serverless-compatible, doesn't support migrating encrypted saved objects. +However, this mechanism is no longer supported by the Alerting Framework team - which maintained it -, and the new migration mechanism introduced to replace that, the [Model Version API](https://github.com/elastic/kibana/blob/main/src/core/packages/saved-objects/server/docs/model_versions.md), which is Serverless-compatible, doesn't support migrating encrypted saved objects. Since our alerting rules are encrypted saved objects, we have to find an alternative strategy to migrate them. Therefore, we will perform the migration of the saved objects directly in the Detection API's endpoints that interact with them. This means that, instead of all of a user's saved object being migrated in a single operation during a Kibana update, the SO will be migrated when the pertinent endpoints are called. In the next section, we describe which those endpoints are. diff --git a/yarn.lock b/yarn.lock index 5ad82866bf741..f3ba11c62519a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4997,7 +4997,7 @@ version "0.0.0" uid "" -"@kbn/core-saved-objects-server@link:packages/core/saved-objects/core-saved-objects-server": +"@kbn/core-saved-objects-server@link:src/core/packages/saved-objects/server": version "0.0.0" uid "" From c611e8a9ae5acabeda7a3ea8fdb397334ecdd4a1 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:31:22 +0100 Subject: [PATCH 108/167] Relocating module `@kbn/core-saved-objects-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/saved-objects/server-internal}/README.md | 0 .../core/packages/saved-objects/server-internal}/index.ts | 0 .../packages/saved-objects/server-internal}/jest.config.js | 4 ++-- .../core/packages/saved-objects/server-internal}/kibana.jsonc | 0 .../core/packages/saved-objects/server-internal}/package.json | 0 .../server-internal}/src/apply_type_defaults.test.ts | 0 .../saved-objects/server-internal}/src/apply_type_defaults.ts | 0 .../packages/saved-objects/server-internal}/src/constants.ts | 0 .../server-internal}/src/deprecations/deprecation_factory.ts | 0 .../saved-objects/server-internal}/src/deprecations/index.ts | 0 .../src/deprecations/unknown_object_types.test.mocks.ts | 0 .../src/deprecations/unknown_object_types.test.ts | 0 .../server-internal}/src/deprecations/unknown_object_types.ts | 0 .../core/packages/saved-objects/server-internal}/src/index.ts | 0 .../saved-objects/server-internal}/src/internal_types.ts | 0 .../server-internal}/src/mocks/internal_mocks.ts | 0 .../saved-objects/server-internal}/src/object_types/index.ts | 0 .../server-internal}/src/object_types/registration.test.ts | 0 .../server-internal}/src/object_types/registration.ts | 0 .../saved-objects/server-internal}/src/routes/bulk_create.ts | 0 .../saved-objects/server-internal}/src/routes/bulk_delete.ts | 0 .../saved-objects/server-internal}/src/routes/bulk_get.ts | 0 .../saved-objects/server-internal}/src/routes/bulk_resolve.ts | 0 .../saved-objects/server-internal}/src/routes/bulk_update.ts | 0 .../saved-objects/server-internal}/src/routes/create.ts | 0 .../saved-objects/server-internal}/src/routes/delete.ts | 0 .../src/routes/deprecations/delete_unknown_types.ts | 0 .../server-internal}/src/routes/deprecations/index.ts | 0 .../saved-objects/server-internal}/src/routes/export.ts | 0 .../saved-objects/server-internal}/src/routes/find.ts | 0 .../packages/saved-objects/server-internal}/src/routes/get.ts | 0 .../saved-objects/server-internal}/src/routes/import.ts | 0 .../saved-objects/server-internal}/src/routes/index.ts | 0 .../src/routes/legacy_import_export/export.ts | 0 .../src/routes/legacy_import_export/import.ts | 0 .../legacy_import_export/lib/collect_references_deep.test.ts | 0 .../legacy_import_export/lib/collect_references_deep.ts | 0 .../src/routes/legacy_import_export/lib/export_dashboards.ts | 0 .../routes/legacy_import_export/lib/import_dashboards.test.ts | 0 .../src/routes/legacy_import_export/lib/import_dashboards.ts | 0 .../src/routes/legacy_import_export/lib/index.ts | 0 .../saved-objects/server-internal}/src/routes/migrate.ts | 0 .../saved-objects/server-internal}/src/routes/resolve.ts | 0 .../server-internal}/src/routes/resolve_import_errors.ts | 0 .../saved-objects/server-internal}/src/routes/update.ts | 0 .../saved-objects/server-internal}/src/routes/utils.test.ts | 0 .../saved-objects/server-internal}/src/routes/utils.ts | 0 .../src/saved_objects_route_handler_context.ts | 0 .../server-internal}/src/saved_objects_service.test.mocks.ts | 0 .../server-internal}/src/saved_objects_service.test.ts | 0 .../server-internal}/src/saved_objects_service.ts | 0 .../saved-objects/server-internal}/src/status.test.ts | 0 .../packages/saved-objects/server-internal}/src/status.ts | 0 .../server-internal}/src/utils/get_all_indices.test.ts | 0 .../server-internal}/src/utils/get_all_indices.ts | 0 .../saved-objects/server-internal}/src/utils/index.ts | 0 .../packages/saved-objects/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 61 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/README.md (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/jest.config.js (82%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/kibana.jsonc (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/package.json (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/apply_type_defaults.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/apply_type_defaults.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/constants.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/deprecations/deprecation_factory.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/deprecations/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/deprecations/unknown_object_types.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/deprecations/unknown_object_types.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/deprecations/unknown_object_types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/internal_types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/mocks/internal_mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/object_types/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/object_types/registration.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/object_types/registration.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/bulk_create.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/bulk_delete.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/bulk_get.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/bulk_resolve.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/bulk_update.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/create.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/delete.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/deprecations/delete_unknown_types.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/deprecations/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/export.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/find.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/get.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/import.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/legacy_import_export/export.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/legacy_import_export/import.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/legacy_import_export/lib/collect_references_deep.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/legacy_import_export/lib/collect_references_deep.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/legacy_import_export/lib/export_dashboards.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/legacy_import_export/lib/import_dashboards.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/legacy_import_export/lib/import_dashboards.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/legacy_import_export/lib/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/migrate.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/resolve.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/resolve_import_errors.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/update.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/utils.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/routes/utils.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/saved_objects_route_handler_context.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/saved_objects_service.test.mocks.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/saved_objects_service.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/saved_objects_service.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/status.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/status.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/utils/get_all_indices.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/utils/get_all_indices.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/src/utils/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-server-internal => src/core/packages/saved-objects/server-internal}/tsconfig.json (96%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dc65afb8a9246..54fa43eb792e6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -108,7 +108,6 @@ packages/core/saved-objects/core-saved-objects-base-server-mocks @elastic/kibana packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core -packages/core/saved-objects/core-saved-objects-server-internal @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-utils-server @elastic/kibana-core packages/core/security/core-security-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/saved-objects/common @elastic/kibana-core src/core/packages/saved-objects/import-export-server-internal @elastic/kibana-core src/core/packages/saved-objects/migration-server-internal @elastic/kibana-core src/core/packages/saved-objects/server @elastic/kibana-core +src/core/packages/saved-objects/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 8635cc8a0deb3..6eb03b0000e61 100644 --- a/package.json +++ b/package.json @@ -377,7 +377,7 @@ "@kbn/core-saved-objects-import-export-server-internal": "link:src/core/packages/saved-objects/import-export-server-internal", "@kbn/core-saved-objects-migration-server-internal": "link:src/core/packages/saved-objects/migration-server-internal", "@kbn/core-saved-objects-server": "link:src/core/packages/saved-objects/server", - "@kbn/core-saved-objects-server-internal": "link:packages/core/saved-objects/core-saved-objects-server-internal", + "@kbn/core-saved-objects-server-internal": "link:src/core/packages/saved-objects/server-internal", "@kbn/core-saved-objects-utils-server": "link:packages/core/saved-objects/core-saved-objects-utils-server", "@kbn/core-security-browser": "link:packages/core/security/core-security-browser", "@kbn/core-security-browser-internal": "link:packages/core/security/core-security-browser-internal", diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/README.md b/src/core/packages/saved-objects/server-internal/README.md similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/README.md rename to src/core/packages/saved-objects/server-internal/README.md diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/index.ts b/src/core/packages/saved-objects/server-internal/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/index.ts rename to src/core/packages/saved-objects/server-internal/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/jest.config.js b/src/core/packages/saved-objects/server-internal/jest.config.js similarity index 82% rename from packages/core/saved-objects/core-saved-objects-server-internal/jest.config.js rename to src/core/packages/saved-objects/server-internal/jest.config.js index d7700d6ed78cb..a39534a81e908 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/jest.config.js +++ b/src/core/packages/saved-objects/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/saved-objects/core-saved-objects-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/saved-objects/server-internal'], }; diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/kibana.jsonc b/src/core/packages/saved-objects/server-internal/kibana.jsonc similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/kibana.jsonc rename to src/core/packages/saved-objects/server-internal/kibana.jsonc diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/package.json b/src/core/packages/saved-objects/server-internal/package.json similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/package.json rename to src/core/packages/saved-objects/server-internal/package.json diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/apply_type_defaults.test.ts b/src/core/packages/saved-objects/server-internal/src/apply_type_defaults.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/apply_type_defaults.test.ts rename to src/core/packages/saved-objects/server-internal/src/apply_type_defaults.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/apply_type_defaults.ts b/src/core/packages/saved-objects/server-internal/src/apply_type_defaults.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/apply_type_defaults.ts rename to src/core/packages/saved-objects/server-internal/src/apply_type_defaults.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/constants.ts b/src/core/packages/saved-objects/server-internal/src/constants.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/constants.ts rename to src/core/packages/saved-objects/server-internal/src/constants.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/deprecations/deprecation_factory.ts b/src/core/packages/saved-objects/server-internal/src/deprecations/deprecation_factory.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/deprecations/deprecation_factory.ts rename to src/core/packages/saved-objects/server-internal/src/deprecations/deprecation_factory.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/deprecations/index.ts b/src/core/packages/saved-objects/server-internal/src/deprecations/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/deprecations/index.ts rename to src/core/packages/saved-objects/server-internal/src/deprecations/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/deprecations/unknown_object_types.test.mocks.ts b/src/core/packages/saved-objects/server-internal/src/deprecations/unknown_object_types.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/deprecations/unknown_object_types.test.mocks.ts rename to src/core/packages/saved-objects/server-internal/src/deprecations/unknown_object_types.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/deprecations/unknown_object_types.test.ts b/src/core/packages/saved-objects/server-internal/src/deprecations/unknown_object_types.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/deprecations/unknown_object_types.test.ts rename to src/core/packages/saved-objects/server-internal/src/deprecations/unknown_object_types.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/deprecations/unknown_object_types.ts b/src/core/packages/saved-objects/server-internal/src/deprecations/unknown_object_types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/deprecations/unknown_object_types.ts rename to src/core/packages/saved-objects/server-internal/src/deprecations/unknown_object_types.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/index.ts b/src/core/packages/saved-objects/server-internal/src/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/index.ts rename to src/core/packages/saved-objects/server-internal/src/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/internal_types.ts b/src/core/packages/saved-objects/server-internal/src/internal_types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/internal_types.ts rename to src/core/packages/saved-objects/server-internal/src/internal_types.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/mocks/internal_mocks.ts b/src/core/packages/saved-objects/server-internal/src/mocks/internal_mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/mocks/internal_mocks.ts rename to src/core/packages/saved-objects/server-internal/src/mocks/internal_mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/object_types/index.ts b/src/core/packages/saved-objects/server-internal/src/object_types/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/object_types/index.ts rename to src/core/packages/saved-objects/server-internal/src/object_types/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/object_types/registration.test.ts b/src/core/packages/saved-objects/server-internal/src/object_types/registration.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/object_types/registration.test.ts rename to src/core/packages/saved-objects/server-internal/src/object_types/registration.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/object_types/registration.ts b/src/core/packages/saved-objects/server-internal/src/object_types/registration.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/object_types/registration.ts rename to src/core/packages/saved-objects/server-internal/src/object_types/registration.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_create.ts b/src/core/packages/saved-objects/server-internal/src/routes/bulk_create.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_create.ts rename to src/core/packages/saved-objects/server-internal/src/routes/bulk_create.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_delete.ts b/src/core/packages/saved-objects/server-internal/src/routes/bulk_delete.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_delete.ts rename to src/core/packages/saved-objects/server-internal/src/routes/bulk_delete.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_get.ts b/src/core/packages/saved-objects/server-internal/src/routes/bulk_get.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_get.ts rename to src/core/packages/saved-objects/server-internal/src/routes/bulk_get.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_resolve.ts b/src/core/packages/saved-objects/server-internal/src/routes/bulk_resolve.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_resolve.ts rename to src/core/packages/saved-objects/server-internal/src/routes/bulk_resolve.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_update.ts b/src/core/packages/saved-objects/server-internal/src/routes/bulk_update.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/bulk_update.ts rename to src/core/packages/saved-objects/server-internal/src/routes/bulk_update.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/create.ts b/src/core/packages/saved-objects/server-internal/src/routes/create.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/create.ts rename to src/core/packages/saved-objects/server-internal/src/routes/create.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/delete.ts b/src/core/packages/saved-objects/server-internal/src/routes/delete.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/delete.ts rename to src/core/packages/saved-objects/server-internal/src/routes/delete.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/deprecations/delete_unknown_types.ts b/src/core/packages/saved-objects/server-internal/src/routes/deprecations/delete_unknown_types.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/deprecations/delete_unknown_types.ts rename to src/core/packages/saved-objects/server-internal/src/routes/deprecations/delete_unknown_types.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/deprecations/index.ts b/src/core/packages/saved-objects/server-internal/src/routes/deprecations/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/deprecations/index.ts rename to src/core/packages/saved-objects/server-internal/src/routes/deprecations/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/export.ts b/src/core/packages/saved-objects/server-internal/src/routes/export.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/export.ts rename to src/core/packages/saved-objects/server-internal/src/routes/export.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/find.ts b/src/core/packages/saved-objects/server-internal/src/routes/find.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/find.ts rename to src/core/packages/saved-objects/server-internal/src/routes/find.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/get.ts b/src/core/packages/saved-objects/server-internal/src/routes/get.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/get.ts rename to src/core/packages/saved-objects/server-internal/src/routes/get.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/import.ts b/src/core/packages/saved-objects/server-internal/src/routes/import.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/import.ts rename to src/core/packages/saved-objects/server-internal/src/routes/import.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/index.ts b/src/core/packages/saved-objects/server-internal/src/routes/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/index.ts rename to src/core/packages/saved-objects/server-internal/src/routes/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/export.ts b/src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/export.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/export.ts rename to src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/export.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/import.ts b/src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/import.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/import.ts rename to src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/import.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/lib/collect_references_deep.test.ts b/src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/lib/collect_references_deep.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/lib/collect_references_deep.test.ts rename to src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/lib/collect_references_deep.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/lib/collect_references_deep.ts b/src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/lib/collect_references_deep.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/lib/collect_references_deep.ts rename to src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/lib/collect_references_deep.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/lib/export_dashboards.ts b/src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/lib/export_dashboards.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/lib/export_dashboards.ts rename to src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/lib/export_dashboards.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/lib/import_dashboards.test.ts b/src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/lib/import_dashboards.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/lib/import_dashboards.test.ts rename to src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/lib/import_dashboards.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/lib/import_dashboards.ts b/src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/lib/import_dashboards.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/lib/import_dashboards.ts rename to src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/lib/import_dashboards.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/lib/index.ts b/src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/lib/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/legacy_import_export/lib/index.ts rename to src/core/packages/saved-objects/server-internal/src/routes/legacy_import_export/lib/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/migrate.ts b/src/core/packages/saved-objects/server-internal/src/routes/migrate.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/migrate.ts rename to src/core/packages/saved-objects/server-internal/src/routes/migrate.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/resolve.ts b/src/core/packages/saved-objects/server-internal/src/routes/resolve.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/resolve.ts rename to src/core/packages/saved-objects/server-internal/src/routes/resolve.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/resolve_import_errors.ts b/src/core/packages/saved-objects/server-internal/src/routes/resolve_import_errors.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/resolve_import_errors.ts rename to src/core/packages/saved-objects/server-internal/src/routes/resolve_import_errors.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/update.ts b/src/core/packages/saved-objects/server-internal/src/routes/update.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/update.ts rename to src/core/packages/saved-objects/server-internal/src/routes/update.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/utils.test.ts b/src/core/packages/saved-objects/server-internal/src/routes/utils.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/utils.test.ts rename to src/core/packages/saved-objects/server-internal/src/routes/utils.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/routes/utils.ts b/src/core/packages/saved-objects/server-internal/src/routes/utils.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/routes/utils.ts rename to src/core/packages/saved-objects/server-internal/src/routes/utils.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/saved_objects_route_handler_context.ts b/src/core/packages/saved-objects/server-internal/src/saved_objects_route_handler_context.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/saved_objects_route_handler_context.ts rename to src/core/packages/saved-objects/server-internal/src/saved_objects_route_handler_context.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/saved_objects_service.test.mocks.ts b/src/core/packages/saved-objects/server-internal/src/saved_objects_service.test.mocks.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/saved_objects_service.test.mocks.ts rename to src/core/packages/saved-objects/server-internal/src/saved_objects_service.test.mocks.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/saved_objects_service.test.ts b/src/core/packages/saved-objects/server-internal/src/saved_objects_service.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/saved_objects_service.test.ts rename to src/core/packages/saved-objects/server-internal/src/saved_objects_service.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/saved_objects_service.ts b/src/core/packages/saved-objects/server-internal/src/saved_objects_service.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/saved_objects_service.ts rename to src/core/packages/saved-objects/server-internal/src/saved_objects_service.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/status.test.ts b/src/core/packages/saved-objects/server-internal/src/status.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/status.test.ts rename to src/core/packages/saved-objects/server-internal/src/status.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/status.ts b/src/core/packages/saved-objects/server-internal/src/status.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/status.ts rename to src/core/packages/saved-objects/server-internal/src/status.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/utils/get_all_indices.test.ts b/src/core/packages/saved-objects/server-internal/src/utils/get_all_indices.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/utils/get_all_indices.test.ts rename to src/core/packages/saved-objects/server-internal/src/utils/get_all_indices.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/utils/get_all_indices.ts b/src/core/packages/saved-objects/server-internal/src/utils/get_all_indices.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/utils/get_all_indices.ts rename to src/core/packages/saved-objects/server-internal/src/utils/get_all_indices.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/src/utils/index.ts b/src/core/packages/saved-objects/server-internal/src/utils/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-server-internal/src/utils/index.ts rename to src/core/packages/saved-objects/server-internal/src/utils/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/tsconfig.json b/src/core/packages/saved-objects/server-internal/tsconfig.json similarity index 96% rename from packages/core/saved-objects/core-saved-objects-server-internal/tsconfig.json rename to src/core/packages/saved-objects/server-internal/tsconfig.json index bd5c290172794..0397bea8f0dbd 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/tsconfig.json +++ b/src/core/packages/saved-objects/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 2766a30a55a81..b39094721ed86 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -590,8 +590,8 @@ "@kbn/core-saved-objects-migration-server-mocks/*": ["packages/core/saved-objects/core-saved-objects-migration-server-mocks/*"], "@kbn/core-saved-objects-server": ["src/core/packages/saved-objects/server"], "@kbn/core-saved-objects-server/*": ["src/core/packages/saved-objects/server/*"], - "@kbn/core-saved-objects-server-internal": ["packages/core/saved-objects/core-saved-objects-server-internal"], - "@kbn/core-saved-objects-server-internal/*": ["packages/core/saved-objects/core-saved-objects-server-internal/*"], + "@kbn/core-saved-objects-server-internal": ["src/core/packages/saved-objects/server-internal"], + "@kbn/core-saved-objects-server-internal/*": ["src/core/packages/saved-objects/server-internal/*"], "@kbn/core-saved-objects-server-mocks": ["packages/core/saved-objects/core-saved-objects-server-mocks"], "@kbn/core-saved-objects-server-mocks/*": ["packages/core/saved-objects/core-saved-objects-server-mocks/*"], "@kbn/core-saved-objects-utils-server": ["packages/core/saved-objects/core-saved-objects-utils-server"], diff --git a/yarn.lock b/yarn.lock index f3ba11c62519a..2c2457ab09064 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4989,7 +4989,7 @@ version "0.0.0" uid "" -"@kbn/core-saved-objects-server-internal@link:packages/core/saved-objects/core-saved-objects-server-internal": +"@kbn/core-saved-objects-server-internal@link:src/core/packages/saved-objects/server-internal": version "0.0.0" uid "" From a026bc48a13a1fa2f197e9cd5ed29d11cbc9a915 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:32:17 +0100 Subject: [PATCH 109/167] Relocating module `@kbn/core-saved-objects-utils-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/saved-objects/utils-server}/README.md | 0 .../core/packages/saved-objects/utils-server}/index.ts | 0 .../core/packages/saved-objects/utils-server}/jest.config.js | 4 ++-- .../core/packages/saved-objects/utils-server}/kibana.jsonc | 0 .../core/packages/saved-objects/utils-server}/package.json | 0 .../saved-objects/utils-server}/src/merge_migrations.test.ts | 0 .../saved-objects/utils-server}/src/merge_migrations.ts | 0 .../utils-server}/src/saved_objects_test_utils.test.ts | 0 .../utils-server}/src/saved_objects_test_utils.ts | 0 .../utils-server}/src/saved_objects_utils.test.mock.ts | 0 .../utils-server}/src/saved_objects_utils.test.ts | 0 .../saved-objects/utils-server}/src/saved_objects_utils.ts | 0 .../core/packages/saved-objects/utils-server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 17 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/saved-objects/core-saved-objects-utils-server => src/core/packages/saved-objects/utils-server}/README.md (100%) rename {packages/core/saved-objects/core-saved-objects-utils-server => src/core/packages/saved-objects/utils-server}/index.ts (100%) rename {packages/core/saved-objects/core-saved-objects-utils-server => src/core/packages/saved-objects/utils-server}/jest.config.js (82%) rename {packages/core/saved-objects/core-saved-objects-utils-server => src/core/packages/saved-objects/utils-server}/kibana.jsonc (100%) rename {packages/core/saved-objects/core-saved-objects-utils-server => src/core/packages/saved-objects/utils-server}/package.json (100%) rename {packages/core/saved-objects/core-saved-objects-utils-server => src/core/packages/saved-objects/utils-server}/src/merge_migrations.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-utils-server => src/core/packages/saved-objects/utils-server}/src/merge_migrations.ts (100%) rename {packages/core/saved-objects/core-saved-objects-utils-server => src/core/packages/saved-objects/utils-server}/src/saved_objects_test_utils.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-utils-server => src/core/packages/saved-objects/utils-server}/src/saved_objects_test_utils.ts (100%) rename {packages/core/saved-objects/core-saved-objects-utils-server => src/core/packages/saved-objects/utils-server}/src/saved_objects_utils.test.mock.ts (100%) rename {packages/core/saved-objects/core-saved-objects-utils-server => src/core/packages/saved-objects/utils-server}/src/saved_objects_utils.test.ts (100%) rename {packages/core/saved-objects/core-saved-objects-utils-server => src/core/packages/saved-objects/utils-server}/src/saved_objects_utils.ts (100%) rename {packages/core/saved-objects/core-saved-objects-utils-server => src/core/packages/saved-objects/utils-server}/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 54fa43eb792e6..cb8236b827353 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -109,7 +109,6 @@ packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-cor packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core -packages/core/saved-objects/core-saved-objects-utils-server @elastic/kibana-core packages/core/security/core-security-browser @elastic/kibana-core packages/core/security/core-security-browser-internal @elastic/kibana-core packages/core/security/core-security-browser-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/saved-objects/import-export-server-internal @elastic/kibana-co src/core/packages/saved-objects/migration-server-internal @elastic/kibana-core src/core/packages/saved-objects/server @elastic/kibana-core src/core/packages/saved-objects/server-internal @elastic/kibana-core +src/core/packages/saved-objects/utils-server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 6eb03b0000e61..63f371cad06b7 100644 --- a/package.json +++ b/package.json @@ -378,7 +378,7 @@ "@kbn/core-saved-objects-migration-server-internal": "link:src/core/packages/saved-objects/migration-server-internal", "@kbn/core-saved-objects-server": "link:src/core/packages/saved-objects/server", "@kbn/core-saved-objects-server-internal": "link:src/core/packages/saved-objects/server-internal", - "@kbn/core-saved-objects-utils-server": "link:packages/core/saved-objects/core-saved-objects-utils-server", + "@kbn/core-saved-objects-utils-server": "link:src/core/packages/saved-objects/utils-server", "@kbn/core-security-browser": "link:packages/core/security/core-security-browser", "@kbn/core-security-browser-internal": "link:packages/core/security/core-security-browser-internal", "@kbn/core-security-browser-mocks": "link:packages/core/security/core-security-browser-mocks", diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/README.md b/src/core/packages/saved-objects/utils-server/README.md similarity index 100% rename from packages/core/saved-objects/core-saved-objects-utils-server/README.md rename to src/core/packages/saved-objects/utils-server/README.md diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/index.ts b/src/core/packages/saved-objects/utils-server/index.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-utils-server/index.ts rename to src/core/packages/saved-objects/utils-server/index.ts diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/jest.config.js b/src/core/packages/saved-objects/utils-server/jest.config.js similarity index 82% rename from packages/core/saved-objects/core-saved-objects-utils-server/jest.config.js rename to src/core/packages/saved-objects/utils-server/jest.config.js index a5d1cb100bda7..39e1ecc94a42f 100644 --- a/packages/core/saved-objects/core-saved-objects-utils-server/jest.config.js +++ b/src/core/packages/saved-objects/utils-server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/saved-objects/core-saved-objects-utils-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/saved-objects/utils-server'], }; diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/kibana.jsonc b/src/core/packages/saved-objects/utils-server/kibana.jsonc similarity index 100% rename from packages/core/saved-objects/core-saved-objects-utils-server/kibana.jsonc rename to src/core/packages/saved-objects/utils-server/kibana.jsonc diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/package.json b/src/core/packages/saved-objects/utils-server/package.json similarity index 100% rename from packages/core/saved-objects/core-saved-objects-utils-server/package.json rename to src/core/packages/saved-objects/utils-server/package.json diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/src/merge_migrations.test.ts b/src/core/packages/saved-objects/utils-server/src/merge_migrations.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-utils-server/src/merge_migrations.test.ts rename to src/core/packages/saved-objects/utils-server/src/merge_migrations.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/src/merge_migrations.ts b/src/core/packages/saved-objects/utils-server/src/merge_migrations.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-utils-server/src/merge_migrations.ts rename to src/core/packages/saved-objects/utils-server/src/merge_migrations.ts diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/src/saved_objects_test_utils.test.ts b/src/core/packages/saved-objects/utils-server/src/saved_objects_test_utils.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-utils-server/src/saved_objects_test_utils.test.ts rename to src/core/packages/saved-objects/utils-server/src/saved_objects_test_utils.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/src/saved_objects_test_utils.ts b/src/core/packages/saved-objects/utils-server/src/saved_objects_test_utils.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-utils-server/src/saved_objects_test_utils.ts rename to src/core/packages/saved-objects/utils-server/src/saved_objects_test_utils.ts diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/src/saved_objects_utils.test.mock.ts b/src/core/packages/saved-objects/utils-server/src/saved_objects_utils.test.mock.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-utils-server/src/saved_objects_utils.test.mock.ts rename to src/core/packages/saved-objects/utils-server/src/saved_objects_utils.test.mock.ts diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/src/saved_objects_utils.test.ts b/src/core/packages/saved-objects/utils-server/src/saved_objects_utils.test.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-utils-server/src/saved_objects_utils.test.ts rename to src/core/packages/saved-objects/utils-server/src/saved_objects_utils.test.ts diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/src/saved_objects_utils.ts b/src/core/packages/saved-objects/utils-server/src/saved_objects_utils.ts similarity index 100% rename from packages/core/saved-objects/core-saved-objects-utils-server/src/saved_objects_utils.ts rename to src/core/packages/saved-objects/utils-server/src/saved_objects_utils.ts diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/tsconfig.json b/src/core/packages/saved-objects/utils-server/tsconfig.json similarity index 85% rename from packages/core/saved-objects/core-saved-objects-utils-server/tsconfig.json rename to src/core/packages/saved-objects/utils-server/tsconfig.json index 25ba9d5fefac7..3614e2d7fc1f6 100644 --- a/packages/core/saved-objects/core-saved-objects-utils-server/tsconfig.json +++ b/src/core/packages/saved-objects/utils-server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index b39094721ed86..27b0c151658d5 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -594,8 +594,8 @@ "@kbn/core-saved-objects-server-internal/*": ["src/core/packages/saved-objects/server-internal/*"], "@kbn/core-saved-objects-server-mocks": ["packages/core/saved-objects/core-saved-objects-server-mocks"], "@kbn/core-saved-objects-server-mocks/*": ["packages/core/saved-objects/core-saved-objects-server-mocks/*"], - "@kbn/core-saved-objects-utils-server": ["packages/core/saved-objects/core-saved-objects-utils-server"], - "@kbn/core-saved-objects-utils-server/*": ["packages/core/saved-objects/core-saved-objects-utils-server/*"], + "@kbn/core-saved-objects-utils-server": ["src/core/packages/saved-objects/utils-server"], + "@kbn/core-saved-objects-utils-server/*": ["src/core/packages/saved-objects/utils-server/*"], "@kbn/core-security-browser": ["packages/core/security/core-security-browser"], "@kbn/core-security-browser/*": ["packages/core/security/core-security-browser/*"], "@kbn/core-security-browser-internal": ["packages/core/security/core-security-browser-internal"], diff --git a/yarn.lock b/yarn.lock index 2c2457ab09064..b60657e834817 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5001,7 +5001,7 @@ version "0.0.0" uid "" -"@kbn/core-saved-objects-utils-server@link:packages/core/saved-objects/core-saved-objects-utils-server": +"@kbn/core-saved-objects-utils-server@link:src/core/packages/saved-objects/utils-server": version "0.0.0" uid "" From 6962a8c0d23f009fe93e32aae607d7290303c302 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:33:14 +0100 Subject: [PATCH 110/167] Relocating module `@kbn/core-security-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/security/browser}/README.md | 0 .../core/packages/security/browser}/index.ts | 0 .../core/packages/security/browser}/jest.config.js | 4 ++-- .../core/packages/security/browser}/kibana.jsonc | 0 .../core/packages/security/browser}/package.json | 0 .../core/packages/security/browser}/src/api_provider.ts | 0 .../core/packages/security/browser}/src/authc.ts | 0 .../core/packages/security/browser}/src/contracts.ts | 0 .../core/packages/security/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/security/core-security-browser => src/core/packages/security/browser}/README.md (100%) rename {packages/core/security/core-security-browser => src/core/packages/security/browser}/index.ts (100%) rename {packages/core/security/core-security-browser => src/core/packages/security/browser}/jest.config.js (84%) rename {packages/core/security/core-security-browser => src/core/packages/security/browser}/kibana.jsonc (100%) rename {packages/core/security/core-security-browser => src/core/packages/security/browser}/package.json (100%) rename {packages/core/security/core-security-browser => src/core/packages/security/browser}/src/api_provider.ts (100%) rename {packages/core/security/core-security-browser => src/core/packages/security/browser}/src/authc.ts (100%) rename {packages/core/security/core-security-browser => src/core/packages/security/browser}/src/contracts.ts (100%) rename {packages/core/security/core-security-browser => src/core/packages/security/browser}/tsconfig.json (84%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index cb8236b827353..76eb144495bd8 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -109,7 +109,6 @@ packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-cor packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core -packages/core/security/core-security-browser @elastic/kibana-core packages/core/security/core-security-browser-internal @elastic/kibana-core packages/core/security/core-security-browser-mocks @elastic/kibana-core packages/core/security/core-security-common @elastic/kibana-core @elastic/kibana-security @@ -493,6 +492,7 @@ src/core/packages/saved-objects/migration-server-internal @elastic/kibana-core src/core/packages/saved-objects/server @elastic/kibana-core src/core/packages/saved-objects/server-internal @elastic/kibana-core src/core/packages/saved-objects/utils-server @elastic/kibana-core +src/core/packages/security/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 63f371cad06b7..1e3184acf1a69 100644 --- a/package.json +++ b/package.json @@ -379,7 +379,7 @@ "@kbn/core-saved-objects-server": "link:src/core/packages/saved-objects/server", "@kbn/core-saved-objects-server-internal": "link:src/core/packages/saved-objects/server-internal", "@kbn/core-saved-objects-utils-server": "link:src/core/packages/saved-objects/utils-server", - "@kbn/core-security-browser": "link:packages/core/security/core-security-browser", + "@kbn/core-security-browser": "link:src/core/packages/security/browser", "@kbn/core-security-browser-internal": "link:packages/core/security/core-security-browser-internal", "@kbn/core-security-browser-mocks": "link:packages/core/security/core-security-browser-mocks", "@kbn/core-security-common": "link:packages/core/security/core-security-common", diff --git a/packages/core/security/core-security-browser/README.md b/src/core/packages/security/browser/README.md similarity index 100% rename from packages/core/security/core-security-browser/README.md rename to src/core/packages/security/browser/README.md diff --git a/packages/core/security/core-security-browser/index.ts b/src/core/packages/security/browser/index.ts similarity index 100% rename from packages/core/security/core-security-browser/index.ts rename to src/core/packages/security/browser/index.ts diff --git a/packages/core/security/core-security-browser/jest.config.js b/src/core/packages/security/browser/jest.config.js similarity index 84% rename from packages/core/security/core-security-browser/jest.config.js rename to src/core/packages/security/browser/jest.config.js index 6f79f0c76f2b7..3b7b1dcd7d569 100644 --- a/packages/core/security/core-security-browser/jest.config.js +++ b/src/core/packages/security/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/security/core-security-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/security/browser'], }; diff --git a/packages/core/security/core-security-browser/kibana.jsonc b/src/core/packages/security/browser/kibana.jsonc similarity index 100% rename from packages/core/security/core-security-browser/kibana.jsonc rename to src/core/packages/security/browser/kibana.jsonc diff --git a/packages/core/security/core-security-browser/package.json b/src/core/packages/security/browser/package.json similarity index 100% rename from packages/core/security/core-security-browser/package.json rename to src/core/packages/security/browser/package.json diff --git a/packages/core/security/core-security-browser/src/api_provider.ts b/src/core/packages/security/browser/src/api_provider.ts similarity index 100% rename from packages/core/security/core-security-browser/src/api_provider.ts rename to src/core/packages/security/browser/src/api_provider.ts diff --git a/packages/core/security/core-security-browser/src/authc.ts b/src/core/packages/security/browser/src/authc.ts similarity index 100% rename from packages/core/security/core-security-browser/src/authc.ts rename to src/core/packages/security/browser/src/authc.ts diff --git a/packages/core/security/core-security-browser/src/contracts.ts b/src/core/packages/security/browser/src/contracts.ts similarity index 100% rename from packages/core/security/core-security-browser/src/contracts.ts rename to src/core/packages/security/browser/src/contracts.ts diff --git a/packages/core/security/core-security-browser/tsconfig.json b/src/core/packages/security/browser/tsconfig.json similarity index 84% rename from packages/core/security/core-security-browser/tsconfig.json rename to src/core/packages/security/browser/tsconfig.json index 460811ea00d14..18e00d93a2a98 100644 --- a/packages/core/security/core-security-browser/tsconfig.json +++ b/src/core/packages/security/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 27b0c151658d5..f71e8c9914041 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -596,8 +596,8 @@ "@kbn/core-saved-objects-server-mocks/*": ["packages/core/saved-objects/core-saved-objects-server-mocks/*"], "@kbn/core-saved-objects-utils-server": ["src/core/packages/saved-objects/utils-server"], "@kbn/core-saved-objects-utils-server/*": ["src/core/packages/saved-objects/utils-server/*"], - "@kbn/core-security-browser": ["packages/core/security/core-security-browser"], - "@kbn/core-security-browser/*": ["packages/core/security/core-security-browser/*"], + "@kbn/core-security-browser": ["src/core/packages/security/browser"], + "@kbn/core-security-browser/*": ["src/core/packages/security/browser/*"], "@kbn/core-security-browser-internal": ["packages/core/security/core-security-browser-internal"], "@kbn/core-security-browser-internal/*": ["packages/core/security/core-security-browser-internal/*"], "@kbn/core-security-browser-mocks": ["packages/core/security/core-security-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index b60657e834817..8e591e93be0ec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5013,7 +5013,7 @@ version "0.0.0" uid "" -"@kbn/core-security-browser@link:packages/core/security/core-security-browser": +"@kbn/core-security-browser@link:src/core/packages/security/browser": version "0.0.0" uid "" From d383ea3a099fd994ab0268282e30e93e9712e912 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:34:10 +0100 Subject: [PATCH 111/167] Relocating module `@kbn/core-security-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/security/browser-internal}/README.md | 0 .../core/packages/security/browser-internal}/index.ts | 0 .../core/packages/security/browser-internal}/jest.config.js | 4 ++-- .../core/packages/security/browser-internal}/kibana.jsonc | 0 .../core/packages/security/browser-internal}/package.json | 0 .../security/browser-internal}/src/internal_contracts.ts | 0 .../browser-internal}/src/security_service.test.mocks.ts | 0 .../security/browser-internal}/src/security_service.test.ts | 0 .../security/browser-internal}/src/security_service.ts | 0 .../browser-internal}/src/utils/convert_security_api.test.ts | 0 .../browser-internal}/src/utils/convert_security_api.ts | 0 .../src/utils/default_implementation.test.ts | 0 .../browser-internal}/src/utils/default_implementation.ts | 0 .../packages/security/browser-internal}/src/utils/index.ts | 0 .../core/packages/security/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 19 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/README.md (100%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/index.ts (100%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/jest.config.js (83%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/kibana.jsonc (100%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/package.json (100%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/src/internal_contracts.ts (100%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/src/security_service.test.mocks.ts (100%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/src/security_service.test.ts (100%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/src/security_service.ts (100%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/src/utils/convert_security_api.test.ts (100%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/src/utils/convert_security_api.ts (100%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/src/utils/default_implementation.test.ts (100%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/src/utils/default_implementation.ts (100%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/src/utils/index.ts (100%) rename {packages/core/security/core-security-browser-internal => src/core/packages/security/browser-internal}/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 76eb144495bd8..eb493668e7c01 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -109,7 +109,6 @@ packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-cor packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core -packages/core/security/core-security-browser-internal @elastic/kibana-core packages/core/security/core-security-browser-mocks @elastic/kibana-core packages/core/security/core-security-common @elastic/kibana-core @elastic/kibana-security packages/core/security/core-security-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/saved-objects/server @elastic/kibana-core src/core/packages/saved-objects/server-internal @elastic/kibana-core src/core/packages/saved-objects/utils-server @elastic/kibana-core src/core/packages/security/browser @elastic/kibana-core +src/core/packages/security/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 1e3184acf1a69..46856ae7748c0 100644 --- a/package.json +++ b/package.json @@ -380,7 +380,7 @@ "@kbn/core-saved-objects-server-internal": "link:src/core/packages/saved-objects/server-internal", "@kbn/core-saved-objects-utils-server": "link:src/core/packages/saved-objects/utils-server", "@kbn/core-security-browser": "link:src/core/packages/security/browser", - "@kbn/core-security-browser-internal": "link:packages/core/security/core-security-browser-internal", + "@kbn/core-security-browser-internal": "link:src/core/packages/security/browser-internal", "@kbn/core-security-browser-mocks": "link:packages/core/security/core-security-browser-mocks", "@kbn/core-security-common": "link:packages/core/security/core-security-common", "@kbn/core-security-server": "link:packages/core/security/core-security-server", diff --git a/packages/core/security/core-security-browser-internal/README.md b/src/core/packages/security/browser-internal/README.md similarity index 100% rename from packages/core/security/core-security-browser-internal/README.md rename to src/core/packages/security/browser-internal/README.md diff --git a/packages/core/security/core-security-browser-internal/index.ts b/src/core/packages/security/browser-internal/index.ts similarity index 100% rename from packages/core/security/core-security-browser-internal/index.ts rename to src/core/packages/security/browser-internal/index.ts diff --git a/packages/core/security/core-security-browser-internal/jest.config.js b/src/core/packages/security/browser-internal/jest.config.js similarity index 83% rename from packages/core/security/core-security-browser-internal/jest.config.js rename to src/core/packages/security/browser-internal/jest.config.js index 50d4054f67f06..44b52e3999acd 100644 --- a/packages/core/security/core-security-browser-internal/jest.config.js +++ b/src/core/packages/security/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/security/core-security-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/security/browser-internal'], }; diff --git a/packages/core/security/core-security-browser-internal/kibana.jsonc b/src/core/packages/security/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/security/core-security-browser-internal/kibana.jsonc rename to src/core/packages/security/browser-internal/kibana.jsonc diff --git a/packages/core/security/core-security-browser-internal/package.json b/src/core/packages/security/browser-internal/package.json similarity index 100% rename from packages/core/security/core-security-browser-internal/package.json rename to src/core/packages/security/browser-internal/package.json diff --git a/packages/core/security/core-security-browser-internal/src/internal_contracts.ts b/src/core/packages/security/browser-internal/src/internal_contracts.ts similarity index 100% rename from packages/core/security/core-security-browser-internal/src/internal_contracts.ts rename to src/core/packages/security/browser-internal/src/internal_contracts.ts diff --git a/packages/core/security/core-security-browser-internal/src/security_service.test.mocks.ts b/src/core/packages/security/browser-internal/src/security_service.test.mocks.ts similarity index 100% rename from packages/core/security/core-security-browser-internal/src/security_service.test.mocks.ts rename to src/core/packages/security/browser-internal/src/security_service.test.mocks.ts diff --git a/packages/core/security/core-security-browser-internal/src/security_service.test.ts b/src/core/packages/security/browser-internal/src/security_service.test.ts similarity index 100% rename from packages/core/security/core-security-browser-internal/src/security_service.test.ts rename to src/core/packages/security/browser-internal/src/security_service.test.ts diff --git a/packages/core/security/core-security-browser-internal/src/security_service.ts b/src/core/packages/security/browser-internal/src/security_service.ts similarity index 100% rename from packages/core/security/core-security-browser-internal/src/security_service.ts rename to src/core/packages/security/browser-internal/src/security_service.ts diff --git a/packages/core/security/core-security-browser-internal/src/utils/convert_security_api.test.ts b/src/core/packages/security/browser-internal/src/utils/convert_security_api.test.ts similarity index 100% rename from packages/core/security/core-security-browser-internal/src/utils/convert_security_api.test.ts rename to src/core/packages/security/browser-internal/src/utils/convert_security_api.test.ts diff --git a/packages/core/security/core-security-browser-internal/src/utils/convert_security_api.ts b/src/core/packages/security/browser-internal/src/utils/convert_security_api.ts similarity index 100% rename from packages/core/security/core-security-browser-internal/src/utils/convert_security_api.ts rename to src/core/packages/security/browser-internal/src/utils/convert_security_api.ts diff --git a/packages/core/security/core-security-browser-internal/src/utils/default_implementation.test.ts b/src/core/packages/security/browser-internal/src/utils/default_implementation.test.ts similarity index 100% rename from packages/core/security/core-security-browser-internal/src/utils/default_implementation.test.ts rename to src/core/packages/security/browser-internal/src/utils/default_implementation.test.ts diff --git a/packages/core/security/core-security-browser-internal/src/utils/default_implementation.ts b/src/core/packages/security/browser-internal/src/utils/default_implementation.ts similarity index 100% rename from packages/core/security/core-security-browser-internal/src/utils/default_implementation.ts rename to src/core/packages/security/browser-internal/src/utils/default_implementation.ts diff --git a/packages/core/security/core-security-browser-internal/src/utils/index.ts b/src/core/packages/security/browser-internal/src/utils/index.ts similarity index 100% rename from packages/core/security/core-security-browser-internal/src/utils/index.ts rename to src/core/packages/security/browser-internal/src/utils/index.ts diff --git a/packages/core/security/core-security-browser-internal/tsconfig.json b/src/core/packages/security/browser-internal/tsconfig.json similarity index 88% rename from packages/core/security/core-security-browser-internal/tsconfig.json rename to src/core/packages/security/browser-internal/tsconfig.json index d7fa9fd23c1d0..1b500e87c8583 100644 --- a/packages/core/security/core-security-browser-internal/tsconfig.json +++ b/src/core/packages/security/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index f71e8c9914041..40bbc5b0040ef 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -598,8 +598,8 @@ "@kbn/core-saved-objects-utils-server/*": ["src/core/packages/saved-objects/utils-server/*"], "@kbn/core-security-browser": ["src/core/packages/security/browser"], "@kbn/core-security-browser/*": ["src/core/packages/security/browser/*"], - "@kbn/core-security-browser-internal": ["packages/core/security/core-security-browser-internal"], - "@kbn/core-security-browser-internal/*": ["packages/core/security/core-security-browser-internal/*"], + "@kbn/core-security-browser-internal": ["src/core/packages/security/browser-internal"], + "@kbn/core-security-browser-internal/*": ["src/core/packages/security/browser-internal/*"], "@kbn/core-security-browser-mocks": ["packages/core/security/core-security-browser-mocks"], "@kbn/core-security-browser-mocks/*": ["packages/core/security/core-security-browser-mocks/*"], "@kbn/core-security-common": ["packages/core/security/core-security-common"], diff --git a/yarn.lock b/yarn.lock index 8e591e93be0ec..44e63be79aa5c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5005,7 +5005,7 @@ version "0.0.0" uid "" -"@kbn/core-security-browser-internal@link:packages/core/security/core-security-browser-internal": +"@kbn/core-security-browser-internal@link:src/core/packages/security/browser-internal": version "0.0.0" uid "" From d70cd966307adc1e359e101ce632505011b33167 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:35:06 +0100 Subject: [PATCH 112/167] Relocating module `@kbn/core-security-browser-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/security/browser-mocks}/README.md | 0 .../core/packages/security/browser-mocks}/index.ts | 0 .../core/packages/security/browser-mocks}/jest.config.js | 4 ++-- .../core/packages/security/browser-mocks}/kibana.jsonc | 0 .../core/packages/security/browser-mocks}/package.json | 0 .../security/browser-mocks}/src/security_service.mock.ts | 0 .../core/packages/security/browser-mocks}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/security/core-security-browser-mocks => src/core/packages/security/browser-mocks}/README.md (100%) rename {packages/core/security/core-security-browser-mocks => src/core/packages/security/browser-mocks}/index.ts (100%) rename {packages/core/security/core-security-browser-mocks => src/core/packages/security/browser-mocks}/jest.config.js (83%) rename {packages/core/security/core-security-browser-mocks => src/core/packages/security/browser-mocks}/kibana.jsonc (100%) rename {packages/core/security/core-security-browser-mocks => src/core/packages/security/browser-mocks}/package.json (100%) rename {packages/core/security/core-security-browser-mocks => src/core/packages/security/browser-mocks}/src/security_service.mock.ts (100%) rename {packages/core/security/core-security-browser-mocks => src/core/packages/security/browser-mocks}/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index eb493668e7c01..c7f3aba77cfc9 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -109,7 +109,6 @@ packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-cor packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core -packages/core/security/core-security-browser-mocks @elastic/kibana-core packages/core/security/core-security-common @elastic/kibana-core @elastic/kibana-security packages/core/security/core-security-server @elastic/kibana-core packages/core/security/core-security-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/saved-objects/server-internal @elastic/kibana-core src/core/packages/saved-objects/utils-server @elastic/kibana-core src/core/packages/security/browser @elastic/kibana-core src/core/packages/security/browser-internal @elastic/kibana-core +src/core/packages/security/browser-mocks @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 46856ae7748c0..62afc45ed3a19 100644 --- a/package.json +++ b/package.json @@ -381,7 +381,7 @@ "@kbn/core-saved-objects-utils-server": "link:src/core/packages/saved-objects/utils-server", "@kbn/core-security-browser": "link:src/core/packages/security/browser", "@kbn/core-security-browser-internal": "link:src/core/packages/security/browser-internal", - "@kbn/core-security-browser-mocks": "link:packages/core/security/core-security-browser-mocks", + "@kbn/core-security-browser-mocks": "link:src/core/packages/security/browser-mocks", "@kbn/core-security-common": "link:packages/core/security/core-security-common", "@kbn/core-security-server": "link:packages/core/security/core-security-server", "@kbn/core-security-server-internal": "link:packages/core/security/core-security-server-internal", diff --git a/packages/core/security/core-security-browser-mocks/README.md b/src/core/packages/security/browser-mocks/README.md similarity index 100% rename from packages/core/security/core-security-browser-mocks/README.md rename to src/core/packages/security/browser-mocks/README.md diff --git a/packages/core/security/core-security-browser-mocks/index.ts b/src/core/packages/security/browser-mocks/index.ts similarity index 100% rename from packages/core/security/core-security-browser-mocks/index.ts rename to src/core/packages/security/browser-mocks/index.ts diff --git a/packages/core/security/core-security-browser-mocks/jest.config.js b/src/core/packages/security/browser-mocks/jest.config.js similarity index 83% rename from packages/core/security/core-security-browser-mocks/jest.config.js rename to src/core/packages/security/browser-mocks/jest.config.js index 9c1675c8e50fc..b51482959871b 100644 --- a/packages/core/security/core-security-browser-mocks/jest.config.js +++ b/src/core/packages/security/browser-mocks/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/security/core-security-browser-mocks'], + rootDir: '../../../../..', + roots: ['/src/core/packages/security/browser-mocks'], }; diff --git a/packages/core/security/core-security-browser-mocks/kibana.jsonc b/src/core/packages/security/browser-mocks/kibana.jsonc similarity index 100% rename from packages/core/security/core-security-browser-mocks/kibana.jsonc rename to src/core/packages/security/browser-mocks/kibana.jsonc diff --git a/packages/core/security/core-security-browser-mocks/package.json b/src/core/packages/security/browser-mocks/package.json similarity index 100% rename from packages/core/security/core-security-browser-mocks/package.json rename to src/core/packages/security/browser-mocks/package.json diff --git a/packages/core/security/core-security-browser-mocks/src/security_service.mock.ts b/src/core/packages/security/browser-mocks/src/security_service.mock.ts similarity index 100% rename from packages/core/security/core-security-browser-mocks/src/security_service.mock.ts rename to src/core/packages/security/browser-mocks/src/security_service.mock.ts diff --git a/packages/core/security/core-security-browser-mocks/tsconfig.json b/src/core/packages/security/browser-mocks/tsconfig.json similarity index 87% rename from packages/core/security/core-security-browser-mocks/tsconfig.json rename to src/core/packages/security/browser-mocks/tsconfig.json index 363e26375db29..c2a72b1c34971 100644 --- a/packages/core/security/core-security-browser-mocks/tsconfig.json +++ b/src/core/packages/security/browser-mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 40bbc5b0040ef..a766bbe1aff24 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -600,8 +600,8 @@ "@kbn/core-security-browser/*": ["src/core/packages/security/browser/*"], "@kbn/core-security-browser-internal": ["src/core/packages/security/browser-internal"], "@kbn/core-security-browser-internal/*": ["src/core/packages/security/browser-internal/*"], - "@kbn/core-security-browser-mocks": ["packages/core/security/core-security-browser-mocks"], - "@kbn/core-security-browser-mocks/*": ["packages/core/security/core-security-browser-mocks/*"], + "@kbn/core-security-browser-mocks": ["src/core/packages/security/browser-mocks"], + "@kbn/core-security-browser-mocks/*": ["src/core/packages/security/browser-mocks/*"], "@kbn/core-security-common": ["packages/core/security/core-security-common"], "@kbn/core-security-common/*": ["packages/core/security/core-security-common/*"], "@kbn/core-security-server": ["packages/core/security/core-security-server"], diff --git a/yarn.lock b/yarn.lock index 44e63be79aa5c..45fc441d7735e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5009,7 +5009,7 @@ version "0.0.0" uid "" -"@kbn/core-security-browser-mocks@link:packages/core/security/core-security-browser-mocks": +"@kbn/core-security-browser-mocks@link:src/core/packages/security/browser-mocks": version "0.0.0" uid "" From 607f41d71e5c75bd0407f4e81acd6966e3c0f508 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:36:03 +0100 Subject: [PATCH 113/167] Relocating module `@kbn/core-security-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/security/common}/README.md | 0 .../core/packages/security/common}/index.ts | 0 .../core/packages/security/common}/jest.config.js | 4 ++-- .../core/packages/security/common}/kibana.jsonc | 0 .../core/packages/security/common}/mocks.ts | 0 .../core/packages/security/common}/package.json | 0 .../common}/src/authentication/authenticated_user.mock.ts | 0 .../security/common}/src/authentication/authenticated_user.ts | 0 .../common}/src/authentication/authentication_provider.ts | 0 .../packages/security/common}/src/authentication/index.ts | 0 .../core/packages/security/common}/src/authentication/user.ts | 0 .../core/packages/security/common}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 16 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/security/core-security-common => src/core/packages/security/common}/README.md (100%) rename {packages/core/security/core-security-common => src/core/packages/security/common}/index.ts (100%) rename {packages/core/security/core-security-common => src/core/packages/security/common}/jest.config.js (84%) rename {packages/core/security/core-security-common => src/core/packages/security/common}/kibana.jsonc (100%) rename {packages/core/security/core-security-common => src/core/packages/security/common}/mocks.ts (100%) rename {packages/core/security/core-security-common => src/core/packages/security/common}/package.json (100%) rename {packages/core/security/core-security-common => src/core/packages/security/common}/src/authentication/authenticated_user.mock.ts (100%) rename {packages/core/security/core-security-common => src/core/packages/security/common}/src/authentication/authenticated_user.ts (100%) rename {packages/core/security/core-security-common => src/core/packages/security/common}/src/authentication/authentication_provider.ts (100%) rename {packages/core/security/core-security-common => src/core/packages/security/common}/src/authentication/index.ts (100%) rename {packages/core/security/core-security-common => src/core/packages/security/common}/src/authentication/user.ts (100%) rename {packages/core/security/core-security-common => src/core/packages/security/common}/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c7f3aba77cfc9..f6742747bcf53 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -109,7 +109,6 @@ packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-cor packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core -packages/core/security/core-security-common @elastic/kibana-core @elastic/kibana-security packages/core/security/core-security-server @elastic/kibana-core packages/core/security/core-security-server-internal @elastic/kibana-core packages/core/security/core-security-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/saved-objects/utils-server @elastic/kibana-core src/core/packages/security/browser @elastic/kibana-core src/core/packages/security/browser-internal @elastic/kibana-core src/core/packages/security/browser-mocks @elastic/kibana-core +src/core/packages/security/common @elastic/kibana-core @elastic/kibana-security src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 62afc45ed3a19..88c9efede7c0a 100644 --- a/package.json +++ b/package.json @@ -382,7 +382,7 @@ "@kbn/core-security-browser": "link:src/core/packages/security/browser", "@kbn/core-security-browser-internal": "link:src/core/packages/security/browser-internal", "@kbn/core-security-browser-mocks": "link:src/core/packages/security/browser-mocks", - "@kbn/core-security-common": "link:packages/core/security/core-security-common", + "@kbn/core-security-common": "link:src/core/packages/security/common", "@kbn/core-security-server": "link:packages/core/security/core-security-server", "@kbn/core-security-server-internal": "link:packages/core/security/core-security-server-internal", "@kbn/core-security-server-mocks": "link:packages/core/security/core-security-server-mocks", diff --git a/packages/core/security/core-security-common/README.md b/src/core/packages/security/common/README.md similarity index 100% rename from packages/core/security/core-security-common/README.md rename to src/core/packages/security/common/README.md diff --git a/packages/core/security/core-security-common/index.ts b/src/core/packages/security/common/index.ts similarity index 100% rename from packages/core/security/core-security-common/index.ts rename to src/core/packages/security/common/index.ts diff --git a/packages/core/security/core-security-common/jest.config.js b/src/core/packages/security/common/jest.config.js similarity index 84% rename from packages/core/security/core-security-common/jest.config.js rename to src/core/packages/security/common/jest.config.js index 0ffac7e5d321c..270bc08613d3b 100644 --- a/packages/core/security/core-security-common/jest.config.js +++ b/src/core/packages/security/common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/security/core-security-common'], + rootDir: '../../../../..', + roots: ['/src/core/packages/security/common'], }; diff --git a/packages/core/security/core-security-common/kibana.jsonc b/src/core/packages/security/common/kibana.jsonc similarity index 100% rename from packages/core/security/core-security-common/kibana.jsonc rename to src/core/packages/security/common/kibana.jsonc diff --git a/packages/core/security/core-security-common/mocks.ts b/src/core/packages/security/common/mocks.ts similarity index 100% rename from packages/core/security/core-security-common/mocks.ts rename to src/core/packages/security/common/mocks.ts diff --git a/packages/core/security/core-security-common/package.json b/src/core/packages/security/common/package.json similarity index 100% rename from packages/core/security/core-security-common/package.json rename to src/core/packages/security/common/package.json diff --git a/packages/core/security/core-security-common/src/authentication/authenticated_user.mock.ts b/src/core/packages/security/common/src/authentication/authenticated_user.mock.ts similarity index 100% rename from packages/core/security/core-security-common/src/authentication/authenticated_user.mock.ts rename to src/core/packages/security/common/src/authentication/authenticated_user.mock.ts diff --git a/packages/core/security/core-security-common/src/authentication/authenticated_user.ts b/src/core/packages/security/common/src/authentication/authenticated_user.ts similarity index 100% rename from packages/core/security/core-security-common/src/authentication/authenticated_user.ts rename to src/core/packages/security/common/src/authentication/authenticated_user.ts diff --git a/packages/core/security/core-security-common/src/authentication/authentication_provider.ts b/src/core/packages/security/common/src/authentication/authentication_provider.ts similarity index 100% rename from packages/core/security/core-security-common/src/authentication/authentication_provider.ts rename to src/core/packages/security/common/src/authentication/authentication_provider.ts diff --git a/packages/core/security/core-security-common/src/authentication/index.ts b/src/core/packages/security/common/src/authentication/index.ts similarity index 100% rename from packages/core/security/core-security-common/src/authentication/index.ts rename to src/core/packages/security/common/src/authentication/index.ts diff --git a/packages/core/security/core-security-common/src/authentication/user.ts b/src/core/packages/security/common/src/authentication/user.ts similarity index 100% rename from packages/core/security/core-security-common/src/authentication/user.ts rename to src/core/packages/security/common/src/authentication/user.ts diff --git a/packages/core/security/core-security-common/tsconfig.json b/src/core/packages/security/common/tsconfig.json similarity index 82% rename from packages/core/security/core-security-common/tsconfig.json rename to src/core/packages/security/common/tsconfig.json index b05325b824a67..447899d604592 100644 --- a/packages/core/security/core-security-common/tsconfig.json +++ b/src/core/packages/security/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index a766bbe1aff24..e75fdb827c52b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -602,8 +602,8 @@ "@kbn/core-security-browser-internal/*": ["src/core/packages/security/browser-internal/*"], "@kbn/core-security-browser-mocks": ["src/core/packages/security/browser-mocks"], "@kbn/core-security-browser-mocks/*": ["src/core/packages/security/browser-mocks/*"], - "@kbn/core-security-common": ["packages/core/security/core-security-common"], - "@kbn/core-security-common/*": ["packages/core/security/core-security-common/*"], + "@kbn/core-security-common": ["src/core/packages/security/common"], + "@kbn/core-security-common/*": ["src/core/packages/security/common/*"], "@kbn/core-security-server": ["packages/core/security/core-security-server"], "@kbn/core-security-server/*": ["packages/core/security/core-security-server/*"], "@kbn/core-security-server-internal": ["packages/core/security/core-security-server-internal"], diff --git a/yarn.lock b/yarn.lock index 45fc441d7735e..487a02817186a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5017,7 +5017,7 @@ version "0.0.0" uid "" -"@kbn/core-security-common@link:packages/core/security/core-security-common": +"@kbn/core-security-common@link:src/core/packages/security/common": version "0.0.0" uid "" From 0d2261ce67dfcec4c961ee46cd9e870a1f2a41b6 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:36:55 +0100 Subject: [PATCH 114/167] Relocating module `@kbn/core-security-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/security/server}/README.md | 0 .../core/packages/security/server}/index.ts | 0 .../core/packages/security/server}/jest.config.js | 4 ++-- .../core/packages/security/server}/kibana.jsonc | 0 .../core/packages/security/server}/package.json | 0 .../core/packages/security/server}/src/api_provider.ts | 0 .../core/packages/security/server}/src/audit.ts | 0 .../security/server}/src/audit_logging/audit_events.ts | 0 .../security/server}/src/audit_logging/audit_logger.ts | 0 .../core/packages/security/server}/src/authc.ts | 0 .../security/server}/src/authentication/api_keys/api_keys.ts | 0 .../server}/src/authentication/api_keys/api_keys_context.ts | 0 .../security/server}/src/authentication/api_keys/index.ts | 0 .../core/packages/security/server}/src/contracts.ts | 0 .../core/packages/security/server}/src/fips.ts | 0 .../packages/security/server}/src/request_handler_context.ts | 0 .../core/packages/security/server}/src/roles/index.ts | 0 .../core/packages/security/server}/src/roles/schema.ts | 0 .../core/packages/security/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 23 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/security/core-security-server => src/core/packages/security/server}/README.md (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/index.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/jest.config.js (84%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/kibana.jsonc (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/package.json (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/src/api_provider.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/src/audit.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/src/audit_logging/audit_events.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/src/audit_logging/audit_logger.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/src/authc.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/src/authentication/api_keys/api_keys.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/src/authentication/api_keys/api_keys_context.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/src/authentication/api_keys/index.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/src/contracts.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/src/fips.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/src/request_handler_context.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/src/roles/index.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/src/roles/schema.ts (100%) rename {packages/core/security/core-security-server => src/core/packages/security/server}/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f6742747bcf53..1d07355a2d34b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -109,7 +109,6 @@ packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-cor packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core -packages/core/security/core-security-server @elastic/kibana-core packages/core/security/core-security-server-internal @elastic/kibana-core packages/core/security/core-security-server-mocks @elastic/kibana-core packages/core/status/core-status-common @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/security/browser @elastic/kibana-core src/core/packages/security/browser-internal @elastic/kibana-core src/core/packages/security/browser-mocks @elastic/kibana-core src/core/packages/security/common @elastic/kibana-core @elastic/kibana-security +src/core/packages/security/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 88c9efede7c0a..1fbbb95fc7ace 100644 --- a/package.json +++ b/package.json @@ -383,7 +383,7 @@ "@kbn/core-security-browser-internal": "link:src/core/packages/security/browser-internal", "@kbn/core-security-browser-mocks": "link:src/core/packages/security/browser-mocks", "@kbn/core-security-common": "link:src/core/packages/security/common", - "@kbn/core-security-server": "link:packages/core/security/core-security-server", + "@kbn/core-security-server": "link:src/core/packages/security/server", "@kbn/core-security-server-internal": "link:packages/core/security/core-security-server-internal", "@kbn/core-security-server-mocks": "link:packages/core/security/core-security-server-mocks", "@kbn/core-status-common": "link:packages/core/status/core-status-common", diff --git a/packages/core/security/core-security-server/README.md b/src/core/packages/security/server/README.md similarity index 100% rename from packages/core/security/core-security-server/README.md rename to src/core/packages/security/server/README.md diff --git a/packages/core/security/core-security-server/index.ts b/src/core/packages/security/server/index.ts similarity index 100% rename from packages/core/security/core-security-server/index.ts rename to src/core/packages/security/server/index.ts diff --git a/packages/core/security/core-security-server/jest.config.js b/src/core/packages/security/server/jest.config.js similarity index 84% rename from packages/core/security/core-security-server/jest.config.js rename to src/core/packages/security/server/jest.config.js index b414a597f7666..150c6a567ba55 100644 --- a/packages/core/security/core-security-server/jest.config.js +++ b/src/core/packages/security/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/security/core-security-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/security/server'], }; diff --git a/packages/core/security/core-security-server/kibana.jsonc b/src/core/packages/security/server/kibana.jsonc similarity index 100% rename from packages/core/security/core-security-server/kibana.jsonc rename to src/core/packages/security/server/kibana.jsonc diff --git a/packages/core/security/core-security-server/package.json b/src/core/packages/security/server/package.json similarity index 100% rename from packages/core/security/core-security-server/package.json rename to src/core/packages/security/server/package.json diff --git a/packages/core/security/core-security-server/src/api_provider.ts b/src/core/packages/security/server/src/api_provider.ts similarity index 100% rename from packages/core/security/core-security-server/src/api_provider.ts rename to src/core/packages/security/server/src/api_provider.ts diff --git a/packages/core/security/core-security-server/src/audit.ts b/src/core/packages/security/server/src/audit.ts similarity index 100% rename from packages/core/security/core-security-server/src/audit.ts rename to src/core/packages/security/server/src/audit.ts diff --git a/packages/core/security/core-security-server/src/audit_logging/audit_events.ts b/src/core/packages/security/server/src/audit_logging/audit_events.ts similarity index 100% rename from packages/core/security/core-security-server/src/audit_logging/audit_events.ts rename to src/core/packages/security/server/src/audit_logging/audit_events.ts diff --git a/packages/core/security/core-security-server/src/audit_logging/audit_logger.ts b/src/core/packages/security/server/src/audit_logging/audit_logger.ts similarity index 100% rename from packages/core/security/core-security-server/src/audit_logging/audit_logger.ts rename to src/core/packages/security/server/src/audit_logging/audit_logger.ts diff --git a/packages/core/security/core-security-server/src/authc.ts b/src/core/packages/security/server/src/authc.ts similarity index 100% rename from packages/core/security/core-security-server/src/authc.ts rename to src/core/packages/security/server/src/authc.ts diff --git a/packages/core/security/core-security-server/src/authentication/api_keys/api_keys.ts b/src/core/packages/security/server/src/authentication/api_keys/api_keys.ts similarity index 100% rename from packages/core/security/core-security-server/src/authentication/api_keys/api_keys.ts rename to src/core/packages/security/server/src/authentication/api_keys/api_keys.ts diff --git a/packages/core/security/core-security-server/src/authentication/api_keys/api_keys_context.ts b/src/core/packages/security/server/src/authentication/api_keys/api_keys_context.ts similarity index 100% rename from packages/core/security/core-security-server/src/authentication/api_keys/api_keys_context.ts rename to src/core/packages/security/server/src/authentication/api_keys/api_keys_context.ts diff --git a/packages/core/security/core-security-server/src/authentication/api_keys/index.ts b/src/core/packages/security/server/src/authentication/api_keys/index.ts similarity index 100% rename from packages/core/security/core-security-server/src/authentication/api_keys/index.ts rename to src/core/packages/security/server/src/authentication/api_keys/index.ts diff --git a/packages/core/security/core-security-server/src/contracts.ts b/src/core/packages/security/server/src/contracts.ts similarity index 100% rename from packages/core/security/core-security-server/src/contracts.ts rename to src/core/packages/security/server/src/contracts.ts diff --git a/packages/core/security/core-security-server/src/fips.ts b/src/core/packages/security/server/src/fips.ts similarity index 100% rename from packages/core/security/core-security-server/src/fips.ts rename to src/core/packages/security/server/src/fips.ts diff --git a/packages/core/security/core-security-server/src/request_handler_context.ts b/src/core/packages/security/server/src/request_handler_context.ts similarity index 100% rename from packages/core/security/core-security-server/src/request_handler_context.ts rename to src/core/packages/security/server/src/request_handler_context.ts diff --git a/packages/core/security/core-security-server/src/roles/index.ts b/src/core/packages/security/server/src/roles/index.ts similarity index 100% rename from packages/core/security/core-security-server/src/roles/index.ts rename to src/core/packages/security/server/src/roles/index.ts diff --git a/packages/core/security/core-security-server/src/roles/schema.ts b/src/core/packages/security/server/src/roles/schema.ts similarity index 100% rename from packages/core/security/core-security-server/src/roles/schema.ts rename to src/core/packages/security/server/src/roles/schema.ts diff --git a/packages/core/security/core-security-server/tsconfig.json b/src/core/packages/security/server/tsconfig.json similarity index 85% rename from packages/core/security/core-security-server/tsconfig.json rename to src/core/packages/security/server/tsconfig.json index 0304c8ef6dee2..393e73afe9e7e 100644 --- a/packages/core/security/core-security-server/tsconfig.json +++ b/src/core/packages/security/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index e75fdb827c52b..0dee5516d2514 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -604,8 +604,8 @@ "@kbn/core-security-browser-mocks/*": ["src/core/packages/security/browser-mocks/*"], "@kbn/core-security-common": ["src/core/packages/security/common"], "@kbn/core-security-common/*": ["src/core/packages/security/common/*"], - "@kbn/core-security-server": ["packages/core/security/core-security-server"], - "@kbn/core-security-server/*": ["packages/core/security/core-security-server/*"], + "@kbn/core-security-server": ["src/core/packages/security/server"], + "@kbn/core-security-server/*": ["src/core/packages/security/server/*"], "@kbn/core-security-server-internal": ["packages/core/security/core-security-server-internal"], "@kbn/core-security-server-internal/*": ["packages/core/security/core-security-server-internal/*"], "@kbn/core-security-server-mocks": ["packages/core/security/core-security-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 487a02817186a..d1903097ad17e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5029,7 +5029,7 @@ version "0.0.0" uid "" -"@kbn/core-security-server@link:packages/core/security/core-security-server": +"@kbn/core-security-server@link:src/core/packages/security/server": version "0.0.0" uid "" From ea23ac2bfe217bd4db8078bf2a62dfcd9ae43fa5 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:37:48 +0100 Subject: [PATCH 115/167] Relocating module `@kbn/core-security-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/security/server-internal}/README.md | 0 .../core/packages/security/server-internal}/index.ts | 0 .../core/packages/security/server-internal}/jest.config.js | 4 ++-- .../core/packages/security/server-internal}/kibana.jsonc | 0 .../core/packages/security/server-internal}/package.json | 0 .../packages/security/server-internal}/src/fips/fips.test.ts | 0 .../core/packages/security/server-internal}/src/fips/fips.ts | 0 .../security/server-internal}/src/internal_contracts.ts | 0 .../server-internal}/src/security_route_handler_context.ts | 0 .../server-internal}/src/security_service.test.mocks.ts | 0 .../security/server-internal}/src/security_service.test.ts | 0 .../security/server-internal}/src/security_service.ts | 0 .../src/test_helpers/create_audit_logger.mock.ts | 0 .../server-internal}/src/utils/convert_security_api.test.ts | 0 .../server-internal}/src/utils/convert_security_api.ts | 0 .../server-internal}/src/utils/default_implementation.test.ts | 0 .../server-internal}/src/utils/default_implementation.ts | 0 .../packages/security/server-internal}/src/utils/index.ts | 0 .../core/packages/security/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 23 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/README.md (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/index.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/jest.config.js (83%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/kibana.jsonc (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/package.json (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/src/fips/fips.test.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/src/fips/fips.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/src/internal_contracts.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/src/security_route_handler_context.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/src/security_service.test.mocks.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/src/security_service.test.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/src/security_service.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/src/test_helpers/create_audit_logger.mock.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/src/utils/convert_security_api.test.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/src/utils/convert_security_api.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/src/utils/default_implementation.test.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/src/utils/default_implementation.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/src/utils/index.ts (100%) rename {packages/core/security/core-security-server-internal => src/core/packages/security/server-internal}/tsconfig.json (90%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1d07355a2d34b..b2c9ec009d426 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -109,7 +109,6 @@ packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-cor packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core -packages/core/security/core-security-server-internal @elastic/kibana-core packages/core/security/core-security-server-mocks @elastic/kibana-core packages/core/status/core-status-common @elastic/kibana-core packages/core/status/core-status-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/security/browser-internal @elastic/kibana-core src/core/packages/security/browser-mocks @elastic/kibana-core src/core/packages/security/common @elastic/kibana-core @elastic/kibana-security src/core/packages/security/server @elastic/kibana-core +src/core/packages/security/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 1fbbb95fc7ace..e4a87f2ef609f 100644 --- a/package.json +++ b/package.json @@ -384,7 +384,7 @@ "@kbn/core-security-browser-mocks": "link:src/core/packages/security/browser-mocks", "@kbn/core-security-common": "link:src/core/packages/security/common", "@kbn/core-security-server": "link:src/core/packages/security/server", - "@kbn/core-security-server-internal": "link:packages/core/security/core-security-server-internal", + "@kbn/core-security-server-internal": "link:src/core/packages/security/server-internal", "@kbn/core-security-server-mocks": "link:packages/core/security/core-security-server-mocks", "@kbn/core-status-common": "link:packages/core/status/core-status-common", "@kbn/core-status-server": "link:packages/core/status/core-status-server", diff --git a/packages/core/security/core-security-server-internal/README.md b/src/core/packages/security/server-internal/README.md similarity index 100% rename from packages/core/security/core-security-server-internal/README.md rename to src/core/packages/security/server-internal/README.md diff --git a/packages/core/security/core-security-server-internal/index.ts b/src/core/packages/security/server-internal/index.ts similarity index 100% rename from packages/core/security/core-security-server-internal/index.ts rename to src/core/packages/security/server-internal/index.ts diff --git a/packages/core/security/core-security-server-internal/jest.config.js b/src/core/packages/security/server-internal/jest.config.js similarity index 83% rename from packages/core/security/core-security-server-internal/jest.config.js rename to src/core/packages/security/server-internal/jest.config.js index ded6d8ca05904..8e43af5a1c504 100644 --- a/packages/core/security/core-security-server-internal/jest.config.js +++ b/src/core/packages/security/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/security/core-security-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/security/server-internal'], }; diff --git a/packages/core/security/core-security-server-internal/kibana.jsonc b/src/core/packages/security/server-internal/kibana.jsonc similarity index 100% rename from packages/core/security/core-security-server-internal/kibana.jsonc rename to src/core/packages/security/server-internal/kibana.jsonc diff --git a/packages/core/security/core-security-server-internal/package.json b/src/core/packages/security/server-internal/package.json similarity index 100% rename from packages/core/security/core-security-server-internal/package.json rename to src/core/packages/security/server-internal/package.json diff --git a/packages/core/security/core-security-server-internal/src/fips/fips.test.ts b/src/core/packages/security/server-internal/src/fips/fips.test.ts similarity index 100% rename from packages/core/security/core-security-server-internal/src/fips/fips.test.ts rename to src/core/packages/security/server-internal/src/fips/fips.test.ts diff --git a/packages/core/security/core-security-server-internal/src/fips/fips.ts b/src/core/packages/security/server-internal/src/fips/fips.ts similarity index 100% rename from packages/core/security/core-security-server-internal/src/fips/fips.ts rename to src/core/packages/security/server-internal/src/fips/fips.ts diff --git a/packages/core/security/core-security-server-internal/src/internal_contracts.ts b/src/core/packages/security/server-internal/src/internal_contracts.ts similarity index 100% rename from packages/core/security/core-security-server-internal/src/internal_contracts.ts rename to src/core/packages/security/server-internal/src/internal_contracts.ts diff --git a/packages/core/security/core-security-server-internal/src/security_route_handler_context.ts b/src/core/packages/security/server-internal/src/security_route_handler_context.ts similarity index 100% rename from packages/core/security/core-security-server-internal/src/security_route_handler_context.ts rename to src/core/packages/security/server-internal/src/security_route_handler_context.ts diff --git a/packages/core/security/core-security-server-internal/src/security_service.test.mocks.ts b/src/core/packages/security/server-internal/src/security_service.test.mocks.ts similarity index 100% rename from packages/core/security/core-security-server-internal/src/security_service.test.mocks.ts rename to src/core/packages/security/server-internal/src/security_service.test.mocks.ts diff --git a/packages/core/security/core-security-server-internal/src/security_service.test.ts b/src/core/packages/security/server-internal/src/security_service.test.ts similarity index 100% rename from packages/core/security/core-security-server-internal/src/security_service.test.ts rename to src/core/packages/security/server-internal/src/security_service.test.ts diff --git a/packages/core/security/core-security-server-internal/src/security_service.ts b/src/core/packages/security/server-internal/src/security_service.ts similarity index 100% rename from packages/core/security/core-security-server-internal/src/security_service.ts rename to src/core/packages/security/server-internal/src/security_service.ts diff --git a/packages/core/security/core-security-server-internal/src/test_helpers/create_audit_logger.mock.ts b/src/core/packages/security/server-internal/src/test_helpers/create_audit_logger.mock.ts similarity index 100% rename from packages/core/security/core-security-server-internal/src/test_helpers/create_audit_logger.mock.ts rename to src/core/packages/security/server-internal/src/test_helpers/create_audit_logger.mock.ts diff --git a/packages/core/security/core-security-server-internal/src/utils/convert_security_api.test.ts b/src/core/packages/security/server-internal/src/utils/convert_security_api.test.ts similarity index 100% rename from packages/core/security/core-security-server-internal/src/utils/convert_security_api.test.ts rename to src/core/packages/security/server-internal/src/utils/convert_security_api.test.ts diff --git a/packages/core/security/core-security-server-internal/src/utils/convert_security_api.ts b/src/core/packages/security/server-internal/src/utils/convert_security_api.ts similarity index 100% rename from packages/core/security/core-security-server-internal/src/utils/convert_security_api.ts rename to src/core/packages/security/server-internal/src/utils/convert_security_api.ts diff --git a/packages/core/security/core-security-server-internal/src/utils/default_implementation.test.ts b/src/core/packages/security/server-internal/src/utils/default_implementation.test.ts similarity index 100% rename from packages/core/security/core-security-server-internal/src/utils/default_implementation.test.ts rename to src/core/packages/security/server-internal/src/utils/default_implementation.test.ts diff --git a/packages/core/security/core-security-server-internal/src/utils/default_implementation.ts b/src/core/packages/security/server-internal/src/utils/default_implementation.ts similarity index 100% rename from packages/core/security/core-security-server-internal/src/utils/default_implementation.ts rename to src/core/packages/security/server-internal/src/utils/default_implementation.ts diff --git a/packages/core/security/core-security-server-internal/src/utils/index.ts b/src/core/packages/security/server-internal/src/utils/index.ts similarity index 100% rename from packages/core/security/core-security-server-internal/src/utils/index.ts rename to src/core/packages/security/server-internal/src/utils/index.ts diff --git a/packages/core/security/core-security-server-internal/tsconfig.json b/src/core/packages/security/server-internal/tsconfig.json similarity index 90% rename from packages/core/security/core-security-server-internal/tsconfig.json rename to src/core/packages/security/server-internal/tsconfig.json index 11128461daf4e..087d716005c02 100644 --- a/packages/core/security/core-security-server-internal/tsconfig.json +++ b/src/core/packages/security/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 0dee5516d2514..64299faf50fc3 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -606,8 +606,8 @@ "@kbn/core-security-common/*": ["src/core/packages/security/common/*"], "@kbn/core-security-server": ["src/core/packages/security/server"], "@kbn/core-security-server/*": ["src/core/packages/security/server/*"], - "@kbn/core-security-server-internal": ["packages/core/security/core-security-server-internal"], - "@kbn/core-security-server-internal/*": ["packages/core/security/core-security-server-internal/*"], + "@kbn/core-security-server-internal": ["src/core/packages/security/server-internal"], + "@kbn/core-security-server-internal/*": ["src/core/packages/security/server-internal/*"], "@kbn/core-security-server-mocks": ["packages/core/security/core-security-server-mocks"], "@kbn/core-security-server-mocks/*": ["packages/core/security/core-security-server-mocks/*"], "@kbn/core-status-common": ["packages/core/status/core-status-common"], diff --git a/yarn.lock b/yarn.lock index d1903097ad17e..bb40225dfc1a8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5021,7 +5021,7 @@ version "0.0.0" uid "" -"@kbn/core-security-server-internal@link:packages/core/security/core-security-server-internal": +"@kbn/core-security-server-internal@link:src/core/packages/security/server-internal": version "0.0.0" uid "" From 17b8cbcc6233f631f0585a6f14eb7e39454e66d0 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:38:41 +0100 Subject: [PATCH 116/167] Relocating module `@kbn/core-security-server-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/security/server-mocks}/README.md | 0 .../core/packages/security/server-mocks}/index.ts | 0 .../core/packages/security/server-mocks}/jest.config.js | 4 ++-- .../core/packages/security/server-mocks}/kibana.jsonc | 0 .../core/packages/security/server-mocks}/package.json | 0 .../core/packages/security/server-mocks}/src/api_keys.mock.ts | 0 .../core/packages/security/server-mocks}/src/audit.mock.ts | 0 .../security/server-mocks}/src/security_service.mock.ts | 0 .../core/packages/security/server-mocks}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/security/core-security-server-mocks => src/core/packages/security/server-mocks}/README.md (100%) rename {packages/core/security/core-security-server-mocks => src/core/packages/security/server-mocks}/index.ts (100%) rename {packages/core/security/core-security-server-mocks => src/core/packages/security/server-mocks}/jest.config.js (83%) rename {packages/core/security/core-security-server-mocks => src/core/packages/security/server-mocks}/kibana.jsonc (100%) rename {packages/core/security/core-security-server-mocks => src/core/packages/security/server-mocks}/package.json (100%) rename {packages/core/security/core-security-server-mocks => src/core/packages/security/server-mocks}/src/api_keys.mock.ts (100%) rename {packages/core/security/core-security-server-mocks => src/core/packages/security/server-mocks}/src/audit.mock.ts (100%) rename {packages/core/security/core-security-server-mocks => src/core/packages/security/server-mocks}/src/security_service.mock.ts (100%) rename {packages/core/security/core-security-server-mocks => src/core/packages/security/server-mocks}/tsconfig.json (87%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b2c9ec009d426..a0b17fa7e8f35 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -109,7 +109,6 @@ packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-cor packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core -packages/core/security/core-security-server-mocks @elastic/kibana-core packages/core/status/core-status-common @elastic/kibana-core packages/core/status/core-status-server @elastic/kibana-core packages/core/status/core-status-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/security/browser-mocks @elastic/kibana-core src/core/packages/security/common @elastic/kibana-core @elastic/kibana-security src/core/packages/security/server @elastic/kibana-core src/core/packages/security/server-internal @elastic/kibana-core +src/core/packages/security/server-mocks @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index e4a87f2ef609f..34af8dca1b586 100644 --- a/package.json +++ b/package.json @@ -385,7 +385,7 @@ "@kbn/core-security-common": "link:src/core/packages/security/common", "@kbn/core-security-server": "link:src/core/packages/security/server", "@kbn/core-security-server-internal": "link:src/core/packages/security/server-internal", - "@kbn/core-security-server-mocks": "link:packages/core/security/core-security-server-mocks", + "@kbn/core-security-server-mocks": "link:src/core/packages/security/server-mocks", "@kbn/core-status-common": "link:packages/core/status/core-status-common", "@kbn/core-status-server": "link:packages/core/status/core-status-server", "@kbn/core-status-server-internal": "link:packages/core/status/core-status-server-internal", diff --git a/packages/core/security/core-security-server-mocks/README.md b/src/core/packages/security/server-mocks/README.md similarity index 100% rename from packages/core/security/core-security-server-mocks/README.md rename to src/core/packages/security/server-mocks/README.md diff --git a/packages/core/security/core-security-server-mocks/index.ts b/src/core/packages/security/server-mocks/index.ts similarity index 100% rename from packages/core/security/core-security-server-mocks/index.ts rename to src/core/packages/security/server-mocks/index.ts diff --git a/packages/core/security/core-security-server-mocks/jest.config.js b/src/core/packages/security/server-mocks/jest.config.js similarity index 83% rename from packages/core/security/core-security-server-mocks/jest.config.js rename to src/core/packages/security/server-mocks/jest.config.js index c9162f4512309..59a4f4172873c 100644 --- a/packages/core/security/core-security-server-mocks/jest.config.js +++ b/src/core/packages/security/server-mocks/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/security/core-security-server-mocks'], + rootDir: '../../../../..', + roots: ['/src/core/packages/security/server-mocks'], }; diff --git a/packages/core/security/core-security-server-mocks/kibana.jsonc b/src/core/packages/security/server-mocks/kibana.jsonc similarity index 100% rename from packages/core/security/core-security-server-mocks/kibana.jsonc rename to src/core/packages/security/server-mocks/kibana.jsonc diff --git a/packages/core/security/core-security-server-mocks/package.json b/src/core/packages/security/server-mocks/package.json similarity index 100% rename from packages/core/security/core-security-server-mocks/package.json rename to src/core/packages/security/server-mocks/package.json diff --git a/packages/core/security/core-security-server-mocks/src/api_keys.mock.ts b/src/core/packages/security/server-mocks/src/api_keys.mock.ts similarity index 100% rename from packages/core/security/core-security-server-mocks/src/api_keys.mock.ts rename to src/core/packages/security/server-mocks/src/api_keys.mock.ts diff --git a/packages/core/security/core-security-server-mocks/src/audit.mock.ts b/src/core/packages/security/server-mocks/src/audit.mock.ts similarity index 100% rename from packages/core/security/core-security-server-mocks/src/audit.mock.ts rename to src/core/packages/security/server-mocks/src/audit.mock.ts diff --git a/packages/core/security/core-security-server-mocks/src/security_service.mock.ts b/src/core/packages/security/server-mocks/src/security_service.mock.ts similarity index 100% rename from packages/core/security/core-security-server-mocks/src/security_service.mock.ts rename to src/core/packages/security/server-mocks/src/security_service.mock.ts diff --git a/packages/core/security/core-security-server-mocks/tsconfig.json b/src/core/packages/security/server-mocks/tsconfig.json similarity index 87% rename from packages/core/security/core-security-server-mocks/tsconfig.json rename to src/core/packages/security/server-mocks/tsconfig.json index 9c170d484ca9c..3635bcf047674 100644 --- a/packages/core/security/core-security-server-mocks/tsconfig.json +++ b/src/core/packages/security/server-mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 64299faf50fc3..382c369e929d3 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -608,8 +608,8 @@ "@kbn/core-security-server/*": ["src/core/packages/security/server/*"], "@kbn/core-security-server-internal": ["src/core/packages/security/server-internal"], "@kbn/core-security-server-internal/*": ["src/core/packages/security/server-internal/*"], - "@kbn/core-security-server-mocks": ["packages/core/security/core-security-server-mocks"], - "@kbn/core-security-server-mocks/*": ["packages/core/security/core-security-server-mocks/*"], + "@kbn/core-security-server-mocks": ["src/core/packages/security/server-mocks"], + "@kbn/core-security-server-mocks/*": ["src/core/packages/security/server-mocks/*"], "@kbn/core-status-common": ["packages/core/status/core-status-common"], "@kbn/core-status-common/*": ["packages/core/status/core-status-common/*"], "@kbn/core-status-server": ["packages/core/status/core-status-server"], diff --git a/yarn.lock b/yarn.lock index bb40225dfc1a8..9d1e3620cdc1d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5025,7 +5025,7 @@ version "0.0.0" uid "" -"@kbn/core-security-server-mocks@link:packages/core/security/core-security-server-mocks": +"@kbn/core-security-server-mocks@link:src/core/packages/security/server-mocks": version "0.0.0" uid "" From 8b5cb64a2d03e11a5b17cd9bbf6be89d61c5e2cb Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:39:34 +0100 Subject: [PATCH 117/167] Relocating module `@kbn/core-status-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/status/common}/README.md | 0 .../core/packages/status/common}/index.ts | 0 .../core/packages/status/common}/jest.config.js | 4 ++-- .../core/packages/status/common}/kibana.jsonc | 0 .../core/packages/status/common}/package.json | 0 .../core/packages/status/common}/src/core_status.ts | 0 .../core/packages/status/common}/src/service_status.ts | 0 .../core/packages/status/common}/src/status.ts | 0 .../core/packages/status/common}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/status/core-status-common => src/core/packages/status/common}/README.md (100%) rename {packages/core/status/core-status-common => src/core/packages/status/common}/index.ts (100%) rename {packages/core/status/core-status-common => src/core/packages/status/common}/jest.config.js (85%) rename {packages/core/status/core-status-common => src/core/packages/status/common}/kibana.jsonc (100%) rename {packages/core/status/core-status-common => src/core/packages/status/common}/package.json (100%) rename {packages/core/status/core-status-common => src/core/packages/status/common}/src/core_status.ts (100%) rename {packages/core/status/core-status-common => src/core/packages/status/common}/src/service_status.ts (100%) rename {packages/core/status/core-status-common => src/core/packages/status/common}/src/status.ts (100%) rename {packages/core/status/core-status-common => src/core/packages/status/common}/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a0b17fa7e8f35..83f395096ba44 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -109,7 +109,6 @@ packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-cor packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core -packages/core/status/core-status-common @elastic/kibana-core packages/core/status/core-status-server @elastic/kibana-core packages/core/status/core-status-server-internal @elastic/kibana-core packages/core/status/core-status-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/security/common @elastic/kibana-core @elastic/kibana-security src/core/packages/security/server @elastic/kibana-core src/core/packages/security/server-internal @elastic/kibana-core src/core/packages/security/server-mocks @elastic/kibana-core +src/core/packages/status/common @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 34af8dca1b586..b198c5d6240ad 100644 --- a/package.json +++ b/package.json @@ -386,7 +386,7 @@ "@kbn/core-security-server": "link:src/core/packages/security/server", "@kbn/core-security-server-internal": "link:src/core/packages/security/server-internal", "@kbn/core-security-server-mocks": "link:src/core/packages/security/server-mocks", - "@kbn/core-status-common": "link:packages/core/status/core-status-common", + "@kbn/core-status-common": "link:src/core/packages/status/common", "@kbn/core-status-server": "link:packages/core/status/core-status-server", "@kbn/core-status-server-internal": "link:packages/core/status/core-status-server-internal", "@kbn/core-test-helpers-deprecations-getters": "link:packages/core/test-helpers/core-test-helpers-deprecations-getters", diff --git a/packages/core/status/core-status-common/README.md b/src/core/packages/status/common/README.md similarity index 100% rename from packages/core/status/core-status-common/README.md rename to src/core/packages/status/common/README.md diff --git a/packages/core/status/core-status-common/index.ts b/src/core/packages/status/common/index.ts similarity index 100% rename from packages/core/status/core-status-common/index.ts rename to src/core/packages/status/common/index.ts diff --git a/packages/core/status/core-status-common/jest.config.js b/src/core/packages/status/common/jest.config.js similarity index 85% rename from packages/core/status/core-status-common/jest.config.js rename to src/core/packages/status/common/jest.config.js index 48ce844bb7d3f..a85918b7e4256 100644 --- a/packages/core/status/core-status-common/jest.config.js +++ b/src/core/packages/status/common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/status/core-status-common'], + rootDir: '../../../../..', + roots: ['/src/core/packages/status/common'], }; diff --git a/packages/core/status/core-status-common/kibana.jsonc b/src/core/packages/status/common/kibana.jsonc similarity index 100% rename from packages/core/status/core-status-common/kibana.jsonc rename to src/core/packages/status/common/kibana.jsonc diff --git a/packages/core/status/core-status-common/package.json b/src/core/packages/status/common/package.json similarity index 100% rename from packages/core/status/core-status-common/package.json rename to src/core/packages/status/common/package.json diff --git a/packages/core/status/core-status-common/src/core_status.ts b/src/core/packages/status/common/src/core_status.ts similarity index 100% rename from packages/core/status/core-status-common/src/core_status.ts rename to src/core/packages/status/common/src/core_status.ts diff --git a/packages/core/status/core-status-common/src/service_status.ts b/src/core/packages/status/common/src/service_status.ts similarity index 100% rename from packages/core/status/core-status-common/src/service_status.ts rename to src/core/packages/status/common/src/service_status.ts diff --git a/packages/core/status/core-status-common/src/status.ts b/src/core/packages/status/common/src/status.ts similarity index 100% rename from packages/core/status/core-status-common/src/status.ts rename to src/core/packages/status/common/src/status.ts diff --git a/packages/core/status/core-status-common/tsconfig.json b/src/core/packages/status/common/tsconfig.json similarity index 85% rename from packages/core/status/core-status-common/tsconfig.json rename to src/core/packages/status/common/tsconfig.json index 3b61a574a06bb..97b67960ffb87 100644 --- a/packages/core/status/core-status-common/tsconfig.json +++ b/src/core/packages/status/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 382c369e929d3..e8b67e073f26a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -610,8 +610,8 @@ "@kbn/core-security-server-internal/*": ["src/core/packages/security/server-internal/*"], "@kbn/core-security-server-mocks": ["src/core/packages/security/server-mocks"], "@kbn/core-security-server-mocks/*": ["src/core/packages/security/server-mocks/*"], - "@kbn/core-status-common": ["packages/core/status/core-status-common"], - "@kbn/core-status-common/*": ["packages/core/status/core-status-common/*"], + "@kbn/core-status-common": ["src/core/packages/status/common"], + "@kbn/core-status-common/*": ["src/core/packages/status/common/*"], "@kbn/core-status-server": ["packages/core/status/core-status-server"], "@kbn/core-status-server/*": ["packages/core/status/core-status-server/*"], "@kbn/core-status-server-internal": ["packages/core/status/core-status-server-internal"], diff --git a/yarn.lock b/yarn.lock index 9d1e3620cdc1d..05bbc83eb5fb3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5033,7 +5033,7 @@ version "0.0.0" uid "" -"@kbn/core-status-common@link:packages/core/status/core-status-common": +"@kbn/core-status-common@link:src/core/packages/status/common": version "0.0.0" uid "" From 89c0237cb612843aa026dab853a5004820965e7e Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:40:26 +0100 Subject: [PATCH 118/167] Relocating module `@kbn/core-status-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/status/server}/README.md | 0 .../core/packages/status/server}/index.ts | 0 .../core/packages/status/server}/jest.config.js | 4 ++-- .../core/packages/status/server}/kibana.jsonc | 0 .../core/packages/status/server}/package.json | 0 .../core/packages/status/server}/src/contracts.ts | 0 .../core/packages/status/server}/src/index.ts | 0 .../core/packages/status/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 12 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/status/core-status-server => src/core/packages/status/server}/README.md (100%) rename {packages/core/status/core-status-server => src/core/packages/status/server}/index.ts (100%) rename {packages/core/status/core-status-server => src/core/packages/status/server}/jest.config.js (85%) rename {packages/core/status/core-status-server => src/core/packages/status/server}/kibana.jsonc (100%) rename {packages/core/status/core-status-server => src/core/packages/status/server}/package.json (100%) rename {packages/core/status/core-status-server => src/core/packages/status/server}/src/contracts.ts (100%) rename {packages/core/status/core-status-server => src/core/packages/status/server}/src/index.ts (100%) rename {packages/core/status/core-status-server => src/core/packages/status/server}/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 83f395096ba44..9feff07ad19d5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -109,7 +109,6 @@ packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-cor packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core -packages/core/status/core-status-server @elastic/kibana-core packages/core/status/core-status-server-internal @elastic/kibana-core packages/core/status/core-status-server-mocks @elastic/kibana-core packages/core/test-helpers/core-test-helpers-deprecations-getters @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/security/server @elastic/kibana-core src/core/packages/security/server-internal @elastic/kibana-core src/core/packages/security/server-mocks @elastic/kibana-core src/core/packages/status/common @elastic/kibana-core +src/core/packages/status/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index b198c5d6240ad..e1be50c0ad3c0 100644 --- a/package.json +++ b/package.json @@ -387,7 +387,7 @@ "@kbn/core-security-server-internal": "link:src/core/packages/security/server-internal", "@kbn/core-security-server-mocks": "link:src/core/packages/security/server-mocks", "@kbn/core-status-common": "link:src/core/packages/status/common", - "@kbn/core-status-server": "link:packages/core/status/core-status-server", + "@kbn/core-status-server": "link:src/core/packages/status/server", "@kbn/core-status-server-internal": "link:packages/core/status/core-status-server-internal", "@kbn/core-test-helpers-deprecations-getters": "link:packages/core/test-helpers/core-test-helpers-deprecations-getters", "@kbn/core-test-helpers-http-setup-browser": "link:packages/core/test-helpers/core-test-helpers-http-setup-browser", diff --git a/packages/core/status/core-status-server/README.md b/src/core/packages/status/server/README.md similarity index 100% rename from packages/core/status/core-status-server/README.md rename to src/core/packages/status/server/README.md diff --git a/packages/core/status/core-status-server/index.ts b/src/core/packages/status/server/index.ts similarity index 100% rename from packages/core/status/core-status-server/index.ts rename to src/core/packages/status/server/index.ts diff --git a/packages/core/status/core-status-server/jest.config.js b/src/core/packages/status/server/jest.config.js similarity index 85% rename from packages/core/status/core-status-server/jest.config.js rename to src/core/packages/status/server/jest.config.js index 35c6f76da67d4..1fbf49df94ba5 100644 --- a/packages/core/status/core-status-server/jest.config.js +++ b/src/core/packages/status/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/status/core-status-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/status/server'], }; diff --git a/packages/core/status/core-status-server/kibana.jsonc b/src/core/packages/status/server/kibana.jsonc similarity index 100% rename from packages/core/status/core-status-server/kibana.jsonc rename to src/core/packages/status/server/kibana.jsonc diff --git a/packages/core/status/core-status-server/package.json b/src/core/packages/status/server/package.json similarity index 100% rename from packages/core/status/core-status-server/package.json rename to src/core/packages/status/server/package.json diff --git a/packages/core/status/core-status-server/src/contracts.ts b/src/core/packages/status/server/src/contracts.ts similarity index 100% rename from packages/core/status/core-status-server/src/contracts.ts rename to src/core/packages/status/server/src/contracts.ts diff --git a/packages/core/status/core-status-server/src/index.ts b/src/core/packages/status/server/src/index.ts similarity index 100% rename from packages/core/status/core-status-server/src/index.ts rename to src/core/packages/status/server/src/index.ts diff --git a/packages/core/status/core-status-server/tsconfig.json b/src/core/packages/status/server/tsconfig.json similarity index 82% rename from packages/core/status/core-status-server/tsconfig.json rename to src/core/packages/status/server/tsconfig.json index f1268b704981a..c13400e3a004d 100644 --- a/packages/core/status/core-status-server/tsconfig.json +++ b/src/core/packages/status/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index e8b67e073f26a..8cffd347f7407 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -612,8 +612,8 @@ "@kbn/core-security-server-mocks/*": ["src/core/packages/security/server-mocks/*"], "@kbn/core-status-common": ["src/core/packages/status/common"], "@kbn/core-status-common/*": ["src/core/packages/status/common/*"], - "@kbn/core-status-server": ["packages/core/status/core-status-server"], - "@kbn/core-status-server/*": ["packages/core/status/core-status-server/*"], + "@kbn/core-status-server": ["src/core/packages/status/server"], + "@kbn/core-status-server/*": ["src/core/packages/status/server/*"], "@kbn/core-status-server-internal": ["packages/core/status/core-status-server-internal"], "@kbn/core-status-server-internal/*": ["packages/core/status/core-status-server-internal/*"], "@kbn/core-status-server-mocks": ["packages/core/status/core-status-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 05bbc83eb5fb3..d5fdafc119a25 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5045,7 +5045,7 @@ version "0.0.0" uid "" -"@kbn/core-status-server@link:packages/core/status/core-status-server": +"@kbn/core-status-server@link:src/core/packages/status/server": version "0.0.0" uid "" From 42da9ef708735cb32d0df548666cb42f72f41e31 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:41:18 +0100 Subject: [PATCH 119/167] Relocating module `@kbn/core-status-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/status/server-internal}/README.md | 0 .../core/packages/status/server-internal}/index.ts | 0 .../core/packages/status/server-internal}/jest.config.js | 4 ++-- .../core/packages/status/server-internal}/kibana.jsonc | 0 .../core/packages/status/server-internal}/package.json | 0 .../status/server-internal}/src/cached_plugins_status.ts | 0 .../status/server-internal}/src/get_summary_status.test.ts | 0 .../status/server-internal}/src/get_summary_status.ts | 0 .../core/packages/status/server-internal}/src/index.ts | 0 .../status/server-internal}/src/legacy_status.test.ts | 0 .../packages/status/server-internal}/src/legacy_status.ts | 0 .../server-internal}/src/log_core_services_status.test.ts | 0 .../status/server-internal}/src/log_core_services_status.ts | 0 .../status/server-internal}/src/log_overall_status.test.ts | 0 .../status/server-internal}/src/log_overall_status.ts | 0 .../status/server-internal}/src/log_plugins_status.test.ts | 0 .../status/server-internal}/src/log_plugins_status.ts | 0 .../status/server-internal}/src/plugins_status.test.ts | 0 .../packages/status/server-internal}/src/plugins_status.ts | 0 .../core/packages/status/server-internal}/src/routes/index.ts | 0 .../packages/status/server-internal}/src/routes/status.ts | 0 .../status/server-internal}/src/routes/status_preboot.ts | 0 .../server-internal}/src/routes/status_response_schemas.ts | 0 .../packages/status/server-internal}/src/status_config.ts | 0 .../status/server-internal}/src/status_service.test.mocks.ts | 0 .../status/server-internal}/src/status_service.test.ts | 0 .../packages/status/server-internal}/src/status_service.ts | 0 .../status/server-internal}/src/test_helpers/index.ts | 0 .../status/server-internal}/src/test_helpers/test_utils.ts | 0 .../core/packages/status/server-internal}/src/types.ts | 0 .../core/packages/status/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 35 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/README.md (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/index.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/jest.config.js (84%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/kibana.jsonc (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/package.json (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/cached_plugins_status.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/get_summary_status.test.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/get_summary_status.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/index.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/legacy_status.test.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/legacy_status.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/log_core_services_status.test.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/log_core_services_status.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/log_overall_status.test.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/log_overall_status.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/log_plugins_status.test.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/log_plugins_status.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/plugins_status.test.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/plugins_status.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/routes/index.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/routes/status.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/routes/status_preboot.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/routes/status_response_schemas.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/status_config.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/status_service.test.mocks.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/status_service.test.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/status_service.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/test_helpers/index.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/test_helpers/test_utils.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/src/types.ts (100%) rename {packages/core/status/core-status-server-internal => src/core/packages/status/server-internal}/tsconfig.json (96%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 9feff07ad19d5..3450d20c9a376 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -109,7 +109,6 @@ packages/core/saved-objects/core-saved-objects-browser-mocks @elastic/kibana-cor packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core -packages/core/status/core-status-server-internal @elastic/kibana-core packages/core/status/core-status-server-mocks @elastic/kibana-core packages/core/test-helpers/core-test-helpers-deprecations-getters @elastic/kibana-core packages/core/test-helpers/core-test-helpers-http-setup-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/security/server-internal @elastic/kibana-core src/core/packages/security/server-mocks @elastic/kibana-core src/core/packages/status/common @elastic/kibana-core src/core/packages/status/server @elastic/kibana-core +src/core/packages/status/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index e1be50c0ad3c0..8dda888637a25 100644 --- a/package.json +++ b/package.json @@ -388,7 +388,7 @@ "@kbn/core-security-server-mocks": "link:src/core/packages/security/server-mocks", "@kbn/core-status-common": "link:src/core/packages/status/common", "@kbn/core-status-server": "link:src/core/packages/status/server", - "@kbn/core-status-server-internal": "link:packages/core/status/core-status-server-internal", + "@kbn/core-status-server-internal": "link:src/core/packages/status/server-internal", "@kbn/core-test-helpers-deprecations-getters": "link:packages/core/test-helpers/core-test-helpers-deprecations-getters", "@kbn/core-test-helpers-http-setup-browser": "link:packages/core/test-helpers/core-test-helpers-http-setup-browser", "@kbn/core-test-helpers-so-type-serializer": "link:packages/core/test-helpers/core-test-helpers-so-type-serializer", diff --git a/packages/core/status/core-status-server-internal/README.md b/src/core/packages/status/server-internal/README.md similarity index 100% rename from packages/core/status/core-status-server-internal/README.md rename to src/core/packages/status/server-internal/README.md diff --git a/packages/core/status/core-status-server-internal/index.ts b/src/core/packages/status/server-internal/index.ts similarity index 100% rename from packages/core/status/core-status-server-internal/index.ts rename to src/core/packages/status/server-internal/index.ts diff --git a/packages/core/status/core-status-server-internal/jest.config.js b/src/core/packages/status/server-internal/jest.config.js similarity index 84% rename from packages/core/status/core-status-server-internal/jest.config.js rename to src/core/packages/status/server-internal/jest.config.js index 441483ccd584c..28641e77736e3 100644 --- a/packages/core/status/core-status-server-internal/jest.config.js +++ b/src/core/packages/status/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/status/core-status-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/status/server-internal'], }; diff --git a/packages/core/status/core-status-server-internal/kibana.jsonc b/src/core/packages/status/server-internal/kibana.jsonc similarity index 100% rename from packages/core/status/core-status-server-internal/kibana.jsonc rename to src/core/packages/status/server-internal/kibana.jsonc diff --git a/packages/core/status/core-status-server-internal/package.json b/src/core/packages/status/server-internal/package.json similarity index 100% rename from packages/core/status/core-status-server-internal/package.json rename to src/core/packages/status/server-internal/package.json diff --git a/packages/core/status/core-status-server-internal/src/cached_plugins_status.ts b/src/core/packages/status/server-internal/src/cached_plugins_status.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/cached_plugins_status.ts rename to src/core/packages/status/server-internal/src/cached_plugins_status.ts diff --git a/packages/core/status/core-status-server-internal/src/get_summary_status.test.ts b/src/core/packages/status/server-internal/src/get_summary_status.test.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/get_summary_status.test.ts rename to src/core/packages/status/server-internal/src/get_summary_status.test.ts diff --git a/packages/core/status/core-status-server-internal/src/get_summary_status.ts b/src/core/packages/status/server-internal/src/get_summary_status.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/get_summary_status.ts rename to src/core/packages/status/server-internal/src/get_summary_status.ts diff --git a/packages/core/status/core-status-server-internal/src/index.ts b/src/core/packages/status/server-internal/src/index.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/index.ts rename to src/core/packages/status/server-internal/src/index.ts diff --git a/packages/core/status/core-status-server-internal/src/legacy_status.test.ts b/src/core/packages/status/server-internal/src/legacy_status.test.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/legacy_status.test.ts rename to src/core/packages/status/server-internal/src/legacy_status.test.ts diff --git a/packages/core/status/core-status-server-internal/src/legacy_status.ts b/src/core/packages/status/server-internal/src/legacy_status.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/legacy_status.ts rename to src/core/packages/status/server-internal/src/legacy_status.ts diff --git a/packages/core/status/core-status-server-internal/src/log_core_services_status.test.ts b/src/core/packages/status/server-internal/src/log_core_services_status.test.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/log_core_services_status.test.ts rename to src/core/packages/status/server-internal/src/log_core_services_status.test.ts diff --git a/packages/core/status/core-status-server-internal/src/log_core_services_status.ts b/src/core/packages/status/server-internal/src/log_core_services_status.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/log_core_services_status.ts rename to src/core/packages/status/server-internal/src/log_core_services_status.ts diff --git a/packages/core/status/core-status-server-internal/src/log_overall_status.test.ts b/src/core/packages/status/server-internal/src/log_overall_status.test.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/log_overall_status.test.ts rename to src/core/packages/status/server-internal/src/log_overall_status.test.ts diff --git a/packages/core/status/core-status-server-internal/src/log_overall_status.ts b/src/core/packages/status/server-internal/src/log_overall_status.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/log_overall_status.ts rename to src/core/packages/status/server-internal/src/log_overall_status.ts diff --git a/packages/core/status/core-status-server-internal/src/log_plugins_status.test.ts b/src/core/packages/status/server-internal/src/log_plugins_status.test.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/log_plugins_status.test.ts rename to src/core/packages/status/server-internal/src/log_plugins_status.test.ts diff --git a/packages/core/status/core-status-server-internal/src/log_plugins_status.ts b/src/core/packages/status/server-internal/src/log_plugins_status.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/log_plugins_status.ts rename to src/core/packages/status/server-internal/src/log_plugins_status.ts diff --git a/packages/core/status/core-status-server-internal/src/plugins_status.test.ts b/src/core/packages/status/server-internal/src/plugins_status.test.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/plugins_status.test.ts rename to src/core/packages/status/server-internal/src/plugins_status.test.ts diff --git a/packages/core/status/core-status-server-internal/src/plugins_status.ts b/src/core/packages/status/server-internal/src/plugins_status.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/plugins_status.ts rename to src/core/packages/status/server-internal/src/plugins_status.ts diff --git a/packages/core/status/core-status-server-internal/src/routes/index.ts b/src/core/packages/status/server-internal/src/routes/index.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/routes/index.ts rename to src/core/packages/status/server-internal/src/routes/index.ts diff --git a/packages/core/status/core-status-server-internal/src/routes/status.ts b/src/core/packages/status/server-internal/src/routes/status.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/routes/status.ts rename to src/core/packages/status/server-internal/src/routes/status.ts diff --git a/packages/core/status/core-status-server-internal/src/routes/status_preboot.ts b/src/core/packages/status/server-internal/src/routes/status_preboot.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/routes/status_preboot.ts rename to src/core/packages/status/server-internal/src/routes/status_preboot.ts diff --git a/packages/core/status/core-status-server-internal/src/routes/status_response_schemas.ts b/src/core/packages/status/server-internal/src/routes/status_response_schemas.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/routes/status_response_schemas.ts rename to src/core/packages/status/server-internal/src/routes/status_response_schemas.ts diff --git a/packages/core/status/core-status-server-internal/src/status_config.ts b/src/core/packages/status/server-internal/src/status_config.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/status_config.ts rename to src/core/packages/status/server-internal/src/status_config.ts diff --git a/packages/core/status/core-status-server-internal/src/status_service.test.mocks.ts b/src/core/packages/status/server-internal/src/status_service.test.mocks.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/status_service.test.mocks.ts rename to src/core/packages/status/server-internal/src/status_service.test.mocks.ts diff --git a/packages/core/status/core-status-server-internal/src/status_service.test.ts b/src/core/packages/status/server-internal/src/status_service.test.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/status_service.test.ts rename to src/core/packages/status/server-internal/src/status_service.test.ts diff --git a/packages/core/status/core-status-server-internal/src/status_service.ts b/src/core/packages/status/server-internal/src/status_service.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/status_service.ts rename to src/core/packages/status/server-internal/src/status_service.ts diff --git a/packages/core/status/core-status-server-internal/src/test_helpers/index.ts b/src/core/packages/status/server-internal/src/test_helpers/index.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/test_helpers/index.ts rename to src/core/packages/status/server-internal/src/test_helpers/index.ts diff --git a/packages/core/status/core-status-server-internal/src/test_helpers/test_utils.ts b/src/core/packages/status/server-internal/src/test_helpers/test_utils.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/test_helpers/test_utils.ts rename to src/core/packages/status/server-internal/src/test_helpers/test_utils.ts diff --git a/packages/core/status/core-status-server-internal/src/types.ts b/src/core/packages/status/server-internal/src/types.ts similarity index 100% rename from packages/core/status/core-status-server-internal/src/types.ts rename to src/core/packages/status/server-internal/src/types.ts diff --git a/packages/core/status/core-status-server-internal/tsconfig.json b/src/core/packages/status/server-internal/tsconfig.json similarity index 96% rename from packages/core/status/core-status-server-internal/tsconfig.json rename to src/core/packages/status/server-internal/tsconfig.json index 5ca46556cac33..a52619e10222f 100644 --- a/packages/core/status/core-status-server-internal/tsconfig.json +++ b/src/core/packages/status/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 8cffd347f7407..08ca4d7233d6d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -614,8 +614,8 @@ "@kbn/core-status-common/*": ["src/core/packages/status/common/*"], "@kbn/core-status-server": ["src/core/packages/status/server"], "@kbn/core-status-server/*": ["src/core/packages/status/server/*"], - "@kbn/core-status-server-internal": ["packages/core/status/core-status-server-internal"], - "@kbn/core-status-server-internal/*": ["packages/core/status/core-status-server-internal/*"], + "@kbn/core-status-server-internal": ["src/core/packages/status/server-internal"], + "@kbn/core-status-server-internal/*": ["src/core/packages/status/server-internal/*"], "@kbn/core-status-server-mocks": ["packages/core/status/core-status-server-mocks"], "@kbn/core-status-server-mocks/*": ["packages/core/status/core-status-server-mocks/*"], "@kbn/core-test-helpers-deprecations-getters": ["packages/core/test-helpers/core-test-helpers-deprecations-getters"], diff --git a/yarn.lock b/yarn.lock index d5fdafc119a25..4ff0307232059 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5037,7 +5037,7 @@ version "0.0.0" uid "" -"@kbn/core-status-server-internal@link:packages/core/status/core-status-server-internal": +"@kbn/core-status-server-internal@link:src/core/packages/status/server-internal": version "0.0.0" uid "" From 18f637f4ded86c8ad4c05c234c4fc7fdc1cc446a Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:42:11 +0100 Subject: [PATCH 120/167] Relocating module `@kbn/core-test-helpers-deprecations-getters` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/test-helpers/deprecations-getters}/README.md | 0 .../core/packages/test-helpers/deprecations-getters}/index.ts | 0 .../test-helpers/deprecations-getters}/jest.config.js | 4 ++-- .../packages/test-helpers/deprecations-getters}/kibana.jsonc | 0 .../packages/test-helpers/deprecations-getters}/package.json | 0 .../deprecations-getters}/src/deprecations_getters.ts | 0 .../packages/test-helpers/deprecations-getters}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/test-helpers/core-test-helpers-deprecations-getters => src/core/packages/test-helpers/deprecations-getters}/README.md (100%) rename {packages/core/test-helpers/core-test-helpers-deprecations-getters => src/core/packages/test-helpers/deprecations-getters}/index.ts (100%) rename {packages/core/test-helpers/core-test-helpers-deprecations-getters => src/core/packages/test-helpers/deprecations-getters}/jest.config.js (81%) rename {packages/core/test-helpers/core-test-helpers-deprecations-getters => src/core/packages/test-helpers/deprecations-getters}/kibana.jsonc (100%) rename {packages/core/test-helpers/core-test-helpers-deprecations-getters => src/core/packages/test-helpers/deprecations-getters}/package.json (100%) rename {packages/core/test-helpers/core-test-helpers-deprecations-getters => src/core/packages/test-helpers/deprecations-getters}/src/deprecations_getters.ts (100%) rename {packages/core/test-helpers/core-test-helpers-deprecations-getters => src/core/packages/test-helpers/deprecations-getters}/tsconfig.json (84%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3450d20c9a376..6a854a3ee7c39 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -110,7 +110,6 @@ packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elast packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core packages/core/status/core-status-server-mocks @elastic/kibana-core -packages/core/test-helpers/core-test-helpers-deprecations-getters @elastic/kibana-core packages/core/test-helpers/core-test-helpers-http-setup-browser @elastic/kibana-core packages/core/test-helpers/core-test-helpers-kbn-server @elastic/kibana-core packages/core/test-helpers/core-test-helpers-model-versions @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/security/server-mocks @elastic/kibana-core src/core/packages/status/common @elastic/kibana-core src/core/packages/status/server @elastic/kibana-core src/core/packages/status/server-internal @elastic/kibana-core +src/core/packages/test-helpers/deprecations-getters @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 8dda888637a25..d394372dfb109 100644 --- a/package.json +++ b/package.json @@ -389,7 +389,7 @@ "@kbn/core-status-common": "link:src/core/packages/status/common", "@kbn/core-status-server": "link:src/core/packages/status/server", "@kbn/core-status-server-internal": "link:src/core/packages/status/server-internal", - "@kbn/core-test-helpers-deprecations-getters": "link:packages/core/test-helpers/core-test-helpers-deprecations-getters", + "@kbn/core-test-helpers-deprecations-getters": "link:src/core/packages/test-helpers/deprecations-getters", "@kbn/core-test-helpers-http-setup-browser": "link:packages/core/test-helpers/core-test-helpers-http-setup-browser", "@kbn/core-test-helpers-so-type-serializer": "link:packages/core/test-helpers/core-test-helpers-so-type-serializer", "@kbn/core-test-helpers-test-utils": "link:packages/core/test-helpers/core-test-helpers-test-utils", diff --git a/packages/core/test-helpers/core-test-helpers-deprecations-getters/README.md b/src/core/packages/test-helpers/deprecations-getters/README.md similarity index 100% rename from packages/core/test-helpers/core-test-helpers-deprecations-getters/README.md rename to src/core/packages/test-helpers/deprecations-getters/README.md diff --git a/packages/core/test-helpers/core-test-helpers-deprecations-getters/index.ts b/src/core/packages/test-helpers/deprecations-getters/index.ts similarity index 100% rename from packages/core/test-helpers/core-test-helpers-deprecations-getters/index.ts rename to src/core/packages/test-helpers/deprecations-getters/index.ts diff --git a/packages/core/test-helpers/core-test-helpers-deprecations-getters/jest.config.js b/src/core/packages/test-helpers/deprecations-getters/jest.config.js similarity index 81% rename from packages/core/test-helpers/core-test-helpers-deprecations-getters/jest.config.js rename to src/core/packages/test-helpers/deprecations-getters/jest.config.js index 0665db7a6eb5f..0f55cdadc7687 100644 --- a/packages/core/test-helpers/core-test-helpers-deprecations-getters/jest.config.js +++ b/src/core/packages/test-helpers/deprecations-getters/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/test-helpers/core-test-helpers-deprecations-getters'], + rootDir: '../../../../..', + roots: ['/src/core/packages/test-helpers/deprecations-getters'], }; diff --git a/packages/core/test-helpers/core-test-helpers-deprecations-getters/kibana.jsonc b/src/core/packages/test-helpers/deprecations-getters/kibana.jsonc similarity index 100% rename from packages/core/test-helpers/core-test-helpers-deprecations-getters/kibana.jsonc rename to src/core/packages/test-helpers/deprecations-getters/kibana.jsonc diff --git a/packages/core/test-helpers/core-test-helpers-deprecations-getters/package.json b/src/core/packages/test-helpers/deprecations-getters/package.json similarity index 100% rename from packages/core/test-helpers/core-test-helpers-deprecations-getters/package.json rename to src/core/packages/test-helpers/deprecations-getters/package.json diff --git a/packages/core/test-helpers/core-test-helpers-deprecations-getters/src/deprecations_getters.ts b/src/core/packages/test-helpers/deprecations-getters/src/deprecations_getters.ts similarity index 100% rename from packages/core/test-helpers/core-test-helpers-deprecations-getters/src/deprecations_getters.ts rename to src/core/packages/test-helpers/deprecations-getters/src/deprecations_getters.ts diff --git a/packages/core/test-helpers/core-test-helpers-deprecations-getters/tsconfig.json b/src/core/packages/test-helpers/deprecations-getters/tsconfig.json similarity index 84% rename from packages/core/test-helpers/core-test-helpers-deprecations-getters/tsconfig.json rename to src/core/packages/test-helpers/deprecations-getters/tsconfig.json index 709b092761e40..3949ce34ea573 100644 --- a/packages/core/test-helpers/core-test-helpers-deprecations-getters/tsconfig.json +++ b/src/core/packages/test-helpers/deprecations-getters/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 08ca4d7233d6d..255adac82eeac 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -618,8 +618,8 @@ "@kbn/core-status-server-internal/*": ["src/core/packages/status/server-internal/*"], "@kbn/core-status-server-mocks": ["packages/core/status/core-status-server-mocks"], "@kbn/core-status-server-mocks/*": ["packages/core/status/core-status-server-mocks/*"], - "@kbn/core-test-helpers-deprecations-getters": ["packages/core/test-helpers/core-test-helpers-deprecations-getters"], - "@kbn/core-test-helpers-deprecations-getters/*": ["packages/core/test-helpers/core-test-helpers-deprecations-getters/*"], + "@kbn/core-test-helpers-deprecations-getters": ["src/core/packages/test-helpers/deprecations-getters"], + "@kbn/core-test-helpers-deprecations-getters/*": ["src/core/packages/test-helpers/deprecations-getters/*"], "@kbn/core-test-helpers-http-setup-browser": ["packages/core/test-helpers/core-test-helpers-http-setup-browser"], "@kbn/core-test-helpers-http-setup-browser/*": ["packages/core/test-helpers/core-test-helpers-http-setup-browser/*"], "@kbn/core-test-helpers-kbn-server": ["packages/core/test-helpers/core-test-helpers-kbn-server"], diff --git a/yarn.lock b/yarn.lock index 4ff0307232059..8ee09ded310ed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5049,7 +5049,7 @@ version "0.0.0" uid "" -"@kbn/core-test-helpers-deprecations-getters@link:packages/core/test-helpers/core-test-helpers-deprecations-getters": +"@kbn/core-test-helpers-deprecations-getters@link:src/core/packages/test-helpers/deprecations-getters": version "0.0.0" uid "" From 790f0a230bbe6ac2e2546ca7dc2536bd84d22613 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:43:04 +0100 Subject: [PATCH 121/167] Relocating module `@kbn/core-test-helpers-http-setup-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/test-helpers/http-setup-browser}/README.md | 0 .../core/packages/test-helpers/http-setup-browser}/index.ts | 0 .../packages/test-helpers/http-setup-browser}/jest.config.js | 4 ++-- .../packages/test-helpers/http-setup-browser}/kibana.jsonc | 0 .../packages/test-helpers/http-setup-browser}/package.json | 0 .../test-helpers/http-setup-browser}/src/http_test_setup.ts | 0 .../packages/test-helpers/http-setup-browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/test-helpers/core-test-helpers-http-setup-browser => src/core/packages/test-helpers/http-setup-browser}/README.md (100%) rename {packages/core/test-helpers/core-test-helpers-http-setup-browser => src/core/packages/test-helpers/http-setup-browser}/index.ts (100%) rename {packages/core/test-helpers/core-test-helpers-http-setup-browser => src/core/packages/test-helpers/http-setup-browser}/jest.config.js (81%) rename {packages/core/test-helpers/core-test-helpers-http-setup-browser => src/core/packages/test-helpers/http-setup-browser}/kibana.jsonc (100%) rename {packages/core/test-helpers/core-test-helpers-http-setup-browser => src/core/packages/test-helpers/http-setup-browser}/package.json (100%) rename {packages/core/test-helpers/core-test-helpers-http-setup-browser => src/core/packages/test-helpers/http-setup-browser}/src/http_test_setup.ts (100%) rename {packages/core/test-helpers/core-test-helpers-http-setup-browser => src/core/packages/test-helpers/http-setup-browser}/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6a854a3ee7c39..586f41e1ccb35 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -110,7 +110,6 @@ packages/core/saved-objects/core-saved-objects-import-export-server-mocks @elast packages/core/saved-objects/core-saved-objects-migration-server-mocks @elastic/kibana-core packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core packages/core/status/core-status-server-mocks @elastic/kibana-core -packages/core/test-helpers/core-test-helpers-http-setup-browser @elastic/kibana-core packages/core/test-helpers/core-test-helpers-kbn-server @elastic/kibana-core packages/core/test-helpers/core-test-helpers-model-versions @elastic/kibana-core packages/core/test-helpers/core-test-helpers-so-type-serializer @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/status/common @elastic/kibana-core src/core/packages/status/server @elastic/kibana-core src/core/packages/status/server-internal @elastic/kibana-core src/core/packages/test-helpers/deprecations-getters @elastic/kibana-core +src/core/packages/test-helpers/http-setup-browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index d394372dfb109..383b91ba30b5b 100644 --- a/package.json +++ b/package.json @@ -390,7 +390,7 @@ "@kbn/core-status-server": "link:src/core/packages/status/server", "@kbn/core-status-server-internal": "link:src/core/packages/status/server-internal", "@kbn/core-test-helpers-deprecations-getters": "link:src/core/packages/test-helpers/deprecations-getters", - "@kbn/core-test-helpers-http-setup-browser": "link:packages/core/test-helpers/core-test-helpers-http-setup-browser", + "@kbn/core-test-helpers-http-setup-browser": "link:src/core/packages/test-helpers/http-setup-browser", "@kbn/core-test-helpers-so-type-serializer": "link:packages/core/test-helpers/core-test-helpers-so-type-serializer", "@kbn/core-test-helpers-test-utils": "link:packages/core/test-helpers/core-test-helpers-test-utils", "@kbn/core-theme-browser": "link:packages/core/theme/core-theme-browser", diff --git a/packages/core/test-helpers/core-test-helpers-http-setup-browser/README.md b/src/core/packages/test-helpers/http-setup-browser/README.md similarity index 100% rename from packages/core/test-helpers/core-test-helpers-http-setup-browser/README.md rename to src/core/packages/test-helpers/http-setup-browser/README.md diff --git a/packages/core/test-helpers/core-test-helpers-http-setup-browser/index.ts b/src/core/packages/test-helpers/http-setup-browser/index.ts similarity index 100% rename from packages/core/test-helpers/core-test-helpers-http-setup-browser/index.ts rename to src/core/packages/test-helpers/http-setup-browser/index.ts diff --git a/packages/core/test-helpers/core-test-helpers-http-setup-browser/jest.config.js b/src/core/packages/test-helpers/http-setup-browser/jest.config.js similarity index 81% rename from packages/core/test-helpers/core-test-helpers-http-setup-browser/jest.config.js rename to src/core/packages/test-helpers/http-setup-browser/jest.config.js index 8f09a34b560e0..2b08b1f014a16 100644 --- a/packages/core/test-helpers/core-test-helpers-http-setup-browser/jest.config.js +++ b/src/core/packages/test-helpers/http-setup-browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/test-helpers/core-test-helpers-http-setup-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/test-helpers/http-setup-browser'], }; diff --git a/packages/core/test-helpers/core-test-helpers-http-setup-browser/kibana.jsonc b/src/core/packages/test-helpers/http-setup-browser/kibana.jsonc similarity index 100% rename from packages/core/test-helpers/core-test-helpers-http-setup-browser/kibana.jsonc rename to src/core/packages/test-helpers/http-setup-browser/kibana.jsonc diff --git a/packages/core/test-helpers/core-test-helpers-http-setup-browser/package.json b/src/core/packages/test-helpers/http-setup-browser/package.json similarity index 100% rename from packages/core/test-helpers/core-test-helpers-http-setup-browser/package.json rename to src/core/packages/test-helpers/http-setup-browser/package.json diff --git a/packages/core/test-helpers/core-test-helpers-http-setup-browser/src/http_test_setup.ts b/src/core/packages/test-helpers/http-setup-browser/src/http_test_setup.ts similarity index 100% rename from packages/core/test-helpers/core-test-helpers-http-setup-browser/src/http_test_setup.ts rename to src/core/packages/test-helpers/http-setup-browser/src/http_test_setup.ts diff --git a/packages/core/test-helpers/core-test-helpers-http-setup-browser/tsconfig.json b/src/core/packages/test-helpers/http-setup-browser/tsconfig.json similarity index 88% rename from packages/core/test-helpers/core-test-helpers-http-setup-browser/tsconfig.json rename to src/core/packages/test-helpers/http-setup-browser/tsconfig.json index 50f950223c66c..59012dd7715e8 100644 --- a/packages/core/test-helpers/core-test-helpers-http-setup-browser/tsconfig.json +++ b/src/core/packages/test-helpers/http-setup-browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 255adac82eeac..3b05d5e885cc0 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -620,8 +620,8 @@ "@kbn/core-status-server-mocks/*": ["packages/core/status/core-status-server-mocks/*"], "@kbn/core-test-helpers-deprecations-getters": ["src/core/packages/test-helpers/deprecations-getters"], "@kbn/core-test-helpers-deprecations-getters/*": ["src/core/packages/test-helpers/deprecations-getters/*"], - "@kbn/core-test-helpers-http-setup-browser": ["packages/core/test-helpers/core-test-helpers-http-setup-browser"], - "@kbn/core-test-helpers-http-setup-browser/*": ["packages/core/test-helpers/core-test-helpers-http-setup-browser/*"], + "@kbn/core-test-helpers-http-setup-browser": ["src/core/packages/test-helpers/http-setup-browser"], + "@kbn/core-test-helpers-http-setup-browser/*": ["src/core/packages/test-helpers/http-setup-browser/*"], "@kbn/core-test-helpers-kbn-server": ["packages/core/test-helpers/core-test-helpers-kbn-server"], "@kbn/core-test-helpers-kbn-server/*": ["packages/core/test-helpers/core-test-helpers-kbn-server/*"], "@kbn/core-test-helpers-model-versions": ["packages/core/test-helpers/core-test-helpers-model-versions"], diff --git a/yarn.lock b/yarn.lock index 8ee09ded310ed..73e7ff6e2561b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5053,7 +5053,7 @@ version "0.0.0" uid "" -"@kbn/core-test-helpers-http-setup-browser@link:packages/core/test-helpers/core-test-helpers-http-setup-browser": +"@kbn/core-test-helpers-http-setup-browser@link:src/core/packages/test-helpers/http-setup-browser": version "0.0.0" uid "" From 7a25f38e0049934ad2dc2549999f9a28d6b2164c Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:43:56 +0100 Subject: [PATCH 122/167] Relocating module `@kbn/core-test-helpers-so-type-serializer` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/test-helpers/so-type-serializer}/README.md | 0 .../core/packages/test-helpers/so-type-serializer}/index.ts | 0 .../packages/test-helpers/so-type-serializer}/jest.config.js | 4 ++-- .../packages/test-helpers/so-type-serializer}/kibana.jsonc | 0 .../packages/test-helpers/so-type-serializer}/package.json | 0 .../so-type-serializer}/src/extract_migration_info.test.ts | 0 .../so-type-serializer}/src/extract_migration_info.ts | 0 .../so-type-serializer}/src/get_migration_hash.test.ts | 0 .../so-type-serializer}/src/get_migration_hash.ts | 0 .../packages/test-helpers/so-type-serializer}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/test-helpers/core-test-helpers-so-type-serializer => src/core/packages/test-helpers/so-type-serializer}/README.md (100%) rename {packages/core/test-helpers/core-test-helpers-so-type-serializer => src/core/packages/test-helpers/so-type-serializer}/index.ts (100%) rename {packages/core/test-helpers/core-test-helpers-so-type-serializer => src/core/packages/test-helpers/so-type-serializer}/jest.config.js (82%) rename {packages/core/test-helpers/core-test-helpers-so-type-serializer => src/core/packages/test-helpers/so-type-serializer}/kibana.jsonc (100%) rename {packages/core/test-helpers/core-test-helpers-so-type-serializer => src/core/packages/test-helpers/so-type-serializer}/package.json (100%) rename {packages/core/test-helpers/core-test-helpers-so-type-serializer => src/core/packages/test-helpers/so-type-serializer}/src/extract_migration_info.test.ts (100%) rename {packages/core/test-helpers/core-test-helpers-so-type-serializer => src/core/packages/test-helpers/so-type-serializer}/src/extract_migration_info.ts (100%) rename {packages/core/test-helpers/core-test-helpers-so-type-serializer => src/core/packages/test-helpers/so-type-serializer}/src/get_migration_hash.test.ts (100%) rename {packages/core/test-helpers/core-test-helpers-so-type-serializer => src/core/packages/test-helpers/so-type-serializer}/src/get_migration_hash.ts (100%) rename {packages/core/test-helpers/core-test-helpers-so-type-serializer => src/core/packages/test-helpers/so-type-serializer}/tsconfig.json (88%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 586f41e1ccb35..eb6e17243c6ef 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -112,7 +112,6 @@ packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core packages/core/status/core-status-server-mocks @elastic/kibana-core packages/core/test-helpers/core-test-helpers-kbn-server @elastic/kibana-core packages/core/test-helpers/core-test-helpers-model-versions @elastic/kibana-core -packages/core/test-helpers/core-test-helpers-so-type-serializer @elastic/kibana-core packages/core/test-helpers/core-test-helpers-test-utils @elastic/kibana-core packages/core/theme/core-theme-browser @elastic/kibana-core packages/core/theme/core-theme-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/status/server @elastic/kibana-core src/core/packages/status/server-internal @elastic/kibana-core src/core/packages/test-helpers/deprecations-getters @elastic/kibana-core src/core/packages/test-helpers/http-setup-browser @elastic/kibana-core +src/core/packages/test-helpers/so-type-serializer @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 383b91ba30b5b..b33d843f4e10a 100644 --- a/package.json +++ b/package.json @@ -391,7 +391,7 @@ "@kbn/core-status-server-internal": "link:src/core/packages/status/server-internal", "@kbn/core-test-helpers-deprecations-getters": "link:src/core/packages/test-helpers/deprecations-getters", "@kbn/core-test-helpers-http-setup-browser": "link:src/core/packages/test-helpers/http-setup-browser", - "@kbn/core-test-helpers-so-type-serializer": "link:packages/core/test-helpers/core-test-helpers-so-type-serializer", + "@kbn/core-test-helpers-so-type-serializer": "link:src/core/packages/test-helpers/so-type-serializer", "@kbn/core-test-helpers-test-utils": "link:packages/core/test-helpers/core-test-helpers-test-utils", "@kbn/core-theme-browser": "link:packages/core/theme/core-theme-browser", "@kbn/core-theme-browser-internal": "link:packages/core/theme/core-theme-browser-internal", diff --git a/packages/core/test-helpers/core-test-helpers-so-type-serializer/README.md b/src/core/packages/test-helpers/so-type-serializer/README.md similarity index 100% rename from packages/core/test-helpers/core-test-helpers-so-type-serializer/README.md rename to src/core/packages/test-helpers/so-type-serializer/README.md diff --git a/packages/core/test-helpers/core-test-helpers-so-type-serializer/index.ts b/src/core/packages/test-helpers/so-type-serializer/index.ts similarity index 100% rename from packages/core/test-helpers/core-test-helpers-so-type-serializer/index.ts rename to src/core/packages/test-helpers/so-type-serializer/index.ts diff --git a/packages/core/test-helpers/core-test-helpers-so-type-serializer/jest.config.js b/src/core/packages/test-helpers/so-type-serializer/jest.config.js similarity index 82% rename from packages/core/test-helpers/core-test-helpers-so-type-serializer/jest.config.js rename to src/core/packages/test-helpers/so-type-serializer/jest.config.js index 3ecbc4098d6a0..e83f3d54e5142 100644 --- a/packages/core/test-helpers/core-test-helpers-so-type-serializer/jest.config.js +++ b/src/core/packages/test-helpers/so-type-serializer/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/test-helpers/core-test-helpers-so-type-serializer'], + rootDir: '../../../../..', + roots: ['/src/core/packages/test-helpers/so-type-serializer'], }; diff --git a/packages/core/test-helpers/core-test-helpers-so-type-serializer/kibana.jsonc b/src/core/packages/test-helpers/so-type-serializer/kibana.jsonc similarity index 100% rename from packages/core/test-helpers/core-test-helpers-so-type-serializer/kibana.jsonc rename to src/core/packages/test-helpers/so-type-serializer/kibana.jsonc diff --git a/packages/core/test-helpers/core-test-helpers-so-type-serializer/package.json b/src/core/packages/test-helpers/so-type-serializer/package.json similarity index 100% rename from packages/core/test-helpers/core-test-helpers-so-type-serializer/package.json rename to src/core/packages/test-helpers/so-type-serializer/package.json diff --git a/packages/core/test-helpers/core-test-helpers-so-type-serializer/src/extract_migration_info.test.ts b/src/core/packages/test-helpers/so-type-serializer/src/extract_migration_info.test.ts similarity index 100% rename from packages/core/test-helpers/core-test-helpers-so-type-serializer/src/extract_migration_info.test.ts rename to src/core/packages/test-helpers/so-type-serializer/src/extract_migration_info.test.ts diff --git a/packages/core/test-helpers/core-test-helpers-so-type-serializer/src/extract_migration_info.ts b/src/core/packages/test-helpers/so-type-serializer/src/extract_migration_info.ts similarity index 100% rename from packages/core/test-helpers/core-test-helpers-so-type-serializer/src/extract_migration_info.ts rename to src/core/packages/test-helpers/so-type-serializer/src/extract_migration_info.ts diff --git a/packages/core/test-helpers/core-test-helpers-so-type-serializer/src/get_migration_hash.test.ts b/src/core/packages/test-helpers/so-type-serializer/src/get_migration_hash.test.ts similarity index 100% rename from packages/core/test-helpers/core-test-helpers-so-type-serializer/src/get_migration_hash.test.ts rename to src/core/packages/test-helpers/so-type-serializer/src/get_migration_hash.test.ts diff --git a/packages/core/test-helpers/core-test-helpers-so-type-serializer/src/get_migration_hash.ts b/src/core/packages/test-helpers/so-type-serializer/src/get_migration_hash.ts similarity index 100% rename from packages/core/test-helpers/core-test-helpers-so-type-serializer/src/get_migration_hash.ts rename to src/core/packages/test-helpers/so-type-serializer/src/get_migration_hash.ts diff --git a/packages/core/test-helpers/core-test-helpers-so-type-serializer/tsconfig.json b/src/core/packages/test-helpers/so-type-serializer/tsconfig.json similarity index 88% rename from packages/core/test-helpers/core-test-helpers-so-type-serializer/tsconfig.json rename to src/core/packages/test-helpers/so-type-serializer/tsconfig.json index 1587301a55138..dcafa2c80ed4e 100644 --- a/packages/core/test-helpers/core-test-helpers-so-type-serializer/tsconfig.json +++ b/src/core/packages/test-helpers/so-type-serializer/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 3b05d5e885cc0..ea9b9622c7fc2 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -626,8 +626,8 @@ "@kbn/core-test-helpers-kbn-server/*": ["packages/core/test-helpers/core-test-helpers-kbn-server/*"], "@kbn/core-test-helpers-model-versions": ["packages/core/test-helpers/core-test-helpers-model-versions"], "@kbn/core-test-helpers-model-versions/*": ["packages/core/test-helpers/core-test-helpers-model-versions/*"], - "@kbn/core-test-helpers-so-type-serializer": ["packages/core/test-helpers/core-test-helpers-so-type-serializer"], - "@kbn/core-test-helpers-so-type-serializer/*": ["packages/core/test-helpers/core-test-helpers-so-type-serializer/*"], + "@kbn/core-test-helpers-so-type-serializer": ["src/core/packages/test-helpers/so-type-serializer"], + "@kbn/core-test-helpers-so-type-serializer/*": ["src/core/packages/test-helpers/so-type-serializer/*"], "@kbn/core-test-helpers-test-utils": ["packages/core/test-helpers/core-test-helpers-test-utils"], "@kbn/core-test-helpers-test-utils/*": ["packages/core/test-helpers/core-test-helpers-test-utils/*"], "@kbn/core-theme-browser": ["packages/core/theme/core-theme-browser"], diff --git a/yarn.lock b/yarn.lock index 73e7ff6e2561b..1ac193a8fa234 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5065,7 +5065,7 @@ version "0.0.0" uid "" -"@kbn/core-test-helpers-so-type-serializer@link:packages/core/test-helpers/core-test-helpers-so-type-serializer": +"@kbn/core-test-helpers-so-type-serializer@link:src/core/packages/test-helpers/so-type-serializer": version "0.0.0" uid "" From 7ce690c7269924af9b8de77306ffa400208ce750 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:44:50 +0100 Subject: [PATCH 123/167] Relocating module `@kbn/core-test-helpers-test-utils` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/test-helpers/test-utils}/README.md | 0 .../core/packages/test-helpers/test-utils}/index.ts | 0 .../core/packages/test-helpers/test-utils}/jest.config.js | 4 ++-- .../core/packages/test-helpers/test-utils}/kibana.jsonc | 0 .../core/packages/test-helpers/test-utils}/package.json | 0 .../test-helpers/test-utils}/src/create_exportable_type.ts | 0 .../test-utils}/src/create_hidden_type_variants.ts | 0 .../packages/test-helpers/test-utils}/src/setup_server.ts | 0 .../core/packages/test-helpers/test-utils}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/test-helpers/core-test-helpers-test-utils => src/core/packages/test-helpers/test-utils}/README.md (100%) rename {packages/core/test-helpers/core-test-helpers-test-utils => src/core/packages/test-helpers/test-utils}/index.ts (100%) rename {packages/core/test-helpers/core-test-helpers-test-utils => src/core/packages/test-helpers/test-utils}/jest.config.js (83%) rename {packages/core/test-helpers/core-test-helpers-test-utils => src/core/packages/test-helpers/test-utils}/kibana.jsonc (100%) rename {packages/core/test-helpers/core-test-helpers-test-utils => src/core/packages/test-helpers/test-utils}/package.json (100%) rename {packages/core/test-helpers/core-test-helpers-test-utils => src/core/packages/test-helpers/test-utils}/src/create_exportable_type.ts (100%) rename {packages/core/test-helpers/core-test-helpers-test-utils => src/core/packages/test-helpers/test-utils}/src/create_hidden_type_variants.ts (100%) rename {packages/core/test-helpers/core-test-helpers-test-utils => src/core/packages/test-helpers/test-utils}/src/setup_server.ts (100%) rename {packages/core/test-helpers/core-test-helpers-test-utils => src/core/packages/test-helpers/test-utils}/tsconfig.json (93%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index eb6e17243c6ef..dd2ee23022b82 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -112,7 +112,6 @@ packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core packages/core/status/core-status-server-mocks @elastic/kibana-core packages/core/test-helpers/core-test-helpers-kbn-server @elastic/kibana-core packages/core/test-helpers/core-test-helpers-model-versions @elastic/kibana-core -packages/core/test-helpers/core-test-helpers-test-utils @elastic/kibana-core packages/core/theme/core-theme-browser @elastic/kibana-core packages/core/theme/core-theme-browser-internal @elastic/kibana-core packages/core/theme/core-theme-browser-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/status/server-internal @elastic/kibana-core src/core/packages/test-helpers/deprecations-getters @elastic/kibana-core src/core/packages/test-helpers/http-setup-browser @elastic/kibana-core src/core/packages/test-helpers/so-type-serializer @elastic/kibana-core +src/core/packages/test-helpers/test-utils @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index b33d843f4e10a..e695229516cc3 100644 --- a/package.json +++ b/package.json @@ -392,7 +392,7 @@ "@kbn/core-test-helpers-deprecations-getters": "link:src/core/packages/test-helpers/deprecations-getters", "@kbn/core-test-helpers-http-setup-browser": "link:src/core/packages/test-helpers/http-setup-browser", "@kbn/core-test-helpers-so-type-serializer": "link:src/core/packages/test-helpers/so-type-serializer", - "@kbn/core-test-helpers-test-utils": "link:packages/core/test-helpers/core-test-helpers-test-utils", + "@kbn/core-test-helpers-test-utils": "link:src/core/packages/test-helpers/test-utils", "@kbn/core-theme-browser": "link:packages/core/theme/core-theme-browser", "@kbn/core-theme-browser-internal": "link:packages/core/theme/core-theme-browser-internal", "@kbn/core-ui-settings-browser": "link:packages/core/ui-settings/core-ui-settings-browser", diff --git a/packages/core/test-helpers/core-test-helpers-test-utils/README.md b/src/core/packages/test-helpers/test-utils/README.md similarity index 100% rename from packages/core/test-helpers/core-test-helpers-test-utils/README.md rename to src/core/packages/test-helpers/test-utils/README.md diff --git a/packages/core/test-helpers/core-test-helpers-test-utils/index.ts b/src/core/packages/test-helpers/test-utils/index.ts similarity index 100% rename from packages/core/test-helpers/core-test-helpers-test-utils/index.ts rename to src/core/packages/test-helpers/test-utils/index.ts diff --git a/packages/core/test-helpers/core-test-helpers-test-utils/jest.config.js b/src/core/packages/test-helpers/test-utils/jest.config.js similarity index 83% rename from packages/core/test-helpers/core-test-helpers-test-utils/jest.config.js rename to src/core/packages/test-helpers/test-utils/jest.config.js index 49e5166902b20..e1c3f460a1163 100644 --- a/packages/core/test-helpers/core-test-helpers-test-utils/jest.config.js +++ b/src/core/packages/test-helpers/test-utils/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/test-helpers/core-test-helpers-test-utils'], + rootDir: '../../../../..', + roots: ['/src/core/packages/test-helpers/test-utils'], }; diff --git a/packages/core/test-helpers/core-test-helpers-test-utils/kibana.jsonc b/src/core/packages/test-helpers/test-utils/kibana.jsonc similarity index 100% rename from packages/core/test-helpers/core-test-helpers-test-utils/kibana.jsonc rename to src/core/packages/test-helpers/test-utils/kibana.jsonc diff --git a/packages/core/test-helpers/core-test-helpers-test-utils/package.json b/src/core/packages/test-helpers/test-utils/package.json similarity index 100% rename from packages/core/test-helpers/core-test-helpers-test-utils/package.json rename to src/core/packages/test-helpers/test-utils/package.json diff --git a/packages/core/test-helpers/core-test-helpers-test-utils/src/create_exportable_type.ts b/src/core/packages/test-helpers/test-utils/src/create_exportable_type.ts similarity index 100% rename from packages/core/test-helpers/core-test-helpers-test-utils/src/create_exportable_type.ts rename to src/core/packages/test-helpers/test-utils/src/create_exportable_type.ts diff --git a/packages/core/test-helpers/core-test-helpers-test-utils/src/create_hidden_type_variants.ts b/src/core/packages/test-helpers/test-utils/src/create_hidden_type_variants.ts similarity index 100% rename from packages/core/test-helpers/core-test-helpers-test-utils/src/create_hidden_type_variants.ts rename to src/core/packages/test-helpers/test-utils/src/create_hidden_type_variants.ts diff --git a/packages/core/test-helpers/core-test-helpers-test-utils/src/setup_server.ts b/src/core/packages/test-helpers/test-utils/src/setup_server.ts similarity index 100% rename from packages/core/test-helpers/core-test-helpers-test-utils/src/setup_server.ts rename to src/core/packages/test-helpers/test-utils/src/setup_server.ts diff --git a/packages/core/test-helpers/core-test-helpers-test-utils/tsconfig.json b/src/core/packages/test-helpers/test-utils/tsconfig.json similarity index 93% rename from packages/core/test-helpers/core-test-helpers-test-utils/tsconfig.json rename to src/core/packages/test-helpers/test-utils/tsconfig.json index 6f63745884070..2d75b4355a948 100644 --- a/packages/core/test-helpers/core-test-helpers-test-utils/tsconfig.json +++ b/src/core/packages/test-helpers/test-utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index ea9b9622c7fc2..fd27a8ff88dcd 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -628,8 +628,8 @@ "@kbn/core-test-helpers-model-versions/*": ["packages/core/test-helpers/core-test-helpers-model-versions/*"], "@kbn/core-test-helpers-so-type-serializer": ["src/core/packages/test-helpers/so-type-serializer"], "@kbn/core-test-helpers-so-type-serializer/*": ["src/core/packages/test-helpers/so-type-serializer/*"], - "@kbn/core-test-helpers-test-utils": ["packages/core/test-helpers/core-test-helpers-test-utils"], - "@kbn/core-test-helpers-test-utils/*": ["packages/core/test-helpers/core-test-helpers-test-utils/*"], + "@kbn/core-test-helpers-test-utils": ["src/core/packages/test-helpers/test-utils"], + "@kbn/core-test-helpers-test-utils/*": ["src/core/packages/test-helpers/test-utils/*"], "@kbn/core-theme-browser": ["packages/core/theme/core-theme-browser"], "@kbn/core-theme-browser/*": ["packages/core/theme/core-theme-browser/*"], "@kbn/core-theme-browser-internal": ["packages/core/theme/core-theme-browser-internal"], diff --git a/yarn.lock b/yarn.lock index 1ac193a8fa234..e69de47f4c3e3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5069,7 +5069,7 @@ version "0.0.0" uid "" -"@kbn/core-test-helpers-test-utils@link:packages/core/test-helpers/core-test-helpers-test-utils": +"@kbn/core-test-helpers-test-utils@link:src/core/packages/test-helpers/test-utils": version "0.0.0" uid "" From 07a61b8ee8385db0f2baf36d14cdfff80f984ca8 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:45:43 +0100 Subject: [PATCH 124/167] Relocating module `@kbn/core-theme-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/theme/browser}/README.md | 0 .../core/packages/theme/browser}/index.ts | 0 .../core/packages/theme/browser}/jest.config.js | 4 ++-- .../core/packages/theme/browser}/kibana.jsonc | 0 .../core/packages/theme/browser}/package.json | 0 .../core/packages/theme/browser}/src/types.ts | 0 .../core/packages/theme/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/theme/core-theme-browser => src/core/packages/theme/browser}/README.md (100%) rename {packages/core/theme/core-theme-browser => src/core/packages/theme/browser}/index.ts (100%) rename {packages/core/theme/core-theme-browser => src/core/packages/theme/browser}/jest.config.js (85%) rename {packages/core/theme/core-theme-browser => src/core/packages/theme/browser}/kibana.jsonc (100%) rename {packages/core/theme/core-theme-browser => src/core/packages/theme/browser}/package.json (100%) rename {packages/core/theme/core-theme-browser => src/core/packages/theme/browser}/src/types.ts (100%) rename {packages/core/theme/core-theme-browser => src/core/packages/theme/browser}/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dd2ee23022b82..5803ed810215f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -112,7 +112,6 @@ packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core packages/core/status/core-status-server-mocks @elastic/kibana-core packages/core/test-helpers/core-test-helpers-kbn-server @elastic/kibana-core packages/core/test-helpers/core-test-helpers-model-versions @elastic/kibana-core -packages/core/theme/core-theme-browser @elastic/kibana-core packages/core/theme/core-theme-browser-internal @elastic/kibana-core packages/core/theme/core-theme-browser-mocks @elastic/kibana-core packages/core/ui-settings/core-ui-settings-browser @elastic/appex-sharedux @@ -493,6 +492,7 @@ src/core/packages/test-helpers/deprecations-getters @elastic/kibana-core src/core/packages/test-helpers/http-setup-browser @elastic/kibana-core src/core/packages/test-helpers/so-type-serializer @elastic/kibana-core src/core/packages/test-helpers/test-utils @elastic/kibana-core +src/core/packages/theme/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index e695229516cc3..178c194ea069b 100644 --- a/package.json +++ b/package.json @@ -393,7 +393,7 @@ "@kbn/core-test-helpers-http-setup-browser": "link:src/core/packages/test-helpers/http-setup-browser", "@kbn/core-test-helpers-so-type-serializer": "link:src/core/packages/test-helpers/so-type-serializer", "@kbn/core-test-helpers-test-utils": "link:src/core/packages/test-helpers/test-utils", - "@kbn/core-theme-browser": "link:packages/core/theme/core-theme-browser", + "@kbn/core-theme-browser": "link:src/core/packages/theme/browser", "@kbn/core-theme-browser-internal": "link:packages/core/theme/core-theme-browser-internal", "@kbn/core-ui-settings-browser": "link:packages/core/ui-settings/core-ui-settings-browser", "@kbn/core-ui-settings-browser-internal": "link:packages/core/ui-settings/core-ui-settings-browser-internal", diff --git a/packages/core/theme/core-theme-browser/README.md b/src/core/packages/theme/browser/README.md similarity index 100% rename from packages/core/theme/core-theme-browser/README.md rename to src/core/packages/theme/browser/README.md diff --git a/packages/core/theme/core-theme-browser/index.ts b/src/core/packages/theme/browser/index.ts similarity index 100% rename from packages/core/theme/core-theme-browser/index.ts rename to src/core/packages/theme/browser/index.ts diff --git a/packages/core/theme/core-theme-browser/jest.config.js b/src/core/packages/theme/browser/jest.config.js similarity index 85% rename from packages/core/theme/core-theme-browser/jest.config.js rename to src/core/packages/theme/browser/jest.config.js index a0fda222808ab..b8d8fafa43b16 100644 --- a/packages/core/theme/core-theme-browser/jest.config.js +++ b/src/core/packages/theme/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/theme/core-theme-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/theme/browser'], }; diff --git a/packages/core/theme/core-theme-browser/kibana.jsonc b/src/core/packages/theme/browser/kibana.jsonc similarity index 100% rename from packages/core/theme/core-theme-browser/kibana.jsonc rename to src/core/packages/theme/browser/kibana.jsonc diff --git a/packages/core/theme/core-theme-browser/package.json b/src/core/packages/theme/browser/package.json similarity index 100% rename from packages/core/theme/core-theme-browser/package.json rename to src/core/packages/theme/browser/package.json diff --git a/packages/core/theme/core-theme-browser/src/types.ts b/src/core/packages/theme/browser/src/types.ts similarity index 100% rename from packages/core/theme/core-theme-browser/src/types.ts rename to src/core/packages/theme/browser/src/types.ts diff --git a/packages/core/theme/core-theme-browser/tsconfig.json b/src/core/packages/theme/browser/tsconfig.json similarity index 78% rename from packages/core/theme/core-theme-browser/tsconfig.json rename to src/core/packages/theme/browser/tsconfig.json index e7513f6481e89..131ff3e6bb433 100644 --- a/packages/core/theme/core-theme-browser/tsconfig.json +++ b/src/core/packages/theme/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index fd27a8ff88dcd..985dc14b80670 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -630,8 +630,8 @@ "@kbn/core-test-helpers-so-type-serializer/*": ["src/core/packages/test-helpers/so-type-serializer/*"], "@kbn/core-test-helpers-test-utils": ["src/core/packages/test-helpers/test-utils"], "@kbn/core-test-helpers-test-utils/*": ["src/core/packages/test-helpers/test-utils/*"], - "@kbn/core-theme-browser": ["packages/core/theme/core-theme-browser"], - "@kbn/core-theme-browser/*": ["packages/core/theme/core-theme-browser/*"], + "@kbn/core-theme-browser": ["src/core/packages/theme/browser"], + "@kbn/core-theme-browser/*": ["src/core/packages/theme/browser/*"], "@kbn/core-theme-browser-internal": ["packages/core/theme/core-theme-browser-internal"], "@kbn/core-theme-browser-internal/*": ["packages/core/theme/core-theme-browser-internal/*"], "@kbn/core-theme-browser-mocks": ["packages/core/theme/core-theme-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index e69de47f4c3e3..4ef9897464bb9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5081,7 +5081,7 @@ version "0.0.0" uid "" -"@kbn/core-theme-browser@link:packages/core/theme/core-theme-browser": +"@kbn/core-theme-browser@link:src/core/packages/theme/browser": version "0.0.0" uid "" From d7dd9c3923b620b861113b4c19290e6589784d4e Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:46:36 +0100 Subject: [PATCH 125/167] Relocating module `@kbn/core-theme-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/theme/browser-internal}/README.md | 0 .../core/packages/theme/browser-internal}/index.ts | 0 .../core/packages/theme/browser-internal}/jest.config.js | 4 ++-- .../core/packages/theme/browser-internal}/kibana.jsonc | 0 .../core/packages/theme/browser-internal}/package.json | 0 .../theme/browser-internal}/src/core_theme_provider.test.tsx | 0 .../theme/browser-internal}/src/core_theme_provider.tsx | 0 .../core/packages/theme/browser-internal}/src/system_theme.ts | 0 .../theme/browser-internal}/src/theme_service.test.mocks.ts | 0 .../theme/browser-internal}/src/theme_service.test.ts | 0 .../packages/theme/browser-internal}/src/theme_service.ts | 0 .../core/packages/theme/browser-internal}/src/utils.ts | 0 .../core/packages/theme/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 17 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/theme/core-theme-browser-internal => src/core/packages/theme/browser-internal}/README.md (100%) rename {packages/core/theme/core-theme-browser-internal => src/core/packages/theme/browser-internal}/index.ts (100%) rename {packages/core/theme/core-theme-browser-internal => src/core/packages/theme/browser-internal}/jest.config.js (83%) rename {packages/core/theme/core-theme-browser-internal => src/core/packages/theme/browser-internal}/kibana.jsonc (100%) rename {packages/core/theme/core-theme-browser-internal => src/core/packages/theme/browser-internal}/package.json (100%) rename {packages/core/theme/core-theme-browser-internal => src/core/packages/theme/browser-internal}/src/core_theme_provider.test.tsx (100%) rename {packages/core/theme/core-theme-browser-internal => src/core/packages/theme/browser-internal}/src/core_theme_provider.tsx (100%) rename {packages/core/theme/core-theme-browser-internal => src/core/packages/theme/browser-internal}/src/system_theme.ts (100%) rename {packages/core/theme/core-theme-browser-internal => src/core/packages/theme/browser-internal}/src/theme_service.test.mocks.ts (100%) rename {packages/core/theme/core-theme-browser-internal => src/core/packages/theme/browser-internal}/src/theme_service.test.ts (100%) rename {packages/core/theme/core-theme-browser-internal => src/core/packages/theme/browser-internal}/src/theme_service.ts (100%) rename {packages/core/theme/core-theme-browser-internal => src/core/packages/theme/browser-internal}/src/utils.ts (100%) rename {packages/core/theme/core-theme-browser-internal => src/core/packages/theme/browser-internal}/tsconfig.json (92%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5803ed810215f..76c21d28c8268 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -112,7 +112,6 @@ packages/core/saved-objects/core-saved-objects-server-mocks @elastic/kibana-core packages/core/status/core-status-server-mocks @elastic/kibana-core packages/core/test-helpers/core-test-helpers-kbn-server @elastic/kibana-core packages/core/test-helpers/core-test-helpers-model-versions @elastic/kibana-core -packages/core/theme/core-theme-browser-internal @elastic/kibana-core packages/core/theme/core-theme-browser-mocks @elastic/kibana-core packages/core/ui-settings/core-ui-settings-browser @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-browser-internal @elastic/appex-sharedux @@ -493,6 +492,7 @@ src/core/packages/test-helpers/http-setup-browser @elastic/kibana-core src/core/packages/test-helpers/so-type-serializer @elastic/kibana-core src/core/packages/test-helpers/test-utils @elastic/kibana-core src/core/packages/theme/browser @elastic/kibana-core +src/core/packages/theme/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 178c194ea069b..c231ac507e2bc 100644 --- a/package.json +++ b/package.json @@ -394,7 +394,7 @@ "@kbn/core-test-helpers-so-type-serializer": "link:src/core/packages/test-helpers/so-type-serializer", "@kbn/core-test-helpers-test-utils": "link:src/core/packages/test-helpers/test-utils", "@kbn/core-theme-browser": "link:src/core/packages/theme/browser", - "@kbn/core-theme-browser-internal": "link:packages/core/theme/core-theme-browser-internal", + "@kbn/core-theme-browser-internal": "link:src/core/packages/theme/browser-internal", "@kbn/core-ui-settings-browser": "link:packages/core/ui-settings/core-ui-settings-browser", "@kbn/core-ui-settings-browser-internal": "link:packages/core/ui-settings/core-ui-settings-browser-internal", "@kbn/core-ui-settings-common": "link:packages/core/ui-settings/core-ui-settings-common", diff --git a/packages/core/theme/core-theme-browser-internal/README.md b/src/core/packages/theme/browser-internal/README.md similarity index 100% rename from packages/core/theme/core-theme-browser-internal/README.md rename to src/core/packages/theme/browser-internal/README.md diff --git a/packages/core/theme/core-theme-browser-internal/index.ts b/src/core/packages/theme/browser-internal/index.ts similarity index 100% rename from packages/core/theme/core-theme-browser-internal/index.ts rename to src/core/packages/theme/browser-internal/index.ts diff --git a/packages/core/theme/core-theme-browser-internal/jest.config.js b/src/core/packages/theme/browser-internal/jest.config.js similarity index 83% rename from packages/core/theme/core-theme-browser-internal/jest.config.js rename to src/core/packages/theme/browser-internal/jest.config.js index 8715f3b531934..0fdeacefc9495 100644 --- a/packages/core/theme/core-theme-browser-internal/jest.config.js +++ b/src/core/packages/theme/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/theme/core-theme-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/theme/browser-internal'], }; diff --git a/packages/core/theme/core-theme-browser-internal/kibana.jsonc b/src/core/packages/theme/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/theme/core-theme-browser-internal/kibana.jsonc rename to src/core/packages/theme/browser-internal/kibana.jsonc diff --git a/packages/core/theme/core-theme-browser-internal/package.json b/src/core/packages/theme/browser-internal/package.json similarity index 100% rename from packages/core/theme/core-theme-browser-internal/package.json rename to src/core/packages/theme/browser-internal/package.json diff --git a/packages/core/theme/core-theme-browser-internal/src/core_theme_provider.test.tsx b/src/core/packages/theme/browser-internal/src/core_theme_provider.test.tsx similarity index 100% rename from packages/core/theme/core-theme-browser-internal/src/core_theme_provider.test.tsx rename to src/core/packages/theme/browser-internal/src/core_theme_provider.test.tsx diff --git a/packages/core/theme/core-theme-browser-internal/src/core_theme_provider.tsx b/src/core/packages/theme/browser-internal/src/core_theme_provider.tsx similarity index 100% rename from packages/core/theme/core-theme-browser-internal/src/core_theme_provider.tsx rename to src/core/packages/theme/browser-internal/src/core_theme_provider.tsx diff --git a/packages/core/theme/core-theme-browser-internal/src/system_theme.ts b/src/core/packages/theme/browser-internal/src/system_theme.ts similarity index 100% rename from packages/core/theme/core-theme-browser-internal/src/system_theme.ts rename to src/core/packages/theme/browser-internal/src/system_theme.ts diff --git a/packages/core/theme/core-theme-browser-internal/src/theme_service.test.mocks.ts b/src/core/packages/theme/browser-internal/src/theme_service.test.mocks.ts similarity index 100% rename from packages/core/theme/core-theme-browser-internal/src/theme_service.test.mocks.ts rename to src/core/packages/theme/browser-internal/src/theme_service.test.mocks.ts diff --git a/packages/core/theme/core-theme-browser-internal/src/theme_service.test.ts b/src/core/packages/theme/browser-internal/src/theme_service.test.ts similarity index 100% rename from packages/core/theme/core-theme-browser-internal/src/theme_service.test.ts rename to src/core/packages/theme/browser-internal/src/theme_service.test.ts diff --git a/packages/core/theme/core-theme-browser-internal/src/theme_service.ts b/src/core/packages/theme/browser-internal/src/theme_service.ts similarity index 100% rename from packages/core/theme/core-theme-browser-internal/src/theme_service.ts rename to src/core/packages/theme/browser-internal/src/theme_service.ts diff --git a/packages/core/theme/core-theme-browser-internal/src/utils.ts b/src/core/packages/theme/browser-internal/src/utils.ts similarity index 100% rename from packages/core/theme/core-theme-browser-internal/src/utils.ts rename to src/core/packages/theme/browser-internal/src/utils.ts diff --git a/packages/core/theme/core-theme-browser-internal/tsconfig.json b/src/core/packages/theme/browser-internal/tsconfig.json similarity index 92% rename from packages/core/theme/core-theme-browser-internal/tsconfig.json rename to src/core/packages/theme/browser-internal/tsconfig.json index 0289639ddbf83..7f3a17576fad8 100644 --- a/packages/core/theme/core-theme-browser-internal/tsconfig.json +++ b/src/core/packages/theme/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 985dc14b80670..43c6b16f5695b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -632,8 +632,8 @@ "@kbn/core-test-helpers-test-utils/*": ["src/core/packages/test-helpers/test-utils/*"], "@kbn/core-theme-browser": ["src/core/packages/theme/browser"], "@kbn/core-theme-browser/*": ["src/core/packages/theme/browser/*"], - "@kbn/core-theme-browser-internal": ["packages/core/theme/core-theme-browser-internal"], - "@kbn/core-theme-browser-internal/*": ["packages/core/theme/core-theme-browser-internal/*"], + "@kbn/core-theme-browser-internal": ["src/core/packages/theme/browser-internal"], + "@kbn/core-theme-browser-internal/*": ["src/core/packages/theme/browser-internal/*"], "@kbn/core-theme-browser-mocks": ["packages/core/theme/core-theme-browser-mocks"], "@kbn/core-theme-browser-mocks/*": ["packages/core/theme/core-theme-browser-mocks/*"], "@kbn/core-ui-settings-browser": ["packages/core/ui-settings/core-ui-settings-browser"], diff --git a/yarn.lock b/yarn.lock index 4ef9897464bb9..19ebc4cd63a5e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5073,7 +5073,7 @@ version "0.0.0" uid "" -"@kbn/core-theme-browser-internal@link:packages/core/theme/core-theme-browser-internal": +"@kbn/core-theme-browser-internal@link:src/core/packages/theme/browser-internal": version "0.0.0" uid "" From 5522234ade93fba9bdd771a7e9c4c81066fb44e0 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:47:29 +0100 Subject: [PATCH 126/167] Relocating module `@kbn/core-usage-data-base-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/usage-data/base-server-internal}/README.md | 0 .../core/packages/usage-data/base-server-internal}/index.ts | 0 .../packages/usage-data/base-server-internal}/jest.config.js | 4 ++-- .../packages/usage-data/base-server-internal}/kibana.jsonc | 0 .../packages/usage-data/base-server-internal}/package.json | 0 .../usage-data/base-server-internal}/src/constants.ts | 0 .../packages/usage-data/base-server-internal}/src/index.ts | 0 .../usage-data/base-server-internal}/src/internal_contract.ts | 0 .../base-server-internal}/src/usage_stats_client.ts | 0 .../packages/usage-data/base-server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/usage-data/core-usage-data-base-server-internal => src/core/packages/usage-data/base-server-internal}/README.md (100%) rename {packages/core/usage-data/core-usage-data-base-server-internal => src/core/packages/usage-data/base-server-internal}/index.ts (100%) rename {packages/core/usage-data/core-usage-data-base-server-internal => src/core/packages/usage-data/base-server-internal}/jest.config.js (82%) rename {packages/core/usage-data/core-usage-data-base-server-internal => src/core/packages/usage-data/base-server-internal}/kibana.jsonc (100%) rename {packages/core/usage-data/core-usage-data-base-server-internal => src/core/packages/usage-data/base-server-internal}/package.json (100%) rename {packages/core/usage-data/core-usage-data-base-server-internal => src/core/packages/usage-data/base-server-internal}/src/constants.ts (100%) rename {packages/core/usage-data/core-usage-data-base-server-internal => src/core/packages/usage-data/base-server-internal}/src/index.ts (100%) rename {packages/core/usage-data/core-usage-data-base-server-internal => src/core/packages/usage-data/base-server-internal}/src/internal_contract.ts (100%) rename {packages/core/usage-data/core-usage-data-base-server-internal => src/core/packages/usage-data/base-server-internal}/src/usage_stats_client.ts (100%) rename {packages/core/usage-data/core-usage-data-base-server-internal => src/core/packages/usage-data/base-server-internal}/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 76c21d28c8268..d4afedb451e3d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -120,7 +120,6 @@ packages/core/ui-settings/core-ui-settings-common @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-internal @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-mocks @elastic/appex-sharedux -packages/core/usage-data/core-usage-data-base-server-internal @elastic/kibana-core packages/core/usage-data/core-usage-data-server @elastic/kibana-core packages/core/usage-data/core-usage-data-server-internal @elastic/kibana-core packages/core/usage-data/core-usage-data-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/test-helpers/so-type-serializer @elastic/kibana-core src/core/packages/test-helpers/test-utils @elastic/kibana-core src/core/packages/theme/browser @elastic/kibana-core src/core/packages/theme/browser-internal @elastic/kibana-core +src/core/packages/usage-data/base-server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index c231ac507e2bc..cc70c11e0907a 100644 --- a/package.json +++ b/package.json @@ -400,7 +400,7 @@ "@kbn/core-ui-settings-common": "link:packages/core/ui-settings/core-ui-settings-common", "@kbn/core-ui-settings-server": "link:packages/core/ui-settings/core-ui-settings-server", "@kbn/core-ui-settings-server-internal": "link:packages/core/ui-settings/core-ui-settings-server-internal", - "@kbn/core-usage-data-base-server-internal": "link:packages/core/usage-data/core-usage-data-base-server-internal", + "@kbn/core-usage-data-base-server-internal": "link:src/core/packages/usage-data/base-server-internal", "@kbn/core-usage-data-server": "link:packages/core/usage-data/core-usage-data-server", "@kbn/core-usage-data-server-internal": "link:packages/core/usage-data/core-usage-data-server-internal", "@kbn/core-user-profile-browser": "link:packages/core/user-profile/core-user-profile-browser", diff --git a/packages/core/usage-data/core-usage-data-base-server-internal/README.md b/src/core/packages/usage-data/base-server-internal/README.md similarity index 100% rename from packages/core/usage-data/core-usage-data-base-server-internal/README.md rename to src/core/packages/usage-data/base-server-internal/README.md diff --git a/packages/core/usage-data/core-usage-data-base-server-internal/index.ts b/src/core/packages/usage-data/base-server-internal/index.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-base-server-internal/index.ts rename to src/core/packages/usage-data/base-server-internal/index.ts diff --git a/packages/core/usage-data/core-usage-data-base-server-internal/jest.config.js b/src/core/packages/usage-data/base-server-internal/jest.config.js similarity index 82% rename from packages/core/usage-data/core-usage-data-base-server-internal/jest.config.js rename to src/core/packages/usage-data/base-server-internal/jest.config.js index 3c324088c0a9b..2bad8ace3cb93 100644 --- a/packages/core/usage-data/core-usage-data-base-server-internal/jest.config.js +++ b/src/core/packages/usage-data/base-server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/usage-data/core-usage-data-base-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/usage-data/base-server-internal'], }; diff --git a/packages/core/usage-data/core-usage-data-base-server-internal/kibana.jsonc b/src/core/packages/usage-data/base-server-internal/kibana.jsonc similarity index 100% rename from packages/core/usage-data/core-usage-data-base-server-internal/kibana.jsonc rename to src/core/packages/usage-data/base-server-internal/kibana.jsonc diff --git a/packages/core/usage-data/core-usage-data-base-server-internal/package.json b/src/core/packages/usage-data/base-server-internal/package.json similarity index 100% rename from packages/core/usage-data/core-usage-data-base-server-internal/package.json rename to src/core/packages/usage-data/base-server-internal/package.json diff --git a/packages/core/usage-data/core-usage-data-base-server-internal/src/constants.ts b/src/core/packages/usage-data/base-server-internal/src/constants.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-base-server-internal/src/constants.ts rename to src/core/packages/usage-data/base-server-internal/src/constants.ts diff --git a/packages/core/usage-data/core-usage-data-base-server-internal/src/index.ts b/src/core/packages/usage-data/base-server-internal/src/index.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-base-server-internal/src/index.ts rename to src/core/packages/usage-data/base-server-internal/src/index.ts diff --git a/packages/core/usage-data/core-usage-data-base-server-internal/src/internal_contract.ts b/src/core/packages/usage-data/base-server-internal/src/internal_contract.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-base-server-internal/src/internal_contract.ts rename to src/core/packages/usage-data/base-server-internal/src/internal_contract.ts diff --git a/packages/core/usage-data/core-usage-data-base-server-internal/src/usage_stats_client.ts b/src/core/packages/usage-data/base-server-internal/src/usage_stats_client.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-base-server-internal/src/usage_stats_client.ts rename to src/core/packages/usage-data/base-server-internal/src/usage_stats_client.ts diff --git a/packages/core/usage-data/core-usage-data-base-server-internal/tsconfig.json b/src/core/packages/usage-data/base-server-internal/tsconfig.json similarity index 86% rename from packages/core/usage-data/core-usage-data-base-server-internal/tsconfig.json rename to src/core/packages/usage-data/base-server-internal/tsconfig.json index cfcefb9833f7f..1aa30aa898a9f 100644 --- a/packages/core/usage-data/core-usage-data-base-server-internal/tsconfig.json +++ b/src/core/packages/usage-data/base-server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 43c6b16f5695b..5c3056b018353 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -650,8 +650,8 @@ "@kbn/core-ui-settings-server-internal/*": ["packages/core/ui-settings/core-ui-settings-server-internal/*"], "@kbn/core-ui-settings-server-mocks": ["packages/core/ui-settings/core-ui-settings-server-mocks"], "@kbn/core-ui-settings-server-mocks/*": ["packages/core/ui-settings/core-ui-settings-server-mocks/*"], - "@kbn/core-usage-data-base-server-internal": ["packages/core/usage-data/core-usage-data-base-server-internal"], - "@kbn/core-usage-data-base-server-internal/*": ["packages/core/usage-data/core-usage-data-base-server-internal/*"], + "@kbn/core-usage-data-base-server-internal": ["src/core/packages/usage-data/base-server-internal"], + "@kbn/core-usage-data-base-server-internal/*": ["src/core/packages/usage-data/base-server-internal/*"], "@kbn/core-usage-data-server": ["packages/core/usage-data/core-usage-data-server"], "@kbn/core-usage-data-server/*": ["packages/core/usage-data/core-usage-data-server/*"], "@kbn/core-usage-data-server-internal": ["packages/core/usage-data/core-usage-data-server-internal"], diff --git a/yarn.lock b/yarn.lock index 19ebc4cd63a5e..8db2f1a80f28a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5113,7 +5113,7 @@ version "0.0.0" uid "" -"@kbn/core-usage-data-base-server-internal@link:packages/core/usage-data/core-usage-data-base-server-internal": +"@kbn/core-usage-data-base-server-internal@link:src/core/packages/usage-data/base-server-internal": version "0.0.0" uid "" From 252882aef8359664b441e6e259c7f5225ac0100a Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:48:22 +0100 Subject: [PATCH 127/167] Relocating module `@kbn/core-usage-data-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/usage-data/server}/README.md | 0 .../core/packages/usage-data/server}/index.ts | 0 .../core/packages/usage-data/server}/jest.config.js | 4 ++-- .../core/packages/usage-data/server}/kibana.jsonc | 0 .../core/packages/usage-data/server}/package.json | 0 .../core/packages/usage-data/server}/src/core_usage_data.ts | 0 .../core/packages/usage-data/server}/src/core_usage_stats.ts | 0 .../core/packages/usage-data/server}/src/index.ts | 0 .../core/packages/usage-data/server}/src/setup_contract.ts | 0 .../core/packages/usage-data/server}/src/start_contract.ts | 0 .../core/packages/usage-data/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 15 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/usage-data/core-usage-data-server => src/core/packages/usage-data/server}/README.md (100%) rename {packages/core/usage-data/core-usage-data-server => src/core/packages/usage-data/server}/index.ts (100%) rename {packages/core/usage-data/core-usage-data-server => src/core/packages/usage-data/server}/jest.config.js (84%) rename {packages/core/usage-data/core-usage-data-server => src/core/packages/usage-data/server}/kibana.jsonc (100%) rename {packages/core/usage-data/core-usage-data-server => src/core/packages/usage-data/server}/package.json (100%) rename {packages/core/usage-data/core-usage-data-server => src/core/packages/usage-data/server}/src/core_usage_data.ts (100%) rename {packages/core/usage-data/core-usage-data-server => src/core/packages/usage-data/server}/src/core_usage_stats.ts (100%) rename {packages/core/usage-data/core-usage-data-server => src/core/packages/usage-data/server}/src/index.ts (100%) rename {packages/core/usage-data/core-usage-data-server => src/core/packages/usage-data/server}/src/setup_contract.ts (100%) rename {packages/core/usage-data/core-usage-data-server => src/core/packages/usage-data/server}/src/start_contract.ts (100%) rename {packages/core/usage-data/core-usage-data-server => src/core/packages/usage-data/server}/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d4afedb451e3d..186320e3fee60 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -120,7 +120,6 @@ packages/core/ui-settings/core-ui-settings-common @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-internal @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-mocks @elastic/appex-sharedux -packages/core/usage-data/core-usage-data-server @elastic/kibana-core packages/core/usage-data/core-usage-data-server-internal @elastic/kibana-core packages/core/usage-data/core-usage-data-server-mocks @elastic/kibana-core packages/core/user-profile/core-user-profile-browser @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/test-helpers/test-utils @elastic/kibana-core src/core/packages/theme/browser @elastic/kibana-core src/core/packages/theme/browser-internal @elastic/kibana-core src/core/packages/usage-data/base-server-internal @elastic/kibana-core +src/core/packages/usage-data/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index cc70c11e0907a..46fa1039f3ff4 100644 --- a/package.json +++ b/package.json @@ -401,7 +401,7 @@ "@kbn/core-ui-settings-server": "link:packages/core/ui-settings/core-ui-settings-server", "@kbn/core-ui-settings-server-internal": "link:packages/core/ui-settings/core-ui-settings-server-internal", "@kbn/core-usage-data-base-server-internal": "link:src/core/packages/usage-data/base-server-internal", - "@kbn/core-usage-data-server": "link:packages/core/usage-data/core-usage-data-server", + "@kbn/core-usage-data-server": "link:src/core/packages/usage-data/server", "@kbn/core-usage-data-server-internal": "link:packages/core/usage-data/core-usage-data-server-internal", "@kbn/core-user-profile-browser": "link:packages/core/user-profile/core-user-profile-browser", "@kbn/core-user-profile-browser-internal": "link:packages/core/user-profile/core-user-profile-browser-internal", diff --git a/packages/core/usage-data/core-usage-data-server/README.md b/src/core/packages/usage-data/server/README.md similarity index 100% rename from packages/core/usage-data/core-usage-data-server/README.md rename to src/core/packages/usage-data/server/README.md diff --git a/packages/core/usage-data/core-usage-data-server/index.ts b/src/core/packages/usage-data/server/index.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server/index.ts rename to src/core/packages/usage-data/server/index.ts diff --git a/packages/core/usage-data/core-usage-data-server/jest.config.js b/src/core/packages/usage-data/server/jest.config.js similarity index 84% rename from packages/core/usage-data/core-usage-data-server/jest.config.js rename to src/core/packages/usage-data/server/jest.config.js index 3dc7170da5e9b..30c3499892e64 100644 --- a/packages/core/usage-data/core-usage-data-server/jest.config.js +++ b/src/core/packages/usage-data/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/usage-data/core-usage-data-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/usage-data/server'], }; diff --git a/packages/core/usage-data/core-usage-data-server/kibana.jsonc b/src/core/packages/usage-data/server/kibana.jsonc similarity index 100% rename from packages/core/usage-data/core-usage-data-server/kibana.jsonc rename to src/core/packages/usage-data/server/kibana.jsonc diff --git a/packages/core/usage-data/core-usage-data-server/package.json b/src/core/packages/usage-data/server/package.json similarity index 100% rename from packages/core/usage-data/core-usage-data-server/package.json rename to src/core/packages/usage-data/server/package.json diff --git a/packages/core/usage-data/core-usage-data-server/src/core_usage_data.ts b/src/core/packages/usage-data/server/src/core_usage_data.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server/src/core_usage_data.ts rename to src/core/packages/usage-data/server/src/core_usage_data.ts diff --git a/packages/core/usage-data/core-usage-data-server/src/core_usage_stats.ts b/src/core/packages/usage-data/server/src/core_usage_stats.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server/src/core_usage_stats.ts rename to src/core/packages/usage-data/server/src/core_usage_stats.ts diff --git a/packages/core/usage-data/core-usage-data-server/src/index.ts b/src/core/packages/usage-data/server/src/index.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server/src/index.ts rename to src/core/packages/usage-data/server/src/index.ts diff --git a/packages/core/usage-data/core-usage-data-server/src/setup_contract.ts b/src/core/packages/usage-data/server/src/setup_contract.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server/src/setup_contract.ts rename to src/core/packages/usage-data/server/src/setup_contract.ts diff --git a/packages/core/usage-data/core-usage-data-server/src/start_contract.ts b/src/core/packages/usage-data/server/src/start_contract.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server/src/start_contract.ts rename to src/core/packages/usage-data/server/src/start_contract.ts diff --git a/packages/core/usage-data/core-usage-data-server/tsconfig.json b/src/core/packages/usage-data/server/tsconfig.json similarity index 83% rename from packages/core/usage-data/core-usage-data-server/tsconfig.json rename to src/core/packages/usage-data/server/tsconfig.json index 83abb04d150ac..2896a58de9e33 100644 --- a/packages/core/usage-data/core-usage-data-server/tsconfig.json +++ b/src/core/packages/usage-data/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 5c3056b018353..28749a216d723 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -652,8 +652,8 @@ "@kbn/core-ui-settings-server-mocks/*": ["packages/core/ui-settings/core-ui-settings-server-mocks/*"], "@kbn/core-usage-data-base-server-internal": ["src/core/packages/usage-data/base-server-internal"], "@kbn/core-usage-data-base-server-internal/*": ["src/core/packages/usage-data/base-server-internal/*"], - "@kbn/core-usage-data-server": ["packages/core/usage-data/core-usage-data-server"], - "@kbn/core-usage-data-server/*": ["packages/core/usage-data/core-usage-data-server/*"], + "@kbn/core-usage-data-server": ["src/core/packages/usage-data/server"], + "@kbn/core-usage-data-server/*": ["src/core/packages/usage-data/server/*"], "@kbn/core-usage-data-server-internal": ["packages/core/usage-data/core-usage-data-server-internal"], "@kbn/core-usage-data-server-internal/*": ["packages/core/usage-data/core-usage-data-server-internal/*"], "@kbn/core-usage-data-server-mocks": ["packages/core/usage-data/core-usage-data-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 8db2f1a80f28a..afc73b8deb5c0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5125,7 +5125,7 @@ version "0.0.0" uid "" -"@kbn/core-usage-data-server@link:packages/core/usage-data/core-usage-data-server": +"@kbn/core-usage-data-server@link:src/core/packages/usage-data/server": version "0.0.0" uid "" From 9d256bcceb6237eb1eab6732a6a6b2f8d31df40b Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:49:15 +0100 Subject: [PATCH 128/167] Relocating module `@kbn/core-usage-data-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/usage-data/server-internal}/README.md | 0 .../core/packages/usage-data/server-internal}/index.ts | 0 .../core/packages/usage-data/server-internal}/jest.config.js | 4 ++-- .../core/packages/usage-data/server-internal}/kibana.jsonc | 0 .../core/packages/usage-data/server-internal}/package.json | 0 .../server-internal}/src/core_usage_data_service.test.ts | 0 .../server-internal}/src/core_usage_data_service.ts | 0 .../server-internal}/src/core_usage_stats_client.test.ts | 0 .../server-internal}/src/core_usage_stats_client.ts | 0 .../core/packages/usage-data/server-internal}/src/index.ts | 0 .../usage-data/server-internal}/src/is_configured.test.ts | 0 .../packages/usage-data/server-internal}/src/is_configured.ts | 0 .../server-internal}/src/saved_objects/core_usage_stats.ts | 0 .../usage-data/server-internal}/src/saved_objects/index.ts | 0 .../server-internal}/src/saved_objects/migrations.test.ts | 0 .../server-internal}/src/saved_objects/migrations.ts | 0 .../core/packages/usage-data/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 21 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/README.md (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/index.ts (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/jest.config.js (83%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/kibana.jsonc (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/package.json (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/src/core_usage_data_service.test.ts (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/src/core_usage_data_service.ts (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/src/core_usage_stats_client.test.ts (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/src/core_usage_stats_client.ts (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/src/index.ts (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/src/is_configured.test.ts (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/src/is_configured.ts (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/src/saved_objects/core_usage_stats.ts (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/src/saved_objects/index.ts (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/src/saved_objects/migrations.test.ts (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/src/saved_objects/migrations.ts (100%) rename {packages/core/usage-data/core-usage-data-server-internal => src/core/packages/usage-data/server-internal}/tsconfig.json (95%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 186320e3fee60..9f055c1be749e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -120,7 +120,6 @@ packages/core/ui-settings/core-ui-settings-common @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-internal @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-mocks @elastic/appex-sharedux -packages/core/usage-data/core-usage-data-server-internal @elastic/kibana-core packages/core/usage-data/core-usage-data-server-mocks @elastic/kibana-core packages/core/user-profile/core-user-profile-browser @elastic/kibana-core packages/core/user-profile/core-user-profile-browser-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/theme/browser @elastic/kibana-core src/core/packages/theme/browser-internal @elastic/kibana-core src/core/packages/usage-data/base-server-internal @elastic/kibana-core src/core/packages/usage-data/server @elastic/kibana-core +src/core/packages/usage-data/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 46fa1039f3ff4..f700f451a93de 100644 --- a/package.json +++ b/package.json @@ -402,7 +402,7 @@ "@kbn/core-ui-settings-server-internal": "link:packages/core/ui-settings/core-ui-settings-server-internal", "@kbn/core-usage-data-base-server-internal": "link:src/core/packages/usage-data/base-server-internal", "@kbn/core-usage-data-server": "link:src/core/packages/usage-data/server", - "@kbn/core-usage-data-server-internal": "link:packages/core/usage-data/core-usage-data-server-internal", + "@kbn/core-usage-data-server-internal": "link:src/core/packages/usage-data/server-internal", "@kbn/core-user-profile-browser": "link:packages/core/user-profile/core-user-profile-browser", "@kbn/core-user-profile-browser-internal": "link:packages/core/user-profile/core-user-profile-browser-internal", "@kbn/core-user-profile-browser-mocks": "link:packages/core/user-profile/core-user-profile-browser-mocks", diff --git a/packages/core/usage-data/core-usage-data-server-internal/README.md b/src/core/packages/usage-data/server-internal/README.md similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/README.md rename to src/core/packages/usage-data/server-internal/README.md diff --git a/packages/core/usage-data/core-usage-data-server-internal/index.ts b/src/core/packages/usage-data/server-internal/index.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/index.ts rename to src/core/packages/usage-data/server-internal/index.ts diff --git a/packages/core/usage-data/core-usage-data-server-internal/jest.config.js b/src/core/packages/usage-data/server-internal/jest.config.js similarity index 83% rename from packages/core/usage-data/core-usage-data-server-internal/jest.config.js rename to src/core/packages/usage-data/server-internal/jest.config.js index 4cf5231c9be3d..88f6f492bf766 100644 --- a/packages/core/usage-data/core-usage-data-server-internal/jest.config.js +++ b/src/core/packages/usage-data/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/usage-data/core-usage-data-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/usage-data/server-internal'], }; diff --git a/packages/core/usage-data/core-usage-data-server-internal/kibana.jsonc b/src/core/packages/usage-data/server-internal/kibana.jsonc similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/kibana.jsonc rename to src/core/packages/usage-data/server-internal/kibana.jsonc diff --git a/packages/core/usage-data/core-usage-data-server-internal/package.json b/src/core/packages/usage-data/server-internal/package.json similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/package.json rename to src/core/packages/usage-data/server-internal/package.json diff --git a/packages/core/usage-data/core-usage-data-server-internal/src/core_usage_data_service.test.ts b/src/core/packages/usage-data/server-internal/src/core_usage_data_service.test.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/src/core_usage_data_service.test.ts rename to src/core/packages/usage-data/server-internal/src/core_usage_data_service.test.ts diff --git a/packages/core/usage-data/core-usage-data-server-internal/src/core_usage_data_service.ts b/src/core/packages/usage-data/server-internal/src/core_usage_data_service.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/src/core_usage_data_service.ts rename to src/core/packages/usage-data/server-internal/src/core_usage_data_service.ts diff --git a/packages/core/usage-data/core-usage-data-server-internal/src/core_usage_stats_client.test.ts b/src/core/packages/usage-data/server-internal/src/core_usage_stats_client.test.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/src/core_usage_stats_client.test.ts rename to src/core/packages/usage-data/server-internal/src/core_usage_stats_client.test.ts diff --git a/packages/core/usage-data/core-usage-data-server-internal/src/core_usage_stats_client.ts b/src/core/packages/usage-data/server-internal/src/core_usage_stats_client.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/src/core_usage_stats_client.ts rename to src/core/packages/usage-data/server-internal/src/core_usage_stats_client.ts diff --git a/packages/core/usage-data/core-usage-data-server-internal/src/index.ts b/src/core/packages/usage-data/server-internal/src/index.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/src/index.ts rename to src/core/packages/usage-data/server-internal/src/index.ts diff --git a/packages/core/usage-data/core-usage-data-server-internal/src/is_configured.test.ts b/src/core/packages/usage-data/server-internal/src/is_configured.test.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/src/is_configured.test.ts rename to src/core/packages/usage-data/server-internal/src/is_configured.test.ts diff --git a/packages/core/usage-data/core-usage-data-server-internal/src/is_configured.ts b/src/core/packages/usage-data/server-internal/src/is_configured.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/src/is_configured.ts rename to src/core/packages/usage-data/server-internal/src/is_configured.ts diff --git a/packages/core/usage-data/core-usage-data-server-internal/src/saved_objects/core_usage_stats.ts b/src/core/packages/usage-data/server-internal/src/saved_objects/core_usage_stats.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/src/saved_objects/core_usage_stats.ts rename to src/core/packages/usage-data/server-internal/src/saved_objects/core_usage_stats.ts diff --git a/packages/core/usage-data/core-usage-data-server-internal/src/saved_objects/index.ts b/src/core/packages/usage-data/server-internal/src/saved_objects/index.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/src/saved_objects/index.ts rename to src/core/packages/usage-data/server-internal/src/saved_objects/index.ts diff --git a/packages/core/usage-data/core-usage-data-server-internal/src/saved_objects/migrations.test.ts b/src/core/packages/usage-data/server-internal/src/saved_objects/migrations.test.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/src/saved_objects/migrations.test.ts rename to src/core/packages/usage-data/server-internal/src/saved_objects/migrations.test.ts diff --git a/packages/core/usage-data/core-usage-data-server-internal/src/saved_objects/migrations.ts b/src/core/packages/usage-data/server-internal/src/saved_objects/migrations.ts similarity index 100% rename from packages/core/usage-data/core-usage-data-server-internal/src/saved_objects/migrations.ts rename to src/core/packages/usage-data/server-internal/src/saved_objects/migrations.ts diff --git a/packages/core/usage-data/core-usage-data-server-internal/tsconfig.json b/src/core/packages/usage-data/server-internal/tsconfig.json similarity index 95% rename from packages/core/usage-data/core-usage-data-server-internal/tsconfig.json rename to src/core/packages/usage-data/server-internal/tsconfig.json index 51b42f8df7736..0ce80ab998d66 100644 --- a/packages/core/usage-data/core-usage-data-server-internal/tsconfig.json +++ b/src/core/packages/usage-data/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 28749a216d723..cb3ea9d20386b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -654,8 +654,8 @@ "@kbn/core-usage-data-base-server-internal/*": ["src/core/packages/usage-data/base-server-internal/*"], "@kbn/core-usage-data-server": ["src/core/packages/usage-data/server"], "@kbn/core-usage-data-server/*": ["src/core/packages/usage-data/server/*"], - "@kbn/core-usage-data-server-internal": ["packages/core/usage-data/core-usage-data-server-internal"], - "@kbn/core-usage-data-server-internal/*": ["packages/core/usage-data/core-usage-data-server-internal/*"], + "@kbn/core-usage-data-server-internal": ["src/core/packages/usage-data/server-internal"], + "@kbn/core-usage-data-server-internal/*": ["src/core/packages/usage-data/server-internal/*"], "@kbn/core-usage-data-server-mocks": ["packages/core/usage-data/core-usage-data-server-mocks"], "@kbn/core-usage-data-server-mocks/*": ["packages/core/usage-data/core-usage-data-server-mocks/*"], "@kbn/core-user-profile-browser": ["packages/core/user-profile/core-user-profile-browser"], diff --git a/yarn.lock b/yarn.lock index afc73b8deb5c0..85b76b345ed4d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5117,7 +5117,7 @@ version "0.0.0" uid "" -"@kbn/core-usage-data-server-internal@link:packages/core/usage-data/core-usage-data-server-internal": +"@kbn/core-usage-data-server-internal@link:src/core/packages/usage-data/server-internal": version "0.0.0" uid "" From ce9ea9dd73113b57e06d8af23f003d806fdbb1d6 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:50:09 +0100 Subject: [PATCH 129/167] Relocating module `@kbn/core-user-profile-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/user-profile/browser}/README.md | 0 .../core/packages/user-profile/browser}/index.ts | 0 .../core/packages/user-profile/browser}/jest.config.js | 4 ++-- .../core/packages/user-profile/browser}/kibana.jsonc | 0 .../core/packages/user-profile/browser}/package.json | 0 .../core/packages/user-profile/browser}/src/api_provider.ts | 0 .../core/packages/user-profile/browser}/src/contracts.ts | 0 .../core/packages/user-profile/browser}/src/service.ts | 0 .../core/packages/user-profile/browser}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/user-profile/core-user-profile-browser => src/core/packages/user-profile/browser}/README.md (100%) rename {packages/core/user-profile/core-user-profile-browser => src/core/packages/user-profile/browser}/index.ts (100%) rename {packages/core/user-profile/core-user-profile-browser => src/core/packages/user-profile/browser}/jest.config.js (83%) rename {packages/core/user-profile/core-user-profile-browser => src/core/packages/user-profile/browser}/kibana.jsonc (100%) rename {packages/core/user-profile/core-user-profile-browser => src/core/packages/user-profile/browser}/package.json (100%) rename {packages/core/user-profile/core-user-profile-browser => src/core/packages/user-profile/browser}/src/api_provider.ts (100%) rename {packages/core/user-profile/core-user-profile-browser => src/core/packages/user-profile/browser}/src/contracts.ts (100%) rename {packages/core/user-profile/core-user-profile-browser => src/core/packages/user-profile/browser}/src/service.ts (100%) rename {packages/core/user-profile/core-user-profile-browser => src/core/packages/user-profile/browser}/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 9f055c1be749e..f4ec57b29b9c8 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -121,7 +121,6 @@ packages/core/ui-settings/core-ui-settings-server @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-internal @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-mocks @elastic/appex-sharedux packages/core/usage-data/core-usage-data-server-mocks @elastic/kibana-core -packages/core/user-profile/core-user-profile-browser @elastic/kibana-core packages/core/user-profile/core-user-profile-browser-internal @elastic/kibana-core packages/core/user-profile/core-user-profile-browser-mocks @elastic/kibana-core packages/core/user-profile/core-user-profile-common @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/theme/browser-internal @elastic/kibana-core src/core/packages/usage-data/base-server-internal @elastic/kibana-core src/core/packages/usage-data/server @elastic/kibana-core src/core/packages/usage-data/server-internal @elastic/kibana-core +src/core/packages/user-profile/browser @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index f700f451a93de..05f317e29da75 100644 --- a/package.json +++ b/package.json @@ -403,7 +403,7 @@ "@kbn/core-usage-data-base-server-internal": "link:src/core/packages/usage-data/base-server-internal", "@kbn/core-usage-data-server": "link:src/core/packages/usage-data/server", "@kbn/core-usage-data-server-internal": "link:src/core/packages/usage-data/server-internal", - "@kbn/core-user-profile-browser": "link:packages/core/user-profile/core-user-profile-browser", + "@kbn/core-user-profile-browser": "link:src/core/packages/user-profile/browser", "@kbn/core-user-profile-browser-internal": "link:packages/core/user-profile/core-user-profile-browser-internal", "@kbn/core-user-profile-browser-mocks": "link:packages/core/user-profile/core-user-profile-browser-mocks", "@kbn/core-user-profile-common": "link:packages/core/user-profile/core-user-profile-common", diff --git a/packages/core/user-profile/core-user-profile-browser/README.md b/src/core/packages/user-profile/browser/README.md similarity index 100% rename from packages/core/user-profile/core-user-profile-browser/README.md rename to src/core/packages/user-profile/browser/README.md diff --git a/packages/core/user-profile/core-user-profile-browser/index.ts b/src/core/packages/user-profile/browser/index.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser/index.ts rename to src/core/packages/user-profile/browser/index.ts diff --git a/packages/core/user-profile/core-user-profile-browser/jest.config.js b/src/core/packages/user-profile/browser/jest.config.js similarity index 83% rename from packages/core/user-profile/core-user-profile-browser/jest.config.js rename to src/core/packages/user-profile/browser/jest.config.js index 4f6fadca97fd7..10850230d6612 100644 --- a/packages/core/user-profile/core-user-profile-browser/jest.config.js +++ b/src/core/packages/user-profile/browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/user-profile/core-user-profile-browser'], + rootDir: '../../../../..', + roots: ['/src/core/packages/user-profile/browser'], }; diff --git a/packages/core/user-profile/core-user-profile-browser/kibana.jsonc b/src/core/packages/user-profile/browser/kibana.jsonc similarity index 100% rename from packages/core/user-profile/core-user-profile-browser/kibana.jsonc rename to src/core/packages/user-profile/browser/kibana.jsonc diff --git a/packages/core/user-profile/core-user-profile-browser/package.json b/src/core/packages/user-profile/browser/package.json similarity index 100% rename from packages/core/user-profile/core-user-profile-browser/package.json rename to src/core/packages/user-profile/browser/package.json diff --git a/packages/core/user-profile/core-user-profile-browser/src/api_provider.ts b/src/core/packages/user-profile/browser/src/api_provider.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser/src/api_provider.ts rename to src/core/packages/user-profile/browser/src/api_provider.ts diff --git a/packages/core/user-profile/core-user-profile-browser/src/contracts.ts b/src/core/packages/user-profile/browser/src/contracts.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser/src/contracts.ts rename to src/core/packages/user-profile/browser/src/contracts.ts diff --git a/packages/core/user-profile/core-user-profile-browser/src/service.ts b/src/core/packages/user-profile/browser/src/service.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser/src/service.ts rename to src/core/packages/user-profile/browser/src/service.ts diff --git a/packages/core/user-profile/core-user-profile-browser/tsconfig.json b/src/core/packages/user-profile/browser/tsconfig.json similarity index 86% rename from packages/core/user-profile/core-user-profile-browser/tsconfig.json rename to src/core/packages/user-profile/browser/tsconfig.json index 47b7d8c2017fe..3c757098455e4 100644 --- a/packages/core/user-profile/core-user-profile-browser/tsconfig.json +++ b/src/core/packages/user-profile/browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index cb3ea9d20386b..11e68d7a79a07 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -658,8 +658,8 @@ "@kbn/core-usage-data-server-internal/*": ["src/core/packages/usage-data/server-internal/*"], "@kbn/core-usage-data-server-mocks": ["packages/core/usage-data/core-usage-data-server-mocks"], "@kbn/core-usage-data-server-mocks/*": ["packages/core/usage-data/core-usage-data-server-mocks/*"], - "@kbn/core-user-profile-browser": ["packages/core/user-profile/core-user-profile-browser"], - "@kbn/core-user-profile-browser/*": ["packages/core/user-profile/core-user-profile-browser/*"], + "@kbn/core-user-profile-browser": ["src/core/packages/user-profile/browser"], + "@kbn/core-user-profile-browser/*": ["src/core/packages/user-profile/browser/*"], "@kbn/core-user-profile-browser-internal": ["packages/core/user-profile/core-user-profile-browser-internal"], "@kbn/core-user-profile-browser-internal/*": ["packages/core/user-profile/core-user-profile-browser-internal/*"], "@kbn/core-user-profile-browser-mocks": ["packages/core/user-profile/core-user-profile-browser-mocks"], diff --git a/yarn.lock b/yarn.lock index 85b76b345ed4d..15c1c8fc523a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5137,7 +5137,7 @@ version "0.0.0" uid "" -"@kbn/core-user-profile-browser@link:packages/core/user-profile/core-user-profile-browser": +"@kbn/core-user-profile-browser@link:src/core/packages/user-profile/browser": version "0.0.0" uid "" From 9f34e1cbf2d9436fe9a3a0b80ea6214bdb8a1e79 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:51:02 +0100 Subject: [PATCH 130/167] Relocating module `@kbn/core-user-profile-browser-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/user-profile/browser-internal}/README.md | 0 .../core/packages/user-profile/browser-internal}/index.ts | 0 .../packages/user-profile/browser-internal}/jest.config.js | 4 ++-- .../core/packages/user-profile/browser-internal}/kibana.jsonc | 0 .../core/packages/user-profile/browser-internal}/package.json | 0 .../user-profile/browser-internal}/src/internal_contracts.ts | 0 .../browser-internal}/src/user_profile_service.test.mocks.ts | 0 .../browser-internal}/src/user_profile_service.test.ts | 0 .../browser-internal}/src/user_profile_service.ts | 0 .../browser-internal}/src/utils/convert_api.test.ts | 0 .../user-profile/browser-internal}/src/utils/convert_api.ts | 0 .../src/utils/default_implementation.test.ts | 0 .../browser-internal}/src/utils/default_implementation.ts | 0 .../user-profile/browser-internal}/src/utils/index.ts | 0 .../packages/user-profile/browser-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 19 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/README.md (100%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/index.ts (100%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/jest.config.js (82%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/kibana.jsonc (100%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/package.json (100%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/src/internal_contracts.ts (100%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/src/user_profile_service.test.mocks.ts (100%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/src/user_profile_service.test.ts (100%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/src/user_profile_service.ts (100%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/src/utils/convert_api.test.ts (100%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/src/utils/convert_api.ts (100%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/src/utils/default_implementation.test.ts (100%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/src/utils/default_implementation.ts (100%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/src/utils/index.ts (100%) rename {packages/core/user-profile/core-user-profile-browser-internal => src/core/packages/user-profile/browser-internal}/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f4ec57b29b9c8..269098bd01aa0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -121,7 +121,6 @@ packages/core/ui-settings/core-ui-settings-server @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-internal @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-mocks @elastic/appex-sharedux packages/core/usage-data/core-usage-data-server-mocks @elastic/kibana-core -packages/core/user-profile/core-user-profile-browser-internal @elastic/kibana-core packages/core/user-profile/core-user-profile-browser-mocks @elastic/kibana-core packages/core/user-profile/core-user-profile-common @elastic/kibana-core packages/core/user-profile/core-user-profile-server @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/usage-data/base-server-internal @elastic/kibana-core src/core/packages/usage-data/server @elastic/kibana-core src/core/packages/usage-data/server-internal @elastic/kibana-core src/core/packages/user-profile/browser @elastic/kibana-core +src/core/packages/user-profile/browser-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 05f317e29da75..6377c655bc35b 100644 --- a/package.json +++ b/package.json @@ -404,7 +404,7 @@ "@kbn/core-usage-data-server": "link:src/core/packages/usage-data/server", "@kbn/core-usage-data-server-internal": "link:src/core/packages/usage-data/server-internal", "@kbn/core-user-profile-browser": "link:src/core/packages/user-profile/browser", - "@kbn/core-user-profile-browser-internal": "link:packages/core/user-profile/core-user-profile-browser-internal", + "@kbn/core-user-profile-browser-internal": "link:src/core/packages/user-profile/browser-internal", "@kbn/core-user-profile-browser-mocks": "link:packages/core/user-profile/core-user-profile-browser-mocks", "@kbn/core-user-profile-common": "link:packages/core/user-profile/core-user-profile-common", "@kbn/core-user-profile-server": "link:packages/core/user-profile/core-user-profile-server", diff --git a/packages/core/user-profile/core-user-profile-browser-internal/README.md b/src/core/packages/user-profile/browser-internal/README.md similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-internal/README.md rename to src/core/packages/user-profile/browser-internal/README.md diff --git a/packages/core/user-profile/core-user-profile-browser-internal/index.ts b/src/core/packages/user-profile/browser-internal/index.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-internal/index.ts rename to src/core/packages/user-profile/browser-internal/index.ts diff --git a/packages/core/user-profile/core-user-profile-browser-internal/jest.config.js b/src/core/packages/user-profile/browser-internal/jest.config.js similarity index 82% rename from packages/core/user-profile/core-user-profile-browser-internal/jest.config.js rename to src/core/packages/user-profile/browser-internal/jest.config.js index f646f62e75335..114e8aa2533dd 100644 --- a/packages/core/user-profile/core-user-profile-browser-internal/jest.config.js +++ b/src/core/packages/user-profile/browser-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/user-profile/core-user-profile-browser-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/user-profile/browser-internal'], }; diff --git a/packages/core/user-profile/core-user-profile-browser-internal/kibana.jsonc b/src/core/packages/user-profile/browser-internal/kibana.jsonc similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-internal/kibana.jsonc rename to src/core/packages/user-profile/browser-internal/kibana.jsonc diff --git a/packages/core/user-profile/core-user-profile-browser-internal/package.json b/src/core/packages/user-profile/browser-internal/package.json similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-internal/package.json rename to src/core/packages/user-profile/browser-internal/package.json diff --git a/packages/core/user-profile/core-user-profile-browser-internal/src/internal_contracts.ts b/src/core/packages/user-profile/browser-internal/src/internal_contracts.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-internal/src/internal_contracts.ts rename to src/core/packages/user-profile/browser-internal/src/internal_contracts.ts diff --git a/packages/core/user-profile/core-user-profile-browser-internal/src/user_profile_service.test.mocks.ts b/src/core/packages/user-profile/browser-internal/src/user_profile_service.test.mocks.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-internal/src/user_profile_service.test.mocks.ts rename to src/core/packages/user-profile/browser-internal/src/user_profile_service.test.mocks.ts diff --git a/packages/core/user-profile/core-user-profile-browser-internal/src/user_profile_service.test.ts b/src/core/packages/user-profile/browser-internal/src/user_profile_service.test.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-internal/src/user_profile_service.test.ts rename to src/core/packages/user-profile/browser-internal/src/user_profile_service.test.ts diff --git a/packages/core/user-profile/core-user-profile-browser-internal/src/user_profile_service.ts b/src/core/packages/user-profile/browser-internal/src/user_profile_service.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-internal/src/user_profile_service.ts rename to src/core/packages/user-profile/browser-internal/src/user_profile_service.ts diff --git a/packages/core/user-profile/core-user-profile-browser-internal/src/utils/convert_api.test.ts b/src/core/packages/user-profile/browser-internal/src/utils/convert_api.test.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-internal/src/utils/convert_api.test.ts rename to src/core/packages/user-profile/browser-internal/src/utils/convert_api.test.ts diff --git a/packages/core/user-profile/core-user-profile-browser-internal/src/utils/convert_api.ts b/src/core/packages/user-profile/browser-internal/src/utils/convert_api.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-internal/src/utils/convert_api.ts rename to src/core/packages/user-profile/browser-internal/src/utils/convert_api.ts diff --git a/packages/core/user-profile/core-user-profile-browser-internal/src/utils/default_implementation.test.ts b/src/core/packages/user-profile/browser-internal/src/utils/default_implementation.test.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-internal/src/utils/default_implementation.test.ts rename to src/core/packages/user-profile/browser-internal/src/utils/default_implementation.test.ts diff --git a/packages/core/user-profile/core-user-profile-browser-internal/src/utils/default_implementation.ts b/src/core/packages/user-profile/browser-internal/src/utils/default_implementation.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-internal/src/utils/default_implementation.ts rename to src/core/packages/user-profile/browser-internal/src/utils/default_implementation.ts diff --git a/packages/core/user-profile/core-user-profile-browser-internal/src/utils/index.ts b/src/core/packages/user-profile/browser-internal/src/utils/index.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-internal/src/utils/index.ts rename to src/core/packages/user-profile/browser-internal/src/utils/index.ts diff --git a/packages/core/user-profile/core-user-profile-browser-internal/tsconfig.json b/src/core/packages/user-profile/browser-internal/tsconfig.json similarity index 89% rename from packages/core/user-profile/core-user-profile-browser-internal/tsconfig.json rename to src/core/packages/user-profile/browser-internal/tsconfig.json index ab75fcaab6575..74881f4eca265 100644 --- a/packages/core/user-profile/core-user-profile-browser-internal/tsconfig.json +++ b/src/core/packages/user-profile/browser-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 11e68d7a79a07..f122feb55b1a5 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -660,8 +660,8 @@ "@kbn/core-usage-data-server-mocks/*": ["packages/core/usage-data/core-usage-data-server-mocks/*"], "@kbn/core-user-profile-browser": ["src/core/packages/user-profile/browser"], "@kbn/core-user-profile-browser/*": ["src/core/packages/user-profile/browser/*"], - "@kbn/core-user-profile-browser-internal": ["packages/core/user-profile/core-user-profile-browser-internal"], - "@kbn/core-user-profile-browser-internal/*": ["packages/core/user-profile/core-user-profile-browser-internal/*"], + "@kbn/core-user-profile-browser-internal": ["src/core/packages/user-profile/browser-internal"], + "@kbn/core-user-profile-browser-internal/*": ["src/core/packages/user-profile/browser-internal/*"], "@kbn/core-user-profile-browser-mocks": ["packages/core/user-profile/core-user-profile-browser-mocks"], "@kbn/core-user-profile-browser-mocks/*": ["packages/core/user-profile/core-user-profile-browser-mocks/*"], "@kbn/core-user-profile-common": ["packages/core/user-profile/core-user-profile-common"], diff --git a/yarn.lock b/yarn.lock index 15c1c8fc523a4..7fe7e428ea001 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5129,7 +5129,7 @@ version "0.0.0" uid "" -"@kbn/core-user-profile-browser-internal@link:packages/core/user-profile/core-user-profile-browser-internal": +"@kbn/core-user-profile-browser-internal@link:src/core/packages/user-profile/browser-internal": version "0.0.0" uid "" From 172a1d5ec3a42d0f9017bd5b26b82e42f7e43bbd Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:51:53 +0100 Subject: [PATCH 131/167] Relocating module `@kbn/core-user-profile-browser-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/user-profile/browser-mocks}/README.md | 0 .../core/packages/user-profile/browser-mocks}/index.ts | 0 .../core/packages/user-profile/browser-mocks}/jest.config.js | 4 ++-- .../core/packages/user-profile/browser-mocks}/kibana.jsonc | 0 .../core/packages/user-profile/browser-mocks}/package.json | 0 .../browser-mocks}/src/user_profile_service.mock.ts | 0 .../core/packages/user-profile/browser-mocks}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/user-profile/core-user-profile-browser-mocks => src/core/packages/user-profile/browser-mocks}/README.md (100%) rename {packages/core/user-profile/core-user-profile-browser-mocks => src/core/packages/user-profile/browser-mocks}/index.ts (100%) rename {packages/core/user-profile/core-user-profile-browser-mocks => src/core/packages/user-profile/browser-mocks}/jest.config.js (82%) rename {packages/core/user-profile/core-user-profile-browser-mocks => src/core/packages/user-profile/browser-mocks}/kibana.jsonc (100%) rename {packages/core/user-profile/core-user-profile-browser-mocks => src/core/packages/user-profile/browser-mocks}/package.json (100%) rename {packages/core/user-profile/core-user-profile-browser-mocks => src/core/packages/user-profile/browser-mocks}/src/user_profile_service.mock.ts (100%) rename {packages/core/user-profile/core-user-profile-browser-mocks => src/core/packages/user-profile/browser-mocks}/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 269098bd01aa0..724c75cb3d0d6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -121,7 +121,6 @@ packages/core/ui-settings/core-ui-settings-server @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-internal @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-mocks @elastic/appex-sharedux packages/core/usage-data/core-usage-data-server-mocks @elastic/kibana-core -packages/core/user-profile/core-user-profile-browser-mocks @elastic/kibana-core packages/core/user-profile/core-user-profile-common @elastic/kibana-core packages/core/user-profile/core-user-profile-server @elastic/kibana-core packages/core/user-profile/core-user-profile-server-internal @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/usage-data/server @elastic/kibana-core src/core/packages/usage-data/server-internal @elastic/kibana-core src/core/packages/user-profile/browser @elastic/kibana-core src/core/packages/user-profile/browser-internal @elastic/kibana-core +src/core/packages/user-profile/browser-mocks @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 6377c655bc35b..de2fbeb78093a 100644 --- a/package.json +++ b/package.json @@ -405,7 +405,7 @@ "@kbn/core-usage-data-server-internal": "link:src/core/packages/usage-data/server-internal", "@kbn/core-user-profile-browser": "link:src/core/packages/user-profile/browser", "@kbn/core-user-profile-browser-internal": "link:src/core/packages/user-profile/browser-internal", - "@kbn/core-user-profile-browser-mocks": "link:packages/core/user-profile/core-user-profile-browser-mocks", + "@kbn/core-user-profile-browser-mocks": "link:src/core/packages/user-profile/browser-mocks", "@kbn/core-user-profile-common": "link:packages/core/user-profile/core-user-profile-common", "@kbn/core-user-profile-server": "link:packages/core/user-profile/core-user-profile-server", "@kbn/core-user-profile-server-internal": "link:packages/core/user-profile/core-user-profile-server-internal", diff --git a/packages/core/user-profile/core-user-profile-browser-mocks/README.md b/src/core/packages/user-profile/browser-mocks/README.md similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-mocks/README.md rename to src/core/packages/user-profile/browser-mocks/README.md diff --git a/packages/core/user-profile/core-user-profile-browser-mocks/index.ts b/src/core/packages/user-profile/browser-mocks/index.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-mocks/index.ts rename to src/core/packages/user-profile/browser-mocks/index.ts diff --git a/packages/core/user-profile/core-user-profile-browser-mocks/jest.config.js b/src/core/packages/user-profile/browser-mocks/jest.config.js similarity index 82% rename from packages/core/user-profile/core-user-profile-browser-mocks/jest.config.js rename to src/core/packages/user-profile/browser-mocks/jest.config.js index b7b723f8f0d07..2c4abe2957b64 100644 --- a/packages/core/user-profile/core-user-profile-browser-mocks/jest.config.js +++ b/src/core/packages/user-profile/browser-mocks/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/user-profile/core-user-profile-browser-mocks'], + rootDir: '../../../../..', + roots: ['/src/core/packages/user-profile/browser-mocks'], }; diff --git a/packages/core/user-profile/core-user-profile-browser-mocks/kibana.jsonc b/src/core/packages/user-profile/browser-mocks/kibana.jsonc similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-mocks/kibana.jsonc rename to src/core/packages/user-profile/browser-mocks/kibana.jsonc diff --git a/packages/core/user-profile/core-user-profile-browser-mocks/package.json b/src/core/packages/user-profile/browser-mocks/package.json similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-mocks/package.json rename to src/core/packages/user-profile/browser-mocks/package.json diff --git a/packages/core/user-profile/core-user-profile-browser-mocks/src/user_profile_service.mock.ts b/src/core/packages/user-profile/browser-mocks/src/user_profile_service.mock.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-browser-mocks/src/user_profile_service.mock.ts rename to src/core/packages/user-profile/browser-mocks/src/user_profile_service.mock.ts diff --git a/packages/core/user-profile/core-user-profile-browser-mocks/tsconfig.json b/src/core/packages/user-profile/browser-mocks/tsconfig.json similarity index 86% rename from packages/core/user-profile/core-user-profile-browser-mocks/tsconfig.json rename to src/core/packages/user-profile/browser-mocks/tsconfig.json index b4f4683993884..bbe270286c22f 100644 --- a/packages/core/user-profile/core-user-profile-browser-mocks/tsconfig.json +++ b/src/core/packages/user-profile/browser-mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index f122feb55b1a5..f73ccd5faeb51 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -662,8 +662,8 @@ "@kbn/core-user-profile-browser/*": ["src/core/packages/user-profile/browser/*"], "@kbn/core-user-profile-browser-internal": ["src/core/packages/user-profile/browser-internal"], "@kbn/core-user-profile-browser-internal/*": ["src/core/packages/user-profile/browser-internal/*"], - "@kbn/core-user-profile-browser-mocks": ["packages/core/user-profile/core-user-profile-browser-mocks"], - "@kbn/core-user-profile-browser-mocks/*": ["packages/core/user-profile/core-user-profile-browser-mocks/*"], + "@kbn/core-user-profile-browser-mocks": ["src/core/packages/user-profile/browser-mocks"], + "@kbn/core-user-profile-browser-mocks/*": ["src/core/packages/user-profile/browser-mocks/*"], "@kbn/core-user-profile-common": ["packages/core/user-profile/core-user-profile-common"], "@kbn/core-user-profile-common/*": ["packages/core/user-profile/core-user-profile-common/*"], "@kbn/core-user-profile-server": ["packages/core/user-profile/core-user-profile-server"], diff --git a/yarn.lock b/yarn.lock index 7fe7e428ea001..0fceca6e4aa80 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5133,7 +5133,7 @@ version "0.0.0" uid "" -"@kbn/core-user-profile-browser-mocks@link:packages/core/user-profile/core-user-profile-browser-mocks": +"@kbn/core-user-profile-browser-mocks@link:src/core/packages/user-profile/browser-mocks": version "0.0.0" uid "" From 39010d2eb93e83a485a6623bcd8a908e2118875d Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:52:45 +0100 Subject: [PATCH 132/167] Relocating module `@kbn/core-user-profile-common` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/user-profile/common}/README.md | 0 .../core/packages/user-profile/common}/index.ts | 0 .../core/packages/user-profile/common}/jest.config.js | 4 ++-- .../core/packages/user-profile/common}/kibana.jsonc | 0 .../core/packages/user-profile/common}/package.json | 0 .../core/packages/user-profile/common}/src/user_profile.ts | 0 .../core/packages/user-profile/common}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/user-profile/core-user-profile-common => src/core/packages/user-profile/common}/README.md (100%) rename {packages/core/user-profile/core-user-profile-common => src/core/packages/user-profile/common}/index.ts (100%) rename {packages/core/user-profile/core-user-profile-common => src/core/packages/user-profile/common}/jest.config.js (83%) rename {packages/core/user-profile/core-user-profile-common => src/core/packages/user-profile/common}/kibana.jsonc (100%) rename {packages/core/user-profile/core-user-profile-common => src/core/packages/user-profile/common}/package.json (100%) rename {packages/core/user-profile/core-user-profile-common => src/core/packages/user-profile/common}/src/user_profile.ts (100%) rename {packages/core/user-profile/core-user-profile-common => src/core/packages/user-profile/common}/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 724c75cb3d0d6..f8d0c0c33a8ce 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -121,7 +121,6 @@ packages/core/ui-settings/core-ui-settings-server @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-internal @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-mocks @elastic/appex-sharedux packages/core/usage-data/core-usage-data-server-mocks @elastic/kibana-core -packages/core/user-profile/core-user-profile-common @elastic/kibana-core packages/core/user-profile/core-user-profile-server @elastic/kibana-core packages/core/user-profile/core-user-profile-server-internal @elastic/kibana-core packages/core/user-profile/core-user-profile-server-mocks @elastic/kibana-core @@ -493,6 +492,7 @@ src/core/packages/usage-data/server-internal @elastic/kibana-core src/core/packages/user-profile/browser @elastic/kibana-core src/core/packages/user-profile/browser-internal @elastic/kibana-core src/core/packages/user-profile/browser-mocks @elastic/kibana-core +src/core/packages/user-profile/common @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index de2fbeb78093a..f8a5c10631522 100644 --- a/package.json +++ b/package.json @@ -406,7 +406,7 @@ "@kbn/core-user-profile-browser": "link:src/core/packages/user-profile/browser", "@kbn/core-user-profile-browser-internal": "link:src/core/packages/user-profile/browser-internal", "@kbn/core-user-profile-browser-mocks": "link:src/core/packages/user-profile/browser-mocks", - "@kbn/core-user-profile-common": "link:packages/core/user-profile/core-user-profile-common", + "@kbn/core-user-profile-common": "link:src/core/packages/user-profile/common", "@kbn/core-user-profile-server": "link:packages/core/user-profile/core-user-profile-server", "@kbn/core-user-profile-server-internal": "link:packages/core/user-profile/core-user-profile-server-internal", "@kbn/core-user-profile-server-mocks": "link:packages/core/user-profile/core-user-profile-server-mocks", diff --git a/packages/core/user-profile/core-user-profile-common/README.md b/src/core/packages/user-profile/common/README.md similarity index 100% rename from packages/core/user-profile/core-user-profile-common/README.md rename to src/core/packages/user-profile/common/README.md diff --git a/packages/core/user-profile/core-user-profile-common/index.ts b/src/core/packages/user-profile/common/index.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-common/index.ts rename to src/core/packages/user-profile/common/index.ts diff --git a/packages/core/user-profile/core-user-profile-common/jest.config.js b/src/core/packages/user-profile/common/jest.config.js similarity index 83% rename from packages/core/user-profile/core-user-profile-common/jest.config.js rename to src/core/packages/user-profile/common/jest.config.js index 9998c354d5624..d7388cd2aef57 100644 --- a/packages/core/user-profile/core-user-profile-common/jest.config.js +++ b/src/core/packages/user-profile/common/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/packages/core/user-profile/core-user-profile-common'], + rootDir: '../../../../..', + roots: ['/src/core/packages/user-profile/common'], }; diff --git a/packages/core/user-profile/core-user-profile-common/kibana.jsonc b/src/core/packages/user-profile/common/kibana.jsonc similarity index 100% rename from packages/core/user-profile/core-user-profile-common/kibana.jsonc rename to src/core/packages/user-profile/common/kibana.jsonc diff --git a/packages/core/user-profile/core-user-profile-common/package.json b/src/core/packages/user-profile/common/package.json similarity index 100% rename from packages/core/user-profile/core-user-profile-common/package.json rename to src/core/packages/user-profile/common/package.json diff --git a/packages/core/user-profile/core-user-profile-common/src/user_profile.ts b/src/core/packages/user-profile/common/src/user_profile.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-common/src/user_profile.ts rename to src/core/packages/user-profile/common/src/user_profile.ts diff --git a/packages/core/user-profile/core-user-profile-common/tsconfig.json b/src/core/packages/user-profile/common/tsconfig.json similarity index 82% rename from packages/core/user-profile/core-user-profile-common/tsconfig.json rename to src/core/packages/user-profile/common/tsconfig.json index b05325b824a67..447899d604592 100644 --- a/packages/core/user-profile/core-user-profile-common/tsconfig.json +++ b/src/core/packages/user-profile/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index f73ccd5faeb51..72778e7cb8c00 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -664,8 +664,8 @@ "@kbn/core-user-profile-browser-internal/*": ["src/core/packages/user-profile/browser-internal/*"], "@kbn/core-user-profile-browser-mocks": ["src/core/packages/user-profile/browser-mocks"], "@kbn/core-user-profile-browser-mocks/*": ["src/core/packages/user-profile/browser-mocks/*"], - "@kbn/core-user-profile-common": ["packages/core/user-profile/core-user-profile-common"], - "@kbn/core-user-profile-common/*": ["packages/core/user-profile/core-user-profile-common/*"], + "@kbn/core-user-profile-common": ["src/core/packages/user-profile/common"], + "@kbn/core-user-profile-common/*": ["src/core/packages/user-profile/common/*"], "@kbn/core-user-profile-server": ["packages/core/user-profile/core-user-profile-server"], "@kbn/core-user-profile-server/*": ["packages/core/user-profile/core-user-profile-server/*"], "@kbn/core-user-profile-server-internal": ["packages/core/user-profile/core-user-profile-server-internal"], diff --git a/yarn.lock b/yarn.lock index 0fceca6e4aa80..9ea78a3b2c6cf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5141,7 +5141,7 @@ version "0.0.0" uid "" -"@kbn/core-user-profile-common@link:packages/core/user-profile/core-user-profile-common": +"@kbn/core-user-profile-common@link:src/core/packages/user-profile/common": version "0.0.0" uid "" From 9345cfb33d2ff942bcdcc2ba799a9885d347cffd Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:53:36 +0100 Subject: [PATCH 133/167] Relocating module `@kbn/core-user-profile-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/user-profile/server}/README.md | 0 .../core/packages/user-profile/server}/index.ts | 0 .../core/packages/user-profile/server}/jest.config.js | 4 ++-- .../core/packages/user-profile/server}/kibana.jsonc | 0 .../core/packages/user-profile/server}/package.json | 0 .../core/packages/user-profile/server}/src/api_provider.ts | 0 .../core/packages/user-profile/server}/src/contracts.ts | 0 .../user-profile/server}/src/request_handler_context.ts | 0 .../core/packages/user-profile/server}/src/service.ts | 0 .../core/packages/user-profile/server}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/user-profile/core-user-profile-server => src/core/packages/user-profile/server}/README.md (100%) rename {packages/core/user-profile/core-user-profile-server => src/core/packages/user-profile/server}/index.ts (100%) rename {packages/core/user-profile/core-user-profile-server => src/core/packages/user-profile/server}/jest.config.js (83%) rename {packages/core/user-profile/core-user-profile-server => src/core/packages/user-profile/server}/kibana.jsonc (100%) rename {packages/core/user-profile/core-user-profile-server => src/core/packages/user-profile/server}/package.json (100%) rename {packages/core/user-profile/core-user-profile-server => src/core/packages/user-profile/server}/src/api_provider.ts (100%) rename {packages/core/user-profile/core-user-profile-server => src/core/packages/user-profile/server}/src/contracts.ts (100%) rename {packages/core/user-profile/core-user-profile-server => src/core/packages/user-profile/server}/src/request_handler_context.ts (100%) rename {packages/core/user-profile/core-user-profile-server => src/core/packages/user-profile/server}/src/service.ts (100%) rename {packages/core/user-profile/core-user-profile-server => src/core/packages/user-profile/server}/tsconfig.json (84%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f8d0c0c33a8ce..567437c02d969 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -121,7 +121,6 @@ packages/core/ui-settings/core-ui-settings-server @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-internal @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-mocks @elastic/appex-sharedux packages/core/usage-data/core-usage-data-server-mocks @elastic/kibana-core -packages/core/user-profile/core-user-profile-server @elastic/kibana-core packages/core/user-profile/core-user-profile-server-internal @elastic/kibana-core packages/core/user-profile/core-user-profile-server-mocks @elastic/kibana-core packages/core/user-settings/core-user-settings-server @elastic/kibana-security @@ -493,6 +492,7 @@ src/core/packages/user-profile/browser @elastic/kibana-core src/core/packages/user-profile/browser-internal @elastic/kibana-core src/core/packages/user-profile/browser-mocks @elastic/kibana-core src/core/packages/user-profile/common @elastic/kibana-core +src/core/packages/user-profile/server @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index f8a5c10631522..fd13bb61c515d 100644 --- a/package.json +++ b/package.json @@ -407,7 +407,7 @@ "@kbn/core-user-profile-browser-internal": "link:src/core/packages/user-profile/browser-internal", "@kbn/core-user-profile-browser-mocks": "link:src/core/packages/user-profile/browser-mocks", "@kbn/core-user-profile-common": "link:src/core/packages/user-profile/common", - "@kbn/core-user-profile-server": "link:packages/core/user-profile/core-user-profile-server", + "@kbn/core-user-profile-server": "link:src/core/packages/user-profile/server", "@kbn/core-user-profile-server-internal": "link:packages/core/user-profile/core-user-profile-server-internal", "@kbn/core-user-profile-server-mocks": "link:packages/core/user-profile/core-user-profile-server-mocks", "@kbn/core-user-settings-server": "link:packages/core/user-settings/core-user-settings-server", diff --git a/packages/core/user-profile/core-user-profile-server/README.md b/src/core/packages/user-profile/server/README.md similarity index 100% rename from packages/core/user-profile/core-user-profile-server/README.md rename to src/core/packages/user-profile/server/README.md diff --git a/packages/core/user-profile/core-user-profile-server/index.ts b/src/core/packages/user-profile/server/index.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server/index.ts rename to src/core/packages/user-profile/server/index.ts diff --git a/packages/core/user-profile/core-user-profile-server/jest.config.js b/src/core/packages/user-profile/server/jest.config.js similarity index 83% rename from packages/core/user-profile/core-user-profile-server/jest.config.js rename to src/core/packages/user-profile/server/jest.config.js index 2d577fe6f8e11..41691e0c32643 100644 --- a/packages/core/user-profile/core-user-profile-server/jest.config.js +++ b/src/core/packages/user-profile/server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/user-profile/core-user-profile-server'], + rootDir: '../../../../..', + roots: ['/src/core/packages/user-profile/server'], }; diff --git a/packages/core/user-profile/core-user-profile-server/kibana.jsonc b/src/core/packages/user-profile/server/kibana.jsonc similarity index 100% rename from packages/core/user-profile/core-user-profile-server/kibana.jsonc rename to src/core/packages/user-profile/server/kibana.jsonc diff --git a/packages/core/user-profile/core-user-profile-server/package.json b/src/core/packages/user-profile/server/package.json similarity index 100% rename from packages/core/user-profile/core-user-profile-server/package.json rename to src/core/packages/user-profile/server/package.json diff --git a/packages/core/user-profile/core-user-profile-server/src/api_provider.ts b/src/core/packages/user-profile/server/src/api_provider.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server/src/api_provider.ts rename to src/core/packages/user-profile/server/src/api_provider.ts diff --git a/packages/core/user-profile/core-user-profile-server/src/contracts.ts b/src/core/packages/user-profile/server/src/contracts.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server/src/contracts.ts rename to src/core/packages/user-profile/server/src/contracts.ts diff --git a/packages/core/user-profile/core-user-profile-server/src/request_handler_context.ts b/src/core/packages/user-profile/server/src/request_handler_context.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server/src/request_handler_context.ts rename to src/core/packages/user-profile/server/src/request_handler_context.ts diff --git a/packages/core/user-profile/core-user-profile-server/src/service.ts b/src/core/packages/user-profile/server/src/service.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server/src/service.ts rename to src/core/packages/user-profile/server/src/service.ts diff --git a/packages/core/user-profile/core-user-profile-server/tsconfig.json b/src/core/packages/user-profile/server/tsconfig.json similarity index 84% rename from packages/core/user-profile/core-user-profile-server/tsconfig.json rename to src/core/packages/user-profile/server/tsconfig.json index 85f418a0eb6c9..5a69da534c9f9 100644 --- a/packages/core/user-profile/core-user-profile-server/tsconfig.json +++ b/src/core/packages/user-profile/server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 72778e7cb8c00..9bcf82d5bef07 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -666,8 +666,8 @@ "@kbn/core-user-profile-browser-mocks/*": ["src/core/packages/user-profile/browser-mocks/*"], "@kbn/core-user-profile-common": ["src/core/packages/user-profile/common"], "@kbn/core-user-profile-common/*": ["src/core/packages/user-profile/common/*"], - "@kbn/core-user-profile-server": ["packages/core/user-profile/core-user-profile-server"], - "@kbn/core-user-profile-server/*": ["packages/core/user-profile/core-user-profile-server/*"], + "@kbn/core-user-profile-server": ["src/core/packages/user-profile/server"], + "@kbn/core-user-profile-server/*": ["src/core/packages/user-profile/server/*"], "@kbn/core-user-profile-server-internal": ["packages/core/user-profile/core-user-profile-server-internal"], "@kbn/core-user-profile-server-internal/*": ["packages/core/user-profile/core-user-profile-server-internal/*"], "@kbn/core-user-profile-server-mocks": ["packages/core/user-profile/core-user-profile-server-mocks"], diff --git a/yarn.lock b/yarn.lock index 9ea78a3b2c6cf..161425e97131e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5153,7 +5153,7 @@ version "0.0.0" uid "" -"@kbn/core-user-profile-server@link:packages/core/user-profile/core-user-profile-server": +"@kbn/core-user-profile-server@link:src/core/packages/user-profile/server": version "0.0.0" uid "" From 13519b4dec4f0420d7a667a7599a40ffa02bbc5c Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:54:27 +0100 Subject: [PATCH 134/167] Relocating module `@kbn/core-user-profile-server-internal` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/user-profile/server-internal}/README.md | 0 .../core/packages/user-profile/server-internal}/index.ts | 0 .../packages/user-profile/server-internal}/jest.config.js | 4 ++-- .../core/packages/user-profile/server-internal}/kibana.jsonc | 0 .../core/packages/user-profile/server-internal}/package.json | 0 .../user-profile/server-internal}/src/internal_contracts.ts | 0 .../src/user_profile_route_handler_context.ts | 0 .../server-internal}/src/user_profile_service.test.mocks.ts | 0 .../server-internal}/src/user_profile_service.test.ts | 0 .../user-profile/server-internal}/src/user_profile_service.ts | 0 .../server-internal}/src/utils/convert_api.test.ts | 0 .../user-profile/server-internal}/src/utils/convert_api.ts | 0 .../server-internal}/src/utils/default_implementation.test.ts | 0 .../server-internal}/src/utils/default_implementation.ts | 0 .../packages/user-profile/server-internal}/src/utils/index.ts | 0 .../core/packages/user-profile/server-internal}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 20 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/README.md (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/index.ts (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/jest.config.js (82%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/kibana.jsonc (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/package.json (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/src/internal_contracts.ts (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/src/user_profile_route_handler_context.ts (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/src/user_profile_service.test.mocks.ts (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/src/user_profile_service.test.ts (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/src/user_profile_service.ts (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/src/utils/convert_api.test.ts (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/src/utils/convert_api.ts (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/src/utils/default_implementation.test.ts (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/src/utils/default_implementation.ts (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/src/utils/index.ts (100%) rename {packages/core/user-profile/core-user-profile-server-internal => src/core/packages/user-profile/server-internal}/tsconfig.json (89%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 567437c02d969..4dd3a428dc1ca 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -121,7 +121,6 @@ packages/core/ui-settings/core-ui-settings-server @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-internal @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-mocks @elastic/appex-sharedux packages/core/usage-data/core-usage-data-server-mocks @elastic/kibana-core -packages/core/user-profile/core-user-profile-server-internal @elastic/kibana-core packages/core/user-profile/core-user-profile-server-mocks @elastic/kibana-core packages/core/user-settings/core-user-settings-server @elastic/kibana-security packages/core/user-settings/core-user-settings-server-internal @elastic/kibana-security @@ -493,6 +492,7 @@ src/core/packages/user-profile/browser-internal @elastic/kibana-core src/core/packages/user-profile/browser-mocks @elastic/kibana-core src/core/packages/user-profile/common @elastic/kibana-core src/core/packages/user-profile/server @elastic/kibana-core +src/core/packages/user-profile/server-internal @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index fd13bb61c515d..1e2d8941b5f12 100644 --- a/package.json +++ b/package.json @@ -408,7 +408,7 @@ "@kbn/core-user-profile-browser-mocks": "link:src/core/packages/user-profile/browser-mocks", "@kbn/core-user-profile-common": "link:src/core/packages/user-profile/common", "@kbn/core-user-profile-server": "link:src/core/packages/user-profile/server", - "@kbn/core-user-profile-server-internal": "link:packages/core/user-profile/core-user-profile-server-internal", + "@kbn/core-user-profile-server-internal": "link:src/core/packages/user-profile/server-internal", "@kbn/core-user-profile-server-mocks": "link:packages/core/user-profile/core-user-profile-server-mocks", "@kbn/core-user-settings-server": "link:packages/core/user-settings/core-user-settings-server", "@kbn/core-user-settings-server-internal": "link:packages/core/user-settings/core-user-settings-server-internal", diff --git a/packages/core/user-profile/core-user-profile-server-internal/README.md b/src/core/packages/user-profile/server-internal/README.md similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/README.md rename to src/core/packages/user-profile/server-internal/README.md diff --git a/packages/core/user-profile/core-user-profile-server-internal/index.ts b/src/core/packages/user-profile/server-internal/index.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/index.ts rename to src/core/packages/user-profile/server-internal/index.ts diff --git a/packages/core/user-profile/core-user-profile-server-internal/jest.config.js b/src/core/packages/user-profile/server-internal/jest.config.js similarity index 82% rename from packages/core/user-profile/core-user-profile-server-internal/jest.config.js rename to src/core/packages/user-profile/server-internal/jest.config.js index 06a9620cf8f6c..6f9e28037afe3 100644 --- a/packages/core/user-profile/core-user-profile-server-internal/jest.config.js +++ b/src/core/packages/user-profile/server-internal/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/user-profile/core-user-profile-server-internal'], + rootDir: '../../../../..', + roots: ['/src/core/packages/user-profile/server-internal'], }; diff --git a/packages/core/user-profile/core-user-profile-server-internal/kibana.jsonc b/src/core/packages/user-profile/server-internal/kibana.jsonc similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/kibana.jsonc rename to src/core/packages/user-profile/server-internal/kibana.jsonc diff --git a/packages/core/user-profile/core-user-profile-server-internal/package.json b/src/core/packages/user-profile/server-internal/package.json similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/package.json rename to src/core/packages/user-profile/server-internal/package.json diff --git a/packages/core/user-profile/core-user-profile-server-internal/src/internal_contracts.ts b/src/core/packages/user-profile/server-internal/src/internal_contracts.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/src/internal_contracts.ts rename to src/core/packages/user-profile/server-internal/src/internal_contracts.ts diff --git a/packages/core/user-profile/core-user-profile-server-internal/src/user_profile_route_handler_context.ts b/src/core/packages/user-profile/server-internal/src/user_profile_route_handler_context.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/src/user_profile_route_handler_context.ts rename to src/core/packages/user-profile/server-internal/src/user_profile_route_handler_context.ts diff --git a/packages/core/user-profile/core-user-profile-server-internal/src/user_profile_service.test.mocks.ts b/src/core/packages/user-profile/server-internal/src/user_profile_service.test.mocks.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/src/user_profile_service.test.mocks.ts rename to src/core/packages/user-profile/server-internal/src/user_profile_service.test.mocks.ts diff --git a/packages/core/user-profile/core-user-profile-server-internal/src/user_profile_service.test.ts b/src/core/packages/user-profile/server-internal/src/user_profile_service.test.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/src/user_profile_service.test.ts rename to src/core/packages/user-profile/server-internal/src/user_profile_service.test.ts diff --git a/packages/core/user-profile/core-user-profile-server-internal/src/user_profile_service.ts b/src/core/packages/user-profile/server-internal/src/user_profile_service.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/src/user_profile_service.ts rename to src/core/packages/user-profile/server-internal/src/user_profile_service.ts diff --git a/packages/core/user-profile/core-user-profile-server-internal/src/utils/convert_api.test.ts b/src/core/packages/user-profile/server-internal/src/utils/convert_api.test.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/src/utils/convert_api.test.ts rename to src/core/packages/user-profile/server-internal/src/utils/convert_api.test.ts diff --git a/packages/core/user-profile/core-user-profile-server-internal/src/utils/convert_api.ts b/src/core/packages/user-profile/server-internal/src/utils/convert_api.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/src/utils/convert_api.ts rename to src/core/packages/user-profile/server-internal/src/utils/convert_api.ts diff --git a/packages/core/user-profile/core-user-profile-server-internal/src/utils/default_implementation.test.ts b/src/core/packages/user-profile/server-internal/src/utils/default_implementation.test.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/src/utils/default_implementation.test.ts rename to src/core/packages/user-profile/server-internal/src/utils/default_implementation.test.ts diff --git a/packages/core/user-profile/core-user-profile-server-internal/src/utils/default_implementation.ts b/src/core/packages/user-profile/server-internal/src/utils/default_implementation.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/src/utils/default_implementation.ts rename to src/core/packages/user-profile/server-internal/src/utils/default_implementation.ts diff --git a/packages/core/user-profile/core-user-profile-server-internal/src/utils/index.ts b/src/core/packages/user-profile/server-internal/src/utils/index.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server-internal/src/utils/index.ts rename to src/core/packages/user-profile/server-internal/src/utils/index.ts diff --git a/packages/core/user-profile/core-user-profile-server-internal/tsconfig.json b/src/core/packages/user-profile/server-internal/tsconfig.json similarity index 89% rename from packages/core/user-profile/core-user-profile-server-internal/tsconfig.json rename to src/core/packages/user-profile/server-internal/tsconfig.json index db09577dded94..4bb3b61faf22d 100644 --- a/packages/core/user-profile/core-user-profile-server-internal/tsconfig.json +++ b/src/core/packages/user-profile/server-internal/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 9bcf82d5bef07..966c34fcc8ebe 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -668,8 +668,8 @@ "@kbn/core-user-profile-common/*": ["src/core/packages/user-profile/common/*"], "@kbn/core-user-profile-server": ["src/core/packages/user-profile/server"], "@kbn/core-user-profile-server/*": ["src/core/packages/user-profile/server/*"], - "@kbn/core-user-profile-server-internal": ["packages/core/user-profile/core-user-profile-server-internal"], - "@kbn/core-user-profile-server-internal/*": ["packages/core/user-profile/core-user-profile-server-internal/*"], + "@kbn/core-user-profile-server-internal": ["src/core/packages/user-profile/server-internal"], + "@kbn/core-user-profile-server-internal/*": ["src/core/packages/user-profile/server-internal/*"], "@kbn/core-user-profile-server-mocks": ["packages/core/user-profile/core-user-profile-server-mocks"], "@kbn/core-user-profile-server-mocks/*": ["packages/core/user-profile/core-user-profile-server-mocks/*"], "@kbn/core-user-settings-server": ["packages/core/user-settings/core-user-settings-server"], diff --git a/yarn.lock b/yarn.lock index 161425e97131e..c177c5ba324f2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5145,7 +5145,7 @@ version "0.0.0" uid "" -"@kbn/core-user-profile-server-internal@link:packages/core/user-profile/core-user-profile-server-internal": +"@kbn/core-user-profile-server-internal@link:src/core/packages/user-profile/server-internal": version "0.0.0" uid "" From d1e236fc327d79b72aeeaf95b1db34935d1b43ad Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:55:18 +0100 Subject: [PATCH 135/167] Relocating module `@kbn/core-user-profile-server-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../core/packages/user-profile/server-mocks}/README.md | 0 .../core/packages/user-profile/server-mocks}/index.ts | 0 .../core/packages/user-profile/server-mocks}/jest.config.js | 4 ++-- .../core/packages/user-profile/server-mocks}/kibana.jsonc | 0 .../core/packages/user-profile/server-mocks}/package.json | 0 .../server-mocks}/src/user_profile_service.mock.ts | 0 .../core/packages/user-profile/server-mocks}/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages/core/user-profile/core-user-profile-server-mocks => src/core/packages/user-profile/server-mocks}/README.md (100%) rename {packages/core/user-profile/core-user-profile-server-mocks => src/core/packages/user-profile/server-mocks}/index.ts (100%) rename {packages/core/user-profile/core-user-profile-server-mocks => src/core/packages/user-profile/server-mocks}/jest.config.js (82%) rename {packages/core/user-profile/core-user-profile-server-mocks => src/core/packages/user-profile/server-mocks}/kibana.jsonc (100%) rename {packages/core/user-profile/core-user-profile-server-mocks => src/core/packages/user-profile/server-mocks}/package.json (100%) rename {packages/core/user-profile/core-user-profile-server-mocks => src/core/packages/user-profile/server-mocks}/src/user_profile_service.mock.ts (100%) rename {packages/core/user-profile/core-user-profile-server-mocks => src/core/packages/user-profile/server-mocks}/tsconfig.json (85%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4dd3a428dc1ca..572b30238fb30 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -121,7 +121,6 @@ packages/core/ui-settings/core-ui-settings-server @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-internal @elastic/appex-sharedux packages/core/ui-settings/core-ui-settings-server-mocks @elastic/appex-sharedux packages/core/usage-data/core-usage-data-server-mocks @elastic/kibana-core -packages/core/user-profile/core-user-profile-server-mocks @elastic/kibana-core packages/core/user-settings/core-user-settings-server @elastic/kibana-security packages/core/user-settings/core-user-settings-server-internal @elastic/kibana-security packages/core/user-settings/core-user-settings-server-mocks @elastic/kibana-security @@ -493,6 +492,7 @@ src/core/packages/user-profile/browser-mocks @elastic/kibana-core src/core/packages/user-profile/common @elastic/kibana-core src/core/packages/user-profile/server @elastic/kibana-core src/core/packages/user-profile/server-internal @elastic/kibana-core +src/core/packages/user-profile/server-mocks @elastic/kibana-core src/platform/packages/private/analytics/utils/analytics_collection_utils @elastic/kibana-core src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations src/platform/packages/private/default-nav/devtools @elastic/kibana-management diff --git a/package.json b/package.json index 1e2d8941b5f12..cfb237b7a5b99 100644 --- a/package.json +++ b/package.json @@ -409,7 +409,7 @@ "@kbn/core-user-profile-common": "link:src/core/packages/user-profile/common", "@kbn/core-user-profile-server": "link:src/core/packages/user-profile/server", "@kbn/core-user-profile-server-internal": "link:src/core/packages/user-profile/server-internal", - "@kbn/core-user-profile-server-mocks": "link:packages/core/user-profile/core-user-profile-server-mocks", + "@kbn/core-user-profile-server-mocks": "link:src/core/packages/user-profile/server-mocks", "@kbn/core-user-settings-server": "link:packages/core/user-settings/core-user-settings-server", "@kbn/core-user-settings-server-internal": "link:packages/core/user-settings/core-user-settings-server-internal", "@kbn/core-user-settings-server-mocks": "link:packages/core/user-settings/core-user-settings-server-mocks", diff --git a/packages/core/user-profile/core-user-profile-server-mocks/README.md b/src/core/packages/user-profile/server-mocks/README.md similarity index 100% rename from packages/core/user-profile/core-user-profile-server-mocks/README.md rename to src/core/packages/user-profile/server-mocks/README.md diff --git a/packages/core/user-profile/core-user-profile-server-mocks/index.ts b/src/core/packages/user-profile/server-mocks/index.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server-mocks/index.ts rename to src/core/packages/user-profile/server-mocks/index.ts diff --git a/packages/core/user-profile/core-user-profile-server-mocks/jest.config.js b/src/core/packages/user-profile/server-mocks/jest.config.js similarity index 82% rename from packages/core/user-profile/core-user-profile-server-mocks/jest.config.js rename to src/core/packages/user-profile/server-mocks/jest.config.js index 73e694d6867d4..f6c2fd324b130 100644 --- a/packages/core/user-profile/core-user-profile-server-mocks/jest.config.js +++ b/src/core/packages/user-profile/server-mocks/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/packages/core/user-profile/core-user-profile-server-mocks'], + rootDir: '../../../../..', + roots: ['/src/core/packages/user-profile/server-mocks'], }; diff --git a/packages/core/user-profile/core-user-profile-server-mocks/kibana.jsonc b/src/core/packages/user-profile/server-mocks/kibana.jsonc similarity index 100% rename from packages/core/user-profile/core-user-profile-server-mocks/kibana.jsonc rename to src/core/packages/user-profile/server-mocks/kibana.jsonc diff --git a/packages/core/user-profile/core-user-profile-server-mocks/package.json b/src/core/packages/user-profile/server-mocks/package.json similarity index 100% rename from packages/core/user-profile/core-user-profile-server-mocks/package.json rename to src/core/packages/user-profile/server-mocks/package.json diff --git a/packages/core/user-profile/core-user-profile-server-mocks/src/user_profile_service.mock.ts b/src/core/packages/user-profile/server-mocks/src/user_profile_service.mock.ts similarity index 100% rename from packages/core/user-profile/core-user-profile-server-mocks/src/user_profile_service.mock.ts rename to src/core/packages/user-profile/server-mocks/src/user_profile_service.mock.ts diff --git a/packages/core/user-profile/core-user-profile-server-mocks/tsconfig.json b/src/core/packages/user-profile/server-mocks/tsconfig.json similarity index 85% rename from packages/core/user-profile/core-user-profile-server-mocks/tsconfig.json rename to src/core/packages/user-profile/server-mocks/tsconfig.json index a2f13d1e160c7..b65abaa31c594 100644 --- a/packages/core/user-profile/core-user-profile-server-mocks/tsconfig.json +++ b/src/core/packages/user-profile/server-mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 966c34fcc8ebe..bba048f4fbc4d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -670,8 +670,8 @@ "@kbn/core-user-profile-server/*": ["src/core/packages/user-profile/server/*"], "@kbn/core-user-profile-server-internal": ["src/core/packages/user-profile/server-internal"], "@kbn/core-user-profile-server-internal/*": ["src/core/packages/user-profile/server-internal/*"], - "@kbn/core-user-profile-server-mocks": ["packages/core/user-profile/core-user-profile-server-mocks"], - "@kbn/core-user-profile-server-mocks/*": ["packages/core/user-profile/core-user-profile-server-mocks/*"], + "@kbn/core-user-profile-server-mocks": ["src/core/packages/user-profile/server-mocks"], + "@kbn/core-user-profile-server-mocks/*": ["src/core/packages/user-profile/server-mocks/*"], "@kbn/core-user-settings-server": ["packages/core/user-settings/core-user-settings-server"], "@kbn/core-user-settings-server/*": ["packages/core/user-settings/core-user-settings-server/*"], "@kbn/core-user-settings-server-internal": ["packages/core/user-settings/core-user-settings-server-internal"], diff --git a/yarn.lock b/yarn.lock index c177c5ba324f2..a69624fbd09bf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5149,7 +5149,7 @@ version "0.0.0" uid "" -"@kbn/core-user-profile-server-mocks@link:packages/core/user-profile/core-user-profile-server-mocks": +"@kbn/core-user-profile-server-mocks@link:src/core/packages/user-profile/server-mocks": version "0.0.0" uid "" From c239768ed8d8ebdf7f1b3cb45f0b450885ac23c6 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:56:09 +0100 Subject: [PATCH 136/167] Relocating module `@kbn/crypto-browser` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/private/kbn-ui-shared-deps-src/BUILD.bazel | 2 +- .../platform/packages/shared}/kbn-crypto-browser/BUILD.bazel | 0 .../platform/packages/shared}/kbn-crypto-browser/README.md | 0 .../platform/packages/shared}/kbn-crypto-browser/index.ts | 0 .../packages/shared}/kbn-crypto-browser/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-crypto-browser/kibana.jsonc | 0 .../platform/packages/shared}/kbn-crypto-browser/package.json | 0 .../packages/shared}/kbn-crypto-browser/src/sha256.ts | 0 .../packages/shared}/kbn-crypto-browser/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/shared}/kbn-crypto-browser/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-crypto-browser/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-crypto-browser/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-crypto-browser/jest.config.js (83%) rename {packages => src/platform/packages/shared}/kbn-crypto-browser/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-crypto-browser/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-crypto-browser/src/sha256.ts (100%) rename {packages => src/platform/packages/shared}/kbn-crypto-browser/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 572b30238fb30..c8e93f04548c1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -154,7 +154,6 @@ packages/kbn-cli-dev-mode @elastic/kibana-operations packages/kbn-code-owners @elastic/appex-qa packages/kbn-coloring @elastic/kibana-visualizations packages/kbn-crypto @elastic/kibana-security -packages/kbn-crypto-browser @elastic/kibana-core packages/kbn-cypress-config @elastic/kibana-operations packages/kbn-data-service @elastic/kibana-visualizations @elastic/kibana-data-discovery packages/kbn-dependency-ownership @elastic/kibana-security @@ -534,6 +533,7 @@ src/platform/packages/shared/kbn-cell-actions @elastic/security-threat-hunting-e src/platform/packages/shared/kbn-config @elastic/kibana-core src/platform/packages/shared/kbn-config-schema @elastic/kibana-core src/platform/packages/shared/kbn-content-management-utils @elastic/kibana-data-discovery +src/platform/packages/shared/kbn-crypto-browser @elastic/kibana-core src/platform/packages/shared/kbn-custom-icons @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-data-view-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-datemath @elastic/kibana-data-discovery diff --git a/package.json b/package.json index cfb237b7a5b99..e7e2f4b279793 100644 --- a/package.json +++ b/package.json @@ -415,7 +415,7 @@ "@kbn/core-user-settings-server-mocks": "link:packages/core/user-settings/core-user-settings-server-mocks", "@kbn/cross-cluster-replication-plugin": "link:x-pack/platform/plugins/private/cross_cluster_replication", "@kbn/crypto": "link:packages/kbn-crypto", - "@kbn/crypto-browser": "link:packages/kbn-crypto-browser", + "@kbn/crypto-browser": "link:src/platform/packages/shared/kbn-crypto-browser", "@kbn/custom-branding-plugin": "link:x-pack/platform/plugins/private/custom_branding", "@kbn/custom-icons": "link:src/platform/packages/shared/kbn-custom-icons", "@kbn/custom-integrations": "link:x-pack/solutions/observability/packages/kbn-custom-integrations", diff --git a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel index 6a40cfe171c6e..35c02de021038 100644 --- a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel +++ b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel @@ -29,7 +29,7 @@ webpack_cli( "//packages/kbn-monaco", "//src/platform/packages/shared/kbn-datemath", "//src/platform/packages/shared/kbn-analytics", - "//packages/kbn-crypto-browser", + "//src/platform/packages/shared/kbn-crypto-browser", "//src/platform/packages/shared/kbn-es-query", "//src/platform/packages/shared/kbn-search-errors", "//packages/kbn-std", diff --git a/packages/kbn-crypto-browser/BUILD.bazel b/src/platform/packages/shared/kbn-crypto-browser/BUILD.bazel similarity index 100% rename from packages/kbn-crypto-browser/BUILD.bazel rename to src/platform/packages/shared/kbn-crypto-browser/BUILD.bazel diff --git a/packages/kbn-crypto-browser/README.md b/src/platform/packages/shared/kbn-crypto-browser/README.md similarity index 100% rename from packages/kbn-crypto-browser/README.md rename to src/platform/packages/shared/kbn-crypto-browser/README.md diff --git a/packages/kbn-crypto-browser/index.ts b/src/platform/packages/shared/kbn-crypto-browser/index.ts similarity index 100% rename from packages/kbn-crypto-browser/index.ts rename to src/platform/packages/shared/kbn-crypto-browser/index.ts diff --git a/packages/kbn-crypto-browser/jest.config.js b/src/platform/packages/shared/kbn-crypto-browser/jest.config.js similarity index 83% rename from packages/kbn-crypto-browser/jest.config.js rename to src/platform/packages/shared/kbn-crypto-browser/jest.config.js index 7f549d7ea1ded..0e09faa8380cf 100644 --- a/packages/kbn-crypto-browser/jest.config.js +++ b/src/platform/packages/shared/kbn-crypto-browser/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-crypto-browser'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-crypto-browser'], }; diff --git a/packages/kbn-crypto-browser/kibana.jsonc b/src/platform/packages/shared/kbn-crypto-browser/kibana.jsonc similarity index 100% rename from packages/kbn-crypto-browser/kibana.jsonc rename to src/platform/packages/shared/kbn-crypto-browser/kibana.jsonc diff --git a/packages/kbn-crypto-browser/package.json b/src/platform/packages/shared/kbn-crypto-browser/package.json similarity index 100% rename from packages/kbn-crypto-browser/package.json rename to src/platform/packages/shared/kbn-crypto-browser/package.json diff --git a/packages/kbn-crypto-browser/src/sha256.ts b/src/platform/packages/shared/kbn-crypto-browser/src/sha256.ts similarity index 100% rename from packages/kbn-crypto-browser/src/sha256.ts rename to src/platform/packages/shared/kbn-crypto-browser/src/sha256.ts diff --git a/packages/kbn-crypto-browser/tsconfig.json b/src/platform/packages/shared/kbn-crypto-browser/tsconfig.json similarity index 78% rename from packages/kbn-crypto-browser/tsconfig.json rename to src/platform/packages/shared/kbn-crypto-browser/tsconfig.json index 9bd4f35cf62a7..131ff3e6bb433 100644 --- a/packages/kbn-crypto-browser/tsconfig.json +++ b/src/platform/packages/shared/kbn-crypto-browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index bba048f4fbc4d..e6a965f6bc758 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -682,8 +682,8 @@ "@kbn/cross-cluster-replication-plugin/*": ["x-pack/platform/plugins/private/cross_cluster_replication/*"], "@kbn/crypto": ["packages/kbn-crypto"], "@kbn/crypto/*": ["packages/kbn-crypto/*"], - "@kbn/crypto-browser": ["packages/kbn-crypto-browser"], - "@kbn/crypto-browser/*": ["packages/kbn-crypto-browser/*"], + "@kbn/crypto-browser": ["src/platform/packages/shared/kbn-crypto-browser"], + "@kbn/crypto-browser/*": ["src/platform/packages/shared/kbn-crypto-browser/*"], "@kbn/custom-branding-plugin": ["x-pack/platform/plugins/private/custom_branding"], "@kbn/custom-branding-plugin/*": ["x-pack/platform/plugins/private/custom_branding/*"], "@kbn/custom-icons": ["src/platform/packages/shared/kbn-custom-icons"], diff --git a/yarn.lock b/yarn.lock index a69624fbd09bf..6cac3bd199300 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5177,7 +5177,7 @@ version "0.0.0" uid "" -"@kbn/crypto-browser@link:packages/kbn-crypto-browser": +"@kbn/crypto-browser@link:src/platform/packages/shared/kbn-crypto-browser": version "0.0.0" uid "" From 5f6347b66e7a8b80fc378c2d014fc6f0903de174 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:57:01 +0100 Subject: [PATCH 137/167] Relocating module `@kbn/ebt-tools` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/private/kbn-ui-shared-deps-src/BUILD.bazel | 2 +- .../platform/packages/shared}/kbn-ebt-tools/BUILD.bazel | 0 .../platform/packages/shared}/kbn-ebt-tools/README.md | 0 .../platform/packages/shared}/kbn-ebt-tools/index.ts | 0 .../platform/packages/shared}/kbn-ebt-tools/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-ebt-tools/kibana.jsonc | 0 .../platform/packages/shared}/kbn-ebt-tools/package.json | 0 .../src/performance_metric_events/helpers.test.ts | 0 .../kbn-ebt-tools/src/performance_metric_events/helpers.ts | 0 .../kbn-ebt-tools/src/performance_metric_events/index.ts | 0 .../kbn-ebt-tools/src/performance_metric_events/schema.ts | 0 .../performance_metrics/context/measure_interaction/index.ts | 0 .../context/measure_interaction/measure_interaction.test.tsx | 0 .../src/performance_metrics/context/performance_context.tsx | 0 .../src/performance_metrics/context/use_page_ready.ts | 0 .../performance_metrics/context/use_performance_context.tsx | 0 .../shared}/kbn-ebt-tools/src/performance_metrics/index.tsx | 0 .../src/performance_metrics/performance_markers.ts | 0 .../shared}/kbn-ebt-tools/src/types/apm_rum_core.d.ts | 0 .../platform/packages/shared}/kbn-ebt-tools/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 24 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/src/performance_metric_events/helpers.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/src/performance_metric_events/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/src/performance_metric_events/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/src/performance_metric_events/schema.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/src/performance_metrics/context/measure_interaction/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/src/performance_metrics/context/measure_interaction/measure_interaction.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/src/performance_metrics/context/performance_context.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/src/performance_metrics/context/use_page_ready.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/src/performance_metrics/context/use_performance_context.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/src/performance_metrics/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/src/performance_metrics/performance_markers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/src/types/apm_rum_core.d.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ebt-tools/tsconfig.json (81%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c8e93f04548c1..0f43491993156 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -164,7 +164,6 @@ packages/kbn-dev-proc-runner @elastic/kibana-operations packages/kbn-dev-utils @elastic/kibana-operations packages/kbn-docs-utils @elastic/kibana-operations packages/kbn-dom-drag-drop @elastic/kibana-visualizations @elastic/kibana-data-discovery -packages/kbn-ebt-tools @elastic/kibana-core packages/kbn-es @elastic/kibana-operations packages/kbn-es-archiver @elastic/kibana-operations @elastic/appex-qa packages/kbn-es-errors @elastic/kibana-core @@ -540,6 +539,7 @@ src/platform/packages/shared/kbn-datemath @elastic/kibana-data-discovery src/platform/packages/shared/kbn-discover-contextual-components @elastic/obs-ux-logs-team @elastic/kibana-data-discovery src/platform/packages/shared/kbn-discover-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-doc-links @elastic/docs +src/platform/packages/shared/kbn-ebt-tools @elastic/kibana-core src/platform/packages/shared/kbn-elastic-agent-utils @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-es-query @elastic/kibana-data-discovery src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql diff --git a/package.json b/package.json index e7e2f4b279793..94a1b22cae91d 100644 --- a/package.json +++ b/package.json @@ -461,7 +461,7 @@ "@kbn/discover-utils": "link:src/platform/packages/shared/kbn-discover-utils", "@kbn/doc-links": "link:src/platform/packages/shared/kbn-doc-links", "@kbn/dom-drag-drop": "link:packages/kbn-dom-drag-drop", - "@kbn/ebt-tools": "link:packages/kbn-ebt-tools", + "@kbn/ebt-tools": "link:src/platform/packages/shared/kbn-ebt-tools", "@kbn/ecs-data-quality-dashboard": "link:x-pack/solutions/security/packages/ecs_data_quality_dashboard", "@kbn/ecs-data-quality-dashboard-plugin": "link:x-pack/solutions/security/plugins/ecs_data_quality_dashboard", "@kbn/elastic-agent-utils": "link:src/platform/packages/shared/kbn-elastic-agent-utils", diff --git a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel index 35c02de021038..66f0d1bf74a95 100644 --- a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel +++ b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel @@ -24,7 +24,7 @@ webpack_cli( "//src/platform/packages/shared/kbn-ui-theme", "//packages/kbn-i18n", "//packages/kbn-i18n-react", - "//packages/kbn-ebt-tools", + "//src/platform/packages/shared/kbn-ebt-tools", "//src/platform/packages/shared/kbn-esql-ast", "//packages/kbn-monaco", "//src/platform/packages/shared/kbn-datemath", diff --git a/packages/kbn-ebt-tools/BUILD.bazel b/src/platform/packages/shared/kbn-ebt-tools/BUILD.bazel similarity index 100% rename from packages/kbn-ebt-tools/BUILD.bazel rename to src/platform/packages/shared/kbn-ebt-tools/BUILD.bazel diff --git a/packages/kbn-ebt-tools/README.md b/src/platform/packages/shared/kbn-ebt-tools/README.md similarity index 100% rename from packages/kbn-ebt-tools/README.md rename to src/platform/packages/shared/kbn-ebt-tools/README.md diff --git a/packages/kbn-ebt-tools/index.ts b/src/platform/packages/shared/kbn-ebt-tools/index.ts similarity index 100% rename from packages/kbn-ebt-tools/index.ts rename to src/platform/packages/shared/kbn-ebt-tools/index.ts diff --git a/packages/kbn-ebt-tools/jest.config.js b/src/platform/packages/shared/kbn-ebt-tools/jest.config.js similarity index 84% rename from packages/kbn-ebt-tools/jest.config.js rename to src/platform/packages/shared/kbn-ebt-tools/jest.config.js index 0ddeecd9fdb32..7f223abdf2fc6 100644 --- a/packages/kbn-ebt-tools/jest.config.js +++ b/src/platform/packages/shared/kbn-ebt-tools/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-ebt-tools'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-ebt-tools'], }; diff --git a/packages/kbn-ebt-tools/kibana.jsonc b/src/platform/packages/shared/kbn-ebt-tools/kibana.jsonc similarity index 100% rename from packages/kbn-ebt-tools/kibana.jsonc rename to src/platform/packages/shared/kbn-ebt-tools/kibana.jsonc diff --git a/packages/kbn-ebt-tools/package.json b/src/platform/packages/shared/kbn-ebt-tools/package.json similarity index 100% rename from packages/kbn-ebt-tools/package.json rename to src/platform/packages/shared/kbn-ebt-tools/package.json diff --git a/packages/kbn-ebt-tools/src/performance_metric_events/helpers.test.ts b/src/platform/packages/shared/kbn-ebt-tools/src/performance_metric_events/helpers.test.ts similarity index 100% rename from packages/kbn-ebt-tools/src/performance_metric_events/helpers.test.ts rename to src/platform/packages/shared/kbn-ebt-tools/src/performance_metric_events/helpers.test.ts diff --git a/packages/kbn-ebt-tools/src/performance_metric_events/helpers.ts b/src/platform/packages/shared/kbn-ebt-tools/src/performance_metric_events/helpers.ts similarity index 100% rename from packages/kbn-ebt-tools/src/performance_metric_events/helpers.ts rename to src/platform/packages/shared/kbn-ebt-tools/src/performance_metric_events/helpers.ts diff --git a/packages/kbn-ebt-tools/src/performance_metric_events/index.ts b/src/platform/packages/shared/kbn-ebt-tools/src/performance_metric_events/index.ts similarity index 100% rename from packages/kbn-ebt-tools/src/performance_metric_events/index.ts rename to src/platform/packages/shared/kbn-ebt-tools/src/performance_metric_events/index.ts diff --git a/packages/kbn-ebt-tools/src/performance_metric_events/schema.ts b/src/platform/packages/shared/kbn-ebt-tools/src/performance_metric_events/schema.ts similarity index 100% rename from packages/kbn-ebt-tools/src/performance_metric_events/schema.ts rename to src/platform/packages/shared/kbn-ebt-tools/src/performance_metric_events/schema.ts diff --git a/packages/kbn-ebt-tools/src/performance_metrics/context/measure_interaction/index.ts b/src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/context/measure_interaction/index.ts similarity index 100% rename from packages/kbn-ebt-tools/src/performance_metrics/context/measure_interaction/index.ts rename to src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/context/measure_interaction/index.ts diff --git a/packages/kbn-ebt-tools/src/performance_metrics/context/measure_interaction/measure_interaction.test.tsx b/src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/context/measure_interaction/measure_interaction.test.tsx similarity index 100% rename from packages/kbn-ebt-tools/src/performance_metrics/context/measure_interaction/measure_interaction.test.tsx rename to src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/context/measure_interaction/measure_interaction.test.tsx diff --git a/packages/kbn-ebt-tools/src/performance_metrics/context/performance_context.tsx b/src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/context/performance_context.tsx similarity index 100% rename from packages/kbn-ebt-tools/src/performance_metrics/context/performance_context.tsx rename to src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/context/performance_context.tsx diff --git a/packages/kbn-ebt-tools/src/performance_metrics/context/use_page_ready.ts b/src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/context/use_page_ready.ts similarity index 100% rename from packages/kbn-ebt-tools/src/performance_metrics/context/use_page_ready.ts rename to src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/context/use_page_ready.ts diff --git a/packages/kbn-ebt-tools/src/performance_metrics/context/use_performance_context.tsx b/src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/context/use_performance_context.tsx similarity index 100% rename from packages/kbn-ebt-tools/src/performance_metrics/context/use_performance_context.tsx rename to src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/context/use_performance_context.tsx diff --git a/packages/kbn-ebt-tools/src/performance_metrics/index.tsx b/src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/index.tsx similarity index 100% rename from packages/kbn-ebt-tools/src/performance_metrics/index.tsx rename to src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/index.tsx diff --git a/packages/kbn-ebt-tools/src/performance_metrics/performance_markers.ts b/src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/performance_markers.ts similarity index 100% rename from packages/kbn-ebt-tools/src/performance_metrics/performance_markers.ts rename to src/platform/packages/shared/kbn-ebt-tools/src/performance_metrics/performance_markers.ts diff --git a/packages/kbn-ebt-tools/src/types/apm_rum_core.d.ts b/src/platform/packages/shared/kbn-ebt-tools/src/types/apm_rum_core.d.ts similarity index 100% rename from packages/kbn-ebt-tools/src/types/apm_rum_core.d.ts rename to src/platform/packages/shared/kbn-ebt-tools/src/types/apm_rum_core.d.ts diff --git a/packages/kbn-ebt-tools/tsconfig.json b/src/platform/packages/shared/kbn-ebt-tools/tsconfig.json similarity index 81% rename from packages/kbn-ebt-tools/tsconfig.json rename to src/platform/packages/shared/kbn-ebt-tools/tsconfig.json index f74f8991be327..7a784850a278b 100644 --- a/packages/kbn-ebt-tools/tsconfig.json +++ b/src/platform/packages/shared/kbn-ebt-tools/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": ["jest", "node"] diff --git a/tsconfig.base.json b/tsconfig.base.json index e6a965f6bc758..2c43e31747390 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -790,8 +790,8 @@ "@kbn/docs-utils/*": ["packages/kbn-docs-utils/*"], "@kbn/dom-drag-drop": ["packages/kbn-dom-drag-drop"], "@kbn/dom-drag-drop/*": ["packages/kbn-dom-drag-drop/*"], - "@kbn/ebt-tools": ["packages/kbn-ebt-tools"], - "@kbn/ebt-tools/*": ["packages/kbn-ebt-tools/*"], + "@kbn/ebt-tools": ["src/platform/packages/shared/kbn-ebt-tools"], + "@kbn/ebt-tools/*": ["src/platform/packages/shared/kbn-ebt-tools/*"], "@kbn/ecs-data-quality-dashboard": ["x-pack/solutions/security/packages/ecs_data_quality_dashboard"], "@kbn/ecs-data-quality-dashboard/*": ["x-pack/solutions/security/packages/ecs_data_quality_dashboard/*"], "@kbn/ecs-data-quality-dashboard-plugin": ["x-pack/solutions/security/plugins/ecs_data_quality_dashboard"], diff --git a/yarn.lock b/yarn.lock index 6cac3bd199300..a0130300d519d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5397,7 +5397,7 @@ version "0.0.0" uid "" -"@kbn/ebt-tools@link:packages/kbn-ebt-tools": +"@kbn/ebt-tools@link:src/platform/packages/shared/kbn-ebt-tools": version "0.0.0" uid "" From 1b883d7327548d9272fcaa1ee35e7c913991cd93 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:57:52 +0100 Subject: [PATCH 138/167] Relocating module `@kbn/es-errors` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/shared}/kbn-es-errors/README.md | 0 .../platform/packages/shared}/kbn-es-errors/index.ts | 0 .../platform/packages/shared}/kbn-es-errors/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-es-errors/kibana.jsonc | 0 .../platform/packages/shared}/kbn-es-errors/package.json | 0 .../packages/shared}/kbn-es-errors/src/errors.test.ts | 0 .../platform/packages/shared}/kbn-es-errors/src/errors.ts | 0 .../platform/packages/shared}/kbn-es-errors/src/types.ts | 0 .../platform/packages/shared}/kbn-es-errors/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/kbn-es-errors/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-es-errors/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-errors/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-es-errors/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-es-errors/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-es-errors/src/errors.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-errors/src/errors.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-errors/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-errors/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0f43491993156..020fa88cbe57e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -166,7 +166,6 @@ packages/kbn-docs-utils @elastic/kibana-operations packages/kbn-dom-drag-drop @elastic/kibana-visualizations @elastic/kibana-data-discovery packages/kbn-es @elastic/kibana-operations packages/kbn-es-archiver @elastic/kibana-operations @elastic/appex-qa -packages/kbn-es-errors @elastic/kibana-core packages/kbn-es-types @elastic/kibana-core @elastic/obs-knowledge-team packages/kbn-eslint-config @elastic/kibana-operations packages/kbn-eslint-plugin-css @elastic/appex-sharedux @@ -541,6 +540,7 @@ src/platform/packages/shared/kbn-discover-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-doc-links @elastic/docs src/platform/packages/shared/kbn-ebt-tools @elastic/kibana-core src/platform/packages/shared/kbn-elastic-agent-utils @elastic/obs-ux-logs-team +src/platform/packages/shared/kbn-es-errors @elastic/kibana-core src/platform/packages/shared/kbn-es-query @elastic/kibana-data-discovery src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql diff --git a/package.json b/package.json index 94a1b22cae91d..d56e4cb0f83aa 100644 --- a/package.json +++ b/package.json @@ -482,7 +482,7 @@ "@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-errors": "link:src/platform/packages/shared/kbn-es-errors", "@kbn/es-query": "link:src/platform/packages/shared/kbn-es-query", "@kbn/es-types": "link:packages/kbn-es-types", "@kbn/es-ui-shared-plugin": "link:src/platform/plugins/shared/es_ui_shared", diff --git a/packages/kbn-es-errors/README.md b/src/platform/packages/shared/kbn-es-errors/README.md similarity index 100% rename from packages/kbn-es-errors/README.md rename to src/platform/packages/shared/kbn-es-errors/README.md diff --git a/packages/kbn-es-errors/index.ts b/src/platform/packages/shared/kbn-es-errors/index.ts similarity index 100% rename from packages/kbn-es-errors/index.ts rename to src/platform/packages/shared/kbn-es-errors/index.ts diff --git a/packages/kbn-es-errors/jest.config.js b/src/platform/packages/shared/kbn-es-errors/jest.config.js similarity index 84% rename from packages/kbn-es-errors/jest.config.js rename to src/platform/packages/shared/kbn-es-errors/jest.config.js index 248fb8e70af56..1366419656112 100644 --- a/packages/kbn-es-errors/jest.config.js +++ b/src/platform/packages/shared/kbn-es-errors/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-es-errors'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-es-errors'], }; diff --git a/packages/kbn-es-errors/kibana.jsonc b/src/platform/packages/shared/kbn-es-errors/kibana.jsonc similarity index 100% rename from packages/kbn-es-errors/kibana.jsonc rename to src/platform/packages/shared/kbn-es-errors/kibana.jsonc diff --git a/packages/kbn-es-errors/package.json b/src/platform/packages/shared/kbn-es-errors/package.json similarity index 100% rename from packages/kbn-es-errors/package.json rename to src/platform/packages/shared/kbn-es-errors/package.json diff --git a/packages/kbn-es-errors/src/errors.test.ts b/src/platform/packages/shared/kbn-es-errors/src/errors.test.ts similarity index 100% rename from packages/kbn-es-errors/src/errors.test.ts rename to src/platform/packages/shared/kbn-es-errors/src/errors.test.ts diff --git a/packages/kbn-es-errors/src/errors.ts b/src/platform/packages/shared/kbn-es-errors/src/errors.ts similarity index 100% rename from packages/kbn-es-errors/src/errors.ts rename to src/platform/packages/shared/kbn-es-errors/src/errors.ts diff --git a/packages/kbn-es-errors/src/types.ts b/src/platform/packages/shared/kbn-es-errors/src/types.ts similarity index 100% rename from packages/kbn-es-errors/src/types.ts rename to src/platform/packages/shared/kbn-es-errors/src/types.ts diff --git a/packages/kbn-es-errors/tsconfig.json b/src/platform/packages/shared/kbn-es-errors/tsconfig.json similarity index 78% rename from packages/kbn-es-errors/tsconfig.json rename to src/platform/packages/shared/kbn-es-errors/tsconfig.json index 9bd4f35cf62a7..131ff3e6bb433 100644 --- a/packages/kbn-es-errors/tsconfig.json +++ b/src/platform/packages/shared/kbn-es-errors/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 2c43e31747390..22b7b8e2ed30b 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -836,8 +836,8 @@ "@kbn/es/*": ["packages/kbn-es/*"], "@kbn/es-archiver": ["packages/kbn-es-archiver"], "@kbn/es-archiver/*": ["packages/kbn-es-archiver/*"], - "@kbn/es-errors": ["packages/kbn-es-errors"], - "@kbn/es-errors/*": ["packages/kbn-es-errors/*"], + "@kbn/es-errors": ["src/platform/packages/shared/kbn-es-errors"], + "@kbn/es-errors/*": ["src/platform/packages/shared/kbn-es-errors/*"], "@kbn/es-query": ["src/platform/packages/shared/kbn-es-query"], "@kbn/es-query/*": ["src/platform/packages/shared/kbn-es-query/*"], "@kbn/es-types": ["packages/kbn-es-types"], diff --git a/yarn.lock b/yarn.lock index a0130300d519d..6e5ce9944f38f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5485,7 +5485,7 @@ version "0.0.0" uid "" -"@kbn/es-errors@link:packages/kbn-es-errors": +"@kbn/es-errors@link:src/platform/packages/shared/kbn-es-errors": version "0.0.0" uid "" From 455279568dd35e9bec436ec79a8b691eee198d54 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:58:43 +0100 Subject: [PATCH 139/167] Relocating module `@kbn/es-types` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/shared}/kbn-es-types/README.md | 0 .../platform/packages/shared}/kbn-es-types/index.ts | 0 .../platform/packages/shared}/kbn-es-types/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-es-types/kibana.jsonc | 0 .../platform/packages/shared}/kbn-es-types/package.json | 0 .../platform/packages/shared}/kbn-es-types/src/index.ts | 0 .../platform/packages/shared}/kbn-es-types/src/search.test.ts | 0 .../platform/packages/shared}/kbn-es-types/src/search.ts | 0 .../platform/packages/shared}/kbn-es-types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 13 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/kbn-es-types/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-es-types/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-types/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-es-types/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-es-types/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-es-types/src/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-types/src/search.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-types/src/search.ts (100%) rename {packages => src/platform/packages/shared}/kbn-es-types/tsconfig.json (78%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 020fa88cbe57e..258e6b56de2bb 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -166,7 +166,6 @@ packages/kbn-docs-utils @elastic/kibana-operations packages/kbn-dom-drag-drop @elastic/kibana-visualizations @elastic/kibana-data-discovery packages/kbn-es @elastic/kibana-operations packages/kbn-es-archiver @elastic/kibana-operations @elastic/appex-qa -packages/kbn-es-types @elastic/kibana-core @elastic/obs-knowledge-team packages/kbn-eslint-config @elastic/kibana-operations packages/kbn-eslint-plugin-css @elastic/appex-sharedux packages/kbn-eslint-plugin-disable @elastic/kibana-operations @@ -542,6 +541,7 @@ src/platform/packages/shared/kbn-ebt-tools @elastic/kibana-core src/platform/packages/shared/kbn-elastic-agent-utils @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-es-errors @elastic/kibana-core src/platform/packages/shared/kbn-es-query @elastic/kibana-data-discovery +src/platform/packages/shared/kbn-es-types @elastic/kibana-core @elastic/obs-knowledge-team src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-esql diff --git a/package.json b/package.json index d56e4cb0f83aa..8235fb554b0dc 100644 --- a/package.json +++ b/package.json @@ -484,7 +484,7 @@ "@kbn/error-boundary-example-plugin": "link:examples/error_boundary", "@kbn/es-errors": "link:src/platform/packages/shared/kbn-es-errors", "@kbn/es-query": "link:src/platform/packages/shared/kbn-es-query", - "@kbn/es-types": "link:packages/kbn-es-types", + "@kbn/es-types": "link:src/platform/packages/shared/kbn-es-types", "@kbn/es-ui-shared-plugin": "link:src/platform/plugins/shared/es_ui_shared", "@kbn/eso-model-version-example": "link:examples/eso_model_version_example", "@kbn/eso-plugin": "link:x-pack/test/encrypted_saved_objects_api_integration/plugins/api_consumer_plugin", diff --git a/packages/kbn-es-types/README.md b/src/platform/packages/shared/kbn-es-types/README.md similarity index 100% rename from packages/kbn-es-types/README.md rename to src/platform/packages/shared/kbn-es-types/README.md diff --git a/packages/kbn-es-types/index.ts b/src/platform/packages/shared/kbn-es-types/index.ts similarity index 100% rename from packages/kbn-es-types/index.ts rename to src/platform/packages/shared/kbn-es-types/index.ts diff --git a/packages/kbn-es-types/jest.config.js b/src/platform/packages/shared/kbn-es-types/jest.config.js similarity index 84% rename from packages/kbn-es-types/jest.config.js rename to src/platform/packages/shared/kbn-es-types/jest.config.js index de90d5a76ef1f..e9f81f1e10cbd 100644 --- a/packages/kbn-es-types/jest.config.js +++ b/src/platform/packages/shared/kbn-es-types/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-es-types'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-es-types'], }; diff --git a/packages/kbn-es-types/kibana.jsonc b/src/platform/packages/shared/kbn-es-types/kibana.jsonc similarity index 100% rename from packages/kbn-es-types/kibana.jsonc rename to src/platform/packages/shared/kbn-es-types/kibana.jsonc diff --git a/packages/kbn-es-types/package.json b/src/platform/packages/shared/kbn-es-types/package.json similarity index 100% rename from packages/kbn-es-types/package.json rename to src/platform/packages/shared/kbn-es-types/package.json diff --git a/packages/kbn-es-types/src/index.ts b/src/platform/packages/shared/kbn-es-types/src/index.ts similarity index 100% rename from packages/kbn-es-types/src/index.ts rename to src/platform/packages/shared/kbn-es-types/src/index.ts diff --git a/packages/kbn-es-types/src/search.test.ts b/src/platform/packages/shared/kbn-es-types/src/search.test.ts similarity index 100% rename from packages/kbn-es-types/src/search.test.ts rename to src/platform/packages/shared/kbn-es-types/src/search.test.ts diff --git a/packages/kbn-es-types/src/search.ts b/src/platform/packages/shared/kbn-es-types/src/search.ts similarity index 100% rename from packages/kbn-es-types/src/search.ts rename to src/platform/packages/shared/kbn-es-types/src/search.ts diff --git a/packages/kbn-es-types/tsconfig.json b/src/platform/packages/shared/kbn-es-types/tsconfig.json similarity index 78% rename from packages/kbn-es-types/tsconfig.json rename to src/platform/packages/shared/kbn-es-types/tsconfig.json index b72f7b0a15c5c..d49872c3b2cf3 100644 --- a/packages/kbn-es-types/tsconfig.json +++ b/src/platform/packages/shared/kbn-es-types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 22b7b8e2ed30b..975d7ac10facb 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -840,8 +840,8 @@ "@kbn/es-errors/*": ["src/platform/packages/shared/kbn-es-errors/*"], "@kbn/es-query": ["src/platform/packages/shared/kbn-es-query"], "@kbn/es-query/*": ["src/platform/packages/shared/kbn-es-query/*"], - "@kbn/es-types": ["packages/kbn-es-types"], - "@kbn/es-types/*": ["packages/kbn-es-types/*"], + "@kbn/es-types": ["src/platform/packages/shared/kbn-es-types"], + "@kbn/es-types/*": ["src/platform/packages/shared/kbn-es-types/*"], "@kbn/es-ui-shared-plugin": ["src/platform/plugins/shared/es_ui_shared"], "@kbn/es-ui-shared-plugin/*": ["src/platform/plugins/shared/es_ui_shared/*"], "@kbn/eslint-config": ["packages/kbn-eslint-config"], diff --git a/yarn.lock b/yarn.lock index 6e5ce9944f38f..fe104ac9c6d53 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5493,7 +5493,7 @@ version "0.0.0" uid "" -"@kbn/es-types@link:packages/kbn-es-types": +"@kbn/es-types@link:src/platform/packages/shared/kbn-es-types": version "0.0.0" uid "" From bb42e41acf188f141e92c53944c45ff9152ab7f4 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Fri, 3 Jan 2025 23:59:35 +0100 Subject: [PATCH 140/167] Relocating module `@kbn/features-plugin` --- .eslintrc.js | 2 +- .github/CODEOWNERS | 4 ++-- .../architecture/security/feature-registration.asciidoc | 8 ++++---- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- x-pack/.i18nrc.json | 2 +- .../src/privileges/feature_privilege_builder/cases.ts | 2 +- .../plugins/shared}/features/README.md | 0 .../shared}/features/common/alerting_kibana_privilege.ts | 0 .../shared}/features/common/elasticsearch_feature.ts | 0 .../features/common/feature_elasticsearch_privileges.ts | 0 .../shared}/features/common/feature_kibana_privileges.ts | 2 +- .../common/feature_kibana_privileges_reference.ts | 0 .../plugins/shared}/features/common/index.ts | 0 .../plugins/shared}/features/common/kibana_feature.ts | 0 .../shared}/features/common/reserved_kibana_privilege.ts | 0 .../plugins/shared}/features/common/sub_feature.ts | 0 .../plugins/shared}/features/jest.config.js | 8 ++++---- .../plugins/shared}/features/kibana.jsonc | 0 .../shared}/features/public/features_api_client.test.ts | 0 .../shared}/features/public/features_api_client.ts | 0 .../plugins/shared}/features/public/index.ts | 0 .../plugins/shared}/features/public/mocks.ts | 0 .../plugins/shared}/features/public/plugin.test.ts | 0 .../plugins/shared}/features/public/plugin.ts | 0 .../server/__snapshots__/feature_registry.test.ts.snap | 0 .../server/__snapshots__/oss_features.test.ts.snap | 0 .../plugins/shared}/features/server/config.test.ts | 0 .../plugins/shared}/features/server/config.ts | 0 .../feature_privilege_iterator.test.ts | 0 .../feature_privilege_iterator.ts | 0 .../features/server/feature_privilege_iterator/index.ts | 0 .../sub_feature_privilege_iterator.ts | 0 .../shared}/features/server/feature_registry.test.ts | 0 .../plugins/shared}/features/server/feature_registry.ts | 0 .../plugins/shared}/features/server/feature_schema.ts | 0 .../plugins/shared}/features/server/index.ts | 0 .../plugins/shared}/features/server/mocks.ts | 0 .../plugins/shared}/features/server/oss_features.test.ts | 0 .../plugins/shared}/features/server/oss_features.ts | 0 .../plugins/shared}/features/server/plugin.test.ts | 0 .../plugins/shared}/features/server/plugin.ts | 0 .../plugins/shared}/features/server/routes/index.test.ts | 0 .../plugins/shared}/features/server/routes/index.ts | 0 .../plugins/shared}/features/server/types.ts | 0 .../features/server/ui_capabilities_for_features.test.ts | 0 .../features/server/ui_capabilities_for_features.ts | 0 .../plugins/shared}/features/tsconfig.json | 2 +- .../observability_ai_assistant/server/plugin.ts | 2 +- .../solutions/observability/plugins/apm/server/feature.ts | 2 +- .../observability/plugins/inventory/server/feature.ts | 2 +- .../observability/plugins/profiling/server/feature.ts | 2 +- yarn.lock | 2 +- 54 files changed, 24 insertions(+), 24 deletions(-) rename x-pack/{plugins => platform/plugins/shared}/features/README.md (100%) rename x-pack/{plugins => platform/plugins/shared}/features/common/alerting_kibana_privilege.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/common/elasticsearch_feature.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/common/feature_elasticsearch_privileges.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/common/feature_kibana_privileges.ts (99%) rename x-pack/{plugins => platform/plugins/shared}/features/common/feature_kibana_privileges_reference.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/common/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/common/kibana_feature.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/common/reserved_kibana_privilege.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/common/sub_feature.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/jest.config.js (62%) rename x-pack/{plugins => platform/plugins/shared}/features/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/features/public/features_api_client.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/public/features_api_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/public/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/public/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/public/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/__snapshots__/feature_registry.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/__snapshots__/oss_features.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/config.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/feature_privilege_iterator/feature_privilege_iterator.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/feature_privilege_iterator/feature_privilege_iterator.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/feature_privilege_iterator/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/feature_privilege_iterator/sub_feature_privilege_iterator.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/feature_registry.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/feature_registry.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/feature_schema.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/oss_features.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/oss_features.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/routes/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/ui_capabilities_for_features.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/server/ui_capabilities_for_features.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/features/tsconfig.json (87%) diff --git a/.eslintrc.js b/.eslintrc.js index 9663b30907320..dd8e842c31068 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1938,7 +1938,7 @@ module.exports = { files: [ // core-team owned code 'src/core/**', - 'x-pack/plugins/features/**', + 'x-pack/platform/plugins/shared/features/**', 'x-pack/plugins/licensing/**', 'x-pack/platform/plugins/shared/global_search/**', 'x-pack/platform/plugins/shared/cloud/**', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 258e6b56de2bb..98aae6b4731d0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -872,6 +872,7 @@ x-pack/platform/plugins/shared/dataset_quality @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/embeddable_enhanced @elastic/kibana-presentation x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities x-pack/platform/plugins/shared/event_log @elastic/response-ops +x-pack/platform/plugins/shared/features @elastic/kibana-core x-pack/platform/plugins/shared/fields_metadata @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/fleet @elastic/fleet x-pack/platform/plugins/shared/global_search @elastic/appex-sharedux @@ -897,7 +898,6 @@ x-pack/platform/plugins/shared/task_manager @elastic/response-ops x-pack/platform/plugins/shared/triggers_actions_ui @elastic/response-ops x-pack/plugins/drilldowns/url_drilldown @elastic/appex-sharedux x-pack/plugins/encrypted_saved_objects @elastic/kibana-security -x-pack/plugins/features @elastic/kibana-core x-pack/plugins/graph @elastic/kibana-visualizations x-pack/plugins/lens @elastic/kibana-visualizations x-pack/plugins/licensing @elastic/kibana-core @@ -1827,7 +1827,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql #CC# /src/core/server/csp/ @elastic/kibana-core #CC# /src/plugins/saved_objects/ @elastic/kibana-core #CC# /x-pack/platform/plugins/shared/cloud/ @elastic/kibana-core -#CC# /x-pack/plugins/features/ @elastic/kibana-core +#CC# /x-pack/platform/plugins/shared/features/ @elastic/kibana-core #CC# /x-pack/plugins/global_search/ @elastic/kibana-core #CC# /src/plugins/newsfeed @elastic/kibana-core #CC# /x-pack/plugins/global_search_providers/ @elastic/kibana-core diff --git a/docs/developer/architecture/security/feature-registration.asciidoc b/docs/developer/architecture/security/feature-registration.asciidoc index b53df66f9a94e..f1494b0a51b45 100644 --- a/docs/developer/architecture/security/feature-registration.asciidoc +++ b/docs/developer/architecture/security/feature-registration.asciidoc @@ -21,7 +21,7 @@ setup(core, { features }) { ----------- === Feature details -Registering a feature consists of the following fields. For more information, consult the {kib-repo}blob/{branch}/x-pack/plugins/features/server/feature_registry.ts[feature registry interface]. +Registering a feature consists of the following fields. For more information, consult the {kib-repo}blob/{branch}/x-pack/platform/plugins/shared/features/server/feature_registry.ts[feature registry interface]. [cols="1a, 1a, 1a, 1a"] @@ -50,12 +50,12 @@ of features within the management screens. |An array of applications this feature enables. Typically, all of your plugin's apps (from `uiExports`) will be included here. |`privileges` (required) -|{kib-repo}blob/{branch}/x-pack/plugins/features/common/kibana_feature.ts[`KibanaFeatureConfig`]. +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/features/common/kibana_feature.ts[`KibanaFeatureConfig`]. |See <> and <> |The set of privileges this feature requires to function. |`subFeatures` (optional) -|{kib-repo}blob/{branch}/x-pack/plugins/features/common/kibana_feature.ts[`KibanaFeatureConfig`]. +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/features/common/kibana_feature.ts[`KibanaFeatureConfig`]. |See <> |The set of subfeatures that enables finer access control than the `all` and `read` feature privileges. These options are only available in the Gold subscription level and higher. @@ -69,7 +69,7 @@ of features within the management screens. ==== Privilege definition The `privileges` section of feature registration allows plugins to implement read/write and read-only modes for their applications. -For a full explanation of fields and options, consult the {kib-repo}blob/{branch}/x-pack/plugins/features/server/feature_registry.ts[feature registry interface]. +For a full explanation of fields and options, consult the {kib-repo}blob/{branch}/x-pack/platform/plugins/shared/features/server/feature_registry.ts[feature registry interface]. === Using UI Capabilities diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 63e83c2cdc211..e106cfbd8d262 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -593,7 +593,7 @@ activities. |A shared component for visualizing observability data types via lens embeddable. For further details. -|{kib-repo}blob/{branch}/x-pack/plugins/features/README.md[features] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/features/README.md[features] |The features plugin enhance Kibana with a per-feature privilege system. diff --git a/package.json b/package.json index 8235fb554b0dc..ab84f7ffb9475 100644 --- a/package.json +++ b/package.json @@ -524,7 +524,7 @@ "@kbn/feature-controls-examples-plugin": "link:examples/feature_control_examples", "@kbn/feature-flags-example-plugin": "link:examples/feature_flags_example", "@kbn/feature-usage-test-plugin": "link:x-pack/test/plugin_api_integration/plugins/feature_usage_test", - "@kbn/features-plugin": "link:x-pack/plugins/features", + "@kbn/features-plugin": "link:x-pack/platform/plugins/shared/features", "@kbn/features-provider-plugin": "link:x-pack/test/security_api_integration/plugins/features_provider", "@kbn/fec-alerts-test-plugin": "link:x-pack/test/functional_execution_context/plugins/alerts", "@kbn/field-formats-example-plugin": "link:examples/field_formats_example", diff --git a/tsconfig.base.json b/tsconfig.base.json index 975d7ac10facb..d176fa6ce0493 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -938,8 +938,8 @@ "@kbn/feature-flags-example-plugin/*": ["examples/feature_flags_example/*"], "@kbn/feature-usage-test-plugin": ["x-pack/test/plugin_api_integration/plugins/feature_usage_test"], "@kbn/feature-usage-test-plugin/*": ["x-pack/test/plugin_api_integration/plugins/feature_usage_test/*"], - "@kbn/features-plugin": ["x-pack/plugins/features"], - "@kbn/features-plugin/*": ["x-pack/plugins/features/*"], + "@kbn/features-plugin": ["x-pack/platform/plugins/shared/features"], + "@kbn/features-plugin/*": ["x-pack/platform/plugins/shared/features/*"], "@kbn/features-provider-plugin": ["x-pack/test/security_api_integration/plugins/features_provider"], "@kbn/features-provider-plugin/*": ["x-pack/test/security_api_integration/plugins/features_provider/*"], "@kbn/fec-alerts-test-plugin": ["x-pack/test/functional_execution_context/plugins/alerts"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index cc950d57c03b4..bf2a720c1da76 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -42,7 +42,7 @@ "xpack.embeddableEnhanced": "platform/plugins/shared/embeddable_enhanced", "xpack.endpoint": "plugins/endpoint", "xpack.enterpriseSearch": "solutions/search/plugins/enterprise_search", - "xpack.features": "plugins/features", + "xpack.features": "platform/plugins/shared/features", "xpack.dataVisualizer": "platform/plugins/private/data_visualizer", "xpack.exploratoryView": "solutions/observability/plugins/exploratory_view", "xpack.fileUpload": "platform/plugins/private/file_upload", diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts b/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts index ec4df77be6cc8..5876ef50ea191 100644 --- a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts +++ b/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts @@ -15,7 +15,7 @@ export type CasesSupportedOperations = (typeof allOperations)[number]; /** * If you add a new operation type (all, push, update, etc) you should also - * extend the mapping here x-pack/plugins/features/server/feature_privilege_iterator/feature_privilege_iterator.ts + * extend the mapping here x-pack/platform/plugins/shared/features/server/feature_privilege_iterator/feature_privilege_iterator.ts * * Also if you add a new operation (createCase, updateCase, etc) here you'll likely also need to make changes here: * x-pack/platform/plugins/shared/cases/server/authorization/index.ts and here x-pack/platform/plugins/shared/cases/server/connectors/cases/utils.ts diff --git a/x-pack/plugins/features/README.md b/x-pack/platform/plugins/shared/features/README.md similarity index 100% rename from x-pack/plugins/features/README.md rename to x-pack/platform/plugins/shared/features/README.md diff --git a/x-pack/plugins/features/common/alerting_kibana_privilege.ts b/x-pack/platform/plugins/shared/features/common/alerting_kibana_privilege.ts similarity index 100% rename from x-pack/plugins/features/common/alerting_kibana_privilege.ts rename to x-pack/platform/plugins/shared/features/common/alerting_kibana_privilege.ts diff --git a/x-pack/plugins/features/common/elasticsearch_feature.ts b/x-pack/platform/plugins/shared/features/common/elasticsearch_feature.ts similarity index 100% rename from x-pack/plugins/features/common/elasticsearch_feature.ts rename to x-pack/platform/plugins/shared/features/common/elasticsearch_feature.ts diff --git a/x-pack/plugins/features/common/feature_elasticsearch_privileges.ts b/x-pack/platform/plugins/shared/features/common/feature_elasticsearch_privileges.ts similarity index 100% rename from x-pack/plugins/features/common/feature_elasticsearch_privileges.ts rename to x-pack/platform/plugins/shared/features/common/feature_elasticsearch_privileges.ts diff --git a/x-pack/plugins/features/common/feature_kibana_privileges.ts b/x-pack/platform/plugins/shared/features/common/feature_kibana_privileges.ts similarity index 99% rename from x-pack/plugins/features/common/feature_kibana_privileges.ts rename to x-pack/platform/plugins/shared/features/common/feature_kibana_privileges.ts index a7d39669ef00a..725ababcaaf90 100644 --- a/x-pack/plugins/features/common/feature_kibana_privileges.ts +++ b/x-pack/platform/plugins/shared/features/common/feature_kibana_privileges.ts @@ -71,7 +71,7 @@ export interface FeatureKibanaPrivileges { * } * ``` * - * NOTE: It is important to name your tags in a way that will not collide with other plugins/features. + * NOTE: It is important to name your tags in a way that will not collide with other platform/plugins/shared/features. * A generic tag name like "access:read" could be used elsewhere, and access to that API endpoint would also * extend to any routes you have also tagged with that name. */ diff --git a/x-pack/plugins/features/common/feature_kibana_privileges_reference.ts b/x-pack/platform/plugins/shared/features/common/feature_kibana_privileges_reference.ts similarity index 100% rename from x-pack/plugins/features/common/feature_kibana_privileges_reference.ts rename to x-pack/platform/plugins/shared/features/common/feature_kibana_privileges_reference.ts diff --git a/x-pack/plugins/features/common/index.ts b/x-pack/platform/plugins/shared/features/common/index.ts similarity index 100% rename from x-pack/plugins/features/common/index.ts rename to x-pack/platform/plugins/shared/features/common/index.ts diff --git a/x-pack/plugins/features/common/kibana_feature.ts b/x-pack/platform/plugins/shared/features/common/kibana_feature.ts similarity index 100% rename from x-pack/plugins/features/common/kibana_feature.ts rename to x-pack/platform/plugins/shared/features/common/kibana_feature.ts diff --git a/x-pack/plugins/features/common/reserved_kibana_privilege.ts b/x-pack/platform/plugins/shared/features/common/reserved_kibana_privilege.ts similarity index 100% rename from x-pack/plugins/features/common/reserved_kibana_privilege.ts rename to x-pack/platform/plugins/shared/features/common/reserved_kibana_privilege.ts diff --git a/x-pack/plugins/features/common/sub_feature.ts b/x-pack/platform/plugins/shared/features/common/sub_feature.ts similarity index 100% rename from x-pack/plugins/features/common/sub_feature.ts rename to x-pack/platform/plugins/shared/features/common/sub_feature.ts diff --git a/x-pack/plugins/features/jest.config.js b/x-pack/platform/plugins/shared/features/jest.config.js similarity index 62% rename from x-pack/plugins/features/jest.config.js rename to x-pack/platform/plugins/shared/features/jest.config.js index 7d333047c491f..f467c256442d0 100644 --- a/x-pack/plugins/features/jest.config.js +++ b/x-pack/platform/plugins/shared/features/jest.config.js @@ -7,9 +7,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/features'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/features', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/features'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/features', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/features/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/x-pack/platform/plugins/shared/features/{common,public,server}/**/*.{ts,tsx}'], }; diff --git a/x-pack/plugins/features/kibana.jsonc b/x-pack/platform/plugins/shared/features/kibana.jsonc similarity index 100% rename from x-pack/plugins/features/kibana.jsonc rename to x-pack/platform/plugins/shared/features/kibana.jsonc diff --git a/x-pack/plugins/features/public/features_api_client.test.ts b/x-pack/platform/plugins/shared/features/public/features_api_client.test.ts similarity index 100% rename from x-pack/plugins/features/public/features_api_client.test.ts rename to x-pack/platform/plugins/shared/features/public/features_api_client.test.ts diff --git a/x-pack/plugins/features/public/features_api_client.ts b/x-pack/platform/plugins/shared/features/public/features_api_client.ts similarity index 100% rename from x-pack/plugins/features/public/features_api_client.ts rename to x-pack/platform/plugins/shared/features/public/features_api_client.ts diff --git a/x-pack/plugins/features/public/index.ts b/x-pack/platform/plugins/shared/features/public/index.ts similarity index 100% rename from x-pack/plugins/features/public/index.ts rename to x-pack/platform/plugins/shared/features/public/index.ts diff --git a/x-pack/plugins/features/public/mocks.ts b/x-pack/platform/plugins/shared/features/public/mocks.ts similarity index 100% rename from x-pack/plugins/features/public/mocks.ts rename to x-pack/platform/plugins/shared/features/public/mocks.ts diff --git a/x-pack/plugins/features/public/plugin.test.ts b/x-pack/platform/plugins/shared/features/public/plugin.test.ts similarity index 100% rename from x-pack/plugins/features/public/plugin.test.ts rename to x-pack/platform/plugins/shared/features/public/plugin.test.ts diff --git a/x-pack/plugins/features/public/plugin.ts b/x-pack/platform/plugins/shared/features/public/plugin.ts similarity index 100% rename from x-pack/plugins/features/public/plugin.ts rename to x-pack/platform/plugins/shared/features/public/plugin.ts diff --git a/x-pack/plugins/features/server/__snapshots__/feature_registry.test.ts.snap b/x-pack/platform/plugins/shared/features/server/__snapshots__/feature_registry.test.ts.snap similarity index 100% rename from x-pack/plugins/features/server/__snapshots__/feature_registry.test.ts.snap rename to x-pack/platform/plugins/shared/features/server/__snapshots__/feature_registry.test.ts.snap diff --git a/x-pack/plugins/features/server/__snapshots__/oss_features.test.ts.snap b/x-pack/platform/plugins/shared/features/server/__snapshots__/oss_features.test.ts.snap similarity index 100% rename from x-pack/plugins/features/server/__snapshots__/oss_features.test.ts.snap rename to x-pack/platform/plugins/shared/features/server/__snapshots__/oss_features.test.ts.snap diff --git a/x-pack/plugins/features/server/config.test.ts b/x-pack/platform/plugins/shared/features/server/config.test.ts similarity index 100% rename from x-pack/plugins/features/server/config.test.ts rename to x-pack/platform/plugins/shared/features/server/config.test.ts diff --git a/x-pack/plugins/features/server/config.ts b/x-pack/platform/plugins/shared/features/server/config.ts similarity index 100% rename from x-pack/plugins/features/server/config.ts rename to x-pack/platform/plugins/shared/features/server/config.ts diff --git a/x-pack/plugins/features/server/feature_privilege_iterator/feature_privilege_iterator.test.ts b/x-pack/platform/plugins/shared/features/server/feature_privilege_iterator/feature_privilege_iterator.test.ts similarity index 100% rename from x-pack/plugins/features/server/feature_privilege_iterator/feature_privilege_iterator.test.ts rename to x-pack/platform/plugins/shared/features/server/feature_privilege_iterator/feature_privilege_iterator.test.ts diff --git a/x-pack/plugins/features/server/feature_privilege_iterator/feature_privilege_iterator.ts b/x-pack/platform/plugins/shared/features/server/feature_privilege_iterator/feature_privilege_iterator.ts similarity index 100% rename from x-pack/plugins/features/server/feature_privilege_iterator/feature_privilege_iterator.ts rename to x-pack/platform/plugins/shared/features/server/feature_privilege_iterator/feature_privilege_iterator.ts diff --git a/x-pack/plugins/features/server/feature_privilege_iterator/index.ts b/x-pack/platform/plugins/shared/features/server/feature_privilege_iterator/index.ts similarity index 100% rename from x-pack/plugins/features/server/feature_privilege_iterator/index.ts rename to x-pack/platform/plugins/shared/features/server/feature_privilege_iterator/index.ts diff --git a/x-pack/plugins/features/server/feature_privilege_iterator/sub_feature_privilege_iterator.ts b/x-pack/platform/plugins/shared/features/server/feature_privilege_iterator/sub_feature_privilege_iterator.ts similarity index 100% rename from x-pack/plugins/features/server/feature_privilege_iterator/sub_feature_privilege_iterator.ts rename to x-pack/platform/plugins/shared/features/server/feature_privilege_iterator/sub_feature_privilege_iterator.ts diff --git a/x-pack/plugins/features/server/feature_registry.test.ts b/x-pack/platform/plugins/shared/features/server/feature_registry.test.ts similarity index 100% rename from x-pack/plugins/features/server/feature_registry.test.ts rename to x-pack/platform/plugins/shared/features/server/feature_registry.test.ts diff --git a/x-pack/plugins/features/server/feature_registry.ts b/x-pack/platform/plugins/shared/features/server/feature_registry.ts similarity index 100% rename from x-pack/plugins/features/server/feature_registry.ts rename to x-pack/platform/plugins/shared/features/server/feature_registry.ts diff --git a/x-pack/plugins/features/server/feature_schema.ts b/x-pack/platform/plugins/shared/features/server/feature_schema.ts similarity index 100% rename from x-pack/plugins/features/server/feature_schema.ts rename to x-pack/platform/plugins/shared/features/server/feature_schema.ts diff --git a/x-pack/plugins/features/server/index.ts b/x-pack/platform/plugins/shared/features/server/index.ts similarity index 100% rename from x-pack/plugins/features/server/index.ts rename to x-pack/platform/plugins/shared/features/server/index.ts diff --git a/x-pack/plugins/features/server/mocks.ts b/x-pack/platform/plugins/shared/features/server/mocks.ts similarity index 100% rename from x-pack/plugins/features/server/mocks.ts rename to x-pack/platform/plugins/shared/features/server/mocks.ts diff --git a/x-pack/plugins/features/server/oss_features.test.ts b/x-pack/platform/plugins/shared/features/server/oss_features.test.ts similarity index 100% rename from x-pack/plugins/features/server/oss_features.test.ts rename to x-pack/platform/plugins/shared/features/server/oss_features.test.ts diff --git a/x-pack/plugins/features/server/oss_features.ts b/x-pack/platform/plugins/shared/features/server/oss_features.ts similarity index 100% rename from x-pack/plugins/features/server/oss_features.ts rename to x-pack/platform/plugins/shared/features/server/oss_features.ts diff --git a/x-pack/plugins/features/server/plugin.test.ts b/x-pack/platform/plugins/shared/features/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/features/server/plugin.test.ts rename to x-pack/platform/plugins/shared/features/server/plugin.test.ts diff --git a/x-pack/plugins/features/server/plugin.ts b/x-pack/platform/plugins/shared/features/server/plugin.ts similarity index 100% rename from x-pack/plugins/features/server/plugin.ts rename to x-pack/platform/plugins/shared/features/server/plugin.ts diff --git a/x-pack/plugins/features/server/routes/index.test.ts b/x-pack/platform/plugins/shared/features/server/routes/index.test.ts similarity index 100% rename from x-pack/plugins/features/server/routes/index.test.ts rename to x-pack/platform/plugins/shared/features/server/routes/index.test.ts diff --git a/x-pack/plugins/features/server/routes/index.ts b/x-pack/platform/plugins/shared/features/server/routes/index.ts similarity index 100% rename from x-pack/plugins/features/server/routes/index.ts rename to x-pack/platform/plugins/shared/features/server/routes/index.ts diff --git a/x-pack/plugins/features/server/types.ts b/x-pack/platform/plugins/shared/features/server/types.ts similarity index 100% rename from x-pack/plugins/features/server/types.ts rename to x-pack/platform/plugins/shared/features/server/types.ts diff --git a/x-pack/plugins/features/server/ui_capabilities_for_features.test.ts b/x-pack/platform/plugins/shared/features/server/ui_capabilities_for_features.test.ts similarity index 100% rename from x-pack/plugins/features/server/ui_capabilities_for_features.test.ts rename to x-pack/platform/plugins/shared/features/server/ui_capabilities_for_features.test.ts diff --git a/x-pack/plugins/features/server/ui_capabilities_for_features.ts b/x-pack/platform/plugins/shared/features/server/ui_capabilities_for_features.ts similarity index 100% rename from x-pack/plugins/features/server/ui_capabilities_for_features.ts rename to x-pack/platform/plugins/shared/features/server/ui_capabilities_for_features.ts diff --git a/x-pack/plugins/features/tsconfig.json b/x-pack/platform/plugins/shared/features/tsconfig.json similarity index 87% rename from x-pack/plugins/features/tsconfig.json rename to x-pack/platform/plugins/shared/features/tsconfig.json index e32008f52edd0..70f6965c308c1 100644 --- a/x-pack/plugins/features/tsconfig.json +++ b/x-pack/platform/plugins/shared/features/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/plugin.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/plugin.ts index b8de2f5688373..13c440a38387c 100644 --- a/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/plugin.ts +++ b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/plugin.ts @@ -73,7 +73,7 @@ export class ObservabilityAIAssistantPlugin app: [OBSERVABILITY_AI_ASSISTANT_FEATURE_ID, 'kibana'], catalogue: [OBSERVABILITY_AI_ASSISTANT_FEATURE_ID], minimumLicense: 'enterprise', - // see x-pack/plugins/features/common/feature_kibana_privileges.ts + // see x-pack/platform/plugins/shared/features/common/feature_kibana_privileges.ts privileges: { all: { app: [OBSERVABILITY_AI_ASSISTANT_FEATURE_ID, 'kibana'], diff --git a/x-pack/solutions/observability/plugins/apm/server/feature.ts b/x-pack/solutions/observability/plugins/apm/server/feature.ts index 39a7618bff95d..93ff6927246d5 100644 --- a/x-pack/solutions/observability/plugins/apm/server/feature.ts +++ b/x-pack/solutions/observability/plugins/apm/server/feature.ts @@ -39,7 +39,7 @@ export const APM_FEATURE: KibanaFeatureConfig = { insightsAndAlerting: ['triggersActions'], }, alerting: alertingFeatures, - // see x-pack/plugins/features/common/feature_kibana_privileges.ts + // see x-pack/platform/plugins/shared/features/common/feature_kibana_privileges.ts privileges: { all: { app: [APM_SERVER_FEATURE_ID, 'ux', 'kibana'], diff --git a/x-pack/solutions/observability/plugins/inventory/server/feature.ts b/x-pack/solutions/observability/plugins/inventory/server/feature.ts index 2b3f2e92a44de..8819341c411c8 100644 --- a/x-pack/solutions/observability/plugins/inventory/server/feature.ts +++ b/x-pack/solutions/observability/plugins/inventory/server/feature.ts @@ -22,7 +22,7 @@ export const INVENTORY_SERVER_FEATURE = { app: [INVENTORY_SERVER_FEATURE_ID], catalogue: [INVENTORY_SERVER_FEATURE_ID], alerting: [], - // see x-pack/plugins/features/common/feature_kibana_privileges.ts + // see x-pack/platform/plugins/shared/features/common/feature_kibana_privileges.ts privileges: { all: { app: [INVENTORY_SERVER_FEATURE_ID], diff --git a/x-pack/solutions/observability/plugins/profiling/server/feature.ts b/x-pack/solutions/observability/plugins/profiling/server/feature.ts index 039c6b3af37a1..1bb93b6d2308a 100644 --- a/x-pack/solutions/observability/plugins/profiling/server/feature.ts +++ b/x-pack/solutions/observability/plugins/profiling/server/feature.ts @@ -20,7 +20,7 @@ export const PROFILING_FEATURE = { category: DEFAULT_APP_CATEGORIES.observability, scope: [KibanaFeatureScope.Spaces, KibanaFeatureScope.Security], app: [PROFILING_SERVER_FEATURE_ID, 'ux', 'kibana'], - // see x-pack/plugins/features/common/feature_kibana_privileges.ts + // see x-pack/platform/plugins/shared/features/common/feature_kibana_privileges.ts privileges: { all: { app: [PROFILING_SERVER_FEATURE_ID, 'ux', 'kibana'], diff --git a/yarn.lock b/yarn.lock index fe104ac9c6d53..e1f36a34ecd52 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5693,7 +5693,7 @@ version "0.0.0" uid "" -"@kbn/features-plugin@link:x-pack/plugins/features": +"@kbn/features-plugin@link:x-pack/platform/plugins/shared/features": version "0.0.0" uid "" From fc4a34d7b293263b2f30caf17a924e410840da3c Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:00:29 +0100 Subject: [PATCH 141/167] Relocating module `@kbn/ftr-apis-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/private}/ftr_apis/README.md | 0 .../plugins/private}/ftr_apis/jest.config.js | 8 ++++---- .../plugins/private}/ftr_apis/kibana.jsonc | 0 .../plugins/private}/ftr_apis/server/config.ts | 0 .../plugins/private}/ftr_apis/server/index.ts | 0 .../plugins/private}/ftr_apis/server/plugin.ts | 0 .../plugins/private}/ftr_apis/server/routes/index.ts | 0 .../ftr_apis/server/routes/kbn_client_so/bulk_delete.ts | 0 .../ftr_apis/server/routes/kbn_client_so/clean.ts | 0 .../ftr_apis/server/routes/kbn_client_so/create.ts | 0 .../ftr_apis/server/routes/kbn_client_so/delete.ts | 0 .../private}/ftr_apis/server/routes/kbn_client_so/find.ts | 0 .../private}/ftr_apis/server/routes/kbn_client_so/get.ts | 0 .../ftr_apis/server/routes/kbn_client_so/index.ts | 0 .../ftr_apis/server/routes/kbn_client_so/update.ts | 0 .../ftr_apis/server/routes/kbn_client_so/utils.ts | 0 .../plugins/private}/ftr_apis/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 22 files changed, 11 insertions(+), 11 deletions(-) rename src/{plugins => platform/plugins/private}/ftr_apis/README.md (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/jest.config.js (71%) rename src/{plugins => platform/plugins/private}/ftr_apis/kibana.jsonc (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/server/config.ts (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/server/index.ts (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/server/plugin.ts (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/server/routes/index.ts (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/server/routes/kbn_client_so/bulk_delete.ts (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/server/routes/kbn_client_so/clean.ts (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/server/routes/kbn_client_so/create.ts (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/server/routes/kbn_client_so/delete.ts (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/server/routes/kbn_client_so/find.ts (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/server/routes/kbn_client_so/get.ts (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/server/routes/kbn_client_so/index.ts (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/server/routes/kbn_client_so/update.ts (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/server/routes/kbn_client_so/utils.ts (100%) rename src/{plugins => platform/plugins/private}/ftr_apis/tsconfig.json (84%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 98aae6b4731d0..47614e01ecff4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -605,6 +605,7 @@ src/platform/packages/shared/serverless/settings/search_project @elastic/search- src/platform/packages/shared/serverless/settings/security_project @elastic/security-solution @elastic/kibana-management src/platform/plugins/private/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/platform/plugins/private/files_management @elastic/appex-sharedux +src/platform/plugins/private/ftr_apis @elastic/kibana-core src/platform/plugins/private/image_embeddable @elastic/appex-sharedux src/platform/plugins/private/input_control_vis @elastic/kibana-presentation src/platform/plugins/private/kibana_overview @elastic/appex-sharedux @@ -669,7 +670,6 @@ src/plugins/data @elastic/kibana-visualizations @elastic/kibana-data-discovery src/plugins/event_annotation @elastic/kibana-visualizations src/plugins/event_annotation_listing @elastic/kibana-visualizations src/plugins/expressions @elastic/kibana-visualizations -src/plugins/ftr_apis @elastic/kibana-core src/plugins/interactive_setup @elastic/kibana-security src/plugins/kibana_usage_collection @elastic/kibana-core src/plugins/newsfeed @elastic/kibana-core diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index e106cfbd8d262..d54fd0f5d5aa9 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -204,7 +204,7 @@ for use in their own application. |Minimal interface for admins to manage files in Kibana. -|{kib-repo}blob/{branch}/src/plugins/ftr_apis/README.md[ftrApis] +|{kib-repo}blob/{branch}/src/platform/plugins/private/ftr_apis/README.md[ftrApis] |This plugin exposes a set of APIs used internally during functional tests by the FTR. diff --git a/package.json b/package.json index ab84f7ffb9475..3a14407cc66f9 100644 --- a/package.json +++ b/package.json @@ -540,7 +540,7 @@ "@kbn/flot-charts": "link:src/platform/packages/shared/kbn-flot-charts", "@kbn/foo-plugin": "link:x-pack/test/ui_capabilities/common/plugins/foo_plugin", "@kbn/formatters": "link:packages/kbn-formatters", - "@kbn/ftr-apis-plugin": "link:src/plugins/ftr_apis", + "@kbn/ftr-apis-plugin": "link:src/platform/plugins/private/ftr_apis", "@kbn/functional-with-es-ssl-cases-test-plugin": "link:x-pack/test/functional_with_es_ssl/plugins/cases", "@kbn/gen-ai-streaming-response-example-plugin": "link:x-pack/examples/gen_ai_streaming_response_example", "@kbn/generate-console-definitions": "link:packages/kbn-generate-console-definitions", diff --git a/src/plugins/ftr_apis/README.md b/src/platform/plugins/private/ftr_apis/README.md similarity index 100% rename from src/plugins/ftr_apis/README.md rename to src/platform/plugins/private/ftr_apis/README.md diff --git a/src/plugins/ftr_apis/jest.config.js b/src/platform/plugins/private/ftr_apis/jest.config.js similarity index 71% rename from src/plugins/ftr_apis/jest.config.js rename to src/platform/plugins/private/ftr_apis/jest.config.js index cf6341c420a19..5b20f0a9d5e5b 100644 --- a/src/plugins/ftr_apis/jest.config.js +++ b/src/platform/plugins/private/ftr_apis/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/ftr_apis'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/ftr_apis', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/private/ftr_apis'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/ftr_apis', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/ftr_apis/{common,public,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/private/ftr_apis/{common,public,server}/**/*.{js,ts,tsx}'], }; diff --git a/src/plugins/ftr_apis/kibana.jsonc b/src/platform/plugins/private/ftr_apis/kibana.jsonc similarity index 100% rename from src/plugins/ftr_apis/kibana.jsonc rename to src/platform/plugins/private/ftr_apis/kibana.jsonc diff --git a/src/plugins/ftr_apis/server/config.ts b/src/platform/plugins/private/ftr_apis/server/config.ts similarity index 100% rename from src/plugins/ftr_apis/server/config.ts rename to src/platform/plugins/private/ftr_apis/server/config.ts diff --git a/src/plugins/ftr_apis/server/index.ts b/src/platform/plugins/private/ftr_apis/server/index.ts similarity index 100% rename from src/plugins/ftr_apis/server/index.ts rename to src/platform/plugins/private/ftr_apis/server/index.ts diff --git a/src/plugins/ftr_apis/server/plugin.ts b/src/platform/plugins/private/ftr_apis/server/plugin.ts similarity index 100% rename from src/plugins/ftr_apis/server/plugin.ts rename to src/platform/plugins/private/ftr_apis/server/plugin.ts diff --git a/src/plugins/ftr_apis/server/routes/index.ts b/src/platform/plugins/private/ftr_apis/server/routes/index.ts similarity index 100% rename from src/plugins/ftr_apis/server/routes/index.ts rename to src/platform/plugins/private/ftr_apis/server/routes/index.ts diff --git a/src/plugins/ftr_apis/server/routes/kbn_client_so/bulk_delete.ts b/src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/bulk_delete.ts similarity index 100% rename from src/plugins/ftr_apis/server/routes/kbn_client_so/bulk_delete.ts rename to src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/bulk_delete.ts diff --git a/src/plugins/ftr_apis/server/routes/kbn_client_so/clean.ts b/src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/clean.ts similarity index 100% rename from src/plugins/ftr_apis/server/routes/kbn_client_so/clean.ts rename to src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/clean.ts diff --git a/src/plugins/ftr_apis/server/routes/kbn_client_so/create.ts b/src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/create.ts similarity index 100% rename from src/plugins/ftr_apis/server/routes/kbn_client_so/create.ts rename to src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/create.ts diff --git a/src/plugins/ftr_apis/server/routes/kbn_client_so/delete.ts b/src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/delete.ts similarity index 100% rename from src/plugins/ftr_apis/server/routes/kbn_client_so/delete.ts rename to src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/delete.ts diff --git a/src/plugins/ftr_apis/server/routes/kbn_client_so/find.ts b/src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/find.ts similarity index 100% rename from src/plugins/ftr_apis/server/routes/kbn_client_so/find.ts rename to src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/find.ts diff --git a/src/plugins/ftr_apis/server/routes/kbn_client_so/get.ts b/src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/get.ts similarity index 100% rename from src/plugins/ftr_apis/server/routes/kbn_client_so/get.ts rename to src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/get.ts diff --git a/src/plugins/ftr_apis/server/routes/kbn_client_so/index.ts b/src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/index.ts similarity index 100% rename from src/plugins/ftr_apis/server/routes/kbn_client_so/index.ts rename to src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/index.ts diff --git a/src/plugins/ftr_apis/server/routes/kbn_client_so/update.ts b/src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/update.ts similarity index 100% rename from src/plugins/ftr_apis/server/routes/kbn_client_so/update.ts rename to src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/update.ts diff --git a/src/plugins/ftr_apis/server/routes/kbn_client_so/utils.ts b/src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/utils.ts similarity index 100% rename from src/plugins/ftr_apis/server/routes/kbn_client_so/utils.ts rename to src/platform/plugins/private/ftr_apis/server/routes/kbn_client_so/utils.ts diff --git a/src/plugins/ftr_apis/tsconfig.json b/src/platform/plugins/private/ftr_apis/tsconfig.json similarity index 84% rename from src/plugins/ftr_apis/tsconfig.json rename to src/platform/plugins/private/ftr_apis/tsconfig.json index 30044452e0a33..c55e8012a0fca 100644 --- a/src/plugins/ftr_apis/tsconfig.json +++ b/src/platform/plugins/private/ftr_apis/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true diff --git a/tsconfig.base.json b/tsconfig.base.json index d176fa6ce0493..2a7157e2bc4e9 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -972,8 +972,8 @@ "@kbn/foo-plugin/*": ["x-pack/test/ui_capabilities/common/plugins/foo_plugin/*"], "@kbn/formatters": ["packages/kbn-formatters"], "@kbn/formatters/*": ["packages/kbn-formatters/*"], - "@kbn/ftr-apis-plugin": ["src/plugins/ftr_apis"], - "@kbn/ftr-apis-plugin/*": ["src/plugins/ftr_apis/*"], + "@kbn/ftr-apis-plugin": ["src/platform/plugins/private/ftr_apis"], + "@kbn/ftr-apis-plugin/*": ["src/platform/plugins/private/ftr_apis/*"], "@kbn/ftr-common-functional-services": ["packages/kbn-ftr-common-functional-services"], "@kbn/ftr-common-functional-services/*": ["packages/kbn-ftr-common-functional-services/*"], "@kbn/ftr-common-functional-ui-services": ["packages/kbn-ftr-common-functional-ui-services"], diff --git a/yarn.lock b/yarn.lock index e1f36a34ecd52..abb4641ba5e77 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5761,7 +5761,7 @@ version "0.0.0" uid "" -"@kbn/ftr-apis-plugin@link:src/plugins/ftr_apis": +"@kbn/ftr-apis-plugin@link:src/platform/plugins/private/ftr_apis": version "0.0.0" uid "" From 1b6c4ae7fbcc513072df80d49d619cbb9f24322e Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:01:22 +0100 Subject: [PATCH 142/167] Relocating module `@kbn/hapi-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/private}/kbn-hapi-mocks/README.md | 0 .../platform/packages/private}/kbn-hapi-mocks/index.ts | 0 .../platform/packages/private}/kbn-hapi-mocks/jest.config.js | 4 ++-- .../platform/packages/private}/kbn-hapi-mocks/kibana.jsonc | 0 .../platform/packages/private}/kbn-hapi-mocks/package.json | 0 .../platform/packages/private}/kbn-hapi-mocks/src/request.ts | 0 .../platform/packages/private}/kbn-hapi-mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/private}/kbn-hapi-mocks/README.md (100%) rename {packages => src/platform/packages/private}/kbn-hapi-mocks/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-hapi-mocks/jest.config.js (84%) rename {packages => src/platform/packages/private}/kbn-hapi-mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-hapi-mocks/package.json (100%) rename {packages => src/platform/packages/private}/kbn-hapi-mocks/src/request.ts (100%) rename {packages => src/platform/packages/private}/kbn-hapi-mocks/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 47614e01ecff4..5d5c08aa908b7 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -190,7 +190,6 @@ packages/kbn-get-repo-files @elastic/kibana-operations packages/kbn-grid-layout @elastic/kibana-presentation packages/kbn-guided-onboarding @elastic/appex-sharedux packages/kbn-handlebars @elastic/kibana-security -packages/kbn-hapi-mocks @elastic/kibana-core packages/kbn-health-gateway-server @elastic/kibana-core packages/kbn-i18n @elastic/kibana-core packages/kbn-i18n-react @elastic/kibana-core @@ -497,6 +496,7 @@ src/platform/packages/private/default-nav/ml @elastic/ml-ui src/platform/packages/private/kbn-apm-config-loader @elastic/kibana-core @vigneshshanmugam src/platform/packages/private/kbn-config-mocks @elastic/kibana-core src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql +src/platform/packages/private/kbn-hapi-mocks @elastic/kibana-core src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/private/kbn-management/settings/application @elastic/kibana-management src/platform/packages/private/kbn-management/settings/components/field_category @elastic/kibana-management diff --git a/package.json b/package.json index 3a14407cc66f9..675df683c60c4 100644 --- a/package.json +++ b/package.json @@ -558,7 +558,7 @@ "@kbn/guided-onboarding-example-plugin": "link:examples/guided_onboarding_example", "@kbn/guided-onboarding-plugin": "link:src/platform/plugins/shared/guided_onboarding", "@kbn/handlebars": "link:packages/kbn-handlebars", - "@kbn/hapi-mocks": "link:packages/kbn-hapi-mocks", + "@kbn/hapi-mocks": "link:src/platform/packages/private/kbn-hapi-mocks", "@kbn/hardening-plugin": "link:test/plugin_functional/plugins/hardening", "@kbn/health-gateway-server": "link:packages/kbn-health-gateway-server", "@kbn/hello-world-plugin": "link:examples/hello_world", diff --git a/packages/kbn-hapi-mocks/README.md b/src/platform/packages/private/kbn-hapi-mocks/README.md similarity index 100% rename from packages/kbn-hapi-mocks/README.md rename to src/platform/packages/private/kbn-hapi-mocks/README.md diff --git a/packages/kbn-hapi-mocks/index.ts b/src/platform/packages/private/kbn-hapi-mocks/index.ts similarity index 100% rename from packages/kbn-hapi-mocks/index.ts rename to src/platform/packages/private/kbn-hapi-mocks/index.ts diff --git a/packages/kbn-hapi-mocks/jest.config.js b/src/platform/packages/private/kbn-hapi-mocks/jest.config.js similarity index 84% rename from packages/kbn-hapi-mocks/jest.config.js rename to src/platform/packages/private/kbn-hapi-mocks/jest.config.js index fffacc098cdbe..4e0e144aa0da4 100644 --- a/packages/kbn-hapi-mocks/jest.config.js +++ b/src/platform/packages/private/kbn-hapi-mocks/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-hapi-mocks'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-hapi-mocks'], }; diff --git a/packages/kbn-hapi-mocks/kibana.jsonc b/src/platform/packages/private/kbn-hapi-mocks/kibana.jsonc similarity index 100% rename from packages/kbn-hapi-mocks/kibana.jsonc rename to src/platform/packages/private/kbn-hapi-mocks/kibana.jsonc diff --git a/packages/kbn-hapi-mocks/package.json b/src/platform/packages/private/kbn-hapi-mocks/package.json similarity index 100% rename from packages/kbn-hapi-mocks/package.json rename to src/platform/packages/private/kbn-hapi-mocks/package.json diff --git a/packages/kbn-hapi-mocks/src/request.ts b/src/platform/packages/private/kbn-hapi-mocks/src/request.ts similarity index 100% rename from packages/kbn-hapi-mocks/src/request.ts rename to src/platform/packages/private/kbn-hapi-mocks/src/request.ts diff --git a/packages/kbn-hapi-mocks/tsconfig.json b/src/platform/packages/private/kbn-hapi-mocks/tsconfig.json similarity index 82% rename from packages/kbn-hapi-mocks/tsconfig.json rename to src/platform/packages/private/kbn-hapi-mocks/tsconfig.json index 11f148d713b3b..59554de320901 100644 --- a/packages/kbn-hapi-mocks/tsconfig.json +++ b/src/platform/packages/private/kbn-hapi-mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 2a7157e2bc4e9..c46e7964efc3c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1020,8 +1020,8 @@ "@kbn/guided-onboarding-plugin/*": ["src/platform/plugins/shared/guided_onboarding/*"], "@kbn/handlebars": ["packages/kbn-handlebars"], "@kbn/handlebars/*": ["packages/kbn-handlebars/*"], - "@kbn/hapi-mocks": ["packages/kbn-hapi-mocks"], - "@kbn/hapi-mocks/*": ["packages/kbn-hapi-mocks/*"], + "@kbn/hapi-mocks": ["src/platform/packages/private/kbn-hapi-mocks"], + "@kbn/hapi-mocks/*": ["src/platform/packages/private/kbn-hapi-mocks/*"], "@kbn/hardening-plugin": ["test/plugin_functional/plugins/hardening"], "@kbn/hardening-plugin/*": ["test/plugin_functional/plugins/hardening/*"], "@kbn/health-gateway-server": ["packages/kbn-health-gateway-server"], diff --git a/yarn.lock b/yarn.lock index abb4641ba5e77..03e08962368c7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5857,7 +5857,7 @@ version "0.0.0" uid "" -"@kbn/hapi-mocks@link:packages/kbn-hapi-mocks": +"@kbn/hapi-mocks@link:src/platform/packages/private/kbn-hapi-mocks": version "0.0.0" uid "" From dc7418672cfc2c9fa69c7f5be79c2f43159f1887 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:02:13 +0100 Subject: [PATCH 143/167] Relocating module `@kbn/health-gateway-server` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../packages/private}/kbn-health-gateway-server/.gitignore | 0 .../packages/private}/kbn-health-gateway-server/README.md | 4 ++-- .../packages/private}/kbn-health-gateway-server/index.ts | 0 .../private}/kbn-health-gateway-server/jest.config.js | 4 ++-- .../private}/kbn-health-gateway-server/kibana.jsonc | 0 .../private}/kbn-health-gateway-server/package.json | 0 .../private}/kbn-health-gateway-server/scripts/.env.example | 0 .../kbn-health-gateway-server/scripts/docker-compose.yml | 6 +++--- .../private}/kbn-health-gateway-server/scripts/init.ts | 0 .../src/config/config_service.test.mocks.ts | 0 .../src/config/config_service.test.ts | 0 .../kbn-health-gateway-server/src/config/config_service.ts | 0 .../private}/kbn-health-gateway-server/src/config/index.ts | 0 .../kbn-health-gateway-server/src/config/read_argv.test.ts | 0 .../kbn-health-gateway-server/src/config/read_argv.ts | 0 .../private}/kbn-health-gateway-server/src/index.ts | 0 .../kbn-health-gateway-server/src/kibana/handlers/index.ts | 0 .../src/kibana/handlers/status.test.ts | 0 .../kbn-health-gateway-server/src/kibana/handlers/status.ts | 0 .../private}/kbn-health-gateway-server/src/kibana/index.ts | 0 .../src/kibana/kibana_config.test.ts | 0 .../kbn-health-gateway-server/src/kibana/kibana_config.ts | 0 .../src/kibana/kibana_service.test.mocks.ts | 0 .../src/kibana/kibana_service.test.ts | 0 .../kbn-health-gateway-server/src/kibana/kibana_service.ts | 0 .../private}/kbn-health-gateway-server/src/server/index.ts | 0 .../kbn-health-gateway-server/src/server/server.mock.ts | 0 .../src/server/server.test.mocks.ts | 0 .../kbn-health-gateway-server/src/server/server.test.ts | 0 .../private}/kbn-health-gateway-server/src/server/server.ts | 0 .../src/server/server_config.test.ts | 0 .../kbn-health-gateway-server/src/server/server_config.ts | 0 .../private}/kbn-health-gateway-server/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 37 files changed, 13 insertions(+), 13 deletions(-) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/.gitignore (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/README.md (91%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/jest.config.js (82%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/package.json (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/scripts/.env.example (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/scripts/docker-compose.yml (92%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/scripts/init.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/config/config_service.test.mocks.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/config/config_service.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/config/config_service.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/config/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/config/read_argv.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/config/read_argv.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/kibana/handlers/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/kibana/handlers/status.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/kibana/handlers/status.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/kibana/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/kibana/kibana_config.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/kibana/kibana_config.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/kibana/kibana_service.test.mocks.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/kibana/kibana_service.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/kibana/kibana_service.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/server/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/server/server.mock.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/server/server.test.mocks.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/server/server.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/server/server.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/server/server_config.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/src/server/server_config.ts (100%) rename {packages => src/platform/packages/private}/kbn-health-gateway-server/tsconfig.json (91%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5d5c08aa908b7..57d0bcbaa9151 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -190,7 +190,6 @@ packages/kbn-get-repo-files @elastic/kibana-operations packages/kbn-grid-layout @elastic/kibana-presentation packages/kbn-guided-onboarding @elastic/appex-sharedux packages/kbn-handlebars @elastic/kibana-security -packages/kbn-health-gateway-server @elastic/kibana-core packages/kbn-i18n @elastic/kibana-core packages/kbn-i18n-react @elastic/kibana-core packages/kbn-import-locator @elastic/kibana-operations @@ -497,6 +496,7 @@ src/platform/packages/private/kbn-apm-config-loader @elastic/kibana-core @vignes src/platform/packages/private/kbn-config-mocks @elastic/kibana-core src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql src/platform/packages/private/kbn-hapi-mocks @elastic/kibana-core +src/platform/packages/private/kbn-health-gateway-server @elastic/kibana-core src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/private/kbn-management/settings/application @elastic/kibana-management src/platform/packages/private/kbn-management/settings/components/field_category @elastic/kibana-management diff --git a/package.json b/package.json index 675df683c60c4..4960520b1fba7 100644 --- a/package.json +++ b/package.json @@ -560,7 +560,7 @@ "@kbn/handlebars": "link:packages/kbn-handlebars", "@kbn/hapi-mocks": "link:src/platform/packages/private/kbn-hapi-mocks", "@kbn/hardening-plugin": "link:test/plugin_functional/plugins/hardening", - "@kbn/health-gateway-server": "link:packages/kbn-health-gateway-server", + "@kbn/health-gateway-server": "link:src/platform/packages/private/kbn-health-gateway-server", "@kbn/hello-world-plugin": "link:examples/hello_world", "@kbn/home-plugin": "link:src/platform/plugins/shared/home", "@kbn/home-sample-data-card": "link:packages/home/sample_data_card", diff --git a/packages/kbn-health-gateway-server/.gitignore b/src/platform/packages/private/kbn-health-gateway-server/.gitignore similarity index 100% rename from packages/kbn-health-gateway-server/.gitignore rename to src/platform/packages/private/kbn-health-gateway-server/.gitignore diff --git a/packages/kbn-health-gateway-server/README.md b/src/platform/packages/private/kbn-health-gateway-server/README.md similarity index 91% rename from packages/kbn-health-gateway-server/README.md rename to src/platform/packages/private/kbn-health-gateway-server/README.md index 7474b6a5c3440..a99a7501d9c7f 100644 --- a/packages/kbn-health-gateway-server/README.md +++ b/src/platform/packages/private/kbn-health-gateway-server/README.md @@ -59,7 +59,7 @@ two different Kibana instances for testing. Before using it, you'll want to crea a `.env` file: ```bash -# From the /packages/kbn-health-gateway-server/scripts directory +# From the /src/platform/packages/private/kbn-health-gateway-server/scripts directory $ cp .env.example .env # (modify the .env settings if desired) $ docker-compose up @@ -69,7 +69,7 @@ This will automatically run Kibana on the ports from the sample `gateway.yml` above (5605-5606). Once you have your `gateway.yml` and have started docker-compose, you can run the -server from the `/packages/kbn-health-gateway-server` directory with `yarn start`. Then you should +server from the `/src/platform/packages/private/kbn-health-gateway-server` directory with `yarn start`. Then you should be able to make requests to the `/` endpoint: ```bash diff --git a/packages/kbn-health-gateway-server/index.ts b/src/platform/packages/private/kbn-health-gateway-server/index.ts similarity index 100% rename from packages/kbn-health-gateway-server/index.ts rename to src/platform/packages/private/kbn-health-gateway-server/index.ts diff --git a/packages/kbn-health-gateway-server/jest.config.js b/src/platform/packages/private/kbn-health-gateway-server/jest.config.js similarity index 82% rename from packages/kbn-health-gateway-server/jest.config.js rename to src/platform/packages/private/kbn-health-gateway-server/jest.config.js index 25732297279b1..b115c05ab1006 100644 --- a/packages/kbn-health-gateway-server/jest.config.js +++ b/src/platform/packages/private/kbn-health-gateway-server/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-health-gateway-server'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-health-gateway-server'], }; diff --git a/packages/kbn-health-gateway-server/kibana.jsonc b/src/platform/packages/private/kbn-health-gateway-server/kibana.jsonc similarity index 100% rename from packages/kbn-health-gateway-server/kibana.jsonc rename to src/platform/packages/private/kbn-health-gateway-server/kibana.jsonc diff --git a/packages/kbn-health-gateway-server/package.json b/src/platform/packages/private/kbn-health-gateway-server/package.json similarity index 100% rename from packages/kbn-health-gateway-server/package.json rename to src/platform/packages/private/kbn-health-gateway-server/package.json diff --git a/packages/kbn-health-gateway-server/scripts/.env.example b/src/platform/packages/private/kbn-health-gateway-server/scripts/.env.example similarity index 100% rename from packages/kbn-health-gateway-server/scripts/.env.example rename to src/platform/packages/private/kbn-health-gateway-server/scripts/.env.example diff --git a/packages/kbn-health-gateway-server/scripts/docker-compose.yml b/src/platform/packages/private/kbn-health-gateway-server/scripts/docker-compose.yml similarity index 92% rename from packages/kbn-health-gateway-server/scripts/docker-compose.yml rename to src/platform/packages/private/kbn-health-gateway-server/scripts/docker-compose.yml index 460119688265a..c95f9b1c45e4a 100644 --- a/packages/kbn-health-gateway-server/scripts/docker-compose.yml +++ b/src/platform/packages/private/kbn-health-gateway-server/scripts/docker-compose.yml @@ -17,7 +17,7 @@ services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION} volumes: - - ../../kbn-dev-utils/certs:/usr/share/elasticsearch/config/certs + - ../../../../../kbn-dev-utils/certs:/usr/share/elasticsearch/config/certs ports: - ${ES_PORT}:9200 environment: @@ -49,7 +49,7 @@ services: condition: service_healthy image: docker.elastic.co/kibana/kibana:${STACK_VERSION} volumes: - - ../../kbn-dev-utils/certs:/usr/share/kibana/config/certs + - ../../../../../kbn-dev-utils/certs:/usr/share/kibana/config/certs ports: - ${KIBANA_01_PORT}:5601 environment: @@ -71,7 +71,7 @@ services: condition: service_healthy image: docker.elastic.co/kibana/kibana:${STACK_VERSION} volumes: - - ../../kbn-dev-utils/certs:/usr/share/kibana/config/certs + - ../../../../../kbn-dev-utils/certs:/usr/share/kibana/config/certs ports: - ${KIBANA_02_PORT}:5601 environment: diff --git a/packages/kbn-health-gateway-server/scripts/init.ts b/src/platform/packages/private/kbn-health-gateway-server/scripts/init.ts similarity index 100% rename from packages/kbn-health-gateway-server/scripts/init.ts rename to src/platform/packages/private/kbn-health-gateway-server/scripts/init.ts diff --git a/packages/kbn-health-gateway-server/src/config/config_service.test.mocks.ts b/src/platform/packages/private/kbn-health-gateway-server/src/config/config_service.test.mocks.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/config/config_service.test.mocks.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/config/config_service.test.mocks.ts diff --git a/packages/kbn-health-gateway-server/src/config/config_service.test.ts b/src/platform/packages/private/kbn-health-gateway-server/src/config/config_service.test.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/config/config_service.test.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/config/config_service.test.ts diff --git a/packages/kbn-health-gateway-server/src/config/config_service.ts b/src/platform/packages/private/kbn-health-gateway-server/src/config/config_service.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/config/config_service.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/config/config_service.ts diff --git a/packages/kbn-health-gateway-server/src/config/index.ts b/src/platform/packages/private/kbn-health-gateway-server/src/config/index.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/config/index.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/config/index.ts diff --git a/packages/kbn-health-gateway-server/src/config/read_argv.test.ts b/src/platform/packages/private/kbn-health-gateway-server/src/config/read_argv.test.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/config/read_argv.test.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/config/read_argv.test.ts diff --git a/packages/kbn-health-gateway-server/src/config/read_argv.ts b/src/platform/packages/private/kbn-health-gateway-server/src/config/read_argv.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/config/read_argv.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/config/read_argv.ts diff --git a/packages/kbn-health-gateway-server/src/index.ts b/src/platform/packages/private/kbn-health-gateway-server/src/index.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/index.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/index.ts diff --git a/packages/kbn-health-gateway-server/src/kibana/handlers/index.ts b/src/platform/packages/private/kbn-health-gateway-server/src/kibana/handlers/index.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/kibana/handlers/index.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/kibana/handlers/index.ts diff --git a/packages/kbn-health-gateway-server/src/kibana/handlers/status.test.ts b/src/platform/packages/private/kbn-health-gateway-server/src/kibana/handlers/status.test.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/kibana/handlers/status.test.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/kibana/handlers/status.test.ts diff --git a/packages/kbn-health-gateway-server/src/kibana/handlers/status.ts b/src/platform/packages/private/kbn-health-gateway-server/src/kibana/handlers/status.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/kibana/handlers/status.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/kibana/handlers/status.ts diff --git a/packages/kbn-health-gateway-server/src/kibana/index.ts b/src/platform/packages/private/kbn-health-gateway-server/src/kibana/index.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/kibana/index.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/kibana/index.ts diff --git a/packages/kbn-health-gateway-server/src/kibana/kibana_config.test.ts b/src/platform/packages/private/kbn-health-gateway-server/src/kibana/kibana_config.test.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/kibana/kibana_config.test.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/kibana/kibana_config.test.ts diff --git a/packages/kbn-health-gateway-server/src/kibana/kibana_config.ts b/src/platform/packages/private/kbn-health-gateway-server/src/kibana/kibana_config.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/kibana/kibana_config.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/kibana/kibana_config.ts diff --git a/packages/kbn-health-gateway-server/src/kibana/kibana_service.test.mocks.ts b/src/platform/packages/private/kbn-health-gateway-server/src/kibana/kibana_service.test.mocks.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/kibana/kibana_service.test.mocks.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/kibana/kibana_service.test.mocks.ts diff --git a/packages/kbn-health-gateway-server/src/kibana/kibana_service.test.ts b/src/platform/packages/private/kbn-health-gateway-server/src/kibana/kibana_service.test.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/kibana/kibana_service.test.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/kibana/kibana_service.test.ts diff --git a/packages/kbn-health-gateway-server/src/kibana/kibana_service.ts b/src/platform/packages/private/kbn-health-gateway-server/src/kibana/kibana_service.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/kibana/kibana_service.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/kibana/kibana_service.ts diff --git a/packages/kbn-health-gateway-server/src/server/index.ts b/src/platform/packages/private/kbn-health-gateway-server/src/server/index.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/server/index.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/server/index.ts diff --git a/packages/kbn-health-gateway-server/src/server/server.mock.ts b/src/platform/packages/private/kbn-health-gateway-server/src/server/server.mock.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/server/server.mock.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/server/server.mock.ts diff --git a/packages/kbn-health-gateway-server/src/server/server.test.mocks.ts b/src/platform/packages/private/kbn-health-gateway-server/src/server/server.test.mocks.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/server/server.test.mocks.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/server/server.test.mocks.ts diff --git a/packages/kbn-health-gateway-server/src/server/server.test.ts b/src/platform/packages/private/kbn-health-gateway-server/src/server/server.test.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/server/server.test.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/server/server.test.ts diff --git a/packages/kbn-health-gateway-server/src/server/server.ts b/src/platform/packages/private/kbn-health-gateway-server/src/server/server.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/server/server.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/server/server.ts diff --git a/packages/kbn-health-gateway-server/src/server/server_config.test.ts b/src/platform/packages/private/kbn-health-gateway-server/src/server/server_config.test.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/server/server_config.test.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/server/server_config.test.ts diff --git a/packages/kbn-health-gateway-server/src/server/server_config.ts b/src/platform/packages/private/kbn-health-gateway-server/src/server/server_config.ts similarity index 100% rename from packages/kbn-health-gateway-server/src/server/server_config.ts rename to src/platform/packages/private/kbn-health-gateway-server/src/server/server_config.ts diff --git a/packages/kbn-health-gateway-server/tsconfig.json b/src/platform/packages/private/kbn-health-gateway-server/tsconfig.json similarity index 91% rename from packages/kbn-health-gateway-server/tsconfig.json rename to src/platform/packages/private/kbn-health-gateway-server/tsconfig.json index c9a83f7a18223..75e5313cd0182 100644 --- a/packages/kbn-health-gateway-server/tsconfig.json +++ b/src/platform/packages/private/kbn-health-gateway-server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "stripInternal": false, diff --git a/tsconfig.base.json b/tsconfig.base.json index c46e7964efc3c..3c5a3f4560e89 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1024,8 +1024,8 @@ "@kbn/hapi-mocks/*": ["src/platform/packages/private/kbn-hapi-mocks/*"], "@kbn/hardening-plugin": ["test/plugin_functional/plugins/hardening"], "@kbn/hardening-plugin/*": ["test/plugin_functional/plugins/hardening/*"], - "@kbn/health-gateway-server": ["packages/kbn-health-gateway-server"], - "@kbn/health-gateway-server/*": ["packages/kbn-health-gateway-server/*"], + "@kbn/health-gateway-server": ["src/platform/packages/private/kbn-health-gateway-server"], + "@kbn/health-gateway-server/*": ["src/platform/packages/private/kbn-health-gateway-server/*"], "@kbn/hello-world-plugin": ["examples/hello_world"], "@kbn/hello-world-plugin/*": ["examples/hello_world/*"], "@kbn/home-plugin": ["src/platform/plugins/shared/home"], diff --git a/yarn.lock b/yarn.lock index 03e08962368c7..7611601aa5e26 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5865,7 +5865,7 @@ version "0.0.0" uid "" -"@kbn/health-gateway-server@link:packages/kbn-health-gateway-server": +"@kbn/health-gateway-server@link:src/platform/packages/private/kbn-health-gateway-server": version "0.0.0" uid "" From dd5dffccef9530077ff55beac4c8ae3f9f62da20 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:03:04 +0100 Subject: [PATCH 144/167] Relocating module `@kbn/i18n` --- .../scripts/pipelines/pull_request/pipeline.ts | 4 ++-- .github/CODEOWNERS | 2 +- .github/PULL_REQUEST_TEMPLATE.md | 2 +- docs/developer/best-practices/index.asciidoc | 2 +- docs/developer/plugin-list.asciidoc | 2 +- .../plugin/external-plugin-localization.asciidoc | 8 ++++---- package.json | 2 +- packages/README.md | 2 +- packages/kbn-i18n-react/BUILD.bazel | 2 +- packages/kbn-monaco/BUILD.bazel | 2 +- .../extract_untracked_translations.ts | 2 +- .../private/kbn-ui-shared-deps-src/BUILD.bazel | 2 +- .../packages/shared/kbn-es-query/BUILD.bazel | 2 +- .../kbn-esql-validation-autocomplete/BUILD.bazel | 2 +- .../packages/shared/kbn-flot-charts/BUILD.bazel | 2 +- .../platform/packages/shared}/kbn-i18n/BUILD.bazel | 0 .../platform/packages/shared}/kbn-i18n/GUIDELINE.md | 0 .../platform/packages/shared}/kbn-i18n/README.md | 2 +- .../platform/packages/shared}/kbn-i18n/index.ts | 0 .../packages/shared}/kbn-i18n/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-i18n/kibana.jsonc | 0 .../platform/packages/shared}/kbn-i18n/package.json | 0 .../test_plugin_1/translations/en-US.json | 0 .../__fixtures__/test_plugin_1/translations/en.json | 0 .../__fixtures__/test_plugin_2/translations/en.json | 0 .../__fixtures__/test_plugin_2/translations/fr.json | 0 .../__fixtures__/test_plugin_2/translations/ru.json | 0 .../kbn-i18n/src/__snapshots__/loader.test.ts.snap | 0 .../packages/shared}/kbn-i18n/src/browser.ts | 0 .../src/core/__snapshots__/i18n.test.ts.snap | 12 ++++++------ .../shared}/kbn-i18n/src/core/error_handler.ts | 0 .../packages/shared}/kbn-i18n/src/core/formats.ts | 0 .../packages/shared}/kbn-i18n/src/core/i18n.test.ts | 0 .../packages/shared}/kbn-i18n/src/core/i18n.ts | 0 .../packages/shared}/kbn-i18n/src/core/index.ts | 0 .../packages/shared}/kbn-i18n/src/core/types.ts | 0 .../packages/shared}/kbn-i18n/src/loader.test.ts | 0 .../platform/packages/shared}/kbn-i18n/src/loader.ts | 0 .../packages/shared}/kbn-i18n/src/translation.ts | 0 .../platform/packages/shared}/kbn-i18n/tsconfig.json | 2 +- .../packages/shared/kbn-search-errors/BUILD.bazel | 2 +- tsconfig.base.json | 4 ++-- .../platform/plugins/private/canvas/i18n/README.md | 2 +- .../plugins/private/translations/README.asciidoc | 2 +- yarn.lock | 2 +- 45 files changed, 35 insertions(+), 35 deletions(-) rename {packages => src/platform/packages/shared}/kbn-i18n/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/GUIDELINE.md (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/README.md (99%) rename {packages => src/platform/packages/shared}/kbn-i18n/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-i18n/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en.json (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/__fixtures__/test_plugin_2/translations/en.json (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/__fixtures__/test_plugin_2/translations/fr.json (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/__fixtures__/test_plugin_2/translations/ru.json (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/__snapshots__/loader.test.ts.snap (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/browser.ts (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/core/__snapshots__/i18n.test.ts.snap (92%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/core/error_handler.ts (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/core/formats.ts (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/core/i18n.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/core/i18n.ts (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/core/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/core/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/loader.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/loader.ts (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/src/translation.ts (100%) rename {packages => src/platform/packages/shared}/kbn-i18n/tsconfig.json (82%) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 9a38816a3d5d0..c930124f75bfb 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -300,8 +300,8 @@ const getPipeline = (filename: string, removeSteps = true) => { /^packages\/kbn-doc-links/, /^packages\/kbn-dom-drag-drop/, /^src\/platform\/packages\/shared\/kbn-es-query/, - /^packages\/kbn-i18n/, - /^packages\/kbn-i18n-react/, + /^src\/platform\/packages\/shared\/kbn-i18n/, + /^src\/platform\/packages\/shared\/kbn-i18n-react/, /^src\/platform\/packages\/shared\/kbn-grouping/, /^src\/platform\/packages\/shared\/kbn-resizable-layout/, /^src\/platform\/packages\/shared\/kbn-rison/, diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 57d0bcbaa9151..531d6028014bd 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -190,7 +190,6 @@ packages/kbn-get-repo-files @elastic/kibana-operations packages/kbn-grid-layout @elastic/kibana-presentation packages/kbn-guided-onboarding @elastic/appex-sharedux packages/kbn-handlebars @elastic/kibana-security -packages/kbn-i18n @elastic/kibana-core packages/kbn-i18n-react @elastic/kibana-core packages/kbn-import-locator @elastic/kibana-operations packages/kbn-import-resolver @elastic/kibana-operations @@ -549,6 +548,7 @@ src/platform/packages/shared/kbn-field-types @elastic/kibana-data-discovery src/platform/packages/shared/kbn-field-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-flot-charts @elastic/kibana-presentation @elastic/stack-monitoring src/platform/packages/shared/kbn-grouping @elastic/response-ops +src/platform/packages/shared/kbn-i18n @elastic/kibana-core src/platform/packages/shared/kbn-io-ts-utils @elastic/obs-knowledge-team src/platform/packages/shared/kbn-lens-embeddable-utils @elastic/obs-ux-infra_services-team @elastic/kibana-visualizations src/platform/packages/shared/kbn-management/cards_navigation @elastic/kibana-management diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 000a80d2b84f8..74b56d73be87a 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -9,7 +9,7 @@ Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. -- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) +- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) diff --git a/docs/developer/best-practices/index.asciidoc b/docs/developer/best-practices/index.asciidoc index 757c7068e0ad6..92c8522026cdf 100644 --- a/docs/developer/best-practices/index.asciidoc +++ b/docs/developer/best-practices/index.asciidoc @@ -38,7 +38,7 @@ ensure your public facing strings will be translated to ensure all {kib} apps are localized. * Read and adhere to our -{kib-repo}blob/{branch}/packages/kbn-i18n/GUIDELINE.md[i18n +{kib-repo}blob/{branch}/src/platform/packages/shared/kbn-i18n/GUIDELINE.md[i18n guidelines] [discrete] diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index d54fd0f5d5aa9..2e52b61d2b5f0 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -949,7 +949,7 @@ in their infrastructure. |<> |Contains Elastic-supported translations. Owned by the Localizations team. -For adding localizations and instrument a ui to support translated content, see https://github.com/elastic/kibana/tree/main/packages/kbn-i18n +For adding localizations and instrument a ui to support translated content, see https://github.com/elastic/kibana/tree/main/src/platform/packages/shared/kbn-i18n |{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/triggers_actions_ui/README.md[triggersActionsUi] diff --git a/docs/developer/plugin/external-plugin-localization.asciidoc b/docs/developer/plugin/external-plugin-localization.asciidoc index cc43acc6ca4b3..eca7e49e8de37 100644 --- a/docs/developer/plugin/external-plugin-localization.asciidoc +++ b/docs/developer/plugin/external-plugin-localization.asciidoc @@ -103,7 +103,7 @@ export const HELLO_WORLD = i18n.translate('hello.wonderful.world', { }); ----------- -Full details are {kib-repo}tree/main/packages/kbn-i18n#vanilla-js[here]. +Full details are {kib-repo}tree/main/src/platform/packages/shared/kbn-i18n#vanilla-js[here]. [discrete] ==== i18n for React @@ -127,7 +127,7 @@ export const Component = () => { }; ----------- -Full details are {kib-repo}tree/main/packages/kbn-i18n#react[here]. +Full details are {kib-repo}tree/main/src/platform/packages/shared/kbn-i18n#react[here]. [discrete] === Resources @@ -136,5 +136,5 @@ To learn more about i18n tooling, see {kib-repo}blob/{branch}/src/dev/i18n/READM To learn more about implementing i18n in the UI, use the following links: -* {kib-repo}blob/{branch}/packages/kbn-i18n/README.md[i18n plugin] -* {kib-repo}blob/{branch}/packages/kbn-i18n/GUIDELINE.md[i18n guidelines] +* {kib-repo}blob/{branch}/src/platform/packages/shared/kbn-i18n/README.md[i18n plugin] +* {kib-repo}blob/{branch}/src/platform/packages/shared/kbn-i18n/GUIDELINE.md[i18n guidelines] diff --git a/package.json b/package.json index 4960520b1fba7..4857879f47fc1 100644 --- a/package.json +++ b/package.json @@ -566,7 +566,7 @@ "@kbn/home-sample-data-card": "link:packages/home/sample_data_card", "@kbn/home-sample-data-tab": "link:packages/home/sample_data_tab", "@kbn/home-sample-data-types": "link:packages/home/sample_data_types", - "@kbn/i18n": "link:packages/kbn-i18n", + "@kbn/i18n": "link:src/platform/packages/shared/kbn-i18n", "@kbn/i18n-react": "link:packages/kbn-i18n-react", "@kbn/iframe-embedded-plugin": "link:x-pack/test/functional_embedded/plugins/iframe_embedded", "@kbn/image-embeddable-plugin": "link:src/platform/plugins/private/image_embeddable", diff --git a/packages/README.md b/packages/README.md index dd6bce456d476..c23092e7c35d4 100644 --- a/packages/README.md +++ b/packages/README.md @@ -27,7 +27,7 @@ dependency and account for the relative location of the Kibana repo, so it would instead be: ``` -"@kbn/i18n": "link:../../kibana/packages/kbn-i18n" +"@kbn/i18n": "link:../../kibana/src/platform/packages/shared/kbn-i18n" ``` then run `yarn kbn bootstrap` from the plugin directory. diff --git a/packages/kbn-i18n-react/BUILD.bazel b/packages/kbn-i18n-react/BUILD.bazel index 96b7ead491a34..38514770d3a62 100644 --- a/packages/kbn-i18n-react/BUILD.bazel +++ b/packages/kbn-i18n-react/BUILD.bazel @@ -21,7 +21,7 @@ SRCS = glob( ) BUNDLER_DEPS = [ - "//packages/kbn-i18n", + "//src/platform/packages/shared/kbn-i18n", "@npm//prop-types", "@npm//react", "@npm//react-intl", diff --git a/packages/kbn-monaco/BUILD.bazel b/packages/kbn-monaco/BUILD.bazel index 7feda0887a4bd..e552cf0822a83 100644 --- a/packages/kbn-monaco/BUILD.bazel +++ b/packages/kbn-monaco/BUILD.bazel @@ -24,7 +24,7 @@ SRCS = glob( ) SHARED_DEPS = [ - "//packages/kbn-i18n", + "//src/platform/packages/shared/kbn-i18n", "//src/platform/packages/shared/kbn-ui-theme", "//src/platform/packages/shared/kbn-esql-validation-autocomplete", "//src/platform/packages/shared/kbn-esql-ast", diff --git a/src/dev/i18n_tools/tasks/check_untracked_namespaces/extract_untracked_translations.ts b/src/dev/i18n_tools/tasks/check_untracked_namespaces/extract_untracked_translations.ts index 0fb6e0a5cf14c..8dab99f98f682 100644 --- a/src/dev/i18n_tools/tasks/check_untracked_namespaces/extract_untracked_translations.ts +++ b/src/dev/i18n_tools/tasks/check_untracked_namespaces/extract_untracked_translations.ts @@ -31,7 +31,7 @@ export async function* extractUntrackedMessages(rootPath: string, definedPathsFo ...definedPathsForRoot, '**/build/**', '**/__fixtures__/**', - '**/packages/kbn-i18n/**', + '**/src/platform/packages/shared/kbn-i18n/**', '**/packages/kbn-i18n-react/**', '**/packages/kbn-plugin-generator/template/**', '**/test/**', diff --git a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel index 66f0d1bf74a95..8cff35c8051f4 100644 --- a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel +++ b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel @@ -22,7 +22,7 @@ webpack_cli( "//packages/kbn-babel-preset", # packages included in the shared deps src bundle "//src/platform/packages/shared/kbn-ui-theme", - "//packages/kbn-i18n", + "//src/platform/packages/shared/kbn-i18n", "//packages/kbn-i18n-react", "//src/platform/packages/shared/kbn-ebt-tools", "//src/platform/packages/shared/kbn-esql-ast", diff --git a/src/platform/packages/shared/kbn-es-query/BUILD.bazel b/src/platform/packages/shared/kbn-es-query/BUILD.bazel index 8d064f3e1262a..6e57bdfbea513 100644 --- a/src/platform/packages/shared/kbn-es-query/BUILD.bazel +++ b/src/platform/packages/shared/kbn-es-query/BUILD.bazel @@ -24,7 +24,7 @@ SRCS = glob( ) BUNDLER_DEPS = [ - "//packages/kbn-i18n", + "//src/platform/packages/shared/kbn-i18n", "@npm//@elastic/elasticsearch", "@npm//load-json-file", "@npm//lodash", diff --git a/src/platform/packages/shared/kbn-esql-validation-autocomplete/BUILD.bazel b/src/platform/packages/shared/kbn-esql-validation-autocomplete/BUILD.bazel index 1e956d1903dca..429bc5b8aaddd 100644 --- a/src/platform/packages/shared/kbn-esql-validation-autocomplete/BUILD.bazel +++ b/src/platform/packages/shared/kbn-esql-validation-autocomplete/BUILD.bazel @@ -21,7 +21,7 @@ SRCS = glob( ) SHARED_DEPS = [ - "//packages/kbn-i18n", + "//src/platform/packages/shared/kbn-i18n", "@npm//fastest-levenshtein", ] diff --git a/src/platform/packages/shared/kbn-flot-charts/BUILD.bazel b/src/platform/packages/shared/kbn-flot-charts/BUILD.bazel index 88b7b4a553e36..a5c98d8f65ded 100644 --- a/src/platform/packages/shared/kbn-flot-charts/BUILD.bazel +++ b/src/platform/packages/shared/kbn-flot-charts/BUILD.bazel @@ -22,7 +22,7 @@ NPM_MODULE_EXTRA_FILES = [ ] RUNTIME_DEPS = [ - "//packages/kbn-i18n", + "//src/platform/packages/shared/kbn-i18n", ] js_library( diff --git a/packages/kbn-i18n/BUILD.bazel b/src/platform/packages/shared/kbn-i18n/BUILD.bazel similarity index 100% rename from packages/kbn-i18n/BUILD.bazel rename to src/platform/packages/shared/kbn-i18n/BUILD.bazel diff --git a/packages/kbn-i18n/GUIDELINE.md b/src/platform/packages/shared/kbn-i18n/GUIDELINE.md similarity index 100% rename from packages/kbn-i18n/GUIDELINE.md rename to src/platform/packages/shared/kbn-i18n/GUIDELINE.md diff --git a/packages/kbn-i18n/README.md b/src/platform/packages/shared/kbn-i18n/README.md similarity index 99% rename from packages/kbn-i18n/README.md rename to src/platform/packages/shared/kbn-i18n/README.md index 8492d8e12537f..342281adbbe7d 100644 --- a/packages/kbn-i18n/README.md +++ b/src/platform/packages/shared/kbn-i18n/README.md @@ -344,4 +344,4 @@ In order to simplify localization process, some additional tools were implemente - tool for verifying all translations have translatable strings and extracting default messages from templates - tool for verifying translation files and integrating them to Kibana -[I18n tools documentation](../../src/dev/i18n/README.md) +[I18n tools documentation](../../../../../src/dev/i18n/README.md) diff --git a/packages/kbn-i18n/index.ts b/src/platform/packages/shared/kbn-i18n/index.ts similarity index 100% rename from packages/kbn-i18n/index.ts rename to src/platform/packages/shared/kbn-i18n/index.ts diff --git a/packages/kbn-i18n/jest.config.js b/src/platform/packages/shared/kbn-i18n/jest.config.js similarity index 84% rename from packages/kbn-i18n/jest.config.js rename to src/platform/packages/shared/kbn-i18n/jest.config.js index 7e7c5f9bd9e42..306de4e3ec898 100644 --- a/packages/kbn-i18n/jest.config.js +++ b/src/platform/packages/shared/kbn-i18n/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-i18n'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-i18n'], }; diff --git a/packages/kbn-i18n/kibana.jsonc b/src/platform/packages/shared/kbn-i18n/kibana.jsonc similarity index 100% rename from packages/kbn-i18n/kibana.jsonc rename to src/platform/packages/shared/kbn-i18n/kibana.jsonc diff --git a/packages/kbn-i18n/package.json b/src/platform/packages/shared/kbn-i18n/package.json similarity index 100% rename from packages/kbn-i18n/package.json rename to src/platform/packages/shared/kbn-i18n/package.json diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json b/src/platform/packages/shared/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json similarity index 100% rename from packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json rename to src/platform/packages/shared/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en.json b/src/platform/packages/shared/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en.json similarity index 100% rename from packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en.json rename to src/platform/packages/shared/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en.json diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/en.json b/src/platform/packages/shared/kbn-i18n/src/__fixtures__/test_plugin_2/translations/en.json similarity index 100% rename from packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/en.json rename to src/platform/packages/shared/kbn-i18n/src/__fixtures__/test_plugin_2/translations/en.json diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/fr.json b/src/platform/packages/shared/kbn-i18n/src/__fixtures__/test_plugin_2/translations/fr.json similarity index 100% rename from packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/fr.json rename to src/platform/packages/shared/kbn-i18n/src/__fixtures__/test_plugin_2/translations/fr.json diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/ru.json b/src/platform/packages/shared/kbn-i18n/src/__fixtures__/test_plugin_2/translations/ru.json similarity index 100% rename from packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/ru.json rename to src/platform/packages/shared/kbn-i18n/src/__fixtures__/test_plugin_2/translations/ru.json diff --git a/packages/kbn-i18n/src/__snapshots__/loader.test.ts.snap b/src/platform/packages/shared/kbn-i18n/src/__snapshots__/loader.test.ts.snap similarity index 100% rename from packages/kbn-i18n/src/__snapshots__/loader.test.ts.snap rename to src/platform/packages/shared/kbn-i18n/src/__snapshots__/loader.test.ts.snap diff --git a/packages/kbn-i18n/src/browser.ts b/src/platform/packages/shared/kbn-i18n/src/browser.ts similarity index 100% rename from packages/kbn-i18n/src/browser.ts rename to src/platform/packages/shared/kbn-i18n/src/browser.ts diff --git a/packages/kbn-i18n/src/core/__snapshots__/i18n.test.ts.snap b/src/platform/packages/shared/kbn-i18n/src/core/__snapshots__/i18n.test.ts.snap similarity index 92% rename from packages/kbn-i18n/src/core/__snapshots__/i18n.test.ts.snap rename to src/platform/packages/shared/kbn-i18n/src/core/__snapshots__/i18n.test.ts.snap index 9f81b06a2c6a6..197eb35f34e2f 100644 --- a/packages/kbn-i18n/src/core/__snapshots__/i18n.test.ts.snap +++ b/src/platform/packages/shared/kbn-i18n/src/core/__snapshots__/i18n.test.ts.snap @@ -17,13 +17,13 @@ SyntaxError: INVALID_ARGUMENT_TYPE at /Users/bamieh/Bamieh/elastic/kibana/node_modules/@formatjs/intl/src/utils.js:115:20 at variadic (/Users/bamieh/Bamieh/elastic/kibana/node_modules/@formatjs/fast-memoize/index.js:37:28) at formatMessage (/Users/bamieh/Bamieh/elastic/kibana/node_modules/@formatjs/intl/src/message.js:72:39) - at Object.formatMessage [as translate] (/Users/bamieh/Bamieh/elastic/kibana/packages/kbn-i18n/src/core/i18n.ts:150:17) - at translate (/Users/bamieh/Bamieh/elastic/kibana/packages/kbn-i18n/src/core/i18n.test.ts:604:14) + at Object.formatMessage [as translate] (/Users/bamieh/Bamieh/elastic/kibana/src/platform/packages/shared/kbn-i18n/src/core/i18n.ts:150:17) + at translate (/Users/bamieh/Bamieh/elastic/kibana/src/platform/packages/shared/kbn-i18n/src/core/i18n.test.ts:604:14) at _toThrowErrorMatchingSnapshot (/Users/bamieh/Bamieh/elastic/kibana/node_modules/jest-snapshot/build/index.js:569:7) at Object.toThrowErrorMatchingSnapshot (/Users/bamieh/Bamieh/elastic/kibana/node_modules/jest-snapshot/build/index.js:469:10) at __EXTERNAL_MATCHER_TRAP__ (/Users/bamieh/Bamieh/elastic/kibana/node_modules/expect/build/index.js:325:30) at Object.throwingMatcher [as toThrowErrorMatchingSnapshot] (/Users/bamieh/Bamieh/elastic/kibana/node_modules/expect/build/index.js:326:15) - at Object.toThrowErrorMatchingSnapshot (/Users/bamieh/Bamieh/elastic/kibana/packages/kbn-i18n/src/core/i18n.test.ts:608:9) + at Object.toThrowErrorMatchingSnapshot (/Users/bamieh/Bamieh/elastic/kibana/src/platform/packages/shared/kbn-i18n/src/core/i18n.test.ts:608:9) at Promise.then.completed (/Users/bamieh/Bamieh/elastic/kibana/node_modules/jest-circus/build/utils.js:300:28) at new Promise () at callAsyncCircusFn (/Users/bamieh/Bamieh/elastic/kibana/node_modules/jest-circus/build/utils.js:233:10) @@ -71,13 +71,13 @@ Error: The intl string context variable \\"numPhotos\\" was not provided to the at IntlMessageFormat.formatToParts (/Users/bamieh/Bamieh/elastic/kibana/node_modules/intl-messageformat/src/core.js:120:51) at IntlMessageFormat.format (/Users/bamieh/Bamieh/elastic/kibana/node_modules/intl-messageformat/src/core.js:98:31) at formatMessage (/Users/bamieh/Bamieh/elastic/kibana/node_modules/@formatjs/intl/src/message.js:73:34) - at Object.formatMessage [as translate] (/Users/bamieh/Bamieh/elastic/kibana/packages/kbn-i18n/src/core/i18n.ts:150:17) - at translate (/Users/bamieh/Bamieh/elastic/kibana/packages/kbn-i18n/src/core/i18n.test.ts:432:14) + at Object.formatMessage [as translate] (/Users/bamieh/Bamieh/elastic/kibana/src/platform/packages/shared/kbn-i18n/src/core/i18n.ts:150:17) + at translate (/Users/bamieh/Bamieh/elastic/kibana/src/platform/packages/shared/kbn-i18n/src/core/i18n.test.ts:432:14) at _toThrowErrorMatchingSnapshot (/Users/bamieh/Bamieh/elastic/kibana/node_modules/jest-snapshot/build/index.js:569:7) at Object.toThrowErrorMatchingSnapshot (/Users/bamieh/Bamieh/elastic/kibana/node_modules/jest-snapshot/build/index.js:469:10) at __EXTERNAL_MATCHER_TRAP__ (/Users/bamieh/Bamieh/elastic/kibana/node_modules/expect/build/index.js:325:30) at Object.throwingMatcher [as toThrowErrorMatchingSnapshot] (/Users/bamieh/Bamieh/elastic/kibana/node_modules/expect/build/index.js:326:15) - at Object.toThrowErrorMatchingSnapshot (/Users/bamieh/Bamieh/elastic/kibana/packages/kbn-i18n/src/core/i18n.test.ts:440:9) + at Object.toThrowErrorMatchingSnapshot (/Users/bamieh/Bamieh/elastic/kibana/src/platform/packages/shared/kbn-i18n/src/core/i18n.test.ts:440:9) at Promise.then.completed (/Users/bamieh/Bamieh/elastic/kibana/node_modules/jest-circus/build/utils.js:300:28) at new Promise () at callAsyncCircusFn (/Users/bamieh/Bamieh/elastic/kibana/node_modules/jest-circus/build/utils.js:233:10) diff --git a/packages/kbn-i18n/src/core/error_handler.ts b/src/platform/packages/shared/kbn-i18n/src/core/error_handler.ts similarity index 100% rename from packages/kbn-i18n/src/core/error_handler.ts rename to src/platform/packages/shared/kbn-i18n/src/core/error_handler.ts diff --git a/packages/kbn-i18n/src/core/formats.ts b/src/platform/packages/shared/kbn-i18n/src/core/formats.ts similarity index 100% rename from packages/kbn-i18n/src/core/formats.ts rename to src/platform/packages/shared/kbn-i18n/src/core/formats.ts diff --git a/packages/kbn-i18n/src/core/i18n.test.ts b/src/platform/packages/shared/kbn-i18n/src/core/i18n.test.ts similarity index 100% rename from packages/kbn-i18n/src/core/i18n.test.ts rename to src/platform/packages/shared/kbn-i18n/src/core/i18n.test.ts diff --git a/packages/kbn-i18n/src/core/i18n.ts b/src/platform/packages/shared/kbn-i18n/src/core/i18n.ts similarity index 100% rename from packages/kbn-i18n/src/core/i18n.ts rename to src/platform/packages/shared/kbn-i18n/src/core/i18n.ts diff --git a/packages/kbn-i18n/src/core/index.ts b/src/platform/packages/shared/kbn-i18n/src/core/index.ts similarity index 100% rename from packages/kbn-i18n/src/core/index.ts rename to src/platform/packages/shared/kbn-i18n/src/core/index.ts diff --git a/packages/kbn-i18n/src/core/types.ts b/src/platform/packages/shared/kbn-i18n/src/core/types.ts similarity index 100% rename from packages/kbn-i18n/src/core/types.ts rename to src/platform/packages/shared/kbn-i18n/src/core/types.ts diff --git a/packages/kbn-i18n/src/loader.test.ts b/src/platform/packages/shared/kbn-i18n/src/loader.test.ts similarity index 100% rename from packages/kbn-i18n/src/loader.test.ts rename to src/platform/packages/shared/kbn-i18n/src/loader.test.ts diff --git a/packages/kbn-i18n/src/loader.ts b/src/platform/packages/shared/kbn-i18n/src/loader.ts similarity index 100% rename from packages/kbn-i18n/src/loader.ts rename to src/platform/packages/shared/kbn-i18n/src/loader.ts diff --git a/packages/kbn-i18n/src/translation.ts b/src/platform/packages/shared/kbn-i18n/src/translation.ts similarity index 100% rename from packages/kbn-i18n/src/translation.ts rename to src/platform/packages/shared/kbn-i18n/src/translation.ts diff --git a/packages/kbn-i18n/tsconfig.json b/src/platform/packages/shared/kbn-i18n/tsconfig.json similarity index 82% rename from packages/kbn-i18n/tsconfig.json rename to src/platform/packages/shared/kbn-i18n/tsconfig.json index 9939f46bea56c..d265dd6c7a51c 100644 --- a/packages/kbn-i18n/tsconfig.json +++ b/src/platform/packages/shared/kbn-i18n/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/src/platform/packages/shared/kbn-search-errors/BUILD.bazel b/src/platform/packages/shared/kbn-search-errors/BUILD.bazel index 7f462f59a85b7..068cfcf0630c7 100644 --- a/src/platform/packages/shared/kbn-search-errors/BUILD.bazel +++ b/src/platform/packages/shared/kbn-search-errors/BUILD.bazel @@ -22,7 +22,7 @@ SRCS = glob( ) BUNDLER_DEPS = [ - "//packages/kbn-i18n", + "//src/platform/packages/shared/kbn-i18n", "@npm//@elastic/elasticsearch", "@npm//@elastic/eui", "@npm//react", diff --git a/tsconfig.base.json b/tsconfig.base.json index 3c5a3f4560e89..3696f5fd4c2ad 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1036,8 +1036,8 @@ "@kbn/home-sample-data-tab/*": ["packages/home/sample_data_tab/*"], "@kbn/home-sample-data-types": ["packages/home/sample_data_types"], "@kbn/home-sample-data-types/*": ["packages/home/sample_data_types/*"], - "@kbn/i18n": ["packages/kbn-i18n"], - "@kbn/i18n/*": ["packages/kbn-i18n/*"], + "@kbn/i18n": ["src/platform/packages/shared/kbn-i18n"], + "@kbn/i18n/*": ["src/platform/packages/shared/kbn-i18n/*"], "@kbn/i18n-react": ["packages/kbn-i18n-react"], "@kbn/i18n-react/*": ["packages/kbn-i18n-react/*"], "@kbn/iframe-embedded-plugin": ["x-pack/test/functional_embedded/plugins/iframe_embedded"], diff --git a/x-pack/platform/plugins/private/canvas/i18n/README.md b/x-pack/platform/plugins/private/canvas/i18n/README.md index 42e088abaa320..5a7ed241d5b68 100644 --- a/x-pack/platform/plugins/private/canvas/i18n/README.md +++ b/x-pack/platform/plugins/private/canvas/i18n/README.md @@ -1,6 +1,6 @@ # Canvas and Internationalization (i18n) -Creating i18n strings in Kibana requires use of the [`@kbn/i18n`](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/GUIDELINE.md) library. The following outlines the strategy for localizing strings in Canvas +Creating i18n strings in Kibana requires use of the [`@kbn/i18n`](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/GUIDELINE.md) library. The following outlines the strategy for localizing strings in Canvas ## Why i18n Dictionaries diff --git a/x-pack/platform/plugins/private/translations/README.asciidoc b/x-pack/platform/plugins/private/translations/README.asciidoc index 52ab4b4fda8b8..3324cfd1abd0f 100644 --- a/x-pack/platform/plugins/private/translations/README.asciidoc +++ b/x-pack/platform/plugins/private/translations/README.asciidoc @@ -2,4 +2,4 @@ == Translations plugin Contains Elastic-supported translations. Owned by the Localizations team. -For adding localizations and instrument a ui to support translated content, see https://github.com/elastic/kibana/tree/main/packages/kbn-i18n[kbn-i18n] +For adding localizations and instrument a ui to support translated content, see https://github.com/elastic/kibana/tree/main/src/platform/packages/shared/kbn-i18n[kbn-i18n] diff --git a/yarn.lock b/yarn.lock index 7611601aa5e26..af00230878f0e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5893,7 +5893,7 @@ version "0.0.0" uid "" -"@kbn/i18n@link:packages/kbn-i18n": +"@kbn/i18n@link:src/platform/packages/shared/kbn-i18n": version "0.0.0" uid "" From 64830f8fd11dde8b5e353b650158f088228596b5 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:03:56 +0100 Subject: [PATCH 145/167] Relocating module `@kbn/i18n-react` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../extract_untracked_translations.ts | 2 +- .../packages/private/kbn-ui-shared-deps-src/BUILD.bazel | 2 +- .../platform/packages/shared}/kbn-i18n-react/BUILD.bazel | 0 .../platform/packages/shared}/kbn-i18n-react/README.md | 0 .../platform/packages/shared}/kbn-i18n-react/index.tsx | 0 .../platform/packages/shared}/kbn-i18n-react/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-i18n-react/kibana.jsonc | 0 .../platform/packages/shared}/kbn-i18n-react/package.json | 0 .../kbn-i18n-react/src/__snapshots__/provider.test.tsx.snap | 0 .../shared}/kbn-i18n-react/src/compatiblity_layer.tsx | 0 .../platform/packages/shared}/kbn-i18n-react/src/inject.tsx | 0 .../packages/shared}/kbn-i18n-react/src/provider.test.tsx | 0 .../platform/packages/shared}/kbn-i18n-react/src/provider.tsx | 0 .../platform/packages/shared}/kbn-i18n-react/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 18 files changed, 10 insertions(+), 10 deletions(-) rename {packages => src/platform/packages/shared}/kbn-i18n-react/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-i18n-react/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-i18n-react/index.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-i18n-react/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-i18n-react/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-i18n-react/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-i18n-react/src/__snapshots__/provider.test.tsx.snap (100%) rename {packages => src/platform/packages/shared}/kbn-i18n-react/src/compatiblity_layer.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-i18n-react/src/inject.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-i18n-react/src/provider.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-i18n-react/src/provider.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-i18n-react/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 531d6028014bd..fe202563ae808 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -190,7 +190,6 @@ packages/kbn-get-repo-files @elastic/kibana-operations packages/kbn-grid-layout @elastic/kibana-presentation packages/kbn-guided-onboarding @elastic/appex-sharedux packages/kbn-handlebars @elastic/kibana-security -packages/kbn-i18n-react @elastic/kibana-core packages/kbn-import-locator @elastic/kibana-operations packages/kbn-import-resolver @elastic/kibana-operations packages/kbn-interpreter @elastic/kibana-visualizations @@ -549,6 +548,7 @@ src/platform/packages/shared/kbn-field-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-flot-charts @elastic/kibana-presentation @elastic/stack-monitoring src/platform/packages/shared/kbn-grouping @elastic/response-ops src/platform/packages/shared/kbn-i18n @elastic/kibana-core +src/platform/packages/shared/kbn-i18n-react @elastic/kibana-core src/platform/packages/shared/kbn-io-ts-utils @elastic/obs-knowledge-team src/platform/packages/shared/kbn-lens-embeddable-utils @elastic/obs-ux-infra_services-team @elastic/kibana-visualizations src/platform/packages/shared/kbn-management/cards_navigation @elastic/kibana-management diff --git a/package.json b/package.json index 4857879f47fc1..e5ad8e2812264 100644 --- a/package.json +++ b/package.json @@ -567,7 +567,7 @@ "@kbn/home-sample-data-tab": "link:packages/home/sample_data_tab", "@kbn/home-sample-data-types": "link:packages/home/sample_data_types", "@kbn/i18n": "link:src/platform/packages/shared/kbn-i18n", - "@kbn/i18n-react": "link:packages/kbn-i18n-react", + "@kbn/i18n-react": "link:src/platform/packages/shared/kbn-i18n-react", "@kbn/iframe-embedded-plugin": "link:x-pack/test/functional_embedded/plugins/iframe_embedded", "@kbn/image-embeddable-plugin": "link:src/platform/plugins/private/image_embeddable", "@kbn/index-adapter": "link:x-pack/solutions/security/packages/index-adapter", diff --git a/src/dev/i18n_tools/tasks/check_untracked_namespaces/extract_untracked_translations.ts b/src/dev/i18n_tools/tasks/check_untracked_namespaces/extract_untracked_translations.ts index 8dab99f98f682..c2790972ab231 100644 --- a/src/dev/i18n_tools/tasks/check_untracked_namespaces/extract_untracked_translations.ts +++ b/src/dev/i18n_tools/tasks/check_untracked_namespaces/extract_untracked_translations.ts @@ -32,7 +32,7 @@ export async function* extractUntrackedMessages(rootPath: string, definedPathsFo '**/build/**', '**/__fixtures__/**', '**/src/platform/packages/shared/kbn-i18n/**', - '**/packages/kbn-i18n-react/**', + '**/src/platform/packages/shared/kbn-i18n-react/**', '**/packages/kbn-plugin-generator/template/**', '**/test/**', '**/scripts/**', diff --git a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel index 8cff35c8051f4..e47cd69dab0e8 100644 --- a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel +++ b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel @@ -23,7 +23,7 @@ webpack_cli( # packages included in the shared deps src bundle "//src/platform/packages/shared/kbn-ui-theme", "//src/platform/packages/shared/kbn-i18n", - "//packages/kbn-i18n-react", + "//src/platform/packages/shared/kbn-i18n-react", "//src/platform/packages/shared/kbn-ebt-tools", "//src/platform/packages/shared/kbn-esql-ast", "//packages/kbn-monaco", diff --git a/packages/kbn-i18n-react/BUILD.bazel b/src/platform/packages/shared/kbn-i18n-react/BUILD.bazel similarity index 100% rename from packages/kbn-i18n-react/BUILD.bazel rename to src/platform/packages/shared/kbn-i18n-react/BUILD.bazel diff --git a/packages/kbn-i18n-react/README.md b/src/platform/packages/shared/kbn-i18n-react/README.md similarity index 100% rename from packages/kbn-i18n-react/README.md rename to src/platform/packages/shared/kbn-i18n-react/README.md diff --git a/packages/kbn-i18n-react/index.tsx b/src/platform/packages/shared/kbn-i18n-react/index.tsx similarity index 100% rename from packages/kbn-i18n-react/index.tsx rename to src/platform/packages/shared/kbn-i18n-react/index.tsx diff --git a/packages/kbn-i18n-react/jest.config.js b/src/platform/packages/shared/kbn-i18n-react/jest.config.js similarity index 84% rename from packages/kbn-i18n-react/jest.config.js rename to src/platform/packages/shared/kbn-i18n-react/jest.config.js index 4efbb8468bbc4..3861b8c93894a 100644 --- a/packages/kbn-i18n-react/jest.config.js +++ b/src/platform/packages/shared/kbn-i18n-react/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-i18n-react'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-i18n-react'], }; diff --git a/packages/kbn-i18n-react/kibana.jsonc b/src/platform/packages/shared/kbn-i18n-react/kibana.jsonc similarity index 100% rename from packages/kbn-i18n-react/kibana.jsonc rename to src/platform/packages/shared/kbn-i18n-react/kibana.jsonc diff --git a/packages/kbn-i18n-react/package.json b/src/platform/packages/shared/kbn-i18n-react/package.json similarity index 100% rename from packages/kbn-i18n-react/package.json rename to src/platform/packages/shared/kbn-i18n-react/package.json diff --git a/packages/kbn-i18n-react/src/__snapshots__/provider.test.tsx.snap b/src/platform/packages/shared/kbn-i18n-react/src/__snapshots__/provider.test.tsx.snap similarity index 100% rename from packages/kbn-i18n-react/src/__snapshots__/provider.test.tsx.snap rename to src/platform/packages/shared/kbn-i18n-react/src/__snapshots__/provider.test.tsx.snap diff --git a/packages/kbn-i18n-react/src/compatiblity_layer.tsx b/src/platform/packages/shared/kbn-i18n-react/src/compatiblity_layer.tsx similarity index 100% rename from packages/kbn-i18n-react/src/compatiblity_layer.tsx rename to src/platform/packages/shared/kbn-i18n-react/src/compatiblity_layer.tsx diff --git a/packages/kbn-i18n-react/src/inject.tsx b/src/platform/packages/shared/kbn-i18n-react/src/inject.tsx similarity index 100% rename from packages/kbn-i18n-react/src/inject.tsx rename to src/platform/packages/shared/kbn-i18n-react/src/inject.tsx diff --git a/packages/kbn-i18n-react/src/provider.test.tsx b/src/platform/packages/shared/kbn-i18n-react/src/provider.test.tsx similarity index 100% rename from packages/kbn-i18n-react/src/provider.test.tsx rename to src/platform/packages/shared/kbn-i18n-react/src/provider.test.tsx diff --git a/packages/kbn-i18n-react/src/provider.tsx b/src/platform/packages/shared/kbn-i18n-react/src/provider.tsx similarity index 100% rename from packages/kbn-i18n-react/src/provider.tsx rename to src/platform/packages/shared/kbn-i18n-react/src/provider.tsx diff --git a/packages/kbn-i18n-react/tsconfig.json b/src/platform/packages/shared/kbn-i18n-react/tsconfig.json similarity index 82% rename from packages/kbn-i18n-react/tsconfig.json rename to src/platform/packages/shared/kbn-i18n-react/tsconfig.json index 74fb754fc3d2d..9abdde569c6b1 100644 --- a/packages/kbn-i18n-react/tsconfig.json +++ b/src/platform/packages/shared/kbn-i18n-react/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 3696f5fd4c2ad..256e09310dc84 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1038,8 +1038,8 @@ "@kbn/home-sample-data-types/*": ["packages/home/sample_data_types/*"], "@kbn/i18n": ["src/platform/packages/shared/kbn-i18n"], "@kbn/i18n/*": ["src/platform/packages/shared/kbn-i18n/*"], - "@kbn/i18n-react": ["packages/kbn-i18n-react"], - "@kbn/i18n-react/*": ["packages/kbn-i18n-react/*"], + "@kbn/i18n-react": ["src/platform/packages/shared/kbn-i18n-react"], + "@kbn/i18n-react/*": ["src/platform/packages/shared/kbn-i18n-react/*"], "@kbn/iframe-embedded-plugin": ["x-pack/test/functional_embedded/plugins/iframe_embedded"], "@kbn/iframe-embedded-plugin/*": ["x-pack/test/functional_embedded/plugins/iframe_embedded/*"], "@kbn/image-embeddable-plugin": ["src/platform/plugins/private/image_embeddable"], diff --git a/yarn.lock b/yarn.lock index af00230878f0e..4757a7de18c60 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5889,7 +5889,7 @@ version "0.0.0" uid "" -"@kbn/i18n-react@link:packages/kbn-i18n-react": +"@kbn/i18n-react@link:src/platform/packages/shared/kbn-i18n-react": version "0.0.0" uid "" From 6ba450e14dd9232b5019eee745b1bbef62a09c47 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:04:48 +0100 Subject: [PATCH 146/167] Relocating module `@kbn/kibana-usage-collection-plugin` --- .eslintrc.js | 4 ++-- .github/CODEOWNERS | 2 +- .telemetryrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/private}/kibana_usage_collection/README.md | 0 .../private}/kibana_usage_collection/common/constants.ts | 0 .../private}/kibana_usage_collection/jest.config.js | 8 ++++---- .../kibana_usage_collection/jest.integration.config.js | 4 ++-- .../plugins/private}/kibana_usage_collection/kibana.jsonc | 0 .../kibana_usage_collection/public/ebt_counters/README.md | 0 .../kibana_usage_collection/public/ebt_counters/index.ts | 0 .../public/ebt_counters/register_ebt_counters.test.ts | 0 .../public/ebt_counters/register_ebt_counters.ts | 0 .../private}/kibana_usage_collection/public/index.ts | 0 .../kibana_usage_collection/public/plugin.test.mocks.ts | 0 .../kibana_usage_collection/public/plugin.test.ts | 0 .../private}/kibana_usage_collection/public/plugin.ts | 0 .../server/collectors/application_usage/README.md | 0 .../server/collectors/application_usage/constants.ts | 0 .../server/collectors/application_usage/index.ts | 0 .../server/collectors/application_usage/rollups/index.ts | 0 .../collectors/application_usage/rollups/total.test.ts | 0 .../server/collectors/application_usage/rollups/total.ts | 0 .../server/collectors/application_usage/rollups/utils.ts | 0 .../collectors/application_usage/saved_objects_types.ts | 0 .../server/collectors/application_usage/schema.ts | 0 .../telemetry_application_usage_collector.test.ts | 0 .../telemetry_application_usage_collector.ts | 0 .../server/collectors/application_usage/types.ts | 0 .../cloud/cloud_provider_collector.test.mocks.ts | 0 .../collectors/cloud/cloud_provider_collector.test.ts | 0 .../server/collectors/cloud/cloud_provider_collector.ts | 0 .../server/collectors/cloud/detector/aws.test.ts | 0 .../server/collectors/cloud/detector/aws.ts | 0 .../server/collectors/cloud/detector/azure.test.ts | 0 .../server/collectors/cloud/detector/azure.ts | 0 .../collectors/cloud/detector/cloud_detector.mock.ts | 0 .../collectors/cloud/detector/cloud_detector.test.ts | 0 .../server/collectors/cloud/detector/cloud_detector.ts | 0 .../collectors/cloud/detector/cloud_response.test.ts | 0 .../server/collectors/cloud/detector/cloud_response.ts | 0 .../collectors/cloud/detector/cloud_service.test.ts | 0 .../server/collectors/cloud/detector/cloud_service.ts | 0 .../server/collectors/cloud/detector/gcp.test.ts | 0 .../server/collectors/cloud/detector/gcp.ts | 0 .../server/collectors/cloud/detector/index.ts | 0 .../server/collectors/cloud/index.ts | 0 .../common/__fixtures__/counters_saved_objects.ts | 0 .../server/collectors/common/counters.test.ts | 0 .../server/collectors/common/counters.ts | 0 .../server/collectors/config_usage/README.md | 0 .../server/collectors/config_usage/index.ts | 0 .../config_usage/register_config_usage_collector.test.ts | 0 .../config_usage/register_config_usage_collector.ts | 0 .../server/collectors/core/core_usage_collector.test.ts | 0 .../server/collectors/core/core_usage_collector.ts | 0 .../collectors/core/fetch_deprecated_api_counters.ts | 0 .../server/collectors/core/index.ts | 0 .../server/collectors/csp/csp_collector.test.ts | 0 .../server/collectors/csp/csp_collector.ts | 0 .../server/collectors/csp/index.ts | 0 .../server/collectors/event_loop_delays/constants.ts | 0 .../event_loop_delays_usage_collector.test.ts | 0 .../event_loop_delays_usage_collector.ts | 0 .../server/collectors/event_loop_delays/index.ts | 0 .../collectors/event_loop_delays/rollups/daily.test.ts | 0 .../server/collectors/event_loop_delays/rollups/daily.ts | 0 .../server/collectors/event_loop_delays/rollups/index.ts | 0 .../rollups/integration_tests/daily_rollups.test.ts | 0 .../collectors/event_loop_delays/saved_objects.test.ts | 0 .../server/collectors/event_loop_delays/saved_objects.ts | 0 .../server/collectors/event_loop_delays/schema.ts | 0 .../collectors/event_loop_delays/track_delays.test.ts | 0 .../server/collectors/event_loop_delays/track_delays.ts | 0 .../collectors/event_loop_delays/track_threshold.test.ts | 0 .../collectors/event_loop_delays/track_threshold.ts | 0 .../kibana_usage_collection/server/collectors/index.ts | 0 .../collectors/localization/file_integrity.test.mocks.ts | 0 .../server/collectors/localization/file_integrity.test.ts | 0 .../server/collectors/localization/file_integrity.ts | 0 .../server/collectors/localization/index.ts | 0 .../localization/telemetry_localization_collector.test.ts | 0 .../localization/telemetry_localization_collector.ts | 0 .../server/collectors/management/README.md | 0 .../server/collectors/management/index.ts | 0 .../server/collectors/management/schema.ts | 0 .../management/telemetry_management_collector.test.ts | 0 .../management/telemetry_management_collector.ts | 0 .../server/collectors/management/types.ts | 0 .../__snapshots__/ops_stats_collector.test.ts.snap | 0 .../server/collectors/ops_stats/index.ts | 0 .../collectors/ops_stats/ops_stats_collector.test.ts | 0 .../server/collectors/ops_stats/ops_stats_collector.ts | 0 .../get_saved_object_counts.test.ts | 0 .../get_saved_object_counts/get_saved_object_counts.ts | 0 .../saved_objects_counts/get_saved_object_counts/index.ts | 0 .../server/collectors/saved_objects_counts/index.ts | 0 .../saved_objects_counts/kibana_usage_collector.test.ts | 0 .../saved_objects_counts/kibana_usage_collector.ts | 0 .../saved_objects_count.test.mocks.ts | 0 .../saved_objects_count_collector.test.ts | 0 .../saved_objects_counts/saved_objects_count_collector.ts | 0 .../server/collectors/ui_counters/index.ts | 0 .../ui_counters/register_ui_counters_collector.test.ts | 0 .../ui_counters/register_ui_counters_collector.ts | 0 .../server/collectors/ui_metric/index.test.ts | 0 .../server/collectors/ui_metric/index.ts | 0 .../server/collectors/ui_metric/schema.ts | 0 .../collectors/ui_metric/telemetry_ui_metric_collector.ts | 0 .../server/collectors/usage_counters/index.ts | 0 .../register_usage_counters_collector.test.ts | 0 .../usage_counters/register_usage_counters_collector.ts | 0 .../kibana_usage_collection/server/ebt_counters/README.md | 0 .../kibana_usage_collection/server/ebt_counters/index.ts | 0 .../server/ebt_counters/register_ebt_counters.test.ts | 0 .../server/ebt_counters/register_ebt_counters.ts | 0 .../private}/kibana_usage_collection/server/index.ts | 0 .../kibana_usage_collection/server/plugin.test.mocks.ts | 0 .../kibana_usage_collection/server/plugin.test.ts | 0 .../private}/kibana_usage_collection/server/plugin.ts | 0 .../private}/kibana_usage_collection/tsconfig.json | 4 ++-- tsconfig.base.json | 4 ++-- .../plugins/observability/dev_docs/feature_flags.md | 2 +- .../test_suites/application_usage/index.ts | 2 +- .../test_suites/stack_management_usage/index.ts | 4 ++-- yarn.lock | 2 +- 127 files changed, 21 insertions(+), 21 deletions(-) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/README.md (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/common/constants.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/jest.config.js (71%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/jest.integration.config.js (83%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/kibana.jsonc (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/public/ebt_counters/README.md (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/public/ebt_counters/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/public/ebt_counters/register_ebt_counters.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/public/ebt_counters/register_ebt_counters.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/public/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/public/plugin.test.mocks.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/public/plugin.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/public/plugin.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/application_usage/README.md (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/application_usage/constants.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/application_usage/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/application_usage/rollups/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/application_usage/rollups/total.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/application_usage/rollups/total.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/application_usage/rollups/utils.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/application_usage/saved_objects_types.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/application_usage/schema.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/application_usage/telemetry_application_usage_collector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/application_usage/telemetry_application_usage_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/application_usage/types.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.test.mocks.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/aws.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/aws.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/azure.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/azure.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.mock.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/cloud_response.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/cloud_response.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/cloud_service.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/cloud_service.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/gcp.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/gcp.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/detector/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/cloud/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/common/__fixtures__/counters_saved_objects.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/common/counters.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/common/counters.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/config_usage/README.md (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/config_usage/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/core/core_usage_collector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/core/core_usage_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/core/fetch_deprecated_api_counters.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/core/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/csp/csp_collector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/csp/csp_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/csp/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/constants.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/event_loop_delays_usage_collector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/event_loop_delays_usage_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/rollups/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/saved_objects.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/saved_objects.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/schema.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/track_delays.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/track_delays.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/track_threshold.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/event_loop_delays/track_threshold.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/localization/file_integrity.test.mocks.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/localization/file_integrity.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/localization/file_integrity.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/localization/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/localization/telemetry_localization_collector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/localization/telemetry_localization_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/management/README.md (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/management/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/management/schema.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/management/telemetry_management_collector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/management/telemetry_management_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/management/types.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/ops_stats/__snapshots__/ops_stats_collector.test.ts.snap (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/ops_stats/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/ops_stats/ops_stats_collector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/ops_stats/ops_stats_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/get_saved_object_counts.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/get_saved_object_counts.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/saved_objects_counts/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count.test.mocks.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/ui_counters/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/ui_counters/register_ui_counters_collector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/ui_counters/register_ui_counters_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/ui_metric/index.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/ui_metric/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/ui_metric/schema.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/ui_metric/telemetry_ui_metric_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/usage_counters/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/usage_counters/register_usage_counters_collector.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/collectors/usage_counters/register_usage_counters_collector.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/ebt_counters/README.md (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/ebt_counters/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/ebt_counters/register_ebt_counters.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/ebt_counters/register_ebt_counters.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/index.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/plugin.test.mocks.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/plugin.test.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/server/plugin.ts (100%) rename src/{plugins => platform/plugins/private}/kibana_usage_collection/tsconfig.json (84%) diff --git a/.eslintrc.js b/.eslintrc.js index dd8e842c31068..c041e01eea988 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1923,7 +1923,7 @@ module.exports = { files: [ 'src/platform/packages/shared/kbn-analytics/**', // 'packages/kbn-telemetry-tools/**', - 'src/plugins/kibana_usage_collection/**', + 'src/platform/plugins/private/kibana_usage_collection/**', 'src/plugins/usage_collection/**', 'src/plugins/telemetry/**', 'src/plugins/telemetry_collection_manager/**', @@ -1947,7 +1947,7 @@ module.exports = { 'src/plugins/saved_objects_management/**', 'src/platform/packages/shared/kbn-analytics/**', 'packages/kbn-telemetry-tools/**', - 'src/plugins/kibana_usage_collection/**', + 'src/platform/plugins/private/kibana_usage_collection/**', 'src/plugins/usage_collection/**', 'src/plugins/telemetry/**', 'src/plugins/telemetry_collection_manager/**', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index fe202563ae808..7854461a5cf1b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -609,6 +609,7 @@ src/platform/plugins/private/ftr_apis @elastic/kibana-core src/platform/plugins/private/image_embeddable @elastic/appex-sharedux src/platform/plugins/private/input_control_vis @elastic/kibana-presentation src/platform/plugins/private/kibana_overview @elastic/appex-sharedux +src/platform/plugins/private/kibana_usage_collection @elastic/kibana-core src/platform/plugins/private/links @elastic/kibana-presentation src/platform/plugins/private/maps_ems @elastic/kibana-presentation src/platform/plugins/private/no_data_page @elastic/appex-sharedux @@ -671,7 +672,6 @@ src/plugins/event_annotation @elastic/kibana-visualizations src/plugins/event_annotation_listing @elastic/kibana-visualizations src/plugins/expressions @elastic/kibana-visualizations src/plugins/interactive_setup @elastic/kibana-security -src/plugins/kibana_usage_collection @elastic/kibana-core src/plugins/newsfeed @elastic/kibana-core src/plugins/saved_objects_management @elastic/kibana-core src/plugins/telemetry @elastic/kibana-core diff --git a/.telemetryrc.json b/.telemetryrc.json index 2387ef73c88ec..902ae82b6bd28 100644 --- a/.telemetryrc.json +++ b/.telemetryrc.json @@ -3,7 +3,7 @@ "output": "src/plugins/telemetry/schema/oss_plugins.json", "root": "src/plugins/", "exclude": [ - "src/plugins/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.ts" + "src/platform/plugins/private/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.ts" ] }, { diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 2e52b61d2b5f0..a35f101ee1c41 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -242,7 +242,7 @@ in Kibana, e.g. visualizations. It has the form of a flyout panel. |Tools for building React applications in Kibana. -|{kib-repo}blob/{branch}/src/plugins/kibana_usage_collection/README.md[kibanaUsageCollection] +|{kib-repo}blob/{branch}/src/platform/plugins/private/kibana_usage_collection/README.md[kibanaUsageCollection] |This plugin registers the Platform Usage Collectors in Kibana. diff --git a/package.json b/package.json index e5ad8e2812264..0df08bd9052a8 100644 --- a/package.json +++ b/package.json @@ -605,7 +605,7 @@ "@kbn/kibana-cors-test-plugin": "link:x-pack/test/functional_cors/plugins/kibana_cors_test", "@kbn/kibana-overview-plugin": "link:src/platform/plugins/private/kibana_overview", "@kbn/kibana-react-plugin": "link:src/platform/plugins/shared/kibana_react", - "@kbn/kibana-usage-collection-plugin": "link:src/plugins/kibana_usage_collection", + "@kbn/kibana-usage-collection-plugin": "link:src/platform/plugins/private/kibana_usage_collection", "@kbn/kibana-utils-plugin": "link:src/platform/plugins/shared/kibana_utils", "@kbn/kubernetes-security-plugin": "link:x-pack/solutions/security/plugins/kubernetes_security", "@kbn/langchain": "link:x-pack/platform/packages/shared/kbn-langchain", diff --git a/src/plugins/kibana_usage_collection/README.md b/src/platform/plugins/private/kibana_usage_collection/README.md similarity index 100% rename from src/plugins/kibana_usage_collection/README.md rename to src/platform/plugins/private/kibana_usage_collection/README.md diff --git a/src/plugins/kibana_usage_collection/common/constants.ts b/src/platform/plugins/private/kibana_usage_collection/common/constants.ts similarity index 100% rename from src/plugins/kibana_usage_collection/common/constants.ts rename to src/platform/plugins/private/kibana_usage_collection/common/constants.ts diff --git a/src/plugins/kibana_usage_collection/jest.config.js b/src/platform/plugins/private/kibana_usage_collection/jest.config.js similarity index 71% rename from src/plugins/kibana_usage_collection/jest.config.js rename to src/platform/plugins/private/kibana_usage_collection/jest.config.js index 71f668d5712e3..e30e3349b1e93 100644 --- a/src/plugins/kibana_usage_collection/jest.config.js +++ b/src/platform/plugins/private/kibana_usage_collection/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/kibana_usage_collection'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/kibana_usage_collection', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/private/kibana_usage_collection'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/kibana_usage_collection', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/kibana_usage_collection/{common,server}/**/*.{ts,tsx}', + '/src/platform/plugins/private/kibana_usage_collection/{common,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/kibana_usage_collection/jest.integration.config.js b/src/platform/plugins/private/kibana_usage_collection/jest.integration.config.js similarity index 83% rename from src/plugins/kibana_usage_collection/jest.integration.config.js rename to src/platform/plugins/private/kibana_usage_collection/jest.integration.config.js index ee3d994d886fc..8bf4e92b730a1 100644 --- a/src/plugins/kibana_usage_collection/jest.integration.config.js +++ b/src/platform/plugins/private/kibana_usage_collection/jest.integration.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_integration', - rootDir: '../../..', - roots: ['/src/plugins/kibana_usage_collection'], + rootDir: '../../../../..', + roots: ['/src/platform/plugins/private/kibana_usage_collection'], }; diff --git a/src/plugins/kibana_usage_collection/kibana.jsonc b/src/platform/plugins/private/kibana_usage_collection/kibana.jsonc similarity index 100% rename from src/plugins/kibana_usage_collection/kibana.jsonc rename to src/platform/plugins/private/kibana_usage_collection/kibana.jsonc diff --git a/src/plugins/kibana_usage_collection/public/ebt_counters/README.md b/src/platform/plugins/private/kibana_usage_collection/public/ebt_counters/README.md similarity index 100% rename from src/plugins/kibana_usage_collection/public/ebt_counters/README.md rename to src/platform/plugins/private/kibana_usage_collection/public/ebt_counters/README.md diff --git a/src/plugins/kibana_usage_collection/public/ebt_counters/index.ts b/src/platform/plugins/private/kibana_usage_collection/public/ebt_counters/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/public/ebt_counters/index.ts rename to src/platform/plugins/private/kibana_usage_collection/public/ebt_counters/index.ts diff --git a/src/plugins/kibana_usage_collection/public/ebt_counters/register_ebt_counters.test.ts b/src/platform/plugins/private/kibana_usage_collection/public/ebt_counters/register_ebt_counters.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/public/ebt_counters/register_ebt_counters.test.ts rename to src/platform/plugins/private/kibana_usage_collection/public/ebt_counters/register_ebt_counters.test.ts diff --git a/src/plugins/kibana_usage_collection/public/ebt_counters/register_ebt_counters.ts b/src/platform/plugins/private/kibana_usage_collection/public/ebt_counters/register_ebt_counters.ts similarity index 100% rename from src/plugins/kibana_usage_collection/public/ebt_counters/register_ebt_counters.ts rename to src/platform/plugins/private/kibana_usage_collection/public/ebt_counters/register_ebt_counters.ts diff --git a/src/plugins/kibana_usage_collection/public/index.ts b/src/platform/plugins/private/kibana_usage_collection/public/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/public/index.ts rename to src/platform/plugins/private/kibana_usage_collection/public/index.ts diff --git a/src/plugins/kibana_usage_collection/public/plugin.test.mocks.ts b/src/platform/plugins/private/kibana_usage_collection/public/plugin.test.mocks.ts similarity index 100% rename from src/plugins/kibana_usage_collection/public/plugin.test.mocks.ts rename to src/platform/plugins/private/kibana_usage_collection/public/plugin.test.mocks.ts diff --git a/src/plugins/kibana_usage_collection/public/plugin.test.ts b/src/platform/plugins/private/kibana_usage_collection/public/plugin.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/public/plugin.test.ts rename to src/platform/plugins/private/kibana_usage_collection/public/plugin.test.ts diff --git a/src/plugins/kibana_usage_collection/public/plugin.ts b/src/platform/plugins/private/kibana_usage_collection/public/plugin.ts similarity index 100% rename from src/plugins/kibana_usage_collection/public/plugin.ts rename to src/platform/plugins/private/kibana_usage_collection/public/plugin.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/README.md b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/README.md similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/application_usage/README.md rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/README.md diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/constants.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/constants.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/application_usage/constants.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/constants.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/application_usage/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/rollups/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/rollups/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/application_usage/rollups/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/rollups/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/rollups/total.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/rollups/total.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/application_usage/rollups/total.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/rollups/total.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/rollups/total.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/rollups/total.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/application_usage/rollups/total.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/rollups/total.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/rollups/utils.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/rollups/utils.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/application_usage/rollups/utils.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/rollups/utils.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/saved_objects_types.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/saved_objects_types.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/application_usage/saved_objects_types.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/saved_objects_types.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/schema.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/schema.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/application_usage/schema.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/schema.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/telemetry_application_usage_collector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/telemetry_application_usage_collector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/application_usage/telemetry_application_usage_collector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/telemetry_application_usage_collector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/telemetry_application_usage_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/telemetry_application_usage_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/application_usage/telemetry_application_usage_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/telemetry_application_usage_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/types.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/types.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/application_usage/types.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/types.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.test.mocks.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.test.mocks.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.test.mocks.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.test.mocks.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/cloud_provider_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/aws.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/aws.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/aws.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/aws.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/aws.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/aws.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/aws.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/aws.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/azure.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/azure.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/azure.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/azure.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/azure.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/azure.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/azure.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/azure.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.mock.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.mock.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.mock.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.mock.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_detector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_response.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_response.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_response.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_response.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_response.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_response.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_response.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_response.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_service.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_service.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_service.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_service.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_service.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_service.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/cloud_service.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/cloud_service.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/gcp.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/gcp.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/gcp.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/gcp.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/gcp.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/gcp.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/gcp.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/gcp.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/detector/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/detector/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/detector/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/cloud/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/cloud/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/cloud/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/common/__fixtures__/counters_saved_objects.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/common/__fixtures__/counters_saved_objects.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/common/__fixtures__/counters_saved_objects.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/common/__fixtures__/counters_saved_objects.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/common/counters.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/common/counters.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/common/counters.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/common/counters.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/common/counters.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/common/counters.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/common/counters.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/common/counters.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/config_usage/README.md b/src/platform/plugins/private/kibana_usage_collection/server/collectors/config_usage/README.md similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/config_usage/README.md rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/config_usage/README.md diff --git a/src/plugins/kibana_usage_collection/server/collectors/config_usage/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/config_usage/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/config_usage/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/config_usage/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/core/core_usage_collector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/core/core_usage_collector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/core/core_usage_collector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/core/core_usage_collector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/core/core_usage_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/core/core_usage_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/core/core_usage_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/core/core_usage_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/core/fetch_deprecated_api_counters.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/core/fetch_deprecated_api_counters.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/core/fetch_deprecated_api_counters.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/core/fetch_deprecated_api_counters.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/core/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/core/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/core/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/core/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/csp/csp_collector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/csp/csp_collector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/csp/csp_collector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/csp/csp_collector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/csp/csp_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/csp/csp_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/csp/csp_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/csp/csp_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/csp/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/csp/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/csp/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/csp/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/constants.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/constants.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/constants.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/constants.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/event_loop_delays_usage_collector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/event_loop_delays_usage_collector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/event_loop_delays_usage_collector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/event_loop_delays_usage_collector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/event_loop_delays_usage_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/event_loop_delays_usage_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/event_loop_delays_usage_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/event_loop_delays_usage_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/rollups/daily.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/rollups/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/rollups/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/saved_objects.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/saved_objects.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/saved_objects.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/saved_objects.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/saved_objects.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/saved_objects.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/saved_objects.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/saved_objects.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/schema.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/schema.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/schema.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/schema.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/track_delays.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/track_delays.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/track_delays.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/track_delays.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/track_delays.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/track_delays.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/track_delays.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/track_delays.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/track_threshold.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/track_threshold.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/track_threshold.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/track_threshold.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/track_threshold.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/track_threshold.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/track_threshold.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/event_loop_delays/track_threshold.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/localization/file_integrity.test.mocks.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/localization/file_integrity.test.mocks.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/localization/file_integrity.test.mocks.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/localization/file_integrity.test.mocks.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/localization/file_integrity.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/localization/file_integrity.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/localization/file_integrity.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/localization/file_integrity.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/localization/file_integrity.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/localization/file_integrity.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/localization/file_integrity.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/localization/file_integrity.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/localization/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/localization/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/localization/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/localization/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/localization/telemetry_localization_collector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/localization/telemetry_localization_collector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/localization/telemetry_localization_collector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/localization/telemetry_localization_collector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/localization/telemetry_localization_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/localization/telemetry_localization_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/localization/telemetry_localization_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/localization/telemetry_localization_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/management/README.md b/src/platform/plugins/private/kibana_usage_collection/server/collectors/management/README.md similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/management/README.md rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/management/README.md diff --git a/src/plugins/kibana_usage_collection/server/collectors/management/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/management/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/management/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/management/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/management/schema.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/management/schema.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/management/schema.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/management/schema.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/management/telemetry_management_collector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/management/telemetry_management_collector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/management/telemetry_management_collector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/management/telemetry_management_collector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/management/telemetry_management_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/management/telemetry_management_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/management/telemetry_management_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/management/telemetry_management_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/management/types.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/management/types.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/management/types.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/management/types.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/ops_stats/__snapshots__/ops_stats_collector.test.ts.snap b/src/platform/plugins/private/kibana_usage_collection/server/collectors/ops_stats/__snapshots__/ops_stats_collector.test.ts.snap similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/ops_stats/__snapshots__/ops_stats_collector.test.ts.snap rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/ops_stats/__snapshots__/ops_stats_collector.test.ts.snap diff --git a/src/plugins/kibana_usage_collection/server/collectors/ops_stats/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/ops_stats/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/ops_stats/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/ops_stats/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/ops_stats/ops_stats_collector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/ops_stats/ops_stats_collector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/ops_stats/ops_stats_collector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/ops_stats/ops_stats_collector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/ops_stats/ops_stats_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/ops_stats/ops_stats_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/ops_stats/ops_stats_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/ops_stats/ops_stats_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/get_saved_object_counts.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/get_saved_object_counts.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/get_saved_object_counts.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/get_saved_object_counts.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/get_saved_object_counts.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/get_saved_object_counts.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/get_saved_object_counts.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/get_saved_object_counts.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count.test.mocks.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count.test.mocks.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count.test.mocks.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count.test.mocks.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/ui_counters/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_counters/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/ui_counters/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_counters/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/ui_counters/register_ui_counters_collector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_counters/register_ui_counters_collector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/ui_counters/register_ui_counters_collector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_counters/register_ui_counters_collector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/ui_counters/register_ui_counters_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_counters/register_ui_counters_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/ui_counters/register_ui_counters_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_counters/register_ui_counters_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/ui_metric/index.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_metric/index.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/ui_metric/index.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_metric/index.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/ui_metric/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_metric/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/ui_metric/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_metric/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/ui_metric/schema.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_metric/schema.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/ui_metric/schema.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_metric/schema.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/ui_metric/telemetry_ui_metric_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_metric/telemetry_ui_metric_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/ui_metric/telemetry_ui_metric_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/ui_metric/telemetry_ui_metric_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/usage_counters/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/usage_counters/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/usage_counters/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/usage_counters/index.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/usage_counters/register_usage_counters_collector.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/usage_counters/register_usage_counters_collector.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/usage_counters/register_usage_counters_collector.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/usage_counters/register_usage_counters_collector.test.ts diff --git a/src/plugins/kibana_usage_collection/server/collectors/usage_counters/register_usage_counters_collector.ts b/src/platform/plugins/private/kibana_usage_collection/server/collectors/usage_counters/register_usage_counters_collector.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/collectors/usage_counters/register_usage_counters_collector.ts rename to src/platform/plugins/private/kibana_usage_collection/server/collectors/usage_counters/register_usage_counters_collector.ts diff --git a/src/plugins/kibana_usage_collection/server/ebt_counters/README.md b/src/platform/plugins/private/kibana_usage_collection/server/ebt_counters/README.md similarity index 100% rename from src/plugins/kibana_usage_collection/server/ebt_counters/README.md rename to src/platform/plugins/private/kibana_usage_collection/server/ebt_counters/README.md diff --git a/src/plugins/kibana_usage_collection/server/ebt_counters/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/ebt_counters/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/ebt_counters/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/ebt_counters/index.ts diff --git a/src/plugins/kibana_usage_collection/server/ebt_counters/register_ebt_counters.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/ebt_counters/register_ebt_counters.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/ebt_counters/register_ebt_counters.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/ebt_counters/register_ebt_counters.test.ts diff --git a/src/plugins/kibana_usage_collection/server/ebt_counters/register_ebt_counters.ts b/src/platform/plugins/private/kibana_usage_collection/server/ebt_counters/register_ebt_counters.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/ebt_counters/register_ebt_counters.ts rename to src/platform/plugins/private/kibana_usage_collection/server/ebt_counters/register_ebt_counters.ts diff --git a/src/plugins/kibana_usage_collection/server/index.ts b/src/platform/plugins/private/kibana_usage_collection/server/index.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/index.ts rename to src/platform/plugins/private/kibana_usage_collection/server/index.ts diff --git a/src/plugins/kibana_usage_collection/server/plugin.test.mocks.ts b/src/platform/plugins/private/kibana_usage_collection/server/plugin.test.mocks.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/plugin.test.mocks.ts rename to src/platform/plugins/private/kibana_usage_collection/server/plugin.test.mocks.ts diff --git a/src/plugins/kibana_usage_collection/server/plugin.test.ts b/src/platform/plugins/private/kibana_usage_collection/server/plugin.test.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/plugin.test.ts rename to src/platform/plugins/private/kibana_usage_collection/server/plugin.test.ts diff --git a/src/plugins/kibana_usage_collection/server/plugin.ts b/src/platform/plugins/private/kibana_usage_collection/server/plugin.ts similarity index 100% rename from src/plugins/kibana_usage_collection/server/plugin.ts rename to src/platform/plugins/private/kibana_usage_collection/server/plugin.ts diff --git a/src/plugins/kibana_usage_collection/tsconfig.json b/src/platform/plugins/private/kibana_usage_collection/tsconfig.json similarity index 84% rename from src/plugins/kibana_usage_collection/tsconfig.json rename to src/platform/plugins/private/kibana_usage_collection/tsconfig.json index 2fb915d541052..9b489fc4f944f 100644 --- a/src/plugins/kibana_usage_collection/tsconfig.json +++ b/src/platform/plugins/private/kibana_usage_collection/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true @@ -8,7 +8,7 @@ "common/*", "public/**/**/*", "server/**/**/*", - "../../../typings/*" + "../../../../../typings/*" ], "kbn_references": [ "@kbn/core", diff --git a/tsconfig.base.json b/tsconfig.base.json index 256e09310dc84..f929f5f287f62 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1128,8 +1128,8 @@ "@kbn/kibana-overview-plugin/*": ["src/platform/plugins/private/kibana_overview/*"], "@kbn/kibana-react-plugin": ["src/platform/plugins/shared/kibana_react"], "@kbn/kibana-react-plugin/*": ["src/platform/plugins/shared/kibana_react/*"], - "@kbn/kibana-usage-collection-plugin": ["src/plugins/kibana_usage_collection"], - "@kbn/kibana-usage-collection-plugin/*": ["src/plugins/kibana_usage_collection/*"], + "@kbn/kibana-usage-collection-plugin": ["src/platform/plugins/private/kibana_usage_collection"], + "@kbn/kibana-usage-collection-plugin/*": ["src/platform/plugins/private/kibana_usage_collection/*"], "@kbn/kibana-utils-plugin": ["src/platform/plugins/shared/kibana_utils"], "@kbn/kibana-utils-plugin/*": ["src/platform/plugins/shared/kibana_utils/*"], "@kbn/kubernetes-security-plugin": ["x-pack/solutions/security/plugins/kubernetes_security"], diff --git a/x-pack/solutions/observability/plugins/observability/dev_docs/feature_flags.md b/x-pack/solutions/observability/plugins/observability/dev_docs/feature_flags.md index 3b06f83096dfe..6ae8bc537a9ff 100644 --- a/x-pack/solutions/observability/plugins/observability/dev_docs/feature_flags.md +++ b/x-pack/solutions/observability/plugins/observability/dev_docs/feature_flags.md @@ -11,6 +11,6 @@ if (core.uiSettings.get(myFeatureEnabled)) { } ``` -In order for telemetry to be collected, the keys and types need to be added in [src/plugins/kibana_usage_collection/server/collectors/management/schema.ts](../../../../../src/plugins/kibana_usage_collection/server/collectors/management/schema.ts) and [src/plugins/kibana_usage_collection/server/collectors/management/types.ts](../../../../src/plugins/kibana_usage_collection/server/collectors/management/types.ts). +In order for telemetry to be collected, the keys and types need to be added in [src/platform/plugins/private/kibana_usage_collection/server/collectors/management/schema.ts](../../../../../src/platform/plugins/private/kibana_usage_collection/server/collectors/management/schema.ts) and [src/platform/plugins/private/kibana_usage_collection/server/collectors/management/types.ts](../../../../src/platform/plugins/private/kibana_usage_collection/server/collectors/management/types.ts). Settings can be managed in Kibana under Stack Management > Advanced Settings > Observability. diff --git a/x-pack/test/usage_collection/test_suites/application_usage/index.ts b/x-pack/test/usage_collection/test_suites/application_usage/index.ts index 4b820f6ff01c2..16cffc4b706cd 100644 --- a/x-pack/test/usage_collection/test_suites/application_usage/index.ts +++ b/x-pack/test/usage_collection/test_suites/application_usage/index.ts @@ -33,7 +33,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { ); expect(enabledAppIds.sort()).to.eql(appIds.sort()); } catch (err) { - err.message = `Application Usage's schema is not up-to-date with the actual registered apps. Please update it at src/plugins/kibana_usage_collection/server/collectors/application_usage/schema.ts.\n${err.message}`; + err.message = `Application Usage's schema is not up-to-date with the actual registered apps. Please update it at src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/schema.ts.\n${err.message}`; throw err; } }); diff --git a/x-pack/test/usage_collection/test_suites/stack_management_usage/index.ts b/x-pack/test/usage_collection/test_suites/stack_management_usage/index.ts index e1e83cb0a4584..311603801994f 100644 --- a/x-pack/test/usage_collection/test_suites/stack_management_usage/index.ts +++ b/x-pack/test/usage_collection/test_suites/stack_management_usage/index.ts @@ -35,7 +35,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { `Detected the following unregistered UI Settings in the stack management collector: ${JSON.stringify(unreportedUISettings, null)} Update the management collector schema and its UsageStats interface. - Refer to src/plugins/kibana_usage_collection/server/collectors/management/README.md for additional information. + Refer to src/platform/plugins/private/kibana_usage_collection/server/collectors/management/README.md for additional information. ` ); } @@ -55,7 +55,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { `Detected the following sensitive UI Settings in the stack management collector not having a 'keyword' type: ${JSON.stringify(nonBooleanSensitiveProps, null)} Update each setting in the management collector schema with ({ type: 'keyword' }). - Refer to src/plugins/kibana_usage_collection/server/collectors/management/README.md for additional information. + Refer to src/platform/plugins/private/kibana_usage_collection/server/collectors/management/README.md for additional information. ` ); } diff --git a/yarn.lock b/yarn.lock index 4757a7de18c60..46ba750274050 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6073,7 +6073,7 @@ version "0.0.0" uid "" -"@kbn/kibana-usage-collection-plugin@link:src/plugins/kibana_usage_collection": +"@kbn/kibana-usage-collection-plugin@link:src/platform/plugins/private/kibana_usage_collection": version "0.0.0" uid "" From b3bad7aac418fc2266899deb80a430a45ab782b7 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:05:39 +0100 Subject: [PATCH 147/167] Relocating module `@kbn/licensing-plugin` --- .eslintrc.js | 2 +- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- legacy_rfcs/text/0007_lifecycle_unblocked.md | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- x-pack/.i18nrc.json | 2 +- .../plugins/shared}/licensing/README.md | 0 .../licensing/common/has_license_info_changed.test.ts | 0 .../shared}/licensing/common/has_license_info_changed.ts | 0 .../plugins/shared}/licensing/common/license.test.ts | 0 .../plugins/shared}/licensing/common/license.ts | 0 .../shared}/licensing/common/license_update.test.ts | 0 .../plugins/shared}/licensing/common/license_update.ts | 0 .../plugins/shared}/licensing/common/licensing.mock.ts | 0 .../common/register_analytics_context_provider.test.ts | 0 .../common/register_analytics_context_provider.ts | 0 .../plugins/shared}/licensing/common/types.ts | 0 .../plugins/shared}/licensing/jest.config.js | 8 ++++---- .../plugins/shared}/licensing/kibana.jsonc | 0 .../plugins/shared}/licensing/public/expired_banner.tsx | 0 .../plugins/shared}/licensing/public/index.ts | 0 .../plugins/shared}/licensing/public/mocks.ts | 0 .../plugins/shared}/licensing/public/plugin.test.mocks.ts | 0 .../plugins/shared}/licensing/public/plugin.test.ts | 0 .../plugins/shared}/licensing/public/plugin.ts | 0 .../public/services/feature_usage_service.mock.ts | 0 .../public/services/feature_usage_service.test.ts | 0 .../licensing/public/services/feature_usage_service.ts | 0 .../plugins/shared}/licensing/public/services/index.ts | 0 .../plugins/shared}/licensing/public/types.ts | 0 .../plugins/shared}/licensing/server/index.ts | 0 .../shared}/licensing/server/license_fetcher.test.ts | 0 .../plugins/shared}/licensing/server/license_fetcher.ts | 0 .../plugins/shared}/licensing/server/licensing_config.ts | 0 .../server/licensing_route_handler_context.test.ts | 0 .../licensing/server/licensing_route_handler_context.ts | 0 .../plugins/shared}/licensing/server/mocks.ts | 0 .../licensing/server/on_pre_response_handler.test.ts | 0 .../shared}/licensing/server/on_pre_response_handler.ts | 0 .../plugins/shared}/licensing/server/plugin.test.ts | 0 .../plugins/shared}/licensing/server/plugin.ts | 0 .../shared}/licensing/server/plugin_status.test.ts | 0 .../plugins/shared}/licensing/server/plugin_status.ts | 0 .../shared}/licensing/server/routes/feature_usage.ts | 0 .../plugins/shared}/licensing/server/routes/index.ts | 0 .../plugins/shared}/licensing/server/routes/info.ts | 0 .../shared}/licensing/server/routes/internal/index.ts | 0 .../server/routes/internal/notify_feature_usage.ts | 0 .../licensing/server/routes/internal/register_feature.ts | 0 .../server/services/feature_usage_service.mock.ts | 0 .../server/services/feature_usage_service.test.ts | 0 .../licensing/server/services/feature_usage_service.ts | 0 .../plugins/shared}/licensing/server/services/index.ts | 0 .../plugins/shared}/licensing/server/types.ts | 0 .../server/wrap_route_with_license_check.test.ts | 0 .../licensing/server/wrap_route_with_license_check.ts | 0 .../plugins/shared}/licensing/tsconfig.json | 2 +- yarn.lock | 2 +- 59 files changed, 14 insertions(+), 14 deletions(-) rename x-pack/{plugins => platform/plugins/shared}/licensing/README.md (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/common/has_license_info_changed.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/common/has_license_info_changed.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/common/license.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/common/license.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/common/license_update.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/common/license_update.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/common/licensing.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/common/register_analytics_context_provider.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/common/register_analytics_context_provider.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/common/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/jest.config.js (61%) rename x-pack/{plugins => platform/plugins/shared}/licensing/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/public/expired_banner.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/public/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/public/plugin.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/public/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/public/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/public/services/feature_usage_service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/public/services/feature_usage_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/public/services/feature_usage_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/public/services/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/license_fetcher.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/license_fetcher.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/licensing_config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/licensing_route_handler_context.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/licensing_route_handler_context.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/on_pre_response_handler.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/on_pre_response_handler.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/plugin_status.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/plugin_status.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/routes/feature_usage.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/routes/info.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/routes/internal/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/routes/internal/notify_feature_usage.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/routes/internal/register_feature.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/services/feature_usage_service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/services/feature_usage_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/services/feature_usage_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/services/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/wrap_route_with_license_check.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/server/wrap_route_with_license_check.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/licensing/tsconfig.json (88%) diff --git a/.eslintrc.js b/.eslintrc.js index c041e01eea988..b8193f567ffdb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1939,7 +1939,7 @@ module.exports = { // core-team owned code 'src/core/**', 'x-pack/platform/plugins/shared/features/**', - 'x-pack/plugins/licensing/**', + 'x-pack/platform/plugins/shared/licensing/**', 'x-pack/platform/plugins/shared/global_search/**', 'x-pack/platform/plugins/shared/cloud/**', 'src/platform/packages/shared/kbn-config-schema', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7854461a5cf1b..af68f70832a0b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -881,6 +881,7 @@ x-pack/platform/plugins/shared/inference @elastic/appex-ai-infra x-pack/platform/plugins/shared/ingest_pipelines @elastic/kibana-management x-pack/platform/plugins/shared/integration_assistant @elastic/security-scalability x-pack/platform/plugins/shared/license_management @elastic/kibana-management +x-pack/platform/plugins/shared/licensing @elastic/kibana-core x-pack/platform/plugins/shared/logs_data_access @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/logs_shared @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/maps @elastic/kibana-presentation @@ -900,7 +901,6 @@ x-pack/plugins/drilldowns/url_drilldown @elastic/appex-sharedux x-pack/plugins/encrypted_saved_objects @elastic/kibana-security x-pack/plugins/graph @elastic/kibana-visualizations x-pack/plugins/lens @elastic/kibana-visualizations -x-pack/plugins/licensing @elastic/kibana-core x-pack/plugins/security @elastic/kibana-security x-pack/plugins/spaces @elastic/kibana-security x-pack/plugins/telemetry_collection_xpack @elastic/kibana-core diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index a35f101ee1c41..cf0f04b28d88d 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -686,7 +686,7 @@ the infrastructure monitoring use-case within Kibana. |This plugin enables users to activate a trial license, downgrade to Basic, and upload a new license. -|{kib-repo}blob/{branch}/x-pack/plugins/licensing/README.md[licensing] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/licensing/README.md[licensing] |The licensing plugin retrieves license data from Elasticsearch at regular configurable intervals. diff --git a/legacy_rfcs/text/0007_lifecycle_unblocked.md b/legacy_rfcs/text/0007_lifecycle_unblocked.md index 3f347891b2ba8..5b507233dd0b6 100644 --- a/legacy_rfcs/text/0007_lifecycle_unblocked.md +++ b/legacy_rfcs/text/0007_lifecycle_unblocked.md @@ -344,7 +344,7 @@ functions and will be impacted: 4. [vis_type_vega](https://github.com/elastic/kibana/blob/6039709929caf0090a4130b8235f3a53bd04ed84/src/legacy/core_plugins/vis_type_vega/public/plugin.ts#L59) 6. [code](https://github.com/elastic/kibana/blob/5049b460b47d4ae3432e1d9219263bb4be441392/x-pack/legacy/plugins/code/server/plugin.ts#L129-L149) 7. [spaces](https://github.com/elastic/kibana/blob/096c7ee51136327f778845c636d7c4f1188e5db2/x-pack/legacy/plugins/spaces/server/new_platform/plugin.ts#L95) -8. [licensing](https://github.com/elastic/kibana/blob/4667c46caef26f8f47714504879197708debae32/x-pack/plugins/licensing/server/plugin.ts) +8. [licensing](https://github.com/elastic/kibana/blob/4667c46caef26f8f47714504879197708debae32/x-pack/platform/plugins/shared/licensing/server/plugin.ts) 9. [security](https://github.com/elastic/kibana/blob/0f2324e44566ce2cf083d89082841e57d2db6ef6/x-pack/plugins/security/server/plugin.ts#L96) # How we teach this diff --git a/package.json b/package.json index 0df08bd9052a8..e2a9713c29a8b 100644 --- a/package.json +++ b/package.json @@ -617,7 +617,7 @@ "@kbn/lens-plugin": "link:x-pack/plugins/lens", "@kbn/license-api-guard-plugin": "link:x-pack/platform/plugins/private/license_api_guard", "@kbn/license-management-plugin": "link:x-pack/platform/plugins/shared/license_management", - "@kbn/licensing-plugin": "link:x-pack/plugins/licensing", + "@kbn/licensing-plugin": "link:x-pack/platform/plugins/shared/licensing", "@kbn/links-plugin": "link:src/platform/plugins/private/links", "@kbn/lists-plugin": "link:x-pack/solutions/security/plugins/lists", "@kbn/llm-tasks-plugin": "link:x-pack/platform/plugins/shared/ai_infra/llm_tasks", diff --git a/tsconfig.base.json b/tsconfig.base.json index f929f5f287f62..cac2ecc0e562d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1152,8 +1152,8 @@ "@kbn/license-api-guard-plugin/*": ["x-pack/platform/plugins/private/license_api_guard/*"], "@kbn/license-management-plugin": ["x-pack/platform/plugins/shared/license_management"], "@kbn/license-management-plugin/*": ["x-pack/platform/plugins/shared/license_management/*"], - "@kbn/licensing-plugin": ["x-pack/plugins/licensing"], - "@kbn/licensing-plugin/*": ["x-pack/plugins/licensing/*"], + "@kbn/licensing-plugin": ["x-pack/platform/plugins/shared/licensing"], + "@kbn/licensing-plugin/*": ["x-pack/platform/plugins/shared/licensing/*"], "@kbn/links-plugin": ["src/platform/plugins/private/links"], "@kbn/links-plugin/*": ["src/platform/plugins/private/links/*"], "@kbn/lint-packages-cli": ["packages/kbn-lint-packages-cli"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index bf2a720c1da76..e7b1adfb70000 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -75,7 +75,7 @@ "xpack.lens": "plugins/lens", "xpack.licenseApiGuard": "platform/plugins/private/license_api_guard", "xpack.licenseMgmt": "platform/plugins/shared/license_management", - "xpack.licensing": "plugins/licensing", + "xpack.licensing": "platform/plugins/shared/licensing", "xpack.lists": "solutions/security/plugins/lists", "xpack.logstash": [ "platform/plugins/private/logstash" diff --git a/x-pack/plugins/licensing/README.md b/x-pack/platform/plugins/shared/licensing/README.md similarity index 100% rename from x-pack/plugins/licensing/README.md rename to x-pack/platform/plugins/shared/licensing/README.md diff --git a/x-pack/plugins/licensing/common/has_license_info_changed.test.ts b/x-pack/platform/plugins/shared/licensing/common/has_license_info_changed.test.ts similarity index 100% rename from x-pack/plugins/licensing/common/has_license_info_changed.test.ts rename to x-pack/platform/plugins/shared/licensing/common/has_license_info_changed.test.ts diff --git a/x-pack/plugins/licensing/common/has_license_info_changed.ts b/x-pack/platform/plugins/shared/licensing/common/has_license_info_changed.ts similarity index 100% rename from x-pack/plugins/licensing/common/has_license_info_changed.ts rename to x-pack/platform/plugins/shared/licensing/common/has_license_info_changed.ts diff --git a/x-pack/plugins/licensing/common/license.test.ts b/x-pack/platform/plugins/shared/licensing/common/license.test.ts similarity index 100% rename from x-pack/plugins/licensing/common/license.test.ts rename to x-pack/platform/plugins/shared/licensing/common/license.test.ts diff --git a/x-pack/plugins/licensing/common/license.ts b/x-pack/platform/plugins/shared/licensing/common/license.ts similarity index 100% rename from x-pack/plugins/licensing/common/license.ts rename to x-pack/platform/plugins/shared/licensing/common/license.ts diff --git a/x-pack/plugins/licensing/common/license_update.test.ts b/x-pack/platform/plugins/shared/licensing/common/license_update.test.ts similarity index 100% rename from x-pack/plugins/licensing/common/license_update.test.ts rename to x-pack/platform/plugins/shared/licensing/common/license_update.test.ts diff --git a/x-pack/plugins/licensing/common/license_update.ts b/x-pack/platform/plugins/shared/licensing/common/license_update.ts similarity index 100% rename from x-pack/plugins/licensing/common/license_update.ts rename to x-pack/platform/plugins/shared/licensing/common/license_update.ts diff --git a/x-pack/plugins/licensing/common/licensing.mock.ts b/x-pack/platform/plugins/shared/licensing/common/licensing.mock.ts similarity index 100% rename from x-pack/plugins/licensing/common/licensing.mock.ts rename to x-pack/platform/plugins/shared/licensing/common/licensing.mock.ts diff --git a/x-pack/plugins/licensing/common/register_analytics_context_provider.test.ts b/x-pack/platform/plugins/shared/licensing/common/register_analytics_context_provider.test.ts similarity index 100% rename from x-pack/plugins/licensing/common/register_analytics_context_provider.test.ts rename to x-pack/platform/plugins/shared/licensing/common/register_analytics_context_provider.test.ts diff --git a/x-pack/plugins/licensing/common/register_analytics_context_provider.ts b/x-pack/platform/plugins/shared/licensing/common/register_analytics_context_provider.ts similarity index 100% rename from x-pack/plugins/licensing/common/register_analytics_context_provider.ts rename to x-pack/platform/plugins/shared/licensing/common/register_analytics_context_provider.ts diff --git a/x-pack/plugins/licensing/common/types.ts b/x-pack/platform/plugins/shared/licensing/common/types.ts similarity index 100% rename from x-pack/plugins/licensing/common/types.ts rename to x-pack/platform/plugins/shared/licensing/common/types.ts diff --git a/x-pack/plugins/licensing/jest.config.js b/x-pack/platform/plugins/shared/licensing/jest.config.js similarity index 61% rename from x-pack/plugins/licensing/jest.config.js rename to x-pack/platform/plugins/shared/licensing/jest.config.js index 5c5276534ebed..e979e1c62632c 100644 --- a/x-pack/plugins/licensing/jest.config.js +++ b/x-pack/platform/plugins/shared/licensing/jest.config.js @@ -7,9 +7,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/licensing'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/licensing', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/licensing'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/licensing', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/licensing/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/x-pack/platform/plugins/shared/licensing/{common,public,server}/**/*.{ts,tsx}'], }; diff --git a/x-pack/plugins/licensing/kibana.jsonc b/x-pack/platform/plugins/shared/licensing/kibana.jsonc similarity index 100% rename from x-pack/plugins/licensing/kibana.jsonc rename to x-pack/platform/plugins/shared/licensing/kibana.jsonc diff --git a/x-pack/plugins/licensing/public/expired_banner.tsx b/x-pack/platform/plugins/shared/licensing/public/expired_banner.tsx similarity index 100% rename from x-pack/plugins/licensing/public/expired_banner.tsx rename to x-pack/platform/plugins/shared/licensing/public/expired_banner.tsx diff --git a/x-pack/plugins/licensing/public/index.ts b/x-pack/platform/plugins/shared/licensing/public/index.ts similarity index 100% rename from x-pack/plugins/licensing/public/index.ts rename to x-pack/platform/plugins/shared/licensing/public/index.ts diff --git a/x-pack/plugins/licensing/public/mocks.ts b/x-pack/platform/plugins/shared/licensing/public/mocks.ts similarity index 100% rename from x-pack/plugins/licensing/public/mocks.ts rename to x-pack/platform/plugins/shared/licensing/public/mocks.ts diff --git a/x-pack/plugins/licensing/public/plugin.test.mocks.ts b/x-pack/platform/plugins/shared/licensing/public/plugin.test.mocks.ts similarity index 100% rename from x-pack/plugins/licensing/public/plugin.test.mocks.ts rename to x-pack/platform/plugins/shared/licensing/public/plugin.test.mocks.ts diff --git a/x-pack/plugins/licensing/public/plugin.test.ts b/x-pack/platform/plugins/shared/licensing/public/plugin.test.ts similarity index 100% rename from x-pack/plugins/licensing/public/plugin.test.ts rename to x-pack/platform/plugins/shared/licensing/public/plugin.test.ts diff --git a/x-pack/plugins/licensing/public/plugin.ts b/x-pack/platform/plugins/shared/licensing/public/plugin.ts similarity index 100% rename from x-pack/plugins/licensing/public/plugin.ts rename to x-pack/platform/plugins/shared/licensing/public/plugin.ts diff --git a/x-pack/plugins/licensing/public/services/feature_usage_service.mock.ts b/x-pack/platform/plugins/shared/licensing/public/services/feature_usage_service.mock.ts similarity index 100% rename from x-pack/plugins/licensing/public/services/feature_usage_service.mock.ts rename to x-pack/platform/plugins/shared/licensing/public/services/feature_usage_service.mock.ts diff --git a/x-pack/plugins/licensing/public/services/feature_usage_service.test.ts b/x-pack/platform/plugins/shared/licensing/public/services/feature_usage_service.test.ts similarity index 100% rename from x-pack/plugins/licensing/public/services/feature_usage_service.test.ts rename to x-pack/platform/plugins/shared/licensing/public/services/feature_usage_service.test.ts diff --git a/x-pack/plugins/licensing/public/services/feature_usage_service.ts b/x-pack/platform/plugins/shared/licensing/public/services/feature_usage_service.ts similarity index 100% rename from x-pack/plugins/licensing/public/services/feature_usage_service.ts rename to x-pack/platform/plugins/shared/licensing/public/services/feature_usage_service.ts diff --git a/x-pack/plugins/licensing/public/services/index.ts b/x-pack/platform/plugins/shared/licensing/public/services/index.ts similarity index 100% rename from x-pack/plugins/licensing/public/services/index.ts rename to x-pack/platform/plugins/shared/licensing/public/services/index.ts diff --git a/x-pack/plugins/licensing/public/types.ts b/x-pack/platform/plugins/shared/licensing/public/types.ts similarity index 100% rename from x-pack/plugins/licensing/public/types.ts rename to x-pack/platform/plugins/shared/licensing/public/types.ts diff --git a/x-pack/plugins/licensing/server/index.ts b/x-pack/platform/plugins/shared/licensing/server/index.ts similarity index 100% rename from x-pack/plugins/licensing/server/index.ts rename to x-pack/platform/plugins/shared/licensing/server/index.ts diff --git a/x-pack/plugins/licensing/server/license_fetcher.test.ts b/x-pack/platform/plugins/shared/licensing/server/license_fetcher.test.ts similarity index 100% rename from x-pack/plugins/licensing/server/license_fetcher.test.ts rename to x-pack/platform/plugins/shared/licensing/server/license_fetcher.test.ts diff --git a/x-pack/plugins/licensing/server/license_fetcher.ts b/x-pack/platform/plugins/shared/licensing/server/license_fetcher.ts similarity index 100% rename from x-pack/plugins/licensing/server/license_fetcher.ts rename to x-pack/platform/plugins/shared/licensing/server/license_fetcher.ts diff --git a/x-pack/plugins/licensing/server/licensing_config.ts b/x-pack/platform/plugins/shared/licensing/server/licensing_config.ts similarity index 100% rename from x-pack/plugins/licensing/server/licensing_config.ts rename to x-pack/platform/plugins/shared/licensing/server/licensing_config.ts diff --git a/x-pack/plugins/licensing/server/licensing_route_handler_context.test.ts b/x-pack/platform/plugins/shared/licensing/server/licensing_route_handler_context.test.ts similarity index 100% rename from x-pack/plugins/licensing/server/licensing_route_handler_context.test.ts rename to x-pack/platform/plugins/shared/licensing/server/licensing_route_handler_context.test.ts diff --git a/x-pack/plugins/licensing/server/licensing_route_handler_context.ts b/x-pack/platform/plugins/shared/licensing/server/licensing_route_handler_context.ts similarity index 100% rename from x-pack/plugins/licensing/server/licensing_route_handler_context.ts rename to x-pack/platform/plugins/shared/licensing/server/licensing_route_handler_context.ts diff --git a/x-pack/plugins/licensing/server/mocks.ts b/x-pack/platform/plugins/shared/licensing/server/mocks.ts similarity index 100% rename from x-pack/plugins/licensing/server/mocks.ts rename to x-pack/platform/plugins/shared/licensing/server/mocks.ts diff --git a/x-pack/plugins/licensing/server/on_pre_response_handler.test.ts b/x-pack/platform/plugins/shared/licensing/server/on_pre_response_handler.test.ts similarity index 100% rename from x-pack/plugins/licensing/server/on_pre_response_handler.test.ts rename to x-pack/platform/plugins/shared/licensing/server/on_pre_response_handler.test.ts diff --git a/x-pack/plugins/licensing/server/on_pre_response_handler.ts b/x-pack/platform/plugins/shared/licensing/server/on_pre_response_handler.ts similarity index 100% rename from x-pack/plugins/licensing/server/on_pre_response_handler.ts rename to x-pack/platform/plugins/shared/licensing/server/on_pre_response_handler.ts diff --git a/x-pack/plugins/licensing/server/plugin.test.ts b/x-pack/platform/plugins/shared/licensing/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/licensing/server/plugin.test.ts rename to x-pack/platform/plugins/shared/licensing/server/plugin.test.ts diff --git a/x-pack/plugins/licensing/server/plugin.ts b/x-pack/platform/plugins/shared/licensing/server/plugin.ts similarity index 100% rename from x-pack/plugins/licensing/server/plugin.ts rename to x-pack/platform/plugins/shared/licensing/server/plugin.ts diff --git a/x-pack/plugins/licensing/server/plugin_status.test.ts b/x-pack/platform/plugins/shared/licensing/server/plugin_status.test.ts similarity index 100% rename from x-pack/plugins/licensing/server/plugin_status.test.ts rename to x-pack/platform/plugins/shared/licensing/server/plugin_status.test.ts diff --git a/x-pack/plugins/licensing/server/plugin_status.ts b/x-pack/platform/plugins/shared/licensing/server/plugin_status.ts similarity index 100% rename from x-pack/plugins/licensing/server/plugin_status.ts rename to x-pack/platform/plugins/shared/licensing/server/plugin_status.ts diff --git a/x-pack/plugins/licensing/server/routes/feature_usage.ts b/x-pack/platform/plugins/shared/licensing/server/routes/feature_usage.ts similarity index 100% rename from x-pack/plugins/licensing/server/routes/feature_usage.ts rename to x-pack/platform/plugins/shared/licensing/server/routes/feature_usage.ts diff --git a/x-pack/plugins/licensing/server/routes/index.ts b/x-pack/platform/plugins/shared/licensing/server/routes/index.ts similarity index 100% rename from x-pack/plugins/licensing/server/routes/index.ts rename to x-pack/platform/plugins/shared/licensing/server/routes/index.ts diff --git a/x-pack/plugins/licensing/server/routes/info.ts b/x-pack/platform/plugins/shared/licensing/server/routes/info.ts similarity index 100% rename from x-pack/plugins/licensing/server/routes/info.ts rename to x-pack/platform/plugins/shared/licensing/server/routes/info.ts diff --git a/x-pack/plugins/licensing/server/routes/internal/index.ts b/x-pack/platform/plugins/shared/licensing/server/routes/internal/index.ts similarity index 100% rename from x-pack/plugins/licensing/server/routes/internal/index.ts rename to x-pack/platform/plugins/shared/licensing/server/routes/internal/index.ts diff --git a/x-pack/plugins/licensing/server/routes/internal/notify_feature_usage.ts b/x-pack/platform/plugins/shared/licensing/server/routes/internal/notify_feature_usage.ts similarity index 100% rename from x-pack/plugins/licensing/server/routes/internal/notify_feature_usage.ts rename to x-pack/platform/plugins/shared/licensing/server/routes/internal/notify_feature_usage.ts diff --git a/x-pack/plugins/licensing/server/routes/internal/register_feature.ts b/x-pack/platform/plugins/shared/licensing/server/routes/internal/register_feature.ts similarity index 100% rename from x-pack/plugins/licensing/server/routes/internal/register_feature.ts rename to x-pack/platform/plugins/shared/licensing/server/routes/internal/register_feature.ts diff --git a/x-pack/plugins/licensing/server/services/feature_usage_service.mock.ts b/x-pack/platform/plugins/shared/licensing/server/services/feature_usage_service.mock.ts similarity index 100% rename from x-pack/plugins/licensing/server/services/feature_usage_service.mock.ts rename to x-pack/platform/plugins/shared/licensing/server/services/feature_usage_service.mock.ts diff --git a/x-pack/plugins/licensing/server/services/feature_usage_service.test.ts b/x-pack/platform/plugins/shared/licensing/server/services/feature_usage_service.test.ts similarity index 100% rename from x-pack/plugins/licensing/server/services/feature_usage_service.test.ts rename to x-pack/platform/plugins/shared/licensing/server/services/feature_usage_service.test.ts diff --git a/x-pack/plugins/licensing/server/services/feature_usage_service.ts b/x-pack/platform/plugins/shared/licensing/server/services/feature_usage_service.ts similarity index 100% rename from x-pack/plugins/licensing/server/services/feature_usage_service.ts rename to x-pack/platform/plugins/shared/licensing/server/services/feature_usage_service.ts diff --git a/x-pack/plugins/licensing/server/services/index.ts b/x-pack/platform/plugins/shared/licensing/server/services/index.ts similarity index 100% rename from x-pack/plugins/licensing/server/services/index.ts rename to x-pack/platform/plugins/shared/licensing/server/services/index.ts diff --git a/x-pack/plugins/licensing/server/types.ts b/x-pack/platform/plugins/shared/licensing/server/types.ts similarity index 100% rename from x-pack/plugins/licensing/server/types.ts rename to x-pack/platform/plugins/shared/licensing/server/types.ts diff --git a/x-pack/plugins/licensing/server/wrap_route_with_license_check.test.ts b/x-pack/platform/plugins/shared/licensing/server/wrap_route_with_license_check.test.ts similarity index 100% rename from x-pack/plugins/licensing/server/wrap_route_with_license_check.test.ts rename to x-pack/platform/plugins/shared/licensing/server/wrap_route_with_license_check.test.ts diff --git a/x-pack/plugins/licensing/server/wrap_route_with_license_check.ts b/x-pack/platform/plugins/shared/licensing/server/wrap_route_with_license_check.ts similarity index 100% rename from x-pack/plugins/licensing/server/wrap_route_with_license_check.ts rename to x-pack/platform/plugins/shared/licensing/server/wrap_route_with_license_check.ts diff --git a/x-pack/plugins/licensing/tsconfig.json b/x-pack/platform/plugins/shared/licensing/tsconfig.json similarity index 88% rename from x-pack/plugins/licensing/tsconfig.json rename to x-pack/platform/plugins/shared/licensing/tsconfig.json index 21e8517d466c9..49e611bd8f046 100644 --- a/x-pack/plugins/licensing/tsconfig.json +++ b/x-pack/platform/plugins/shared/licensing/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true diff --git a/yarn.lock b/yarn.lock index 46ba750274050..f09928d3da510 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6121,7 +6121,7 @@ version "0.0.0" uid "" -"@kbn/licensing-plugin@link:x-pack/plugins/licensing": +"@kbn/licensing-plugin@link:x-pack/platform/plugins/shared/licensing": version "0.0.0" uid "" From 056592ca6b1fb9c4c290799dd0fb99648c02bf20 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:06:31 +0100 Subject: [PATCH 148/167] Relocating module `@kbn/logging` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/shared}/kbn-logging/README.md | 0 .../platform/packages/shared}/kbn-logging/index.ts | 0 .../platform/packages/shared}/kbn-logging/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-logging/kibana.jsonc | 0 .../platform/packages/shared}/kbn-logging/package.json | 0 .../platform/packages/shared}/kbn-logging/src/appenders.ts | 0 .../platform/packages/shared}/kbn-logging/src/layout.ts | 0 .../packages/shared}/kbn-logging/src/log_level.test.ts | 0 .../platform/packages/shared}/kbn-logging/src/log_level.ts | 0 .../platform/packages/shared}/kbn-logging/src/log_meta.ts | 0 .../platform/packages/shared}/kbn-logging/src/log_record.ts | 0 .../platform/packages/shared}/kbn-logging/src/logger.ts | 0 .../packages/shared}/kbn-logging/src/logger_factory.ts | 0 .../platform/packages/shared}/kbn-logging/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 18 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/kbn-logging/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-logging/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-logging/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-logging/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-logging/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-logging/src/appenders.ts (100%) rename {packages => src/platform/packages/shared}/kbn-logging/src/layout.ts (100%) rename {packages => src/platform/packages/shared}/kbn-logging/src/log_level.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-logging/src/log_level.ts (100%) rename {packages => src/platform/packages/shared}/kbn-logging/src/log_meta.ts (100%) rename {packages => src/platform/packages/shared}/kbn-logging/src/log_record.ts (100%) rename {packages => src/platform/packages/shared}/kbn-logging/src/logger.ts (100%) rename {packages => src/platform/packages/shared}/kbn-logging/src/logger_factory.ts (100%) rename {packages => src/platform/packages/shared}/kbn-logging/tsconfig.json (81%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index af68f70832a0b..975fe2da306e0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -201,7 +201,6 @@ packages/kbn-kibana-manifest-schema @elastic/kibana-operations packages/kbn-lens-formula-docs @elastic/kibana-visualizations packages/kbn-lint-packages-cli @elastic/kibana-operations packages/kbn-lint-ts-projects-cli @elastic/kibana-operations -packages/kbn-logging @elastic/kibana-core packages/kbn-logging-mocks @elastic/kibana-core packages/kbn-managed-content-badge @elastic/kibana-visualizations packages/kbn-managed-vscode-config @elastic/kibana-operations @@ -551,6 +550,7 @@ src/platform/packages/shared/kbn-i18n @elastic/kibana-core src/platform/packages/shared/kbn-i18n-react @elastic/kibana-core src/platform/packages/shared/kbn-io-ts-utils @elastic/obs-knowledge-team src/platform/packages/shared/kbn-lens-embeddable-utils @elastic/obs-ux-infra_services-team @elastic/kibana-visualizations +src/platform/packages/shared/kbn-logging @elastic/kibana-core src/platform/packages/shared/kbn-management/cards_navigation @elastic/kibana-management src/platform/packages/shared/kbn-management/settings/components/field_input @elastic/kibana-management src/platform/packages/shared/kbn-management/settings/components/field_row @elastic/kibana-management diff --git a/package.json b/package.json index e2a9713c29a8b..d215b2b5a9133 100644 --- a/package.json +++ b/package.json @@ -623,7 +623,7 @@ "@kbn/llm-tasks-plugin": "link:x-pack/platform/plugins/shared/ai_infra/llm_tasks", "@kbn/locator-examples-plugin": "link:examples/locator_examples", "@kbn/locator-explorer-plugin": "link:examples/locator_explorer", - "@kbn/logging": "link:packages/kbn-logging", + "@kbn/logging": "link:src/platform/packages/shared/kbn-logging", "@kbn/logging-mocks": "link:packages/kbn-logging-mocks", "@kbn/logs-data-access-plugin": "link:x-pack/platform/plugins/shared/logs_data_access", "@kbn/logs-explorer-plugin": "link:x-pack/solutions/observability/plugins/logs_explorer", diff --git a/packages/kbn-logging/README.md b/src/platform/packages/shared/kbn-logging/README.md similarity index 100% rename from packages/kbn-logging/README.md rename to src/platform/packages/shared/kbn-logging/README.md diff --git a/packages/kbn-logging/index.ts b/src/platform/packages/shared/kbn-logging/index.ts similarity index 100% rename from packages/kbn-logging/index.ts rename to src/platform/packages/shared/kbn-logging/index.ts diff --git a/packages/kbn-logging/jest.config.js b/src/platform/packages/shared/kbn-logging/jest.config.js similarity index 84% rename from packages/kbn-logging/jest.config.js rename to src/platform/packages/shared/kbn-logging/jest.config.js index e4d766636d9fc..8254c461effc1 100644 --- a/packages/kbn-logging/jest.config.js +++ b/src/platform/packages/shared/kbn-logging/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-logging'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-logging'], }; diff --git a/packages/kbn-logging/kibana.jsonc b/src/platform/packages/shared/kbn-logging/kibana.jsonc similarity index 100% rename from packages/kbn-logging/kibana.jsonc rename to src/platform/packages/shared/kbn-logging/kibana.jsonc diff --git a/packages/kbn-logging/package.json b/src/platform/packages/shared/kbn-logging/package.json similarity index 100% rename from packages/kbn-logging/package.json rename to src/platform/packages/shared/kbn-logging/package.json diff --git a/packages/kbn-logging/src/appenders.ts b/src/platform/packages/shared/kbn-logging/src/appenders.ts similarity index 100% rename from packages/kbn-logging/src/appenders.ts rename to src/platform/packages/shared/kbn-logging/src/appenders.ts diff --git a/packages/kbn-logging/src/layout.ts b/src/platform/packages/shared/kbn-logging/src/layout.ts similarity index 100% rename from packages/kbn-logging/src/layout.ts rename to src/platform/packages/shared/kbn-logging/src/layout.ts diff --git a/packages/kbn-logging/src/log_level.test.ts b/src/platform/packages/shared/kbn-logging/src/log_level.test.ts similarity index 100% rename from packages/kbn-logging/src/log_level.test.ts rename to src/platform/packages/shared/kbn-logging/src/log_level.test.ts diff --git a/packages/kbn-logging/src/log_level.ts b/src/platform/packages/shared/kbn-logging/src/log_level.ts similarity index 100% rename from packages/kbn-logging/src/log_level.ts rename to src/platform/packages/shared/kbn-logging/src/log_level.ts diff --git a/packages/kbn-logging/src/log_meta.ts b/src/platform/packages/shared/kbn-logging/src/log_meta.ts similarity index 100% rename from packages/kbn-logging/src/log_meta.ts rename to src/platform/packages/shared/kbn-logging/src/log_meta.ts diff --git a/packages/kbn-logging/src/log_record.ts b/src/platform/packages/shared/kbn-logging/src/log_record.ts similarity index 100% rename from packages/kbn-logging/src/log_record.ts rename to src/platform/packages/shared/kbn-logging/src/log_record.ts diff --git a/packages/kbn-logging/src/logger.ts b/src/platform/packages/shared/kbn-logging/src/logger.ts similarity index 100% rename from packages/kbn-logging/src/logger.ts rename to src/platform/packages/shared/kbn-logging/src/logger.ts diff --git a/packages/kbn-logging/src/logger_factory.ts b/src/platform/packages/shared/kbn-logging/src/logger_factory.ts similarity index 100% rename from packages/kbn-logging/src/logger_factory.ts rename to src/platform/packages/shared/kbn-logging/src/logger_factory.ts diff --git a/packages/kbn-logging/tsconfig.json b/src/platform/packages/shared/kbn-logging/tsconfig.json similarity index 81% rename from packages/kbn-logging/tsconfig.json rename to src/platform/packages/shared/kbn-logging/tsconfig.json index 0cd8de173ed4f..0d3f96d6a17b5 100644 --- a/packages/kbn-logging/tsconfig.json +++ b/src/platform/packages/shared/kbn-logging/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index cac2ecc0e562d..3da8c3f9b3a36 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1168,8 +1168,8 @@ "@kbn/locator-examples-plugin/*": ["examples/locator_examples/*"], "@kbn/locator-explorer-plugin": ["examples/locator_explorer"], "@kbn/locator-explorer-plugin/*": ["examples/locator_explorer/*"], - "@kbn/logging": ["packages/kbn-logging"], - "@kbn/logging/*": ["packages/kbn-logging/*"], + "@kbn/logging": ["src/platform/packages/shared/kbn-logging"], + "@kbn/logging/*": ["src/platform/packages/shared/kbn-logging/*"], "@kbn/logging-mocks": ["packages/kbn-logging-mocks"], "@kbn/logging-mocks/*": ["packages/kbn-logging-mocks/*"], "@kbn/logs-data-access-plugin": ["x-pack/platform/plugins/shared/logs_data_access"], diff --git a/yarn.lock b/yarn.lock index f09928d3da510..8adf6285d41ce 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6157,7 +6157,7 @@ version "0.0.0" uid "" -"@kbn/logging@link:packages/kbn-logging": +"@kbn/logging@link:src/platform/packages/shared/kbn-logging": version "0.0.0" uid "" From 50c1e2f3261624613740139f8a78d5aa9871ee2f Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:07:22 +0100 Subject: [PATCH 149/167] Relocating module `@kbn/logging-mocks` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/shared}/kbn-logging-mocks/index.ts | 0 .../platform/packages/shared}/kbn-logging-mocks/kibana.jsonc | 0 .../platform/packages/shared}/kbn-logging-mocks/package.json | 0 .../packages/shared}/kbn-logging-mocks/src/logger.mock.ts | 0 .../platform/packages/shared}/kbn-logging-mocks/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {packages => src/platform/packages/shared}/kbn-logging-mocks/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-logging-mocks/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-logging-mocks/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-logging-mocks/src/logger.mock.ts (100%) rename {packages => src/platform/packages/shared}/kbn-logging-mocks/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 975fe2da306e0..2ba9085e18244 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -201,7 +201,6 @@ packages/kbn-kibana-manifest-schema @elastic/kibana-operations packages/kbn-lens-formula-docs @elastic/kibana-visualizations packages/kbn-lint-packages-cli @elastic/kibana-operations packages/kbn-lint-ts-projects-cli @elastic/kibana-operations -packages/kbn-logging-mocks @elastic/kibana-core packages/kbn-managed-content-badge @elastic/kibana-visualizations packages/kbn-managed-vscode-config @elastic/kibana-operations packages/kbn-managed-vscode-config-cli @elastic/kibana-operations @@ -551,6 +550,7 @@ src/platform/packages/shared/kbn-i18n-react @elastic/kibana-core src/platform/packages/shared/kbn-io-ts-utils @elastic/obs-knowledge-team src/platform/packages/shared/kbn-lens-embeddable-utils @elastic/obs-ux-infra_services-team @elastic/kibana-visualizations src/platform/packages/shared/kbn-logging @elastic/kibana-core +src/platform/packages/shared/kbn-logging-mocks @elastic/kibana-core src/platform/packages/shared/kbn-management/cards_navigation @elastic/kibana-management src/platform/packages/shared/kbn-management/settings/components/field_input @elastic/kibana-management src/platform/packages/shared/kbn-management/settings/components/field_row @elastic/kibana-management diff --git a/package.json b/package.json index d215b2b5a9133..ede43143147fd 100644 --- a/package.json +++ b/package.json @@ -624,7 +624,7 @@ "@kbn/locator-examples-plugin": "link:examples/locator_examples", "@kbn/locator-explorer-plugin": "link:examples/locator_explorer", "@kbn/logging": "link:src/platform/packages/shared/kbn-logging", - "@kbn/logging-mocks": "link:packages/kbn-logging-mocks", + "@kbn/logging-mocks": "link:src/platform/packages/shared/kbn-logging-mocks", "@kbn/logs-data-access-plugin": "link:x-pack/platform/plugins/shared/logs_data_access", "@kbn/logs-explorer-plugin": "link:x-pack/solutions/observability/plugins/logs_explorer", "@kbn/logs-shared-plugin": "link:x-pack/platform/plugins/shared/logs_shared", diff --git a/packages/kbn-logging-mocks/index.ts b/src/platform/packages/shared/kbn-logging-mocks/index.ts similarity index 100% rename from packages/kbn-logging-mocks/index.ts rename to src/platform/packages/shared/kbn-logging-mocks/index.ts diff --git a/packages/kbn-logging-mocks/kibana.jsonc b/src/platform/packages/shared/kbn-logging-mocks/kibana.jsonc similarity index 100% rename from packages/kbn-logging-mocks/kibana.jsonc rename to src/platform/packages/shared/kbn-logging-mocks/kibana.jsonc diff --git a/packages/kbn-logging-mocks/package.json b/src/platform/packages/shared/kbn-logging-mocks/package.json similarity index 100% rename from packages/kbn-logging-mocks/package.json rename to src/platform/packages/shared/kbn-logging-mocks/package.json diff --git a/packages/kbn-logging-mocks/src/logger.mock.ts b/src/platform/packages/shared/kbn-logging-mocks/src/logger.mock.ts similarity index 100% rename from packages/kbn-logging-mocks/src/logger.mock.ts rename to src/platform/packages/shared/kbn-logging-mocks/src/logger.mock.ts diff --git a/packages/kbn-logging-mocks/tsconfig.json b/src/platform/packages/shared/kbn-logging-mocks/tsconfig.json similarity index 82% rename from packages/kbn-logging-mocks/tsconfig.json rename to src/platform/packages/shared/kbn-logging-mocks/tsconfig.json index 10cff0e73883b..c101096106966 100644 --- a/packages/kbn-logging-mocks/tsconfig.json +++ b/src/platform/packages/shared/kbn-logging-mocks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 3da8c3f9b3a36..352a136561e23 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1170,8 +1170,8 @@ "@kbn/locator-explorer-plugin/*": ["examples/locator_explorer/*"], "@kbn/logging": ["src/platform/packages/shared/kbn-logging"], "@kbn/logging/*": ["src/platform/packages/shared/kbn-logging/*"], - "@kbn/logging-mocks": ["packages/kbn-logging-mocks"], - "@kbn/logging-mocks/*": ["packages/kbn-logging-mocks/*"], + "@kbn/logging-mocks": ["src/platform/packages/shared/kbn-logging-mocks"], + "@kbn/logging-mocks/*": ["src/platform/packages/shared/kbn-logging-mocks/*"], "@kbn/logs-data-access-plugin": ["x-pack/platform/plugins/shared/logs_data_access"], "@kbn/logs-data-access-plugin/*": ["x-pack/platform/plugins/shared/logs_data_access/*"], "@kbn/logs-explorer-plugin": ["x-pack/solutions/observability/plugins/logs_explorer"], diff --git a/yarn.lock b/yarn.lock index 8adf6285d41ce..365641c4ee39c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6153,7 +6153,7 @@ version "0.0.0" uid "" -"@kbn/logging-mocks@link:packages/kbn-logging-mocks": +"@kbn/logging-mocks@link:src/platform/packages/shared/kbn-logging-mocks": version "0.0.0" uid "" From 3aa3ea9046f390449c11095ed145443189676739 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:08:14 +0100 Subject: [PATCH 150/167] Relocating module `@kbn/newsfeed-plugin` --- .github/CODEOWNERS | 6 +++--- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/shared}/newsfeed/README.md | 0 .../plugins/shared}/newsfeed/common/constants.ts | 0 .../plugins/shared}/newsfeed/jest.config.js | 8 ++++---- .../plugins/shared}/newsfeed/kibana.jsonc | 0 .../components/__snapshots__/empty_news.test.tsx.snap | 0 .../components/__snapshots__/loading_news.test.tsx.snap | 0 .../newsfeed/public/components/empty_news.test.tsx | 0 .../shared}/newsfeed/public/components/empty_news.tsx | 0 .../shared}/newsfeed/public/components/flyout_list.tsx | 0 .../newsfeed/public/components/loading_news.test.tsx | 0 .../shared}/newsfeed/public/components/loading_news.tsx | 0 .../public/components/newsfeed_header_nav_button.tsx | 0 .../plugins/shared}/newsfeed/public/index.ts | 0 .../plugins/shared}/newsfeed/public/lib/api.test.mocks.ts | 0 .../plugins/shared}/newsfeed/public/lib/api.test.ts | 0 .../plugins/shared}/newsfeed/public/lib/api.ts | 0 .../shared}/newsfeed/public/lib/convert_items.test.ts | 0 .../plugins/shared}/newsfeed/public/lib/convert_items.ts | 0 .../plugins/shared}/newsfeed/public/lib/driver.mock.ts | 0 .../shared}/newsfeed/public/lib/driver.test.mocks.ts | 0 .../plugins/shared}/newsfeed/public/lib/driver.test.ts | 0 .../plugins/shared}/newsfeed/public/lib/driver.ts | 0 .../shared}/newsfeed/public/lib/never_fetch_driver.ts | 0 .../plugins/shared}/newsfeed/public/lib/storage.mock.ts | 0 .../plugins/shared}/newsfeed/public/lib/storage.test.ts | 0 .../plugins/shared}/newsfeed/public/lib/storage.ts | 0 .../plugins/shared}/newsfeed/public/lib/types.ts | 0 .../plugins/shared}/newsfeed/public/plugin.test.ts | 0 .../plugins/shared}/newsfeed/public/plugin.tsx | 0 .../plugins/shared}/newsfeed/public/types.ts | 0 .../plugins/shared}/newsfeed/server/config.ts | 0 .../plugins/shared}/newsfeed/server/index.ts | 0 .../plugins/shared}/newsfeed/server/plugin.ts | 0 .../plugins/shared}/newsfeed/tsconfig.json | 4 ++-- test/common/plugins/newsfeed/server/plugin.ts | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 41 files changed, 16 insertions(+), 16 deletions(-) rename src/{plugins => platform/plugins/shared}/newsfeed/README.md (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/jest.config.js (72%) rename src/{plugins => platform/plugins/shared}/newsfeed/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/components/__snapshots__/empty_news.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/components/__snapshots__/loading_news.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/components/empty_news.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/components/empty_news.tsx (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/components/flyout_list.tsx (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/components/loading_news.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/components/loading_news.tsx (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/components/newsfeed_header_nav_button.tsx (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/api.test.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/api.test.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/api.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/convert_items.test.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/convert_items.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/driver.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/driver.test.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/driver.test.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/driver.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/never_fetch_driver.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/storage.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/storage.test.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/storage.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/lib/types.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/plugin.tsx (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/server/config.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/newsfeed/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2ba9085e18244..14c47c7851f49 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -647,6 +647,7 @@ src/platform/plugins/shared/kibana_react @elastic/appex-sharedux src/platform/plugins/shared/kibana_utils @elastic/appex-sharedux src/platform/plugins/shared/management @elastic/kibana-management src/platform/plugins/shared/navigation @elastic/appex-sharedux +src/platform/plugins/shared/newsfeed @elastic/kibana-core src/platform/plugins/shared/presentation_util @elastic/kibana-presentation src/platform/plugins/shared/saved_objects @elastic/appex-sharedux src/platform/plugins/shared/saved_objects_finder @elastic/kibana-data-discovery @@ -672,7 +673,6 @@ src/plugins/event_annotation @elastic/kibana-visualizations src/plugins/event_annotation_listing @elastic/kibana-visualizations src/plugins/expressions @elastic/kibana-visualizations src/plugins/interactive_setup @elastic/kibana-security -src/plugins/newsfeed @elastic/kibana-core src/plugins/saved_objects_management @elastic/kibana-core src/plugins/telemetry @elastic/kibana-core src/plugins/telemetry_collection_manager @elastic/kibana-core @@ -1791,7 +1791,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /test/functional/apps/bundles @elastic/kibana-core # Assigned per https://github.com/elastic/kibana/pull/64367 /test/examples/hello_world @elastic/kibana-core /test/examples/routing/index.ts @elastic/kibana-core # Assigned per https://github.com/elastic/kibana/pull/69581 -/test/common/plugins/newsfeed @elastic/kibana-core +/test/common/platform/plugins/shared/newsfeed @elastic/kibana-core /test/common/configure_http2.ts @elastic/kibana-core /test/api_integration/apis/ui_counters @elastic/kibana-core /test/api_integration/apis/telemetry @elastic/kibana-core @@ -1829,7 +1829,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql #CC# /x-pack/platform/plugins/shared/cloud/ @elastic/kibana-core #CC# /x-pack/platform/plugins/shared/features/ @elastic/kibana-core #CC# /x-pack/plugins/global_search/ @elastic/kibana-core -#CC# /src/plugins/newsfeed @elastic/kibana-core +#CC# /src/platform/plugins/shared/newsfeed @elastic/kibana-core #CC# /x-pack/plugins/global_search_providers/ @elastic/kibana-core # AppEx AI Infra diff --git a/.i18nrc.json b/.i18nrc.json index 9c13ce8d12d06..c4c0ca0361901 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -96,7 +96,7 @@ "monaco": "packages/kbn-monaco/src", "navigation": ["src/platform/plugins/shared/navigation", "packages/solution-nav"], "links": "src/platform/plugins/private/links", - "newsfeed": "src/plugins/newsfeed", + "newsfeed": "src/platform/plugins/shared/newsfeed", "presentationUtil": "src/platform/plugins/shared/presentation_util", "randomSampling": "x-pack/packages/kbn-random-sampling", "reactPackages": "packages/react", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index cf0f04b28d88d..708f937b4538e 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -269,7 +269,7 @@ management section itself. It also provides a stateful version of it on the start contract. -|{kib-repo}blob/{branch}/src/plugins/newsfeed/README.md[newsfeed] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/newsfeed/README.md[newsfeed] |The newsfeed plugin adds a NewsfeedNavButton to the top navigation bar and renders the content in the flyout. Content is fetched from the remote (https://feeds.elastic.co) once a day, with periodic checks if the content needs to be refreshed. All newsfeed content is hosted remotely. diff --git a/package.json b/package.json index ede43143147fd..6b4d4f33bcab2 100644 --- a/package.json +++ b/package.json @@ -686,7 +686,7 @@ "@kbn/monitoring-collection-plugin": "link:x-pack/platform/plugins/private/monitoring_collection", "@kbn/monitoring-plugin": "link:x-pack/platform/plugins/private/monitoring", "@kbn/navigation-plugin": "link:src/platform/plugins/shared/navigation", - "@kbn/newsfeed-plugin": "link:src/plugins/newsfeed", + "@kbn/newsfeed-plugin": "link:src/platform/plugins/shared/newsfeed", "@kbn/newsfeed-test-plugin": "link:test/common/plugins/newsfeed", "@kbn/no-data-page-plugin": "link:src/platform/plugins/private/no_data_page", "@kbn/notifications-plugin": "link:x-pack/platform/plugins/shared/notifications", diff --git a/src/plugins/newsfeed/README.md b/src/platform/plugins/shared/newsfeed/README.md similarity index 100% rename from src/plugins/newsfeed/README.md rename to src/platform/plugins/shared/newsfeed/README.md diff --git a/src/plugins/newsfeed/common/constants.ts b/src/platform/plugins/shared/newsfeed/common/constants.ts similarity index 100% rename from src/plugins/newsfeed/common/constants.ts rename to src/platform/plugins/shared/newsfeed/common/constants.ts diff --git a/src/plugins/newsfeed/jest.config.js b/src/platform/plugins/shared/newsfeed/jest.config.js similarity index 72% rename from src/plugins/newsfeed/jest.config.js rename to src/platform/plugins/shared/newsfeed/jest.config.js index 0a3a3c308e507..c97d47e6a159a 100644 --- a/src/plugins/newsfeed/jest.config.js +++ b/src/platform/plugins/shared/newsfeed/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/newsfeed'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/newsfeed', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/newsfeed'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/newsfeed', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/newsfeed/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/shared/newsfeed/{common,public,server}/**/*.{ts,tsx}'], }; diff --git a/src/plugins/newsfeed/kibana.jsonc b/src/platform/plugins/shared/newsfeed/kibana.jsonc similarity index 100% rename from src/plugins/newsfeed/kibana.jsonc rename to src/platform/plugins/shared/newsfeed/kibana.jsonc diff --git a/src/plugins/newsfeed/public/components/__snapshots__/empty_news.test.tsx.snap b/src/platform/plugins/shared/newsfeed/public/components/__snapshots__/empty_news.test.tsx.snap similarity index 100% rename from src/plugins/newsfeed/public/components/__snapshots__/empty_news.test.tsx.snap rename to src/platform/plugins/shared/newsfeed/public/components/__snapshots__/empty_news.test.tsx.snap diff --git a/src/plugins/newsfeed/public/components/__snapshots__/loading_news.test.tsx.snap b/src/platform/plugins/shared/newsfeed/public/components/__snapshots__/loading_news.test.tsx.snap similarity index 100% rename from src/plugins/newsfeed/public/components/__snapshots__/loading_news.test.tsx.snap rename to src/platform/plugins/shared/newsfeed/public/components/__snapshots__/loading_news.test.tsx.snap diff --git a/src/plugins/newsfeed/public/components/empty_news.test.tsx b/src/platform/plugins/shared/newsfeed/public/components/empty_news.test.tsx similarity index 100% rename from src/plugins/newsfeed/public/components/empty_news.test.tsx rename to src/platform/plugins/shared/newsfeed/public/components/empty_news.test.tsx diff --git a/src/plugins/newsfeed/public/components/empty_news.tsx b/src/platform/plugins/shared/newsfeed/public/components/empty_news.tsx similarity index 100% rename from src/plugins/newsfeed/public/components/empty_news.tsx rename to src/platform/plugins/shared/newsfeed/public/components/empty_news.tsx diff --git a/src/plugins/newsfeed/public/components/flyout_list.tsx b/src/platform/plugins/shared/newsfeed/public/components/flyout_list.tsx similarity index 100% rename from src/plugins/newsfeed/public/components/flyout_list.tsx rename to src/platform/plugins/shared/newsfeed/public/components/flyout_list.tsx diff --git a/src/plugins/newsfeed/public/components/loading_news.test.tsx b/src/platform/plugins/shared/newsfeed/public/components/loading_news.test.tsx similarity index 100% rename from src/plugins/newsfeed/public/components/loading_news.test.tsx rename to src/platform/plugins/shared/newsfeed/public/components/loading_news.test.tsx diff --git a/src/plugins/newsfeed/public/components/loading_news.tsx b/src/platform/plugins/shared/newsfeed/public/components/loading_news.tsx similarity index 100% rename from src/plugins/newsfeed/public/components/loading_news.tsx rename to src/platform/plugins/shared/newsfeed/public/components/loading_news.tsx diff --git a/src/plugins/newsfeed/public/components/newsfeed_header_nav_button.tsx b/src/platform/plugins/shared/newsfeed/public/components/newsfeed_header_nav_button.tsx similarity index 100% rename from src/plugins/newsfeed/public/components/newsfeed_header_nav_button.tsx rename to src/platform/plugins/shared/newsfeed/public/components/newsfeed_header_nav_button.tsx diff --git a/src/plugins/newsfeed/public/index.ts b/src/platform/plugins/shared/newsfeed/public/index.ts similarity index 100% rename from src/plugins/newsfeed/public/index.ts rename to src/platform/plugins/shared/newsfeed/public/index.ts diff --git a/src/plugins/newsfeed/public/lib/api.test.mocks.ts b/src/platform/plugins/shared/newsfeed/public/lib/api.test.mocks.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/api.test.mocks.ts rename to src/platform/plugins/shared/newsfeed/public/lib/api.test.mocks.ts diff --git a/src/plugins/newsfeed/public/lib/api.test.ts b/src/platform/plugins/shared/newsfeed/public/lib/api.test.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/api.test.ts rename to src/platform/plugins/shared/newsfeed/public/lib/api.test.ts diff --git a/src/plugins/newsfeed/public/lib/api.ts b/src/platform/plugins/shared/newsfeed/public/lib/api.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/api.ts rename to src/platform/plugins/shared/newsfeed/public/lib/api.ts diff --git a/src/plugins/newsfeed/public/lib/convert_items.test.ts b/src/platform/plugins/shared/newsfeed/public/lib/convert_items.test.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/convert_items.test.ts rename to src/platform/plugins/shared/newsfeed/public/lib/convert_items.test.ts diff --git a/src/plugins/newsfeed/public/lib/convert_items.ts b/src/platform/plugins/shared/newsfeed/public/lib/convert_items.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/convert_items.ts rename to src/platform/plugins/shared/newsfeed/public/lib/convert_items.ts diff --git a/src/plugins/newsfeed/public/lib/driver.mock.ts b/src/platform/plugins/shared/newsfeed/public/lib/driver.mock.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/driver.mock.ts rename to src/platform/plugins/shared/newsfeed/public/lib/driver.mock.ts diff --git a/src/plugins/newsfeed/public/lib/driver.test.mocks.ts b/src/platform/plugins/shared/newsfeed/public/lib/driver.test.mocks.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/driver.test.mocks.ts rename to src/platform/plugins/shared/newsfeed/public/lib/driver.test.mocks.ts diff --git a/src/plugins/newsfeed/public/lib/driver.test.ts b/src/platform/plugins/shared/newsfeed/public/lib/driver.test.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/driver.test.ts rename to src/platform/plugins/shared/newsfeed/public/lib/driver.test.ts diff --git a/src/plugins/newsfeed/public/lib/driver.ts b/src/platform/plugins/shared/newsfeed/public/lib/driver.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/driver.ts rename to src/platform/plugins/shared/newsfeed/public/lib/driver.ts diff --git a/src/plugins/newsfeed/public/lib/never_fetch_driver.ts b/src/platform/plugins/shared/newsfeed/public/lib/never_fetch_driver.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/never_fetch_driver.ts rename to src/platform/plugins/shared/newsfeed/public/lib/never_fetch_driver.ts diff --git a/src/plugins/newsfeed/public/lib/storage.mock.ts b/src/platform/plugins/shared/newsfeed/public/lib/storage.mock.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/storage.mock.ts rename to src/platform/plugins/shared/newsfeed/public/lib/storage.mock.ts diff --git a/src/plugins/newsfeed/public/lib/storage.test.ts b/src/platform/plugins/shared/newsfeed/public/lib/storage.test.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/storage.test.ts rename to src/platform/plugins/shared/newsfeed/public/lib/storage.test.ts diff --git a/src/plugins/newsfeed/public/lib/storage.ts b/src/platform/plugins/shared/newsfeed/public/lib/storage.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/storage.ts rename to src/platform/plugins/shared/newsfeed/public/lib/storage.ts diff --git a/src/plugins/newsfeed/public/lib/types.ts b/src/platform/plugins/shared/newsfeed/public/lib/types.ts similarity index 100% rename from src/plugins/newsfeed/public/lib/types.ts rename to src/platform/plugins/shared/newsfeed/public/lib/types.ts diff --git a/src/plugins/newsfeed/public/plugin.test.ts b/src/platform/plugins/shared/newsfeed/public/plugin.test.ts similarity index 100% rename from src/plugins/newsfeed/public/plugin.test.ts rename to src/platform/plugins/shared/newsfeed/public/plugin.test.ts diff --git a/src/plugins/newsfeed/public/plugin.tsx b/src/platform/plugins/shared/newsfeed/public/plugin.tsx similarity index 100% rename from src/plugins/newsfeed/public/plugin.tsx rename to src/platform/plugins/shared/newsfeed/public/plugin.tsx diff --git a/src/plugins/newsfeed/public/types.ts b/src/platform/plugins/shared/newsfeed/public/types.ts similarity index 100% rename from src/plugins/newsfeed/public/types.ts rename to src/platform/plugins/shared/newsfeed/public/types.ts diff --git a/src/plugins/newsfeed/server/config.ts b/src/platform/plugins/shared/newsfeed/server/config.ts similarity index 100% rename from src/plugins/newsfeed/server/config.ts rename to src/platform/plugins/shared/newsfeed/server/config.ts diff --git a/src/plugins/newsfeed/server/index.ts b/src/platform/plugins/shared/newsfeed/server/index.ts similarity index 100% rename from src/plugins/newsfeed/server/index.ts rename to src/platform/plugins/shared/newsfeed/server/index.ts diff --git a/src/plugins/newsfeed/server/plugin.ts b/src/platform/plugins/shared/newsfeed/server/plugin.ts similarity index 100% rename from src/plugins/newsfeed/server/plugin.ts rename to src/platform/plugins/shared/newsfeed/server/plugin.ts diff --git a/src/plugins/newsfeed/tsconfig.json b/src/platform/plugins/shared/newsfeed/tsconfig.json similarity index 83% rename from src/plugins/newsfeed/tsconfig.json rename to src/platform/plugins/shared/newsfeed/tsconfig.json index 8c97a4420c48f..681db67a810d6 100644 --- a/src/plugins/newsfeed/tsconfig.json +++ b/src/platform/plugins/shared/newsfeed/tsconfig.json @@ -1,9 +1,9 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, - "include": ["public/**/*", "server/**/*", "common/*", "../../../typings/**/*"], + "include": ["public/**/*", "server/**/*", "common/*", "../../../../../typings/**/*"], "kbn_references": [ "@kbn/core", "@kbn/screenshot-mode-plugin", diff --git a/test/common/plugins/newsfeed/server/plugin.ts b/test/common/plugins/newsfeed/server/plugin.ts index c4c242fa49dcf..80bd84b7d699b 100644 --- a/test/common/plugins/newsfeed/server/plugin.ts +++ b/test/common/plugins/newsfeed/server/plugin.ts @@ -46,7 +46,7 @@ export class NewsFeedSimulatorPlugin implements Plugin { items: [ { title: { en: `You are functionally testing the newsfeed widget with fixtures!` }, - description: { en: 'See test/common/plugins/newsfeed/newsfeed_simulation' }, + description: { en: 'See test/common/platform/plugins/shared/newsfeed/newsfeed_simulation' }, link_text: { en: 'Generic feed-viewer could go here' }, link_url: { en: 'https://feeds.elastic.co' }, languages: null, diff --git a/tsconfig.base.json b/tsconfig.base.json index 352a136561e23..57b67ed92d411 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1306,8 +1306,8 @@ "@kbn/monitoring-plugin/*": ["x-pack/platform/plugins/private/monitoring/*"], "@kbn/navigation-plugin": ["src/platform/plugins/shared/navigation"], "@kbn/navigation-plugin/*": ["src/platform/plugins/shared/navigation/*"], - "@kbn/newsfeed-plugin": ["src/plugins/newsfeed"], - "@kbn/newsfeed-plugin/*": ["src/plugins/newsfeed/*"], + "@kbn/newsfeed-plugin": ["src/platform/plugins/shared/newsfeed"], + "@kbn/newsfeed-plugin/*": ["src/platform/plugins/shared/newsfeed/*"], "@kbn/newsfeed-test-plugin": ["test/common/plugins/newsfeed"], "@kbn/newsfeed-test-plugin/*": ["test/common/plugins/newsfeed/*"], "@kbn/no-data-page-plugin": ["src/platform/plugins/private/no_data_page"], diff --git a/yarn.lock b/yarn.lock index 365641c4ee39c..f8695f423b0a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6429,7 +6429,7 @@ version "0.0.0" uid "" -"@kbn/newsfeed-plugin@link:src/plugins/newsfeed": +"@kbn/newsfeed-plugin@link:src/platform/plugins/shared/newsfeed": version "0.0.0" uid "" From 5fb2799fa989b509caedde615b900dd78bbdd348 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:09:05 +0100 Subject: [PATCH 151/167] Relocating module `@kbn/router-to-openapispec` --- .github/CODEOWNERS | 2 +- package.json | 2 +- src/dev/precommit_hook/casing_check_config.js | 2 +- .../packages/shared}/kbn-router-to-openapispec/README.md | 0 .../packages/shared}/kbn-router-to-openapispec/index.ts | 0 .../packages/shared}/kbn-router-to-openapispec/jest.config.js | 4 ++-- .../packages/shared}/kbn-router-to-openapispec/kibana.jsonc | 0 .../shared}/kbn-router-to-openapispec/openapi-types.d.ts | 0 .../packages/shared}/kbn-router-to-openapispec/package.json | 0 .../src/__snapshots__/generate_oas.test.ts.snap | 0 .../src/extract_authz_description.test.ts | 0 .../src/extract_authz_description.ts | 0 .../src/generate_oas.test.fixture.ts | 0 .../kbn-router-to-openapispec/src/generate_oas.test.ts | 0 .../kbn-router-to-openapispec/src/generate_oas.test.util.ts | 0 .../shared}/kbn-router-to-openapispec/src/generate_oas.ts | 0 .../kbn-router-to-openapispec/src/oas_converter/catch_all.ts | 0 .../src/oas_converter/common.test.ts | 0 .../kbn-router-to-openapispec/src/oas_converter/common.ts | 0 .../kbn-router-to-openapispec/src/oas_converter/index.test.ts | 0 .../kbn-router-to-openapispec/src/oas_converter/index.ts | 0 .../src/oas_converter/kbn_config_schema/index.ts | 0 .../src/oas_converter/kbn_config_schema/lib.test.ts | 0 .../src/oas_converter/kbn_config_schema/lib.test.util.ts | 0 .../src/oas_converter/kbn_config_schema/lib.ts | 0 .../src/oas_converter/kbn_config_schema/parse.test.ts | 0 .../src/oas_converter/kbn_config_schema/parse.ts | 0 .../kbn_config_schema/post_process_mutations/context.test.ts | 0 .../kbn_config_schema/post_process_mutations/context.ts | 0 .../kbn_config_schema/post_process_mutations/index.test.ts | 0 .../kbn_config_schema/post_process_mutations/index.ts | 0 .../post_process_mutations/mutations/enum.test.ts | 0 .../post_process_mutations/mutations/enum.ts | 0 .../post_process_mutations/mutations/index.test.ts | 0 .../post_process_mutations/mutations/index.ts | 0 .../post_process_mutations/mutations/object.test.ts | 0 .../post_process_mutations/mutations/object.ts | 0 .../post_process_mutations/mutations/utils.test.ts | 0 .../post_process_mutations/mutations/utils.ts | 0 .../kbn-router-to-openapispec/src/oas_converter/zod/index.ts | 0 .../src/oas_converter/zod/lib.test.ts | 0 .../src/oas_converter/zod/lib.test.util.ts | 0 .../kbn-router-to-openapispec/src/oas_converter/zod/lib.ts | 0 .../kbn-router-to-openapispec/src/process_router.test.ts | 0 .../shared}/kbn-router-to-openapispec/src/process_router.ts | 0 .../src/process_versioned_router.test.ts | 0 .../kbn-router-to-openapispec/src/process_versioned_router.ts | 0 .../packages/shared}/kbn-router-to-openapispec/src/type.ts | 0 .../shared}/kbn-router-to-openapispec/src/util.test.ts | 0 .../packages/shared}/kbn-router-to-openapispec/src/util.ts | 0 .../packages/shared}/kbn-router-to-openapispec/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 53 files changed, 9 insertions(+), 9 deletions(-) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/jest.config.js (82%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/openapi-types.d.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/__snapshots__/generate_oas.test.ts.snap (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/extract_authz_description.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/extract_authz_description.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/generate_oas.test.fixture.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/generate_oas.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/generate_oas.test.util.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/generate_oas.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/catch_all.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/common.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/common.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.test.util.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/parse.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/parse.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/context.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/context.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/enum.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/enum.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/object.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/object.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/zod/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/zod/lib.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/zod/lib.test.util.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/oas_converter/zod/lib.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/process_router.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/process_router.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/process_versioned_router.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/process_versioned_router.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/type.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/util.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/src/util.ts (100%) rename {packages => src/platform/packages/shared}/kbn-router-to-openapispec/tsconfig.json (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 14c47c7851f49..674deccf0b2b2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -244,7 +244,6 @@ packages/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux packages/kbn-reporting/mocks_server @elastic/appex-sharedux packages/kbn-reporting/public @elastic/appex-sharedux packages/kbn-reporting/server @elastic/appex-sharedux -packages/kbn-router-to-openapispec @elastic/kibana-core packages/kbn-safer-lodash-set @elastic/kibana-security packages/kbn-saved-objects-settings @elastic/appex-sharedux packages/kbn-saved-search-component @elastic/obs-ux-logs-team @@ -565,6 +564,7 @@ src/platform/packages/shared/kbn-react-hooks @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-repo-info @elastic/kibana-operations src/platform/packages/shared/kbn-resizable-layout @elastic/kibana-data-discovery src/platform/packages/shared/kbn-rison @elastic/kibana-operations +src/platform/packages/shared/kbn-router-to-openapispec @elastic/kibana-core src/platform/packages/shared/kbn-router-utils @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-rrule @elastic/response-ops src/platform/packages/shared/kbn-rule-data-utils @elastic/security-detections-response @elastic/response-ops @elastic/obs-ux-management-team diff --git a/package.json b/package.json index 6b4d4f33bcab2..42a99bb1e475c 100644 --- a/package.json +++ b/package.json @@ -769,7 +769,7 @@ "@kbn/rison": "link:src/platform/packages/shared/kbn-rison", "@kbn/rollup": "link:x-pack/platform/packages/private/rollup", "@kbn/rollup-plugin": "link:x-pack/platform/plugins/private/rollup", - "@kbn/router-to-openapispec": "link:packages/kbn-router-to-openapispec", + "@kbn/router-to-openapispec": "link:src/platform/packages/shared/kbn-router-to-openapispec", "@kbn/router-utils": "link:src/platform/packages/shared/kbn-router-utils", "@kbn/routing-example-plugin": "link:examples/routing_example", "@kbn/rrule": "link:src/platform/packages/shared/kbn-rrule", diff --git a/src/dev/precommit_hook/casing_check_config.js b/src/dev/precommit_hook/casing_check_config.js index 169cdbfd63aa4..7addc578efbfe 100644 --- a/src/dev/precommit_hook/casing_check_config.js +++ b/src/dev/precommit_hook/casing_check_config.js @@ -46,7 +46,7 @@ export const IGNORE_FILE_GLOBS = [ 'test/package/Vagrantfile', 'x-pack/solutions/security/plugins/security_solution/scripts/endpoint/common/vagrant/Vagrantfile', '**/test/**/fixtures/**/*', - 'packages/kbn-router-to-openapispec/openapi-types.d.ts', + 'src/platform/packages/shared/kbn-router-to-openapispec/openapi-types.d.ts', // Required to match the name in the docs.elastic.dev repo. 'dev_docs/nav-kibana-dev.docnav.json', diff --git a/packages/kbn-router-to-openapispec/README.md b/src/platform/packages/shared/kbn-router-to-openapispec/README.md similarity index 100% rename from packages/kbn-router-to-openapispec/README.md rename to src/platform/packages/shared/kbn-router-to-openapispec/README.md diff --git a/packages/kbn-router-to-openapispec/index.ts b/src/platform/packages/shared/kbn-router-to-openapispec/index.ts similarity index 100% rename from packages/kbn-router-to-openapispec/index.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/index.ts diff --git a/packages/kbn-router-to-openapispec/jest.config.js b/src/platform/packages/shared/kbn-router-to-openapispec/jest.config.js similarity index 82% rename from packages/kbn-router-to-openapispec/jest.config.js rename to src/platform/packages/shared/kbn-router-to-openapispec/jest.config.js index 0bc574d2af5c7..8eb538c114952 100644 --- a/packages/kbn-router-to-openapispec/jest.config.js +++ b/src/platform/packages/shared/kbn-router-to-openapispec/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-router-to-openapispec'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-router-to-openapispec'], }; diff --git a/packages/kbn-router-to-openapispec/kibana.jsonc b/src/platform/packages/shared/kbn-router-to-openapispec/kibana.jsonc similarity index 100% rename from packages/kbn-router-to-openapispec/kibana.jsonc rename to src/platform/packages/shared/kbn-router-to-openapispec/kibana.jsonc diff --git a/packages/kbn-router-to-openapispec/openapi-types.d.ts b/src/platform/packages/shared/kbn-router-to-openapispec/openapi-types.d.ts similarity index 100% rename from packages/kbn-router-to-openapispec/openapi-types.d.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/openapi-types.d.ts diff --git a/packages/kbn-router-to-openapispec/package.json b/src/platform/packages/shared/kbn-router-to-openapispec/package.json similarity index 100% rename from packages/kbn-router-to-openapispec/package.json rename to src/platform/packages/shared/kbn-router-to-openapispec/package.json diff --git a/packages/kbn-router-to-openapispec/src/__snapshots__/generate_oas.test.ts.snap b/src/platform/packages/shared/kbn-router-to-openapispec/src/__snapshots__/generate_oas.test.ts.snap similarity index 100% rename from packages/kbn-router-to-openapispec/src/__snapshots__/generate_oas.test.ts.snap rename to src/platform/packages/shared/kbn-router-to-openapispec/src/__snapshots__/generate_oas.test.ts.snap diff --git a/packages/kbn-router-to-openapispec/src/extract_authz_description.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/extract_authz_description.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/extract_authz_description.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/extract_authz_description.test.ts diff --git a/packages/kbn-router-to-openapispec/src/extract_authz_description.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/extract_authz_description.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/extract_authz_description.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/extract_authz_description.ts diff --git a/packages/kbn-router-to-openapispec/src/generate_oas.test.fixture.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/generate_oas.test.fixture.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/generate_oas.test.fixture.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/generate_oas.test.fixture.ts diff --git a/packages/kbn-router-to-openapispec/src/generate_oas.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/generate_oas.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/generate_oas.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/generate_oas.test.ts diff --git a/packages/kbn-router-to-openapispec/src/generate_oas.test.util.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/generate_oas.test.util.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/generate_oas.test.util.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/generate_oas.test.util.ts diff --git a/packages/kbn-router-to-openapispec/src/generate_oas.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/generate_oas.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/generate_oas.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/generate_oas.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/catch_all.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/catch_all.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/catch_all.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/catch_all.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/common.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/common.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/common.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/common.test.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/common.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/common.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/common.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/common.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/index.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/index.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/index.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/index.test.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/index.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/index.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/index.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/index.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/index.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/index.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/index.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/index.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.test.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.test.util.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.test.util.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.test.util.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.test.util.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/lib.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/parse.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/parse.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/parse.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/parse.test.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/parse.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/parse.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/parse.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/parse.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/context.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/context.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/context.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/context.test.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/context.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/context.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/context.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/context.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/index.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/index.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/index.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/index.test.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/index.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/index.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/index.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/index.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/enum.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/enum.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/enum.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/enum.test.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/enum.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/enum.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/enum.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/enum.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/index.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/index.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/index.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/index.test.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/index.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/index.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/index.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/index.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/object.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/object.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/object.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/object.test.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/object.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/object.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/object.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/object.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/utils.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/utils.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/utils.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/utils.test.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/utils.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/utils.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/utils.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/kbn_config_schema/post_process_mutations/mutations/utils.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/zod/index.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/zod/index.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/zod/index.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/zod/index.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/zod/lib.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/zod/lib.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/zod/lib.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/zod/lib.test.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/zod/lib.test.util.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/zod/lib.test.util.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/zod/lib.test.util.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/zod/lib.test.util.ts diff --git a/packages/kbn-router-to-openapispec/src/oas_converter/zod/lib.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/zod/lib.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/oas_converter/zod/lib.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/oas_converter/zod/lib.ts diff --git a/packages/kbn-router-to-openapispec/src/process_router.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/process_router.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/process_router.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/process_router.test.ts diff --git a/packages/kbn-router-to-openapispec/src/process_router.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/process_router.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/process_router.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/process_router.ts diff --git a/packages/kbn-router-to-openapispec/src/process_versioned_router.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/process_versioned_router.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/process_versioned_router.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/process_versioned_router.test.ts diff --git a/packages/kbn-router-to-openapispec/src/process_versioned_router.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/process_versioned_router.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/process_versioned_router.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/process_versioned_router.ts diff --git a/packages/kbn-router-to-openapispec/src/type.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/type.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/type.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/type.ts diff --git a/packages/kbn-router-to-openapispec/src/util.test.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/util.test.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/util.test.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/util.test.ts diff --git a/packages/kbn-router-to-openapispec/src/util.ts b/src/platform/packages/shared/kbn-router-to-openapispec/src/util.ts similarity index 100% rename from packages/kbn-router-to-openapispec/src/util.ts rename to src/platform/packages/shared/kbn-router-to-openapispec/src/util.ts diff --git a/packages/kbn-router-to-openapispec/tsconfig.json b/src/platform/packages/shared/kbn-router-to-openapispec/tsconfig.json similarity index 86% rename from packages/kbn-router-to-openapispec/tsconfig.json rename to src/platform/packages/shared/kbn-router-to-openapispec/tsconfig.json index 3536a90a8256f..d33c70a6e4126 100644 --- a/packages/kbn-router-to-openapispec/tsconfig.json +++ b/src/platform/packages/shared/kbn-router-to-openapispec/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 57b67ed92d411..49cb076538f45 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1508,8 +1508,8 @@ "@kbn/rollup/*": ["x-pack/platform/packages/private/rollup/*"], "@kbn/rollup-plugin": ["x-pack/platform/plugins/private/rollup"], "@kbn/rollup-plugin/*": ["x-pack/platform/plugins/private/rollup/*"], - "@kbn/router-to-openapispec": ["packages/kbn-router-to-openapispec"], - "@kbn/router-to-openapispec/*": ["packages/kbn-router-to-openapispec/*"], + "@kbn/router-to-openapispec": ["src/platform/packages/shared/kbn-router-to-openapispec"], + "@kbn/router-to-openapispec/*": ["src/platform/packages/shared/kbn-router-to-openapispec/*"], "@kbn/router-utils": ["src/platform/packages/shared/kbn-router-utils"], "@kbn/router-utils/*": ["src/platform/packages/shared/kbn-router-utils/*"], "@kbn/routing-example-plugin": ["examples/routing_example"], diff --git a/yarn.lock b/yarn.lock index f8695f423b0a2..e2babb14de5cf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6833,7 +6833,7 @@ version "0.0.0" uid "" -"@kbn/router-to-openapispec@link:packages/kbn-router-to-openapispec": +"@kbn/router-to-openapispec@link:src/platform/packages/shared/kbn-router-to-openapispec": version "0.0.0" uid "" From 8ac37aa4476ae8ae60cf165bb1ba4f4384180814 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:09:57 +0100 Subject: [PATCH 152/167] Relocating module `@kbn/saved-objects-management-plugin` --- .eslintrc.js | 2 +- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/shared}/saved_objects_management/README.md | 0 .../shared}/saved_objects_management/common/index.ts | 0 .../saved_objects_management/common/types/README.md | 0 .../saved_objects_management/common/types/index.ts | 0 .../saved_objects_management/common/types/latest.ts | 0 .../shared}/saved_objects_management/common/types/v1.ts | 0 .../shared}/saved_objects_management/jest.config.js | 8 ++++---- .../plugins/shared}/saved_objects_management/kibana.jsonc | 0 .../shared}/saved_objects_management/public/index.ts | 0 .../public/lib/bulk_delete_objects.ts | 0 .../public/lib/bulk_get_objects.ts | 0 .../public/lib/extract_export_details.test.ts | 0 .../public/lib/extract_export_details.ts | 0 .../public/lib/fetch_export_by_type_and_search.ts | 0 .../public/lib/fetch_export_objects.ts | 0 .../saved_objects_management/public/lib/find_objects.ts | 0 .../public/lib/get_allowed_types.ts | 0 .../public/lib/get_default_title.ts | 0 .../public/lib/get_relationships.test.ts | 0 .../public/lib/get_relationships.ts | 0 .../public/lib/get_saved_object_counts.ts | 0 .../public/lib/get_saved_object_label.test.ts | 0 .../public/lib/get_saved_object_label.ts | 0 .../public/lib/get_tag_references.test.ts | 0 .../public/lib/get_tag_references.ts | 0 .../saved_objects_management/public/lib/import_file.ts | 0 .../shared}/saved_objects_management/public/lib/index.ts | 0 .../saved_objects_management/public/lib/numeric.ts | 0 .../public/lib/parse_query.test.ts | 0 .../saved_objects_management/public/lib/parse_query.ts | 0 .../public/lib/process_import_response.test.ts | 0 .../public/lib/process_import_response.ts | 0 .../public/lib/resolve_import_errors.test.ts | 0 .../public/lib/resolve_import_errors.ts | 0 .../public/management_section/index.ts | 0 .../public/management_section/mount_section.tsx | 0 .../__snapshots__/saved_object_view.test.tsx.snap | 0 .../components/__snapshots__/header.test.tsx.snap | 0 .../components/__snapshots__/inspect.test.tsx.snap | 0 .../__snapshots__/not_found_errors.test.tsx.snap | 0 .../object_view/components/header.test.tsx | 0 .../management_section/object_view/components/header.tsx | 0 .../management_section/object_view/components/index.ts | 0 .../object_view/components/inspect.test.tsx | 0 .../management_section/object_view/components/inspect.tsx | 0 .../object_view/components/not_found_errors.test.tsx | 0 .../object_view/components/not_found_errors.tsx | 0 .../public/management_section/object_view/index.ts | 0 .../management_section/object_view/saved_object_view.scss | 0 .../object_view/saved_object_view.test.mocks.ts | 0 .../object_view/saved_object_view.test.tsx | 0 .../management_section/object_view/saved_object_view.tsx | 0 .../__snapshots__/saved_objects_table.test.tsx.snap | 0 .../components/__snapshots__/flyout.test.tsx.snap | 0 .../components/__snapshots__/header.test.tsx.snap | 0 .../components/__snapshots__/relationships.test.tsx.snap | 0 .../components/__snapshots__/table.test.tsx.snap | 0 .../components/delete_confirm_modal.test.tsx | 0 .../objects_table/components/delete_confirm_modal.tsx | 0 .../objects_table/components/export_modal.test.tsx | 0 .../objects_table/components/export_modal.tsx | 0 .../objects_table/components/flyout.test.mocks.ts | 0 .../objects_table/components/flyout.test.tsx | 0 .../objects_table/components/flyout.tsx | 0 .../objects_table/components/header.test.tsx | 0 .../objects_table/components/header.tsx | 0 .../objects_table/components/import_mode_control.test.tsx | 0 .../objects_table/components/import_mode_control.tsx | 0 .../objects_table/components/import_summary.scss | 0 .../objects_table/components/import_summary.test.tsx | 0 .../objects_table/components/import_summary.tsx | 0 .../management_section/objects_table/components/index.ts | 0 .../objects_table/components/overwrite_modal.test.tsx | 0 .../objects_table/components/overwrite_modal.tsx | 0 .../objects_table/components/relationships.test.tsx | 0 .../objects_table/components/relationships.tsx | 0 .../objects_table/components/table.test.tsx | 0 .../management_section/objects_table/components/table.tsx | 0 .../public/management_section/objects_table/index.ts | 0 .../objects_table/saved_objects_table.test.mocks.ts | 0 .../objects_table/saved_objects_table.test.tsx | 0 .../objects_table/saved_objects_table.tsx | 0 .../management_section/saved_objects_edition_page.scss | 0 .../management_section/saved_objects_edition_page.tsx | 0 .../management_section/saved_objects_table_page.tsx | 0 .../shared}/saved_objects_management/public/mocks.ts | 0 .../saved_objects_management/public/plugin.test.ts | 0 .../shared}/saved_objects_management/public/plugin.ts | 0 .../public/services/action_service.mock.ts | 0 .../public/services/action_service.test.ts | 0 .../public/services/action_service.ts | 0 .../actions/copy_saved_objects_to_space_action.tsx | 0 .../public/services/actions/index.ts | 0 .../actions/share_saved_objects_to_space_action.test.tsx | 0 .../actions/share_saved_objects_to_space_action.tsx | 0 .../public/services/column_service.mock.ts | 0 .../public/services/column_service.test.ts | 0 .../public/services/column_service.ts | 0 .../public/services/columns/constants.ts | 0 .../public/services/columns/index.ts | 0 .../columns/share_saved_objects_to_space_column.tsx | 0 .../saved_objects_management/public/services/index.ts | 0 .../public/services/types/action.ts | 0 .../public/services/types/column.ts | 0 .../public/services/types/index.ts | 0 .../public/services/types/record.ts | 0 .../shared}/saved_objects_management/public/types.ts | 0 .../server/capabilities_provider.ts | 0 .../shared}/saved_objects_management/server/index.ts | 0 .../server/lib/find_relationships.test.ts | 0 .../server/lib/find_relationships.ts | 0 .../server/lib/get_saved_objects_counts.ts | 0 .../shared}/saved_objects_management/server/lib/index.ts | 0 .../server/lib/inject_meta_attributes.test.ts | 0 .../server/lib/inject_meta_attributes.ts | 0 .../server/lib/to_saved_object_with_meta.ts | 0 .../saved_objects_management/server/plugin.test.mocks.ts | 0 .../saved_objects_management/server/plugin.test.ts | 0 .../shared}/saved_objects_management/server/plugin.ts | 0 .../saved_objects_management/server/routes/bulk_delete.ts | 0 .../saved_objects_management/server/routes/bulk_get.ts | 0 .../saved_objects_management/server/routes/find.ts | 0 .../server/routes/get_allowed_types.ts | 0 .../saved_objects_management/server/routes/index.test.ts | 0 .../saved_objects_management/server/routes/index.ts | 0 .../server/routes/relationships.ts | 0 .../server/routes/scroll_count.ts | 0 .../saved_objects_management/server/services/index.ts | 0 .../server/services/management.mock.ts | 0 .../server/services/management.test.ts | 0 .../server/services/management.ts | 0 .../shared}/saved_objects_management/server/types.ts | 0 .../shared}/saved_objects_management/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 140 files changed, 13 insertions(+), 13 deletions(-) rename src/{plugins => platform/plugins/shared}/saved_objects_management/README.md (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/common/types/README.md (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/common/types/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/common/types/latest.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/common/types/v1.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/jest.config.js (71%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/bulk_delete_objects.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/bulk_get_objects.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/extract_export_details.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/extract_export_details.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/fetch_export_by_type_and_search.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/fetch_export_objects.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/find_objects.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/get_allowed_types.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/get_default_title.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/get_relationships.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/get_relationships.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/get_saved_object_counts.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/get_saved_object_label.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/get_saved_object_label.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/get_tag_references.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/get_tag_references.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/import_file.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/numeric.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/parse_query.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/parse_query.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/process_import_response.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/process_import_response.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/resolve_import_errors.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/lib/resolve_import_errors.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/mount_section.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/__snapshots__/saved_object_view.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/components/__snapshots__/header.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/components/__snapshots__/inspect.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/components/__snapshots__/not_found_errors.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/components/header.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/components/header.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/components/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/components/inspect.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/components/inspect.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/components/not_found_errors.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/components/not_found_errors.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/saved_object_view.scss (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/saved_object_view.test.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/saved_object_view.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/object_view/saved_object_view.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/__snapshots__/flyout.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/__snapshots__/header.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/__snapshots__/relationships.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/__snapshots__/table.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/export_modal.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/export_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/flyout.test.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/flyout.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/flyout.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/header.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/header.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/import_mode_control.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/import_mode_control.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/import_summary.scss (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/import_summary.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/import_summary.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/overwrite_modal.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/overwrite_modal.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/relationships.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/relationships.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/table.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/components/table.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/saved_objects_edition_page.scss (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/saved_objects_edition_page.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/management_section/saved_objects_table_page.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/action_service.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/action_service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/action_service.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/actions/copy_saved_objects_to_space_action.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/actions/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/actions/share_saved_objects_to_space_action.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/actions/share_saved_objects_to_space_action.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/column_service.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/column_service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/column_service.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/columns/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/columns/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/columns/share_saved_objects_to_space_column.tsx (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/types/action.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/types/column.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/types/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/services/types/record.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/capabilities_provider.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/lib/find_relationships.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/lib/find_relationships.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/lib/get_saved_objects_counts.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/lib/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/lib/inject_meta_attributes.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/lib/inject_meta_attributes.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/lib/to_saved_object_with_meta.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/plugin.test.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/routes/bulk_delete.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/routes/bulk_get.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/routes/find.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/routes/get_allowed_types.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/routes/index.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/routes/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/routes/relationships.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/routes/scroll_count.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/services/index.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/services/management.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/services/management.test.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/services/management.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/server/types.ts (100%) rename src/{plugins => platform/plugins/shared}/saved_objects_management/tsconfig.json (95%) diff --git a/.eslintrc.js b/.eslintrc.js index b8193f567ffdb..e0b0150179827 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1944,7 +1944,7 @@ module.exports = { 'x-pack/platform/plugins/shared/cloud/**', 'src/platform/packages/shared/kbn-config-schema', 'src/plugins/status_page/**', - 'src/plugins/saved_objects_management/**', + 'src/platform/plugins/shared/saved_objects_management/**', 'src/platform/packages/shared/kbn-analytics/**', 'packages/kbn-telemetry-tools/**', 'src/platform/plugins/private/kibana_usage_collection/**', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 674deccf0b2b2..68eec5338edfb 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -651,6 +651,7 @@ src/platform/plugins/shared/newsfeed @elastic/kibana-core src/platform/plugins/shared/presentation_util @elastic/kibana-presentation src/platform/plugins/shared/saved_objects @elastic/appex-sharedux src/platform/plugins/shared/saved_objects_finder @elastic/kibana-data-discovery +src/platform/plugins/shared/saved_objects_management @elastic/kibana-core src/platform/plugins/shared/saved_objects_tagging_oss @elastic/appex-sharedux src/platform/plugins/shared/saved_search @elastic/kibana-data-discovery src/platform/plugins/shared/screenshot_mode @elastic/appex-sharedux @@ -673,7 +674,6 @@ src/plugins/event_annotation @elastic/kibana-visualizations src/plugins/event_annotation_listing @elastic/kibana-visualizations src/plugins/expressions @elastic/kibana-visualizations src/plugins/interactive_setup @elastic/kibana-security -src/plugins/saved_objects_management @elastic/kibana-core src/plugins/telemetry @elastic/kibana-core src/plugins/telemetry_collection_manager @elastic/kibana-core src/plugins/telemetry_management_section @elastic/kibana-core diff --git a/.i18nrc.json b/.i18nrc.json index c4c0ca0361901..3a60d600566a6 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -105,7 +105,7 @@ "reporting": "packages/kbn-reporting", "savedObjects": "src/platform/plugins/shared/saved_objects", "savedObjectsFinder": "src/platform/plugins/shared/saved_objects_finder", - "savedObjectsManagement": "src/plugins/saved_objects_management", + "savedObjectsManagement": "src/platform/plugins/shared/saved_objects_management", "searchConnectors": "src/platform/packages/shared/kbn-search-connectors", "searchConnectorsPlugin": "x-pack/solutions/search/plugins/search_connectors", "server": "src/legacy/server", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 708f937b4538e..63a7393a0cc91 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -294,7 +294,7 @@ Content is fetched from the remote (https://feeds.elastic.co) once a day, with p |The savedObjectsFinder plugin exposes a UI for finding saved objects on the client side. -|{kib-repo}blob/{branch}/src/plugins/saved_objects_management/README.md[savedObjectsManagement] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/saved_objects_management/README.md[savedObjectsManagement] |The savedObjectsManagement plugin manages the Saved Objects management section. diff --git a/package.json b/package.json index 42a99bb1e475c..61e4a3f05382b 100644 --- a/package.json +++ b/package.json @@ -786,7 +786,7 @@ "@kbn/saved-objects-finder-plugin": "link:src/platform/plugins/shared/saved_objects_finder", "@kbn/saved-objects-hidden-from-http-apis-type-plugin": "link:test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type", "@kbn/saved-objects-hidden-type-plugin": "link:test/plugin_functional/plugins/saved_objects_hidden_type", - "@kbn/saved-objects-management-plugin": "link:src/plugins/saved_objects_management", + "@kbn/saved-objects-management-plugin": "link:src/platform/plugins/shared/saved_objects_management", "@kbn/saved-objects-plugin": "link:src/platform/plugins/shared/saved_objects", "@kbn/saved-objects-settings": "link:packages/kbn-saved-objects-settings", "@kbn/saved-objects-tagging-oss-plugin": "link:src/platform/plugins/shared/saved_objects_tagging_oss", diff --git a/src/plugins/saved_objects_management/README.md b/src/platform/plugins/shared/saved_objects_management/README.md similarity index 100% rename from src/plugins/saved_objects_management/README.md rename to src/platform/plugins/shared/saved_objects_management/README.md diff --git a/src/plugins/saved_objects_management/common/index.ts b/src/platform/plugins/shared/saved_objects_management/common/index.ts similarity index 100% rename from src/plugins/saved_objects_management/common/index.ts rename to src/platform/plugins/shared/saved_objects_management/common/index.ts diff --git a/src/plugins/saved_objects_management/common/types/README.md b/src/platform/plugins/shared/saved_objects_management/common/types/README.md similarity index 100% rename from src/plugins/saved_objects_management/common/types/README.md rename to src/platform/plugins/shared/saved_objects_management/common/types/README.md diff --git a/src/plugins/saved_objects_management/common/types/index.ts b/src/platform/plugins/shared/saved_objects_management/common/types/index.ts similarity index 100% rename from src/plugins/saved_objects_management/common/types/index.ts rename to src/platform/plugins/shared/saved_objects_management/common/types/index.ts diff --git a/src/plugins/saved_objects_management/common/types/latest.ts b/src/platform/plugins/shared/saved_objects_management/common/types/latest.ts similarity index 100% rename from src/plugins/saved_objects_management/common/types/latest.ts rename to src/platform/plugins/shared/saved_objects_management/common/types/latest.ts diff --git a/src/plugins/saved_objects_management/common/types/v1.ts b/src/platform/plugins/shared/saved_objects_management/common/types/v1.ts similarity index 100% rename from src/plugins/saved_objects_management/common/types/v1.ts rename to src/platform/plugins/shared/saved_objects_management/common/types/v1.ts diff --git a/src/plugins/saved_objects_management/jest.config.js b/src/platform/plugins/shared/saved_objects_management/jest.config.js similarity index 71% rename from src/plugins/saved_objects_management/jest.config.js rename to src/platform/plugins/shared/saved_objects_management/jest.config.js index 19018815ad26d..e06cf47813410 100644 --- a/src/plugins/saved_objects_management/jest.config.js +++ b/src/platform/plugins/shared/saved_objects_management/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/saved_objects_management'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/saved_objects_management', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/saved_objects_management'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/saved_objects_management', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/saved_objects_management/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/saved_objects_management/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/saved_objects_management/kibana.jsonc b/src/platform/plugins/shared/saved_objects_management/kibana.jsonc similarity index 100% rename from src/plugins/saved_objects_management/kibana.jsonc rename to src/platform/plugins/shared/saved_objects_management/kibana.jsonc diff --git a/src/plugins/saved_objects_management/public/index.ts b/src/platform/plugins/shared/saved_objects_management/public/index.ts similarity index 100% rename from src/plugins/saved_objects_management/public/index.ts rename to src/platform/plugins/shared/saved_objects_management/public/index.ts diff --git a/src/plugins/saved_objects_management/public/lib/bulk_delete_objects.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/bulk_delete_objects.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/bulk_delete_objects.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/bulk_delete_objects.ts diff --git a/src/plugins/saved_objects_management/public/lib/bulk_get_objects.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/bulk_get_objects.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/bulk_get_objects.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/bulk_get_objects.ts diff --git a/src/plugins/saved_objects_management/public/lib/extract_export_details.test.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/extract_export_details.test.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/extract_export_details.test.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/extract_export_details.test.ts diff --git a/src/plugins/saved_objects_management/public/lib/extract_export_details.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/extract_export_details.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/extract_export_details.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/extract_export_details.ts diff --git a/src/plugins/saved_objects_management/public/lib/fetch_export_by_type_and_search.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/fetch_export_by_type_and_search.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/fetch_export_by_type_and_search.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/fetch_export_by_type_and_search.ts diff --git a/src/plugins/saved_objects_management/public/lib/fetch_export_objects.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/fetch_export_objects.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/fetch_export_objects.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/fetch_export_objects.ts diff --git a/src/plugins/saved_objects_management/public/lib/find_objects.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/find_objects.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/find_objects.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/find_objects.ts diff --git a/src/plugins/saved_objects_management/public/lib/get_allowed_types.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/get_allowed_types.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/get_allowed_types.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/get_allowed_types.ts diff --git a/src/plugins/saved_objects_management/public/lib/get_default_title.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/get_default_title.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/get_default_title.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/get_default_title.ts diff --git a/src/plugins/saved_objects_management/public/lib/get_relationships.test.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/get_relationships.test.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/get_relationships.test.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/get_relationships.test.ts diff --git a/src/plugins/saved_objects_management/public/lib/get_relationships.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/get_relationships.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/get_relationships.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/get_relationships.ts diff --git a/src/plugins/saved_objects_management/public/lib/get_saved_object_counts.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/get_saved_object_counts.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/get_saved_object_counts.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/get_saved_object_counts.ts diff --git a/src/plugins/saved_objects_management/public/lib/get_saved_object_label.test.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/get_saved_object_label.test.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/get_saved_object_label.test.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/get_saved_object_label.test.ts diff --git a/src/plugins/saved_objects_management/public/lib/get_saved_object_label.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/get_saved_object_label.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/get_saved_object_label.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/get_saved_object_label.ts diff --git a/src/plugins/saved_objects_management/public/lib/get_tag_references.test.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/get_tag_references.test.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/get_tag_references.test.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/get_tag_references.test.ts diff --git a/src/plugins/saved_objects_management/public/lib/get_tag_references.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/get_tag_references.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/get_tag_references.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/get_tag_references.ts diff --git a/src/plugins/saved_objects_management/public/lib/import_file.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/import_file.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/import_file.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/import_file.ts diff --git a/src/plugins/saved_objects_management/public/lib/index.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/index.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/index.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/index.ts diff --git a/src/plugins/saved_objects_management/public/lib/numeric.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/numeric.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/numeric.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/numeric.ts diff --git a/src/plugins/saved_objects_management/public/lib/parse_query.test.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/parse_query.test.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/parse_query.test.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/parse_query.test.ts diff --git a/src/plugins/saved_objects_management/public/lib/parse_query.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/parse_query.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/parse_query.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/parse_query.ts diff --git a/src/plugins/saved_objects_management/public/lib/process_import_response.test.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/process_import_response.test.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/process_import_response.test.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/process_import_response.test.ts diff --git a/src/plugins/saved_objects_management/public/lib/process_import_response.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/process_import_response.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/process_import_response.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/process_import_response.ts diff --git a/src/plugins/saved_objects_management/public/lib/resolve_import_errors.test.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/resolve_import_errors.test.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/resolve_import_errors.test.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/resolve_import_errors.test.ts diff --git a/src/plugins/saved_objects_management/public/lib/resolve_import_errors.ts b/src/platform/plugins/shared/saved_objects_management/public/lib/resolve_import_errors.ts similarity index 100% rename from src/plugins/saved_objects_management/public/lib/resolve_import_errors.ts rename to src/platform/plugins/shared/saved_objects_management/public/lib/resolve_import_errors.ts diff --git a/src/plugins/saved_objects_management/public/management_section/index.ts b/src/platform/plugins/shared/saved_objects_management/public/management_section/index.ts similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/index.ts rename to src/platform/plugins/shared/saved_objects_management/public/management_section/index.ts diff --git a/src/plugins/saved_objects_management/public/management_section/mount_section.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/mount_section.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/mount_section.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/mount_section.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/__snapshots__/saved_object_view.test.tsx.snap b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/__snapshots__/saved_object_view.test.tsx.snap similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/__snapshots__/saved_object_view.test.tsx.snap rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/__snapshots__/saved_object_view.test.tsx.snap diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/components/__snapshots__/header.test.tsx.snap b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/__snapshots__/header.test.tsx.snap similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/components/__snapshots__/header.test.tsx.snap rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/__snapshots__/header.test.tsx.snap diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/components/__snapshots__/inspect.test.tsx.snap b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/__snapshots__/inspect.test.tsx.snap similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/components/__snapshots__/inspect.test.tsx.snap rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/__snapshots__/inspect.test.tsx.snap diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/components/__snapshots__/not_found_errors.test.tsx.snap b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/__snapshots__/not_found_errors.test.tsx.snap similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/components/__snapshots__/not_found_errors.test.tsx.snap rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/__snapshots__/not_found_errors.test.tsx.snap diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/components/header.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/header.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/components/header.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/header.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/components/header.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/header.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/components/header.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/header.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/components/index.ts b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/index.ts similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/components/index.ts rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/index.ts diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/components/inspect.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/inspect.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/components/inspect.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/inspect.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/components/inspect.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/inspect.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/components/inspect.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/inspect.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/components/not_found_errors.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/not_found_errors.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/components/not_found_errors.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/not_found_errors.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/components/not_found_errors.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/not_found_errors.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/components/not_found_errors.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/components/not_found_errors.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/index.ts b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/index.ts similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/index.ts rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/index.ts diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/saved_object_view.scss b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/saved_object_view.scss similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/saved_object_view.scss rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/saved_object_view.scss diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/saved_object_view.test.mocks.ts b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/saved_object_view.test.mocks.ts similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/saved_object_view.test.mocks.ts rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/saved_object_view.test.mocks.ts diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/saved_object_view.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/saved_object_view.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/saved_object_view.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/saved_object_view.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/object_view/saved_object_view.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/saved_object_view.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/object_view/saved_object_view.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/object_view/saved_object_view.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/flyout.test.tsx.snap b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/__snapshots__/flyout.test.tsx.snap similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/flyout.test.tsx.snap rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/__snapshots__/flyout.test.tsx.snap diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/header.test.tsx.snap b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/__snapshots__/header.test.tsx.snap similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/header.test.tsx.snap rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/__snapshots__/header.test.tsx.snap diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/relationships.test.tsx.snap b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/__snapshots__/relationships.test.tsx.snap similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/relationships.test.tsx.snap rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/__snapshots__/relationships.test.tsx.snap diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/table.test.tsx.snap b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/__snapshots__/table.test.tsx.snap similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/table.test.tsx.snap rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/__snapshots__/table.test.tsx.snap diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/delete_confirm_modal.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/export_modal.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/export_modal.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/export_modal.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/export_modal.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/export_modal.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/export_modal.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/export_modal.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/export_modal.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.test.mocks.ts b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/flyout.test.mocks.ts similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.test.mocks.ts rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/flyout.test.mocks.ts diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/flyout.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/flyout.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/flyout.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/flyout.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/header.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/header.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/header.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/header.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/header.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/header.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/header.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/header.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/import_mode_control.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/import_mode_control.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/import_mode_control.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/import_mode_control.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/import_mode_control.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/import_mode_control.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/import_mode_control.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/import_mode_control.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/import_summary.scss b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/import_summary.scss similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/import_summary.scss rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/import_summary.scss diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/import_summary.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/import_summary.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/import_summary.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/import_summary.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/import_summary.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/import_summary.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/import_summary.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/import_summary.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/index.ts b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/index.ts similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/index.ts rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/index.ts diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/overwrite_modal.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/overwrite_modal.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/overwrite_modal.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/overwrite_modal.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/overwrite_modal.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/overwrite_modal.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/overwrite_modal.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/overwrite_modal.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/relationships.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/relationships.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/relationships.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/relationships.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/relationships.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/relationships.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/relationships.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/relationships.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/table.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/table.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/table.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/table.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/table.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/table.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/components/table.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/components/table.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/index.ts b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/index.ts similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/index.ts rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/index.ts diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.mocks.ts b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.mocks.ts similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.mocks.ts rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.mocks.ts diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/saved_objects_edition_page.scss b/src/platform/plugins/shared/saved_objects_management/public/management_section/saved_objects_edition_page.scss similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/saved_objects_edition_page.scss rename to src/platform/plugins/shared/saved_objects_management/public/management_section/saved_objects_edition_page.scss diff --git a/src/plugins/saved_objects_management/public/management_section/saved_objects_edition_page.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/saved_objects_edition_page.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/saved_objects_edition_page.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/saved_objects_edition_page.tsx diff --git a/src/plugins/saved_objects_management/public/management_section/saved_objects_table_page.tsx b/src/platform/plugins/shared/saved_objects_management/public/management_section/saved_objects_table_page.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/management_section/saved_objects_table_page.tsx rename to src/platform/plugins/shared/saved_objects_management/public/management_section/saved_objects_table_page.tsx diff --git a/src/plugins/saved_objects_management/public/mocks.ts b/src/platform/plugins/shared/saved_objects_management/public/mocks.ts similarity index 100% rename from src/plugins/saved_objects_management/public/mocks.ts rename to src/platform/plugins/shared/saved_objects_management/public/mocks.ts diff --git a/src/plugins/saved_objects_management/public/plugin.test.ts b/src/platform/plugins/shared/saved_objects_management/public/plugin.test.ts similarity index 100% rename from src/plugins/saved_objects_management/public/plugin.test.ts rename to src/platform/plugins/shared/saved_objects_management/public/plugin.test.ts diff --git a/src/plugins/saved_objects_management/public/plugin.ts b/src/platform/plugins/shared/saved_objects_management/public/plugin.ts similarity index 100% rename from src/plugins/saved_objects_management/public/plugin.ts rename to src/platform/plugins/shared/saved_objects_management/public/plugin.ts diff --git a/src/plugins/saved_objects_management/public/services/action_service.mock.ts b/src/platform/plugins/shared/saved_objects_management/public/services/action_service.mock.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/action_service.mock.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/action_service.mock.ts diff --git a/src/plugins/saved_objects_management/public/services/action_service.test.ts b/src/platform/plugins/shared/saved_objects_management/public/services/action_service.test.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/action_service.test.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/action_service.test.ts diff --git a/src/plugins/saved_objects_management/public/services/action_service.ts b/src/platform/plugins/shared/saved_objects_management/public/services/action_service.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/action_service.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/action_service.ts diff --git a/src/plugins/saved_objects_management/public/services/actions/copy_saved_objects_to_space_action.tsx b/src/platform/plugins/shared/saved_objects_management/public/services/actions/copy_saved_objects_to_space_action.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/services/actions/copy_saved_objects_to_space_action.tsx rename to src/platform/plugins/shared/saved_objects_management/public/services/actions/copy_saved_objects_to_space_action.tsx diff --git a/src/plugins/saved_objects_management/public/services/actions/index.ts b/src/platform/plugins/shared/saved_objects_management/public/services/actions/index.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/actions/index.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/actions/index.ts diff --git a/src/plugins/saved_objects_management/public/services/actions/share_saved_objects_to_space_action.test.tsx b/src/platform/plugins/shared/saved_objects_management/public/services/actions/share_saved_objects_to_space_action.test.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/services/actions/share_saved_objects_to_space_action.test.tsx rename to src/platform/plugins/shared/saved_objects_management/public/services/actions/share_saved_objects_to_space_action.test.tsx diff --git a/src/plugins/saved_objects_management/public/services/actions/share_saved_objects_to_space_action.tsx b/src/platform/plugins/shared/saved_objects_management/public/services/actions/share_saved_objects_to_space_action.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/services/actions/share_saved_objects_to_space_action.tsx rename to src/platform/plugins/shared/saved_objects_management/public/services/actions/share_saved_objects_to_space_action.tsx diff --git a/src/plugins/saved_objects_management/public/services/column_service.mock.ts b/src/platform/plugins/shared/saved_objects_management/public/services/column_service.mock.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/column_service.mock.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/column_service.mock.ts diff --git a/src/plugins/saved_objects_management/public/services/column_service.test.ts b/src/platform/plugins/shared/saved_objects_management/public/services/column_service.test.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/column_service.test.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/column_service.test.ts diff --git a/src/plugins/saved_objects_management/public/services/column_service.ts b/src/platform/plugins/shared/saved_objects_management/public/services/column_service.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/column_service.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/column_service.ts diff --git a/src/plugins/saved_objects_management/public/services/columns/constants.ts b/src/platform/plugins/shared/saved_objects_management/public/services/columns/constants.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/columns/constants.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/columns/constants.ts diff --git a/src/plugins/saved_objects_management/public/services/columns/index.ts b/src/platform/plugins/shared/saved_objects_management/public/services/columns/index.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/columns/index.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/columns/index.ts diff --git a/src/plugins/saved_objects_management/public/services/columns/share_saved_objects_to_space_column.tsx b/src/platform/plugins/shared/saved_objects_management/public/services/columns/share_saved_objects_to_space_column.tsx similarity index 100% rename from src/plugins/saved_objects_management/public/services/columns/share_saved_objects_to_space_column.tsx rename to src/platform/plugins/shared/saved_objects_management/public/services/columns/share_saved_objects_to_space_column.tsx diff --git a/src/plugins/saved_objects_management/public/services/index.ts b/src/platform/plugins/shared/saved_objects_management/public/services/index.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/index.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/index.ts diff --git a/src/plugins/saved_objects_management/public/services/types/action.ts b/src/platform/plugins/shared/saved_objects_management/public/services/types/action.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/types/action.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/types/action.ts diff --git a/src/plugins/saved_objects_management/public/services/types/column.ts b/src/platform/plugins/shared/saved_objects_management/public/services/types/column.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/types/column.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/types/column.ts diff --git a/src/plugins/saved_objects_management/public/services/types/index.ts b/src/platform/plugins/shared/saved_objects_management/public/services/types/index.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/types/index.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/types/index.ts diff --git a/src/plugins/saved_objects_management/public/services/types/record.ts b/src/platform/plugins/shared/saved_objects_management/public/services/types/record.ts similarity index 100% rename from src/plugins/saved_objects_management/public/services/types/record.ts rename to src/platform/plugins/shared/saved_objects_management/public/services/types/record.ts diff --git a/src/plugins/saved_objects_management/public/types.ts b/src/platform/plugins/shared/saved_objects_management/public/types.ts similarity index 100% rename from src/plugins/saved_objects_management/public/types.ts rename to src/platform/plugins/shared/saved_objects_management/public/types.ts diff --git a/src/plugins/saved_objects_management/server/capabilities_provider.ts b/src/platform/plugins/shared/saved_objects_management/server/capabilities_provider.ts similarity index 100% rename from src/plugins/saved_objects_management/server/capabilities_provider.ts rename to src/platform/plugins/shared/saved_objects_management/server/capabilities_provider.ts diff --git a/src/plugins/saved_objects_management/server/index.ts b/src/platform/plugins/shared/saved_objects_management/server/index.ts similarity index 100% rename from src/plugins/saved_objects_management/server/index.ts rename to src/platform/plugins/shared/saved_objects_management/server/index.ts diff --git a/src/plugins/saved_objects_management/server/lib/find_relationships.test.ts b/src/platform/plugins/shared/saved_objects_management/server/lib/find_relationships.test.ts similarity index 100% rename from src/plugins/saved_objects_management/server/lib/find_relationships.test.ts rename to src/platform/plugins/shared/saved_objects_management/server/lib/find_relationships.test.ts diff --git a/src/plugins/saved_objects_management/server/lib/find_relationships.ts b/src/platform/plugins/shared/saved_objects_management/server/lib/find_relationships.ts similarity index 100% rename from src/plugins/saved_objects_management/server/lib/find_relationships.ts rename to src/platform/plugins/shared/saved_objects_management/server/lib/find_relationships.ts diff --git a/src/plugins/saved_objects_management/server/lib/get_saved_objects_counts.ts b/src/platform/plugins/shared/saved_objects_management/server/lib/get_saved_objects_counts.ts similarity index 100% rename from src/plugins/saved_objects_management/server/lib/get_saved_objects_counts.ts rename to src/platform/plugins/shared/saved_objects_management/server/lib/get_saved_objects_counts.ts diff --git a/src/plugins/saved_objects_management/server/lib/index.ts b/src/platform/plugins/shared/saved_objects_management/server/lib/index.ts similarity index 100% rename from src/plugins/saved_objects_management/server/lib/index.ts rename to src/platform/plugins/shared/saved_objects_management/server/lib/index.ts diff --git a/src/plugins/saved_objects_management/server/lib/inject_meta_attributes.test.ts b/src/platform/plugins/shared/saved_objects_management/server/lib/inject_meta_attributes.test.ts similarity index 100% rename from src/plugins/saved_objects_management/server/lib/inject_meta_attributes.test.ts rename to src/platform/plugins/shared/saved_objects_management/server/lib/inject_meta_attributes.test.ts diff --git a/src/plugins/saved_objects_management/server/lib/inject_meta_attributes.ts b/src/platform/plugins/shared/saved_objects_management/server/lib/inject_meta_attributes.ts similarity index 100% rename from src/plugins/saved_objects_management/server/lib/inject_meta_attributes.ts rename to src/platform/plugins/shared/saved_objects_management/server/lib/inject_meta_attributes.ts diff --git a/src/plugins/saved_objects_management/server/lib/to_saved_object_with_meta.ts b/src/platform/plugins/shared/saved_objects_management/server/lib/to_saved_object_with_meta.ts similarity index 100% rename from src/plugins/saved_objects_management/server/lib/to_saved_object_with_meta.ts rename to src/platform/plugins/shared/saved_objects_management/server/lib/to_saved_object_with_meta.ts diff --git a/src/plugins/saved_objects_management/server/plugin.test.mocks.ts b/src/platform/plugins/shared/saved_objects_management/server/plugin.test.mocks.ts similarity index 100% rename from src/plugins/saved_objects_management/server/plugin.test.mocks.ts rename to src/platform/plugins/shared/saved_objects_management/server/plugin.test.mocks.ts diff --git a/src/plugins/saved_objects_management/server/plugin.test.ts b/src/platform/plugins/shared/saved_objects_management/server/plugin.test.ts similarity index 100% rename from src/plugins/saved_objects_management/server/plugin.test.ts rename to src/platform/plugins/shared/saved_objects_management/server/plugin.test.ts diff --git a/src/plugins/saved_objects_management/server/plugin.ts b/src/platform/plugins/shared/saved_objects_management/server/plugin.ts similarity index 100% rename from src/plugins/saved_objects_management/server/plugin.ts rename to src/platform/plugins/shared/saved_objects_management/server/plugin.ts diff --git a/src/plugins/saved_objects_management/server/routes/bulk_delete.ts b/src/platform/plugins/shared/saved_objects_management/server/routes/bulk_delete.ts similarity index 100% rename from src/plugins/saved_objects_management/server/routes/bulk_delete.ts rename to src/platform/plugins/shared/saved_objects_management/server/routes/bulk_delete.ts diff --git a/src/plugins/saved_objects_management/server/routes/bulk_get.ts b/src/platform/plugins/shared/saved_objects_management/server/routes/bulk_get.ts similarity index 100% rename from src/plugins/saved_objects_management/server/routes/bulk_get.ts rename to src/platform/plugins/shared/saved_objects_management/server/routes/bulk_get.ts diff --git a/src/plugins/saved_objects_management/server/routes/find.ts b/src/platform/plugins/shared/saved_objects_management/server/routes/find.ts similarity index 100% rename from src/plugins/saved_objects_management/server/routes/find.ts rename to src/platform/plugins/shared/saved_objects_management/server/routes/find.ts diff --git a/src/plugins/saved_objects_management/server/routes/get_allowed_types.ts b/src/platform/plugins/shared/saved_objects_management/server/routes/get_allowed_types.ts similarity index 100% rename from src/plugins/saved_objects_management/server/routes/get_allowed_types.ts rename to src/platform/plugins/shared/saved_objects_management/server/routes/get_allowed_types.ts diff --git a/src/plugins/saved_objects_management/server/routes/index.test.ts b/src/platform/plugins/shared/saved_objects_management/server/routes/index.test.ts similarity index 100% rename from src/plugins/saved_objects_management/server/routes/index.test.ts rename to src/platform/plugins/shared/saved_objects_management/server/routes/index.test.ts diff --git a/src/plugins/saved_objects_management/server/routes/index.ts b/src/platform/plugins/shared/saved_objects_management/server/routes/index.ts similarity index 100% rename from src/plugins/saved_objects_management/server/routes/index.ts rename to src/platform/plugins/shared/saved_objects_management/server/routes/index.ts diff --git a/src/plugins/saved_objects_management/server/routes/relationships.ts b/src/platform/plugins/shared/saved_objects_management/server/routes/relationships.ts similarity index 100% rename from src/plugins/saved_objects_management/server/routes/relationships.ts rename to src/platform/plugins/shared/saved_objects_management/server/routes/relationships.ts diff --git a/src/plugins/saved_objects_management/server/routes/scroll_count.ts b/src/platform/plugins/shared/saved_objects_management/server/routes/scroll_count.ts similarity index 100% rename from src/plugins/saved_objects_management/server/routes/scroll_count.ts rename to src/platform/plugins/shared/saved_objects_management/server/routes/scroll_count.ts diff --git a/src/plugins/saved_objects_management/server/services/index.ts b/src/platform/plugins/shared/saved_objects_management/server/services/index.ts similarity index 100% rename from src/plugins/saved_objects_management/server/services/index.ts rename to src/platform/plugins/shared/saved_objects_management/server/services/index.ts diff --git a/src/plugins/saved_objects_management/server/services/management.mock.ts b/src/platform/plugins/shared/saved_objects_management/server/services/management.mock.ts similarity index 100% rename from src/plugins/saved_objects_management/server/services/management.mock.ts rename to src/platform/plugins/shared/saved_objects_management/server/services/management.mock.ts diff --git a/src/plugins/saved_objects_management/server/services/management.test.ts b/src/platform/plugins/shared/saved_objects_management/server/services/management.test.ts similarity index 100% rename from src/plugins/saved_objects_management/server/services/management.test.ts rename to src/platform/plugins/shared/saved_objects_management/server/services/management.test.ts diff --git a/src/plugins/saved_objects_management/server/services/management.ts b/src/platform/plugins/shared/saved_objects_management/server/services/management.ts similarity index 100% rename from src/plugins/saved_objects_management/server/services/management.ts rename to src/platform/plugins/shared/saved_objects_management/server/services/management.ts diff --git a/src/plugins/saved_objects_management/server/types.ts b/src/platform/plugins/shared/saved_objects_management/server/types.ts similarity index 100% rename from src/plugins/saved_objects_management/server/types.ts rename to src/platform/plugins/shared/saved_objects_management/server/types.ts diff --git a/src/plugins/saved_objects_management/tsconfig.json b/src/platform/plugins/shared/saved_objects_management/tsconfig.json similarity index 95% rename from src/plugins/saved_objects_management/tsconfig.json rename to src/platform/plugins/shared/saved_objects_management/tsconfig.json index bb402fa8648fe..884b660ba01ed 100644 --- a/src/plugins/saved_objects_management/tsconfig.json +++ b/src/platform/plugins/shared/saved_objects_management/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 49cb076538f45..cf260f688af8e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1542,8 +1542,8 @@ "@kbn/saved-objects-hidden-from-http-apis-type-plugin/*": ["test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/*"], "@kbn/saved-objects-hidden-type-plugin": ["test/plugin_functional/plugins/saved_objects_hidden_type"], "@kbn/saved-objects-hidden-type-plugin/*": ["test/plugin_functional/plugins/saved_objects_hidden_type/*"], - "@kbn/saved-objects-management-plugin": ["src/plugins/saved_objects_management"], - "@kbn/saved-objects-management-plugin/*": ["src/plugins/saved_objects_management/*"], + "@kbn/saved-objects-management-plugin": ["src/platform/plugins/shared/saved_objects_management"], + "@kbn/saved-objects-management-plugin/*": ["src/platform/plugins/shared/saved_objects_management/*"], "@kbn/saved-objects-plugin": ["src/platform/plugins/shared/saved_objects"], "@kbn/saved-objects-plugin/*": ["src/platform/plugins/shared/saved_objects/*"], "@kbn/saved-objects-settings": ["packages/kbn-saved-objects-settings"], diff --git a/yarn.lock b/yarn.lock index e2babb14de5cf..d467945d8629a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6901,7 +6901,7 @@ version "0.0.0" uid "" -"@kbn/saved-objects-management-plugin@link:src/plugins/saved_objects_management": +"@kbn/saved-objects-management-plugin@link:src/platform/plugins/shared/saved_objects_management": version "0.0.0" uid "" From d6bfa942289de93c5c637464fb88f17c60e67403 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:10:51 +0100 Subject: [PATCH 153/167] Relocating module `@kbn/server-http-tools` --- .github/CODEOWNERS | 2 +- package.json | 2 +- .../platform/packages/shared}/kbn-server-http-tools/README.md | 0 .../platform/packages/shared}/kbn-server-http-tools/index.ts | 0 .../packages/shared}/kbn-server-http-tools/jest.config.js | 4 ++-- .../packages/shared}/kbn-server-http-tools/kibana.jsonc | 0 .../packages/shared}/kbn-server-http-tools/package.json | 0 .../shared}/kbn-server-http-tools/src/create_server.ts | 0 .../src/default_validation_error_handler.test.ts | 0 .../src/default_validation_error_handler.ts | 0 .../kbn-server-http-tools/src/get_listener.test.mocks.ts | 0 .../shared}/kbn-server-http-tools/src/get_listener.test.ts | 0 .../shared}/kbn-server-http-tools/src/get_listener.ts | 0 .../shared}/kbn-server-http-tools/src/get_request_id.test.ts | 0 .../shared}/kbn-server-http-tools/src/get_request_id.ts | 0 .../src/get_server_options.test.mocks.ts | 0 .../kbn-server-http-tools/src/get_server_options.test.ts | 0 .../shared}/kbn-server-http-tools/src/get_server_options.ts | 0 .../shared}/kbn-server-http-tools/src/get_tls_options.test.ts | 0 .../shared}/kbn-server-http-tools/src/get_tls_options.ts | 0 .../kbn-server-http-tools/src/set_tls_config.test.mocks.ts | 0 .../shared}/kbn-server-http-tools/src/set_tls_config.test.ts | 0 .../shared}/kbn-server-http-tools/src/set_tls_config.ts | 0 .../shared}/kbn-server-http-tools/src/ssl/constants.ts | 0 .../packages/shared}/kbn-server-http-tools/src/ssl/index.ts | 0 .../kbn-server-http-tools/src/ssl/ssl_config.test.mocks.ts | 0 .../shared}/kbn-server-http-tools/src/ssl/ssl_config.test.ts | 0 .../shared}/kbn-server-http-tools/src/ssl/ssl_config.ts | 0 .../packages/shared}/kbn-server-http-tools/src/types.ts | 0 .../packages/shared}/kbn-server-http-tools/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 32 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/jest.config.js (83%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/create_server.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/default_validation_error_handler.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/default_validation_error_handler.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/get_listener.test.mocks.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/get_listener.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/get_listener.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/get_request_id.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/get_request_id.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/get_server_options.test.mocks.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/get_server_options.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/get_server_options.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/get_tls_options.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/get_tls_options.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/set_tls_config.test.mocks.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/set_tls_config.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/set_tls_config.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/ssl/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/ssl/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/ssl/ssl_config.test.mocks.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/ssl/ssl_config.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/ssl/ssl_config.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-server-http-tools/tsconfig.json (83%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 68eec5338edfb..b6b279c1290b4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -252,7 +252,6 @@ packages/kbn-scout-info @elastic/appex-qa packages/kbn-scout-reporting @elastic/appex-qa packages/kbn-screenshotting-server @elastic/appex-sharedux packages/kbn-security-hardening @elastic/kibana-security -packages/kbn-server-http-tools @elastic/kibana-core packages/kbn-set-map @elastic/kibana-operations packages/kbn-shared-ux-utility @elastic/appex-sharedux packages/kbn-some-dev-log @elastic/kibana-operations @@ -578,6 +577,7 @@ src/platform/packages/shared/kbn-securitysolution-es-utils @elastic/security-det src/platform/packages/shared/kbn-securitysolution-io-ts-types @elastic/security-detection-engine src/platform/packages/shared/kbn-securitysolution-io-ts-utils @elastic/security-detection-engine src/platform/packages/shared/kbn-securitysolution-rules @elastic/security-detection-engine +src/platform/packages/shared/kbn-server-http-tools @elastic/kibana-core src/platform/packages/shared/kbn-server-route-repository @elastic/obs-knowledge-team src/platform/packages/shared/kbn-server-route-repository-client @elastic/obs-knowledge-team src/platform/packages/shared/kbn-server-route-repository-utils @elastic/obs-knowledge-team diff --git a/package.json b/package.json index 61e4a3f05382b..7531c62f74a0f 100644 --- a/package.json +++ b/package.json @@ -859,7 +859,7 @@ "@kbn/securitysolution-rules": "link:src/platform/packages/shared/kbn-securitysolution-rules", "@kbn/securitysolution-t-grid": "link:x-pack/solutions/security/packages/kbn-securitysolution-t-grid", "@kbn/securitysolution-utils": "link:x-pack/solutions/security/packages/kbn-securitysolution-utils", - "@kbn/server-http-tools": "link:packages/kbn-server-http-tools", + "@kbn/server-http-tools": "link:src/platform/packages/shared/kbn-server-http-tools", "@kbn/server-route-repository": "link:src/platform/packages/shared/kbn-server-route-repository", "@kbn/server-route-repository-client": "link:src/platform/packages/shared/kbn-server-route-repository-client", "@kbn/server-route-repository-utils": "link:src/platform/packages/shared/kbn-server-route-repository-utils", diff --git a/packages/kbn-server-http-tools/README.md b/src/platform/packages/shared/kbn-server-http-tools/README.md similarity index 100% rename from packages/kbn-server-http-tools/README.md rename to src/platform/packages/shared/kbn-server-http-tools/README.md diff --git a/packages/kbn-server-http-tools/index.ts b/src/platform/packages/shared/kbn-server-http-tools/index.ts similarity index 100% rename from packages/kbn-server-http-tools/index.ts rename to src/platform/packages/shared/kbn-server-http-tools/index.ts diff --git a/packages/kbn-server-http-tools/jest.config.js b/src/platform/packages/shared/kbn-server-http-tools/jest.config.js similarity index 83% rename from packages/kbn-server-http-tools/jest.config.js rename to src/platform/packages/shared/kbn-server-http-tools/jest.config.js index ec92adf4094c6..47a7c47956a10 100644 --- a/packages/kbn-server-http-tools/jest.config.js +++ b/src/platform/packages/shared/kbn-server-http-tools/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-server-http-tools'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-server-http-tools'], }; diff --git a/packages/kbn-server-http-tools/kibana.jsonc b/src/platform/packages/shared/kbn-server-http-tools/kibana.jsonc similarity index 100% rename from packages/kbn-server-http-tools/kibana.jsonc rename to src/platform/packages/shared/kbn-server-http-tools/kibana.jsonc diff --git a/packages/kbn-server-http-tools/package.json b/src/platform/packages/shared/kbn-server-http-tools/package.json similarity index 100% rename from packages/kbn-server-http-tools/package.json rename to src/platform/packages/shared/kbn-server-http-tools/package.json diff --git a/packages/kbn-server-http-tools/src/create_server.ts b/src/platform/packages/shared/kbn-server-http-tools/src/create_server.ts similarity index 100% rename from packages/kbn-server-http-tools/src/create_server.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/create_server.ts diff --git a/packages/kbn-server-http-tools/src/default_validation_error_handler.test.ts b/src/platform/packages/shared/kbn-server-http-tools/src/default_validation_error_handler.test.ts similarity index 100% rename from packages/kbn-server-http-tools/src/default_validation_error_handler.test.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/default_validation_error_handler.test.ts diff --git a/packages/kbn-server-http-tools/src/default_validation_error_handler.ts b/src/platform/packages/shared/kbn-server-http-tools/src/default_validation_error_handler.ts similarity index 100% rename from packages/kbn-server-http-tools/src/default_validation_error_handler.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/default_validation_error_handler.ts diff --git a/packages/kbn-server-http-tools/src/get_listener.test.mocks.ts b/src/platform/packages/shared/kbn-server-http-tools/src/get_listener.test.mocks.ts similarity index 100% rename from packages/kbn-server-http-tools/src/get_listener.test.mocks.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/get_listener.test.mocks.ts diff --git a/packages/kbn-server-http-tools/src/get_listener.test.ts b/src/platform/packages/shared/kbn-server-http-tools/src/get_listener.test.ts similarity index 100% rename from packages/kbn-server-http-tools/src/get_listener.test.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/get_listener.test.ts diff --git a/packages/kbn-server-http-tools/src/get_listener.ts b/src/platform/packages/shared/kbn-server-http-tools/src/get_listener.ts similarity index 100% rename from packages/kbn-server-http-tools/src/get_listener.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/get_listener.ts diff --git a/packages/kbn-server-http-tools/src/get_request_id.test.ts b/src/platform/packages/shared/kbn-server-http-tools/src/get_request_id.test.ts similarity index 100% rename from packages/kbn-server-http-tools/src/get_request_id.test.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/get_request_id.test.ts diff --git a/packages/kbn-server-http-tools/src/get_request_id.ts b/src/platform/packages/shared/kbn-server-http-tools/src/get_request_id.ts similarity index 100% rename from packages/kbn-server-http-tools/src/get_request_id.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/get_request_id.ts diff --git a/packages/kbn-server-http-tools/src/get_server_options.test.mocks.ts b/src/platform/packages/shared/kbn-server-http-tools/src/get_server_options.test.mocks.ts similarity index 100% rename from packages/kbn-server-http-tools/src/get_server_options.test.mocks.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/get_server_options.test.mocks.ts diff --git a/packages/kbn-server-http-tools/src/get_server_options.test.ts b/src/platform/packages/shared/kbn-server-http-tools/src/get_server_options.test.ts similarity index 100% rename from packages/kbn-server-http-tools/src/get_server_options.test.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/get_server_options.test.ts diff --git a/packages/kbn-server-http-tools/src/get_server_options.ts b/src/platform/packages/shared/kbn-server-http-tools/src/get_server_options.ts similarity index 100% rename from packages/kbn-server-http-tools/src/get_server_options.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/get_server_options.ts diff --git a/packages/kbn-server-http-tools/src/get_tls_options.test.ts b/src/platform/packages/shared/kbn-server-http-tools/src/get_tls_options.test.ts similarity index 100% rename from packages/kbn-server-http-tools/src/get_tls_options.test.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/get_tls_options.test.ts diff --git a/packages/kbn-server-http-tools/src/get_tls_options.ts b/src/platform/packages/shared/kbn-server-http-tools/src/get_tls_options.ts similarity index 100% rename from packages/kbn-server-http-tools/src/get_tls_options.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/get_tls_options.ts diff --git a/packages/kbn-server-http-tools/src/set_tls_config.test.mocks.ts b/src/platform/packages/shared/kbn-server-http-tools/src/set_tls_config.test.mocks.ts similarity index 100% rename from packages/kbn-server-http-tools/src/set_tls_config.test.mocks.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/set_tls_config.test.mocks.ts diff --git a/packages/kbn-server-http-tools/src/set_tls_config.test.ts b/src/platform/packages/shared/kbn-server-http-tools/src/set_tls_config.test.ts similarity index 100% rename from packages/kbn-server-http-tools/src/set_tls_config.test.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/set_tls_config.test.ts diff --git a/packages/kbn-server-http-tools/src/set_tls_config.ts b/src/platform/packages/shared/kbn-server-http-tools/src/set_tls_config.ts similarity index 100% rename from packages/kbn-server-http-tools/src/set_tls_config.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/set_tls_config.ts diff --git a/packages/kbn-server-http-tools/src/ssl/constants.ts b/src/platform/packages/shared/kbn-server-http-tools/src/ssl/constants.ts similarity index 100% rename from packages/kbn-server-http-tools/src/ssl/constants.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/ssl/constants.ts diff --git a/packages/kbn-server-http-tools/src/ssl/index.ts b/src/platform/packages/shared/kbn-server-http-tools/src/ssl/index.ts similarity index 100% rename from packages/kbn-server-http-tools/src/ssl/index.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/ssl/index.ts diff --git a/packages/kbn-server-http-tools/src/ssl/ssl_config.test.mocks.ts b/src/platform/packages/shared/kbn-server-http-tools/src/ssl/ssl_config.test.mocks.ts similarity index 100% rename from packages/kbn-server-http-tools/src/ssl/ssl_config.test.mocks.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/ssl/ssl_config.test.mocks.ts diff --git a/packages/kbn-server-http-tools/src/ssl/ssl_config.test.ts b/src/platform/packages/shared/kbn-server-http-tools/src/ssl/ssl_config.test.ts similarity index 100% rename from packages/kbn-server-http-tools/src/ssl/ssl_config.test.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/ssl/ssl_config.test.ts diff --git a/packages/kbn-server-http-tools/src/ssl/ssl_config.ts b/src/platform/packages/shared/kbn-server-http-tools/src/ssl/ssl_config.ts similarity index 100% rename from packages/kbn-server-http-tools/src/ssl/ssl_config.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/ssl/ssl_config.ts diff --git a/packages/kbn-server-http-tools/src/types.ts b/src/platform/packages/shared/kbn-server-http-tools/src/types.ts similarity index 100% rename from packages/kbn-server-http-tools/src/types.ts rename to src/platform/packages/shared/kbn-server-http-tools/src/types.ts diff --git a/packages/kbn-server-http-tools/tsconfig.json b/src/platform/packages/shared/kbn-server-http-tools/tsconfig.json similarity index 83% rename from packages/kbn-server-http-tools/tsconfig.json rename to src/platform/packages/shared/kbn-server-http-tools/tsconfig.json index 179eec6f37c26..588997cc1a6e5 100644 --- a/packages/kbn-server-http-tools/tsconfig.json +++ b/src/platform/packages/shared/kbn-server-http-tools/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index cf260f688af8e..4f48fa2a73fe7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1696,8 +1696,8 @@ "@kbn/securitysolution-t-grid/*": ["x-pack/solutions/security/packages/kbn-securitysolution-t-grid/*"], "@kbn/securitysolution-utils": ["x-pack/solutions/security/packages/kbn-securitysolution-utils"], "@kbn/securitysolution-utils/*": ["x-pack/solutions/security/packages/kbn-securitysolution-utils/*"], - "@kbn/server-http-tools": ["packages/kbn-server-http-tools"], - "@kbn/server-http-tools/*": ["packages/kbn-server-http-tools/*"], + "@kbn/server-http-tools": ["src/platform/packages/shared/kbn-server-http-tools"], + "@kbn/server-http-tools/*": ["src/platform/packages/shared/kbn-server-http-tools/*"], "@kbn/server-route-repository": ["src/platform/packages/shared/kbn-server-route-repository"], "@kbn/server-route-repository/*": ["src/platform/packages/shared/kbn-server-route-repository/*"], "@kbn/server-route-repository-client": ["src/platform/packages/shared/kbn-server-route-repository-client"], diff --git a/yarn.lock b/yarn.lock index d467945d8629a..94cb7add4d8ec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7209,7 +7209,7 @@ version "0.0.0" uid "" -"@kbn/server-http-tools@link:packages/kbn-server-http-tools": +"@kbn/server-http-tools@link:src/platform/packages/shared/kbn-server-http-tools": version "0.0.0" uid "" From ffc0d00ee494a11e0d7affeb77d5a5cc045dd180 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:11:42 +0100 Subject: [PATCH 154/167] Relocating module `@kbn/std` --- .github/CODEOWNERS | 10 +++++----- package.json | 2 +- .../private/kbn-ui-shared-deps-src/BUILD.bazel | 2 +- .../platform/packages/shared}/kbn-std/BUILD.bazel | 0 .../platform/packages/shared}/kbn-std/README.md | 0 .../platform/packages/shared}/kbn-std/index.ts | 0 .../platform/packages/shared}/kbn-std/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-std/kibana.jsonc | 0 .../platform/packages/shared}/kbn-std/package.json | 0 .../ensure_no_unsafe_properties.test.ts.snap | 0 .../shared}/kbn-std/src/__snapshots__/get.test.ts.snap | 0 .../packages/shared}/kbn-std/src/assert_never.ts | 0 .../packages/shared}/kbn-std/src/deep_freeze.test.ts | 0 .../packages/shared}/kbn-std/src/deep_freeze.ts | 0 .../shared}/kbn-std/src/ensure_deep_object.test.ts | 0 .../packages/shared}/kbn-std/src/ensure_deep_object.ts | 0 .../kbn-std/src/ensure_no_unsafe_properties.test.ts | 0 .../shared}/kbn-std/src/ensure_no_unsafe_properties.ts | 0 .../platform/packages/shared}/kbn-std/src/get.test.ts | 0 .../platform/packages/shared}/kbn-std/src/get.ts | 0 .../shared}/kbn-std/src/get_flattened_object.test.ts | 0 .../shared}/kbn-std/src/get_flattened_object.ts | 0 .../shared}/kbn-std/src/is_internal_url.test.ts | 4 ++-- .../packages/shared}/kbn-std/src/is_internal_url.ts | 0 .../shared}/kbn-std/src/iteration/for_each.test.ts | 0 .../packages/shared}/kbn-std/src/iteration/for_each.ts | 0 .../packages/shared}/kbn-std/src/iteration/index.ts | 0 .../packages/shared}/kbn-std/src/iteration/map.test.ts | 0 .../packages/shared}/kbn-std/src/iteration/map.ts | 0 .../shared}/kbn-std/src/iteration/observable.test.ts | 0 .../shared}/kbn-std/src/iteration/observable.ts | 0 .../shared}/kbn-std/src/iteration/test_helpers.ts | 0 .../packages/shared}/kbn-std/src/iteration/types.ts | 0 .../packages/shared}/kbn-std/src/map_to_object.ts | 0 .../packages/shared}/kbn-std/src/map_utils.test.ts | 0 .../platform/packages/shared}/kbn-std/src/map_utils.ts | 0 .../packages/shared}/kbn-std/src/merge.test.ts | 0 .../platform/packages/shared}/kbn-std/src/merge.ts | 0 .../shared}/kbn-std/src/parse_next_url.test.ts | 0 .../packages/shared}/kbn-std/src/parse_next_url.ts | 0 .../platform/packages/shared}/kbn-std/src/pick.test.ts | 0 .../platform/packages/shared}/kbn-std/src/pick.ts | 0 .../packages/shared}/kbn-std/src/promise.test.ts | 0 .../platform/packages/shared}/kbn-std/src/promise.ts | 0 .../packages/shared}/kbn-std/src/semaphore.test.ts | 0 .../platform/packages/shared}/kbn-std/src/semaphore.ts | 0 .../shared}/kbn-std/src/strip_version_qualifier.ts | 0 .../platform/packages/shared}/kbn-std/src/url.test.ts | 0 .../platform/packages/shared}/kbn-std/src/url.ts | 0 .../platform/packages/shared}/kbn-std/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 52 files changed, 15 insertions(+), 15 deletions(-) rename {packages => src/platform/packages/shared}/kbn-std/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-std/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-std/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/jest.config.js (85%) rename {packages => src/platform/packages/shared}/kbn-std/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-std/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/__snapshots__/ensure_no_unsafe_properties.test.ts.snap (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/__snapshots__/get.test.ts.snap (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/assert_never.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/deep_freeze.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/deep_freeze.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/ensure_deep_object.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/ensure_deep_object.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/ensure_no_unsafe_properties.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/ensure_no_unsafe_properties.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/get.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/get.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/get_flattened_object.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/get_flattened_object.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/is_internal_url.test.ts (98%) rename {packages => src/platform/packages/shared}/kbn-std/src/is_internal_url.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/iteration/for_each.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/iteration/for_each.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/iteration/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/iteration/map.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/iteration/map.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/iteration/observable.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/iteration/observable.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/iteration/test_helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/iteration/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/map_to_object.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/map_utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/map_utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/merge.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/merge.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/parse_next_url.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/parse_next_url.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/pick.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/pick.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/promise.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/promise.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/semaphore.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/semaphore.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/strip_version_qualifier.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/url.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/src/url.ts (100%) rename {packages => src/platform/packages/shared}/kbn-std/tsconfig.json (82%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b6b279c1290b4..2524ebf63c9ed 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -257,7 +257,6 @@ packages/kbn-shared-ux-utility @elastic/appex-sharedux packages/kbn-some-dev-log @elastic/kibana-operations packages/kbn-sort-package-json @elastic/kibana-operations packages/kbn-sort-predicates @elastic/kibana-visualizations -packages/kbn-std @elastic/kibana-core packages/kbn-stdio-dev-helpers @elastic/kibana-operations packages/kbn-storybook @elastic/kibana-operations packages/kbn-telemetry-tools @elastic/kibana-core @@ -585,6 +584,7 @@ src/platform/packages/shared/kbn-shared-svg @elastic/obs-ux-infra_services-team src/platform/packages/shared/kbn-sse-utils @elastic/obs-knowledge-team src/platform/packages/shared/kbn-sse-utils-client @elastic/obs-knowledge-team src/platform/packages/shared/kbn-sse-utils-server @elastic/obs-knowledge-team +src/platform/packages/shared/kbn-std @elastic/kibana-core src/platform/packages/shared/kbn-timerange @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-triggers-actions-ui-types @elastic/response-ops src/platform/packages/shared/kbn-try-in-console @elastic/search-kibana @@ -1891,10 +1891,10 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi /src/dev/eslint/security_eslint_rule_tests.ts @elastic/kibana-security /src/core/server/integration_tests/config/check_dynamic_config.test.ts @elastic/kibana-security /src/plugins/telemetry/server/config/telemetry_labels.ts @elastic/kibana-security -/packages/kbn-std/src/is_internal_url.test.ts @elastic/kibana-core @elastic/kibana-security -/packages/kbn-std/src/is_internal_url.ts @elastic/kibana-core @elastic/kibana-security -/packages/kbn-std/src/parse_next_url.test.ts @elastic/kibana-core @elastic/kibana-security -/packages/kbn-std/src/parse_next_url.ts @elastic/kibana-core @elastic/kibana-security +/src/platform/packages/shared/kbn-std/src/is_internal_url.test.ts @elastic/kibana-core @elastic/kibana-security +/src/platform/packages/shared/kbn-std/src/is_internal_url.ts @elastic/kibana-core @elastic/kibana-security +/src/platform/packages/shared/kbn-std/src/parse_next_url.test.ts @elastic/kibana-core @elastic/kibana-security +/src/platform/packages/shared/kbn-std/src/parse_next_url.ts @elastic/kibana-core @elastic/kibana-security /test/interactive_setup_api_integration/ @elastic/kibana-security /test/interactive_setup_functional/ @elastic/kibana-security /test/plugin_functional/plugins/hardening @elastic/kibana-security diff --git a/package.json b/package.json index 7531c62f74a0f..1dd0c06aadb53 100644 --- a/package.json +++ b/package.json @@ -943,7 +943,7 @@ "@kbn/state-containers-examples-plugin": "link:examples/state_containers_examples", "@kbn/status-plugin-a-plugin": "link:test/server_integration/plugins/status_plugin_a", "@kbn/status-plugin-b-plugin": "link:test/server_integration/plugins/status_plugin_b", - "@kbn/std": "link:packages/kbn-std", + "@kbn/std": "link:src/platform/packages/shared/kbn-std", "@kbn/streams-app-plugin": "link:x-pack/solutions/observability/plugins/streams_app", "@kbn/streams-plugin": "link:x-pack/solutions/observability/plugins/streams", "@kbn/streams-schema": "link:x-pack/packages/kbn-streams-schema", diff --git a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel index e47cd69dab0e8..25ee062d4c18d 100644 --- a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel +++ b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel @@ -32,7 +32,7 @@ webpack_cli( "//src/platform/packages/shared/kbn-crypto-browser", "//src/platform/packages/shared/kbn-es-query", "//src/platform/packages/shared/kbn-search-errors", - "//packages/kbn-std", + "//src/platform/packages/shared/kbn-std", "//packages/kbn-safer-lodash-set", "//packages/kbn-peggy", "//packages/kbn-peggy-loader", diff --git a/packages/kbn-std/BUILD.bazel b/src/platform/packages/shared/kbn-std/BUILD.bazel similarity index 100% rename from packages/kbn-std/BUILD.bazel rename to src/platform/packages/shared/kbn-std/BUILD.bazel diff --git a/packages/kbn-std/README.md b/src/platform/packages/shared/kbn-std/README.md similarity index 100% rename from packages/kbn-std/README.md rename to src/platform/packages/shared/kbn-std/README.md diff --git a/packages/kbn-std/index.ts b/src/platform/packages/shared/kbn-std/index.ts similarity index 100% rename from packages/kbn-std/index.ts rename to src/platform/packages/shared/kbn-std/index.ts diff --git a/packages/kbn-std/jest.config.js b/src/platform/packages/shared/kbn-std/jest.config.js similarity index 85% rename from packages/kbn-std/jest.config.js rename to src/platform/packages/shared/kbn-std/jest.config.js index e24ea37abb5c3..c161cea12be7d 100644 --- a/packages/kbn-std/jest.config.js +++ b/src/platform/packages/shared/kbn-std/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-std'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-std'], }; diff --git a/packages/kbn-std/kibana.jsonc b/src/platform/packages/shared/kbn-std/kibana.jsonc similarity index 100% rename from packages/kbn-std/kibana.jsonc rename to src/platform/packages/shared/kbn-std/kibana.jsonc diff --git a/packages/kbn-std/package.json b/src/platform/packages/shared/kbn-std/package.json similarity index 100% rename from packages/kbn-std/package.json rename to src/platform/packages/shared/kbn-std/package.json diff --git a/packages/kbn-std/src/__snapshots__/ensure_no_unsafe_properties.test.ts.snap b/src/platform/packages/shared/kbn-std/src/__snapshots__/ensure_no_unsafe_properties.test.ts.snap similarity index 100% rename from packages/kbn-std/src/__snapshots__/ensure_no_unsafe_properties.test.ts.snap rename to src/platform/packages/shared/kbn-std/src/__snapshots__/ensure_no_unsafe_properties.test.ts.snap diff --git a/packages/kbn-std/src/__snapshots__/get.test.ts.snap b/src/platform/packages/shared/kbn-std/src/__snapshots__/get.test.ts.snap similarity index 100% rename from packages/kbn-std/src/__snapshots__/get.test.ts.snap rename to src/platform/packages/shared/kbn-std/src/__snapshots__/get.test.ts.snap diff --git a/packages/kbn-std/src/assert_never.ts b/src/platform/packages/shared/kbn-std/src/assert_never.ts similarity index 100% rename from packages/kbn-std/src/assert_never.ts rename to src/platform/packages/shared/kbn-std/src/assert_never.ts diff --git a/packages/kbn-std/src/deep_freeze.test.ts b/src/platform/packages/shared/kbn-std/src/deep_freeze.test.ts similarity index 100% rename from packages/kbn-std/src/deep_freeze.test.ts rename to src/platform/packages/shared/kbn-std/src/deep_freeze.test.ts diff --git a/packages/kbn-std/src/deep_freeze.ts b/src/platform/packages/shared/kbn-std/src/deep_freeze.ts similarity index 100% rename from packages/kbn-std/src/deep_freeze.ts rename to src/platform/packages/shared/kbn-std/src/deep_freeze.ts diff --git a/packages/kbn-std/src/ensure_deep_object.test.ts b/src/platform/packages/shared/kbn-std/src/ensure_deep_object.test.ts similarity index 100% rename from packages/kbn-std/src/ensure_deep_object.test.ts rename to src/platform/packages/shared/kbn-std/src/ensure_deep_object.test.ts diff --git a/packages/kbn-std/src/ensure_deep_object.ts b/src/platform/packages/shared/kbn-std/src/ensure_deep_object.ts similarity index 100% rename from packages/kbn-std/src/ensure_deep_object.ts rename to src/platform/packages/shared/kbn-std/src/ensure_deep_object.ts diff --git a/packages/kbn-std/src/ensure_no_unsafe_properties.test.ts b/src/platform/packages/shared/kbn-std/src/ensure_no_unsafe_properties.test.ts similarity index 100% rename from packages/kbn-std/src/ensure_no_unsafe_properties.test.ts rename to src/platform/packages/shared/kbn-std/src/ensure_no_unsafe_properties.test.ts diff --git a/packages/kbn-std/src/ensure_no_unsafe_properties.ts b/src/platform/packages/shared/kbn-std/src/ensure_no_unsafe_properties.ts similarity index 100% rename from packages/kbn-std/src/ensure_no_unsafe_properties.ts rename to src/platform/packages/shared/kbn-std/src/ensure_no_unsafe_properties.ts diff --git a/packages/kbn-std/src/get.test.ts b/src/platform/packages/shared/kbn-std/src/get.test.ts similarity index 100% rename from packages/kbn-std/src/get.test.ts rename to src/platform/packages/shared/kbn-std/src/get.test.ts diff --git a/packages/kbn-std/src/get.ts b/src/platform/packages/shared/kbn-std/src/get.ts similarity index 100% rename from packages/kbn-std/src/get.ts rename to src/platform/packages/shared/kbn-std/src/get.ts diff --git a/packages/kbn-std/src/get_flattened_object.test.ts b/src/platform/packages/shared/kbn-std/src/get_flattened_object.test.ts similarity index 100% rename from packages/kbn-std/src/get_flattened_object.test.ts rename to src/platform/packages/shared/kbn-std/src/get_flattened_object.test.ts diff --git a/packages/kbn-std/src/get_flattened_object.ts b/src/platform/packages/shared/kbn-std/src/get_flattened_object.ts similarity index 100% rename from packages/kbn-std/src/get_flattened_object.ts rename to src/platform/packages/shared/kbn-std/src/get_flattened_object.ts diff --git a/packages/kbn-std/src/is_internal_url.test.ts b/src/platform/packages/shared/kbn-std/src/is_internal_url.test.ts similarity index 98% rename from packages/kbn-std/src/is_internal_url.test.ts rename to src/platform/packages/shared/kbn-std/src/is_internal_url.test.ts index 54afc034ffa36..487137d6a27a0 100644 --- a/packages/kbn-std/src/is_internal_url.test.ts +++ b/src/platform/packages/shared/kbn-std/src/is_internal_url.test.ts @@ -54,12 +54,12 @@ describe('isInternalURL', () => { }); it('should return `true` if relative path does not escape base path', () => { - const href = `${basePath}/app/kibana/../../management`; + const href = `${basePath}/app/kibana/../../../../../management`; expect(isInternalURL(href, basePath)).toBe(true); }); it('should return `false` if relative path escapes base path', () => { - const href = `${basePath}/app/kibana/../../../management`; + const href = `${basePath}/app/kibana/../../../../../../management`; expect(isInternalURL(href, basePath)).toBe(false); }); diff --git a/packages/kbn-std/src/is_internal_url.ts b/src/platform/packages/shared/kbn-std/src/is_internal_url.ts similarity index 100% rename from packages/kbn-std/src/is_internal_url.ts rename to src/platform/packages/shared/kbn-std/src/is_internal_url.ts diff --git a/packages/kbn-std/src/iteration/for_each.test.ts b/src/platform/packages/shared/kbn-std/src/iteration/for_each.test.ts similarity index 100% rename from packages/kbn-std/src/iteration/for_each.test.ts rename to src/platform/packages/shared/kbn-std/src/iteration/for_each.test.ts diff --git a/packages/kbn-std/src/iteration/for_each.ts b/src/platform/packages/shared/kbn-std/src/iteration/for_each.ts similarity index 100% rename from packages/kbn-std/src/iteration/for_each.ts rename to src/platform/packages/shared/kbn-std/src/iteration/for_each.ts diff --git a/packages/kbn-std/src/iteration/index.ts b/src/platform/packages/shared/kbn-std/src/iteration/index.ts similarity index 100% rename from packages/kbn-std/src/iteration/index.ts rename to src/platform/packages/shared/kbn-std/src/iteration/index.ts diff --git a/packages/kbn-std/src/iteration/map.test.ts b/src/platform/packages/shared/kbn-std/src/iteration/map.test.ts similarity index 100% rename from packages/kbn-std/src/iteration/map.test.ts rename to src/platform/packages/shared/kbn-std/src/iteration/map.test.ts diff --git a/packages/kbn-std/src/iteration/map.ts b/src/platform/packages/shared/kbn-std/src/iteration/map.ts similarity index 100% rename from packages/kbn-std/src/iteration/map.ts rename to src/platform/packages/shared/kbn-std/src/iteration/map.ts diff --git a/packages/kbn-std/src/iteration/observable.test.ts b/src/platform/packages/shared/kbn-std/src/iteration/observable.test.ts similarity index 100% rename from packages/kbn-std/src/iteration/observable.test.ts rename to src/platform/packages/shared/kbn-std/src/iteration/observable.test.ts diff --git a/packages/kbn-std/src/iteration/observable.ts b/src/platform/packages/shared/kbn-std/src/iteration/observable.ts similarity index 100% rename from packages/kbn-std/src/iteration/observable.ts rename to src/platform/packages/shared/kbn-std/src/iteration/observable.ts diff --git a/packages/kbn-std/src/iteration/test_helpers.ts b/src/platform/packages/shared/kbn-std/src/iteration/test_helpers.ts similarity index 100% rename from packages/kbn-std/src/iteration/test_helpers.ts rename to src/platform/packages/shared/kbn-std/src/iteration/test_helpers.ts diff --git a/packages/kbn-std/src/iteration/types.ts b/src/platform/packages/shared/kbn-std/src/iteration/types.ts similarity index 100% rename from packages/kbn-std/src/iteration/types.ts rename to src/platform/packages/shared/kbn-std/src/iteration/types.ts diff --git a/packages/kbn-std/src/map_to_object.ts b/src/platform/packages/shared/kbn-std/src/map_to_object.ts similarity index 100% rename from packages/kbn-std/src/map_to_object.ts rename to src/platform/packages/shared/kbn-std/src/map_to_object.ts diff --git a/packages/kbn-std/src/map_utils.test.ts b/src/platform/packages/shared/kbn-std/src/map_utils.test.ts similarity index 100% rename from packages/kbn-std/src/map_utils.test.ts rename to src/platform/packages/shared/kbn-std/src/map_utils.test.ts diff --git a/packages/kbn-std/src/map_utils.ts b/src/platform/packages/shared/kbn-std/src/map_utils.ts similarity index 100% rename from packages/kbn-std/src/map_utils.ts rename to src/platform/packages/shared/kbn-std/src/map_utils.ts diff --git a/packages/kbn-std/src/merge.test.ts b/src/platform/packages/shared/kbn-std/src/merge.test.ts similarity index 100% rename from packages/kbn-std/src/merge.test.ts rename to src/platform/packages/shared/kbn-std/src/merge.test.ts diff --git a/packages/kbn-std/src/merge.ts b/src/platform/packages/shared/kbn-std/src/merge.ts similarity index 100% rename from packages/kbn-std/src/merge.ts rename to src/platform/packages/shared/kbn-std/src/merge.ts diff --git a/packages/kbn-std/src/parse_next_url.test.ts b/src/platform/packages/shared/kbn-std/src/parse_next_url.test.ts similarity index 100% rename from packages/kbn-std/src/parse_next_url.test.ts rename to src/platform/packages/shared/kbn-std/src/parse_next_url.test.ts diff --git a/packages/kbn-std/src/parse_next_url.ts b/src/platform/packages/shared/kbn-std/src/parse_next_url.ts similarity index 100% rename from packages/kbn-std/src/parse_next_url.ts rename to src/platform/packages/shared/kbn-std/src/parse_next_url.ts diff --git a/packages/kbn-std/src/pick.test.ts b/src/platform/packages/shared/kbn-std/src/pick.test.ts similarity index 100% rename from packages/kbn-std/src/pick.test.ts rename to src/platform/packages/shared/kbn-std/src/pick.test.ts diff --git a/packages/kbn-std/src/pick.ts b/src/platform/packages/shared/kbn-std/src/pick.ts similarity index 100% rename from packages/kbn-std/src/pick.ts rename to src/platform/packages/shared/kbn-std/src/pick.ts diff --git a/packages/kbn-std/src/promise.test.ts b/src/platform/packages/shared/kbn-std/src/promise.test.ts similarity index 100% rename from packages/kbn-std/src/promise.test.ts rename to src/platform/packages/shared/kbn-std/src/promise.test.ts diff --git a/packages/kbn-std/src/promise.ts b/src/platform/packages/shared/kbn-std/src/promise.ts similarity index 100% rename from packages/kbn-std/src/promise.ts rename to src/platform/packages/shared/kbn-std/src/promise.ts diff --git a/packages/kbn-std/src/semaphore.test.ts b/src/platform/packages/shared/kbn-std/src/semaphore.test.ts similarity index 100% rename from packages/kbn-std/src/semaphore.test.ts rename to src/platform/packages/shared/kbn-std/src/semaphore.test.ts diff --git a/packages/kbn-std/src/semaphore.ts b/src/platform/packages/shared/kbn-std/src/semaphore.ts similarity index 100% rename from packages/kbn-std/src/semaphore.ts rename to src/platform/packages/shared/kbn-std/src/semaphore.ts diff --git a/packages/kbn-std/src/strip_version_qualifier.ts b/src/platform/packages/shared/kbn-std/src/strip_version_qualifier.ts similarity index 100% rename from packages/kbn-std/src/strip_version_qualifier.ts rename to src/platform/packages/shared/kbn-std/src/strip_version_qualifier.ts diff --git a/packages/kbn-std/src/url.test.ts b/src/platform/packages/shared/kbn-std/src/url.test.ts similarity index 100% rename from packages/kbn-std/src/url.test.ts rename to src/platform/packages/shared/kbn-std/src/url.test.ts diff --git a/packages/kbn-std/src/url.ts b/src/platform/packages/shared/kbn-std/src/url.ts similarity index 100% rename from packages/kbn-std/src/url.ts rename to src/platform/packages/shared/kbn-std/src/url.ts diff --git a/packages/kbn-std/tsconfig.json b/src/platform/packages/shared/kbn-std/tsconfig.json similarity index 82% rename from packages/kbn-std/tsconfig.json rename to src/platform/packages/shared/kbn-std/tsconfig.json index a293593c7b035..116d75b547c6c 100644 --- a/packages/kbn-std/tsconfig.json +++ b/src/platform/packages/shared/kbn-std/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 4f48fa2a73fe7..f42edcec3e597 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1870,8 +1870,8 @@ "@kbn/status-plugin-a-plugin/*": ["test/server_integration/plugins/status_plugin_a/*"], "@kbn/status-plugin-b-plugin": ["test/server_integration/plugins/status_plugin_b"], "@kbn/status-plugin-b-plugin/*": ["test/server_integration/plugins/status_plugin_b/*"], - "@kbn/std": ["packages/kbn-std"], - "@kbn/std/*": ["packages/kbn-std/*"], + "@kbn/std": ["src/platform/packages/shared/kbn-std"], + "@kbn/std/*": ["src/platform/packages/shared/kbn-std/*"], "@kbn/stdio-dev-helpers": ["packages/kbn-stdio-dev-helpers"], "@kbn/stdio-dev-helpers/*": ["packages/kbn-stdio-dev-helpers/*"], "@kbn/storybook": ["packages/kbn-storybook"], diff --git a/yarn.lock b/yarn.lock index 94cb7add4d8ec..fe0b51afb81f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7557,7 +7557,7 @@ version "0.0.0" uid "" -"@kbn/std@link:packages/kbn-std": +"@kbn/std@link:src/platform/packages/shared/kbn-std": version "0.0.0" uid "" From 4f54b5d7de5303c9c4cc1820a8e784849b8ad1f9 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:12:33 +0100 Subject: [PATCH 155/167] Relocating module `@kbn/telemetry-collection-manager-plugin` --- .eslintrc.js | 4 ++-- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../shared}/telemetry_collection_manager/README.md | 0 .../shared}/telemetry_collection_manager/common/index.ts | 0 .../shared}/telemetry_collection_manager/jest.config.js | 8 ++++---- .../shared}/telemetry_collection_manager/kibana.jsonc | 0 .../server/cache/cache_manager.test.ts | 0 .../server/cache/cache_manager.ts | 0 .../telemetry_collection_manager/server/cache/index.ts | 0 .../server/encryption/encrypt.test.mocks.ts | 0 .../server/encryption/encrypt.test.ts | 0 .../server/encryption/encrypt.ts | 0 .../server/encryption/index.ts | 0 .../server/encryption/telemetry_jwks.ts | 0 .../shared}/telemetry_collection_manager/server/index.ts | 0 .../shared}/telemetry_collection_manager/server/mocks.ts | 0 .../telemetry_collection_manager/server/plugin.test.ts | 0 .../shared}/telemetry_collection_manager/server/plugin.ts | 0 .../server/telemetry_saved_objects_client.test.ts | 0 .../server/telemetry_saved_objects_client.ts | 0 .../shared}/telemetry_collection_manager/server/types.ts | 0 .../shared}/telemetry_collection_manager/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 26 files changed, 13 insertions(+), 13 deletions(-) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/README.md (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/jest.config.js (65%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/cache/cache_manager.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/cache/cache_manager.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/cache/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/encryption/encrypt.test.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/encryption/encrypt.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/encryption/encrypt.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/encryption/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/encryption/telemetry_jwks.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/telemetry_saved_objects_client.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/telemetry_saved_objects_client.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/server/types.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_collection_manager/tsconfig.json (83%) diff --git a/.eslintrc.js b/.eslintrc.js index e0b0150179827..4e926b52af4a2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1926,7 +1926,7 @@ module.exports = { 'src/platform/plugins/private/kibana_usage_collection/**', 'src/plugins/usage_collection/**', 'src/plugins/telemetry/**', - 'src/plugins/telemetry_collection_manager/**', + 'src/platform/plugins/shared/telemetry_collection_manager/**', 'src/plugins/telemetry_management_section/**', 'x-pack/plugins/telemetry_collection_xpack/**', ], @@ -1950,7 +1950,7 @@ module.exports = { 'src/platform/plugins/private/kibana_usage_collection/**', 'src/plugins/usage_collection/**', 'src/plugins/telemetry/**', - 'src/plugins/telemetry_collection_manager/**', + 'src/platform/plugins/shared/telemetry_collection_manager/**', 'src/plugins/telemetry_management_section/**', 'x-pack/plugins/telemetry_collection_xpack/**', ], diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2524ebf63c9ed..88083b19eb099 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -656,6 +656,7 @@ src/platform/plugins/shared/saved_objects_tagging_oss @elastic/appex-sharedux src/platform/plugins/shared/saved_search @elastic/kibana-data-discovery src/platform/plugins/shared/screenshot_mode @elastic/appex-sharedux src/platform/plugins/shared/share @elastic/appex-sharedux +src/platform/plugins/shared/telemetry_collection_manager @elastic/kibana-core src/platform/plugins/shared/ui_actions @elastic/appex-sharedux src/platform/plugins/shared/ui_actions_enhanced @elastic/appex-sharedux src/platform/plugins/shared/unified_doc_viewer @elastic/kibana-data-discovery @@ -675,7 +676,6 @@ src/plugins/event_annotation_listing @elastic/kibana-visualizations src/plugins/expressions @elastic/kibana-visualizations src/plugins/interactive_setup @elastic/kibana-security src/plugins/telemetry @elastic/kibana-core -src/plugins/telemetry_collection_manager @elastic/kibana-core src/plugins/telemetry_management_section @elastic/kibana-core src/plugins/unified_search @elastic/kibana-visualizations src/plugins/url_forwarding @elastic/kibana-visualizations diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 63a7393a0cc91..8381afc4d6eeb 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -321,7 +321,7 @@ generating deep links to other apps using locators, and creating short URLs. |Telemetry allows Kibana features to have usage tracked in the wild. The general term "telemetry" refers to multiple things: -|{kib-repo}blob/{branch}/src/plugins/telemetry_collection_manager/README.md[telemetryCollectionManager] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/telemetry_collection_manager/README.md[telemetryCollectionManager] |Telemetry's collection manager to go through all the telemetry sources when fetching it before reporting. diff --git a/package.json b/package.json index 1dd0c06aadb53..b348841f466b7 100644 --- a/package.json +++ b/package.json @@ -952,7 +952,7 @@ "@kbn/task-manager-fixture-plugin": "link:x-pack/test/alerting_api_integration/common/plugins/task_manager_fixture", "@kbn/task-manager-performance-plugin": "link:x-pack/test/plugin_api_perf/plugins/task_manager_performance", "@kbn/task-manager-plugin": "link:x-pack/platform/plugins/shared/task_manager", - "@kbn/telemetry-collection-manager-plugin": "link:src/plugins/telemetry_collection_manager", + "@kbn/telemetry-collection-manager-plugin": "link:src/platform/plugins/shared/telemetry_collection_manager", "@kbn/telemetry-collection-xpack-plugin": "link:x-pack/plugins/telemetry_collection_xpack", "@kbn/telemetry-management-section-plugin": "link:src/plugins/telemetry_management_section", "@kbn/telemetry-plugin": "link:src/plugins/telemetry", diff --git a/src/plugins/telemetry_collection_manager/README.md b/src/platform/plugins/shared/telemetry_collection_manager/README.md similarity index 100% rename from src/plugins/telemetry_collection_manager/README.md rename to src/platform/plugins/shared/telemetry_collection_manager/README.md diff --git a/src/plugins/telemetry_collection_manager/common/index.ts b/src/platform/plugins/shared/telemetry_collection_manager/common/index.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/common/index.ts rename to src/platform/plugins/shared/telemetry_collection_manager/common/index.ts diff --git a/src/plugins/telemetry_collection_manager/jest.config.js b/src/platform/plugins/shared/telemetry_collection_manager/jest.config.js similarity index 65% rename from src/plugins/telemetry_collection_manager/jest.config.js rename to src/platform/plugins/shared/telemetry_collection_manager/jest.config.js index db931f7509983..003a7eb05d56d 100644 --- a/src/plugins/telemetry_collection_manager/jest.config.js +++ b/src/platform/plugins/shared/telemetry_collection_manager/jest.config.js @@ -9,12 +9,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/telemetry_collection_manager'], + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/telemetry_collection_manager'], coverageDirectory: - '/target/kibana-coverage/jest/src/plugins/telemetry_collection_manager', + '/target/kibana-coverage/jest/src/platform/plugins/shared/telemetry_collection_manager', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/telemetry_collection_manager/{common,server}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/telemetry_collection_manager/{common,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/telemetry_collection_manager/kibana.jsonc b/src/platform/plugins/shared/telemetry_collection_manager/kibana.jsonc similarity index 100% rename from src/plugins/telemetry_collection_manager/kibana.jsonc rename to src/platform/plugins/shared/telemetry_collection_manager/kibana.jsonc diff --git a/src/plugins/telemetry_collection_manager/server/cache/cache_manager.test.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/cache/cache_manager.test.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/cache/cache_manager.test.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/cache/cache_manager.test.ts diff --git a/src/plugins/telemetry_collection_manager/server/cache/cache_manager.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/cache/cache_manager.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/cache/cache_manager.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/cache/cache_manager.ts diff --git a/src/plugins/telemetry_collection_manager/server/cache/index.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/cache/index.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/cache/index.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/cache/index.ts diff --git a/src/plugins/telemetry_collection_manager/server/encryption/encrypt.test.mocks.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/encryption/encrypt.test.mocks.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/encryption/encrypt.test.mocks.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/encryption/encrypt.test.mocks.ts diff --git a/src/plugins/telemetry_collection_manager/server/encryption/encrypt.test.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/encryption/encrypt.test.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/encryption/encrypt.test.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/encryption/encrypt.test.ts diff --git a/src/plugins/telemetry_collection_manager/server/encryption/encrypt.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/encryption/encrypt.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/encryption/encrypt.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/encryption/encrypt.ts diff --git a/src/plugins/telemetry_collection_manager/server/encryption/index.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/encryption/index.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/encryption/index.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/encryption/index.ts diff --git a/src/plugins/telemetry_collection_manager/server/encryption/telemetry_jwks.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/encryption/telemetry_jwks.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/encryption/telemetry_jwks.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/encryption/telemetry_jwks.ts diff --git a/src/plugins/telemetry_collection_manager/server/index.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/index.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/index.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/index.ts diff --git a/src/plugins/telemetry_collection_manager/server/mocks.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/mocks.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/mocks.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/mocks.ts diff --git a/src/plugins/telemetry_collection_manager/server/plugin.test.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/plugin.test.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/plugin.test.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/plugin.test.ts diff --git a/src/plugins/telemetry_collection_manager/server/plugin.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/plugin.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/plugin.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/plugin.ts diff --git a/src/plugins/telemetry_collection_manager/server/telemetry_saved_objects_client.test.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/telemetry_saved_objects_client.test.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/telemetry_saved_objects_client.test.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/telemetry_saved_objects_client.test.ts diff --git a/src/plugins/telemetry_collection_manager/server/telemetry_saved_objects_client.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/telemetry_saved_objects_client.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/telemetry_saved_objects_client.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/telemetry_saved_objects_client.ts diff --git a/src/plugins/telemetry_collection_manager/server/types.ts b/src/platform/plugins/shared/telemetry_collection_manager/server/types.ts similarity index 100% rename from src/plugins/telemetry_collection_manager/server/types.ts rename to src/platform/plugins/shared/telemetry_collection_manager/server/types.ts diff --git a/src/plugins/telemetry_collection_manager/tsconfig.json b/src/platform/plugins/shared/telemetry_collection_manager/tsconfig.json similarity index 83% rename from src/plugins/telemetry_collection_manager/tsconfig.json rename to src/platform/plugins/shared/telemetry_collection_manager/tsconfig.json index f201a8875c8dc..9eb0922a0e9b4 100644 --- a/src/plugins/telemetry_collection_manager/tsconfig.json +++ b/src/platform/plugins/shared/telemetry_collection_manager/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true diff --git a/tsconfig.base.json b/tsconfig.base.json index f42edcec3e597..1e5a6619242da 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1894,8 +1894,8 @@ "@kbn/task-manager-performance-plugin/*": ["x-pack/test/plugin_api_perf/plugins/task_manager_performance/*"], "@kbn/task-manager-plugin": ["x-pack/platform/plugins/shared/task_manager"], "@kbn/task-manager-plugin/*": ["x-pack/platform/plugins/shared/task_manager/*"], - "@kbn/telemetry-collection-manager-plugin": ["src/plugins/telemetry_collection_manager"], - "@kbn/telemetry-collection-manager-plugin/*": ["src/plugins/telemetry_collection_manager/*"], + "@kbn/telemetry-collection-manager-plugin": ["src/platform/plugins/shared/telemetry_collection_manager"], + "@kbn/telemetry-collection-manager-plugin/*": ["src/platform/plugins/shared/telemetry_collection_manager/*"], "@kbn/telemetry-collection-xpack-plugin": ["x-pack/plugins/telemetry_collection_xpack"], "@kbn/telemetry-collection-xpack-plugin/*": ["x-pack/plugins/telemetry_collection_xpack/*"], "@kbn/telemetry-management-section-plugin": ["src/plugins/telemetry_management_section"], diff --git a/yarn.lock b/yarn.lock index fe0b51afb81f4..fcc735bcad45c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7605,7 +7605,7 @@ version "0.0.0" uid "" -"@kbn/telemetry-collection-manager-plugin@link:src/plugins/telemetry_collection_manager": +"@kbn/telemetry-collection-manager-plugin@link:src/platform/plugins/shared/telemetry_collection_manager": version "0.0.0" uid "" From 93aab4bfeedde668d572e401456bd7dae7323322 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:13:24 +0100 Subject: [PATCH 156/167] Relocating module `@kbn/telemetry-collection-xpack-plugin` --- .eslintrc.js | 4 ++-- .github/CODEOWNERS | 4 ++-- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- src/plugins/telemetry/schema/README.md | 2 +- tsconfig.base.json | 4 ++-- x-pack/.telemetryrc.json | 12 ++++++------ .../private}/telemetry_collection_xpack/README.md | 0 .../telemetry_collection_xpack/jest.config.js | 8 ++++---- .../private}/telemetry_collection_xpack/kibana.jsonc | 0 .../telemetry_collection_xpack/schema/README.md | 6 +++--- .../schema/xpack_monitoring.json | 0 .../schema/xpack_observability.json | 0 .../schema/xpack_platform.json | 0 .../schema/xpack_plugins.json | 0 .../schema/xpack_root.json | 0 .../schema/xpack_search.json | 0 .../schema/xpack_security.json | 0 .../telemetry_collection_xpack/server/index.ts | 0 .../telemetry_collection_xpack/server/plugin.ts | 0 .../__snapshots__/get_stats_with_xpack.test.ts.snap | 0 .../server/telemetry_collection/constants.ts | 0 .../server/telemetry_collection/get_license.test.ts | 0 .../server/telemetry_collection/get_license.ts | 0 .../get_stats_with_xpack.test.ts | 0 .../telemetry_collection/get_stats_with_xpack.ts | 0 .../server/telemetry_collection/get_xpack.test.ts | 0 .../server/telemetry_collection/get_xpack.ts | 0 .../server/telemetry_collection/index.ts | 0 .../telemetry_collection/is_cluster_opted_in.test.ts | 0 .../telemetry_collection/is_cluster_opted_in.ts | 0 .../telemetry_collection_xpack/tsconfig.json | 4 ++-- yarn.lock | 2 +- 33 files changed, 25 insertions(+), 25 deletions(-) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/README.md (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/jest.config.js (51%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/schema/README.md (74%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/schema/xpack_monitoring.json (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/schema/xpack_observability.json (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/schema/xpack_platform.json (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/schema/xpack_plugins.json (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/schema/xpack_root.json (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/schema/xpack_search.json (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/schema/xpack_security.json (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/server/telemetry_collection/__snapshots__/get_stats_with_xpack.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/server/telemetry_collection/constants.ts (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/server/telemetry_collection/get_license.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/server/telemetry_collection/get_license.ts (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/server/telemetry_collection/get_stats_with_xpack.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/server/telemetry_collection/get_stats_with_xpack.ts (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/server/telemetry_collection/get_xpack.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/server/telemetry_collection/get_xpack.ts (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/server/telemetry_collection/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/server/telemetry_collection/is_cluster_opted_in.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/server/telemetry_collection/is_cluster_opted_in.ts (100%) rename x-pack/{plugins => platform/plugins/private}/telemetry_collection_xpack/tsconfig.json (81%) diff --git a/.eslintrc.js b/.eslintrc.js index 4e926b52af4a2..2d873da571afe 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1928,7 +1928,7 @@ module.exports = { 'src/plugins/telemetry/**', 'src/platform/plugins/shared/telemetry_collection_manager/**', 'src/plugins/telemetry_management_section/**', - 'x-pack/plugins/telemetry_collection_xpack/**', + 'x-pack/platform/plugins/private/telemetry_collection_xpack/**', ], rules: { '@typescript-eslint/no-explicit-any': 'error', @@ -1952,7 +1952,7 @@ module.exports = { 'src/plugins/telemetry/**', 'src/platform/plugins/shared/telemetry_collection_manager/**', 'src/plugins/telemetry_management_section/**', - 'x-pack/plugins/telemetry_collection_xpack/**', + 'x-pack/platform/plugins/private/telemetry_collection_xpack/**', ], rules: { '@typescript-eslint/prefer-ts-expect-error': 'error', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 88083b19eb099..b8de489417f87 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -855,6 +855,7 @@ x-pack/platform/plugins/private/rollup @elastic/kibana-management x-pack/platform/plugins/private/runtime_fields @elastic/kibana-management x-pack/platform/plugins/private/saved_objects_tagging @elastic/appex-sharedux x-pack/platform/plugins/private/snapshot_restore @elastic/kibana-management +x-pack/platform/plugins/private/telemetry_collection_xpack @elastic/kibana-core x-pack/platform/plugins/private/transform @elastic/ml-ui x-pack/platform/plugins/private/translations @elastic/kibana-localization x-pack/platform/plugins/private/watcher @elastic/kibana-management @@ -903,7 +904,6 @@ x-pack/plugins/graph @elastic/kibana-visualizations x-pack/plugins/lens @elastic/kibana-visualizations x-pack/plugins/security @elastic/kibana-security x-pack/plugins/spaces @elastic/kibana-security -x-pack/plugins/telemetry_collection_xpack @elastic/kibana-core x-pack/plugins/upgrade_assistant @elastic/kibana-core x-pack/solutions/observability/packages/alert_details @elastic/obs-ux-management-team x-pack/solutions/observability/packages/alerting_test_data @elastic/obs-ux-management-team @@ -1845,7 +1845,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /.telemetryrc.json @elastic/kibana-core /x-pack/.telemetryrc.json @elastic/kibana-core /src/plugins/telemetry/schema/ @elastic/kibana-core -/x-pack/plugins/telemetry_collection_xpack/schema/ @elastic/kibana-core +/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/ @elastic/kibana-core x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/config.ts @elastic/kibana-core @shahinakmal # Kibana Localization diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 8381afc4d6eeb..af47382f08455 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -931,7 +931,7 @@ in their infrastructure. |The task manager is a generic system for running background tasks. -|{kib-repo}blob/{branch}/x-pack/plugins/telemetry_collection_xpack/README.md[telemetryCollectionXpack] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/telemetry_collection_xpack/README.md[telemetryCollectionXpack] |Gathers all usage collection, retrieving them from both: OSS and X-Pack plugins. diff --git a/package.json b/package.json index b348841f466b7..8adbfe07ad801 100644 --- a/package.json +++ b/package.json @@ -953,7 +953,7 @@ "@kbn/task-manager-performance-plugin": "link:x-pack/test/plugin_api_perf/plugins/task_manager_performance", "@kbn/task-manager-plugin": "link:x-pack/platform/plugins/shared/task_manager", "@kbn/telemetry-collection-manager-plugin": "link:src/platform/plugins/shared/telemetry_collection_manager", - "@kbn/telemetry-collection-xpack-plugin": "link:x-pack/plugins/telemetry_collection_xpack", + "@kbn/telemetry-collection-xpack-plugin": "link:x-pack/platform/plugins/private/telemetry_collection_xpack", "@kbn/telemetry-management-section-plugin": "link:src/plugins/telemetry_management_section", "@kbn/telemetry-plugin": "link:src/plugins/telemetry", "@kbn/telemetry-test-plugin": "link:test/plugin_functional/plugins/telemetry", diff --git a/src/plugins/telemetry/schema/README.md b/src/plugins/telemetry/schema/README.md index 38212d73c2592..13301a45da878 100644 --- a/src/plugins/telemetry/schema/README.md +++ b/src/plugins/telemetry/schema/README.md @@ -16,4 +16,4 @@ NOTE: Despite its similarities to ES mappings, the intention of these files is n ## Testing -Functional tests are defined at `x-pack/test/api_integration/apis/telemetry/telemetry_local.ts`. They merge all files and [the x-pack counterparts](../../../../x-pack/plugins/telemetry_collection_xpack/schema), and validates the actual output of the telemetry endpoint against the final schema. \ No newline at end of file +Functional tests are defined at `x-pack/test/api_integration/apis/telemetry/telemetry_local.ts`. They merge all files and [the x-pack counterparts](../../../../x-pack/platform/plugins/private/telemetry_collection_xpack/schema), and validates the actual output of the telemetry endpoint against the final schema. \ No newline at end of file diff --git a/tsconfig.base.json b/tsconfig.base.json index 1e5a6619242da..a7a3765e0d05f 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1896,8 +1896,8 @@ "@kbn/task-manager-plugin/*": ["x-pack/platform/plugins/shared/task_manager/*"], "@kbn/telemetry-collection-manager-plugin": ["src/platform/plugins/shared/telemetry_collection_manager"], "@kbn/telemetry-collection-manager-plugin/*": ["src/platform/plugins/shared/telemetry_collection_manager/*"], - "@kbn/telemetry-collection-xpack-plugin": ["x-pack/plugins/telemetry_collection_xpack"], - "@kbn/telemetry-collection-xpack-plugin/*": ["x-pack/plugins/telemetry_collection_xpack/*"], + "@kbn/telemetry-collection-xpack-plugin": ["x-pack/platform/plugins/private/telemetry_collection_xpack"], + "@kbn/telemetry-collection-xpack-plugin/*": ["x-pack/platform/plugins/private/telemetry_collection_xpack/*"], "@kbn/telemetry-management-section-plugin": ["src/plugins/telemetry_management_section"], "@kbn/telemetry-management-section-plugin/*": ["src/plugins/telemetry_management_section/*"], "@kbn/telemetry-plugin": ["src/plugins/telemetry"], diff --git a/x-pack/.telemetryrc.json b/x-pack/.telemetryrc.json index 870b4d1de4c6a..cfa47ffe81da0 100644 --- a/x-pack/.telemetryrc.json +++ b/x-pack/.telemetryrc.json @@ -1,33 +1,33 @@ [ { - "output": "plugins/telemetry_collection_xpack/schema/xpack_plugins.json", + "output": "platform/plugins/private/telemetry_collection_xpack/schema/xpack_plugins.json", "root": "plugins/", "exclude": [ "platform/plugins/private/monitoring/server/telemetry_collection/" ] }, { - "output": "plugins/telemetry_collection_xpack/schema/xpack_monitoring.json", + "output": "platform/plugins/private/telemetry_collection_xpack/schema/xpack_monitoring.json", "root": "platform/plugins/private/monitoring/server/telemetry_collection/", "exclude": [] }, { - "output": "plugins/telemetry_collection_xpack/schema/xpack_platform.json", + "output": "platform/plugins/private/telemetry_collection_xpack/schema/xpack_platform.json", "root": "platform/", "exclude": [] }, { - "output": "plugins/telemetry_collection_xpack/schema/xpack_observability.json", + "output": "platform/plugins/private/telemetry_collection_xpack/schema/xpack_observability.json", "root": "solutions/observability", "exclude": [] }, { - "output": "plugins/telemetry_collection_xpack/schema/xpack_search.json", + "output": "platform/plugins/private/telemetry_collection_xpack/schema/xpack_search.json", "root": "solutions/search", "exclude": [] }, { - "output": "plugins/telemetry_collection_xpack/schema/xpack_security.json", + "output": "platform/plugins/private/telemetry_collection_xpack/schema/xpack_security.json", "root": "solutions/security", "exclude": [] } diff --git a/x-pack/plugins/telemetry_collection_xpack/README.md b/x-pack/platform/plugins/private/telemetry_collection_xpack/README.md similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/README.md rename to x-pack/platform/plugins/private/telemetry_collection_xpack/README.md diff --git a/x-pack/plugins/telemetry_collection_xpack/jest.config.js b/x-pack/platform/plugins/private/telemetry_collection_xpack/jest.config.js similarity index 51% rename from x-pack/plugins/telemetry_collection_xpack/jest.config.js rename to x-pack/platform/plugins/private/telemetry_collection_xpack/jest.config.js index 94f0906c2149e..4e4bed3de1ad1 100644 --- a/x-pack/plugins/telemetry_collection_xpack/jest.config.js +++ b/x-pack/platform/plugins/private/telemetry_collection_xpack/jest.config.js @@ -7,10 +7,10 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/telemetry_collection_xpack'], + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/private/telemetry_collection_xpack'], coverageDirectory: - '/target/kibana-coverage/jest/x-pack/plugins/telemetry_collection_xpack', + '/target/kibana-coverage/jest/x-pack/platform/plugins/private/telemetry_collection_xpack', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/telemetry_collection_xpack/server/**/*.{ts,tsx}'], + collectCoverageFrom: ['/x-pack/platform/plugins/private/telemetry_collection_xpack/server/**/*.{ts,tsx}'], }; diff --git a/x-pack/plugins/telemetry_collection_xpack/kibana.jsonc b/x-pack/platform/plugins/private/telemetry_collection_xpack/kibana.jsonc similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/kibana.jsonc rename to x-pack/platform/plugins/private/telemetry_collection_xpack/kibana.jsonc diff --git a/x-pack/plugins/telemetry_collection_xpack/schema/README.md b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/README.md similarity index 74% rename from x-pack/plugins/telemetry_collection_xpack/schema/README.md rename to x-pack/platform/plugins/private/telemetry_collection_xpack/schema/README.md index 80040d1ec387b..6cb825336aca5 100644 --- a/x-pack/plugins/telemetry_collection_xpack/schema/README.md +++ b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/README.md @@ -1,6 +1,6 @@ # X-Pack Telemetry Schemas -This is an extension of the [OSS Telemetry Schemas](../../../../src/plugins/telemetry/schema) to add the X-Pack-related data. The payloads described in these `.json` files must be merged to the OSS ones to get the structure of the full payload sent to the Remote Telemetry Service. All the files follow the schema convention as defined in the `usage_collection` plugin and `@kbn/telemetry-tools`. +This is an extension of the [OSS Telemetry Schemas](../../../../../../src/plugins/telemetry/schema) to add the X-Pack-related data. The payloads described in these `.json` files must be merged to the OSS ones to get the structure of the full payload sent to the Remote Telemetry Service. All the files follow the schema convention as defined in the `usage_collection` plugin and `@kbn/telemetry-tools`. There are currently 7 files: @@ -8,7 +8,7 @@ There are currently 7 files: Manually maintained for now because the frequency it changes is expected to be pretty low. - `xpack_plugins.json`: The X-Pack related schema for the content that will be nested in `stack_stats.kibana.plugins`. It is automatically generated by `@kbn/telemetry-tools` based on the `schema` property provided by all the registered Usage Collectors via the `usageCollection.makeUsageCollector` API. - More details in the [Schema field](../../usage_collection/README.md#schema-field) chapter in the UsageCollection's docs. + More details in the [Schema field](../../../../usage_collection/README.md#schema-field) chapter in the UsageCollection's docs. - `xpack_platform.json`: Same as `xpack_plugins.json` but for collectors defined in `/x-pack/platform/*`. - `xpack_observability.json`: Same as `xpack_plugins.json` but for collectors defined in `/x-pack/solutions/observability/*`. - `xpack_search.json`: Same as `xpack_plugins.json` but for collectors defined in `/x-pack/solutions/search/*`. @@ -19,4 +19,4 @@ NOTE: Despite its similarities to ES mappings, the intention of these files is n ## Testing -Functional tests are defined at `x-pack/test/api_integration/apis/telemetry/telemetry_local.ts`. They merge these files (+ the [OSS definitions](../../../../src/plugins/telemetry/schema)), and validates the actual output of the telemetry endpoint against the final schema. \ No newline at end of file +Functional tests are defined at `x-pack/test/api_integration/apis/telemetry/telemetry_local.ts`. They merge these files (+ the [OSS definitions](../../../../../../src/plugins/telemetry/schema)), and validates the actual output of the telemetry endpoint against the final schema. \ No newline at end of file diff --git a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_monitoring.json b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_monitoring.json similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/schema/xpack_monitoring.json rename to x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_monitoring.json diff --git a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_observability.json b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_observability.json similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/schema/xpack_observability.json rename to x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_observability.json diff --git a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_platform.json b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_platform.json similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/schema/xpack_platform.json rename to x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_platform.json diff --git a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_plugins.json similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json rename to x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_plugins.json diff --git a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_root.json b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_root.json similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/schema/xpack_root.json rename to x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_root.json diff --git a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_search.json b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_search.json similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/schema/xpack_search.json rename to x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_search.json diff --git a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_security.json b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_security.json similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/schema/xpack_security.json rename to x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_security.json diff --git a/x-pack/plugins/telemetry_collection_xpack/server/index.ts b/x-pack/platform/plugins/private/telemetry_collection_xpack/server/index.ts similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/server/index.ts rename to x-pack/platform/plugins/private/telemetry_collection_xpack/server/index.ts diff --git a/x-pack/plugins/telemetry_collection_xpack/server/plugin.ts b/x-pack/platform/plugins/private/telemetry_collection_xpack/server/plugin.ts similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/server/plugin.ts rename to x-pack/platform/plugins/private/telemetry_collection_xpack/server/plugin.ts diff --git a/x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/__snapshots__/get_stats_with_xpack.test.ts.snap b/x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/__snapshots__/get_stats_with_xpack.test.ts.snap similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/__snapshots__/get_stats_with_xpack.test.ts.snap rename to x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/__snapshots__/get_stats_with_xpack.test.ts.snap diff --git a/x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/constants.ts b/x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/constants.ts similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/constants.ts rename to x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/constants.ts diff --git a/x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/get_license.test.ts b/x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/get_license.test.ts similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/get_license.test.ts rename to x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/get_license.test.ts diff --git a/x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/get_license.ts b/x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/get_license.ts similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/get_license.ts rename to x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/get_license.ts diff --git a/x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/get_stats_with_xpack.test.ts b/x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/get_stats_with_xpack.test.ts similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/get_stats_with_xpack.test.ts rename to x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/get_stats_with_xpack.test.ts diff --git a/x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/get_stats_with_xpack.ts b/x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/get_stats_with_xpack.ts similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/get_stats_with_xpack.ts rename to x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/get_stats_with_xpack.ts diff --git a/x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/get_xpack.test.ts b/x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/get_xpack.test.ts similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/get_xpack.test.ts rename to x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/get_xpack.test.ts diff --git a/x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/get_xpack.ts b/x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/get_xpack.ts similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/get_xpack.ts rename to x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/get_xpack.ts diff --git a/x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/index.ts b/x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/index.ts similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/index.ts rename to x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/index.ts diff --git a/x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/is_cluster_opted_in.test.ts b/x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/is_cluster_opted_in.test.ts similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/is_cluster_opted_in.test.ts rename to x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/is_cluster_opted_in.test.ts diff --git a/x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/is_cluster_opted_in.ts b/x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/is_cluster_opted_in.ts similarity index 100% rename from x-pack/plugins/telemetry_collection_xpack/server/telemetry_collection/is_cluster_opted_in.ts rename to x-pack/platform/plugins/private/telemetry_collection_xpack/server/telemetry_collection/is_cluster_opted_in.ts diff --git a/x-pack/plugins/telemetry_collection_xpack/tsconfig.json b/x-pack/platform/plugins/private/telemetry_collection_xpack/tsconfig.json similarity index 81% rename from x-pack/plugins/telemetry_collection_xpack/tsconfig.json rename to x-pack/platform/plugins/private/telemetry_collection_xpack/tsconfig.json index 740f21400b2ab..6f2a375cbc88c 100644 --- a/x-pack/plugins/telemetry_collection_xpack/tsconfig.json +++ b/x-pack/platform/plugins/private/telemetry_collection_xpack/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true @@ -7,7 +7,7 @@ "include": [ "common/**/*", "server/**/*", - "../../../typings/*", + "../../../../../typings/*", "schema/*.json", ], "kbn_references": [ diff --git a/yarn.lock b/yarn.lock index fcc735bcad45c..6a2de47d56628 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7609,7 +7609,7 @@ version "0.0.0" uid "" -"@kbn/telemetry-collection-xpack-plugin@link:x-pack/plugins/telemetry_collection_xpack": +"@kbn/telemetry-collection-xpack-plugin@link:x-pack/platform/plugins/private/telemetry_collection_xpack": version "0.0.0" uid "" From 5f54f3ce769757eeec24a53fc92c2320a9a22cbc Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:14:16 +0100 Subject: [PATCH 157/167] Relocating module `@kbn/telemetry-management-section-plugin` --- .eslintrc.js | 4 ++-- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../shared}/telemetry_management_section/README.md | 0 .../telemetry_management_section/common/constants.ts | 0 .../shared}/telemetry_management_section/common/index.ts | 0 .../shared}/telemetry_management_section/jest.config.js | 8 ++++---- .../shared}/telemetry_management_section/kibana.jsonc | 0 .../__snapshots__/opt_in_example_flyout.test.tsx.snap | 0 .../telemetry_management_section.test.tsx.snap | 0 .../public/components/index.ts | 0 .../public/components/lazy_opt_in_example_flyout.tsx | 0 .../public/components/loading_spinner.tsx | 0 .../public/components/opt_in_example_flyout.test.tsx | 0 .../public/components/opt_in_example_flyout.tsx | 0 .../components/telemetry_management_section.test.tsx | 0 .../public/components/telemetry_management_section.tsx | 0 .../components/telemetry_management_section_wrapper.tsx | 0 .../shared}/telemetry_management_section/public/index.ts | 0 .../telemetry_management_section/public/plugin.tsx | 0 .../shared}/telemetry_management_section/tsconfig.json | 4 ++-- tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 25 files changed, 15 insertions(+), 15 deletions(-) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/README.md (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/jest.config.js (63%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/public/components/__snapshots__/opt_in_example_flyout.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/public/components/__snapshots__/telemetry_management_section.test.tsx.snap (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/public/components/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/public/components/lazy_opt_in_example_flyout.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/public/components/loading_spinner.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/public/components/opt_in_example_flyout.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/public/components/opt_in_example_flyout.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/public/components/telemetry_management_section.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/public/components/telemetry_management_section.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/public/components/telemetry_management_section_wrapper.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/public/plugin.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry_management_section/tsconfig.json (88%) diff --git a/.eslintrc.js b/.eslintrc.js index 2d873da571afe..aade4ba49b6a9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1927,7 +1927,7 @@ module.exports = { 'src/plugins/usage_collection/**', 'src/plugins/telemetry/**', 'src/platform/plugins/shared/telemetry_collection_manager/**', - 'src/plugins/telemetry_management_section/**', + 'src/platform/plugins/shared/telemetry_management_section/**', 'x-pack/platform/plugins/private/telemetry_collection_xpack/**', ], rules: { @@ -1951,7 +1951,7 @@ module.exports = { 'src/plugins/usage_collection/**', 'src/plugins/telemetry/**', 'src/platform/plugins/shared/telemetry_collection_manager/**', - 'src/plugins/telemetry_management_section/**', + 'src/platform/plugins/shared/telemetry_management_section/**', 'x-pack/platform/plugins/private/telemetry_collection_xpack/**', ], rules: { diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b8de489417f87..b43d1b469e2cc 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -657,6 +657,7 @@ src/platform/plugins/shared/saved_search @elastic/kibana-data-discovery src/platform/plugins/shared/screenshot_mode @elastic/appex-sharedux src/platform/plugins/shared/share @elastic/appex-sharedux src/platform/plugins/shared/telemetry_collection_manager @elastic/kibana-core +src/platform/plugins/shared/telemetry_management_section @elastic/kibana-core src/platform/plugins/shared/ui_actions @elastic/appex-sharedux src/platform/plugins/shared/ui_actions_enhanced @elastic/appex-sharedux src/platform/plugins/shared/unified_doc_viewer @elastic/kibana-data-discovery @@ -676,7 +677,6 @@ src/plugins/event_annotation_listing @elastic/kibana-visualizations src/plugins/expressions @elastic/kibana-visualizations src/plugins/interactive_setup @elastic/kibana-security src/plugins/telemetry @elastic/kibana-core -src/plugins/telemetry_management_section @elastic/kibana-core src/plugins/unified_search @elastic/kibana-visualizations src/plugins/url_forwarding @elastic/kibana-visualizations src/plugins/usage_collection @elastic/kibana-core diff --git a/.i18nrc.json b/.i18nrc.json index 3a60d600566a6..f97225ff37229 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -134,7 +134,7 @@ "esql": "src/platform/plugins/shared/esql", "esqlDataGrid": "src/platform/plugins/shared/esql_datagrid", "statusPage": "src/legacy/core_plugins/status_page", - "telemetry": ["src/plugins/telemetry", "src/plugins/telemetry_management_section"], + "telemetry": ["src/plugins/telemetry", "src/platform/plugins/shared/telemetry_management_section"], "timelion": ["src/plugins/vis_types/timelion"], "tryInConsole": "src/platform/packages/shared/kbn-try-in-console/", "uiActions": ["src/platform/plugins/shared/ui_actions", "packages/kbn-ui-actions-browser"], diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index af47382f08455..957b5fa717cd5 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -325,7 +325,7 @@ generating deep links to other apps using locators, and creating short URLs. |Telemetry's collection manager to go through all the telemetry sources when fetching it before reporting. -|{kib-repo}blob/{branch}/src/plugins/telemetry_management_section/README.md[telemetryManagementSection] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/telemetry_management_section/README.md[telemetryManagementSection] |This plugin adds the Advanced Settings section for the Usage and Security Data collection (aka Telemetry). diff --git a/package.json b/package.json index 8adbfe07ad801..2894f85ea60a4 100644 --- a/package.json +++ b/package.json @@ -954,7 +954,7 @@ "@kbn/task-manager-plugin": "link:x-pack/platform/plugins/shared/task_manager", "@kbn/telemetry-collection-manager-plugin": "link:src/platform/plugins/shared/telemetry_collection_manager", "@kbn/telemetry-collection-xpack-plugin": "link:x-pack/platform/plugins/private/telemetry_collection_xpack", - "@kbn/telemetry-management-section-plugin": "link:src/plugins/telemetry_management_section", + "@kbn/telemetry-management-section-plugin": "link:src/platform/plugins/shared/telemetry_management_section", "@kbn/telemetry-plugin": "link:src/plugins/telemetry", "@kbn/telemetry-test-plugin": "link:test/plugin_functional/plugins/telemetry", "@kbn/test-feature-usage-plugin": "link:x-pack/test/licensing_plugin/plugins/test_feature_usage", diff --git a/src/plugins/telemetry_management_section/README.md b/src/platform/plugins/shared/telemetry_management_section/README.md similarity index 100% rename from src/plugins/telemetry_management_section/README.md rename to src/platform/plugins/shared/telemetry_management_section/README.md diff --git a/src/plugins/telemetry_management_section/common/constants.ts b/src/platform/plugins/shared/telemetry_management_section/common/constants.ts similarity index 100% rename from src/plugins/telemetry_management_section/common/constants.ts rename to src/platform/plugins/shared/telemetry_management_section/common/constants.ts diff --git a/src/plugins/telemetry_management_section/common/index.ts b/src/platform/plugins/shared/telemetry_management_section/common/index.ts similarity index 100% rename from src/plugins/telemetry_management_section/common/index.ts rename to src/platform/plugins/shared/telemetry_management_section/common/index.ts diff --git a/src/plugins/telemetry_management_section/jest.config.js b/src/platform/plugins/shared/telemetry_management_section/jest.config.js similarity index 63% rename from src/plugins/telemetry_management_section/jest.config.js rename to src/platform/plugins/shared/telemetry_management_section/jest.config.js index cd6cf78c72ad8..870da44a5a120 100644 --- a/src/plugins/telemetry_management_section/jest.config.js +++ b/src/platform/plugins/shared/telemetry_management_section/jest.config.js @@ -9,10 +9,10 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/telemetry_management_section'], + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/telemetry_management_section'], coverageDirectory: - '/target/kibana-coverage/jest/src/plugins/telemetry_management_section', + '/target/kibana-coverage/jest/src/platform/plugins/shared/telemetry_management_section', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/telemetry_management_section/public/**/*.{ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/shared/telemetry_management_section/public/**/*.{ts,tsx}'], }; diff --git a/src/plugins/telemetry_management_section/kibana.jsonc b/src/platform/plugins/shared/telemetry_management_section/kibana.jsonc similarity index 100% rename from src/plugins/telemetry_management_section/kibana.jsonc rename to src/platform/plugins/shared/telemetry_management_section/kibana.jsonc diff --git a/src/plugins/telemetry_management_section/public/components/__snapshots__/opt_in_example_flyout.test.tsx.snap b/src/platform/plugins/shared/telemetry_management_section/public/components/__snapshots__/opt_in_example_flyout.test.tsx.snap similarity index 100% rename from src/plugins/telemetry_management_section/public/components/__snapshots__/opt_in_example_flyout.test.tsx.snap rename to src/platform/plugins/shared/telemetry_management_section/public/components/__snapshots__/opt_in_example_flyout.test.tsx.snap diff --git a/src/plugins/telemetry_management_section/public/components/__snapshots__/telemetry_management_section.test.tsx.snap b/src/platform/plugins/shared/telemetry_management_section/public/components/__snapshots__/telemetry_management_section.test.tsx.snap similarity index 100% rename from src/plugins/telemetry_management_section/public/components/__snapshots__/telemetry_management_section.test.tsx.snap rename to src/platform/plugins/shared/telemetry_management_section/public/components/__snapshots__/telemetry_management_section.test.tsx.snap diff --git a/src/plugins/telemetry_management_section/public/components/index.ts b/src/platform/plugins/shared/telemetry_management_section/public/components/index.ts similarity index 100% rename from src/plugins/telemetry_management_section/public/components/index.ts rename to src/platform/plugins/shared/telemetry_management_section/public/components/index.ts diff --git a/src/plugins/telemetry_management_section/public/components/lazy_opt_in_example_flyout.tsx b/src/platform/plugins/shared/telemetry_management_section/public/components/lazy_opt_in_example_flyout.tsx similarity index 100% rename from src/plugins/telemetry_management_section/public/components/lazy_opt_in_example_flyout.tsx rename to src/platform/plugins/shared/telemetry_management_section/public/components/lazy_opt_in_example_flyout.tsx diff --git a/src/plugins/telemetry_management_section/public/components/loading_spinner.tsx b/src/platform/plugins/shared/telemetry_management_section/public/components/loading_spinner.tsx similarity index 100% rename from src/plugins/telemetry_management_section/public/components/loading_spinner.tsx rename to src/platform/plugins/shared/telemetry_management_section/public/components/loading_spinner.tsx diff --git a/src/plugins/telemetry_management_section/public/components/opt_in_example_flyout.test.tsx b/src/platform/plugins/shared/telemetry_management_section/public/components/opt_in_example_flyout.test.tsx similarity index 100% rename from src/plugins/telemetry_management_section/public/components/opt_in_example_flyout.test.tsx rename to src/platform/plugins/shared/telemetry_management_section/public/components/opt_in_example_flyout.test.tsx diff --git a/src/plugins/telemetry_management_section/public/components/opt_in_example_flyout.tsx b/src/platform/plugins/shared/telemetry_management_section/public/components/opt_in_example_flyout.tsx similarity index 100% rename from src/plugins/telemetry_management_section/public/components/opt_in_example_flyout.tsx rename to src/platform/plugins/shared/telemetry_management_section/public/components/opt_in_example_flyout.tsx diff --git a/src/plugins/telemetry_management_section/public/components/telemetry_management_section.test.tsx b/src/platform/plugins/shared/telemetry_management_section/public/components/telemetry_management_section.test.tsx similarity index 100% rename from src/plugins/telemetry_management_section/public/components/telemetry_management_section.test.tsx rename to src/platform/plugins/shared/telemetry_management_section/public/components/telemetry_management_section.test.tsx diff --git a/src/plugins/telemetry_management_section/public/components/telemetry_management_section.tsx b/src/platform/plugins/shared/telemetry_management_section/public/components/telemetry_management_section.tsx similarity index 100% rename from src/plugins/telemetry_management_section/public/components/telemetry_management_section.tsx rename to src/platform/plugins/shared/telemetry_management_section/public/components/telemetry_management_section.tsx diff --git a/src/plugins/telemetry_management_section/public/components/telemetry_management_section_wrapper.tsx b/src/platform/plugins/shared/telemetry_management_section/public/components/telemetry_management_section_wrapper.tsx similarity index 100% rename from src/plugins/telemetry_management_section/public/components/telemetry_management_section_wrapper.tsx rename to src/platform/plugins/shared/telemetry_management_section/public/components/telemetry_management_section_wrapper.tsx diff --git a/src/plugins/telemetry_management_section/public/index.ts b/src/platform/plugins/shared/telemetry_management_section/public/index.ts similarity index 100% rename from src/plugins/telemetry_management_section/public/index.ts rename to src/platform/plugins/shared/telemetry_management_section/public/index.ts diff --git a/src/plugins/telemetry_management_section/public/plugin.tsx b/src/platform/plugins/shared/telemetry_management_section/public/plugin.tsx similarity index 100% rename from src/plugins/telemetry_management_section/public/plugin.tsx rename to src/platform/plugins/shared/telemetry_management_section/public/plugin.tsx diff --git a/src/plugins/telemetry_management_section/tsconfig.json b/src/platform/plugins/shared/telemetry_management_section/tsconfig.json similarity index 88% rename from src/plugins/telemetry_management_section/tsconfig.json rename to src/platform/plugins/shared/telemetry_management_section/tsconfig.json index 2441412ff912a..5732919190bc0 100644 --- a/src/plugins/telemetry_management_section/tsconfig.json +++ b/src/platform/plugins/shared/telemetry_management_section/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true @@ -7,7 +7,7 @@ "include": [ "common/**/*", "public/**/*", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/core", diff --git a/tsconfig.base.json b/tsconfig.base.json index a7a3765e0d05f..43c362b9a9666 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1898,8 +1898,8 @@ "@kbn/telemetry-collection-manager-plugin/*": ["src/platform/plugins/shared/telemetry_collection_manager/*"], "@kbn/telemetry-collection-xpack-plugin": ["x-pack/platform/plugins/private/telemetry_collection_xpack"], "@kbn/telemetry-collection-xpack-plugin/*": ["x-pack/platform/plugins/private/telemetry_collection_xpack/*"], - "@kbn/telemetry-management-section-plugin": ["src/plugins/telemetry_management_section"], - "@kbn/telemetry-management-section-plugin/*": ["src/plugins/telemetry_management_section/*"], + "@kbn/telemetry-management-section-plugin": ["src/platform/plugins/shared/telemetry_management_section"], + "@kbn/telemetry-management-section-plugin/*": ["src/platform/plugins/shared/telemetry_management_section/*"], "@kbn/telemetry-plugin": ["src/plugins/telemetry"], "@kbn/telemetry-plugin/*": ["src/plugins/telemetry/*"], "@kbn/telemetry-test-plugin": ["test/plugin_functional/plugins/telemetry"], diff --git a/yarn.lock b/yarn.lock index 6a2de47d56628..efd204a76df7a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7613,7 +7613,7 @@ version "0.0.0" uid "" -"@kbn/telemetry-management-section-plugin@link:src/plugins/telemetry_management_section": +"@kbn/telemetry-management-section-plugin@link:src/platform/plugins/shared/telemetry_management_section": version "0.0.0" uid "" From abb59e98ef872b575a29a5266857708fe6902ac3 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:15:07 +0100 Subject: [PATCH 158/167] Relocating module `@kbn/telemetry-plugin` --- .eslintrc.js | 4 ++-- .github/CODEOWNERS | 8 ++++---- .i18nrc.json | 2 +- .telemetryrc.json | 6 +++--- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- .../plugins/shared}/telemetry/README.md | 0 .../plugins/shared}/telemetry/common/constants.ts | 0 .../common/ebt_v3_endpoint/build_headers.test.ts | 0 .../telemetry/common/ebt_v3_endpoint/build_headers.ts | 0 .../telemetry/common/ebt_v3_endpoint/build_url.test.ts | 0 .../shared}/telemetry/common/ebt_v3_endpoint/build_url.ts | 0 .../shared}/telemetry/common/ebt_v3_endpoint/index.ts | 0 .../telemetry/common/is_report_interval_expired.test.ts | 0 .../telemetry/common/is_report_interval_expired.ts | 0 .../plugins/shared}/telemetry/common/routes.ts | 0 .../get_telemetry_channel_endpoint.test.ts | 0 .../telemetry_config/get_telemetry_channel_endpoint.ts | 0 .../shared}/telemetry/common/telemetry_config/index.ts | 0 .../plugins/shared}/telemetry/common/types/index.ts | 0 .../plugins/shared}/telemetry/common/types/latest.ts | 0 .../plugins/shared}/telemetry/common/types/v2.ts | 0 .../plugins/shared}/telemetry/jest.config.js | 8 ++++---- .../plugins/shared}/telemetry/kibana.jsonc | 0 .../telemetry/public/components/opt_in_message.test.tsx | 0 .../telemetry/public/components/opt_in_message.tsx | 0 .../components/opt_in_status_notice_banner.test.tsx | 0 .../public/components/opt_in_status_notice_banner.tsx | 0 .../public/components/welcome_telemetry_notice.test.tsx | 0 .../public/components/welcome_telemetry_notice.tsx | 0 .../plugins/shared}/telemetry/public/index.ts | 0 .../plugins/shared}/telemetry/public/mocks.ts | 0 .../plugins/shared}/telemetry/public/plugin.test.mock.ts | 0 .../plugins/shared}/telemetry/public/plugin.test.ts | 0 .../plugins/shared}/telemetry/public/plugin.ts | 0 .../public/render_welcome_telemetry_notice.test.ts | 0 .../telemetry/public/render_welcome_telemetry_notice.tsx | 0 .../plugins/shared}/telemetry/public/services/index.ts | 0 .../public/services/telemetry_notifications/index.ts | 0 .../render_opt_in_status_notice_banner.test.ts | 0 .../render_opt_in_status_notice_banner.tsx | 0 .../telemetry_notifications.test.ts | 0 .../telemetry_notifications/telemetry_notifications.ts | 0 .../telemetry/public/services/telemetry_sender.test.ts | 0 .../shared}/telemetry/public/services/telemetry_sender.ts | 0 .../telemetry/public/services/telemetry_service.test.ts | 0 .../telemetry/public/services/telemetry_service.ts | 0 .../plugins/shared}/telemetry/schema/README.md | 4 ++-- .../plugins/shared}/telemetry/schema/kbn_packages.json | 0 .../plugins/shared}/telemetry/schema/oss_platform.json | 0 .../plugins/shared}/telemetry/schema/oss_plugins.json | 0 .../plugins/shared}/telemetry/schema/oss_root.json | 0 .../plugins/shared}/telemetry/server/collectors/index.ts | 0 .../telemetry/server/collectors/telemetry_plugin/index.ts | 0 .../telemetry_plugin/telemetry_plugin_collector.ts | 0 .../shared}/telemetry/server/collectors/usage/index.ts | 0 .../shared}/telemetry/server/collectors/usage/schema.ts | 0 .../collectors/usage/telemetry_usage_collector.test.ts | 0 .../server/collectors/usage/telemetry_usage_collector.ts | 0 .../shared}/telemetry/server/config/config.test.ts | 0 .../plugins/shared}/telemetry/server/config/config.ts | 0 .../plugins/shared}/telemetry/server/config/index.ts | 0 .../telemetry/server/config/telemetry_labels.test.ts | 0 .../shared}/telemetry/server/config/telemetry_labels.ts | 0 .../plugins/shared}/telemetry/server/fetcher.test.mock.ts | 0 .../plugins/shared}/telemetry/server/fetcher.test.ts | 0 .../plugins/shared}/telemetry/server/fetcher.ts | 0 .../telemetry/server/get_next_attempt_date.test.ts | 0 .../shared}/telemetry/server/get_next_attempt_date.ts | 0 .../plugins/shared}/telemetry/server/index.ts | 0 .../plugins/shared}/telemetry/server/mocks.ts | 0 .../plugins/shared}/telemetry/server/plugin.test.ts | 0 .../plugins/shared}/telemetry/server/plugin.ts | 0 .../plugins/shared}/telemetry/server/routes/index.ts | 0 .../shared}/telemetry/server/routes/telemetry_config.ts | 0 .../telemetry/server/routes/telemetry_last_reported.ts | 0 .../shared}/telemetry/server/routes/telemetry_opt_in.ts | 0 .../server/routes/telemetry_opt_in_stats.test.ts | 0 .../telemetry/server/routes/telemetry_opt_in_stats.ts | 0 .../telemetry/server/routes/telemetry_usage_stats.test.ts | 0 .../telemetry/server/routes/telemetry_usage_stats.ts | 0 .../server/routes/telemetry_user_has_seen_notice.ts | 0 .../shared}/telemetry/server/saved_objects/constants.ts | 0 .../saved_objects/get_telemetry_saved_object.test.ts | 0 .../server/saved_objects/get_telemetry_saved_object.ts | 0 .../shared}/telemetry/server/saved_objects/index.ts | 0 .../saved_objects/register_telemetry_saved_object.ts | 0 .../shared}/telemetry/server/saved_objects/types.ts | 0 .../server/saved_objects/update_telemetry_saved_object.ts | 0 .../telemetry/server/telemetry_collection/constants.ts | 0 .../server/telemetry_collection/get_cluster_info.test.ts | 0 .../server/telemetry_collection/get_cluster_info.ts | 0 .../server/telemetry_collection/get_cluster_stats.test.ts | 0 .../server/telemetry_collection/get_cluster_stats.ts | 0 .../telemetry_collection/get_data_telemetry/constants.ts | 0 .../get_data_telemetry/get_data_telemetry.test.ts | 0 .../get_data_telemetry/get_data_telemetry.ts | 0 .../telemetry_collection/get_data_telemetry/index.ts | 0 .../telemetry/server/telemetry_collection/get_kibana.ts | 0 .../server/telemetry_collection/get_local_stats.test.ts | 0 .../server/telemetry_collection/get_local_stats.ts | 0 .../server/telemetry_collection/get_nodes_usage.test.ts | 0 .../server/telemetry_collection/get_nodes_usage.ts | 0 .../telemetry/server/telemetry_collection/index.ts | 0 .../server/telemetry_collection/register_collection.ts | 0 .../get_telemetry_allow_changing_opt_in_status.ts | 0 .../get_telemetry_failure_details.test.ts | 0 .../telemetry_config/get_telemetry_failure_details.ts | 0 .../get_telemetry_notify_user_about_optin_default.test.ts | 0 .../get_telemetry_notify_user_about_optin_default.ts | 0 .../server/telemetry_config/get_telemetry_opt_in.test.ts | 0 .../server/telemetry_config/get_telemetry_opt_in.ts | 0 .../get_telemetry_send_usage_from.test.ts | 0 .../telemetry_config/get_telemetry_send_usage_from.ts | 0 .../shared}/telemetry/server/telemetry_config/index.ts | 0 .../plugins/shared}/telemetry/tsconfig.json | 4 ++-- test/plugin_functional/plugins/telemetry/package.json | 2 +- tsconfig.base.json | 4 ++-- .../private/telemetry_collection_xpack/schema/README.md | 4 ++-- yarn.lock | 2 +- 120 files changed, 26 insertions(+), 26 deletions(-) rename src/{plugins => platform/plugins/shared}/telemetry/README.md (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/ebt_v3_endpoint/build_headers.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/ebt_v3_endpoint/build_headers.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/ebt_v3_endpoint/build_url.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/ebt_v3_endpoint/build_url.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/ebt_v3_endpoint/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/is_report_interval_expired.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/is_report_interval_expired.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/routes.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/telemetry_config/get_telemetry_channel_endpoint.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/telemetry_config/get_telemetry_channel_endpoint.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/telemetry_config/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/types/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/types/latest.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/common/types/v2.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/jest.config.js (71%) rename src/{plugins => platform/plugins/shared}/telemetry/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/components/opt_in_message.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/components/opt_in_message.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/components/opt_in_status_notice_banner.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/components/opt_in_status_notice_banner.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/components/welcome_telemetry_notice.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/components/welcome_telemetry_notice.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/plugin.test.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/render_welcome_telemetry_notice.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/render_welcome_telemetry_notice.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/services/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/services/telemetry_notifications/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/services/telemetry_notifications/render_opt_in_status_notice_banner.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/services/telemetry_notifications/render_opt_in_status_notice_banner.tsx (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/services/telemetry_notifications/telemetry_notifications.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/services/telemetry_notifications/telemetry_notifications.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/services/telemetry_sender.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/services/telemetry_sender.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/services/telemetry_service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/public/services/telemetry_service.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/schema/README.md (82%) rename src/{plugins => platform/plugins/shared}/telemetry/schema/kbn_packages.json (100%) rename src/{plugins => platform/plugins/shared}/telemetry/schema/oss_platform.json (100%) rename src/{plugins => platform/plugins/shared}/telemetry/schema/oss_plugins.json (100%) rename src/{plugins => platform/plugins/shared}/telemetry/schema/oss_root.json (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/collectors/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/collectors/telemetry_plugin/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/collectors/telemetry_plugin/telemetry_plugin_collector.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/collectors/usage/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/collectors/usage/schema.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/collectors/usage/telemetry_usage_collector.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/collectors/usage/telemetry_usage_collector.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/config/config.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/config/config.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/config/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/config/telemetry_labels.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/config/telemetry_labels.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/fetcher.test.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/fetcher.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/fetcher.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/get_next_attempt_date.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/get_next_attempt_date.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/plugin.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/routes/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/routes/telemetry_config.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/routes/telemetry_last_reported.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/routes/telemetry_opt_in.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/routes/telemetry_opt_in_stats.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/routes/telemetry_opt_in_stats.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/routes/telemetry_usage_stats.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/routes/telemetry_usage_stats.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/routes/telemetry_user_has_seen_notice.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/saved_objects/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/saved_objects/get_telemetry_saved_object.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/saved_objects/get_telemetry_saved_object.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/saved_objects/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/saved_objects/register_telemetry_saved_object.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/saved_objects/types.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/saved_objects/update_telemetry_saved_object.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/get_cluster_info.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/get_cluster_info.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/get_cluster_stats.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/get_cluster_stats.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/get_data_telemetry/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/get_data_telemetry/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/get_kibana.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/get_local_stats.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/get_local_stats.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/get_nodes_usage.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/get_nodes_usage.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_collection/register_collection.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_config/get_telemetry_allow_changing_opt_in_status.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_config/get_telemetry_failure_details.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_config/get_telemetry_failure_details.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_config/get_telemetry_notify_user_about_optin_default.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_config/get_telemetry_notify_user_about_optin_default.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_config/get_telemetry_opt_in.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_config/get_telemetry_opt_in.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_config/get_telemetry_send_usage_from.test.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_config/get_telemetry_send_usage_from.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/server/telemetry_config/index.ts (100%) rename src/{plugins => platform/plugins/shared}/telemetry/tsconfig.json (92%) diff --git a/.eslintrc.js b/.eslintrc.js index aade4ba49b6a9..538ae4e2dc8db 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1925,7 +1925,7 @@ module.exports = { // 'packages/kbn-telemetry-tools/**', 'src/platform/plugins/private/kibana_usage_collection/**', 'src/plugins/usage_collection/**', - 'src/plugins/telemetry/**', + 'src/platform/plugins/shared/telemetry/**', 'src/platform/plugins/shared/telemetry_collection_manager/**', 'src/platform/plugins/shared/telemetry_management_section/**', 'x-pack/platform/plugins/private/telemetry_collection_xpack/**', @@ -1949,7 +1949,7 @@ module.exports = { 'packages/kbn-telemetry-tools/**', 'src/platform/plugins/private/kibana_usage_collection/**', 'src/plugins/usage_collection/**', - 'src/plugins/telemetry/**', + 'src/platform/plugins/shared/telemetry/**', 'src/platform/plugins/shared/telemetry_collection_manager/**', 'src/platform/plugins/shared/telemetry_management_section/**', 'x-pack/platform/plugins/private/telemetry_collection_xpack/**', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b43d1b469e2cc..b179725827074 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -656,6 +656,7 @@ src/platform/plugins/shared/saved_objects_tagging_oss @elastic/appex-sharedux src/platform/plugins/shared/saved_search @elastic/kibana-data-discovery src/platform/plugins/shared/screenshot_mode @elastic/appex-sharedux src/platform/plugins/shared/share @elastic/appex-sharedux +src/platform/plugins/shared/telemetry @elastic/kibana-core src/platform/plugins/shared/telemetry_collection_manager @elastic/kibana-core src/platform/plugins/shared/telemetry_management_section @elastic/kibana-core src/platform/plugins/shared/ui_actions @elastic/appex-sharedux @@ -676,7 +677,6 @@ src/plugins/event_annotation @elastic/kibana-visualizations src/plugins/event_annotation_listing @elastic/kibana-visualizations src/plugins/expressions @elastic/kibana-visualizations src/plugins/interactive_setup @elastic/kibana-security -src/plugins/telemetry @elastic/kibana-core src/plugins/unified_search @elastic/kibana-visualizations src/plugins/url_forwarding @elastic/kibana-visualizations src/plugins/usage_collection @elastic/kibana-core @@ -1764,7 +1764,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /x-pack/test/functional_cors @elastic/kibana-core /x-pack/test/stack_functional_integration/apps/telemetry @elastic/kibana-core /test/plugin_functional/plugins/core* @elastic/kibana-core -/test/plugin_functional/plugins/telemetry @elastic/kibana-core +/test/plugin_functional/platform/plugins/shared/telemetry @elastic/kibana-core /test/plugin_functional/plugins/session_notifications @elastic/kibana-core /test/plugin_functional/plugins/kbn_top_nav/ @elastic/kibana-core /test/plugin_functional/plugins/app_link_test @elastic/kibana-core @@ -1844,7 +1844,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql # Kibana Telemetry /.telemetryrc.json @elastic/kibana-core /x-pack/.telemetryrc.json @elastic/kibana-core -/src/plugins/telemetry/schema/ @elastic/kibana-core +/src/platform/plugins/shared/telemetry/schema/ @elastic/kibana-core /x-pack/platform/plugins/private/telemetry_collection_xpack/schema/ @elastic/kibana-core x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/config.ts @elastic/kibana-core @shahinakmal @@ -1890,7 +1890,7 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi /.github/workflows/codeql-stats.yml @elastic/kibana-security /src/dev/eslint/security_eslint_rule_tests.ts @elastic/kibana-security /src/core/server/integration_tests/config/check_dynamic_config.test.ts @elastic/kibana-security -/src/plugins/telemetry/server/config/telemetry_labels.ts @elastic/kibana-security +/src/platform/plugins/shared/telemetry/server/config/telemetry_labels.ts @elastic/kibana-security /src/platform/packages/shared/kbn-std/src/is_internal_url.test.ts @elastic/kibana-core @elastic/kibana-security /src/platform/packages/shared/kbn-std/src/is_internal_url.ts @elastic/kibana-core @elastic/kibana-security /src/platform/packages/shared/kbn-std/src/parse_next_url.test.ts @elastic/kibana-core @elastic/kibana-security diff --git a/.i18nrc.json b/.i18nrc.json index f97225ff37229..294a83329252c 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -134,7 +134,7 @@ "esql": "src/platform/plugins/shared/esql", "esqlDataGrid": "src/platform/plugins/shared/esql_datagrid", "statusPage": "src/legacy/core_plugins/status_page", - "telemetry": ["src/plugins/telemetry", "src/platform/plugins/shared/telemetry_management_section"], + "telemetry": ["src/platform/plugins/shared/telemetry", "src/platform/plugins/shared/telemetry_management_section"], "timelion": ["src/plugins/vis_types/timelion"], "tryInConsole": "src/platform/packages/shared/kbn-try-in-console/", "uiActions": ["src/platform/plugins/shared/ui_actions", "packages/kbn-ui-actions-browser"], diff --git a/.telemetryrc.json b/.telemetryrc.json index 902ae82b6bd28..ca82411ffbe4c 100644 --- a/.telemetryrc.json +++ b/.telemetryrc.json @@ -1,18 +1,18 @@ [ { - "output": "src/plugins/telemetry/schema/oss_plugins.json", + "output": "src/platform/plugins/shared/telemetry/schema/oss_plugins.json", "root": "src/plugins/", "exclude": [ "src/platform/plugins/private/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.ts" ] }, { - "output": "src/plugins/telemetry/schema/kbn_packages.json", + "output": "src/platform/plugins/shared/telemetry/schema/kbn_packages.json", "root": "packages/", "exclude": [] }, { - "output": "src/plugins/telemetry/schema/oss_platform.json", + "output": "src/platform/plugins/shared/telemetry/schema/oss_platform.json", "root": "src/platform/", "exclude": [] } diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 957b5fa717cd5..4da5f3a5e5501 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -317,7 +317,7 @@ This object is created when a user saves their current session in the Discover a generating deep links to other apps using locators, and creating short URLs. -|{kib-repo}blob/{branch}/src/plugins/telemetry/README.md[telemetry] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/telemetry/README.md[telemetry] |Telemetry allows Kibana features to have usage tracked in the wild. The general term "telemetry" refers to multiple things: diff --git a/package.json b/package.json index 2894f85ea60a4..83556863a3f4e 100644 --- a/package.json +++ b/package.json @@ -955,7 +955,7 @@ "@kbn/telemetry-collection-manager-plugin": "link:src/platform/plugins/shared/telemetry_collection_manager", "@kbn/telemetry-collection-xpack-plugin": "link:x-pack/platform/plugins/private/telemetry_collection_xpack", "@kbn/telemetry-management-section-plugin": "link:src/platform/plugins/shared/telemetry_management_section", - "@kbn/telemetry-plugin": "link:src/plugins/telemetry", + "@kbn/telemetry-plugin": "link:src/platform/plugins/shared/telemetry", "@kbn/telemetry-test-plugin": "link:test/plugin_functional/plugins/telemetry", "@kbn/test-feature-usage-plugin": "link:x-pack/test/licensing_plugin/plugins/test_feature_usage", "@kbn/testing-embedded-lens-plugin": "link:x-pack/examples/testing_embedded_lens", diff --git a/src/plugins/telemetry/README.md b/src/platform/plugins/shared/telemetry/README.md similarity index 100% rename from src/plugins/telemetry/README.md rename to src/platform/plugins/shared/telemetry/README.md diff --git a/src/plugins/telemetry/common/constants.ts b/src/platform/plugins/shared/telemetry/common/constants.ts similarity index 100% rename from src/plugins/telemetry/common/constants.ts rename to src/platform/plugins/shared/telemetry/common/constants.ts diff --git a/src/plugins/telemetry/common/ebt_v3_endpoint/build_headers.test.ts b/src/platform/plugins/shared/telemetry/common/ebt_v3_endpoint/build_headers.test.ts similarity index 100% rename from src/plugins/telemetry/common/ebt_v3_endpoint/build_headers.test.ts rename to src/platform/plugins/shared/telemetry/common/ebt_v3_endpoint/build_headers.test.ts diff --git a/src/plugins/telemetry/common/ebt_v3_endpoint/build_headers.ts b/src/platform/plugins/shared/telemetry/common/ebt_v3_endpoint/build_headers.ts similarity index 100% rename from src/plugins/telemetry/common/ebt_v3_endpoint/build_headers.ts rename to src/platform/plugins/shared/telemetry/common/ebt_v3_endpoint/build_headers.ts diff --git a/src/plugins/telemetry/common/ebt_v3_endpoint/build_url.test.ts b/src/platform/plugins/shared/telemetry/common/ebt_v3_endpoint/build_url.test.ts similarity index 100% rename from src/plugins/telemetry/common/ebt_v3_endpoint/build_url.test.ts rename to src/platform/plugins/shared/telemetry/common/ebt_v3_endpoint/build_url.test.ts diff --git a/src/plugins/telemetry/common/ebt_v3_endpoint/build_url.ts b/src/platform/plugins/shared/telemetry/common/ebt_v3_endpoint/build_url.ts similarity index 100% rename from src/plugins/telemetry/common/ebt_v3_endpoint/build_url.ts rename to src/platform/plugins/shared/telemetry/common/ebt_v3_endpoint/build_url.ts diff --git a/src/plugins/telemetry/common/ebt_v3_endpoint/index.ts b/src/platform/plugins/shared/telemetry/common/ebt_v3_endpoint/index.ts similarity index 100% rename from src/plugins/telemetry/common/ebt_v3_endpoint/index.ts rename to src/platform/plugins/shared/telemetry/common/ebt_v3_endpoint/index.ts diff --git a/src/plugins/telemetry/common/is_report_interval_expired.test.ts b/src/platform/plugins/shared/telemetry/common/is_report_interval_expired.test.ts similarity index 100% rename from src/plugins/telemetry/common/is_report_interval_expired.test.ts rename to src/platform/plugins/shared/telemetry/common/is_report_interval_expired.test.ts diff --git a/src/plugins/telemetry/common/is_report_interval_expired.ts b/src/platform/plugins/shared/telemetry/common/is_report_interval_expired.ts similarity index 100% rename from src/plugins/telemetry/common/is_report_interval_expired.ts rename to src/platform/plugins/shared/telemetry/common/is_report_interval_expired.ts diff --git a/src/plugins/telemetry/common/routes.ts b/src/platform/plugins/shared/telemetry/common/routes.ts similarity index 100% rename from src/plugins/telemetry/common/routes.ts rename to src/platform/plugins/shared/telemetry/common/routes.ts diff --git a/src/plugins/telemetry/common/telemetry_config/get_telemetry_channel_endpoint.test.ts b/src/platform/plugins/shared/telemetry/common/telemetry_config/get_telemetry_channel_endpoint.test.ts similarity index 100% rename from src/plugins/telemetry/common/telemetry_config/get_telemetry_channel_endpoint.test.ts rename to src/platform/plugins/shared/telemetry/common/telemetry_config/get_telemetry_channel_endpoint.test.ts diff --git a/src/plugins/telemetry/common/telemetry_config/get_telemetry_channel_endpoint.ts b/src/platform/plugins/shared/telemetry/common/telemetry_config/get_telemetry_channel_endpoint.ts similarity index 100% rename from src/plugins/telemetry/common/telemetry_config/get_telemetry_channel_endpoint.ts rename to src/platform/plugins/shared/telemetry/common/telemetry_config/get_telemetry_channel_endpoint.ts diff --git a/src/plugins/telemetry/common/telemetry_config/index.ts b/src/platform/plugins/shared/telemetry/common/telemetry_config/index.ts similarity index 100% rename from src/plugins/telemetry/common/telemetry_config/index.ts rename to src/platform/plugins/shared/telemetry/common/telemetry_config/index.ts diff --git a/src/plugins/telemetry/common/types/index.ts b/src/platform/plugins/shared/telemetry/common/types/index.ts similarity index 100% rename from src/plugins/telemetry/common/types/index.ts rename to src/platform/plugins/shared/telemetry/common/types/index.ts diff --git a/src/plugins/telemetry/common/types/latest.ts b/src/platform/plugins/shared/telemetry/common/types/latest.ts similarity index 100% rename from src/plugins/telemetry/common/types/latest.ts rename to src/platform/plugins/shared/telemetry/common/types/latest.ts diff --git a/src/plugins/telemetry/common/types/v2.ts b/src/platform/plugins/shared/telemetry/common/types/v2.ts similarity index 100% rename from src/plugins/telemetry/common/types/v2.ts rename to src/platform/plugins/shared/telemetry/common/types/v2.ts diff --git a/src/plugins/telemetry/jest.config.js b/src/platform/plugins/shared/telemetry/jest.config.js similarity index 71% rename from src/plugins/telemetry/jest.config.js rename to src/platform/plugins/shared/telemetry/jest.config.js index 6f457afc963b2..0f04eaecb6958 100644 --- a/src/plugins/telemetry/jest.config.js +++ b/src/platform/plugins/shared/telemetry/jest.config.js @@ -9,9 +9,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/telemetry'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/telemetry', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/telemetry'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/telemetry', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/telemetry/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/src/platform/plugins/shared/telemetry/{common,public,server}/**/*.{ts,tsx}'], }; diff --git a/src/plugins/telemetry/kibana.jsonc b/src/platform/plugins/shared/telemetry/kibana.jsonc similarity index 100% rename from src/plugins/telemetry/kibana.jsonc rename to src/platform/plugins/shared/telemetry/kibana.jsonc diff --git a/src/plugins/telemetry/public/components/opt_in_message.test.tsx b/src/platform/plugins/shared/telemetry/public/components/opt_in_message.test.tsx similarity index 100% rename from src/plugins/telemetry/public/components/opt_in_message.test.tsx rename to src/platform/plugins/shared/telemetry/public/components/opt_in_message.test.tsx diff --git a/src/plugins/telemetry/public/components/opt_in_message.tsx b/src/platform/plugins/shared/telemetry/public/components/opt_in_message.tsx similarity index 100% rename from src/plugins/telemetry/public/components/opt_in_message.tsx rename to src/platform/plugins/shared/telemetry/public/components/opt_in_message.tsx diff --git a/src/plugins/telemetry/public/components/opt_in_status_notice_banner.test.tsx b/src/platform/plugins/shared/telemetry/public/components/opt_in_status_notice_banner.test.tsx similarity index 100% rename from src/plugins/telemetry/public/components/opt_in_status_notice_banner.test.tsx rename to src/platform/plugins/shared/telemetry/public/components/opt_in_status_notice_banner.test.tsx diff --git a/src/plugins/telemetry/public/components/opt_in_status_notice_banner.tsx b/src/platform/plugins/shared/telemetry/public/components/opt_in_status_notice_banner.tsx similarity index 100% rename from src/plugins/telemetry/public/components/opt_in_status_notice_banner.tsx rename to src/platform/plugins/shared/telemetry/public/components/opt_in_status_notice_banner.tsx diff --git a/src/plugins/telemetry/public/components/welcome_telemetry_notice.test.tsx b/src/platform/plugins/shared/telemetry/public/components/welcome_telemetry_notice.test.tsx similarity index 100% rename from src/plugins/telemetry/public/components/welcome_telemetry_notice.test.tsx rename to src/platform/plugins/shared/telemetry/public/components/welcome_telemetry_notice.test.tsx diff --git a/src/plugins/telemetry/public/components/welcome_telemetry_notice.tsx b/src/platform/plugins/shared/telemetry/public/components/welcome_telemetry_notice.tsx similarity index 100% rename from src/plugins/telemetry/public/components/welcome_telemetry_notice.tsx rename to src/platform/plugins/shared/telemetry/public/components/welcome_telemetry_notice.tsx diff --git a/src/plugins/telemetry/public/index.ts b/src/platform/plugins/shared/telemetry/public/index.ts similarity index 100% rename from src/plugins/telemetry/public/index.ts rename to src/platform/plugins/shared/telemetry/public/index.ts diff --git a/src/plugins/telemetry/public/mocks.ts b/src/platform/plugins/shared/telemetry/public/mocks.ts similarity index 100% rename from src/plugins/telemetry/public/mocks.ts rename to src/platform/plugins/shared/telemetry/public/mocks.ts diff --git a/src/plugins/telemetry/public/plugin.test.mock.ts b/src/platform/plugins/shared/telemetry/public/plugin.test.mock.ts similarity index 100% rename from src/plugins/telemetry/public/plugin.test.mock.ts rename to src/platform/plugins/shared/telemetry/public/plugin.test.mock.ts diff --git a/src/plugins/telemetry/public/plugin.test.ts b/src/platform/plugins/shared/telemetry/public/plugin.test.ts similarity index 100% rename from src/plugins/telemetry/public/plugin.test.ts rename to src/platform/plugins/shared/telemetry/public/plugin.test.ts diff --git a/src/plugins/telemetry/public/plugin.ts b/src/platform/plugins/shared/telemetry/public/plugin.ts similarity index 100% rename from src/plugins/telemetry/public/plugin.ts rename to src/platform/plugins/shared/telemetry/public/plugin.ts diff --git a/src/plugins/telemetry/public/render_welcome_telemetry_notice.test.ts b/src/platform/plugins/shared/telemetry/public/render_welcome_telemetry_notice.test.ts similarity index 100% rename from src/plugins/telemetry/public/render_welcome_telemetry_notice.test.ts rename to src/platform/plugins/shared/telemetry/public/render_welcome_telemetry_notice.test.ts diff --git a/src/plugins/telemetry/public/render_welcome_telemetry_notice.tsx b/src/platform/plugins/shared/telemetry/public/render_welcome_telemetry_notice.tsx similarity index 100% rename from src/plugins/telemetry/public/render_welcome_telemetry_notice.tsx rename to src/platform/plugins/shared/telemetry/public/render_welcome_telemetry_notice.tsx diff --git a/src/plugins/telemetry/public/services/index.ts b/src/platform/plugins/shared/telemetry/public/services/index.ts similarity index 100% rename from src/plugins/telemetry/public/services/index.ts rename to src/platform/plugins/shared/telemetry/public/services/index.ts diff --git a/src/plugins/telemetry/public/services/telemetry_notifications/index.ts b/src/platform/plugins/shared/telemetry/public/services/telemetry_notifications/index.ts similarity index 100% rename from src/plugins/telemetry/public/services/telemetry_notifications/index.ts rename to src/platform/plugins/shared/telemetry/public/services/telemetry_notifications/index.ts diff --git a/src/plugins/telemetry/public/services/telemetry_notifications/render_opt_in_status_notice_banner.test.ts b/src/platform/plugins/shared/telemetry/public/services/telemetry_notifications/render_opt_in_status_notice_banner.test.ts similarity index 100% rename from src/plugins/telemetry/public/services/telemetry_notifications/render_opt_in_status_notice_banner.test.ts rename to src/platform/plugins/shared/telemetry/public/services/telemetry_notifications/render_opt_in_status_notice_banner.test.ts diff --git a/src/plugins/telemetry/public/services/telemetry_notifications/render_opt_in_status_notice_banner.tsx b/src/platform/plugins/shared/telemetry/public/services/telemetry_notifications/render_opt_in_status_notice_banner.tsx similarity index 100% rename from src/plugins/telemetry/public/services/telemetry_notifications/render_opt_in_status_notice_banner.tsx rename to src/platform/plugins/shared/telemetry/public/services/telemetry_notifications/render_opt_in_status_notice_banner.tsx diff --git a/src/plugins/telemetry/public/services/telemetry_notifications/telemetry_notifications.test.ts b/src/platform/plugins/shared/telemetry/public/services/telemetry_notifications/telemetry_notifications.test.ts similarity index 100% rename from src/plugins/telemetry/public/services/telemetry_notifications/telemetry_notifications.test.ts rename to src/platform/plugins/shared/telemetry/public/services/telemetry_notifications/telemetry_notifications.test.ts diff --git a/src/plugins/telemetry/public/services/telemetry_notifications/telemetry_notifications.ts b/src/platform/plugins/shared/telemetry/public/services/telemetry_notifications/telemetry_notifications.ts similarity index 100% rename from src/plugins/telemetry/public/services/telemetry_notifications/telemetry_notifications.ts rename to src/platform/plugins/shared/telemetry/public/services/telemetry_notifications/telemetry_notifications.ts diff --git a/src/plugins/telemetry/public/services/telemetry_sender.test.ts b/src/platform/plugins/shared/telemetry/public/services/telemetry_sender.test.ts similarity index 100% rename from src/plugins/telemetry/public/services/telemetry_sender.test.ts rename to src/platform/plugins/shared/telemetry/public/services/telemetry_sender.test.ts diff --git a/src/plugins/telemetry/public/services/telemetry_sender.ts b/src/platform/plugins/shared/telemetry/public/services/telemetry_sender.ts similarity index 100% rename from src/plugins/telemetry/public/services/telemetry_sender.ts rename to src/platform/plugins/shared/telemetry/public/services/telemetry_sender.ts diff --git a/src/plugins/telemetry/public/services/telemetry_service.test.ts b/src/platform/plugins/shared/telemetry/public/services/telemetry_service.test.ts similarity index 100% rename from src/plugins/telemetry/public/services/telemetry_service.test.ts rename to src/platform/plugins/shared/telemetry/public/services/telemetry_service.test.ts diff --git a/src/plugins/telemetry/public/services/telemetry_service.ts b/src/platform/plugins/shared/telemetry/public/services/telemetry_service.ts similarity index 100% rename from src/plugins/telemetry/public/services/telemetry_service.ts rename to src/platform/plugins/shared/telemetry/public/services/telemetry_service.ts diff --git a/src/plugins/telemetry/schema/README.md b/src/platform/plugins/shared/telemetry/schema/README.md similarity index 82% rename from src/plugins/telemetry/schema/README.md rename to src/platform/plugins/shared/telemetry/schema/README.md index 13301a45da878..761d0c4dce030 100644 --- a/src/plugins/telemetry/schema/README.md +++ b/src/platform/plugins/shared/telemetry/schema/README.md @@ -8,7 +8,7 @@ There are currently 4 files: Manually maintained for now because the frequency it changes should be pretty low. - `oss_plugins.json`: The schema for the content that will be nested in `stack_stats.kibana.plugins`. It is automatically generated by `@kbn/telemetry-tools` based on the `schema` property provided by all the registered Usage Collectors via the `usageCollection.makeUsageCollector` API. - More details in the [Schema field](../../usage_collection/README.md#schema-field) chapter in the UsageCollection's docs. + More details in the [Schema field](../../../../usage_collection/README.md#schema-field) chapter in the UsageCollection's docs. - `kbn_packages.json`: Same as `oss_plugins` but for collectors defined in `/packages/*`. - `oss_platform.json`: Same as `oss_plugins` but for collectors defined in `/src/platform/*`. @@ -16,4 +16,4 @@ NOTE: Despite its similarities to ES mappings, the intention of these files is n ## Testing -Functional tests are defined at `x-pack/test/api_integration/apis/telemetry/telemetry_local.ts`. They merge all files and [the x-pack counterparts](../../../../x-pack/platform/plugins/private/telemetry_collection_xpack/schema), and validates the actual output of the telemetry endpoint against the final schema. \ No newline at end of file +Functional tests are defined at `x-pack/test/api_integration/apis/telemetry/telemetry_local.ts`. They merge all files and [the x-pack counterparts](../../../../../../x-pack/platform/plugins/private/telemetry_collection_xpack/schema), and validates the actual output of the telemetry endpoint against the final schema. \ No newline at end of file diff --git a/src/plugins/telemetry/schema/kbn_packages.json b/src/platform/plugins/shared/telemetry/schema/kbn_packages.json similarity index 100% rename from src/plugins/telemetry/schema/kbn_packages.json rename to src/platform/plugins/shared/telemetry/schema/kbn_packages.json diff --git a/src/plugins/telemetry/schema/oss_platform.json b/src/platform/plugins/shared/telemetry/schema/oss_platform.json similarity index 100% rename from src/plugins/telemetry/schema/oss_platform.json rename to src/platform/plugins/shared/telemetry/schema/oss_platform.json diff --git a/src/plugins/telemetry/schema/oss_plugins.json b/src/platform/plugins/shared/telemetry/schema/oss_plugins.json similarity index 100% rename from src/plugins/telemetry/schema/oss_plugins.json rename to src/platform/plugins/shared/telemetry/schema/oss_plugins.json diff --git a/src/plugins/telemetry/schema/oss_root.json b/src/platform/plugins/shared/telemetry/schema/oss_root.json similarity index 100% rename from src/plugins/telemetry/schema/oss_root.json rename to src/platform/plugins/shared/telemetry/schema/oss_root.json diff --git a/src/plugins/telemetry/server/collectors/index.ts b/src/platform/plugins/shared/telemetry/server/collectors/index.ts similarity index 100% rename from src/plugins/telemetry/server/collectors/index.ts rename to src/platform/plugins/shared/telemetry/server/collectors/index.ts diff --git a/src/plugins/telemetry/server/collectors/telemetry_plugin/index.ts b/src/platform/plugins/shared/telemetry/server/collectors/telemetry_plugin/index.ts similarity index 100% rename from src/plugins/telemetry/server/collectors/telemetry_plugin/index.ts rename to src/platform/plugins/shared/telemetry/server/collectors/telemetry_plugin/index.ts diff --git a/src/plugins/telemetry/server/collectors/telemetry_plugin/telemetry_plugin_collector.ts b/src/platform/plugins/shared/telemetry/server/collectors/telemetry_plugin/telemetry_plugin_collector.ts similarity index 100% rename from src/plugins/telemetry/server/collectors/telemetry_plugin/telemetry_plugin_collector.ts rename to src/platform/plugins/shared/telemetry/server/collectors/telemetry_plugin/telemetry_plugin_collector.ts diff --git a/src/plugins/telemetry/server/collectors/usage/index.ts b/src/platform/plugins/shared/telemetry/server/collectors/usage/index.ts similarity index 100% rename from src/plugins/telemetry/server/collectors/usage/index.ts rename to src/platform/plugins/shared/telemetry/server/collectors/usage/index.ts diff --git a/src/plugins/telemetry/server/collectors/usage/schema.ts b/src/platform/plugins/shared/telemetry/server/collectors/usage/schema.ts similarity index 100% rename from src/plugins/telemetry/server/collectors/usage/schema.ts rename to src/platform/plugins/shared/telemetry/server/collectors/usage/schema.ts diff --git a/src/plugins/telemetry/server/collectors/usage/telemetry_usage_collector.test.ts b/src/platform/plugins/shared/telemetry/server/collectors/usage/telemetry_usage_collector.test.ts similarity index 100% rename from src/plugins/telemetry/server/collectors/usage/telemetry_usage_collector.test.ts rename to src/platform/plugins/shared/telemetry/server/collectors/usage/telemetry_usage_collector.test.ts diff --git a/src/plugins/telemetry/server/collectors/usage/telemetry_usage_collector.ts b/src/platform/plugins/shared/telemetry/server/collectors/usage/telemetry_usage_collector.ts similarity index 100% rename from src/plugins/telemetry/server/collectors/usage/telemetry_usage_collector.ts rename to src/platform/plugins/shared/telemetry/server/collectors/usage/telemetry_usage_collector.ts diff --git a/src/plugins/telemetry/server/config/config.test.ts b/src/platform/plugins/shared/telemetry/server/config/config.test.ts similarity index 100% rename from src/plugins/telemetry/server/config/config.test.ts rename to src/platform/plugins/shared/telemetry/server/config/config.test.ts diff --git a/src/plugins/telemetry/server/config/config.ts b/src/platform/plugins/shared/telemetry/server/config/config.ts similarity index 100% rename from src/plugins/telemetry/server/config/config.ts rename to src/platform/plugins/shared/telemetry/server/config/config.ts diff --git a/src/plugins/telemetry/server/config/index.ts b/src/platform/plugins/shared/telemetry/server/config/index.ts similarity index 100% rename from src/plugins/telemetry/server/config/index.ts rename to src/platform/plugins/shared/telemetry/server/config/index.ts diff --git a/src/plugins/telemetry/server/config/telemetry_labels.test.ts b/src/platform/plugins/shared/telemetry/server/config/telemetry_labels.test.ts similarity index 100% rename from src/plugins/telemetry/server/config/telemetry_labels.test.ts rename to src/platform/plugins/shared/telemetry/server/config/telemetry_labels.test.ts diff --git a/src/plugins/telemetry/server/config/telemetry_labels.ts b/src/platform/plugins/shared/telemetry/server/config/telemetry_labels.ts similarity index 100% rename from src/plugins/telemetry/server/config/telemetry_labels.ts rename to src/platform/plugins/shared/telemetry/server/config/telemetry_labels.ts diff --git a/src/plugins/telemetry/server/fetcher.test.mock.ts b/src/platform/plugins/shared/telemetry/server/fetcher.test.mock.ts similarity index 100% rename from src/plugins/telemetry/server/fetcher.test.mock.ts rename to src/platform/plugins/shared/telemetry/server/fetcher.test.mock.ts diff --git a/src/plugins/telemetry/server/fetcher.test.ts b/src/platform/plugins/shared/telemetry/server/fetcher.test.ts similarity index 100% rename from src/plugins/telemetry/server/fetcher.test.ts rename to src/platform/plugins/shared/telemetry/server/fetcher.test.ts diff --git a/src/plugins/telemetry/server/fetcher.ts b/src/platform/plugins/shared/telemetry/server/fetcher.ts similarity index 100% rename from src/plugins/telemetry/server/fetcher.ts rename to src/platform/plugins/shared/telemetry/server/fetcher.ts diff --git a/src/plugins/telemetry/server/get_next_attempt_date.test.ts b/src/platform/plugins/shared/telemetry/server/get_next_attempt_date.test.ts similarity index 100% rename from src/plugins/telemetry/server/get_next_attempt_date.test.ts rename to src/platform/plugins/shared/telemetry/server/get_next_attempt_date.test.ts diff --git a/src/plugins/telemetry/server/get_next_attempt_date.ts b/src/platform/plugins/shared/telemetry/server/get_next_attempt_date.ts similarity index 100% rename from src/plugins/telemetry/server/get_next_attempt_date.ts rename to src/platform/plugins/shared/telemetry/server/get_next_attempt_date.ts diff --git a/src/plugins/telemetry/server/index.ts b/src/platform/plugins/shared/telemetry/server/index.ts similarity index 100% rename from src/plugins/telemetry/server/index.ts rename to src/platform/plugins/shared/telemetry/server/index.ts diff --git a/src/plugins/telemetry/server/mocks.ts b/src/platform/plugins/shared/telemetry/server/mocks.ts similarity index 100% rename from src/plugins/telemetry/server/mocks.ts rename to src/platform/plugins/shared/telemetry/server/mocks.ts diff --git a/src/plugins/telemetry/server/plugin.test.ts b/src/platform/plugins/shared/telemetry/server/plugin.test.ts similarity index 100% rename from src/plugins/telemetry/server/plugin.test.ts rename to src/platform/plugins/shared/telemetry/server/plugin.test.ts diff --git a/src/plugins/telemetry/server/plugin.ts b/src/platform/plugins/shared/telemetry/server/plugin.ts similarity index 100% rename from src/plugins/telemetry/server/plugin.ts rename to src/platform/plugins/shared/telemetry/server/plugin.ts diff --git a/src/plugins/telemetry/server/routes/index.ts b/src/platform/plugins/shared/telemetry/server/routes/index.ts similarity index 100% rename from src/plugins/telemetry/server/routes/index.ts rename to src/platform/plugins/shared/telemetry/server/routes/index.ts diff --git a/src/plugins/telemetry/server/routes/telemetry_config.ts b/src/platform/plugins/shared/telemetry/server/routes/telemetry_config.ts similarity index 100% rename from src/plugins/telemetry/server/routes/telemetry_config.ts rename to src/platform/plugins/shared/telemetry/server/routes/telemetry_config.ts diff --git a/src/plugins/telemetry/server/routes/telemetry_last_reported.ts b/src/platform/plugins/shared/telemetry/server/routes/telemetry_last_reported.ts similarity index 100% rename from src/plugins/telemetry/server/routes/telemetry_last_reported.ts rename to src/platform/plugins/shared/telemetry/server/routes/telemetry_last_reported.ts diff --git a/src/plugins/telemetry/server/routes/telemetry_opt_in.ts b/src/platform/plugins/shared/telemetry/server/routes/telemetry_opt_in.ts similarity index 100% rename from src/plugins/telemetry/server/routes/telemetry_opt_in.ts rename to src/platform/plugins/shared/telemetry/server/routes/telemetry_opt_in.ts diff --git a/src/plugins/telemetry/server/routes/telemetry_opt_in_stats.test.ts b/src/platform/plugins/shared/telemetry/server/routes/telemetry_opt_in_stats.test.ts similarity index 100% rename from src/plugins/telemetry/server/routes/telemetry_opt_in_stats.test.ts rename to src/platform/plugins/shared/telemetry/server/routes/telemetry_opt_in_stats.test.ts diff --git a/src/plugins/telemetry/server/routes/telemetry_opt_in_stats.ts b/src/platform/plugins/shared/telemetry/server/routes/telemetry_opt_in_stats.ts similarity index 100% rename from src/plugins/telemetry/server/routes/telemetry_opt_in_stats.ts rename to src/platform/plugins/shared/telemetry/server/routes/telemetry_opt_in_stats.ts diff --git a/src/plugins/telemetry/server/routes/telemetry_usage_stats.test.ts b/src/platform/plugins/shared/telemetry/server/routes/telemetry_usage_stats.test.ts similarity index 100% rename from src/plugins/telemetry/server/routes/telemetry_usage_stats.test.ts rename to src/platform/plugins/shared/telemetry/server/routes/telemetry_usage_stats.test.ts diff --git a/src/plugins/telemetry/server/routes/telemetry_usage_stats.ts b/src/platform/plugins/shared/telemetry/server/routes/telemetry_usage_stats.ts similarity index 100% rename from src/plugins/telemetry/server/routes/telemetry_usage_stats.ts rename to src/platform/plugins/shared/telemetry/server/routes/telemetry_usage_stats.ts diff --git a/src/plugins/telemetry/server/routes/telemetry_user_has_seen_notice.ts b/src/platform/plugins/shared/telemetry/server/routes/telemetry_user_has_seen_notice.ts similarity index 100% rename from src/plugins/telemetry/server/routes/telemetry_user_has_seen_notice.ts rename to src/platform/plugins/shared/telemetry/server/routes/telemetry_user_has_seen_notice.ts diff --git a/src/plugins/telemetry/server/saved_objects/constants.ts b/src/platform/plugins/shared/telemetry/server/saved_objects/constants.ts similarity index 100% rename from src/plugins/telemetry/server/saved_objects/constants.ts rename to src/platform/plugins/shared/telemetry/server/saved_objects/constants.ts diff --git a/src/plugins/telemetry/server/saved_objects/get_telemetry_saved_object.test.ts b/src/platform/plugins/shared/telemetry/server/saved_objects/get_telemetry_saved_object.test.ts similarity index 100% rename from src/plugins/telemetry/server/saved_objects/get_telemetry_saved_object.test.ts rename to src/platform/plugins/shared/telemetry/server/saved_objects/get_telemetry_saved_object.test.ts diff --git a/src/plugins/telemetry/server/saved_objects/get_telemetry_saved_object.ts b/src/platform/plugins/shared/telemetry/server/saved_objects/get_telemetry_saved_object.ts similarity index 100% rename from src/plugins/telemetry/server/saved_objects/get_telemetry_saved_object.ts rename to src/platform/plugins/shared/telemetry/server/saved_objects/get_telemetry_saved_object.ts diff --git a/src/plugins/telemetry/server/saved_objects/index.ts b/src/platform/plugins/shared/telemetry/server/saved_objects/index.ts similarity index 100% rename from src/plugins/telemetry/server/saved_objects/index.ts rename to src/platform/plugins/shared/telemetry/server/saved_objects/index.ts diff --git a/src/plugins/telemetry/server/saved_objects/register_telemetry_saved_object.ts b/src/platform/plugins/shared/telemetry/server/saved_objects/register_telemetry_saved_object.ts similarity index 100% rename from src/plugins/telemetry/server/saved_objects/register_telemetry_saved_object.ts rename to src/platform/plugins/shared/telemetry/server/saved_objects/register_telemetry_saved_object.ts diff --git a/src/plugins/telemetry/server/saved_objects/types.ts b/src/platform/plugins/shared/telemetry/server/saved_objects/types.ts similarity index 100% rename from src/plugins/telemetry/server/saved_objects/types.ts rename to src/platform/plugins/shared/telemetry/server/saved_objects/types.ts diff --git a/src/plugins/telemetry/server/saved_objects/update_telemetry_saved_object.ts b/src/platform/plugins/shared/telemetry/server/saved_objects/update_telemetry_saved_object.ts similarity index 100% rename from src/plugins/telemetry/server/saved_objects/update_telemetry_saved_object.ts rename to src/platform/plugins/shared/telemetry/server/saved_objects/update_telemetry_saved_object.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/constants.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/constants.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/constants.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/constants.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/get_cluster_info.test.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/get_cluster_info.test.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/get_cluster_info.test.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/get_cluster_info.test.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/get_cluster_info.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/get_cluster_info.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/get_cluster_info.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/get_cluster_info.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.test.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/get_cluster_stats.test.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.test.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/get_cluster_stats.test.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/get_cluster_stats.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/get_cluster_stats.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/constants.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/get_data_telemetry/constants.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/constants.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/get_data_telemetry/constants.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.test.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.test.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.test.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.test.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/index.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/get_data_telemetry/index.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/index.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/get_data_telemetry/index.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/get_kibana.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/get_kibana.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/get_kibana.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/get_kibana.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/get_local_stats.test.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/get_local_stats.test.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/get_local_stats.test.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/get_local_stats.test.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/get_local_stats.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/get_local_stats.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/get_local_stats.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/get_local_stats.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/get_nodes_usage.test.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/get_nodes_usage.test.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/get_nodes_usage.test.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/get_nodes_usage.test.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/get_nodes_usage.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/get_nodes_usage.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/get_nodes_usage.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/get_nodes_usage.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/index.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/index.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/index.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/index.ts diff --git a/src/plugins/telemetry/server/telemetry_collection/register_collection.ts b/src/platform/plugins/shared/telemetry/server/telemetry_collection/register_collection.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_collection/register_collection.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_collection/register_collection.ts diff --git a/src/plugins/telemetry/server/telemetry_config/get_telemetry_allow_changing_opt_in_status.ts b/src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_allow_changing_opt_in_status.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_config/get_telemetry_allow_changing_opt_in_status.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_allow_changing_opt_in_status.ts diff --git a/src/plugins/telemetry/server/telemetry_config/get_telemetry_failure_details.test.ts b/src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_failure_details.test.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_config/get_telemetry_failure_details.test.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_failure_details.test.ts diff --git a/src/plugins/telemetry/server/telemetry_config/get_telemetry_failure_details.ts b/src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_failure_details.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_config/get_telemetry_failure_details.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_failure_details.ts diff --git a/src/plugins/telemetry/server/telemetry_config/get_telemetry_notify_user_about_optin_default.test.ts b/src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_notify_user_about_optin_default.test.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_config/get_telemetry_notify_user_about_optin_default.test.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_notify_user_about_optin_default.test.ts diff --git a/src/plugins/telemetry/server/telemetry_config/get_telemetry_notify_user_about_optin_default.ts b/src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_notify_user_about_optin_default.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_config/get_telemetry_notify_user_about_optin_default.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_notify_user_about_optin_default.ts diff --git a/src/plugins/telemetry/server/telemetry_config/get_telemetry_opt_in.test.ts b/src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_opt_in.test.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_config/get_telemetry_opt_in.test.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_opt_in.test.ts diff --git a/src/plugins/telemetry/server/telemetry_config/get_telemetry_opt_in.ts b/src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_opt_in.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_config/get_telemetry_opt_in.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_opt_in.ts diff --git a/src/plugins/telemetry/server/telemetry_config/get_telemetry_send_usage_from.test.ts b/src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_send_usage_from.test.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_config/get_telemetry_send_usage_from.test.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_send_usage_from.test.ts diff --git a/src/plugins/telemetry/server/telemetry_config/get_telemetry_send_usage_from.ts b/src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_send_usage_from.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_config/get_telemetry_send_usage_from.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_config/get_telemetry_send_usage_from.ts diff --git a/src/plugins/telemetry/server/telemetry_config/index.ts b/src/platform/plugins/shared/telemetry/server/telemetry_config/index.ts similarity index 100% rename from src/plugins/telemetry/server/telemetry_config/index.ts rename to src/platform/plugins/shared/telemetry/server/telemetry_config/index.ts diff --git a/src/plugins/telemetry/tsconfig.json b/src/platform/plugins/shared/telemetry/tsconfig.json similarity index 92% rename from src/plugins/telemetry/tsconfig.json rename to src/platform/plugins/shared/telemetry/tsconfig.json index 68a9e0118e0fc..79fdafb2f991b 100644 --- a/src/plugins/telemetry/tsconfig.json +++ b/src/platform/plugins/shared/telemetry/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true @@ -8,7 +8,7 @@ "public/**/**/*", "server/**/**/*", "common/**/*", - "../../../typings/**/*", + "../../../../../typings/**/*", "schema/*.json", ], "kbn_references": [ diff --git a/test/plugin_functional/plugins/telemetry/package.json b/test/plugin_functional/plugins/telemetry/package.json index 688a77b3f6e54..3a94f4d4ea136 100644 --- a/test/plugin_functional/plugins/telemetry/package.json +++ b/test/plugin_functional/plugins/telemetry/package.json @@ -1,7 +1,7 @@ { "name": "@kbn/telemetry-test-plugin", "version": "1.0.0", - "main": "target/test/plugin_functional/plugins/telemetry", + "main": "target/test/plugin_functional/platform/plugins/shared/telemetry", "kibana": { "version": "kibana", "templateVersion": "1.0.0" diff --git a/tsconfig.base.json b/tsconfig.base.json index 43c362b9a9666..36dd7681432f4 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1900,8 +1900,8 @@ "@kbn/telemetry-collection-xpack-plugin/*": ["x-pack/platform/plugins/private/telemetry_collection_xpack/*"], "@kbn/telemetry-management-section-plugin": ["src/platform/plugins/shared/telemetry_management_section"], "@kbn/telemetry-management-section-plugin/*": ["src/platform/plugins/shared/telemetry_management_section/*"], - "@kbn/telemetry-plugin": ["src/plugins/telemetry"], - "@kbn/telemetry-plugin/*": ["src/plugins/telemetry/*"], + "@kbn/telemetry-plugin": ["src/platform/plugins/shared/telemetry"], + "@kbn/telemetry-plugin/*": ["src/platform/plugins/shared/telemetry/*"], "@kbn/telemetry-test-plugin": ["test/plugin_functional/plugins/telemetry"], "@kbn/telemetry-test-plugin/*": ["test/plugin_functional/plugins/telemetry/*"], "@kbn/telemetry-tools": ["packages/kbn-telemetry-tools"], diff --git a/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/README.md b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/README.md index 6cb825336aca5..09deab41d0382 100644 --- a/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/README.md +++ b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/README.md @@ -1,6 +1,6 @@ # X-Pack Telemetry Schemas -This is an extension of the [OSS Telemetry Schemas](../../../../../../src/plugins/telemetry/schema) to add the X-Pack-related data. The payloads described in these `.json` files must be merged to the OSS ones to get the structure of the full payload sent to the Remote Telemetry Service. All the files follow the schema convention as defined in the `usage_collection` plugin and `@kbn/telemetry-tools`. +This is an extension of the [OSS Telemetry Schemas](../../../../../../src/platform/plugins/shared/telemetry/schema) to add the X-Pack-related data. The payloads described in these `.json` files must be merged to the OSS ones to get the structure of the full payload sent to the Remote Telemetry Service. All the files follow the schema convention as defined in the `usage_collection` plugin and `@kbn/telemetry-tools`. There are currently 7 files: @@ -19,4 +19,4 @@ NOTE: Despite its similarities to ES mappings, the intention of these files is n ## Testing -Functional tests are defined at `x-pack/test/api_integration/apis/telemetry/telemetry_local.ts`. They merge these files (+ the [OSS definitions](../../../../../../src/plugins/telemetry/schema)), and validates the actual output of the telemetry endpoint against the final schema. \ No newline at end of file +Functional tests are defined at `x-pack/test/api_integration/apis/telemetry/telemetry_local.ts`. They merge these files (+ the [OSS definitions](../../../../../../src/platform/plugins/shared/telemetry/schema)), and validates the actual output of the telemetry endpoint against the final schema. \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index efd204a76df7a..6a7e58d9d7299 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7617,7 +7617,7 @@ version "0.0.0" uid "" -"@kbn/telemetry-plugin@link:src/plugins/telemetry": +"@kbn/telemetry-plugin@link:src/platform/plugins/shared/telemetry": version "0.0.0" uid "" From f49dbc08ffb36fdf2bf522310224e7182ed65998 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:15:58 +0100 Subject: [PATCH 159/167] Relocating module `@kbn/upgrade-assistant-plugin` --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- tsconfig.base.json | 4 ++-- x-pack/.i18nrc.json | 2 +- .../plugins/private}/upgrade_assistant/README.md | 10 +++++----- .../__jest__/client_integration/app/app.helpers.tsx | 0 .../client_integration/app/cluster_upgrade.test.tsx | 0 .../client_integration/app/privileges.test.tsx | 0 .../es_deprecation_logs/es_deprecation_logs.helpers.ts | 0 .../es_deprecation_logs/es_deprecation_logs.test.tsx | 0 .../cluster_settings_deprecation_flyout.test.ts | 0 .../es_deprecations/default_deprecation_flyout.test.ts | 0 .../es_deprecations/deprecations_list.test.ts | 0 .../es_deprecations/error_handling.test.ts | 0 .../es_deprecations/es_deprecations.helpers.ts | 0 .../index_settings_deprecation_flyout.test.ts | 0 .../ml_snapshots_deprecation_flyout.test.ts | 0 .../es_deprecations/mocked_responses.ts | 0 .../es_deprecations/reindex_deprecation_flyout.test.ts | 0 .../client_integration/helpers/app_context.mock.ts | 0 .../client_integration/helpers/http_requests.ts | 0 .../__jest__/client_integration/helpers/index.ts | 0 .../client_integration/helpers/setup_environment.tsx | 0 .../client_integration/helpers/time_manipulation.ts | 0 .../deprecation_details_flyout.test.ts | 0 .../deprecations_table/deprecations_table.test.ts | 0 .../deprecations_table/error_handling.test.ts | 0 .../kibana_deprecations/kibana_deprecations.helpers.ts | 0 .../kibana_deprecations/service.mock.ts | 0 .../overview/backup_step/backup_step.test.tsx | 0 .../elasticsearch_deprecation_issues.test.tsx | 0 .../overview/fix_issues_step/fix_issues_step.test.tsx | 0 .../fix_issues_step/kibana_deprecation_issues.test.tsx | 0 .../overview/fix_issues_step/mock_es_issues.ts | 0 .../overview/logs_step/logs_step.test.tsx | 0 .../__snapshots__/flyout.test.ts.snap | 0 .../overview/migrate_system_indices/flyout.test.ts | 0 .../migrate_system_indices.test.tsx | 0 .../overview/migrate_system_indices/mocks.ts | 0 .../migrate_system_indices/step_completion.test.ts | 0 .../client_integration/overview/overview.helpers.ts | 0 .../client_integration/overview/overview.test.tsx | 0 .../overview/upgrade_step/upgrade_step.test.tsx | 0 .../private}/upgrade_assistant/common/constants.ts | 0 .../upgrade_assistant/common/get_index_state.test.ts | 0 .../upgrade_assistant/common/get_index_state.ts | 0 .../plugins/private}/upgrade_assistant/common/types.ts | 0 .../plugins/private}/upgrade_assistant/jest.config.js | 8 ++++---- .../plugins/private}/upgrade_assistant/kibana.jsonc | 0 .../upgrade_assistant/public/application/app.tsx | 0 .../public/application/app_context.tsx | 0 .../public/application/components/constants.tsx | 0 .../es_deprecation_logs/es_deprecation_logs.tsx | 0 .../_deprecation_logging_toggle.scss | 0 .../deprecation_logging_toggle.tsx | 0 .../deprecation_logging_toggle/index.ts | 0 .../deprecations_count_checkpoint.tsx | 0 .../deprecations_count_checkpoint/index.ts | 0 .../fix_deprecation_logs/external_links.test.ts | 0 .../fix_deprecation_logs/external_links.tsx | 0 .../fix_deprecation_logs/fix_deprecation_logs.tsx | 0 .../es_deprecation_logs/fix_deprecation_logs/index.ts | 0 .../fix_deprecation_logs/use_deprecation_logging.ts | 0 .../components/es_deprecation_logs/index.ts | 0 .../deprecation_types/cluster_settings/flyout.tsx | 0 .../deprecation_types/cluster_settings/index.ts | 0 .../cluster_settings/resolution_table_cell.tsx | 0 .../deprecation_types/cluster_settings/table_row.tsx | 0 .../deprecation_types/default/flyout.tsx | 0 .../es_deprecations/deprecation_types/default/index.ts | 0 .../deprecation_types/default/table_row.tsx | 0 .../deprecation_types/health_indicator/flyout.tsx | 0 .../deprecation_types/health_indicator/index.ts | 0 .../deprecation_types/health_indicator/table_row.tsx | 0 .../es_deprecations/deprecation_types/index.tsx | 0 .../deprecation_types/index_settings/flyout.tsx | 0 .../deprecation_types/index_settings/index.ts | 0 .../index_settings/resolution_table_cell.tsx | 0 .../deprecation_types/index_settings/table_row.tsx | 0 .../deprecation_types/ml_snapshots/context.tsx | 0 .../deprecation_types/ml_snapshots/flyout.tsx | 0 .../deprecation_types/ml_snapshots/index.ts | 0 .../ml_snapshots/resolution_table_cell.tsx | 0 .../deprecation_types/ml_snapshots/table_row.tsx | 0 .../ml_snapshots/use_snapshot_state.tsx | 0 .../deprecation_types/reindex/context.tsx | 0 .../flyout/__snapshots__/checklist_step.test.tsx.snap | 0 .../flyout/__snapshots__/warning_step.test.tsx.snap | 0 .../reindex/flyout/_step_progress.scss | 0 .../reindex/flyout/checklist_step.test.tsx | 0 .../reindex/flyout/checklist_step.tsx | 0 .../deprecation_types/reindex/flyout/container.tsx | 0 .../deprecation_types/reindex/flyout/index.tsx | 0 .../deprecation_types/reindex/flyout/progress.test.tsx | 0 .../deprecation_types/reindex/flyout/progress.tsx | 0 .../deprecation_types/reindex/flyout/step_progress.tsx | 0 .../reindex/flyout/warning_step.test.tsx | 0 .../reindex/flyout/warning_step_checkbox.tsx | 0 .../deprecation_types/reindex/flyout/warnings_step.tsx | 0 .../deprecation_types/reindex/index.tsx | 0 .../reindex/resolution_table_cell.tsx | 0 .../deprecation_types/reindex/table_row.tsx | 0 .../deprecation_types/reindex/use_reindex_state.tsx | 0 .../components/es_deprecations/es_deprecations.tsx | 0 .../es_deprecations/es_deprecations_table.tsx | 0 .../es_deprecations/es_deprecations_table_cells.tsx | 0 .../application/components/es_deprecations/index.ts | 0 .../public/application/components/index.ts | 0 .../_deprecation_details_flyout.scss | 0 .../kibana_deprecations/deprecation_details_flyout.tsx | 0 .../components/kibana_deprecations/index.ts | 0 .../kibana_deprecations/kibana_deprecations.tsx | 0 .../kibana_deprecations/kibana_deprecations_table.tsx | 0 .../kibana_deprecations/resolution_table_cell.tsx | 0 .../components/overview/backup_step/backup_step.tsx | 0 .../components/overview/backup_step/cloud_backup.tsx | 0 .../components/overview/backup_step/index.ts | 0 .../components/overview/backup_step/on_prem_backup.tsx | 0 .../components/_deprecation_issues_panel.scss | 0 .../components/deprecation_issues_panel.tsx | 0 .../components/es_deprecation_issues_panel.tsx | 0 .../overview/fix_issues_step/components/index.ts | 0 .../components/kibana_deprecation_issues_panel.tsx | 0 .../components/loading_issues_error.tsx | 0 .../components/no_deprecation_issues.tsx | 0 .../overview/fix_issues_step/fix_issues_step.tsx | 0 .../components/overview/fix_issues_step/index.ts | 0 .../public/application/components/overview/index.ts | 0 .../application/components/overview/logs_step/index.ts | 0 .../components/overview/logs_step/logs_step.tsx | 0 .../overview/migrate_system_indices/flyout.tsx | 0 .../overview/migrate_system_indices/index.ts | 0 .../migrate_system_indices/migrate_system_indices.tsx | 0 .../use_migrate_system_indices.ts | 0 .../application/components/overview/overview.tsx | 0 .../components/overview/upgrade_step/index.ts | 0 .../components/overview/upgrade_step/upgrade_step.tsx | 0 .../components/shared/deprecation_badge.tsx | 0 .../components/shared/deprecation_count.tsx | 0 .../shared/deprecation_flyout_learn_more_link.tsx | 0 .../shared/deprecations_page_loading_error.tsx | 0 .../public/application/components/shared/index.ts | 0 .../application/components/shared/level_info_tip.tsx | 0 .../application/components/shared/no_deprecations.tsx | 0 .../public/application/components/types.ts | 0 .../upgrade_assistant/public/application/lib/api.ts | 0 .../public/application/lib/breadcrumbs.ts | 0 .../public/application/lib/get_es_deprecation_error.ts | 0 .../public/application/lib/logs_checkpoint.ts | 0 .../public/application/lib/ui_metric.ts | 0 .../public/application/lib/utils.test.ts | 0 .../upgrade_assistant/public/application/lib/utils.ts | 0 .../public/application/mount_management_section.tsx | 0 .../plugins/private}/upgrade_assistant/public/index.ts | 0 .../private}/upgrade_assistant/public/plugin.ts | 0 .../upgrade_assistant/public/shared_imports.ts | 0 .../plugins/private}/upgrade_assistant/public/types.ts | 0 .../private}/upgrade_assistant/server/config.ts | 0 .../plugins/private}/upgrade_assistant/server/index.ts | 0 .../server/lib/__fixtures__/es_deprecations.ts | 0 .../server/lib/__fixtures__/fake_deprecations.json | 0 .../server/lib/__fixtures__/health_indicators.ts | 0 .../server/lib/__fixtures__/version.ts | 0 .../server/lib/__mocks__/es_version_precheck.ts | 0 .../lib/__snapshots__/kibana_status.test.ts.snap | 0 .../server/lib/es_deprecation_logging_apis.test.ts | 0 .../server/lib/es_deprecation_logging_apis.ts | 0 .../__snapshots__/index.test.ts.snap | 0 .../es_deprecations_status/get_corrective_actions.ts | 0 .../es_deprecations_status/health_indicators.test.ts | 0 .../lib/es_deprecations_status/health_indicators.ts | 0 .../server/lib/es_deprecations_status/index.test.ts | 0 .../server/lib/es_deprecations_status/index.ts | 0 .../server/lib/es_deprecations_status/migrations.ts | 0 .../server/lib/es_indices_state_check.ts | 0 .../server/lib/es_system_indices_migration.test.ts | 0 .../server/lib/es_system_indices_migration.ts | 0 .../server/lib/es_version_precheck.test.ts | 0 .../server/lib/es_version_precheck.ts | 0 .../upgrade_assistant/server/lib/kibana_status.test.ts | 0 .../upgrade_assistant/server/lib/kibana_status.ts | 0 .../server/lib/reindexing/credential_store.test.ts | 0 .../server/lib/reindexing/credential_store.ts | 0 .../upgrade_assistant/server/lib/reindexing/error.ts | 0 .../server/lib/reindexing/error_symbols.ts | 0 .../upgrade_assistant/server/lib/reindexing/index.ts | 0 .../server/lib/reindexing/index_settings.test.ts | 0 .../server/lib/reindexing/index_settings.ts | 0 .../server/lib/reindexing/op_utils.ts | 0 .../server/lib/reindexing/reindex_actions.test.ts | 0 .../server/lib/reindexing/reindex_actions.ts | 0 .../server/lib/reindexing/reindex_service.test.ts | 0 .../server/lib/reindexing/reindex_service.ts | 0 .../upgrade_assistant/server/lib/reindexing/types.ts | 0 .../upgrade_assistant/server/lib/reindexing/worker.ts | 0 .../upgrade_assistant/server/lib/telemetry/index.ts | 0 .../server/lib/telemetry/usage_collector.test.ts | 0 .../server/lib/telemetry/usage_collector.ts | 0 .../private}/upgrade_assistant/server/lib/version.ts | 0 .../private}/upgrade_assistant/server/plugin.ts | 0 .../server/routes/__mocks__/request.mock.ts | 0 .../server/routes/__mocks__/routes.mock.ts | 0 .../private}/upgrade_assistant/server/routes/app.ts | 0 .../server/routes/cloud_backup_status.ts | 0 .../server/routes/cluster_settings.ts | 0 .../server/routes/cluster_upgrade_status.ts | 0 .../server/routes/deprecation_logging.test.ts | 0 .../server/routes/deprecation_logging.ts | 0 .../server/routes/es_deprecations.test.ts | 0 .../upgrade_assistant/server/routes/es_deprecations.ts | 0 .../server/routes/ml_snapshots.test.ts | 0 .../upgrade_assistant/server/routes/ml_snapshots.ts | 0 .../server/routes/node_disk_space.test.ts | 0 .../upgrade_assistant/server/routes/node_disk_space.ts | 0 .../upgrade_assistant/server/routes/register_routes.ts | 0 .../reindex_indices/batch_reindex_indices.test.ts | 0 .../routes/reindex_indices/batch_reindex_indices.ts | 0 .../routes/reindex_indices/create_reindex_worker.ts | 0 .../server/routes/reindex_indices/index.ts | 0 .../map_any_error_to_kibana_http_response.ts | 0 .../server/routes/reindex_indices/reindex_handler.ts | 0 .../routes/reindex_indices/reindex_indices.test.ts | 0 .../server/routes/reindex_indices/reindex_indices.ts | 0 .../server/routes/reindex_indices/types.ts | 0 .../upgrade_assistant/server/routes/remote_clusters.ts | 0 .../upgrade_assistant/server/routes/status.test.ts | 0 .../private}/upgrade_assistant/server/routes/status.ts | 0 .../server/routes/system_indices_migration.test.ts | 0 .../server/routes/system_indices_migration.ts | 0 .../server/routes/update_index_settings.ts | 0 .../server/saved_object_types/index.ts | 0 .../ml_upgrade_operation_saved_object_type.ts | 0 .../reindex_operation_saved_object_type.ts | 0 .../upgrade_assistant/server/shared_imports.ts | 0 .../plugins/private}/upgrade_assistant/server/types.ts | 0 .../plugins/private}/upgrade_assistant/tsconfig.json | 4 ++-- yarn.lock | 2 +- 238 files changed, 18 insertions(+), 18 deletions(-) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/README.md (95%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/app/app.helpers.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/app/cluster_upgrade.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/app/privileges.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/es_deprecation_logs/es_deprecation_logs.helpers.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/es_deprecation_logs/es_deprecation_logs.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/es_deprecations/cluster_settings_deprecation_flyout.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/es_deprecations/default_deprecation_flyout.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/es_deprecations/deprecations_list.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/es_deprecations/error_handling.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/es_deprecations/es_deprecations.helpers.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/es_deprecations/index_settings_deprecation_flyout.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/es_deprecations/ml_snapshots_deprecation_flyout.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/es_deprecations/mocked_responses.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/es_deprecations/reindex_deprecation_flyout.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/helpers/app_context.mock.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/helpers/http_requests.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/helpers/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/helpers/setup_environment.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/helpers/time_manipulation.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecation_details_flyout/deprecation_details_flyout.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/deprecations_table.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/error_handling.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/kibana_deprecations/kibana_deprecations.helpers.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/kibana_deprecations/service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/backup_step/backup_step.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/elasticsearch_deprecation_issues.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/fix_issues_step.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/kibana_deprecation_issues.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/mock_es_issues.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/logs_step/logs_step.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/__snapshots__/flyout.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/flyout.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/migrate_system_indices.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/step_completion.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/overview.helpers.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/overview.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/__jest__/client_integration/overview/upgrade_step/upgrade_step.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/common/constants.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/common/get_index_state.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/common/get_index_state.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/common/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/jest.config.js (62%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/app.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/app_context.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/constants.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecation_logs/es_deprecation_logs.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/_deprecation_logging_toggle.scss (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/deprecation_logging_toggle.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecations_count_checkpoint/deprecations_count_checkpoint.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecations_count_checkpoint/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/fix_deprecation_logs.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/use_deprecation_logging.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecation_logs/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/flyout.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/resolution_table_cell.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/table_row.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/flyout.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/table_row.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/flyout.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/table_row.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/flyout.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/resolution_table_cell.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/table_row.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/context.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/flyout.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/resolution_table_cell.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/table_row.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/use_snapshot_state.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/context.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/__snapshots__/checklist_step.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/__snapshots__/warning_step.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/_step_progress.scss (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/checklist_step.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/checklist_step.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/container.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/index.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/progress.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/progress.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/step_progress.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warning_step.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warning_step_checkbox.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warnings_step.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/index.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/resolution_table_cell.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/table_row.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/use_reindex_state.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/es_deprecations_table.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/es_deprecations_table_cells.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/es_deprecations/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/kibana_deprecations/_deprecation_details_flyout.scss (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/kibana_deprecations/deprecation_details_flyout.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/kibana_deprecations/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/kibana_deprecations/kibana_deprecations.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/kibana_deprecations/kibana_deprecations_table.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/kibana_deprecations/resolution_table_cell.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/backup_step/backup_step.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/backup_step/cloud_backup.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/backup_step/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/backup_step/on_prem_backup.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/fix_issues_step/components/_deprecation_issues_panel.scss (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/fix_issues_step/components/deprecation_issues_panel.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/fix_issues_step/components/es_deprecation_issues_panel.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/fix_issues_step/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/fix_issues_step/components/kibana_deprecation_issues_panel.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/fix_issues_step/components/loading_issues_error.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/fix_issues_step/components/no_deprecation_issues.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/fix_issues_step/fix_issues_step.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/fix_issues_step/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/logs_step/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/logs_step/logs_step.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/migrate_system_indices/flyout.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/migrate_system_indices/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/migrate_system_indices/migrate_system_indices.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/migrate_system_indices/use_migrate_system_indices.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/overview.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/upgrade_step/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/overview/upgrade_step/upgrade_step.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/shared/deprecation_badge.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/shared/deprecation_count.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/shared/deprecation_flyout_learn_more_link.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/shared/deprecations_page_loading_error.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/shared/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/shared/level_info_tip.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/shared/no_deprecations.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/components/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/lib/api.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/lib/breadcrumbs.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/lib/get_es_deprecation_error.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/lib/logs_checkpoint.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/lib/ui_metric.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/lib/utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/lib/utils.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/application/mount_management_section.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/shared_imports.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/__fixtures__/es_deprecations.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/__fixtures__/fake_deprecations.json (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/__fixtures__/health_indicators.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/__fixtures__/version.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/__mocks__/es_version_precheck.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/__snapshots__/kibana_status.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_deprecation_logging_apis.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_deprecation_logging_apis.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_deprecations_status/__snapshots__/index.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_deprecations_status/get_corrective_actions.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_deprecations_status/health_indicators.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_deprecations_status/health_indicators.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_deprecations_status/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_deprecations_status/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_deprecations_status/migrations.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_indices_state_check.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_system_indices_migration.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_system_indices_migration.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_version_precheck.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/es_version_precheck.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/kibana_status.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/kibana_status.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/credential_store.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/credential_store.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/error.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/error_symbols.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/index_settings.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/index_settings.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/op_utils.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/reindex_actions.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/reindex_actions.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/reindex_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/reindex_service.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/reindexing/worker.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/telemetry/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/telemetry/usage_collector.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/telemetry/usage_collector.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/lib/version.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/__mocks__/request.mock.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/__mocks__/routes.mock.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/app.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/cloud_backup_status.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/cluster_settings.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/cluster_upgrade_status.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/deprecation_logging.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/deprecation_logging.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/es_deprecations.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/es_deprecations.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/ml_snapshots.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/ml_snapshots.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/node_disk_space.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/node_disk_space.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/register_routes.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/reindex_indices/batch_reindex_indices.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/reindex_indices/batch_reindex_indices.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/reindex_indices/create_reindex_worker.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/reindex_indices/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/reindex_indices/map_any_error_to_kibana_http_response.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/reindex_indices/reindex_handler.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/reindex_indices/reindex_indices.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/reindex_indices/reindex_indices.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/reindex_indices/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/remote_clusters.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/status.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/status.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/system_indices_migration.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/system_indices_migration.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/routes/update_index_settings.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/saved_object_types/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/saved_object_types/ml_upgrade_operation_saved_object_type.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/saved_object_types/reindex_operation_saved_object_type.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/shared_imports.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/upgrade_assistant/tsconfig.json (93%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b179725827074..1caa6d88affb7 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -858,6 +858,7 @@ x-pack/platform/plugins/private/snapshot_restore @elastic/kibana-management x-pack/platform/plugins/private/telemetry_collection_xpack @elastic/kibana-core x-pack/platform/plugins/private/transform @elastic/ml-ui x-pack/platform/plugins/private/translations @elastic/kibana-localization +x-pack/platform/plugins/private/upgrade_assistant @elastic/kibana-core x-pack/platform/plugins/private/watcher @elastic/kibana-management x-pack/platform/plugins/shared/actions @elastic/response-ops x-pack/platform/plugins/shared/ai_infra/llm_tasks @elastic/appex-ai-infra @@ -904,7 +905,6 @@ x-pack/plugins/graph @elastic/kibana-visualizations x-pack/plugins/lens @elastic/kibana-visualizations x-pack/plugins/security @elastic/kibana-security x-pack/plugins/spaces @elastic/kibana-security -x-pack/plugins/upgrade_assistant @elastic/kibana-core x-pack/solutions/observability/packages/alert_details @elastic/obs-ux-management-team x-pack/solutions/observability/packages/alerting_test_data @elastic/obs-ux-management-team x-pack/solutions/observability/packages/get_padded_alert_time_range_util @elastic/obs-ux-management-team diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 4da5f3a5e5501..9167d3b6ab6c9 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -957,7 +957,7 @@ For adding localizations and instrument a ui to support translated content, see As a developer you can reuse and extend built-in alerts and actions UI functionality: -|{kib-repo}blob/{branch}/x-pack/plugins/upgrade_assistant/README.md[upgradeAssistant] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/upgrade_assistant/README.md[upgradeAssistant] |Upgrade Assistant helps users prepare their Stack for being upgraded to the next version of the Elastic stack. diff --git a/package.json b/package.json index 83556863a3f4e..ae013fb8a9234 100644 --- a/package.json +++ b/package.json @@ -994,7 +994,7 @@ "@kbn/unified-search-plugin": "link:src/plugins/unified_search", "@kbn/unsaved-changes-badge": "link:src/platform/packages/private/kbn-unsaved-changes-badge", "@kbn/unsaved-changes-prompt": "link:src/platform/packages/shared/kbn-unsaved-changes-prompt", - "@kbn/upgrade-assistant-plugin": "link:x-pack/plugins/upgrade_assistant", + "@kbn/upgrade-assistant-plugin": "link:x-pack/platform/plugins/private/upgrade_assistant", "@kbn/uptime-plugin": "link:x-pack/solutions/observability/plugins/uptime", "@kbn/url-drilldown-plugin": "link:x-pack/plugins/drilldowns/url_drilldown", "@kbn/url-forwarding-plugin": "link:src/plugins/url_forwarding", diff --git a/tsconfig.base.json b/tsconfig.base.json index 36dd7681432f4..aa9de4b42b988 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -2002,8 +2002,8 @@ "@kbn/unsaved-changes-badge/*": ["src/platform/packages/private/kbn-unsaved-changes-badge/*"], "@kbn/unsaved-changes-prompt": ["src/platform/packages/shared/kbn-unsaved-changes-prompt"], "@kbn/unsaved-changes-prompt/*": ["src/platform/packages/shared/kbn-unsaved-changes-prompt/*"], - "@kbn/upgrade-assistant-plugin": ["x-pack/plugins/upgrade_assistant"], - "@kbn/upgrade-assistant-plugin/*": ["x-pack/plugins/upgrade_assistant/*"], + "@kbn/upgrade-assistant-plugin": ["x-pack/platform/plugins/private/upgrade_assistant"], + "@kbn/upgrade-assistant-plugin/*": ["x-pack/platform/plugins/private/upgrade_assistant/*"], "@kbn/uptime-plugin": ["x-pack/solutions/observability/plugins/uptime"], "@kbn/uptime-plugin/*": ["x-pack/solutions/observability/plugins/uptime/*"], "@kbn/url-drilldown-plugin": ["x-pack/plugins/drilldowns/url_drilldown"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index e7b1adfb70000..145183a60c895 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -165,7 +165,7 @@ "xpack.timelines": "solutions/security/plugins/timelines", "xpack.transform": "platform/plugins/private/transform", "xpack.triggersActionsUI": "platform/plugins/shared/triggers_actions_ui", - "xpack.upgradeAssistant": "plugins/upgrade_assistant", + "xpack.upgradeAssistant": "platform/plugins/private/upgrade_assistant", "xpack.uptime": [ "solutions/observability/plugins/uptime" ], diff --git a/x-pack/plugins/upgrade_assistant/README.md b/x-pack/platform/plugins/private/upgrade_assistant/README.md similarity index 95% rename from x-pack/plugins/upgrade_assistant/README.md rename to x-pack/platform/plugins/private/upgrade_assistant/README.md index 39bebc15e44b1..c08241b4c50e7 100644 --- a/x-pack/plugins/upgrade_assistant/README.md +++ b/x-pack/platform/plugins/private/upgrade_assistant/README.md @@ -16,7 +16,7 @@ Some features of the UA are only needed when upgrading to a new major version. T When we want to enable ML model snapshot deprecation warnings again we need to change the constant `MachineLearningField.MIN_CHECKED_SUPPORTED_SNAPSHOT_VERSION` to something higher than 7.0.0 in the Elasticsearch code. * Migrating system indices (`featureSet.migrateSystemIndices`): Migrating system indices should only be enabled for major version upgrades. This config hides the second step from the UA UI for migrating system indices. * Reindex Data Streams (`featureSet.migrateDataStreams`): Migrating deprecated Data streams should only be enabled for major version upgrades. The purpose of this feature guard is to hide all data streams related deprecations from the end user until the next major upgrade. -* Reindex corrective actions (`featureSet.reindexCorrectiveActions`): Deprecations with reindexing corrective actions are only enabled for major version upgrades. Currently, the reindex actions include some logic that is specific to the [8.0 upgrade](https://github.com/elastic/kibana/blob/main/x-pack/plugins/upgrade_assistant/server/lib/reindexing/index_settings.ts). End users could get into a bad situation if this is enabled before this logic is fixed. +* Reindex corrective actions (`featureSet.reindexCorrectiveActions`): Deprecations with reindexing corrective actions are only enabled for major version upgrades. Currently, the reindex actions include some logic that is specific to the [8.0 upgrade](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/index_settings.ts). End users could get into a bad situation if this is enabled before this logic is fixed. ## Deprecations @@ -38,7 +38,7 @@ deprecations are discovered as data is migrated. Starting in 7.x, deprecation lo Elasticsearch deprecations can be handled in a number of ways: * **Reindexing.** When a user's index contains deprecations (e.g. mappings) a reindex solves them. The Upgrade Assistant only automates reindexing for indices. For example, if you are currently on 7.x, and want to migrate to 8.0, but you still have indices that were created on 6.x. For this scenario, the user will see a "Reindex" button that they can click, which will perform the reindex. - * Reindexing is an idempotent action in Upgrade Assistant. It works like this ([overview in code](https://github.com/elastic/kibana/blob/b320a37d8b703b2fa101a93b6971b36ee2c37f06/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts#L498-L540)): + * Reindexing is an idempotent action in Upgrade Assistant. It works like this ([overview in code](https://github.com/elastic/kibana/blob/b320a37d8b703b2fa101a93b6971b36ee2c37f06/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/reindex_service.ts#L498-L540)): 1. Set a write-block on the original index, no new data can be written during reindexing. 2. Create a target index with the following name `reindexed-v{majorVersion}-{originalIndex}`. E.g., if `my-index` is the original, the target will be named `reindexed-v8-my-index`. 3. [Reindex](https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html) from the original index to the target index. Kibana will continuously report reindexing status. @@ -51,7 +51,7 @@ Elasticsearch deprecations can be handled in a number of ways: Currently reindexing deprecations are only enabled for major version upgrades by setting the config `featureSet.reindexCorrectiveActions` to `true` on the `x.last` version of the stack. -Reindexing at the moment includes some logic that is specific to the [8.0 upgrade](https://github.com/elastic/kibana/blob/main/x-pack/plugins/upgrade_assistant/server/lib/reindexing/index_settings.ts). End users could get into a bad situation if this is enabled before this logic is fixed. +Reindexing at the moment includes some logic that is specific to the [8.0 upgrade](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/index_settings.ts). End users could get into a bad situation if this is enabled before this logic is fixed. * **Removing settings.** Some index and cluser settings are deprecated and need to be removed. The Upgrade Assistant provides a way to auto-resolve these settings via a "Remove deprecated settings" button. Migrating system indices should only be enabled for major version upgrades. This is controlled by the config `featureSet.migrateSystemIndices` which hides the second step from the UA UI for migrating system indices. * **Upgrading or deleting snapshots**. This is specific to Machine Learning. If a user has old Machine Learning job model snapshots, they will need to be upgraded or deleted. The Upgrade Assistant provides a way to resolve this automatically for the user ([#100066](https://github.com/elastic/kibana/pull/100066)). Deprecations related to ML snapshots are only enabled during `x.last` version of the stack. This is controlled by the `featureSet.mlSnapshots` config. When we want to enable ML model snapshot deprecation warnings again we need to change the constant `MachineLearningField.MIN_CHECKED_SUPPORTED_SNAPSHOT_VERSION` to something higher than `7.0.0` in the Elasticsearch code. @@ -334,8 +334,8 @@ For a complete list of Kibana deprecations, refer to the [8.0 Kibana deprecation This is a non-exhaustive list of different error scenarios in Upgrade Assistant. It's recommended to use the [tweak browser extension](https://chrome.google.com/webstore/detail/tweak-mock-api-calls/feahianecghpnipmhphmfgmpdodhcapi?hl=en), or something similar, to mock the API calls. -- **Error loading deprecation logging status.** Mock a `404` status code to `GET /api/upgrade_assistant/deprecation_logging`. Alternatively, edit [this line](https://github.com/elastic/kibana/blob/545c1420c285af8f5eee56f414bd6eca735aea11/x-pack/plugins/upgrade_assistant/public/application/lib/api.ts#L70) locally and replace `deprecation_logging` with `fake_deprecation_logging`. -- **Error updating deprecation logging status.** Mock a `404` status code to `PUT /api/upgrade_assistant/deprecation_logging`. Alternatively, edit [this line](https://github.com/elastic/kibana/blob/545c1420c285af8f5eee56f414bd6eca735aea11/x-pack/plugins/upgrade_assistant/public/application/lib/api.ts#L77) locally and replace `deprecation_logging` with `fake_deprecation_logging`. +- **Error loading deprecation logging status.** Mock a `404` status code to `GET /api/upgrade_assistant/deprecation_logging`. Alternatively, edit [this line](https://github.com/elastic/kibana/blob/545c1420c285af8f5eee56f414bd6eca735aea11/x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/api.ts#L70) locally and replace `deprecation_logging` with `fake_deprecation_logging`. +- **Error updating deprecation logging status.** Mock a `404` status code to `PUT /api/upgrade_assistant/deprecation_logging`. Alternatively, edit [this line](https://github.com/elastic/kibana/blob/545c1420c285af8f5eee56f414bd6eca735aea11/x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/api.ts#L77) locally and replace `deprecation_logging` with `fake_deprecation_logging`. - **Unauthorized error fetching ES deprecations.** Mock a `403` status code to `GET /api/upgrade_assistant/es_deprecations` with the response payload: `{ "statusCode": 403 }` - **Partially upgraded error fetching ES deprecations.** Mock a `426` status code to `GET /api/upgrade_assistant/es_deprecations` with the response payload: `{ "statusCode": 426, "attributes": { "allNodesUpgraded": false } }` - **Upgraded error fetching ES deprecations.** Mock a `426` status code to `GET /api/upgrade_assistant/es_deprecations` with the response payload: `{ "statusCode": 426, "attributes": { "allNodesUpgraded": true } }` diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/app/app.helpers.tsx b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/app/app.helpers.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/app/app.helpers.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/app/app.helpers.tsx diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/app/cluster_upgrade.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/app/cluster_upgrade.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/app/cluster_upgrade.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/app/cluster_upgrade.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/app/privileges.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/app/privileges.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/app/privileges.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/app/privileges.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecation_logs/es_deprecation_logs.helpers.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecation_logs/es_deprecation_logs.helpers.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecation_logs/es_deprecation_logs.helpers.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecation_logs/es_deprecation_logs.helpers.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecation_logs/es_deprecation_logs.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecation_logs/es_deprecation_logs.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecation_logs/es_deprecation_logs.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecation_logs/es_deprecation_logs.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/cluster_settings_deprecation_flyout.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/cluster_settings_deprecation_flyout.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/cluster_settings_deprecation_flyout.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/cluster_settings_deprecation_flyout.test.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/default_deprecation_flyout.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/default_deprecation_flyout.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/default_deprecation_flyout.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/default_deprecation_flyout.test.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/deprecations_list.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/deprecations_list.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/deprecations_list.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/deprecations_list.test.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/error_handling.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/error_handling.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/error_handling.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/error_handling.test.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/es_deprecations.helpers.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/es_deprecations.helpers.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/es_deprecations.helpers.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/es_deprecations.helpers.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/index_settings_deprecation_flyout.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/index_settings_deprecation_flyout.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/index_settings_deprecation_flyout.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/index_settings_deprecation_flyout.test.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/ml_snapshots_deprecation_flyout.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/ml_snapshots_deprecation_flyout.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/ml_snapshots_deprecation_flyout.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/ml_snapshots_deprecation_flyout.test.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/mocked_responses.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/mocked_responses.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/mocked_responses.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/mocked_responses.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/reindex_deprecation_flyout.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/reindex_deprecation_flyout.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/es_deprecations/reindex_deprecation_flyout.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/es_deprecations/reindex_deprecation_flyout.test.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/app_context.mock.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/helpers/app_context.mock.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/app_context.mock.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/helpers/app_context.mock.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/http_requests.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/helpers/http_requests.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/http_requests.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/helpers/http_requests.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/helpers/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/helpers/index.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/setup_environment.tsx b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/helpers/setup_environment.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/setup_environment.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/helpers/setup_environment.tsx diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/time_manipulation.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/helpers/time_manipulation.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/time_manipulation.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/helpers/time_manipulation.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecation_details_flyout/deprecation_details_flyout.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecation_details_flyout/deprecation_details_flyout.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecation_details_flyout/deprecation_details_flyout.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecation_details_flyout/deprecation_details_flyout.test.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/deprecations_table.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/deprecations_table.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/deprecations_table.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/deprecations_table.test.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/error_handling.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/error_handling.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/error_handling.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/error_handling.test.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/kibana_deprecations/kibana_deprecations.helpers.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/kibana_deprecations.helpers.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/kibana_deprecations/kibana_deprecations.helpers.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/kibana_deprecations.helpers.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/kibana_deprecations/service.mock.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/service.mock.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/kibana_deprecations/service.mock.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/service.mock.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/backup_step/backup_step.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/backup_step/backup_step.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/backup_step/backup_step.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/backup_step/backup_step.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/elasticsearch_deprecation_issues.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/elasticsearch_deprecation_issues.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/elasticsearch_deprecation_issues.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/elasticsearch_deprecation_issues.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/fix_issues_step.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/fix_issues_step.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/fix_issues_step.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/fix_issues_step.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/kibana_deprecation_issues.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/kibana_deprecation_issues.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/kibana_deprecation_issues.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/kibana_deprecation_issues.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/mock_es_issues.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/mock_es_issues.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/mock_es_issues.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/mock_es_issues.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/logs_step/logs_step.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/logs_step/logs_step.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/logs_step/logs_step.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/logs_step/logs_step.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/__snapshots__/flyout.test.ts.snap b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/__snapshots__/flyout.test.ts.snap similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/__snapshots__/flyout.test.ts.snap rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/__snapshots__/flyout.test.ts.snap diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/flyout.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/flyout.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/flyout.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/flyout.test.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/migrate_system_indices.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/migrate_system_indices.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/migrate_system_indices.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/migrate_system_indices.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/mocks.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/mocks.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/mocks.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/mocks.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/step_completion.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/step_completion.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/step_completion.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/migrate_system_indices/step_completion.test.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/overview.helpers.ts b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/overview.helpers.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/overview.helpers.ts rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/overview.helpers.ts diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/overview.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/overview.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/overview.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/overview.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/upgrade_step/upgrade_step.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/upgrade_step/upgrade_step.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/upgrade_step/upgrade_step.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/overview/upgrade_step/upgrade_step.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/common/constants.ts b/x-pack/platform/plugins/private/upgrade_assistant/common/constants.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/common/constants.ts rename to x-pack/platform/plugins/private/upgrade_assistant/common/constants.ts diff --git a/x-pack/plugins/upgrade_assistant/common/get_index_state.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/common/get_index_state.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/common/get_index_state.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/common/get_index_state.test.ts diff --git a/x-pack/plugins/upgrade_assistant/common/get_index_state.ts b/x-pack/platform/plugins/private/upgrade_assistant/common/get_index_state.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/common/get_index_state.ts rename to x-pack/platform/plugins/private/upgrade_assistant/common/get_index_state.ts diff --git a/x-pack/plugins/upgrade_assistant/common/types.ts b/x-pack/platform/plugins/private/upgrade_assistant/common/types.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/common/types.ts rename to x-pack/platform/plugins/private/upgrade_assistant/common/types.ts diff --git a/x-pack/plugins/upgrade_assistant/jest.config.js b/x-pack/platform/plugins/private/upgrade_assistant/jest.config.js similarity index 62% rename from x-pack/plugins/upgrade_assistant/jest.config.js rename to x-pack/platform/plugins/private/upgrade_assistant/jest.config.js index 024cb4a49ab3d..aba2c9b5cf20a 100644 --- a/x-pack/plugins/upgrade_assistant/jest.config.js +++ b/x-pack/platform/plugins/private/upgrade_assistant/jest.config.js @@ -7,11 +7,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/upgrade_assistant'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/upgrade_assistant', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/private/upgrade_assistant'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/upgrade_assistant', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/plugins/upgrade_assistant/{common,public,server}/**/*.{ts,tsx}', + '/x-pack/platform/plugins/private/upgrade_assistant/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/x-pack/plugins/upgrade_assistant/kibana.jsonc b/x-pack/platform/plugins/private/upgrade_assistant/kibana.jsonc similarity index 100% rename from x-pack/plugins/upgrade_assistant/kibana.jsonc rename to x-pack/platform/plugins/private/upgrade_assistant/kibana.jsonc diff --git a/x-pack/plugins/upgrade_assistant/public/application/app.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/app.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/app.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/app.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/app_context.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/app_context.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/app_context.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/app_context.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/constants.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/constants.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/constants.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/constants.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/es_deprecation_logs.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/es_deprecation_logs.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/es_deprecation_logs.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/es_deprecation_logs.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/_deprecation_logging_toggle.scss b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/_deprecation_logging_toggle.scss similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/_deprecation_logging_toggle.scss rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/_deprecation_logging_toggle.scss diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/deprecation_logging_toggle.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/deprecation_logging_toggle.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/deprecation_logging_toggle.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/deprecation_logging_toggle.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecation_logging_toggle/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecations_count_checkpoint/deprecations_count_checkpoint.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecations_count_checkpoint/deprecations_count_checkpoint.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecations_count_checkpoint/deprecations_count_checkpoint.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecations_count_checkpoint/deprecations_count_checkpoint.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecations_count_checkpoint/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecations_count_checkpoint/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecations_count_checkpoint/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/deprecations_count_checkpoint/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.test.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/fix_deprecation_logs.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/fix_deprecation_logs.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/fix_deprecation_logs.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/fix_deprecation_logs.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/use_deprecation_logging.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/use_deprecation_logging.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/use_deprecation_logging.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/use_deprecation_logging.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecation_logs/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/flyout.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/flyout.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/flyout.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/flyout.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/resolution_table_cell.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/resolution_table_cell.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/resolution_table_cell.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/resolution_table_cell.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/table_row.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/table_row.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/table_row.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/cluster_settings/table_row.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/flyout.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/flyout.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/flyout.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/flyout.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/table_row.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/table_row.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/table_row.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/default/table_row.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/flyout.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/flyout.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/flyout.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/flyout.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/table_row.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/table_row.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/table_row.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/health_indicator/table_row.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/flyout.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/flyout.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/flyout.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/flyout.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/resolution_table_cell.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/resolution_table_cell.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/resolution_table_cell.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/resolution_table_cell.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/table_row.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/table_row.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/table_row.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/index_settings/table_row.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/context.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/context.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/context.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/context.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/flyout.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/flyout.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/flyout.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/flyout.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/resolution_table_cell.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/resolution_table_cell.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/resolution_table_cell.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/resolution_table_cell.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/table_row.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/table_row.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/table_row.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/table_row.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/use_snapshot_state.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/use_snapshot_state.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/use_snapshot_state.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/ml_snapshots/use_snapshot_state.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/context.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/context.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/context.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/context.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/__snapshots__/checklist_step.test.tsx.snap b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/__snapshots__/checklist_step.test.tsx.snap similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/__snapshots__/checklist_step.test.tsx.snap rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/__snapshots__/checklist_step.test.tsx.snap diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/__snapshots__/warning_step.test.tsx.snap b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/__snapshots__/warning_step.test.tsx.snap similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/__snapshots__/warning_step.test.tsx.snap rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/__snapshots__/warning_step.test.tsx.snap diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/_step_progress.scss b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/_step_progress.scss similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/_step_progress.scss rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/_step_progress.scss diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/checklist_step.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/checklist_step.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/checklist_step.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/checklist_step.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/checklist_step.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/checklist_step.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/checklist_step.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/checklist_step.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/container.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/container.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/container.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/container.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/index.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/index.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/index.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/index.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/progress.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/progress.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/progress.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/progress.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/progress.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/progress.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/progress.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/progress.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/step_progress.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/step_progress.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/step_progress.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/step_progress.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warning_step.test.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warning_step.test.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warning_step.test.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warning_step.test.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warning_step_checkbox.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warning_step_checkbox.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warning_step_checkbox.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warning_step_checkbox.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warnings_step.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warnings_step.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warnings_step.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/warnings_step.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/index.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/index.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/index.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/index.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/resolution_table_cell.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/resolution_table_cell.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/resolution_table_cell.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/resolution_table_cell.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/table_row.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/table_row.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/table_row.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/table_row.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/use_reindex_state.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/use_reindex_state.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/use_reindex_state.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/use_reindex_state.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations_table.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/es_deprecations_table.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations_table.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/es_deprecations_table.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations_table_cells.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/es_deprecations_table_cells.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations_table_cells.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/es_deprecations_table_cells.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/kibana_deprecations/_deprecation_details_flyout.scss b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations/_deprecation_details_flyout.scss similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/kibana_deprecations/_deprecation_details_flyout.scss rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations/_deprecation_details_flyout.scss diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/kibana_deprecations/deprecation_details_flyout.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations/deprecation_details_flyout.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/kibana_deprecations/deprecation_details_flyout.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations/deprecation_details_flyout.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/kibana_deprecations/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/kibana_deprecations/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/kibana_deprecations/kibana_deprecations.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations/kibana_deprecations.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/kibana_deprecations/kibana_deprecations.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations/kibana_deprecations.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/kibana_deprecations/kibana_deprecations_table.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations/kibana_deprecations_table.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/kibana_deprecations/kibana_deprecations_table.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations/kibana_deprecations_table.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/kibana_deprecations/resolution_table_cell.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations/resolution_table_cell.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/kibana_deprecations/resolution_table_cell.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations/resolution_table_cell.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/backup_step/backup_step.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/backup_step/backup_step.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/backup_step/backup_step.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/backup_step/backup_step.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/backup_step/cloud_backup.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/backup_step/cloud_backup.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/backup_step/cloud_backup.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/backup_step/cloud_backup.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/backup_step/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/backup_step/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/backup_step/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/backup_step/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/backup_step/on_prem_backup.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/backup_step/on_prem_backup.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/backup_step/on_prem_backup.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/backup_step/on_prem_backup.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/_deprecation_issues_panel.scss b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/_deprecation_issues_panel.scss similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/_deprecation_issues_panel.scss rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/_deprecation_issues_panel.scss diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/deprecation_issues_panel.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/deprecation_issues_panel.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/deprecation_issues_panel.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/deprecation_issues_panel.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/es_deprecation_issues_panel.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/es_deprecation_issues_panel.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/es_deprecation_issues_panel.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/es_deprecation_issues_panel.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/kibana_deprecation_issues_panel.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/kibana_deprecation_issues_panel.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/kibana_deprecation_issues_panel.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/kibana_deprecation_issues_panel.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/loading_issues_error.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/loading_issues_error.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/loading_issues_error.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/loading_issues_error.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/no_deprecation_issues.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/no_deprecation_issues.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/components/no_deprecation_issues.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/components/no_deprecation_issues.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/fix_issues_step.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/fix_issues_step.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/fix_issues_step.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/fix_issues_step.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/fix_issues_step/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/fix_issues_step/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/logs_step/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/logs_step/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/logs_step/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/logs_step/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/logs_step/logs_step.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/logs_step/logs_step.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/logs_step/logs_step.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/logs_step/logs_step.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/migrate_system_indices/flyout.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/migrate_system_indices/flyout.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/migrate_system_indices/flyout.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/migrate_system_indices/flyout.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/migrate_system_indices/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/migrate_system_indices/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/migrate_system_indices/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/migrate_system_indices/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/migrate_system_indices/migrate_system_indices.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/migrate_system_indices/migrate_system_indices.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/migrate_system_indices/migrate_system_indices.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/migrate_system_indices/migrate_system_indices.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/migrate_system_indices/use_migrate_system_indices.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/migrate_system_indices/use_migrate_system_indices.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/migrate_system_indices/use_migrate_system_indices.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/migrate_system_indices/use_migrate_system_indices.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/overview.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/overview.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/overview.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/overview.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/upgrade_step/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/upgrade_step/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/upgrade_step/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/upgrade_step/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/overview/upgrade_step/upgrade_step.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/upgrade_step/upgrade_step.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/overview/upgrade_step/upgrade_step.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/overview/upgrade_step/upgrade_step.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/shared/deprecation_badge.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/deprecation_badge.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/shared/deprecation_badge.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/deprecation_badge.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/shared/deprecation_count.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/deprecation_count.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/shared/deprecation_count.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/deprecation_count.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/shared/deprecation_flyout_learn_more_link.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/deprecation_flyout_learn_more_link.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/shared/deprecation_flyout_learn_more_link.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/deprecation_flyout_learn_more_link.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/shared/deprecations_page_loading_error.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/deprecations_page_loading_error.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/shared/deprecations_page_loading_error.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/deprecations_page_loading_error.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/shared/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/shared/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/shared/level_info_tip.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/level_info_tip.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/shared/level_info_tip.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/level_info_tip.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/shared/no_deprecations.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/no_deprecations.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/shared/no_deprecations.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/shared/no_deprecations.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/application/components/types.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/components/types.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/components/types.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/components/types.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/lib/api.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/api.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/lib/api.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/api.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/lib/breadcrumbs.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/breadcrumbs.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/lib/breadcrumbs.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/breadcrumbs.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/lib/get_es_deprecation_error.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/get_es_deprecation_error.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/lib/get_es_deprecation_error.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/get_es_deprecation_error.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/lib/logs_checkpoint.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/logs_checkpoint.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/lib/logs_checkpoint.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/logs_checkpoint.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/lib/ui_metric.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/ui_metric.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/lib/ui_metric.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/ui_metric.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/lib/utils.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/utils.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/lib/utils.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/utils.test.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/lib/utils.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/utils.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/lib/utils.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/lib/utils.ts diff --git a/x-pack/plugins/upgrade_assistant/public/application/mount_management_section.tsx b/x-pack/platform/plugins/private/upgrade_assistant/public/application/mount_management_section.tsx similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/application/mount_management_section.tsx rename to x-pack/platform/plugins/private/upgrade_assistant/public/application/mount_management_section.tsx diff --git a/x-pack/plugins/upgrade_assistant/public/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/index.ts diff --git a/x-pack/plugins/upgrade_assistant/public/plugin.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/plugin.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/plugin.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/plugin.ts diff --git a/x-pack/plugins/upgrade_assistant/public/shared_imports.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/shared_imports.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/shared_imports.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/shared_imports.ts diff --git a/x-pack/plugins/upgrade_assistant/public/types.ts b/x-pack/platform/plugins/private/upgrade_assistant/public/types.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/public/types.ts rename to x-pack/platform/plugins/private/upgrade_assistant/public/types.ts diff --git a/x-pack/plugins/upgrade_assistant/server/config.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/config.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/config.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/config.ts diff --git a/x-pack/plugins/upgrade_assistant/server/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/index.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/__fixtures__/es_deprecations.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/__fixtures__/es_deprecations.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/__fixtures__/es_deprecations.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/__fixtures__/es_deprecations.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/__fixtures__/fake_deprecations.json b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/__fixtures__/fake_deprecations.json similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/__fixtures__/fake_deprecations.json rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/__fixtures__/fake_deprecations.json diff --git a/x-pack/plugins/upgrade_assistant/server/lib/__fixtures__/health_indicators.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/__fixtures__/health_indicators.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/__fixtures__/health_indicators.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/__fixtures__/health_indicators.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/__fixtures__/version.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/__fixtures__/version.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/__fixtures__/version.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/__fixtures__/version.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/__mocks__/es_version_precheck.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/__mocks__/es_version_precheck.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/__mocks__/es_version_precheck.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/__mocks__/es_version_precheck.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/__snapshots__/kibana_status.test.ts.snap b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/__snapshots__/kibana_status.test.ts.snap similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/__snapshots__/kibana_status.test.ts.snap rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/__snapshots__/kibana_status.test.ts.snap diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_deprecation_logging_apis.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecation_logging_apis.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_deprecation_logging_apis.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecation_logging_apis.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_deprecation_logging_apis.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecation_logging_apis.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_deprecation_logging_apis.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecation_logging_apis.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/__snapshots__/index.test.ts.snap b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/__snapshots__/index.test.ts.snap similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/__snapshots__/index.test.ts.snap rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/__snapshots__/index.test.ts.snap diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/get_corrective_actions.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/get_corrective_actions.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/get_corrective_actions.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/get_corrective_actions.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/health_indicators.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/health_indicators.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/health_indicators.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/health_indicators.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/health_indicators.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/health_indicators.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/health_indicators.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/health_indicators.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/index.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/index.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/index.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/index.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/index.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/migrations.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/migrations.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_deprecations_status/migrations.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_deprecations_status/migrations.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_indices_state_check.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_indices_state_check.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_indices_state_check.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_indices_state_check.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_system_indices_migration.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_system_indices_migration.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_system_indices_migration.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_system_indices_migration.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_system_indices_migration.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_system_indices_migration.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_system_indices_migration.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_system_indices_migration.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_version_precheck.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_version_precheck.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_version_precheck.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_version_precheck.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/es_version_precheck.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_version_precheck.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/es_version_precheck.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/es_version_precheck.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/kibana_status.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/kibana_status.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/kibana_status.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/kibana_status.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/kibana_status.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/kibana_status.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/kibana_status.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/kibana_status.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/credential_store.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/credential_store.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/credential_store.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/credential_store.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/credential_store.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/credential_store.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/credential_store.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/credential_store.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/error.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/error.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/error.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/error.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/error_symbols.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/error_symbols.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/error_symbols.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/error_symbols.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/index.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/index_settings.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/index_settings.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/index_settings.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/index_settings.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/index_settings.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/index_settings.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/index_settings.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/index_settings.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/op_utils.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/op_utils.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/op_utils.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/op_utils.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_actions.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/reindex_actions.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_actions.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/reindex_actions.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_actions.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/reindex_actions.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_actions.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/reindex_actions.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/reindex_service.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/reindex_service.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/reindex_service.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/reindex_service.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/types.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/types.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/types.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/types.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/worker.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/worker.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/reindexing/worker.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/reindexing/worker.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/telemetry/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/telemetry/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/telemetry/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/telemetry/index.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/telemetry/usage_collector.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/telemetry/usage_collector.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/telemetry/usage_collector.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/telemetry/usage_collector.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/telemetry/usage_collector.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/telemetry/usage_collector.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/telemetry/usage_collector.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/telemetry/usage_collector.ts diff --git a/x-pack/plugins/upgrade_assistant/server/lib/version.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/lib/version.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/lib/version.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/lib/version.ts diff --git a/x-pack/plugins/upgrade_assistant/server/plugin.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/plugin.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/plugin.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/plugin.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/__mocks__/request.mock.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/__mocks__/request.mock.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/__mocks__/request.mock.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/__mocks__/request.mock.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/__mocks__/routes.mock.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/__mocks__/routes.mock.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/__mocks__/routes.mock.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/__mocks__/routes.mock.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/app.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/app.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/app.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/app.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/cloud_backup_status.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/cloud_backup_status.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/cloud_backup_status.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/cloud_backup_status.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/cluster_settings.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/cluster_settings.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/cluster_settings.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/cluster_settings.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/cluster_upgrade_status.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/cluster_upgrade_status.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/cluster_upgrade_status.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/cluster_upgrade_status.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/deprecation_logging.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/deprecation_logging.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/deprecation_logging.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/deprecation_logging.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/deprecation_logging.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/deprecation_logging.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/deprecation_logging.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/deprecation_logging.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/es_deprecations.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/es_deprecations.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/es_deprecations.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/es_deprecations.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/es_deprecations.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/es_deprecations.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/es_deprecations.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/es_deprecations.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/ml_snapshots.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/ml_snapshots.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/ml_snapshots.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/ml_snapshots.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/ml_snapshots.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/ml_snapshots.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/ml_snapshots.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/ml_snapshots.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/node_disk_space.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/node_disk_space.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/node_disk_space.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/node_disk_space.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/node_disk_space.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/node_disk_space.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/node_disk_space.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/node_disk_space.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/register_routes.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/register_routes.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/register_routes.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/register_routes.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/batch_reindex_indices.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/batch_reindex_indices.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/batch_reindex_indices.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/batch_reindex_indices.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/batch_reindex_indices.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/batch_reindex_indices.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/batch_reindex_indices.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/batch_reindex_indices.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/create_reindex_worker.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/create_reindex_worker.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/create_reindex_worker.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/create_reindex_worker.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/index.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/map_any_error_to_kibana_http_response.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/map_any_error_to_kibana_http_response.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/map_any_error_to_kibana_http_response.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/map_any_error_to_kibana_http_response.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/reindex_handler.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/reindex_handler.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/reindex_handler.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/reindex_handler.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/reindex_indices.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/reindex_indices.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/reindex_indices.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/reindex_indices.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/reindex_indices.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/reindex_indices.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/reindex_indices.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/reindex_indices.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/types.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/types.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/reindex_indices/types.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/types.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/remote_clusters.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/remote_clusters.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/remote_clusters.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/remote_clusters.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/status.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/status.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/status.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/status.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/status.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/status.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/status.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/status.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/system_indices_migration.test.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/system_indices_migration.test.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/system_indices_migration.test.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/system_indices_migration.test.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/system_indices_migration.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/system_indices_migration.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/system_indices_migration.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/system_indices_migration.ts diff --git a/x-pack/plugins/upgrade_assistant/server/routes/update_index_settings.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/routes/update_index_settings.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/routes/update_index_settings.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/routes/update_index_settings.ts diff --git a/x-pack/plugins/upgrade_assistant/server/saved_object_types/index.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/saved_object_types/index.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/saved_object_types/index.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/saved_object_types/index.ts diff --git a/x-pack/plugins/upgrade_assistant/server/saved_object_types/ml_upgrade_operation_saved_object_type.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/saved_object_types/ml_upgrade_operation_saved_object_type.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/saved_object_types/ml_upgrade_operation_saved_object_type.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/saved_object_types/ml_upgrade_operation_saved_object_type.ts diff --git a/x-pack/plugins/upgrade_assistant/server/saved_object_types/reindex_operation_saved_object_type.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/saved_object_types/reindex_operation_saved_object_type.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/saved_object_types/reindex_operation_saved_object_type.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/saved_object_types/reindex_operation_saved_object_type.ts diff --git a/x-pack/plugins/upgrade_assistant/server/shared_imports.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/shared_imports.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/shared_imports.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/shared_imports.ts diff --git a/x-pack/plugins/upgrade_assistant/server/types.ts b/x-pack/platform/plugins/private/upgrade_assistant/server/types.ts similarity index 100% rename from x-pack/plugins/upgrade_assistant/server/types.ts rename to x-pack/platform/plugins/private/upgrade_assistant/server/types.ts diff --git a/x-pack/plugins/upgrade_assistant/tsconfig.json b/x-pack/platform/plugins/private/upgrade_assistant/tsconfig.json similarity index 93% rename from x-pack/plugins/upgrade_assistant/tsconfig.json rename to x-pack/platform/plugins/private/upgrade_assistant/tsconfig.json index 78f8e447b0b3d..57742b9b2320d 100644 --- a/x-pack/plugins/upgrade_assistant/tsconfig.json +++ b/x-pack/platform/plugins/private/upgrade_assistant/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, "include": [ - "../../../typings/**/*", + "../../../../../typings/**/*", "__jest__/**/*", "common/**/*", "public/**/*", diff --git a/yarn.lock b/yarn.lock index 6a7e58d9d7299..00e7eb2455ba1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7821,7 +7821,7 @@ version "0.0.0" uid "" -"@kbn/upgrade-assistant-plugin@link:x-pack/plugins/upgrade_assistant": +"@kbn/upgrade-assistant-plugin@link:x-pack/platform/plugins/private/upgrade_assistant": version "0.0.0" uid "" From 8907552908d9f5da20e6dadd2297cf1b77d73d76 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:16:50 +0100 Subject: [PATCH 160/167] Relocating module `@kbn/usage-collection-plugin` --- .buildkite/scripts/pipelines/pull_request/pipeline.ts | 4 ++-- .eslintrc.js | 4 ++-- .github/CODEOWNERS | 2 +- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- src/core/CONVENTIONS.md | 4 ++-- .../api-server/src/saved_objects_repository.ts | 2 +- .../server/collectors/application_usage/README.md | 2 +- .../plugins/shared}/usage_collection/README.mdx | 8 ++++---- .../shared}/usage_collection/common/application_usage.ts | 0 .../plugins/shared}/usage_collection/common/constants.ts | 0 .../plugins/shared}/usage_collection/common/index.ts | 0 .../shared}/usage_collection/common/types/index.ts | 0 .../usage_collection/common/types/stats/core_metrics.ts | 0 .../shared}/usage_collection/common/types/stats/index.ts | 0 .../shared}/usage_collection/common/types/stats/latest.ts | 0 .../shared}/usage_collection/common/types/stats/v1.ts | 0 .../usage_collection/common/types/ui_counters/index.ts | 0 .../usage_collection/common/types/ui_counters/latest.ts | 0 .../usage_collection/common/types/ui_counters/v1.ts | 0 .../usage_collection/common/types/usage_counters/index.ts | 0 .../common/types/usage_counters/latest.ts | 0 .../usage_collection/common/types/usage_counters/v1.ts | 0 .../plugins/shared}/usage_collection/jest.config.js | 8 ++++---- .../shared}/usage_collection/jest.integration.config.js | 4 ++-- .../plugins/shared}/usage_collection/kibana.jsonc | 0 .../shared}/usage_collection/public/components/index.ts | 0 .../public/components/track_application_view/index.ts | 0 .../track_application_view.test.tsx | 0 .../track_application_view/track_application_view.tsx | 0 .../track_application_view_component.test.tsx | 0 .../track_application_view_component.tsx | 0 .../public/components/track_application_view/types.ts | 0 .../plugins/shared}/usage_collection/public/index.ts | 0 .../plugins/shared}/usage_collection/public/mocks.tsx | 0 .../plugins/shared}/usage_collection/public/plugin.tsx | 0 .../public/services/application_usage.test.ts | 0 .../usage_collection/public/services/application_usage.ts | 0 .../usage_collection/public/services/create_reporter.ts | 0 .../shared}/usage_collection/public/services/index.ts | 0 .../collector/__snapshots__/collector_set.test.ts.snap | 0 .../usage_collection/server/collector/collector.test.ts | 0 .../usage_collection/server/collector/collector.ts | 0 .../server/collector/collector_set.test.ts | 0 .../usage_collection/server/collector/collector_set.ts | 0 .../server/collector/collector_stats/README.md | 0 .../server/collector/collector_stats/index.ts | 0 .../server/collector/collector_stats/schema.ts | 0 .../usage_collector_stats_collector.test.ts | 0 .../collector_stats/usage_collector_stats_collector.ts | 0 .../shared}/usage_collection/server/collector/index.ts | 0 .../usage_collection/server/collector/measure_duration.ts | 0 .../shared}/usage_collection/server/collector/types.ts | 0 .../usage_collection/server/collector/usage_collector.ts | 0 .../plugins/shared}/usage_collection/server/config.ts | 0 .../plugins/shared}/usage_collection/server/index.ts | 0 .../plugins/shared}/usage_collection/server/mocks.ts | 0 .../plugins/shared}/usage_collection/server/plugin.ts | 0 .../shared}/usage_collection/server/report/index.ts | 0 .../shared}/usage_collection/server/report/schema.ts | 0 .../server/report/store_application_usage.test.ts | 0 .../server/report/store_application_usage.ts | 0 .../server/report/store_ui_report.test.mocks.ts | 0 .../server/report/store_ui_report.test.ts | 0 .../usage_collection/server/report/store_ui_report.ts | 0 .../shared}/usage_collection/server/routes/index.ts | 0 .../server/routes/integration_tests/stats.test.ts | 0 .../usage_collection/server/routes/stats/README.md | 0 .../shared}/usage_collection/server/routes/stats/index.ts | 0 .../shared}/usage_collection/server/routes/stats/stats.ts | 0 .../shared}/usage_collection/server/routes/ui_counters.ts | 0 .../server/usage_counters/common/kuery_utils.test.ts | 0 .../server/usage_counters/common/kuery_utils.ts | 0 .../usage_collection/server/usage_counters/index.ts | 0 .../usage_counters/integration_tests/counter_utils.ts | 0 .../usage_counters/integration_tests/rollups.test.ts | 0 .../usage_counters/integration_tests/search.test.ts | 0 .../server/usage_counters/rollups/constants.ts | 0 .../server/usage_counters/rollups/index.ts | 0 .../server/usage_counters/rollups/register_rollups.ts | 0 .../server/usage_counters/rollups/rollups.test.ts | 0 .../server/usage_counters/rollups/rollups.ts | 0 .../server/usage_counters/saved_objects.test.ts | 0 .../server/usage_counters/saved_objects.ts | 0 .../server/usage_counters/search/index.ts | 0 .../server/usage_counters/search/search.fixtures.ts | 0 .../server/usage_counters/search/search.test.ts | 0 .../server/usage_counters/search/search.ts | 0 .../usage_collection/server/usage_counters/types.ts | 0 .../server/usage_counters/usage_counter.test.ts | 0 .../server/usage_counters/usage_counter.ts | 0 .../server/usage_counters/usage_counters_service.mock.ts | 0 .../server/usage_counters/usage_counters_service.test.ts | 0 .../server/usage_counters/usage_counters_service.ts | 0 .../plugins/shared}/usage_collection/tsconfig.json | 4 ++-- .../plugins/usage_collection/package.json | 2 +- tsconfig.base.json | 4 ++-- .../platform/plugins/private/upgrade_assistant/README.md | 6 +++--- .../observability/plugins/apm/dev_docs/telemetry.md | 2 +- yarn.lock | 2 +- 101 files changed, 32 insertions(+), 32 deletions(-) rename src/{plugins => platform/plugins/shared}/usage_collection/README.mdx (99%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/application_usage.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/types/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/types/stats/core_metrics.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/types/stats/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/types/stats/latest.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/types/stats/v1.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/types/ui_counters/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/types/ui_counters/latest.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/types/ui_counters/v1.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/types/usage_counters/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/types/usage_counters/latest.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/common/types/usage_counters/v1.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/jest.config.js (72%) rename src/{plugins => platform/plugins/shared}/usage_collection/jest.integration.config.js (84%) rename src/{plugins => platform/plugins/shared}/usage_collection/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/components/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/components/track_application_view/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/components/track_application_view/track_application_view.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/components/track_application_view/track_application_view.tsx (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/components/track_application_view/track_application_view_component.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/components/track_application_view/track_application_view_component.tsx (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/components/track_application_view/types.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/mocks.tsx (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/plugin.tsx (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/services/application_usage.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/services/application_usage.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/services/create_reporter.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/public/services/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/__snapshots__/collector_set.test.ts.snap (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/collector.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/collector.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/collector_set.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/collector_set.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/collector_stats/README.md (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/collector_stats/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/collector_stats/schema.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/collector_stats/usage_collector_stats_collector.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/collector_stats/usage_collector_stats_collector.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/measure_duration.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/types.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/collector/usage_collector.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/config.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/report/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/report/schema.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/report/store_application_usage.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/report/store_application_usage.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/report/store_ui_report.test.mocks.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/report/store_ui_report.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/report/store_ui_report.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/routes/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/routes/integration_tests/stats.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/routes/stats/README.md (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/routes/stats/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/routes/stats/stats.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/routes/ui_counters.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/common/kuery_utils.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/common/kuery_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/integration_tests/counter_utils.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/integration_tests/rollups.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/integration_tests/search.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/rollups/constants.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/rollups/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/rollups/register_rollups.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/rollups/rollups.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/rollups/rollups.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/saved_objects.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/saved_objects.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/search/index.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/search/search.fixtures.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/search/search.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/search/search.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/types.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/usage_counter.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/usage_counter.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/usage_counters_service.mock.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/usage_counters_service.test.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/server/usage_counters/usage_counters_service.ts (100%) rename src/{plugins => platform/plugins/shared}/usage_collection/tsconfig.json (89%) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index c930124f75bfb..73dc519bcd403 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -265,7 +265,7 @@ const getPipeline = (filename: string, removeSteps = true) => { /^x-pack\/platform\/plugins\/shared\/triggers_actions_ui\/public\/application\/context\/actions_connectors_context\.tsx/, /^x-pack\/platform\/plugins\/shared\/triggers_actions_ui\/server\/connector_types\/openai/, /^x-pack\/platform\/plugins\/shared\/triggers_actions_ui\/server\/connector_types\/bedrock/, - /^x-pack\/plugins\/usage_collection\/public/, + /^x-pack\/platform\/plugins\/shared\/usage_collection\/public/, /^x-pack\/solutions\/security\/plugins\/elastic_assistant/, /^x-pack\/solutions\/security\/packages/, /^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant/, @@ -348,7 +348,7 @@ const getPipeline = (filename: string, removeSteps = true) => { /^x-pack\/solutions\/security\/plugins\/threat_intelligence/, /^x-pack\/solutions\/security\/plugins\/timelines/, /^x-pack\/platform\/plugins\/shared\/triggers_actions_ui/, - /^x-pack\/plugins\/usage_collection\/public/, + /^x-pack\/platform\/plugins\/shared\/usage_collection\/public/, /^x-pack\/test\/functional\/es_archives\/security_solution/, /^x-pack\/test\/security_solution_cypress/, ])) || diff --git a/.eslintrc.js b/.eslintrc.js index 538ae4e2dc8db..ef993fe0ea2ce 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1924,7 +1924,7 @@ module.exports = { 'src/platform/packages/shared/kbn-analytics/**', // 'packages/kbn-telemetry-tools/**', 'src/platform/plugins/private/kibana_usage_collection/**', - 'src/plugins/usage_collection/**', + 'src/platform/plugins/shared/usage_collection/**', 'src/platform/plugins/shared/telemetry/**', 'src/platform/plugins/shared/telemetry_collection_manager/**', 'src/platform/plugins/shared/telemetry_management_section/**', @@ -1948,7 +1948,7 @@ module.exports = { 'src/platform/packages/shared/kbn-analytics/**', 'packages/kbn-telemetry-tools/**', 'src/platform/plugins/private/kibana_usage_collection/**', - 'src/plugins/usage_collection/**', + 'src/platform/plugins/shared/usage_collection/**', 'src/platform/plugins/shared/telemetry/**', 'src/platform/plugins/shared/telemetry_collection_manager/**', 'src/platform/plugins/shared/telemetry_management_section/**', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1caa6d88affb7..2f9359702d459 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -663,6 +663,7 @@ src/platform/plugins/shared/ui_actions @elastic/appex-sharedux src/platform/plugins/shared/ui_actions_enhanced @elastic/appex-sharedux src/platform/plugins/shared/unified_doc_viewer @elastic/kibana-data-discovery src/platform/plugins/shared/unified_histogram @elastic/kibana-data-discovery +src/platform/plugins/shared/usage_collection @elastic/kibana-core src/plugins/chart_expressions/common @elastic/kibana-visualizations src/plugins/chart_expressions/expression_gauge @elastic/kibana-visualizations src/plugins/chart_expressions/expression_heatmap @elastic/kibana-visualizations @@ -679,7 +680,6 @@ src/plugins/expressions @elastic/kibana-visualizations src/plugins/interactive_setup @elastic/kibana-security src/plugins/unified_search @elastic/kibana-visualizations src/plugins/url_forwarding @elastic/kibana-visualizations -src/plugins/usage_collection @elastic/kibana-core src/plugins/vis_default_editor @elastic/kibana-visualizations src/plugins/vis_types/gauge @elastic/kibana-visualizations src/plugins/vis_types/heatmap @elastic/kibana-visualizations diff --git a/.i18nrc.json b/.i18nrc.json index 294a83329252c..48392e26e488a 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -140,7 +140,7 @@ "uiActions": ["src/platform/plugins/shared/ui_actions", "packages/kbn-ui-actions-browser"], "uiActionsEnhanced": "src/platform/plugins/shared/ui_actions_enhanced", "uiActionsExamples": "examples/ui_action_examples", - "usageCollection": "src/plugins/usage_collection", + "usageCollection": "src/platform/plugins/shared/usage_collection", "userProfileComponents": "packages/kbn-user-profile-components", "utils": "x-pack/solutions/security/packages/kbn-securitysolution-utils/src", "visDefaultEditor": "src/plugins/vis_default_editor", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 9167d3b6ab6c9..46d19a1e63aa8 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -374,7 +374,7 @@ It manages its own state and data fetching, and can easily be dropped into pages |This plugins contains helpers to redirect legacy URLs. It can be used to forward old URLs to their new counterparts. -|{kib-repo}blob/{branch}/src/plugins/usage_collection/README.mdx[usageCollection] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/usage_collection/README.mdx[usageCollection] |The Usage Collection Service defines a set of APIs for other plugins to report the usage of their features. At the same time, it provides necessary the APIs for other services (i.e.: telemetry, monitoring, ...) to consume that usage data. diff --git a/package.json b/package.json index ae013fb8a9234..428595efe9b6a 100644 --- a/package.json +++ b/package.json @@ -998,7 +998,7 @@ "@kbn/uptime-plugin": "link:x-pack/solutions/observability/plugins/uptime", "@kbn/url-drilldown-plugin": "link:x-pack/plugins/drilldowns/url_drilldown", "@kbn/url-forwarding-plugin": "link:src/plugins/url_forwarding", - "@kbn/usage-collection-plugin": "link:src/plugins/usage_collection", + "@kbn/usage-collection-plugin": "link:src/platform/plugins/shared/usage_collection", "@kbn/usage-collection-test-plugin": "link:test/plugin_functional/plugins/usage_collection", "@kbn/use-tracked-promise": "link:packages/kbn-use-tracked-promise", "@kbn/user-profile-components": "link:packages/kbn-user-profile-components", diff --git a/src/core/CONVENTIONS.md b/src/core/CONVENTIONS.md index 67476af87b6de..160fa8acd5b1c 100644 --- a/src/core/CONVENTIONS.md +++ b/src/core/CONVENTIONS.md @@ -285,11 +285,11 @@ export class Plugin { #### Usage Collection -For creating and registering a Usage Collector. Collectors should be defined in a separate directory `server/collectors/`. You can read more about usage collectors on `src/plugins/usage_collection/README.mdx`. +For creating and registering a Usage Collector. Collectors should be defined in a separate directory `server/collectors/`. You can read more about usage collectors on `src/platform/plugins/shared/usage_collection/README.mdx`. ```ts // server/collectors/register.ts -import { UsageCollectionSetup } from 'src/plugins/usage_collection/server'; +import { UsageCollectionSetup } from 'src/platform/plugins/shared/usage_collection/server'; import { CallCluster } from 'src/legacy/core_plugins/elasticsearch'; export function registerMyPluginUsageCollector(usageCollection?: UsageCollectionSetup): void { diff --git a/src/core/packages/saved-objects/api-server/src/saved_objects_repository.ts b/src/core/packages/saved-objects/api-server/src/saved_objects_repository.ts index e2be2a89d2a9b..fa03406dcdf4d 100644 --- a/src/core/packages/saved-objects/api-server/src/saved_objects_repository.ts +++ b/src/core/packages/saved-objects/api-server/src/saved_objects_repository.ts @@ -351,7 +351,7 @@ export interface ISavedObjectsRepository { * * When using incrementCounter you need to ensure * that usage collection happens on a best-effort basis and doesn't - * negatively affect your plugin or users. See https://github.com/elastic/kibana/blob/main/src/plugins/usage_collection/README.mdx#tracking-interactions-with-incrementcounter) + * negatively affect your plugin or users. See https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/usage_collection/README.mdx#tracking-interactions-with-incrementcounter) * * @example * ```ts diff --git a/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/README.md b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/README.md index 9b2c6690626fd..51ed904e3acfa 100644 --- a/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/README.md +++ b/src/platform/plugins/private/kibana_usage_collection/server/collectors/application_usage/README.md @@ -56,7 +56,7 @@ class MyPlugin implements Plugin { Then, for every component inside the app that requires tracking the time it is on screen, and the number of general clicks: ```typescript jsx -import { TrackApplicationView } from 'src/plugins/usage_collection/public'; +import { TrackApplicationView } from 'src/platform/plugins/shared/usage_collection/public'; const MyTrackedComponent = () => { return ( diff --git a/src/plugins/usage_collection/README.mdx b/src/platform/plugins/shared/usage_collection/README.mdx similarity index 99% rename from src/plugins/usage_collection/README.mdx rename to src/platform/plugins/shared/usage_collection/README.mdx index d755c9615327e..4c32228f0bd72 100644 --- a/src/plugins/usage_collection/README.mdx +++ b/src/platform/plugins/shared/usage_collection/README.mdx @@ -52,7 +52,7 @@ To track a user interaction, use the API `usageCollection.reportUiCounter` as fo ```ts // public/plugin.ts import { METRIC_TYPE } from '@kbn/analytics'; -import { Plugin, CoreStart } from '../../../core/public'; +import { Plugin, CoreStart } from '../../../../../core/public'; export class MyPlugin implements Plugin { public start( @@ -133,8 +133,8 @@ To create a usage counter for your plugin, use the API `usageCollection.createUs ```ts // server/plugin.ts -import type { Plugin, CoreStart } from '../../../core/server'; -import type { UsageCollectionSetup, UsageCounter } from '../../../plugins/usage_collection/server'; +import type { Plugin, CoreStart } from '../../../../../core/server'; +import type { UsageCollectionSetup, UsageCounter } from '../../../../../plugins/usage_collection/server'; export class MyPlugin implements Plugin { private usageCounter?: UsageCounter; @@ -408,7 +408,7 @@ for structuring your plugin code. ```ts // src/plugins/dashboard/server/plugin.ts -import { PluginInitializerContext, Plugin, CoreStart, CoreSetup } from '../../src/core/server'; +import { PluginInitializerContext, Plugin, CoreStart, CoreSetup } from '../../../../src/core/server'; export class DashboardPlugin implements Plugin { private readonly logger: Logger; diff --git a/src/plugins/usage_collection/common/application_usage.ts b/src/platform/plugins/shared/usage_collection/common/application_usage.ts similarity index 100% rename from src/plugins/usage_collection/common/application_usage.ts rename to src/platform/plugins/shared/usage_collection/common/application_usage.ts diff --git a/src/plugins/usage_collection/common/constants.ts b/src/platform/plugins/shared/usage_collection/common/constants.ts similarity index 100% rename from src/plugins/usage_collection/common/constants.ts rename to src/platform/plugins/shared/usage_collection/common/constants.ts diff --git a/src/plugins/usage_collection/common/index.ts b/src/platform/plugins/shared/usage_collection/common/index.ts similarity index 100% rename from src/plugins/usage_collection/common/index.ts rename to src/platform/plugins/shared/usage_collection/common/index.ts diff --git a/src/plugins/usage_collection/common/types/index.ts b/src/platform/plugins/shared/usage_collection/common/types/index.ts similarity index 100% rename from src/plugins/usage_collection/common/types/index.ts rename to src/platform/plugins/shared/usage_collection/common/types/index.ts diff --git a/src/plugins/usage_collection/common/types/stats/core_metrics.ts b/src/platform/plugins/shared/usage_collection/common/types/stats/core_metrics.ts similarity index 100% rename from src/plugins/usage_collection/common/types/stats/core_metrics.ts rename to src/platform/plugins/shared/usage_collection/common/types/stats/core_metrics.ts diff --git a/src/plugins/usage_collection/common/types/stats/index.ts b/src/platform/plugins/shared/usage_collection/common/types/stats/index.ts similarity index 100% rename from src/plugins/usage_collection/common/types/stats/index.ts rename to src/platform/plugins/shared/usage_collection/common/types/stats/index.ts diff --git a/src/plugins/usage_collection/common/types/stats/latest.ts b/src/platform/plugins/shared/usage_collection/common/types/stats/latest.ts similarity index 100% rename from src/plugins/usage_collection/common/types/stats/latest.ts rename to src/platform/plugins/shared/usage_collection/common/types/stats/latest.ts diff --git a/src/plugins/usage_collection/common/types/stats/v1.ts b/src/platform/plugins/shared/usage_collection/common/types/stats/v1.ts similarity index 100% rename from src/plugins/usage_collection/common/types/stats/v1.ts rename to src/platform/plugins/shared/usage_collection/common/types/stats/v1.ts diff --git a/src/plugins/usage_collection/common/types/ui_counters/index.ts b/src/platform/plugins/shared/usage_collection/common/types/ui_counters/index.ts similarity index 100% rename from src/plugins/usage_collection/common/types/ui_counters/index.ts rename to src/platform/plugins/shared/usage_collection/common/types/ui_counters/index.ts diff --git a/src/plugins/usage_collection/common/types/ui_counters/latest.ts b/src/platform/plugins/shared/usage_collection/common/types/ui_counters/latest.ts similarity index 100% rename from src/plugins/usage_collection/common/types/ui_counters/latest.ts rename to src/platform/plugins/shared/usage_collection/common/types/ui_counters/latest.ts diff --git a/src/plugins/usage_collection/common/types/ui_counters/v1.ts b/src/platform/plugins/shared/usage_collection/common/types/ui_counters/v1.ts similarity index 100% rename from src/plugins/usage_collection/common/types/ui_counters/v1.ts rename to src/platform/plugins/shared/usage_collection/common/types/ui_counters/v1.ts diff --git a/src/plugins/usage_collection/common/types/usage_counters/index.ts b/src/platform/plugins/shared/usage_collection/common/types/usage_counters/index.ts similarity index 100% rename from src/plugins/usage_collection/common/types/usage_counters/index.ts rename to src/platform/plugins/shared/usage_collection/common/types/usage_counters/index.ts diff --git a/src/plugins/usage_collection/common/types/usage_counters/latest.ts b/src/platform/plugins/shared/usage_collection/common/types/usage_counters/latest.ts similarity index 100% rename from src/plugins/usage_collection/common/types/usage_counters/latest.ts rename to src/platform/plugins/shared/usage_collection/common/types/usage_counters/latest.ts diff --git a/src/plugins/usage_collection/common/types/usage_counters/v1.ts b/src/platform/plugins/shared/usage_collection/common/types/usage_counters/v1.ts similarity index 100% rename from src/plugins/usage_collection/common/types/usage_counters/v1.ts rename to src/platform/plugins/shared/usage_collection/common/types/usage_counters/v1.ts diff --git a/src/plugins/usage_collection/jest.config.js b/src/platform/plugins/shared/usage_collection/jest.config.js similarity index 72% rename from src/plugins/usage_collection/jest.config.js rename to src/platform/plugins/shared/usage_collection/jest.config.js index 35fe2a8405c50..f8940378f66c8 100644 --- a/src/plugins/usage_collection/jest.config.js +++ b/src/platform/plugins/shared/usage_collection/jest.config.js @@ -9,11 +9,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/usage_collection'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/usage_collection', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/usage_collection'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/usage_collection', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/usage_collection/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/usage_collection/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/usage_collection/jest.integration.config.js b/src/platform/plugins/shared/usage_collection/jest.integration.config.js similarity index 84% rename from src/plugins/usage_collection/jest.integration.config.js rename to src/platform/plugins/shared/usage_collection/jest.integration.config.js index d2894f9dcef95..d62c894f40ec1 100644 --- a/src/plugins/usage_collection/jest.integration.config.js +++ b/src/platform/plugins/shared/usage_collection/jest.integration.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_integration', - rootDir: '../../..', - roots: ['/src/plugins/usage_collection'], + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/usage_collection'], }; diff --git a/src/plugins/usage_collection/kibana.jsonc b/src/platform/plugins/shared/usage_collection/kibana.jsonc similarity index 100% rename from src/plugins/usage_collection/kibana.jsonc rename to src/platform/plugins/shared/usage_collection/kibana.jsonc diff --git a/src/plugins/usage_collection/public/components/index.ts b/src/platform/plugins/shared/usage_collection/public/components/index.ts similarity index 100% rename from src/plugins/usage_collection/public/components/index.ts rename to src/platform/plugins/shared/usage_collection/public/components/index.ts diff --git a/src/plugins/usage_collection/public/components/track_application_view/index.ts b/src/platform/plugins/shared/usage_collection/public/components/track_application_view/index.ts similarity index 100% rename from src/plugins/usage_collection/public/components/track_application_view/index.ts rename to src/platform/plugins/shared/usage_collection/public/components/track_application_view/index.ts diff --git a/src/plugins/usage_collection/public/components/track_application_view/track_application_view.test.tsx b/src/platform/plugins/shared/usage_collection/public/components/track_application_view/track_application_view.test.tsx similarity index 100% rename from src/plugins/usage_collection/public/components/track_application_view/track_application_view.test.tsx rename to src/platform/plugins/shared/usage_collection/public/components/track_application_view/track_application_view.test.tsx diff --git a/src/plugins/usage_collection/public/components/track_application_view/track_application_view.tsx b/src/platform/plugins/shared/usage_collection/public/components/track_application_view/track_application_view.tsx similarity index 100% rename from src/plugins/usage_collection/public/components/track_application_view/track_application_view.tsx rename to src/platform/plugins/shared/usage_collection/public/components/track_application_view/track_application_view.tsx diff --git a/src/plugins/usage_collection/public/components/track_application_view/track_application_view_component.test.tsx b/src/platform/plugins/shared/usage_collection/public/components/track_application_view/track_application_view_component.test.tsx similarity index 100% rename from src/plugins/usage_collection/public/components/track_application_view/track_application_view_component.test.tsx rename to src/platform/plugins/shared/usage_collection/public/components/track_application_view/track_application_view_component.test.tsx diff --git a/src/plugins/usage_collection/public/components/track_application_view/track_application_view_component.tsx b/src/platform/plugins/shared/usage_collection/public/components/track_application_view/track_application_view_component.tsx similarity index 100% rename from src/plugins/usage_collection/public/components/track_application_view/track_application_view_component.tsx rename to src/platform/plugins/shared/usage_collection/public/components/track_application_view/track_application_view_component.tsx diff --git a/src/plugins/usage_collection/public/components/track_application_view/types.ts b/src/platform/plugins/shared/usage_collection/public/components/track_application_view/types.ts similarity index 100% rename from src/plugins/usage_collection/public/components/track_application_view/types.ts rename to src/platform/plugins/shared/usage_collection/public/components/track_application_view/types.ts diff --git a/src/plugins/usage_collection/public/index.ts b/src/platform/plugins/shared/usage_collection/public/index.ts similarity index 100% rename from src/plugins/usage_collection/public/index.ts rename to src/platform/plugins/shared/usage_collection/public/index.ts diff --git a/src/plugins/usage_collection/public/mocks.tsx b/src/platform/plugins/shared/usage_collection/public/mocks.tsx similarity index 100% rename from src/plugins/usage_collection/public/mocks.tsx rename to src/platform/plugins/shared/usage_collection/public/mocks.tsx diff --git a/src/plugins/usage_collection/public/plugin.tsx b/src/platform/plugins/shared/usage_collection/public/plugin.tsx similarity index 100% rename from src/plugins/usage_collection/public/plugin.tsx rename to src/platform/plugins/shared/usage_collection/public/plugin.tsx diff --git a/src/plugins/usage_collection/public/services/application_usage.test.ts b/src/platform/plugins/shared/usage_collection/public/services/application_usage.test.ts similarity index 100% rename from src/plugins/usage_collection/public/services/application_usage.test.ts rename to src/platform/plugins/shared/usage_collection/public/services/application_usage.test.ts diff --git a/src/plugins/usage_collection/public/services/application_usage.ts b/src/platform/plugins/shared/usage_collection/public/services/application_usage.ts similarity index 100% rename from src/plugins/usage_collection/public/services/application_usage.ts rename to src/platform/plugins/shared/usage_collection/public/services/application_usage.ts diff --git a/src/plugins/usage_collection/public/services/create_reporter.ts b/src/platform/plugins/shared/usage_collection/public/services/create_reporter.ts similarity index 100% rename from src/plugins/usage_collection/public/services/create_reporter.ts rename to src/platform/plugins/shared/usage_collection/public/services/create_reporter.ts diff --git a/src/plugins/usage_collection/public/services/index.ts b/src/platform/plugins/shared/usage_collection/public/services/index.ts similarity index 100% rename from src/plugins/usage_collection/public/services/index.ts rename to src/platform/plugins/shared/usage_collection/public/services/index.ts diff --git a/src/plugins/usage_collection/server/collector/__snapshots__/collector_set.test.ts.snap b/src/platform/plugins/shared/usage_collection/server/collector/__snapshots__/collector_set.test.ts.snap similarity index 100% rename from src/plugins/usage_collection/server/collector/__snapshots__/collector_set.test.ts.snap rename to src/platform/plugins/shared/usage_collection/server/collector/__snapshots__/collector_set.test.ts.snap diff --git a/src/plugins/usage_collection/server/collector/collector.test.ts b/src/platform/plugins/shared/usage_collection/server/collector/collector.test.ts similarity index 100% rename from src/plugins/usage_collection/server/collector/collector.test.ts rename to src/platform/plugins/shared/usage_collection/server/collector/collector.test.ts diff --git a/src/plugins/usage_collection/server/collector/collector.ts b/src/platform/plugins/shared/usage_collection/server/collector/collector.ts similarity index 100% rename from src/plugins/usage_collection/server/collector/collector.ts rename to src/platform/plugins/shared/usage_collection/server/collector/collector.ts diff --git a/src/plugins/usage_collection/server/collector/collector_set.test.ts b/src/platform/plugins/shared/usage_collection/server/collector/collector_set.test.ts similarity index 100% rename from src/plugins/usage_collection/server/collector/collector_set.test.ts rename to src/platform/plugins/shared/usage_collection/server/collector/collector_set.test.ts diff --git a/src/plugins/usage_collection/server/collector/collector_set.ts b/src/platform/plugins/shared/usage_collection/server/collector/collector_set.ts similarity index 100% rename from src/plugins/usage_collection/server/collector/collector_set.ts rename to src/platform/plugins/shared/usage_collection/server/collector/collector_set.ts diff --git a/src/plugins/usage_collection/server/collector/collector_stats/README.md b/src/platform/plugins/shared/usage_collection/server/collector/collector_stats/README.md similarity index 100% rename from src/plugins/usage_collection/server/collector/collector_stats/README.md rename to src/platform/plugins/shared/usage_collection/server/collector/collector_stats/README.md diff --git a/src/plugins/usage_collection/server/collector/collector_stats/index.ts b/src/platform/plugins/shared/usage_collection/server/collector/collector_stats/index.ts similarity index 100% rename from src/plugins/usage_collection/server/collector/collector_stats/index.ts rename to src/platform/plugins/shared/usage_collection/server/collector/collector_stats/index.ts diff --git a/src/plugins/usage_collection/server/collector/collector_stats/schema.ts b/src/platform/plugins/shared/usage_collection/server/collector/collector_stats/schema.ts similarity index 100% rename from src/plugins/usage_collection/server/collector/collector_stats/schema.ts rename to src/platform/plugins/shared/usage_collection/server/collector/collector_stats/schema.ts diff --git a/src/plugins/usage_collection/server/collector/collector_stats/usage_collector_stats_collector.test.ts b/src/platform/plugins/shared/usage_collection/server/collector/collector_stats/usage_collector_stats_collector.test.ts similarity index 100% rename from src/plugins/usage_collection/server/collector/collector_stats/usage_collector_stats_collector.test.ts rename to src/platform/plugins/shared/usage_collection/server/collector/collector_stats/usage_collector_stats_collector.test.ts diff --git a/src/plugins/usage_collection/server/collector/collector_stats/usage_collector_stats_collector.ts b/src/platform/plugins/shared/usage_collection/server/collector/collector_stats/usage_collector_stats_collector.ts similarity index 100% rename from src/plugins/usage_collection/server/collector/collector_stats/usage_collector_stats_collector.ts rename to src/platform/plugins/shared/usage_collection/server/collector/collector_stats/usage_collector_stats_collector.ts diff --git a/src/plugins/usage_collection/server/collector/index.ts b/src/platform/plugins/shared/usage_collection/server/collector/index.ts similarity index 100% rename from src/plugins/usage_collection/server/collector/index.ts rename to src/platform/plugins/shared/usage_collection/server/collector/index.ts diff --git a/src/plugins/usage_collection/server/collector/measure_duration.ts b/src/platform/plugins/shared/usage_collection/server/collector/measure_duration.ts similarity index 100% rename from src/plugins/usage_collection/server/collector/measure_duration.ts rename to src/platform/plugins/shared/usage_collection/server/collector/measure_duration.ts diff --git a/src/plugins/usage_collection/server/collector/types.ts b/src/platform/plugins/shared/usage_collection/server/collector/types.ts similarity index 100% rename from src/plugins/usage_collection/server/collector/types.ts rename to src/platform/plugins/shared/usage_collection/server/collector/types.ts diff --git a/src/plugins/usage_collection/server/collector/usage_collector.ts b/src/platform/plugins/shared/usage_collection/server/collector/usage_collector.ts similarity index 100% rename from src/plugins/usage_collection/server/collector/usage_collector.ts rename to src/platform/plugins/shared/usage_collection/server/collector/usage_collector.ts diff --git a/src/plugins/usage_collection/server/config.ts b/src/platform/plugins/shared/usage_collection/server/config.ts similarity index 100% rename from src/plugins/usage_collection/server/config.ts rename to src/platform/plugins/shared/usage_collection/server/config.ts diff --git a/src/plugins/usage_collection/server/index.ts b/src/platform/plugins/shared/usage_collection/server/index.ts similarity index 100% rename from src/plugins/usage_collection/server/index.ts rename to src/platform/plugins/shared/usage_collection/server/index.ts diff --git a/src/plugins/usage_collection/server/mocks.ts b/src/platform/plugins/shared/usage_collection/server/mocks.ts similarity index 100% rename from src/plugins/usage_collection/server/mocks.ts rename to src/platform/plugins/shared/usage_collection/server/mocks.ts diff --git a/src/plugins/usage_collection/server/plugin.ts b/src/platform/plugins/shared/usage_collection/server/plugin.ts similarity index 100% rename from src/plugins/usage_collection/server/plugin.ts rename to src/platform/plugins/shared/usage_collection/server/plugin.ts diff --git a/src/plugins/usage_collection/server/report/index.ts b/src/platform/plugins/shared/usage_collection/server/report/index.ts similarity index 100% rename from src/plugins/usage_collection/server/report/index.ts rename to src/platform/plugins/shared/usage_collection/server/report/index.ts diff --git a/src/plugins/usage_collection/server/report/schema.ts b/src/platform/plugins/shared/usage_collection/server/report/schema.ts similarity index 100% rename from src/plugins/usage_collection/server/report/schema.ts rename to src/platform/plugins/shared/usage_collection/server/report/schema.ts diff --git a/src/plugins/usage_collection/server/report/store_application_usage.test.ts b/src/platform/plugins/shared/usage_collection/server/report/store_application_usage.test.ts similarity index 100% rename from src/plugins/usage_collection/server/report/store_application_usage.test.ts rename to src/platform/plugins/shared/usage_collection/server/report/store_application_usage.test.ts diff --git a/src/plugins/usage_collection/server/report/store_application_usage.ts b/src/platform/plugins/shared/usage_collection/server/report/store_application_usage.ts similarity index 100% rename from src/plugins/usage_collection/server/report/store_application_usage.ts rename to src/platform/plugins/shared/usage_collection/server/report/store_application_usage.ts diff --git a/src/plugins/usage_collection/server/report/store_ui_report.test.mocks.ts b/src/platform/plugins/shared/usage_collection/server/report/store_ui_report.test.mocks.ts similarity index 100% rename from src/plugins/usage_collection/server/report/store_ui_report.test.mocks.ts rename to src/platform/plugins/shared/usage_collection/server/report/store_ui_report.test.mocks.ts diff --git a/src/plugins/usage_collection/server/report/store_ui_report.test.ts b/src/platform/plugins/shared/usage_collection/server/report/store_ui_report.test.ts similarity index 100% rename from src/plugins/usage_collection/server/report/store_ui_report.test.ts rename to src/platform/plugins/shared/usage_collection/server/report/store_ui_report.test.ts diff --git a/src/plugins/usage_collection/server/report/store_ui_report.ts b/src/platform/plugins/shared/usage_collection/server/report/store_ui_report.ts similarity index 100% rename from src/plugins/usage_collection/server/report/store_ui_report.ts rename to src/platform/plugins/shared/usage_collection/server/report/store_ui_report.ts diff --git a/src/plugins/usage_collection/server/routes/index.ts b/src/platform/plugins/shared/usage_collection/server/routes/index.ts similarity index 100% rename from src/plugins/usage_collection/server/routes/index.ts rename to src/platform/plugins/shared/usage_collection/server/routes/index.ts diff --git a/src/plugins/usage_collection/server/routes/integration_tests/stats.test.ts b/src/platform/plugins/shared/usage_collection/server/routes/integration_tests/stats.test.ts similarity index 100% rename from src/plugins/usage_collection/server/routes/integration_tests/stats.test.ts rename to src/platform/plugins/shared/usage_collection/server/routes/integration_tests/stats.test.ts diff --git a/src/plugins/usage_collection/server/routes/stats/README.md b/src/platform/plugins/shared/usage_collection/server/routes/stats/README.md similarity index 100% rename from src/plugins/usage_collection/server/routes/stats/README.md rename to src/platform/plugins/shared/usage_collection/server/routes/stats/README.md diff --git a/src/plugins/usage_collection/server/routes/stats/index.ts b/src/platform/plugins/shared/usage_collection/server/routes/stats/index.ts similarity index 100% rename from src/plugins/usage_collection/server/routes/stats/index.ts rename to src/platform/plugins/shared/usage_collection/server/routes/stats/index.ts diff --git a/src/plugins/usage_collection/server/routes/stats/stats.ts b/src/platform/plugins/shared/usage_collection/server/routes/stats/stats.ts similarity index 100% rename from src/plugins/usage_collection/server/routes/stats/stats.ts rename to src/platform/plugins/shared/usage_collection/server/routes/stats/stats.ts diff --git a/src/plugins/usage_collection/server/routes/ui_counters.ts b/src/platform/plugins/shared/usage_collection/server/routes/ui_counters.ts similarity index 100% rename from src/plugins/usage_collection/server/routes/ui_counters.ts rename to src/platform/plugins/shared/usage_collection/server/routes/ui_counters.ts diff --git a/src/plugins/usage_collection/server/usage_counters/common/kuery_utils.test.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/common/kuery_utils.test.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/common/kuery_utils.test.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/common/kuery_utils.test.ts diff --git a/src/plugins/usage_collection/server/usage_counters/common/kuery_utils.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/common/kuery_utils.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/common/kuery_utils.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/common/kuery_utils.ts diff --git a/src/plugins/usage_collection/server/usage_counters/index.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/index.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/index.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/index.ts diff --git a/src/plugins/usage_collection/server/usage_counters/integration_tests/counter_utils.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/integration_tests/counter_utils.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/integration_tests/counter_utils.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/integration_tests/counter_utils.ts diff --git a/src/plugins/usage_collection/server/usage_counters/integration_tests/rollups.test.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/integration_tests/rollups.test.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/integration_tests/rollups.test.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/integration_tests/rollups.test.ts diff --git a/src/plugins/usage_collection/server/usage_counters/integration_tests/search.test.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/integration_tests/search.test.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/integration_tests/search.test.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/integration_tests/search.test.ts diff --git a/src/plugins/usage_collection/server/usage_counters/rollups/constants.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/rollups/constants.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/rollups/constants.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/rollups/constants.ts diff --git a/src/plugins/usage_collection/server/usage_counters/rollups/index.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/rollups/index.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/rollups/index.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/rollups/index.ts diff --git a/src/plugins/usage_collection/server/usage_counters/rollups/register_rollups.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/rollups/register_rollups.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/rollups/register_rollups.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/rollups/register_rollups.ts diff --git a/src/plugins/usage_collection/server/usage_counters/rollups/rollups.test.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/rollups/rollups.test.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/rollups/rollups.test.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/rollups/rollups.test.ts diff --git a/src/plugins/usage_collection/server/usage_counters/rollups/rollups.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/rollups/rollups.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/rollups/rollups.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/rollups/rollups.ts diff --git a/src/plugins/usage_collection/server/usage_counters/saved_objects.test.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/saved_objects.test.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/saved_objects.test.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/saved_objects.test.ts diff --git a/src/plugins/usage_collection/server/usage_counters/saved_objects.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/saved_objects.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/saved_objects.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/saved_objects.ts diff --git a/src/plugins/usage_collection/server/usage_counters/search/index.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/search/index.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/search/index.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/search/index.ts diff --git a/src/plugins/usage_collection/server/usage_counters/search/search.fixtures.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/search/search.fixtures.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/search/search.fixtures.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/search/search.fixtures.ts diff --git a/src/plugins/usage_collection/server/usage_counters/search/search.test.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/search/search.test.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/search/search.test.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/search/search.test.ts diff --git a/src/plugins/usage_collection/server/usage_counters/search/search.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/search/search.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/search/search.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/search/search.ts diff --git a/src/plugins/usage_collection/server/usage_counters/types.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/types.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/types.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/types.ts diff --git a/src/plugins/usage_collection/server/usage_counters/usage_counter.test.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/usage_counter.test.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/usage_counter.test.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/usage_counter.test.ts diff --git a/src/plugins/usage_collection/server/usage_counters/usage_counter.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/usage_counter.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/usage_counter.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/usage_counter.ts diff --git a/src/plugins/usage_collection/server/usage_counters/usage_counters_service.mock.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/usage_counters_service.mock.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/usage_counters_service.mock.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/usage_counters_service.mock.ts diff --git a/src/plugins/usage_collection/server/usage_counters/usage_counters_service.test.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/usage_counters_service.test.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/usage_counters_service.test.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/usage_counters_service.test.ts diff --git a/src/plugins/usage_collection/server/usage_counters/usage_counters_service.ts b/src/platform/plugins/shared/usage_collection/server/usage_counters/usage_counters_service.ts similarity index 100% rename from src/plugins/usage_collection/server/usage_counters/usage_counters_service.ts rename to src/platform/plugins/shared/usage_collection/server/usage_counters/usage_counters_service.ts diff --git a/src/plugins/usage_collection/tsconfig.json b/src/platform/plugins/shared/usage_collection/tsconfig.json similarity index 89% rename from src/plugins/usage_collection/tsconfig.json rename to src/platform/plugins/shared/usage_collection/tsconfig.json index 444f4908bf401..b1f637e38a166 100644 --- a/src/plugins/usage_collection/tsconfig.json +++ b/src/platform/plugins/shared/usage_collection/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "isolatedModules": true @@ -8,7 +8,7 @@ "public/**/*", "server/**/*", "common/**/*", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/core", diff --git a/test/plugin_functional/plugins/usage_collection/package.json b/test/plugin_functional/plugins/usage_collection/package.json index d57736dc83481..5b23ab2bdb45c 100644 --- a/test/plugin_functional/plugins/usage_collection/package.json +++ b/test/plugin_functional/plugins/usage_collection/package.json @@ -1,7 +1,7 @@ { "name": "@kbn/usage-collection-test-plugin", "version": "1.0.0", - "main": "target/test/plugin_functional/plugins/usage_collection", + "main": "target/test/plugin_functional/platform/plugins/shared/usage_collection", "kibana": { "version": "kibana", "templateVersion": "1.0.0" diff --git a/tsconfig.base.json b/tsconfig.base.json index aa9de4b42b988..f8616706b5224 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -2010,8 +2010,8 @@ "@kbn/url-drilldown-plugin/*": ["x-pack/plugins/drilldowns/url_drilldown/*"], "@kbn/url-forwarding-plugin": ["src/plugins/url_forwarding"], "@kbn/url-forwarding-plugin/*": ["src/plugins/url_forwarding/*"], - "@kbn/usage-collection-plugin": ["src/plugins/usage_collection"], - "@kbn/usage-collection-plugin/*": ["src/plugins/usage_collection/*"], + "@kbn/usage-collection-plugin": ["src/platform/plugins/shared/usage_collection"], + "@kbn/usage-collection-plugin/*": ["src/platform/plugins/shared/usage_collection/*"], "@kbn/usage-collection-test-plugin": ["test/plugin_functional/plugins/usage_collection"], "@kbn/usage-collection-test-plugin/*": ["test/plugin_functional/plugins/usage_collection/*"], "@kbn/use-tracked-promise": ["packages/kbn-use-tracked-promise"], diff --git a/x-pack/platform/plugins/private/upgrade_assistant/README.md b/x-pack/platform/plugins/private/upgrade_assistant/README.md index c08241b4c50e7..b95a756839cb7 100644 --- a/x-pack/platform/plugins/private/upgrade_assistant/README.md +++ b/x-pack/platform/plugins/private/upgrade_assistant/README.md @@ -342,7 +342,7 @@ This is a non-exhaustive list of different error scenarios in Upgrade Assistant. ### Telemetry -The Upgrade Assistant tracks several triggered events in the UI, using Kibana Usage Collection service's [UI counters](https://github.com/elastic/kibana/blob/main/src/plugins/usage_collection/README.mdx#ui-counters). +The Upgrade Assistant tracks several triggered events in the UI, using Kibana Usage Collection service's [UI counters](https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/usage_collection/README.mdx#ui-counters). **Overview page** - Component loaded @@ -361,6 +361,6 @@ The Upgrade Assistant tracks several triggered events in the UI, using Kibana Us - Component loaded - Click event for "Quick resolve" button -In addition to UI counters, the Upgrade Assistant has a [custom usage collector](https://github.com/elastic/kibana/blob/main/src/plugins/usage_collection/README.mdx#custom-collector). It currently is only responsible for tracking whether the user has deprecation logging enabled or not. +In addition to UI counters, the Upgrade Assistant has a [custom usage collector](https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/usage_collection/README.mdx#custom-collector). It currently is only responsible for tracking whether the user has deprecation logging enabled or not. -For testing instructions, refer to the [Kibana Usage Collection service README](https://github.com/elastic/kibana/blob/main/src/plugins/usage_collection/README.mdx#testing). +For testing instructions, refer to the [Kibana Usage Collection service README](https://github.com/elastic/kibana/blob/main/src/platform/plugins/shared/usage_collection/README.mdx#testing). diff --git a/x-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md b/x-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md index 5cb335c86ece3..8b47080fcd2ce 100644 --- a/x-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md +++ b/x-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md @@ -14,7 +14,7 @@ Telemetry data is uploaded to the "xpack-phone-home" indices. Information that can be derived from a cluster's APM indices is queried and sent to the telemetry cluster using the -[Usage Collection plugin](../../../../../src/plugins/usage_collection/README.mdx). +[Usage Collection plugin](../../../../../src/platform/plugins/shared/usage_collection/README.mdx). During the APM server-side plugin's setup phase a [Saved Object](https://www.elastic.co/guide/en/kibana/master/managing-saved-objects.html) diff --git a/yarn.lock b/yarn.lock index 00e7eb2455ba1..b1e2e3c7678fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7837,7 +7837,7 @@ version "0.0.0" uid "" -"@kbn/usage-collection-plugin@link:src/plugins/usage_collection": +"@kbn/usage-collection-plugin@link:src/platform/plugins/shared/usage_collection": version "0.0.0" uid "" From 7967f5bf91b1b7925368710f5ddc476189276df0 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:17:41 +0100 Subject: [PATCH 161/167] Relocating module `@kbn/utility-types` --- .buildkite/scripts/pipelines/pull_request/pipeline.ts | 2 +- .github/CODEOWNERS | 6 +++--- package.json | 2 +- src/dev/precommit_hook/casing_check_config.js | 2 +- .../platform/packages/shared}/kbn-utility-types/README.md | 0 .../platform/packages/shared}/kbn-utility-types/index.ts | 0 .../packages/shared}/kbn-utility-types/kibana.jsonc | 0 .../packages/shared}/kbn-utility-types/package.json | 2 +- .../platform/packages/shared}/kbn-utility-types/src/dot.ts | 0 .../shared}/kbn-utility-types/src/serializable/index.ts | 0 .../shared}/kbn-utility-types/src/tsd_tests/empty.d.ts | 0 .../shared}/kbn-utility-types/src/tsd_tests/package.json | 0 .../shared}/kbn-utility-types/src/tsd_tests/test_d/dot.ts | 0 .../src/tsd_tests/test_d/method_keys_of.ts | 0 .../src/tsd_tests/test_d/public_contract.ts | 0 .../kbn-utility-types/src/tsd_tests/test_d/public_keys.ts | 0 .../src/tsd_tests/test_d/public_methods_of.ts | 0 .../src/tsd_tests/test_d/shallow_promise.ts | 0 .../src/tsd_tests/test_d/union_to_intersection.ts | 0 .../src/tsd_tests/test_d/unwrap_observable.ts | 0 .../kbn-utility-types/src/tsd_tests/test_d/values.ts | 0 .../kbn-utility-types/src/tsd_tests/test_d/writable.ts | 0 .../packages/shared}/kbn-utility-types/tsconfig.json | 2 +- tsconfig.base.json | 4 ++-- .../public/entity_analytics/common/utils.ts | 2 +- yarn.lock | 2 +- 26 files changed, 12 insertions(+), 12 deletions(-) rename {packages => src/platform/packages/shared}/kbn-utility-types/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/package.json (71%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/dot.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/serializable/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/tsd_tests/empty.d.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/tsd_tests/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/tsd_tests/test_d/dot.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/tsd_tests/test_d/method_keys_of.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/tsd_tests/test_d/public_contract.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/tsd_tests/test_d/public_keys.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/tsd_tests/test_d/public_methods_of.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/tsd_tests/test_d/shallow_promise.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/tsd_tests/test_d/union_to_intersection.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/tsd_tests/test_d/unwrap_observable.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/tsd_tests/test_d/values.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/src/tsd_tests/test_d/writable.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types/tsconfig.json (77%) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 73dc519bcd403..fe800f550f592 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -315,7 +315,7 @@ const getPipeline = (filename: string, removeSteps = true) => { /^x-pack\/solutions\/security\/packages\/kbn-securitysolution-list-hooks/, /^x-pack\/solutions\/security\/packages\/kbn-securitysolution-t-grid/, /^src\/platform\/packages\/shared\/kbn-ui-theme/, - /^packages\/kbn-utility-types/, + /^src\/platform\/packages\/shared\/kbn-utility-types/, /^packages\/react/, /^packages\/shared-ux/, /^src\/core/, diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2f9359702d459..ae185bd9b7c9b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -273,7 +273,6 @@ packages/kbn-ts-type-check-cli @elastic/kibana-operations packages/kbn-ui-actions-browser @elastic/appex-sharedux packages/kbn-use-tracked-promise @elastic/obs-ux-logs-team packages/kbn-user-profile-components @elastic/kibana-security -packages/kbn-utility-types @elastic/kibana-core packages/kbn-validate-next-docs-cli @elastic/kibana-operations packages/kbn-visualization-ui-components @elastic/kibana-visualizations packages/kbn-visualization-utils @elastic/kibana-visualizations @@ -594,6 +593,7 @@ src/platform/packages/shared/kbn-unified-data-table @elastic/kibana-data-discove src/platform/packages/shared/kbn-unified-doc-viewer @elastic/kibana-data-discovery src/platform/packages/shared/kbn-unified-field-list @elastic/kibana-data-discovery src/platform/packages/shared/kbn-unsaved-changes-prompt @elastic/kibana-management +src/platform/packages/shared/kbn-utility-types @elastic/kibana-core src/platform/packages/shared/kbn-utility-types-jest @elastic/kibana-operations src/platform/packages/shared/kbn-utils @elastic/kibana-operations src/platform/packages/shared/kbn-xstate-utils @elastic/obs-ux-logs-team @@ -1395,8 +1395,8 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /x-pack/test/functional/apps/apm/ @elastic/obs-ux-infra_services-team /x-pack/test/apm_api_integration/ @elastic/obs-ux-infra_services-team /src/apm.js @elastic/kibana-core @vigneshshanmugam -/packages/kbn-utility-types/src/dot.ts @dgieselaar -/packages/kbn-utility-types/src/dot_test.ts @dgieselaar +/src/platform/packages/shared/kbn-utility-types/src/dot.ts @dgieselaar +/src/platform/packages/shared/kbn-utility-types/src/dot_test.ts @dgieselaar /x-pack/test_serverless/api_integration/test_suites/observability/apm_api_integration/ @elastic/obs-ux-infra_services-team #CC# /src/plugins/apm_oss/ @elastic/apm-ui #CC# /x-pack/plugins/observability_solution/observability/ @elastic/apm-ui diff --git a/package.json b/package.json index 428595efe9b6a..ba81573b5d9e4 100644 --- a/package.json +++ b/package.json @@ -1004,7 +1004,7 @@ "@kbn/user-profile-components": "link:packages/kbn-user-profile-components", "@kbn/user-profile-examples-plugin": "link:examples/user_profile_examples", "@kbn/user-profiles-consumer-plugin": "link:x-pack/test/security_api_integration/plugins/user_profiles_consumer", - "@kbn/utility-types": "link:packages/kbn-utility-types", + "@kbn/utility-types": "link:src/platform/packages/shared/kbn-utility-types", "@kbn/utility-types-jest": "link:src/platform/packages/shared/kbn-utility-types-jest", "@kbn/utils": "link:src/platform/packages/shared/kbn-utils", "@kbn/ux-plugin": "link:x-pack/solutions/observability/plugins/ux", diff --git a/src/dev/precommit_hook/casing_check_config.js b/src/dev/precommit_hook/casing_check_config.js index 7addc578efbfe..babde56552eb4 100644 --- a/src/dev/precommit_hook/casing_check_config.js +++ b/src/dev/precommit_hook/casing_check_config.js @@ -38,7 +38,7 @@ export const IGNORE_FILE_GLOBS = [ 'x-pack/docs/**/*', 'src/core/packages/apps/server-internal/assets/fonts/**/*', 'src/dev/code_coverage/ingest_coverage/integration_tests/mocks/**/*', - 'packages/kbn-utility-types/test-d/**/*', + 'src/platform/packages/shared/kbn-utility-types/test-d/**/*', 'Dockerfile*', 'vars/*', 'packages/kbn-test/jest-preset.js', diff --git a/packages/kbn-utility-types/README.md b/src/platform/packages/shared/kbn-utility-types/README.md similarity index 100% rename from packages/kbn-utility-types/README.md rename to src/platform/packages/shared/kbn-utility-types/README.md diff --git a/packages/kbn-utility-types/index.ts b/src/platform/packages/shared/kbn-utility-types/index.ts similarity index 100% rename from packages/kbn-utility-types/index.ts rename to src/platform/packages/shared/kbn-utility-types/index.ts diff --git a/packages/kbn-utility-types/kibana.jsonc b/src/platform/packages/shared/kbn-utility-types/kibana.jsonc similarity index 100% rename from packages/kbn-utility-types/kibana.jsonc rename to src/platform/packages/shared/kbn-utility-types/kibana.jsonc diff --git a/packages/kbn-utility-types/package.json b/src/platform/packages/shared/kbn-utility-types/package.json similarity index 71% rename from packages/kbn-utility-types/package.json rename to src/platform/packages/shared/kbn-utility-types/package.json index 6f88b2d74d0ff..1a53c8d0a879d 100644 --- a/packages/kbn-utility-types/package.json +++ b/src/platform/packages/shared/kbn-utility-types/package.json @@ -4,6 +4,6 @@ "private": true, "license": "Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0", "scripts": { - "test": "../../node_modules/.bin/tsd src/tsd_tests" + "test": "../../../../../node_modules/.bin/tsd src/tsd_tests" } } \ No newline at end of file diff --git a/packages/kbn-utility-types/src/dot.ts b/src/platform/packages/shared/kbn-utility-types/src/dot.ts similarity index 100% rename from packages/kbn-utility-types/src/dot.ts rename to src/platform/packages/shared/kbn-utility-types/src/dot.ts diff --git a/packages/kbn-utility-types/src/serializable/index.ts b/src/platform/packages/shared/kbn-utility-types/src/serializable/index.ts similarity index 100% rename from packages/kbn-utility-types/src/serializable/index.ts rename to src/platform/packages/shared/kbn-utility-types/src/serializable/index.ts diff --git a/packages/kbn-utility-types/src/tsd_tests/empty.d.ts b/src/platform/packages/shared/kbn-utility-types/src/tsd_tests/empty.d.ts similarity index 100% rename from packages/kbn-utility-types/src/tsd_tests/empty.d.ts rename to src/platform/packages/shared/kbn-utility-types/src/tsd_tests/empty.d.ts diff --git a/packages/kbn-utility-types/src/tsd_tests/package.json b/src/platform/packages/shared/kbn-utility-types/src/tsd_tests/package.json similarity index 100% rename from packages/kbn-utility-types/src/tsd_tests/package.json rename to src/platform/packages/shared/kbn-utility-types/src/tsd_tests/package.json diff --git a/packages/kbn-utility-types/src/tsd_tests/test_d/dot.ts b/src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/dot.ts similarity index 100% rename from packages/kbn-utility-types/src/tsd_tests/test_d/dot.ts rename to src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/dot.ts diff --git a/packages/kbn-utility-types/src/tsd_tests/test_d/method_keys_of.ts b/src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/method_keys_of.ts similarity index 100% rename from packages/kbn-utility-types/src/tsd_tests/test_d/method_keys_of.ts rename to src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/method_keys_of.ts diff --git a/packages/kbn-utility-types/src/tsd_tests/test_d/public_contract.ts b/src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/public_contract.ts similarity index 100% rename from packages/kbn-utility-types/src/tsd_tests/test_d/public_contract.ts rename to src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/public_contract.ts diff --git a/packages/kbn-utility-types/src/tsd_tests/test_d/public_keys.ts b/src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/public_keys.ts similarity index 100% rename from packages/kbn-utility-types/src/tsd_tests/test_d/public_keys.ts rename to src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/public_keys.ts diff --git a/packages/kbn-utility-types/src/tsd_tests/test_d/public_methods_of.ts b/src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/public_methods_of.ts similarity index 100% rename from packages/kbn-utility-types/src/tsd_tests/test_d/public_methods_of.ts rename to src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/public_methods_of.ts diff --git a/packages/kbn-utility-types/src/tsd_tests/test_d/shallow_promise.ts b/src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/shallow_promise.ts similarity index 100% rename from packages/kbn-utility-types/src/tsd_tests/test_d/shallow_promise.ts rename to src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/shallow_promise.ts diff --git a/packages/kbn-utility-types/src/tsd_tests/test_d/union_to_intersection.ts b/src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/union_to_intersection.ts similarity index 100% rename from packages/kbn-utility-types/src/tsd_tests/test_d/union_to_intersection.ts rename to src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/union_to_intersection.ts diff --git a/packages/kbn-utility-types/src/tsd_tests/test_d/unwrap_observable.ts b/src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/unwrap_observable.ts similarity index 100% rename from packages/kbn-utility-types/src/tsd_tests/test_d/unwrap_observable.ts rename to src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/unwrap_observable.ts diff --git a/packages/kbn-utility-types/src/tsd_tests/test_d/values.ts b/src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/values.ts similarity index 100% rename from packages/kbn-utility-types/src/tsd_tests/test_d/values.ts rename to src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/values.ts diff --git a/packages/kbn-utility-types/src/tsd_tests/test_d/writable.ts b/src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/writable.ts similarity index 100% rename from packages/kbn-utility-types/src/tsd_tests/test_d/writable.ts rename to src/platform/packages/shared/kbn-utility-types/src/tsd_tests/test_d/writable.ts diff --git a/packages/kbn-utility-types/tsconfig.json b/src/platform/packages/shared/kbn-utility-types/tsconfig.json similarity index 77% rename from packages/kbn-utility-types/tsconfig.json rename to src/platform/packages/shared/kbn-utility-types/tsconfig.json index 7617ed166fe28..67cfaee8f112d 100644 --- a/packages/kbn-utility-types/tsconfig.json +++ b/src/platform/packages/shared/kbn-utility-types/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index f8616706b5224..6cae37307dfc7 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -2022,8 +2022,8 @@ "@kbn/user-profile-examples-plugin/*": ["examples/user_profile_examples/*"], "@kbn/user-profiles-consumer-plugin": ["x-pack/test/security_api_integration/plugins/user_profiles_consumer"], "@kbn/user-profiles-consumer-plugin/*": ["x-pack/test/security_api_integration/plugins/user_profiles_consumer/*"], - "@kbn/utility-types": ["packages/kbn-utility-types"], - "@kbn/utility-types/*": ["packages/kbn-utility-types/*"], + "@kbn/utility-types": ["src/platform/packages/shared/kbn-utility-types"], + "@kbn/utility-types/*": ["src/platform/packages/shared/kbn-utility-types/*"], "@kbn/utility-types-jest": ["src/platform/packages/shared/kbn-utility-types-jest"], "@kbn/utility-types-jest/*": ["src/platform/packages/shared/kbn-utility-types-jest/*"], "@kbn/utils": ["src/platform/packages/shared/kbn-utils"], diff --git a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/common/utils.ts b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/common/utils.ts index f3097fe46b9bb..4833f14ba55cb 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/common/utils.ts +++ b/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/common/utils.ts @@ -34,7 +34,7 @@ type SnakeToCamelCaseArray = T extends Array ? Array> : T; -// TODO #173073 @tiansivive Add to utilities in `packages/kbn-utility-types` +// TODO #173073 @tiansivive Add to utilities in `src/platform/packages/shared/kbn-utility-types` export type SnakeToCamelCase = T extends Record ? { [K in keyof T as SnakeToCamelCaseString]: SnakeToCamelCase; diff --git a/yarn.lock b/yarn.lock index b1e2e3c7678fe..80011c67af404 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7865,7 +7865,7 @@ version "0.0.0" uid "" -"@kbn/utility-types@link:packages/kbn-utility-types": +"@kbn/utility-types@link:src/platform/packages/shared/kbn-utility-types": version "0.0.0" uid "" From e38d835b1b79f0f12816eeb84da7bb1882dc732c Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Sat, 4 Jan 2025 00:18:32 +0100 Subject: [PATCH 162/167] Relocating module `@kbn/zod` --- .github/CODEOWNERS | 2 +- package.json | 2 +- {packages => src/platform/packages/shared}/kbn-zod/README.md | 0 {packages => src/platform/packages/shared}/kbn-zod/index.ts | 0 .../platform/packages/shared}/kbn-zod/jest.config.js | 4 ++-- .../platform/packages/shared}/kbn-zod/kibana.jsonc | 0 .../platform/packages/shared}/kbn-zod/package.json | 0 .../platform/packages/shared}/kbn-zod/tsconfig.json | 2 +- .../platform/packages/shared}/kbn-zod/types.test.ts | 0 {packages => src/platform/packages/shared}/kbn-zod/types.ts | 0 .../platform/packages/shared}/kbn-zod/util.test.ts | 0 {packages => src/platform/packages/shared}/kbn-zod/util.ts | 0 tsconfig.base.json | 4 ++-- yarn.lock | 2 +- 14 files changed, 8 insertions(+), 8 deletions(-) rename {packages => src/platform/packages/shared}/kbn-zod/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-zod/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-zod/jest.config.js (85%) rename {packages => src/platform/packages/shared}/kbn-zod/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-zod/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-zod/tsconfig.json (80%) rename {packages => src/platform/packages/shared}/kbn-zod/types.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-zod/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-zod/util.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-zod/util.ts (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ae185bd9b7c9b..1046766a2d222 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -279,7 +279,6 @@ packages/kbn-visualization-utils @elastic/kibana-visualizations packages/kbn-web-worker-stub @elastic/kibana-operations packages/kbn-whereis-pkg-cli @elastic/kibana-operations packages/kbn-yarn-lock-validator @elastic/kibana-operations -packages/kbn-zod @elastic/kibana-core packages/react/kibana_context/common @elastic/appex-sharedux packages/react/kibana_context/render @elastic/appex-sharedux packages/react/kibana_context/root @elastic/appex-sharedux @@ -597,6 +596,7 @@ src/platform/packages/shared/kbn-utility-types @elastic/kibana-core src/platform/packages/shared/kbn-utility-types-jest @elastic/kibana-operations src/platform/packages/shared/kbn-utils @elastic/kibana-operations src/platform/packages/shared/kbn-xstate-utils @elastic/obs-ux-logs-team +src/platform/packages/shared/kbn-zod @elastic/kibana-core src/platform/packages/shared/kbn-zod-helpers @elastic/security-detection-rule-management src/platform/packages/shared/presentation/presentation_containers @elastic/kibana-presentation src/platform/packages/shared/presentation/presentation_publishing @elastic/kibana-presentation diff --git a/package.json b/package.json index ba81573b5d9e4..9f2e5ddfe7b05 100644 --- a/package.json +++ b/package.json @@ -1027,7 +1027,7 @@ "@kbn/visualizations-plugin": "link:src/plugins/visualizations", "@kbn/watcher-plugin": "link:x-pack/platform/plugins/private/watcher", "@kbn/xstate-utils": "link:src/platform/packages/shared/kbn-xstate-utils", - "@kbn/zod": "link:packages/kbn-zod", + "@kbn/zod": "link:src/platform/packages/shared/kbn-zod", "@kbn/zod-helpers": "link:src/platform/packages/shared/kbn-zod-helpers", "@langchain/aws": "^0.1.2", "@langchain/community": "0.3.14", diff --git a/packages/kbn-zod/README.md b/src/platform/packages/shared/kbn-zod/README.md similarity index 100% rename from packages/kbn-zod/README.md rename to src/platform/packages/shared/kbn-zod/README.md diff --git a/packages/kbn-zod/index.ts b/src/platform/packages/shared/kbn-zod/index.ts similarity index 100% rename from packages/kbn-zod/index.ts rename to src/platform/packages/shared/kbn-zod/index.ts diff --git a/packages/kbn-zod/jest.config.js b/src/platform/packages/shared/kbn-zod/jest.config.js similarity index 85% rename from packages/kbn-zod/jest.config.js rename to src/platform/packages/shared/kbn-zod/jest.config.js index 35e719290a314..176ffddbe51d4 100644 --- a/packages/kbn-zod/jest.config.js +++ b/src/platform/packages/shared/kbn-zod/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-zod'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-zod'], }; diff --git a/packages/kbn-zod/kibana.jsonc b/src/platform/packages/shared/kbn-zod/kibana.jsonc similarity index 100% rename from packages/kbn-zod/kibana.jsonc rename to src/platform/packages/shared/kbn-zod/kibana.jsonc diff --git a/packages/kbn-zod/package.json b/src/platform/packages/shared/kbn-zod/package.json similarity index 100% rename from packages/kbn-zod/package.json rename to src/platform/packages/shared/kbn-zod/package.json diff --git a/packages/kbn-zod/tsconfig.json b/src/platform/packages/shared/kbn-zod/tsconfig.json similarity index 80% rename from packages/kbn-zod/tsconfig.json rename to src/platform/packages/shared/kbn-zod/tsconfig.json index 2f9ddddbeea23..7aba1b1a9378a 100644 --- a/packages/kbn-zod/tsconfig.json +++ b/src/platform/packages/shared/kbn-zod/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-zod/types.test.ts b/src/platform/packages/shared/kbn-zod/types.test.ts similarity index 100% rename from packages/kbn-zod/types.test.ts rename to src/platform/packages/shared/kbn-zod/types.test.ts diff --git a/packages/kbn-zod/types.ts b/src/platform/packages/shared/kbn-zod/types.ts similarity index 100% rename from packages/kbn-zod/types.ts rename to src/platform/packages/shared/kbn-zod/types.ts diff --git a/packages/kbn-zod/util.test.ts b/src/platform/packages/shared/kbn-zod/util.test.ts similarity index 100% rename from packages/kbn-zod/util.test.ts rename to src/platform/packages/shared/kbn-zod/util.test.ts diff --git a/packages/kbn-zod/util.ts b/src/platform/packages/shared/kbn-zod/util.ts similarity index 100% rename from packages/kbn-zod/util.ts rename to src/platform/packages/shared/kbn-zod/util.ts diff --git a/tsconfig.base.json b/tsconfig.base.json index 6cae37307dfc7..5d937b66187e4 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -2076,8 +2076,8 @@ "@kbn/xstate-utils/*": ["src/platform/packages/shared/kbn-xstate-utils/*"], "@kbn/yarn-lock-validator": ["packages/kbn-yarn-lock-validator"], "@kbn/yarn-lock-validator/*": ["packages/kbn-yarn-lock-validator/*"], - "@kbn/zod": ["packages/kbn-zod"], - "@kbn/zod/*": ["packages/kbn-zod/*"], + "@kbn/zod": ["src/platform/packages/shared/kbn-zod"], + "@kbn/zod/*": ["src/platform/packages/shared/kbn-zod/*"], "@kbn/zod-helpers": ["src/platform/packages/shared/kbn-zod-helpers"], "@kbn/zod-helpers/*": ["src/platform/packages/shared/kbn-zod-helpers/*"], // END AUTOMATED PACKAGE LISTING diff --git a/yarn.lock b/yarn.lock index 80011c67af404..6876b7f33bd40 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7973,7 +7973,7 @@ version "0.0.0" uid "" -"@kbn/zod@link:packages/kbn-zod": +"@kbn/zod@link:src/platform/packages/shared/kbn-zod": version "0.0.0" uid "" From f6eccce083b2fb67532c5696ac5c246c737842c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20Haro?= Date: Thu, 19 Dec 2024 10:36:05 +0100 Subject: [PATCH 163/167] Fix telemetry schemas --- .telemetryrc.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.telemetryrc.json b/.telemetryrc.json index ca82411ffbe4c..273912101b5fe 100644 --- a/.telemetryrc.json +++ b/.telemetryrc.json @@ -2,9 +2,7 @@ { "output": "src/platform/plugins/shared/telemetry/schema/oss_plugins.json", "root": "src/plugins/", - "exclude": [ - "src/platform/plugins/private/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.ts" - ] + "exclude": [] }, { "output": "src/platform/plugins/shared/telemetry/schema/kbn_packages.json", @@ -14,6 +12,8 @@ { "output": "src/platform/plugins/shared/telemetry/schema/oss_platform.json", "root": "src/platform/", - "exclude": [] + "exclude": [ + "src/platform/plugins/private/kibana_usage_collection/server/collectors/config_usage/register_config_usage_collector.ts" + ] } ] From 72fa3666b517c8c727e26fa7562692e1667538b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20Haro?= Date: Thu, 19 Dec 2024 10:46:18 +0100 Subject: [PATCH 164/167] Fix react-intl lint rule --- packages/kbn-eslint-config/.eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-eslint-config/.eslintrc.js b/packages/kbn-eslint-config/.eslintrc.js index 57a116a2b9b68..f5e44037ea0a6 100644 --- a/packages/kbn-eslint-config/.eslintrc.js +++ b/packages/kbn-eslint-config/.eslintrc.js @@ -114,7 +114,7 @@ module.exports = { from: 'react-intl', to: '@kbn/i18n-react', disallowedMessage: `import from @kbn/i18n-react instead`, - exclude: [/packages[\/\\]kbn-i18n-react[\/\\]/], + exclude: [/src[\/\\]platform[\/\\]packages[\/\\]shared[\/\\]kbn-i18n-react/], }, { from: 'zod', From 47ad66426cc3abe01805477c4202edfa2c161230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20Haro?= Date: Thu, 19 Dec 2024 21:46:57 +0100 Subject: [PATCH 165/167] Undo changes to the test --- .../packages/shared/kbn-std/src/is_internal_url.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/packages/shared/kbn-std/src/is_internal_url.test.ts b/src/platform/packages/shared/kbn-std/src/is_internal_url.test.ts index 487137d6a27a0..54afc034ffa36 100644 --- a/src/platform/packages/shared/kbn-std/src/is_internal_url.test.ts +++ b/src/platform/packages/shared/kbn-std/src/is_internal_url.test.ts @@ -54,12 +54,12 @@ describe('isInternalURL', () => { }); it('should return `true` if relative path does not escape base path', () => { - const href = `${basePath}/app/kibana/../../../../../management`; + const href = `${basePath}/app/kibana/../../management`; expect(isInternalURL(href, basePath)).toBe(true); }); it('should return `false` if relative path escapes base path', () => { - const href = `${basePath}/app/kibana/../../../../../../management`; + const href = `${basePath}/app/kibana/../../../management`; expect(isInternalURL(href, basePath)).toBe(false); }); From 2abcfa47d8219bc772b525ab12d713d35e8d0019 Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Sat, 4 Jan 2025 10:38:52 +0000 Subject: [PATCH 166/167] [CI] Auto-commit changed files from 'node scripts/telemetry_check' --- .../shared/telemetry/schema/oss_platform.json | 12836 +++++++++++++++- .../shared/telemetry/schema/oss_plugins.json | 12384 --------------- .../schema/xpack_platform.json | 101 + .../schema/xpack_plugins.json | 101 - 4 files changed, 12711 insertions(+), 12711 deletions(-) diff --git a/src/platform/plugins/shared/telemetry/schema/oss_platform.json b/src/platform/plugins/shared/telemetry/schema/oss_platform.json index 9b5246d49d059..2bd3174ba35d3 100644 --- a/src/platform/plugins/shared/telemetry/schema/oss_platform.json +++ b/src/platform/plugins/shared/telemetry/schema/oss_platform.json @@ -1,49 +1,524 @@ { "properties": { - "dashboard": { + "application_usage": { "properties": { - "panels": { + "dashboards": { "properties": { - "total": { - "type": "long" + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } }, - "by_reference": { - "type": "long" + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } }, - "by_value": { - "type": "long" + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } }, - "by_type": { - "properties": { - "DYNAMIC_KEY": { - "properties": { - "total": { - "type": "long", - "_meta": { - "description": "The number of panels that have been added to all dashboards." - } - }, - "by_reference": { - "type": "long", - "_meta": { - "description": "The number of \"by reference\" panels that have been added to all dashboards." - } - }, - "by_value": { - "type": "long", - "_meta": { - "description": "The number of \"by value\" panels that have been added to all dashboards." - } - }, - "details": { - "properties": { - "DYNAMIC_KEY": { - "type": "long", - "_meta": { - "description": "Collection of telemetry metrics that embeddable service reports. Embeddable service internally calls each embeddable, which in turn calls its dynamic actions, which calls each drill down attached to that embeddable." - } - } - } + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "dev_tools": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "discover": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "home": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" } } } @@ -51,62 +526,11968 @@ } } }, - "controls": { - "properties": { - "total": { - "type": "long" - }, - "by_type": { - "properties": { - "DYNAMIC_KEY": { - "properties": { - "total": { - "type": "long", - "_meta": { - "description": "The number of this type of control in all Control Groups" - } - }, - "details": { - "properties": { - "DYNAMIC_KEY": { - "type": "long", - "_meta": { - "description": "Collection of telemetry metrics that embeddable service reports. Will be used for details which are specific to the current control type" - } - } - } - } - } + "kibana": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "management": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "short_url_redirect": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "visualize": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "error": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "status": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "kibanaOverview": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "r": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "apm": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "canvas": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "enterpriseSearch": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "enterpriseSearchContent": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "searchInferenceEndpoints": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "searchPlayground": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "enterpriseSearchAnalytics": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "enterpriseSearchApplications": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "enterpriseSearchAISearch": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "enterpriseSearchRedirect": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "enterpriseSearchSemanticSearch": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "enterpriseSearchVectorSearch": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "enterpriseSearchElasticsearch": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "entity_manager": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "appSearch": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "workplaceSearch": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "searchExperiences": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "graph": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "logs": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "metrics": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "fleet": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "integrations": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "ingestManager": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "inventory": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "lens": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "maps": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "ml": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "monitoring": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "observability-log-explorer": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "observability-logs-explorer": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "observability-overview": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "observabilityOnboarding": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "observabilityAIAssistant": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "exploratory-view": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "osquery": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "profiling": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "slo": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "security_account": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "reportingRedirect": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "security_access_agreement": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "security_capture_url": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "security_logged_out": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "security_login": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "security_logout": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "security_overwritten_session": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "securitySolutionUI": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "siem": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "space_selector": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "streams": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "uptime": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "synthetics": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + }, + "ux": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "Always `main`" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen over the last 90 days" + } + }, + "views": { + "type": "array", + "items": { + "properties": { + "appId": { + "type": "keyword", + "_meta": { + "description": "The application being tracked" + } + }, + "viewId": { + "type": "keyword", + "_meta": { + "description": "The application view being tracked" + } + }, + "clicks_total": { + "type": "long", + "_meta": { + "description": "General number of clicks in the application sub view since we started counting them" + } + }, + "clicks_7_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 7 days" + } + }, + "clicks_30_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 30 days" + } + }, + "clicks_90_days": { + "type": "long", + "_meta": { + "description": "General number of clicks in the active application sub view over the last 90 days" + } + }, + "minutes_on_screen_total": { + "type": "float", + "_meta": { + "description": "Minutes the application sub view is active and on-screen since we started counting them." + } + }, + "minutes_on_screen_7_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" + } + }, + "minutes_on_screen_30_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" + } + }, + "minutes_on_screen_90_days": { + "type": "float", + "_meta": { + "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" + } + } + } + } + } + } + } + } + }, + "cloud_provider": { + "properties": { + "name": { + "type": "keyword", + "_meta": { + "description": "The name of the cloud provider" + } + }, + "vm_type": { + "type": "keyword", + "_meta": { + "description": "The VM instance type" + } + }, + "region": { + "type": "keyword", + "_meta": { + "description": "The cloud provider region" + } + }, + "zone": { + "type": "keyword", + "_meta": { + "description": "The availability zone within the region" + } + } + } + }, + "core": { + "properties": { + "config": { + "properties": { + "elasticsearch": { + "properties": { + "sniffOnStart": { + "type": "boolean", + "_meta": { + "description": "Indicates if an attempt should be made to find other Elasticsearch nodes on startup." + } + }, + "sniffIntervalMs": { + "type": "long", + "_meta": { + "description": "Time in milliseconds between requests to check Elasticsearch for an updated list of nodes." + } + }, + "sniffOnConnectionFault": { + "type": "boolean", + "_meta": { + "description": "Indicates if the list of Elasticsearch nodes should be updated immediately following a connection fault." + } + }, + "numberOfHostsConfigured": { + "type": "long", + "_meta": { + "description": "Number of Elasticsearch instances configured to use for queries." + } + }, + "requestHeadersWhitelistConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if Kibana client-side headers to send to Elasticsearch is different to the default value." + } + }, + "customHeadersConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if any custom headers have been configured." + } + }, + "shardTimeoutMs": { + "type": "long", + "_meta": { + "description": "Time in milliseconds for Elasticsearch to wait for responses from shards." + } + }, + "requestTimeoutMs": { + "type": "long", + "_meta": { + "description": "Time in milliseconds to wait for responses from the back end or Elasticsearch." + } + }, + "pingTimeoutMs": { + "type": "long", + "_meta": { + "description": "Time in milliseconds to wait for Elasticsearch to respond to pings." + } + }, + "logQueries": { + "type": "boolean", + "_meta": { + "description": "Indicates if queries sent to Elasticsearch should be logged." + } + }, + "ssl": { + "properties": { + "verificationMode": { + "type": "keyword", + "_meta": { + "description": "The verification of the server certificate that Kibana receives when making an outbound SSL or TLS connection to Elasticsearch" + } + }, + "certificateAuthoritiesConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if any PEM-encoded X.509 certificate authority certificates are configured." + } + }, + "certificateConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if a certificate authority is configured." + } + }, + "keyConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if a certificate key is configured." + } + }, + "keystoreConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if a keystore is configured." + } + }, + "truststoreConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if a path to a PKCS#12 trust store is configured." + } + }, + "alwaysPresentCertificate": { + "type": "boolean", + "_meta": { + "description": "Indicates if a client certificate is presented when requested by Elasticsearch." + } + } + } + }, + "apiVersion": { + "type": "keyword", + "_meta": { + "description": "Version of the Elasticsearch API used." + } + }, + "healthCheckDelayMs": { + "type": "long", + "_meta": { + "description": "The interval in miliseconds between health check requests Kibana sends to the Elasticsearch." + } + }, + "principal": { + "type": "keyword", + "_meta": { + "description": "Indicates how Kibana authenticates itself to Elasticsearch. If elasticsearch.username is configured, this can be any of: \"elastic_user\", \"kibana_user\", \"kibana_system_user\", or \"other_user\". Otherwise, if elasticsearch.serviceAccountToken is configured, this will be \"kibana_service_account\". Otherwise, this value will be \"unknown\", because some other principal might be used to authenticate Kibana to Elasticsearch (such as an x509 certificate), or authentication may be skipped altogether." + } + } + } + }, + "http": { + "properties": { + "basePathConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if a base path has been configured." + } + }, + "maxPayloadInBytes": { + "type": "long", + "_meta": { + "description": "Maximum payload size in bytes that is allowed." + } + }, + "rewriteBasePath": { + "type": "boolean", + "_meta": { + "description": "Indicates if the base path should be rewritten." + } + }, + "keepaliveTimeout": { + "type": "long", + "_meta": { + "description": "How long to keep sockets alive globally in milliseconds." + } + }, + "socketTimeout": { + "type": "long", + "_meta": { + "description": "How long to wait before closing inactive sockets in milliseconds." + } + }, + "compression": { + "properties": { + "enabled": { + "type": "boolean", + "_meta": { + "description": "Indicates if HTTP response compression is enabled." + } + }, + "referrerWhitelistConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if any responses should be compressed." + } + } + } + }, + "xsrf": { + "properties": { + "disableProtection": { + "type": "boolean", + "_meta": { + "description": "Indicates if protection against xsrf should be disabled." + } + }, + "allowlistConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if any http headers have been whitelisted." + } + } + } + }, + "requestId": { + "properties": { + "allowFromAnyIp": { + "type": "boolean", + "_meta": { + "description": "Indicates if any http headers have been whitelisted." + } + }, + "ipAllowlistConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if a list of specific IPs has been configured." + } + } + } + }, + "ssl": { + "properties": { + "certificateAuthoritiesConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if ssl certificate authorities have been configured." + } + }, + "certificateConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if an ssl certificate is configured." + } + }, + "cipherSuites": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "The keyword of the cipher suite used." + } + } + }, + "keyConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if an ssl key has been configured." + } + }, + "keystoreConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if an ssl keystore has been configured." + } + }, + "truststoreConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if a path to a PKCS#12 trust store is configured." + } + }, + "redirectHttpFromPortConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if a port to redirect all http requests has been configured." + } + }, + "supportedProtocols": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "The version of a supported protocol used." + } + } + }, + "clientAuthentication": { + "type": "keyword", + "_meta": { + "description": "The behavior in Kibana for requesting a certificate from client connections." + } + } + } + }, + "securityResponseHeaders": { + "properties": { + "strictTransportSecurity": { + "type": "keyword", + "_meta": { + "description": "The strictTransportSecurity response header, \"NULL\" if disabled." + } + }, + "xContentTypeOptions": { + "type": "keyword", + "_meta": { + "description": "The xContentTypeOptions response header, \"NULL\" if disabled." + } + }, + "referrerPolicy": { + "type": "keyword", + "_meta": { + "description": "The referrerPolicy response header, \"NULL\" if disabled." + } + }, + "permissionsPolicyConfigured": { + "type": "boolean", + "_meta": { + "description": "Indicates if the permissionsPolicy response header has been configured." + } + }, + "disableEmbedding": { + "type": "boolean", + "_meta": { + "description": "Indicates if security headers to disable embedding have been configured." + } + }, + "crossOriginOpenerPolicy": { + "type": "keyword", + "_meta": { + "description": "The crossOriginOpenerPolicy response header, \"NULL\" if disabled." + } + } + } + } + } + }, + "logging": { + "properties": { + "appendersTypesUsed": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "The type of logging appender confgured." + } + } + }, + "loggersConfiguredCount": { + "type": "long", + "_meta": { + "description": "The total number of logging appenders configured." + } + } + } + }, + "savedObjects": { + "properties": { + "customIndex": { + "type": "boolean", + "_meta": { + "description": "Indicates if the saved objects index is different to the standard internal .kibana index." + } + }, + "maxImportPayloadBytes": { + "type": "long", + "_meta": { + "description": "Maximum size of the payload in bytes of saved objects that can be imported." + } + }, + "maxImportExportSize": { + "type": "long", + "_meta": { + "description": "Maximum count of saved objects that can be imported or exported." + } + } + } + }, + "deprecatedKeys": { + "properties": { + "set": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "Config path added during config deprecation." + } + } + }, + "unset": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "Config path removed during config deprecation." + } + } + } + } + } + } + }, + "environment": { + "properties": { + "memory": { + "properties": { + "arrayBuffersBytes": { + "type": "long", + "_meta": { + "description": "Memory allocated for array buffers. This is also included in the external value." + } + }, + "externalBytes": { + "type": "long", + "_meta": { + "description": "Memory usage of C++ objects bound to JavaScript objects managed by V8." + } + }, + "residentSetSizeBytes": { + "type": "long", + "_meta": { + "description": "Node RSS." + } + }, + "heapSizeLimit": { + "type": "long", + "_meta": { + "description": "Host memory heap size limit." + } + }, + "heapTotalBytes": { + "type": "long", + "_meta": { + "description": "Total memory heap size of host that is available in bytes." + } + }, + "heapUsedBytes": { + "type": "long", + "_meta": { + "description": "Total memory heap size of host that is used in bytes." + } + } + } + } + } + }, + "services": { + "properties": { + "savedObjects": { + "properties": { + "indices": { + "type": "array", + "items": { + "properties": { + "docsCount": { + "type": "long", + "_meta": { + "description": "The number of lucene documents in the index, including hidden nested documents." + } + }, + "docsDeleted": { + "type": "long", + "_meta": { + "description": "The number of deleted lucene documents in the index, including hidden nested documents." + } + }, + "alias": { + "type": "keyword", + "_meta": { + "description": "The alias used to map customized saved object index names to standard index names (.kibana or .kibana_task_manager)." + } + }, + "primaryStoreSizeBytes": { + "type": "long", + "_meta": { + "description": "The size in bytes of the index, for primaries only." + } + }, + "storeSizeBytes": { + "type": "long", + "_meta": { + "description": "The size in bytes of the index, for primaries and replicas." + } + }, + "savedObjectsDocsCount": { + "type": "long", + "_meta": { + "description": "The number of saved objects documents in the index." + } + } + } + } + }, + "legacyUrlAliases": { + "properties": { + "inactiveCount": { + "type": "long", + "_meta": { + "description": "Count of legacy URL aliases that are inactive; they are not disabled, but they have not been resolved." + } + }, + "activeCount": { + "type": "long", + "_meta": { + "description": "Count of legacy URL aliases that are active; they are not disabled, and they have been resolved at least once." + } + }, + "disabledCount": { + "type": "long", + "_meta": { + "description": "Count of legacy URL aliases that are disabled." + } + }, + "totalCount": { + "type": "long", + "_meta": { + "description": "Total count of legacy URL aliases." + } + } + } + } + } + } + } + }, + "apiCalls.savedObjectsBulkCreate.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsBulkCreate.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsBulkCreate.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsBulkCreate.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsBulkCreate.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsBulkCreate.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsBulkCreate.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsBulkGet.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsBulkGet.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsBulkGet.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsBulkGet.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsBulkGet.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsBulkGet.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsBulkGet.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsBulkResolve.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsBulkResolve.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsBulkResolve.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsBulkResolve.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsBulkResolve.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsBulkResolve.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsBulkResolve.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsBulkUpdate.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsBulkUpdate.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsBulkUpdate.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsBulkUpdate.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsBulkUpdate.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsBulkUpdate.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsBulkUpdate.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsCreate.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsCreate.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsCreate.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsCreate.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsCreate.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsCreate.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsCreate.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsDelete.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsDelete.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsDelete.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsDelete.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsDelete.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsDelete.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsDelete.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsFind.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsFind.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsFind.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsFind.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsFind.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsFind.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsFind.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsGet.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsGet.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsGet.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsGet.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsGet.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsGet.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsGet.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsResolve.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsResolve.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsResolve.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsResolve.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsResolve.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsResolve.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsResolve.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsUpdate.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsUpdate.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsUpdate.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsUpdate.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsUpdate.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsUpdate.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsUpdate.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsBulkDelete.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsBulkDelete.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsBulkDelete.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsBulkDelete.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsBulkDelete.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsBulkDelete.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsBulkDelete.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsImport.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsImport.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsImport.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsImport.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsImport.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsImport.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsImport.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsImport.createNewCopiesEnabled.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called with the `createNewCopiesEnabled` option." + } + }, + "apiCalls.savedObjectsImport.createNewCopiesEnabled.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called without the `createNewCopiesEnabled` option." + } + }, + "apiCalls.savedObjectsImport.compatibilityModeEnabled.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called with the `compatibilityMode` option." + } + }, + "apiCalls.savedObjectsImport.compatibilityModeEnabled.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called without the `compatibilityMode` option." + } + }, + "apiCalls.savedObjectsImport.overwriteEnabled.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called with the `overwrite` option." + } + }, + "apiCalls.savedObjectsImport.overwriteEnabled.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called without the `overwrite` option." + } + }, + "apiCalls.savedObjectsResolveImportErrors.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsResolveImportErrors.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsResolveImportErrors.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsResolveImportErrors.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsResolveImportErrors.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsResolveImportErrors.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsResolveImportErrors.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsResolveImportErrors.createNewCopiesEnabled.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called with the `createNewCopiesEnabled` option." + } + }, + "apiCalls.savedObjectsResolveImportErrors.createNewCopiesEnabled.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called without the `createNewCopiesEnabled` option." + } + }, + "apiCalls.savedObjectsExport.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.savedObjectsExport.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.savedObjectsExport.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsExport.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.savedObjectsExport.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.savedObjectsExport.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsExport.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.legacyDashboardExport.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.legacyDashboardExport.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.legacyDashboardExport.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.legacyDashboardExport.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.legacyDashboardExport.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.legacyDashboardExport.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.legacyDashboardExport.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "apiCalls.savedObjectsExport.allTypesSelected.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called with all types selected." + } + }, + "apiCalls.savedObjectsExport.allTypesSelected.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called without all types selected." + } + }, + "apiCalls.legacyDashboardImport.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called." + } + }, + "apiCalls.legacyDashboardImport.namespace.default.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in the Default space." + } + }, + "apiCalls.legacyDashboardImport.namespace.default.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in the Default space." + } + }, + "apiCalls.legacyDashboardImport.namespace.default.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in the Default space." + } + }, + "apiCalls.legacyDashboardImport.namespace.custom.total": { + "type": "long", + "_meta": { + "description": "How many times this API has been called in a custom space." + } + }, + "apiCalls.legacyDashboardImport.namespace.custom.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by the Kibana client in a custom space." + } + }, + "apiCalls.legacyDashboardImport.namespace.custom.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "How many times this API has been called by a non-Kibana client in a custom space." + } + }, + "savedObjectsRepository.resolvedOutcome.exactMatch": { + "type": "long", + "_meta": { + "description": "How many times a saved object has resolved with an exact match outcome." + } + }, + "savedObjectsRepository.resolvedOutcome.aliasMatch": { + "type": "long", + "_meta": { + "description": "How many times a saved object has resolved with an alias match outcome." + } + }, + "savedObjectsRepository.resolvedOutcome.conflict": { + "type": "long", + "_meta": { + "description": "How many times a saved object has resolved with a conflict outcome." + } + }, + "savedObjectsRepository.resolvedOutcome.notFound": { + "type": "long", + "_meta": { + "description": "How many times a saved object has resolved with a not found outcome." + } + }, + "savedObjectsRepository.resolvedOutcome.total": { + "type": "long", + "_meta": { + "description": "How many times a saved object has resolved with any of the four possible outcomes." + } + }, + "deprecated_api_calls_resolved.total": { + "type": "integer", + "_meta": { + "description": "How many times deprecated APIs has been marked as resolved" + } + }, + "deprecated_api_calls.total": { + "type": "integer", + "_meta": { + "description": "How many times deprecated APIs has been called." + } + } + } + }, + "csp": { + "properties": { + "strict": { + "type": "boolean", + "_meta": { + "description": "Indicates if strict mode should be used." + } + }, + "warnLegacyBrowsers": { + "type": "boolean", + "_meta": { + "description": "Indicates if legacy browser versions should be warned." + } + }, + "rulesChangedFromDefault": { + "type": "boolean", + "_meta": { + "description": "Indicates if the rules have been changed from the default." + } + } + } + }, + "dashboard": { + "properties": { + "panels": { + "properties": { + "total": { + "type": "long" + }, + "by_reference": { + "type": "long" + }, + "by_value": { + "type": "long" + }, + "by_type": { + "properties": { + "DYNAMIC_KEY": { + "properties": { + "total": { + "type": "long", + "_meta": { + "description": "The number of panels that have been added to all dashboards." + } + }, + "by_reference": { + "type": "long", + "_meta": { + "description": "The number of \"by reference\" panels that have been added to all dashboards." + } + }, + "by_value": { + "type": "long", + "_meta": { + "description": "The number of \"by value\" panels that have been added to all dashboards." + } + }, + "details": { + "properties": { + "DYNAMIC_KEY": { + "type": "long", + "_meta": { + "description": "Collection of telemetry metrics that embeddable service reports. Embeddable service internally calls each embeddable, which in turn calls its dynamic actions, which calls each drill down attached to that embeddable." + } + } + } + } + } + } + } + } + } + }, + "controls": { + "properties": { + "total": { + "type": "long" + }, + "by_type": { + "properties": { + "DYNAMIC_KEY": { + "properties": { + "total": { + "type": "long", + "_meta": { + "description": "The number of this type of control in all Control Groups" + } + }, + "details": { + "properties": { + "DYNAMIC_KEY": { + "type": "long", + "_meta": { + "description": "Collection of telemetry metrics that embeddable service reports. Will be used for details which are specific to the current control type" + } + } + } + } + } + } + } + }, + "ignore_settings": { + "properties": { + "DYNAMIC_KEY": { + "type": "long", + "_meta": { + "description": "Collection of telemetry metrics that count the number of control groups which have this ignore setting turned on" + } + } + } + }, + "chaining_system": { + "properties": { + "DYNAMIC_KEY": { + "type": "long", + "_meta": { + "description": "Collection of telemetry metrics that count the number of control groups which are using this chaining system" + } + } + } + }, + "label_position": { + "properties": { + "DYNAMIC_KEY": { + "type": "long", + "_meta": { + "description": "Collection of telemetry metrics that count the number of control groups which have their labels in this position" + } + } + } + } + } + } + } + }, + "event_loop_delays": { + "properties": { + "daily": { + "type": "array", + "items": { + "properties": { + "processId": { + "type": "long", + "_meta": { + "description": "The process id of the monitored kibana instance." + } + }, + "instanceUuid": { + "type": "keyword", + "_meta": { + "description": "The uuid of the kibana instance." + } + }, + "fromTimestamp": { + "type": "date", + "_meta": { + "description": "Timestamp at which the histogram started monitoring." + } + }, + "lastUpdatedAt": { + "type": "date", + "_meta": { + "description": "Latest timestamp this histogram object was updated this day." + } + }, + "min": { + "type": "long", + "_meta": { + "description": "The minimum recorded event loop delay in ms." + } + }, + "max": { + "type": "long", + "_meta": { + "description": "The maximum recorded event loop delay in ms." + } + }, + "mean": { + "type": "long", + "_meta": { + "description": "The mean of the recorded event loop delays in ms." + } + }, + "exceeds": { + "type": "long", + "_meta": { + "description": "The number of times the event loop delay exceeded the maximum 1 hour eventloop delay threshold." + } + }, + "stddev": { + "type": "long", + "_meta": { + "description": "The standard deviation of the recorded event loop delays in ms." + } + }, + "percentiles": { + "properties": { + "50": { + "type": "long", + "_meta": { + "description": "The 50th accumulated percentile distribution in ms" + } + }, + "75": { + "type": "long", + "_meta": { + "description": "The 75th accumulated percentile distribution in ms" + } + }, + "95": { + "type": "long", + "_meta": { + "description": "The 95th accumulated percentile distribution in ms" + } + }, + "99": { + "type": "long", + "_meta": { + "description": "The 99th accumulated percentile distribution in ms" + } + } + } + } + } + } + } + } + }, + "files": { + "properties": { + "countByExtension": { + "type": "array", + "items": { + "properties": { + "extension": { + "type": "keyword" + }, + "count": { + "type": "long" + } + } + } + }, + "countByStatus": { + "properties": { + "AWAITING_UPLOAD": { + "type": "long", + "_meta": { + "description": "Number of files awaiting upload" + } + }, + "DELETED": { + "type": "long", + "_meta": { + "description": "Number of files that are marked as deleted" + } + }, + "READY": { + "type": "long", + "_meta": { + "description": "Number of files that are ready for download" + } + }, + "UPLOADING": { + "type": "long", + "_meta": { + "description": "Number of files that are currently uploading" + } + }, + "UPLOAD_ERROR": { + "type": "long", + "_meta": { + "description": "Number of files that failed to upload" + } + } + } + }, + "storage": { + "properties": { + "esFixedSizeIndex": { + "properties": { + "capacity": { + "type": "long", + "_meta": { + "description": "Capacity of the fixed size index" + } + }, + "available": { + "type": "long", + "_meta": { + "description": "Available storage in bytes" + } + }, + "used": { + "type": "long", + "_meta": { + "description": "Used storage in bytes" + } + } + } + } + } + } + } + }, + "index-patterns": { + "properties": { + "indexPatternsCount": { + "type": "long" + }, + "indexPatternsWithScriptedFieldCount": { + "type": "long" + }, + "indexPatternsWithRuntimeFieldCount": { + "type": "long" + }, + "scriptedFieldCount": { + "type": "long" + }, + "runtimeFieldCount": { + "type": "long" + }, + "perIndexPattern": { + "properties": { + "scriptedFieldCount": { + "properties": { + "min": { + "type": "long" + }, + "max": { + "type": "long" + }, + "avg": { + "type": "float" + } + } + }, + "runtimeFieldCount": { + "properties": { + "min": { + "type": "long" + }, + "max": { + "type": "long" + }, + "avg": { + "type": "float" + } + } + }, + "scriptedFieldLineCount": { + "properties": { + "min": { + "type": "long" + }, + "max": { + "type": "long" + }, + "avg": { + "type": "float" + } + } + }, + "runtimeFieldLineCount": { + "properties": { + "min": { + "type": "long" + }, + "max": { + "type": "long" + }, + "avg": { + "type": "float" + } + } + } + } + } + } + }, + "kibana": { + "properties": { + "index": { + "type": "keyword", + "_meta": { + "description": "The index storing the saved objects" + } + }, + "dashboard": { + "properties": { + "total": { + "type": "long", + "_meta": { + "description": "Total number of dashboard saved objects" + } + } + } + }, + "visualization": { + "properties": { + "total": { + "type": "long", + "_meta": { + "description": "Total number of visualization saved objects" + } + } + } + }, + "search": { + "properties": { + "total": { + "type": "long", + "_meta": { + "description": "Total number of search saved objects" + } + } + } + }, + "index_pattern": { + "properties": { + "total": { + "type": "long", + "_meta": { + "description": "Total number of index_pattern saved objects" + } + } + } + }, + "graph_workspace": { + "properties": { + "total": { + "type": "long", + "_meta": { + "description": "Total number of graph_workspace saved objects" + } + } + } + } + } + }, + "localization": { + "properties": { + "locale": { + "type": "keyword", + "_meta": { + "description": "The default locale set on the Kibana system" + } + }, + "integrities": { + "properties": { + "DYNAMIC_KEY": { + "type": "text", + "_meta": { + "description": "Translation file hash. If the hash is different it indicates that a custom translation file is used" + } + } + } + }, + "labelsCount": { + "type": "long", + "_meta": { + "description": "The number of translated labels" + } + } + } + }, + "sample-data": { + "properties": { + "installed": { + "type": "array", + "items": { + "type": "keyword" + } + }, + "last_install_date": { + "type": "date" + }, + "last_install_set": { + "type": "keyword" + }, + "last_uninstall_date": { + "type": "date" + }, + "last_uninstall_set": { + "type": "keyword" + }, + "uninstalled": { + "type": "array", + "items": { + "type": "keyword" + } + } + } + }, + "saved_objects_counts": { + "properties": { + "total": { + "type": "long", + "_meta": { + "description": "Total number of saved objects in the cluster" + } + }, + "by_type": { + "type": "array", + "items": { + "properties": { + "type": { + "type": "keyword", + "_meta": { + "description": "The SavedObjects type" + } + }, + "count": { + "type": "long", + "_meta": { + "description": "How many SavedObjects of that type are stored in the cluster across all Spaces" + } + } + } + } + }, + "others": { + "type": "long", + "_meta": { + "description": "Number of SO objects outside the breakdown. If it is not 0, there may be an unexpected state of the deployment 0 and future migrations might fail." + } + }, + "non_registered_types": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "List of SO types that showed up in the break down but are not registered in Kibana. They could be a potential cause of future migration failures." + } + } + } + } + }, + "stack_management": { + "properties": { + "securitySolution:defaultIndex": { + "type": "keyword", + "_meta": { + "description": "Default value of the setting was changed." + } + }, + "securitySolution:excludedDataTiersForRuleExecution": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + } + }, + "securitySolution:maxUnassociatedNotes": { + "type": "integer", + "_meta": { + "description": "The maximum number of allowed unassociated notes" + } + }, + "securitySolution:defaultThreatIndex": { + "type": "keyword", + "_meta": { + "description": "Default value of the setting was changed." + } + }, + "securitySolution:alertTags": { + "type": "keyword", + "_meta": { + "description": "Default value of the setting was changed." + } + }, + "securitySolution:newsFeedUrl": { + "type": "keyword", + "_meta": { + "description": "Default value of the setting was changed." + } + }, + "xpackReporting:customPdfLogo": { + "type": "keyword", + "_meta": { + "description": "Default value of the setting was changed." + } + }, + "notifications:banner": { + "type": "keyword", + "_meta": { + "description": "Default value of the setting was changed." + } + }, + "xpackDashboardMode:roles": { + "type": "keyword", + "_meta": { + "description": "Default value of the setting was changed." + } + }, + "securitySolution:ipReputationLinks": { + "type": "keyword", + "_meta": { + "description": "Default value of the setting was changed." + } + }, + "banners:textContent": { + "type": "keyword", + "_meta": { + "description": "Default value of the setting was changed." + } + }, + "visualization:heatmap:maxBuckets": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "visualization:useLegacyTimeAxis": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "visualization:regionmap:showWarnings": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "visualization:tileMap:maxPrecision": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "csv:separator": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "visualization:tileMap:WMSdefaults": { + "type": "text", + "_meta": { + "description": "Non-default value of setting." + } + }, + "timelion:target_buckets": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "timelion:max_buckets": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "timelion:es.timefield": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "timelion:min_interval": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "timelion:es.default_index": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "securitySolution:timeDefaults": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "securitySolution:defaultAnomalyScore": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "securitySolution:refreshIntervalDefaults": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "securitySolution:enableNewsFeed": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "securitySolution:enableAssetCriticality": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "securitySolution:excludeColdAndFrozenTiersInAnalyzer": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "securitySolution:enableCcsWarning": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "securitySolution:enableVisualizationsInFlyout": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "search:includeFrozen": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "courier:maxConcurrentShardRequests": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "courier:setRequestPreference": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "courier:customRequestPreference": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "courier:ignoreFilterIfFieldNotInIndex": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "rollups:enableIndexPatterns": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "notifications:lifetime:warning": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "notifications:lifetime:banner": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "notifications:lifetime:info": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "notifications:lifetime:error": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "doc_table:highlight": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "data_views:cache_max_age": { + "type": "long", + "_meta": { + "description": "Sets the 'max-age' cache header value for data view fields API requests. A value of 0 will disable caching." + } + }, + "discover:searchOnPageLoad": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "doc_table:hideTimeColumn": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "discover:sampleSize": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "discover:sampleRowsPerPage": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "discover:maxDocFieldsDisplayed": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "defaultColumns": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + } + }, + "context:defaultSize": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "context:tieBreakerFields": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + } + }, + "discover:sort:defaultOrder": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "context:step": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "accessibility:disableAnimations": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "fileUpload:maxFileSize": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "ml:anomalyDetection:results:enableTimeDefaults": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "ml:anomalyDetection:results:timeDefaults": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "timepicker:timeDefaults": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "timepicker:refreshIntervalDefaults": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "timepicker:quickRanges": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "theme:version": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "theme:darkMode": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "theme:name": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "state:storeInSessionStorage": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "savedObjects:perPage": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "search:queryLanguage": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "shortDots:enable": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "sort:options": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "savedObjects:listingLimit": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "query:queryString:options": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "metrics:max_buckets": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "metrics:allowStringIndices": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "query:allowLeadingWildcards": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "metaFields": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + } + }, + "indexPattern:placeholder": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "histogram:barTarget": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "histogram:maxBars": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "format:number:defaultLocale": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "format:percent:defaultPattern": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "format:number:defaultPattern": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "history:limit": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "format:defaultTypeMap": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "format:currency:defaultPattern": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "defaultIndex": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "format:bytes:defaultPattern": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "filters:pinnedByDefault": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "filterEditor:suggestValues": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "fields:popularLimit": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "dateNanosFormat": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "defaultRoute": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "dateFormat:tz": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "dateFormat:scaled": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "csv:quoteValues": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "dateFormat:dow": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "dateFormat": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "autocomplete:useTimeRange": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "autocomplete:valueSuggestionMethod": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "search:timeout": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "bfetch:disableCompression": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "bfetch:disable": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "visualization:visualize:legacyHeatmapChartsLibrary": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "discover:modifyColumnsOnSwitch": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "securitySolution:rulesTableRefresh": { + "type": "text", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:syntheticsThrottlingEnabled": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:enableInspectEsQueries": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:maxSuggestions": { + "type": "integer", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:enableComparisonByDefault": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:enableServiceGroups": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmEnableServiceMetrics": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmEnableContinuousRollups": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmAgentExplorerView": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmEnableTableSearchBar": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmEnableServiceInventoryTableSearchBar": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:entityCentricExperience": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmAWSLambdaPriceFactor": { + "type": "text", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmAWSLambdaRequestCostPerMillion": { + "type": "integer", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:aiAssistantSimulatedFunctionCalling": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:aiAssistantSearchConnectorIndexPattern": { + "type": "text", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:logsExplorer:allowedDataViews": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + } + }, + "observability:logSources": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + } + }, + "banners:placement": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "banners:textColor": { + "type": "text", + "_meta": { + "description": "Non-default value of setting." + } + }, + "banners:backgroundColor": { + "type": "text", + "_meta": { + "description": "Non-default value of setting." + } + }, + "labs:presentation:timeToPresent": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "labs:canvas:enable_ui": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "labs:canvas:byValueEmbeddable": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "labs:canvas:useDataService": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "labs:dashboard:enable_ui": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "labs:dashboard:deferBelowFold": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "discover:showFieldStatistics": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "discover:showMultiFields": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "enableESQL": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "discover:rowHeightOption": { + "type": "integer", + "_meta": { + "description": "Non-default value of setting." + } + }, + "hideAnnouncements": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "isDefaultIndexMigrated": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmDefaultServiceEnvironment": { + "type": "keyword", + "_meta": { + "description": "Default value of the setting was changed." + } + }, + "observability:apmLabsButton": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:enableAwsLambdaMetrics": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmProgressiveLoading": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmServiceGroupMaxNumberOfServices": { + "type": "long", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmServiceInventoryOptimizedSorting": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmTraceExplorerTab": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmEnableProfilingIntegration": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmEnableTransactionProfiling": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:profilingShowErrorFrames": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:profilingPerVCPUWattX86": { + "type": "integer", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:profilingPervCPUWattArm64": { + "type": "integer", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:profilingCo2PerKWH": { + "type": "integer", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:profilingDatacenterPUE": { + "type": "integer", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:apmEnableCriticalPath": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:enableInfrastructureProfilingIntegration": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:enableInfrastructureAssetCustomDashboards": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "securitySolution:enableGroupedNav": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "securitySolution:showRelatedIntegrations": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "visualization:visualize:legacyGaugeChartsLibrary": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:enableLegacyUptimeApp": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:profilingCostPervCPUPerHour": { + "type": "integer", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:profilingAWSCostDiscountRate": { + "type": "integer", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:profilingAzureCostDiscountRate": { + "type": "integer", + "_meta": { + "description": "Non-default value of setting." + } + }, + "data_views:fields_excluded_data_tiers": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "devTools:enablePersistentConsole": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "aiAssistant:preferredAIAssistantType": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:profilingFetchTopNFunctionsFromStacktraces": { + "type": "boolean", + "_meta": { + "description": "Non-default value of setting." + } + }, + "observability:searchExcludedDataTiers": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "Non-default value of setting." + } + } + }, + "observability:newLogsOverview": { + "type": "boolean", + "_meta": { + "description": "Enable the new logs overview component." + } + } + } + }, + "static_telemetry": { + "properties": { + "ece": { + "properties": { + "kb_uuid": { + "type": "keyword" + }, + "es_uuid": { + "type": "keyword" + }, + "account_id": { + "type": "keyword" + }, + "license": { + "properties": { + "uuid": { + "type": "keyword" + }, + "type": { + "type": "keyword" + }, + "issued_to": { + "type": "text" + }, + "issuer": { + "type": "text" + }, + "issue_date_in_millis": { + "type": "long" + }, + "start_date_in_millis": { + "type": "long" + }, + "expiry_date_in_millis": { + "type": "long" + }, + "max_resource_units": { + "type": "long" + } + } + } + } + }, + "ess": { + "properties": { + "kb_uuid": { + "type": "keyword" + }, + "es_uuid": { + "type": "keyword" + }, + "account_id": { + "type": "keyword" + }, + "license": { + "properties": { + "uuid": { + "type": "keyword" + }, + "type": { + "type": "keyword" + }, + "issued_to": { + "type": "text" + }, + "issuer": { + "type": "text" + }, + "issue_date_in_millis": { + "type": "long" + }, + "start_date_in_millis": { + "type": "long" + }, + "expiry_date_in_millis": { + "type": "long" + }, + "max_resource_units": { + "type": "long" + } + } + } + } + }, + "eck": { + "properties": { + "operator_uuid": { + "type": "keyword" + }, + "operator_roles": { + "type": "keyword" + }, + "custom_operator_namespace": { + "type": "boolean" + }, + "distribution": { + "type": "text" + }, + "build": { + "properties": { + "hash": { + "type": "text" + }, + "date": { + "type": "date" + }, + "version": { + "type": "keyword" + } + } + } + } + } + } + }, + "telemetry": { + "properties": { + "opt_in_status": { + "type": "boolean" + }, + "usage_fetcher": { + "type": "keyword" + }, + "last_reported": { + "type": "long" + }, + "labels": { + "type": "pass_through", + "_meta": { + "description": "Custom labels added to the telemetry.labels config in the kibana.yml" + } + } + } + }, + "ui_counters": { + "properties": { + "dailyEvents": { + "type": "array", + "items": { + "properties": { + "appName": { + "type": "keyword", + "_meta": { + "description": "Name of the app reporting ui counts." + } + }, + "eventName": { + "type": "keyword", + "_meta": { + "description": "Name of the event that happened." + } + }, + "lastUpdatedAt": { + "type": "date", + "_meta": { + "description": "Time at which the metric was last updated." + } + }, + "fromTimestamp": { + "type": "date", + "_meta": { + "description": "Time at which the metric was captured." + } + }, + "counterType": { + "type": "keyword", + "_meta": { + "description": "The type of counter used." + } + }, + "total": { + "type": "integer", + "_meta": { + "description": "The total number of times the event happened." + } + } + } + } + } + } + }, + "ui_metric": { + "properties": { + "console": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "DashboardPanelVersionInUrl": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "Kibana_home": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "visualize": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "canvas": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "cross_cluster_replication": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "index_lifecycle_management": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "index_management": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "ingest_pipelines": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "apm": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "infra_logs": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "infra_metrics": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "stack_monitoring": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "remote_clusters": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "rollup_jobs": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "securitySolution": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "snapshot_restore": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "dashboards": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "dev_tools": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "discover": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "home": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "kibana": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "management": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "short_url_redirect": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "csm": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "enterpriseSearch": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "appSearch": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "workplaceSearch": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "graph": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "logs": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "metrics": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "infra": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "ingestManager": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "lens": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "maps": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "ml": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "monitoring": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "observability-overview": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "security_account": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "security_access_agreement": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "security_capture_url": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "security_logged_out": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "security_login": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "security_logout": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "security_overwritten_session": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "securitySolutionUI": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "securitySolutionUI:overview": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "securitySolutionUI:detections": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "securitySolutionUI:hosts": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "securitySolutionUI:network": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "securitySolutionUI:timelines": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "securitySolutionUI:case": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "securitySolutionUI:administration": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" + } + } + } + } + }, + "siem": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" } - } - }, - "ignore_settings": { - "properties": { - "DYNAMIC_KEY": { - "type": "long", - "_meta": { - "description": "Collection of telemetry metrics that count the number of control groups which have this ignore setting turned on" - } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" } } - }, - "chaining_system": { - "properties": { - "DYNAMIC_KEY": { - "type": "long", - "_meta": { - "description": "Collection of telemetry metrics that count the number of control groups which are using this chaining system" - } + } + } + }, + "space_selector": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" } } - }, - "label_position": { - "properties": { - "DYNAMIC_KEY": { - "type": "long", - "_meta": { - "description": "Collection of telemetry metrics that count the number of control groups which have their labels in this position" - } + } + } + }, + "uptime": { + "type": "array", + "items": { + "properties": { + "key": { + "type": "keyword", + "_meta": { + "description": "The event that is tracked" + } + }, + "value": { + "type": "long", + "_meta": { + "description": "The value of the event" } } } @@ -114,151 +12495,135 @@ } } }, - "files": { + "usage_collector_stats": { "properties": { - "countByExtension": { + "total_duration": { + "type": "long", + "_meta": { + "description": "The total execution duration to grab usage stats for all collectors in milliseconds" + } + }, + "total_is_ready_duration": { + "type": "long", + "_meta": { + "description": "The total execution duration of the isReady function for all collectors in milliseconds" + } + }, + "total_fetch_duration": { + "type": "long", + "_meta": { + "description": "The total execution duration of the fetch function for all ready collectors in milliseconds" + } + }, + "is_ready_duration_breakdown": { "type": "array", "items": { "properties": { - "extension": { - "type": "keyword" + "name": { + "type": "keyword", + "_meta": { + "description": "The name of the collector" + } }, - "count": { - "type": "long" + "duration": { + "type": "long", + "_meta": { + "description": "The execution duration of the isReady function for the collector in milliseconds" + } } } } }, - "countByStatus": { - "properties": { - "AWAITING_UPLOAD": { - "type": "long", - "_meta": { - "description": "Number of files awaiting upload" - } - }, - "DELETED": { - "type": "long", - "_meta": { - "description": "Number of files that are marked as deleted" - } - }, - "READY": { - "type": "long", - "_meta": { - "description": "Number of files that are ready for download" + "fetch_duration_breakdown": { + "type": "array", + "items": { + "properties": { + "name": { + "type": "keyword", + "_meta": { + "description": "The name of the collector" + } + }, + "duration": { + "type": "long", + "_meta": { + "description": "The execution duration of the fetch function for the collector in milliseconds" + } } - }, - "UPLOADING": { - "type": "long", + } + } + }, + "not_ready": { + "properties": { + "count": { + "type": "short", "_meta": { - "description": "Number of files that are currently uploading" + "description": "The number of collectors that returned false from the isReady function" } }, - "UPLOAD_ERROR": { - "type": "long", - "_meta": { - "description": "Number of files that failed to upload" + "names": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "The name of the of collectors that returned false from the isReady function" + } } } } }, - "storage": { + "not_ready_timeout": { "properties": { - "esFixedSizeIndex": { - "properties": { - "capacity": { - "type": "long", - "_meta": { - "description": "Capacity of the fixed size index" - } - }, - "available": { - "type": "long", - "_meta": { - "description": "Available storage in bytes" - } - }, - "used": { - "type": "long", - "_meta": { - "description": "Used storage in bytes" - } + "count": { + "type": "short", + "_meta": { + "description": "The number of collectors that timedout during the isReady function" + } + }, + "names": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "The name of collectors that timedout during the isReady function" } } } } - } - } - }, - "index-patterns": { - "properties": { - "indexPatternsCount": { - "type": "long" - }, - "indexPatternsWithScriptedFieldCount": { - "type": "long" - }, - "indexPatternsWithRuntimeFieldCount": { - "type": "long" - }, - "scriptedFieldCount": { - "type": "long" }, - "runtimeFieldCount": { - "type": "long" - }, - "perIndexPattern": { + "succeeded": { "properties": { - "scriptedFieldCount": { - "properties": { - "min": { - "type": "long" - }, - "max": { - "type": "long" - }, - "avg": { - "type": "float" - } + "count": { + "type": "short", + "_meta": { + "description": "The number of collectors that returned true from the fetch function" } }, - "runtimeFieldCount": { - "properties": { - "min": { - "type": "long" - }, - "max": { - "type": "long" - }, - "avg": { - "type": "float" + "names": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "The name of the of collectors that returned true from the fetch function" } } - }, - "scriptedFieldLineCount": { - "properties": { - "min": { - "type": "long" - }, - "max": { - "type": "long" - }, - "avg": { - "type": "float" - } + } + } + }, + "failed": { + "properties": { + "count": { + "type": "short", + "_meta": { + "description": "The number of collectors that threw an error from the fetch function" } }, - "runtimeFieldLineCount": { - "properties": { - "min": { - "type": "long" - }, - "max": { - "type": "long" - }, - "avg": { - "type": "float" + "names": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "The name of the of collectors that threw an error from the fetch function" } } } @@ -266,30 +12631,49 @@ } } }, - "sample-data": { + "usage_counters": { "properties": { - "installed": { - "type": "array", - "items": { - "type": "keyword" - } - }, - "last_install_date": { - "type": "date" - }, - "last_install_set": { - "type": "keyword" - }, - "last_uninstall_date": { - "type": "date" - }, - "last_uninstall_set": { - "type": "keyword" - }, - "uninstalled": { + "dailyEvents": { "type": "array", "items": { - "type": "keyword" + "properties": { + "domainId": { + "type": "keyword", + "_meta": { + "description": "Domain name of the metric (ie plugin name)." + } + }, + "counterName": { + "type": "keyword", + "_meta": { + "description": "Name of the counter that happened." + } + }, + "lastUpdatedAt": { + "type": "date", + "_meta": { + "description": "Time at which the metric was last updated." + } + }, + "fromTimestamp": { + "type": "date", + "_meta": { + "description": "Time at which the metric was captured." + } + }, + "counterType": { + "type": "keyword", + "_meta": { + "description": "The type of counter used." + } + }, + "total": { + "type": "integer", + "_meta": { + "description": "The total number of times the event happened." + } + } + } } } } diff --git a/src/platform/plugins/shared/telemetry/schema/oss_plugins.json b/src/platform/plugins/shared/telemetry/schema/oss_plugins.json index cc2e9f99ec9ea..d25e9a0b9302c 100644 --- a/src/platform/plugins/shared/telemetry/schema/oss_plugins.json +++ b/src/platform/plugins/shared/telemetry/schema/oss_plugins.json @@ -1,9878 +1,5 @@ { "properties": { - "application_usage": { - "properties": { - "dashboards": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "dev_tools": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "discover": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "home": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "kibana": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "management": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "short_url_redirect": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "visualize": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "error": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "status": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "kibanaOverview": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "r": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "apm": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "canvas": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "enterpriseSearch": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "enterpriseSearchContent": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "searchInferenceEndpoints": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "searchPlayground": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "enterpriseSearchAnalytics": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "enterpriseSearchApplications": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "enterpriseSearchAISearch": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "enterpriseSearchRedirect": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "enterpriseSearchSemanticSearch": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "enterpriseSearchVectorSearch": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "enterpriseSearchElasticsearch": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "entity_manager": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "appSearch": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "workplaceSearch": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "searchExperiences": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "graph": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "logs": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "metrics": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "fleet": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "integrations": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "ingestManager": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "inventory": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "lens": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "maps": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "ml": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "monitoring": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "observability-log-explorer": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "observability-logs-explorer": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "observability-overview": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "observabilityOnboarding": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "observabilityAIAssistant": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "exploratory-view": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "osquery": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "profiling": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "slo": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "security_account": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "reportingRedirect": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "security_access_agreement": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "security_capture_url": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "security_logged_out": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "security_login": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "security_logout": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "security_overwritten_session": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "securitySolutionUI": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "siem": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "space_selector": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "streams": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "uptime": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "synthetics": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "ux": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - } - } - }, - "cloud_provider": { - "properties": { - "name": { - "type": "keyword", - "_meta": { - "description": "The name of the cloud provider" - } - }, - "vm_type": { - "type": "keyword", - "_meta": { - "description": "The VM instance type" - } - }, - "region": { - "type": "keyword", - "_meta": { - "description": "The cloud provider region" - } - }, - "zone": { - "type": "keyword", - "_meta": { - "description": "The availability zone within the region" - } - } - } - }, - "core": { - "properties": { - "config": { - "properties": { - "elasticsearch": { - "properties": { - "sniffOnStart": { - "type": "boolean", - "_meta": { - "description": "Indicates if an attempt should be made to find other Elasticsearch nodes on startup." - } - }, - "sniffIntervalMs": { - "type": "long", - "_meta": { - "description": "Time in milliseconds between requests to check Elasticsearch for an updated list of nodes." - } - }, - "sniffOnConnectionFault": { - "type": "boolean", - "_meta": { - "description": "Indicates if the list of Elasticsearch nodes should be updated immediately following a connection fault." - } - }, - "numberOfHostsConfigured": { - "type": "long", - "_meta": { - "description": "Number of Elasticsearch instances configured to use for queries." - } - }, - "requestHeadersWhitelistConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if Kibana client-side headers to send to Elasticsearch is different to the default value." - } - }, - "customHeadersConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if any custom headers have been configured." - } - }, - "shardTimeoutMs": { - "type": "long", - "_meta": { - "description": "Time in milliseconds for Elasticsearch to wait for responses from shards." - } - }, - "requestTimeoutMs": { - "type": "long", - "_meta": { - "description": "Time in milliseconds to wait for responses from the back end or Elasticsearch." - } - }, - "pingTimeoutMs": { - "type": "long", - "_meta": { - "description": "Time in milliseconds to wait for Elasticsearch to respond to pings." - } - }, - "logQueries": { - "type": "boolean", - "_meta": { - "description": "Indicates if queries sent to Elasticsearch should be logged." - } - }, - "ssl": { - "properties": { - "verificationMode": { - "type": "keyword", - "_meta": { - "description": "The verification of the server certificate that Kibana receives when making an outbound SSL or TLS connection to Elasticsearch" - } - }, - "certificateAuthoritiesConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if any PEM-encoded X.509 certificate authority certificates are configured." - } - }, - "certificateConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if a certificate authority is configured." - } - }, - "keyConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if a certificate key is configured." - } - }, - "keystoreConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if a keystore is configured." - } - }, - "truststoreConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if a path to a PKCS#12 trust store is configured." - } - }, - "alwaysPresentCertificate": { - "type": "boolean", - "_meta": { - "description": "Indicates if a client certificate is presented when requested by Elasticsearch." - } - } - } - }, - "apiVersion": { - "type": "keyword", - "_meta": { - "description": "Version of the Elasticsearch API used." - } - }, - "healthCheckDelayMs": { - "type": "long", - "_meta": { - "description": "The interval in miliseconds between health check requests Kibana sends to the Elasticsearch." - } - }, - "principal": { - "type": "keyword", - "_meta": { - "description": "Indicates how Kibana authenticates itself to Elasticsearch. If elasticsearch.username is configured, this can be any of: \"elastic_user\", \"kibana_user\", \"kibana_system_user\", or \"other_user\". Otherwise, if elasticsearch.serviceAccountToken is configured, this will be \"kibana_service_account\". Otherwise, this value will be \"unknown\", because some other principal might be used to authenticate Kibana to Elasticsearch (such as an x509 certificate), or authentication may be skipped altogether." - } - } - } - }, - "http": { - "properties": { - "basePathConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if a base path has been configured." - } - }, - "maxPayloadInBytes": { - "type": "long", - "_meta": { - "description": "Maximum payload size in bytes that is allowed." - } - }, - "rewriteBasePath": { - "type": "boolean", - "_meta": { - "description": "Indicates if the base path should be rewritten." - } - }, - "keepaliveTimeout": { - "type": "long", - "_meta": { - "description": "How long to keep sockets alive globally in milliseconds." - } - }, - "socketTimeout": { - "type": "long", - "_meta": { - "description": "How long to wait before closing inactive sockets in milliseconds." - } - }, - "compression": { - "properties": { - "enabled": { - "type": "boolean", - "_meta": { - "description": "Indicates if HTTP response compression is enabled." - } - }, - "referrerWhitelistConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if any responses should be compressed." - } - } - } - }, - "xsrf": { - "properties": { - "disableProtection": { - "type": "boolean", - "_meta": { - "description": "Indicates if protection against xsrf should be disabled." - } - }, - "allowlistConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if any http headers have been whitelisted." - } - } - } - }, - "requestId": { - "properties": { - "allowFromAnyIp": { - "type": "boolean", - "_meta": { - "description": "Indicates if any http headers have been whitelisted." - } - }, - "ipAllowlistConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if a list of specific IPs has been configured." - } - } - } - }, - "ssl": { - "properties": { - "certificateAuthoritiesConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if ssl certificate authorities have been configured." - } - }, - "certificateConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if an ssl certificate is configured." - } - }, - "cipherSuites": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "The keyword of the cipher suite used." - } - } - }, - "keyConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if an ssl key has been configured." - } - }, - "keystoreConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if an ssl keystore has been configured." - } - }, - "truststoreConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if a path to a PKCS#12 trust store is configured." - } - }, - "redirectHttpFromPortConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if a port to redirect all http requests has been configured." - } - }, - "supportedProtocols": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "The version of a supported protocol used." - } - } - }, - "clientAuthentication": { - "type": "keyword", - "_meta": { - "description": "The behavior in Kibana for requesting a certificate from client connections." - } - } - } - }, - "securityResponseHeaders": { - "properties": { - "strictTransportSecurity": { - "type": "keyword", - "_meta": { - "description": "The strictTransportSecurity response header, \"NULL\" if disabled." - } - }, - "xContentTypeOptions": { - "type": "keyword", - "_meta": { - "description": "The xContentTypeOptions response header, \"NULL\" if disabled." - } - }, - "referrerPolicy": { - "type": "keyword", - "_meta": { - "description": "The referrerPolicy response header, \"NULL\" if disabled." - } - }, - "permissionsPolicyConfigured": { - "type": "boolean", - "_meta": { - "description": "Indicates if the permissionsPolicy response header has been configured." - } - }, - "disableEmbedding": { - "type": "boolean", - "_meta": { - "description": "Indicates if security headers to disable embedding have been configured." - } - }, - "crossOriginOpenerPolicy": { - "type": "keyword", - "_meta": { - "description": "The crossOriginOpenerPolicy response header, \"NULL\" if disabled." - } - } - } - } - } - }, - "logging": { - "properties": { - "appendersTypesUsed": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "The type of logging appender confgured." - } - } - }, - "loggersConfiguredCount": { - "type": "long", - "_meta": { - "description": "The total number of logging appenders configured." - } - } - } - }, - "savedObjects": { - "properties": { - "customIndex": { - "type": "boolean", - "_meta": { - "description": "Indicates if the saved objects index is different to the standard internal .kibana index." - } - }, - "maxImportPayloadBytes": { - "type": "long", - "_meta": { - "description": "Maximum size of the payload in bytes of saved objects that can be imported." - } - }, - "maxImportExportSize": { - "type": "long", - "_meta": { - "description": "Maximum count of saved objects that can be imported or exported." - } - } - } - }, - "deprecatedKeys": { - "properties": { - "set": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "Config path added during config deprecation." - } - } - }, - "unset": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "Config path removed during config deprecation." - } - } - } - } - } - } - }, - "environment": { - "properties": { - "memory": { - "properties": { - "arrayBuffersBytes": { - "type": "long", - "_meta": { - "description": "Memory allocated for array buffers. This is also included in the external value." - } - }, - "externalBytes": { - "type": "long", - "_meta": { - "description": "Memory usage of C++ objects bound to JavaScript objects managed by V8." - } - }, - "residentSetSizeBytes": { - "type": "long", - "_meta": { - "description": "Node RSS." - } - }, - "heapSizeLimit": { - "type": "long", - "_meta": { - "description": "Host memory heap size limit." - } - }, - "heapTotalBytes": { - "type": "long", - "_meta": { - "description": "Total memory heap size of host that is available in bytes." - } - }, - "heapUsedBytes": { - "type": "long", - "_meta": { - "description": "Total memory heap size of host that is used in bytes." - } - } - } - } - } - }, - "services": { - "properties": { - "savedObjects": { - "properties": { - "indices": { - "type": "array", - "items": { - "properties": { - "docsCount": { - "type": "long", - "_meta": { - "description": "The number of lucene documents in the index, including hidden nested documents." - } - }, - "docsDeleted": { - "type": "long", - "_meta": { - "description": "The number of deleted lucene documents in the index, including hidden nested documents." - } - }, - "alias": { - "type": "keyword", - "_meta": { - "description": "The alias used to map customized saved object index names to standard index names (.kibana or .kibana_task_manager)." - } - }, - "primaryStoreSizeBytes": { - "type": "long", - "_meta": { - "description": "The size in bytes of the index, for primaries only." - } - }, - "storeSizeBytes": { - "type": "long", - "_meta": { - "description": "The size in bytes of the index, for primaries and replicas." - } - }, - "savedObjectsDocsCount": { - "type": "long", - "_meta": { - "description": "The number of saved objects documents in the index." - } - } - } - } - }, - "legacyUrlAliases": { - "properties": { - "inactiveCount": { - "type": "long", - "_meta": { - "description": "Count of legacy URL aliases that are inactive; they are not disabled, but they have not been resolved." - } - }, - "activeCount": { - "type": "long", - "_meta": { - "description": "Count of legacy URL aliases that are active; they are not disabled, and they have been resolved at least once." - } - }, - "disabledCount": { - "type": "long", - "_meta": { - "description": "Count of legacy URL aliases that are disabled." - } - }, - "totalCount": { - "type": "long", - "_meta": { - "description": "Total count of legacy URL aliases." - } - } - } - } - } - } - } - }, - "apiCalls.savedObjectsBulkCreate.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsBulkCreate.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsBulkCreate.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsBulkCreate.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsBulkCreate.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsBulkCreate.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsBulkCreate.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsBulkGet.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsBulkGet.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsBulkGet.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsBulkGet.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsBulkGet.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsBulkGet.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsBulkGet.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsBulkResolve.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsBulkResolve.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsBulkResolve.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsBulkResolve.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsBulkResolve.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsBulkResolve.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsBulkResolve.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsBulkUpdate.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsBulkUpdate.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsBulkUpdate.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsBulkUpdate.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsBulkUpdate.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsBulkUpdate.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsBulkUpdate.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsCreate.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsCreate.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsCreate.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsCreate.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsCreate.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsCreate.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsCreate.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsDelete.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsDelete.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsDelete.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsDelete.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsDelete.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsDelete.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsDelete.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsFind.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsFind.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsFind.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsFind.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsFind.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsFind.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsFind.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsGet.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsGet.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsGet.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsGet.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsGet.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsGet.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsGet.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsResolve.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsResolve.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsResolve.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsResolve.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsResolve.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsResolve.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsResolve.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsUpdate.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsUpdate.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsUpdate.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsUpdate.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsUpdate.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsUpdate.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsUpdate.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsBulkDelete.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsBulkDelete.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsBulkDelete.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsBulkDelete.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsBulkDelete.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsBulkDelete.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsBulkDelete.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsImport.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsImport.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsImport.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsImport.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsImport.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsImport.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsImport.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsImport.createNewCopiesEnabled.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called with the `createNewCopiesEnabled` option." - } - }, - "apiCalls.savedObjectsImport.createNewCopiesEnabled.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called without the `createNewCopiesEnabled` option." - } - }, - "apiCalls.savedObjectsImport.compatibilityModeEnabled.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called with the `compatibilityMode` option." - } - }, - "apiCalls.savedObjectsImport.compatibilityModeEnabled.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called without the `compatibilityMode` option." - } - }, - "apiCalls.savedObjectsImport.overwriteEnabled.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called with the `overwrite` option." - } - }, - "apiCalls.savedObjectsImport.overwriteEnabled.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called without the `overwrite` option." - } - }, - "apiCalls.savedObjectsResolveImportErrors.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsResolveImportErrors.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsResolveImportErrors.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsResolveImportErrors.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsResolveImportErrors.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsResolveImportErrors.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsResolveImportErrors.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsResolveImportErrors.createNewCopiesEnabled.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called with the `createNewCopiesEnabled` option." - } - }, - "apiCalls.savedObjectsResolveImportErrors.createNewCopiesEnabled.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called without the `createNewCopiesEnabled` option." - } - }, - "apiCalls.savedObjectsExport.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.savedObjectsExport.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.savedObjectsExport.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsExport.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.savedObjectsExport.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.savedObjectsExport.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsExport.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.legacyDashboardExport.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.legacyDashboardExport.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.legacyDashboardExport.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.legacyDashboardExport.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.legacyDashboardExport.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.legacyDashboardExport.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.legacyDashboardExport.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "apiCalls.savedObjectsExport.allTypesSelected.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called with all types selected." - } - }, - "apiCalls.savedObjectsExport.allTypesSelected.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called without all types selected." - } - }, - "apiCalls.legacyDashboardImport.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called." - } - }, - "apiCalls.legacyDashboardImport.namespace.default.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in the Default space." - } - }, - "apiCalls.legacyDashboardImport.namespace.default.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in the Default space." - } - }, - "apiCalls.legacyDashboardImport.namespace.default.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in the Default space." - } - }, - "apiCalls.legacyDashboardImport.namespace.custom.total": { - "type": "long", - "_meta": { - "description": "How many times this API has been called in a custom space." - } - }, - "apiCalls.legacyDashboardImport.namespace.custom.kibanaRequest.yes": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by the Kibana client in a custom space." - } - }, - "apiCalls.legacyDashboardImport.namespace.custom.kibanaRequest.no": { - "type": "long", - "_meta": { - "description": "How many times this API has been called by a non-Kibana client in a custom space." - } - }, - "savedObjectsRepository.resolvedOutcome.exactMatch": { - "type": "long", - "_meta": { - "description": "How many times a saved object has resolved with an exact match outcome." - } - }, - "savedObjectsRepository.resolvedOutcome.aliasMatch": { - "type": "long", - "_meta": { - "description": "How many times a saved object has resolved with an alias match outcome." - } - }, - "savedObjectsRepository.resolvedOutcome.conflict": { - "type": "long", - "_meta": { - "description": "How many times a saved object has resolved with a conflict outcome." - } - }, - "savedObjectsRepository.resolvedOutcome.notFound": { - "type": "long", - "_meta": { - "description": "How many times a saved object has resolved with a not found outcome." - } - }, - "savedObjectsRepository.resolvedOutcome.total": { - "type": "long", - "_meta": { - "description": "How many times a saved object has resolved with any of the four possible outcomes." - } - }, - "deprecated_api_calls_resolved.total": { - "type": "integer", - "_meta": { - "description": "How many times deprecated APIs has been marked as resolved" - } - }, - "deprecated_api_calls.total": { - "type": "integer", - "_meta": { - "description": "How many times deprecated APIs has been called." - } - } - } - }, - "csp": { - "properties": { - "strict": { - "type": "boolean", - "_meta": { - "description": "Indicates if strict mode should be used." - } - }, - "warnLegacyBrowsers": { - "type": "boolean", - "_meta": { - "description": "Indicates if legacy browser versions should be warned." - } - }, - "rulesChangedFromDefault": { - "type": "boolean", - "_meta": { - "description": "Indicates if the rules have been changed from the default." - } - } - } - }, - "event_loop_delays": { - "properties": { - "daily": { - "type": "array", - "items": { - "properties": { - "processId": { - "type": "long", - "_meta": { - "description": "The process id of the monitored kibana instance." - } - }, - "instanceUuid": { - "type": "keyword", - "_meta": { - "description": "The uuid of the kibana instance." - } - }, - "fromTimestamp": { - "type": "date", - "_meta": { - "description": "Timestamp at which the histogram started monitoring." - } - }, - "lastUpdatedAt": { - "type": "date", - "_meta": { - "description": "Latest timestamp this histogram object was updated this day." - } - }, - "min": { - "type": "long", - "_meta": { - "description": "The minimum recorded event loop delay in ms." - } - }, - "max": { - "type": "long", - "_meta": { - "description": "The maximum recorded event loop delay in ms." - } - }, - "mean": { - "type": "long", - "_meta": { - "description": "The mean of the recorded event loop delays in ms." - } - }, - "exceeds": { - "type": "long", - "_meta": { - "description": "The number of times the event loop delay exceeded the maximum 1 hour eventloop delay threshold." - } - }, - "stddev": { - "type": "long", - "_meta": { - "description": "The standard deviation of the recorded event loop delays in ms." - } - }, - "percentiles": { - "properties": { - "50": { - "type": "long", - "_meta": { - "description": "The 50th accumulated percentile distribution in ms" - } - }, - "75": { - "type": "long", - "_meta": { - "description": "The 75th accumulated percentile distribution in ms" - } - }, - "95": { - "type": "long", - "_meta": { - "description": "The 95th accumulated percentile distribution in ms" - } - }, - "99": { - "type": "long", - "_meta": { - "description": "The 99th accumulated percentile distribution in ms" - } - } - } - } - } - } - } - } - }, - "kibana": { - "properties": { - "index": { - "type": "keyword", - "_meta": { - "description": "The index storing the saved objects" - } - }, - "dashboard": { - "properties": { - "total": { - "type": "long", - "_meta": { - "description": "Total number of dashboard saved objects" - } - } - } - }, - "visualization": { - "properties": { - "total": { - "type": "long", - "_meta": { - "description": "Total number of visualization saved objects" - } - } - } - }, - "search": { - "properties": { - "total": { - "type": "long", - "_meta": { - "description": "Total number of search saved objects" - } - } - } - }, - "index_pattern": { - "properties": { - "total": { - "type": "long", - "_meta": { - "description": "Total number of index_pattern saved objects" - } - } - } - }, - "graph_workspace": { - "properties": { - "total": { - "type": "long", - "_meta": { - "description": "Total number of graph_workspace saved objects" - } - } - } - } - } - }, "kql": { "properties": { "optInCount": { @@ -9886,76 +13,6 @@ } } }, - "localization": { - "properties": { - "locale": { - "type": "keyword", - "_meta": { - "description": "The default locale set on the Kibana system" - } - }, - "integrities": { - "properties": { - "DYNAMIC_KEY": { - "type": "text", - "_meta": { - "description": "Translation file hash. If the hash is different it indicates that a custom translation file is used" - } - } - } - }, - "labelsCount": { - "type": "long", - "_meta": { - "description": "The number of translated labels" - } - } - } - }, - "saved_objects_counts": { - "properties": { - "total": { - "type": "long", - "_meta": { - "description": "Total number of saved objects in the cluster" - } - }, - "by_type": { - "type": "array", - "items": { - "properties": { - "type": { - "type": "keyword", - "_meta": { - "description": "The SavedObjects type" - } - }, - "count": { - "type": "long", - "_meta": { - "description": "How many SavedObjects of that type are stored in the cluster across all Spaces" - } - } - } - } - }, - "others": { - "type": "long", - "_meta": { - "description": "Number of SO objects outside the breakdown. If it is not 0, there may be an unexpected state of the deployment 0 and future migrations might fail." - } - }, - "non_registered_types": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "List of SO types that showed up in the break down but are not registered in Kibana. They could be a potential cause of future migration failures." - } - } - } - } - }, "search": { "properties": { "successCount": { @@ -9981,2447 +38,6 @@ "type": "long" } } - }, - "stack_management": { - "properties": { - "securitySolution:defaultIndex": { - "type": "keyword", - "_meta": { - "description": "Default value of the setting was changed." - } - }, - "securitySolution:excludedDataTiersForRuleExecution": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - } - }, - "securitySolution:maxUnassociatedNotes": { - "type": "integer", - "_meta": { - "description": "The maximum number of allowed unassociated notes" - } - }, - "securitySolution:defaultThreatIndex": { - "type": "keyword", - "_meta": { - "description": "Default value of the setting was changed." - } - }, - "securitySolution:alertTags": { - "type": "keyword", - "_meta": { - "description": "Default value of the setting was changed." - } - }, - "securitySolution:newsFeedUrl": { - "type": "keyword", - "_meta": { - "description": "Default value of the setting was changed." - } - }, - "xpackReporting:customPdfLogo": { - "type": "keyword", - "_meta": { - "description": "Default value of the setting was changed." - } - }, - "notifications:banner": { - "type": "keyword", - "_meta": { - "description": "Default value of the setting was changed." - } - }, - "xpackDashboardMode:roles": { - "type": "keyword", - "_meta": { - "description": "Default value of the setting was changed." - } - }, - "securitySolution:ipReputationLinks": { - "type": "keyword", - "_meta": { - "description": "Default value of the setting was changed." - } - }, - "banners:textContent": { - "type": "keyword", - "_meta": { - "description": "Default value of the setting was changed." - } - }, - "visualization:heatmap:maxBuckets": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "visualization:useLegacyTimeAxis": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "visualization:regionmap:showWarnings": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "visualization:tileMap:maxPrecision": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "csv:separator": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "visualization:tileMap:WMSdefaults": { - "type": "text", - "_meta": { - "description": "Non-default value of setting." - } - }, - "timelion:target_buckets": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "timelion:max_buckets": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "timelion:es.timefield": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "timelion:min_interval": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "timelion:es.default_index": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "securitySolution:timeDefaults": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "securitySolution:defaultAnomalyScore": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "securitySolution:refreshIntervalDefaults": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "securitySolution:enableNewsFeed": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "securitySolution:enableAssetCriticality": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "securitySolution:excludeColdAndFrozenTiersInAnalyzer": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "securitySolution:enableCcsWarning": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "securitySolution:enableVisualizationsInFlyout": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "search:includeFrozen": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "courier:maxConcurrentShardRequests": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "courier:setRequestPreference": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "courier:customRequestPreference": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "courier:ignoreFilterIfFieldNotInIndex": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "rollups:enableIndexPatterns": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "notifications:lifetime:warning": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "notifications:lifetime:banner": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "notifications:lifetime:info": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "notifications:lifetime:error": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "doc_table:highlight": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "data_views:cache_max_age": { - "type": "long", - "_meta": { - "description": "Sets the 'max-age' cache header value for data view fields API requests. A value of 0 will disable caching." - } - }, - "discover:searchOnPageLoad": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "doc_table:hideTimeColumn": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "discover:sampleSize": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "discover:sampleRowsPerPage": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "discover:maxDocFieldsDisplayed": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "defaultColumns": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - } - }, - "context:defaultSize": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "context:tieBreakerFields": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - } - }, - "discover:sort:defaultOrder": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "context:step": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "accessibility:disableAnimations": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "fileUpload:maxFileSize": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "ml:anomalyDetection:results:enableTimeDefaults": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "ml:anomalyDetection:results:timeDefaults": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "timepicker:timeDefaults": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "timepicker:refreshIntervalDefaults": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "timepicker:quickRanges": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "theme:version": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "theme:darkMode": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "theme:name": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "state:storeInSessionStorage": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "savedObjects:perPage": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "search:queryLanguage": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "shortDots:enable": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "sort:options": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "savedObjects:listingLimit": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "query:queryString:options": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "metrics:max_buckets": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "metrics:allowStringIndices": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "query:allowLeadingWildcards": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "metaFields": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - } - }, - "indexPattern:placeholder": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "histogram:barTarget": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "histogram:maxBars": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "format:number:defaultLocale": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "format:percent:defaultPattern": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "format:number:defaultPattern": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "history:limit": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "format:defaultTypeMap": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "format:currency:defaultPattern": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "defaultIndex": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "format:bytes:defaultPattern": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "filters:pinnedByDefault": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "filterEditor:suggestValues": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "fields:popularLimit": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "dateNanosFormat": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "defaultRoute": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "dateFormat:tz": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "dateFormat:scaled": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "csv:quoteValues": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "dateFormat:dow": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "dateFormat": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "autocomplete:useTimeRange": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "autocomplete:valueSuggestionMethod": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "search:timeout": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "bfetch:disableCompression": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "bfetch:disable": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "visualization:visualize:legacyHeatmapChartsLibrary": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "discover:modifyColumnsOnSwitch": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "securitySolution:rulesTableRefresh": { - "type": "text", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:syntheticsThrottlingEnabled": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:enableInspectEsQueries": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:maxSuggestions": { - "type": "integer", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:enableComparisonByDefault": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:enableServiceGroups": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmEnableServiceMetrics": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmEnableContinuousRollups": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmAgentExplorerView": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmEnableTableSearchBar": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmEnableServiceInventoryTableSearchBar": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:entityCentricExperience": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmAWSLambdaPriceFactor": { - "type": "text", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmAWSLambdaRequestCostPerMillion": { - "type": "integer", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:aiAssistantSimulatedFunctionCalling": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:aiAssistantSearchConnectorIndexPattern": { - "type": "text", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:logsExplorer:allowedDataViews": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - } - }, - "observability:logSources": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - } - }, - "banners:placement": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "banners:textColor": { - "type": "text", - "_meta": { - "description": "Non-default value of setting." - } - }, - "banners:backgroundColor": { - "type": "text", - "_meta": { - "description": "Non-default value of setting." - } - }, - "labs:presentation:timeToPresent": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "labs:canvas:enable_ui": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "labs:canvas:byValueEmbeddable": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "labs:canvas:useDataService": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "labs:dashboard:enable_ui": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "labs:dashboard:deferBelowFold": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "discover:showFieldStatistics": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "discover:showMultiFields": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "enableESQL": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "discover:rowHeightOption": { - "type": "integer", - "_meta": { - "description": "Non-default value of setting." - } - }, - "hideAnnouncements": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "isDefaultIndexMigrated": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmDefaultServiceEnvironment": { - "type": "keyword", - "_meta": { - "description": "Default value of the setting was changed." - } - }, - "observability:apmLabsButton": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:enableAwsLambdaMetrics": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmProgressiveLoading": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmServiceGroupMaxNumberOfServices": { - "type": "long", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmServiceInventoryOptimizedSorting": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmTraceExplorerTab": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmEnableProfilingIntegration": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmEnableTransactionProfiling": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:profilingShowErrorFrames": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:profilingPerVCPUWattX86": { - "type": "integer", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:profilingPervCPUWattArm64": { - "type": "integer", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:profilingCo2PerKWH": { - "type": "integer", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:profilingDatacenterPUE": { - "type": "integer", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:apmEnableCriticalPath": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:enableInfrastructureProfilingIntegration": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:enableInfrastructureAssetCustomDashboards": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "securitySolution:enableGroupedNav": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "securitySolution:showRelatedIntegrations": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "visualization:visualize:legacyGaugeChartsLibrary": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:enableLegacyUptimeApp": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:profilingCostPervCPUPerHour": { - "type": "integer", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:profilingAWSCostDiscountRate": { - "type": "integer", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:profilingAzureCostDiscountRate": { - "type": "integer", - "_meta": { - "description": "Non-default value of setting." - } - }, - "data_views:fields_excluded_data_tiers": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "devTools:enablePersistentConsole": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "aiAssistant:preferredAIAssistantType": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:profilingFetchTopNFunctionsFromStacktraces": { - "type": "boolean", - "_meta": { - "description": "Non-default value of setting." - } - }, - "observability:searchExcludedDataTiers": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "Non-default value of setting." - } - } - }, - "observability:newLogsOverview": { - "type": "boolean", - "_meta": { - "description": "Enable the new logs overview component." - } - } - } - }, - "static_telemetry": { - "properties": { - "ece": { - "properties": { - "kb_uuid": { - "type": "keyword" - }, - "es_uuid": { - "type": "keyword" - }, - "account_id": { - "type": "keyword" - }, - "license": { - "properties": { - "uuid": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "issued_to": { - "type": "text" - }, - "issuer": { - "type": "text" - }, - "issue_date_in_millis": { - "type": "long" - }, - "start_date_in_millis": { - "type": "long" - }, - "expiry_date_in_millis": { - "type": "long" - }, - "max_resource_units": { - "type": "long" - } - } - } - } - }, - "ess": { - "properties": { - "kb_uuid": { - "type": "keyword" - }, - "es_uuid": { - "type": "keyword" - }, - "account_id": { - "type": "keyword" - }, - "license": { - "properties": { - "uuid": { - "type": "keyword" - }, - "type": { - "type": "keyword" - }, - "issued_to": { - "type": "text" - }, - "issuer": { - "type": "text" - }, - "issue_date_in_millis": { - "type": "long" - }, - "start_date_in_millis": { - "type": "long" - }, - "expiry_date_in_millis": { - "type": "long" - }, - "max_resource_units": { - "type": "long" - } - } - } - } - }, - "eck": { - "properties": { - "operator_uuid": { - "type": "keyword" - }, - "operator_roles": { - "type": "keyword" - }, - "custom_operator_namespace": { - "type": "boolean" - }, - "distribution": { - "type": "text" - }, - "build": { - "properties": { - "hash": { - "type": "text" - }, - "date": { - "type": "date" - }, - "version": { - "type": "keyword" - } - } - } - } - } - } - }, - "telemetry": { - "properties": { - "opt_in_status": { - "type": "boolean" - }, - "usage_fetcher": { - "type": "keyword" - }, - "last_reported": { - "type": "long" - }, - "labels": { - "type": "pass_through", - "_meta": { - "description": "Custom labels added to the telemetry.labels config in the kibana.yml" - } - } - } - }, - "ui_counters": { - "properties": { - "dailyEvents": { - "type": "array", - "items": { - "properties": { - "appName": { - "type": "keyword", - "_meta": { - "description": "Name of the app reporting ui counts." - } - }, - "eventName": { - "type": "keyword", - "_meta": { - "description": "Name of the event that happened." - } - }, - "lastUpdatedAt": { - "type": "date", - "_meta": { - "description": "Time at which the metric was last updated." - } - }, - "fromTimestamp": { - "type": "date", - "_meta": { - "description": "Time at which the metric was captured." - } - }, - "counterType": { - "type": "keyword", - "_meta": { - "description": "The type of counter used." - } - }, - "total": { - "type": "integer", - "_meta": { - "description": "The total number of times the event happened." - } - } - } - } - } - } - }, - "ui_metric": { - "properties": { - "console": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "DashboardPanelVersionInUrl": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "Kibana_home": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "visualize": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "canvas": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "cross_cluster_replication": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "index_lifecycle_management": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "index_management": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "ingest_pipelines": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "apm": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "infra_logs": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "infra_metrics": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "stack_monitoring": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "remote_clusters": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "rollup_jobs": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "securitySolution": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "snapshot_restore": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "dashboards": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "dev_tools": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "discover": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "home": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "kibana": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "management": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "short_url_redirect": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "csm": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "enterpriseSearch": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "appSearch": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "workplaceSearch": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "graph": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "logs": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "metrics": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "infra": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "ingestManager": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "lens": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "maps": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "ml": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "monitoring": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "observability-overview": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "security_account": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "security_access_agreement": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "security_capture_url": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "security_logged_out": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "security_login": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "security_logout": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "security_overwritten_session": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "securitySolutionUI": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "securitySolutionUI:overview": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "securitySolutionUI:detections": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "securitySolutionUI:hosts": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "securitySolutionUI:network": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "securitySolutionUI:timelines": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "securitySolutionUI:case": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "securitySolutionUI:administration": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "siem": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "space_selector": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "uptime": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - } - } - }, - "usage_collector_stats": { - "properties": { - "total_duration": { - "type": "long", - "_meta": { - "description": "The total execution duration to grab usage stats for all collectors in milliseconds" - } - }, - "total_is_ready_duration": { - "type": "long", - "_meta": { - "description": "The total execution duration of the isReady function for all collectors in milliseconds" - } - }, - "total_fetch_duration": { - "type": "long", - "_meta": { - "description": "The total execution duration of the fetch function for all ready collectors in milliseconds" - } - }, - "is_ready_duration_breakdown": { - "type": "array", - "items": { - "properties": { - "name": { - "type": "keyword", - "_meta": { - "description": "The name of the collector" - } - }, - "duration": { - "type": "long", - "_meta": { - "description": "The execution duration of the isReady function for the collector in milliseconds" - } - } - } - } - }, - "fetch_duration_breakdown": { - "type": "array", - "items": { - "properties": { - "name": { - "type": "keyword", - "_meta": { - "description": "The name of the collector" - } - }, - "duration": { - "type": "long", - "_meta": { - "description": "The execution duration of the fetch function for the collector in milliseconds" - } - } - } - } - }, - "not_ready": { - "properties": { - "count": { - "type": "short", - "_meta": { - "description": "The number of collectors that returned false from the isReady function" - } - }, - "names": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "The name of the of collectors that returned false from the isReady function" - } - } - } - } - }, - "not_ready_timeout": { - "properties": { - "count": { - "type": "short", - "_meta": { - "description": "The number of collectors that timedout during the isReady function" - } - }, - "names": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "The name of collectors that timedout during the isReady function" - } - } - } - } - }, - "succeeded": { - "properties": { - "count": { - "type": "short", - "_meta": { - "description": "The number of collectors that returned true from the fetch function" - } - }, - "names": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "The name of the of collectors that returned true from the fetch function" - } - } - } - } - }, - "failed": { - "properties": { - "count": { - "type": "short", - "_meta": { - "description": "The number of collectors that threw an error from the fetch function" - } - }, - "names": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "The name of the of collectors that threw an error from the fetch function" - } - } - } - } - } - } - }, - "usage_counters": { - "properties": { - "dailyEvents": { - "type": "array", - "items": { - "properties": { - "domainId": { - "type": "keyword", - "_meta": { - "description": "Domain name of the metric (ie plugin name)." - } - }, - "counterName": { - "type": "keyword", - "_meta": { - "description": "Name of the counter that happened." - } - }, - "lastUpdatedAt": { - "type": "date", - "_meta": { - "description": "Time at which the metric was last updated." - } - }, - "fromTimestamp": { - "type": "date", - "_meta": { - "description": "Time at which the metric was captured." - } - }, - "counterType": { - "type": "keyword", - "_meta": { - "description": "The type of counter used." - } - }, - "total": { - "type": "integer", - "_meta": { - "description": "The total number of times the event happened." - } - } - } - } - } - } } } } diff --git a/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_platform.json b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_platform.json index 0537b53856632..e4ad6eef88d09 100644 --- a/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_platform.json +++ b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_platform.json @@ -3750,6 +3750,89 @@ } } }, + "cloud": { + "properties": { + "isCloudEnabled": { + "type": "boolean", + "_meta": { + "description": "Is the deployment running in Elastic Cloud (ESS or Serverless)?" + } + }, + "trialEndDate": { + "type": "date", + "_meta": { + "description": "End of the trial period" + } + }, + "inTrial": { + "type": "boolean", + "_meta": { + "description": "Is the organization during the trial period?" + } + }, + "isElasticStaffOwned": { + "type": "boolean", + "_meta": { + "description": "Is the deploymend owned by an Elastician" + } + }, + "organizationId": { + "type": "keyword", + "_meta": { + "description": "The Elastic Cloud Organization ID that owns the deployment/project" + } + }, + "deploymentId": { + "type": "keyword", + "_meta": { + "description": "The ESS Deployment ID" + } + }, + "projectId": { + "type": "keyword", + "_meta": { + "description": "The Serverless Project ID" + } + }, + "projectType": { + "type": "keyword", + "_meta": { + "description": "The Serverless Project type" + } + }, + "orchestratorTarget": { + "type": "keyword", + "_meta": { + "description": "The Orchestrator Target where it is deployed (canary/non-canary)" + } + } + } + }, + "cloudExperiments": { + "properties": { + "initialized": { + "type": "boolean", + "_meta": { + "description": "Whether the A/B testing client is correctly initialized (identify has been called)" + } + }, + "flags": { + "type": "pass_through", + "_meta": { + "description": "Flags received by the client" + } + }, + "flagNames": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "Names of the flags received by the client" + } + } + } + } + }, "discoverEnhanced": { "properties": { "exploreDataInChartActionEnabled": { @@ -5633,6 +5716,24 @@ } } } + }, + "upgrade-assistant-telemetry": { + "properties": { + "features": { + "properties": { + "deprecation_logging": { + "properties": { + "enabled": { + "type": "boolean", + "_meta": { + "description": "Whether user has enabled Elasticsearch deprecation logging" + } + } + } + } + } + } + } } } } diff --git a/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_plugins.json b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_plugins.json index 63c7bfcf3f33a..1e0477493f330 100644 --- a/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_plugins.json +++ b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_plugins.json @@ -1,88 +1,5 @@ { "properties": { - "cloud": { - "properties": { - "isCloudEnabled": { - "type": "boolean", - "_meta": { - "description": "Is the deployment running in Elastic Cloud (ESS or Serverless)?" - } - }, - "trialEndDate": { - "type": "date", - "_meta": { - "description": "End of the trial period" - } - }, - "inTrial": { - "type": "boolean", - "_meta": { - "description": "Is the organization during the trial period?" - } - }, - "isElasticStaffOwned": { - "type": "boolean", - "_meta": { - "description": "Is the deploymend owned by an Elastician" - } - }, - "organizationId": { - "type": "keyword", - "_meta": { - "description": "The Elastic Cloud Organization ID that owns the deployment/project" - } - }, - "deploymentId": { - "type": "keyword", - "_meta": { - "description": "The ESS Deployment ID" - } - }, - "projectId": { - "type": "keyword", - "_meta": { - "description": "The Serverless Project ID" - } - }, - "projectType": { - "type": "keyword", - "_meta": { - "description": "The Serverless Project type" - } - }, - "orchestratorTarget": { - "type": "keyword", - "_meta": { - "description": "The Orchestrator Target where it is deployed (canary/non-canary)" - } - } - } - }, - "cloudExperiments": { - "properties": { - "initialized": { - "type": "boolean", - "_meta": { - "description": "Whether the A/B testing client is correctly initialized (identify has been called)" - } - }, - "flags": { - "type": "pass_through", - "_meta": { - "description": "Flags received by the client" - } - }, - "flagNames": { - "type": "array", - "items": { - "type": "keyword", - "_meta": { - "description": "Names of the flags received by the client" - } - } - } - } - }, "security": { "properties": { "auditLoggingEnabled": { @@ -470,24 +387,6 @@ } } } - }, - "upgrade-assistant-telemetry": { - "properties": { - "features": { - "properties": { - "deprecation_logging": { - "properties": { - "enabled": { - "type": "boolean", - "_meta": { - "description": "Whether user has enabled Elasticsearch deprecation logging" - } - } - } - } - } - } - } } } } From 91b4932fa4463532b3e9ee219f0120006922b15f Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Sat, 4 Jan 2025 10:59:49 +0000 Subject: [PATCH 167/167] [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' --- .../packages/http/router-server-internal/src/router.ts | 2 +- src/platform/plugins/private/ftr_apis/jest.config.js | 4 +++- .../plugins/private/kibana_usage_collection/jest.config.js | 3 ++- src/platform/plugins/shared/newsfeed/jest.config.js | 4 +++- .../plugins/shared/saved_objects_management/jest.config.js | 3 ++- src/platform/plugins/shared/telemetry/jest.config.js | 4 +++- .../shared/telemetry_management_section/jest.config.js | 4 +++- .../plugins/shared/usage_collection/jest.config.js | 3 ++- test/common/plugins/newsfeed/server/plugin.ts | 4 +++- .../private/telemetry_collection_xpack/jest.config.js | 4 +++- .../plugins/private/upgrade_assistant/jest.config.js | 3 ++- x-pack/platform/plugins/shared/cloud/jest.config.js | 4 +++- x-pack/platform/plugins/shared/features/jest.config.js | 7 +++++-- x-pack/platform/plugins/shared/licensing/jest.config.js | 7 +++++-- 14 files changed, 40 insertions(+), 16 deletions(-) diff --git a/src/core/packages/http/router-server-internal/src/router.ts b/src/core/packages/http/router-server-internal/src/router.ts index d1640a4db6db1..014a6eefb9206 100644 --- a/src/core/packages/http/router-server-internal/src/router.ts +++ b/src/core/packages/http/router-server-internal/src/router.ts @@ -239,7 +239,7 @@ export class Router, route.options), validationSchemas: route.validate, - // @ts-ignore using isVersioned: false in the type instead of boolean + // @ts-expect-error using isVersioned: false in the type instead of boolean // for typeguarding between versioned and unversioned RouterRoute types isVersioned, }); diff --git a/src/platform/plugins/private/ftr_apis/jest.config.js b/src/platform/plugins/private/ftr_apis/jest.config.js index 5b20f0a9d5e5b..63d378f9d73cd 100644 --- a/src/platform/plugins/private/ftr_apis/jest.config.js +++ b/src/platform/plugins/private/ftr_apis/jest.config.js @@ -13,5 +13,7 @@ module.exports = { roots: ['/src/platform/plugins/private/ftr_apis'], coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/ftr_apis', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/private/ftr_apis/{common,public,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/private/ftr_apis/{common,public,server}/**/*.{js,ts,tsx}', + ], }; diff --git a/src/platform/plugins/private/kibana_usage_collection/jest.config.js b/src/platform/plugins/private/kibana_usage_collection/jest.config.js index e30e3349b1e93..2c9fca5b373a6 100644 --- a/src/platform/plugins/private/kibana_usage_collection/jest.config.js +++ b/src/platform/plugins/private/kibana_usage_collection/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/private/kibana_usage_collection'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/private/kibana_usage_collection', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/kibana_usage_collection', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/private/kibana_usage_collection/{common,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/shared/newsfeed/jest.config.js b/src/platform/plugins/shared/newsfeed/jest.config.js index c97d47e6a159a..bcc6118c20e4b 100644 --- a/src/platform/plugins/shared/newsfeed/jest.config.js +++ b/src/platform/plugins/shared/newsfeed/jest.config.js @@ -13,5 +13,7 @@ module.exports = { roots: ['/src/platform/plugins/shared/newsfeed'], coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/newsfeed', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/newsfeed/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/newsfeed/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/saved_objects_management/jest.config.js b/src/platform/plugins/shared/saved_objects_management/jest.config.js index e06cf47813410..ddd3f28d5bad3 100644 --- a/src/platform/plugins/shared/saved_objects_management/jest.config.js +++ b/src/platform/plugins/shared/saved_objects_management/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/saved_objects_management'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/saved_objects_management', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/saved_objects_management', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/saved_objects_management/{common,public,server}/**/*.{ts,tsx}', diff --git a/src/platform/plugins/shared/telemetry/jest.config.js b/src/platform/plugins/shared/telemetry/jest.config.js index 0f04eaecb6958..0e3146d7c9eaa 100644 --- a/src/platform/plugins/shared/telemetry/jest.config.js +++ b/src/platform/plugins/shared/telemetry/jest.config.js @@ -13,5 +13,7 @@ module.exports = { roots: ['/src/platform/plugins/shared/telemetry'], coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/telemetry', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/telemetry/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/telemetry/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/telemetry_management_section/jest.config.js b/src/platform/plugins/shared/telemetry_management_section/jest.config.js index 870da44a5a120..8a7ad3b6757bb 100644 --- a/src/platform/plugins/shared/telemetry_management_section/jest.config.js +++ b/src/platform/plugins/shared/telemetry_management_section/jest.config.js @@ -14,5 +14,7 @@ module.exports = { coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/telemetry_management_section', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/platform/plugins/shared/telemetry_management_section/public/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/telemetry_management_section/public/**/*.{ts,tsx}', + ], }; diff --git a/src/platform/plugins/shared/usage_collection/jest.config.js b/src/platform/plugins/shared/usage_collection/jest.config.js index f8940378f66c8..86d6a7d74bfe1 100644 --- a/src/platform/plugins/shared/usage_collection/jest.config.js +++ b/src/platform/plugins/shared/usage_collection/jest.config.js @@ -11,7 +11,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/src/platform/plugins/shared/usage_collection'], - coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/usage_collection', + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/usage_collection', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/src/platform/plugins/shared/usage_collection/{common,public,server}/**/*.{ts,tsx}', diff --git a/test/common/plugins/newsfeed/server/plugin.ts b/test/common/plugins/newsfeed/server/plugin.ts index 80bd84b7d699b..d63b0fe95484e 100644 --- a/test/common/plugins/newsfeed/server/plugin.ts +++ b/test/common/plugins/newsfeed/server/plugin.ts @@ -46,7 +46,9 @@ export class NewsFeedSimulatorPlugin implements Plugin { items: [ { title: { en: `You are functionally testing the newsfeed widget with fixtures!` }, - description: { en: 'See test/common/platform/plugins/shared/newsfeed/newsfeed_simulation' }, + description: { + en: 'See test/common/platform/plugins/shared/newsfeed/newsfeed_simulation', + }, link_text: { en: 'Generic feed-viewer could go here' }, link_url: { en: 'https://feeds.elastic.co' }, languages: null, diff --git a/x-pack/platform/plugins/private/telemetry_collection_xpack/jest.config.js b/x-pack/platform/plugins/private/telemetry_collection_xpack/jest.config.js index 4e4bed3de1ad1..ecb2ede5b918f 100644 --- a/x-pack/platform/plugins/private/telemetry_collection_xpack/jest.config.js +++ b/x-pack/platform/plugins/private/telemetry_collection_xpack/jest.config.js @@ -12,5 +12,7 @@ module.exports = { coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/telemetry_collection_xpack', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/platform/plugins/private/telemetry_collection_xpack/server/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/private/telemetry_collection_xpack/server/**/*.{ts,tsx}', + ], }; diff --git a/x-pack/platform/plugins/private/upgrade_assistant/jest.config.js b/x-pack/platform/plugins/private/upgrade_assistant/jest.config.js index aba2c9b5cf20a..2abb8ea84ab93 100644 --- a/x-pack/platform/plugins/private/upgrade_assistant/jest.config.js +++ b/x-pack/platform/plugins/private/upgrade_assistant/jest.config.js @@ -9,7 +9,8 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/private/upgrade_assistant'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/private/upgrade_assistant', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/private/upgrade_assistant', coverageReporters: ['text', 'html'], collectCoverageFrom: [ '/x-pack/platform/plugins/private/upgrade_assistant/{common,public,server}/**/*.{ts,tsx}', diff --git a/x-pack/platform/plugins/shared/cloud/jest.config.js b/x-pack/platform/plugins/shared/cloud/jest.config.js index fd20d915bd553..fa19f5b20864e 100644 --- a/x-pack/platform/plugins/shared/cloud/jest.config.js +++ b/x-pack/platform/plugins/shared/cloud/jest.config.js @@ -11,5 +11,7 @@ module.exports = { roots: ['/x-pack/platform/plugins/shared/cloud'], coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/cloud', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/platform/plugins/shared/cloud/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/shared/cloud/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/x-pack/platform/plugins/shared/features/jest.config.js b/x-pack/platform/plugins/shared/features/jest.config.js index f467c256442d0..3675ee2986003 100644 --- a/x-pack/platform/plugins/shared/features/jest.config.js +++ b/x-pack/platform/plugins/shared/features/jest.config.js @@ -9,7 +9,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/shared/features'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/features', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/features', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/platform/plugins/shared/features/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/shared/features/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/x-pack/platform/plugins/shared/licensing/jest.config.js b/x-pack/platform/plugins/shared/licensing/jest.config.js index e979e1c62632c..787cbc4c0dc31 100644 --- a/x-pack/platform/plugins/shared/licensing/jest.config.js +++ b/x-pack/platform/plugins/shared/licensing/jest.config.js @@ -9,7 +9,10 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', roots: ['/x-pack/platform/plugins/shared/licensing'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/licensing', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/licensing', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/platform/plugins/shared/licensing/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/shared/licensing/{common,public,server}/**/*.{ts,tsx}', + ], };