diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2840d96964b1b..85031c11756d6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -782,7 +782,6 @@ x-pack/packages/kbn-random-sampling @elastic/kibana-visualizations x-pack/packages/kbn-synthetics-private-location @elastic/obs-ux-management-team x-pack/packages/maps/vector_tile_utils @elastic/kibana-presentation x-pack/packages/observability/logs_overview @elastic/obs-ux-logs-team -x-pack/packages/observability/observability_utils/observability_utils_browser @elastic/observability-ui x-pack/packages/observability/observability_utils/observability_utils_common @elastic/observability-ui x-pack/packages/observability/observability_utils/observability_utils_server @elastic/observability-ui x-pack/packages/search/shared_ui @elastic/search-kibana @@ -959,6 +958,7 @@ x-pack/solutions/observability/packages/get_padded_alert_time_range_util @elasti x-pack/solutions/observability/packages/kbn-investigation-shared @elastic/obs-ux-management-team x-pack/solutions/observability/packages/observability_ai/observability_ai_common @elastic/obs-ai-assistant x-pack/solutions/observability/packages/observability_ai/observability_ai_server @elastic/obs-ai-assistant +x-pack/solutions/observability/packages/observability_utils/observability_utils_browser @elastic/observability-ui x-pack/solutions/observability/packages/synthetics_test_data @elastic/obs-ux-management-team x-pack/solutions/observability/plugins/exploratory_view @elastic/obs-ux-management-team x-pack/solutions/observability/plugins/investigate @elastic/obs-ux-management-team diff --git a/package.json b/package.json index a16221bf4427d..29c20ef42f7aa 100644 --- a/package.json +++ b/package.json @@ -708,7 +708,7 @@ "@kbn/observability-plugin": "link:x-pack/solutions/observability/plugins/observability", "@kbn/observability-shared-plugin": "link:x-pack/solutions/observability/plugins/observability_shared", "@kbn/observability-synthetics-test-data": "link:x-pack/solutions/observability/packages/synthetics_test_data", - "@kbn/observability-utils-browser": "link:x-pack/packages/observability/observability_utils/observability_utils_browser", + "@kbn/observability-utils-browser": "link:x-pack/solutions/observability/packages/observability_utils/observability_utils_browser", "@kbn/observability-utils-common": "link:x-pack/packages/observability/observability_utils/observability_utils_common", "@kbn/observability-utils-server": "link:x-pack/packages/observability/observability_utils/observability_utils_server", "@kbn/oidc-provider-plugin": "link:x-pack/test/security_api_integration/plugins/oidc_provider", diff --git a/tsconfig.base.json b/tsconfig.base.json index e1c1315dbb572..81ca0dc8f9880 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1352,8 +1352,8 @@ "@kbn/observability-shared-plugin/*": ["x-pack/solutions/observability/plugins/observability_shared/*"], "@kbn/observability-synthetics-test-data": ["x-pack/solutions/observability/packages/synthetics_test_data"], "@kbn/observability-synthetics-test-data/*": ["x-pack/solutions/observability/packages/synthetics_test_data/*"], - "@kbn/observability-utils-browser": ["x-pack/packages/observability/observability_utils/observability_utils_browser"], - "@kbn/observability-utils-browser/*": ["x-pack/packages/observability/observability_utils/observability_utils_browser/*"], + "@kbn/observability-utils-browser": ["x-pack/solutions/observability/packages/observability_utils/observability_utils_browser"], + "@kbn/observability-utils-browser/*": ["x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/*"], "@kbn/observability-utils-common": ["x-pack/packages/observability/observability_utils/observability_utils_common"], "@kbn/observability-utils-common/*": ["x-pack/packages/observability/observability_utils/observability_utils_common/*"], "@kbn/observability-utils-server": ["x-pack/packages/observability/observability_utils/observability_utils_server"], diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/chart/utils.ts b/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/chart/utils.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_browser/chart/utils.ts rename to x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/chart/utils.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/hooks/use_abort_controller.ts b/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/hooks/use_abort_controller.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_browser/hooks/use_abort_controller.ts rename to x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/hooks/use_abort_controller.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/hooks/use_abortable_async.ts b/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/hooks/use_abortable_async.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_browser/hooks/use_abortable_async.ts rename to x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/hooks/use_abortable_async.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/hooks/use_date_range.ts b/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/hooks/use_date_range.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_browser/hooks/use_date_range.ts rename to x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/hooks/use_date_range.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/hooks/use_local_storage.ts b/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/hooks/use_local_storage.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_browser/hooks/use_local_storage.ts rename to x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/hooks/use_local_storage.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/hooks/use_theme.ts b/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/hooks/use_theme.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_browser/hooks/use_theme.ts rename to x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/hooks/use_theme.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/jest.config.js b/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/jest.config.js similarity index 69% rename from x-pack/packages/observability/observability_utils/observability_utils_browser/jest.config.js rename to x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/jest.config.js index 33358c221fa1f..7df77a84338fa 100644 --- a/x-pack/packages/observability/observability_utils/observability_utils_browser/jest.config.js +++ b/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/jest.config.js @@ -7,8 +7,8 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../..', + rootDir: '../../../../../..', roots: [ - '/x-pack/packages/observability/observability_utils/observability_utils_browser', + '/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser', ], }; diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/kibana.jsonc b/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/kibana.jsonc similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_browser/kibana.jsonc rename to x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/kibana.jsonc diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/package.json b/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/package.json similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_browser/package.json rename to x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/package.json diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/tsconfig.json b/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/tsconfig.json similarity index 85% rename from x-pack/packages/observability/observability_utils/observability_utils_browser/tsconfig.json rename to x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/tsconfig.json index 9cfa030bd901d..d40f4262bebd5 100644 --- a/x-pack/packages/observability/observability_utils/observability_utils_browser/tsconfig.json +++ b/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/utils/ui_settings/get_timezone.ts b/x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/utils/ui_settings/get_timezone.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_browser/utils/ui_settings/get_timezone.ts rename to x-pack/solutions/observability/packages/observability_utils/observability_utils_browser/utils/ui_settings/get_timezone.ts diff --git a/yarn.lock b/yarn.lock index c211a42dee65b..417c34a907d71 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6521,7 +6521,7 @@ version "0.0.0" uid "" -"@kbn/observability-utils-browser@link:x-pack/packages/observability/observability_utils/observability_utils_browser": +"@kbn/observability-utils-browser@link:x-pack/solutions/observability/packages/observability_utils/observability_utils_browser": version "0.0.0" uid ""