From 1e98a368188aab5b120db7f012754af386db77bd Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Wed, 25 Dec 2024 22:14:06 +0100 Subject: [PATCH] Sustainable Kibana Architecture: Move modules owned by `@elastic/observability-ui` (#202834) ## Summary This PR aims at relocating some of the Kibana modules (plugins and packages) into a new folder structure, according to the _Sustainable Kibana Architecture_ initiative. > [!IMPORTANT] > * We kindly ask you to: > * Manually fix the errors in the error section below (if there are any). > * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the source code (Babel and Eslint config files), and update them appropriately. > * Manually review `.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that any CI pipeline customizations continue to be correctly applied after the changed path names > * Review all of the updated files, specially the `.ts` and `.js` files listed in the sections below, as some of them contain relative paths that have been updated. > * Think of potential impact of the move, including tooling and configuration files that can be pointing to the relocated modules. E.g.: > * customised eslint rules > * docs pointing to source code > [!NOTE] > * This PR has been auto-generated. > * Any manual contributions will be lost if the 'relocate' script is re-run. > * Try to obtain the missing reviews / approvals before applying manual fixes, and/or keep your changes in a .patch / git stash. > * Please use [#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E) Slack channel for feedback. Are you trying to rebase this PR to solve merge conflicts? Please follow the steps describe [here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E). #### 1 plugin(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/observability-shared-plugin` | `x-pack/solutions/observability/plugins/observability_shared` | #### 3 packages(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/observability-utils-browser` | `x-pack/solutions/observability/packages/utils_browser` | | `@kbn/observability-utils-common` | `x-pack/solutions/observability/packages/utils_common` | | `@kbn/observability-utils-server` | `x-pack/solutions/observability/packages/utils_server` |
Updated references ``` ./docs/developer/plugin-list.asciidoc ./package.json ./packages/kbn-repo-packages/package-map.json ./packages/kbn-ts-projects/config-paths.json ./src/dev/storybook/aliases.ts ./tsconfig.base.json ./tsconfig.base.type_check.json ./tsconfig.refs.json ./x-pack/.i18nrc.json ./x-pack/solutions/observability/packages/utils_browser/jest.config.js ./x-pack/solutions/observability/packages/utils_common/jest.config.js ./x-pack/solutions/observability/packages/utils_server/jest.config.js ./x-pack/solutions/observability/plugins/observability_shared/jest.config.js ./x-pack/test/tsconfig.type_check.json ./yarn.lock .github/CODEOWNERS ```
Updated relative paths ``` x-pack/solutions/observability/packages/utils_browser/jest.config.js:10 x-pack/solutions/observability/packages/utils_browser/tsconfig.json:2 x-pack/solutions/observability/packages/utils_common/jest.config.js:10 x-pack/solutions/observability/packages/utils_common/tsconfig.json:2 x-pack/solutions/observability/packages/utils_server/jest.config.js:10 x-pack/solutions/observability/packages/utils_server/tsconfig.json:2 x-pack/solutions/observability/plugins/observability_shared/jest.config.js:10 x-pack/solutions/observability/plugins/observability_shared/tsconfig.json:12 x-pack/solutions/observability/plugins/observability_shared/tsconfig.json:2 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:102 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:105 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:108 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:111 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:114 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:14 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:2 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:21 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:24 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:27 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:30 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:33 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:36 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:39 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:42 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:45 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:48 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:51 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:54 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:57 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:60 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:63 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:66 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:69 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:72 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:75 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:78 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:81 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:84 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:87 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:90 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:93 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:96 x-pack/solutions/observability/plugins/observability_shared/tsconfig.type_check.json:99 ```
--------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: pgayvallet --- .github/CODEOWNERS | 12 +++++----- docs/developer/plugin-list.asciidoc | 2 +- package.json | 8 +++---- .../styled_components_files.js | 4 ++-- src/dev/storybook/aliases.ts | 2 +- tsconfig.base.json | 16 ++++++------- x-pack/.i18nrc.json | 2 +- .../observability_shared/jest.config.js | 21 ------------------ .../packages/utils_browser}/chart/utils.ts | 0 .../hooks/use_abort_controller.ts | 0 .../hooks/use_abortable_async.ts | 0 .../utils_browser}/hooks/use_date_range.ts | 0 .../utils_browser}/hooks/use_local_storage.ts | 0 .../utils_browser}/hooks/use_theme.ts | 0 .../packages/utils_browser}/jest.config.js | 2 +- .../packages/utils_browser}/kibana.jsonc | 0 .../packages/utils_browser}/package.json | 0 .../packages/utils_browser}/tsconfig.json | 0 .../utils/ui_settings/get_timezone.ts | 0 .../utils_common}/array/join_by_key.test.ts | 0 .../utils_common}/array/join_by_key.ts | 0 .../entities/get_entity_kuery.ts | 0 .../utils_common}/es/format_value_for_kql.ts | 0 .../utils_common}/es/queries/entity_query.ts | 0 .../es/queries/exclude_frozen_query.ts | 0 .../es/queries/exclude_tiers_query.ts | 0 .../utils_common}/es/queries/kql_query.ts | 0 .../utils_common}/es/queries/range_query.ts | 0 .../utils_common}/es/queries/term_query.ts | 0 .../packages/utils_common}/format/integer.ts | 0 .../packages/utils_common}/jest.config.js | 2 +- .../packages/utils_common}/kibana.jsonc | 0 .../llm/log_analysis/document_analysis.ts | 0 .../highlight_patterns_from_regex.ts | 0 .../merge_sample_documents_with_field_caps.ts | 0 .../sort_and_truncate_analyzed_fields.ts | 0 .../utils_common}/llm/short_id_table.test.ts | 0 .../utils_common}/llm/short_id_table.ts | 0 .../utils_common}/ml/p_value_to_label.ts | 0 .../object/flatten_object.test.ts | 0 .../utils_common}/object/flatten_object.ts | 0 .../object/merge_plain_object.test.ts | 0 .../object/merge_plain_objects.ts | 0 .../object/unflatten_object.test.ts | 0 .../utils_common}/object/unflatten_object.ts | 0 .../packages/utils_common}/package.json | 0 .../packages/utils_common}/tsconfig.json | 0 .../entities/analyze_documents.ts | 0 .../entities/get_data_streams_for_entity.ts | 0 .../entities/get_entities_by_fuzzy_search.ts | 0 .../entities/get_log_patterns.ts | 0 .../entities/signals/get_alerts_for_entity.ts | 0 .../signals/get_anomalies_for_entity.ts | 0 .../entities/signals/get_slos_for_entity.ts | 0 .../client/create_observability_es_client.ts | 0 .../es/esql_result_to_plain_objects.test.ts | 0 .../es/esql_result_to_plain_objects.ts | 0 .../es/queries/exclude_frozen_query.ts | 0 .../utils_server}/es/queries/kql_query.ts | 0 .../utils_server}/es/queries/range_query.ts | 0 .../utils_server}/es/queries/term_query.ts | 0 .../packages/utils_server}/jest.config.js | 4 +--- .../packages/utils_server}/kibana.jsonc | 0 .../packages/utils_server}/package.json | 0 .../packages/utils_server}/tsconfig.json | 0 .../.storybook/get_mock_context.tsx | 0 .../.storybook/jest_setup.js | 0 .../observability_shared/.storybook/main.js | 0 .../.storybook/preview.js | 0 .../.storybook/storybook_decorator.tsx | 0 .../plugins}/observability_shared/README.md | 0 .../common/color_palette.ts | 0 .../common/embeddable_grouping.ts | 0 .../common/entity/entity_data_stream_types.ts | 0 .../common/entity/entity_types.ts | 0 .../common/entity/index.ts | 0 .../common/field_names/elasticsearch.ts | 0 .../common/field_names/synthetics.ts | 0 .../observability_shared/common/ilm_types.ts | 0 .../observability_shared/common/index.ts | 0 .../locators/apm/service_entity_locator.ts | 0 .../locators/apm/service_overview_locator.ts | 0 .../transaction_details_by_name_locator.ts | 0 ...transaction_details_by_trace_id_locator.ts | 0 .../entity_inventory_locator.ts | 0 .../common/locators/index.ts | 0 .../infra/asset_details_flyout_locator.ts | 0 .../locators/infra/asset_details_locator.ts | 0 .../common/locators/infra/hosts_locator.ts | 0 .../locators/infra/inventory_locator.ts | 0 .../common/locators/infra/locators.test.ts | 0 .../infra/metrics_explorer_locator.ts | 0 .../locators/profiling/flamegraph_locator.ts | 0 .../locators/profiling/stacktraces_locator.ts | 0 .../profiling/topn_functions_locator.ts | 0 .../common/trigger_ids.ts | 0 .../common/utils/get_inspect_response.ts | 0 .../common/utils/unwrap_es_response.ts | 0 .../dev_docs/how_we_manage_dependencies.md | 0 .../observability_shared/jest.config.js | 21 ++++++++++++++++++ .../observability_shared/kibana.jsonc | 0 .../components/action_menu/action_menu.tsx | 0 .../add_data_panel/add_data_panel.stories.tsx | 0 .../components/add_data_panel/index.tsx | 0 .../bottom_bar_actions/bottom_bar_actions.tsx | 0 .../feature_feedback_button.test.ts | 0 .../feature_feedback_button.tsx | 0 .../field_value_selection.stories.tsx | 0 .../field_value_combobox.tsx | 0 .../field_value_selection.test.tsx | 0 .../field_value_selection.tsx | 0 .../field_value_suggestions/index.test.tsx | 0 .../field_value_suggestions/index.tsx | 0 .../field_value_suggestions/types.ts | 0 .../header_menu/header_menu_portal.test.tsx | 0 .../header_menu/header_menu_portal.tsx | 0 .../public/components/header_menu/index.tsx | 0 .../public/components/index.tsx | 0 .../get_load_when_in_view_lazy.tsx | 0 .../load_when_in_view/load_when_in_view.tsx | 0 .../navigation_warning_prompt/context.tsx | 0 .../navigation_warning_prompt/index.ts | 0 .../navigation_warning_prompt/prompt.tsx | 0 .../public/components/page_template/README.md | 0 .../public/components/page_template/badge.png | Bin .../helpers/navigation_registry.ts | 0 .../public/components/page_template/index.ts | 0 .../page_template/lazy_page_template.tsx | 0 .../page_template/nav_name_with_badge.tsx | 0 .../nav_name_with_beta_badge.tsx | 0 .../page_template/page_template.png | Bin .../page_template/page_template.test.tsx | 0 .../page_template/page_template.tsx | 0 .../page_template/search_bar_portal.tsx | 0 .../embeddables/embeddable_flamegraph.tsx | 0 .../embeddables/embeddable_functions.tsx | 0 .../embeddable_profiling_search_bar.tsx | 0 .../embeddables/embeddable_stack_traces.tsx | 0 .../components/profiling/embeddables/index.ts | 0 .../profiling/helpers/component_registry.ts | 0 .../profiling/profiling_empty_state.tsx | 0 .../public/components/section/section.tsx | 0 .../public/components/tags_list/tags_list.tsx | 0 .../components/tags_list/tags_list_lazy.tsx | 0 .../technical_preview_badge.tsx | 0 .../public/components/tour/index.ts | 0 .../public/components/tour/steps_config.ts | 0 .../public/components/tour/tour.tsx | 0 .../contexts/inspector/inspector_context.tsx | 0 .../inspector/use_inspector_context.tsx | 0 .../public/hooks/use_breadcrumbs.test.tsx | 0 .../public/hooks/use_breadcrumbs.ts | 0 .../public/hooks/use_chart_theme.tsx | 0 .../hooks/use_control_panels_url_state.ts | 0 .../public/hooks/use_editable_settings.tsx | 0 .../public/hooks/use_es_search.ts | 1 - .../public/hooks/use_fetcher.tsx | 0 .../public/hooks/use_kibana_query_settings.ts | 0 .../public/hooks/use_kibana_space.tsx | 0 .../public/hooks/use_kibana_ui_settings.ts | 0 .../public/hooks/use_link_props.test.tsx | 0 .../public/hooks/use_link_props.ts | 0 .../hooks/use_prefix_path_with_basepath.tsx | 0 .../public/hooks/use_query_params.ts | 0 .../public/hooks/use_quick_time_ranges.tsx | 0 .../public/hooks/use_theme.tsx | 0 .../public/hooks/use_time_zone.ts | 0 .../public/hooks/use_track_metric.tsx | 0 .../public/hooks/use_url_state.ts | 0 .../public/hooks/use_values_list.ts | 0 .../public/images/profiling.png | Bin .../observability_shared/public/index.ts | 0 .../public/infra/index.ts | 0 .../observability_shared/public/plugin.ts | 0 .../get_context_menu_items_from_actions.ts | 0 .../update_global_navigation.test.tsx | 0 .../services/update_global_navigation.tsx | 0 .../observability_shared/public/types.ts | 0 .../public/utils/cases_permissions.ts | 0 .../observability_shared/public/utils/date.ts | 0 .../observability_shared/scripts/storybook.js | 0 .../observability_shared/tsconfig.json | 4 ++-- .../observability_shared/typings/common.ts | 0 yarn.lock | 8 +++---- 184 files changed, 53 insertions(+), 56 deletions(-) delete mode 100644 x-pack/plugins/observability_solution/observability_shared/jest.config.js rename x-pack/{packages/observability/observability_utils/observability_utils_browser => solutions/observability/packages/utils_browser}/chart/utils.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_browser => solutions/observability/packages/utils_browser}/hooks/use_abort_controller.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_browser => solutions/observability/packages/utils_browser}/hooks/use_abortable_async.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_browser => solutions/observability/packages/utils_browser}/hooks/use_date_range.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_browser => solutions/observability/packages/utils_browser}/hooks/use_local_storage.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_browser => solutions/observability/packages/utils_browser}/hooks/use_theme.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_browser}/jest.config.js (76%) rename x-pack/{packages/observability/observability_utils/observability_utils_browser => solutions/observability/packages/utils_browser}/kibana.jsonc (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_browser => solutions/observability/packages/utils_browser}/package.json (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_browser => solutions/observability/packages/utils_browser}/tsconfig.json (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_browser => solutions/observability/packages/utils_browser}/utils/ui_settings/get_timezone.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/array/join_by_key.test.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/array/join_by_key.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/entities/get_entity_kuery.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/es/format_value_for_kql.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/es/queries/entity_query.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/es/queries/exclude_frozen_query.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/es/queries/exclude_tiers_query.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/es/queries/kql_query.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/es/queries/range_query.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/es/queries/term_query.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/format/integer.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_common}/jest.config.js (76%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/kibana.jsonc (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/llm/log_analysis/document_analysis.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/llm/log_analysis/highlight_patterns_from_regex.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/llm/log_analysis/merge_sample_documents_with_field_caps.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/llm/log_analysis/sort_and_truncate_analyzed_fields.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/llm/short_id_table.test.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/llm/short_id_table.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/ml/p_value_to_label.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/object/flatten_object.test.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/object/flatten_object.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/object/merge_plain_object.test.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/object/merge_plain_objects.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/object/unflatten_object.test.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/object/unflatten_object.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/package.json (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_common => solutions/observability/packages/utils_common}/tsconfig.json (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/entities/analyze_documents.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/entities/get_data_streams_for_entity.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/entities/get_entities_by_fuzzy_search.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/entities/get_log_patterns.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/entities/signals/get_alerts_for_entity.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/entities/signals/get_anomalies_for_entity.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/entities/signals/get_slos_for_entity.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/es/client/create_observability_es_client.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/es/esql_result_to_plain_objects.test.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/es/esql_result_to_plain_objects.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/es/queries/exclude_frozen_query.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/es/queries/kql_query.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/es/queries/range_query.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/es/queries/term_query.ts (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_browser => solutions/observability/packages/utils_server}/jest.config.js (74%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/kibana.jsonc (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/package.json (100%) rename x-pack/{packages/observability/observability_utils/observability_utils_server => solutions/observability/packages/utils_server}/tsconfig.json (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/.storybook/get_mock_context.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/.storybook/jest_setup.js (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/.storybook/main.js (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/.storybook/preview.js (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/.storybook/storybook_decorator.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/README.md (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/color_palette.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/embeddable_grouping.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/entity/entity_data_stream_types.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/entity/entity_types.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/entity/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/field_names/elasticsearch.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/field_names/synthetics.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/ilm_types.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/apm/service_entity_locator.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/apm/service_overview_locator.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/apm/transaction_details_by_name_locator.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/apm/transaction_details_by_trace_id_locator.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/entity_inventory/entity_inventory_locator.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/infra/asset_details_flyout_locator.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/infra/asset_details_locator.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/infra/hosts_locator.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/infra/inventory_locator.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/infra/locators.test.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/infra/metrics_explorer_locator.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/profiling/flamegraph_locator.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/profiling/stacktraces_locator.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/locators/profiling/topn_functions_locator.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/trigger_ids.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/utils/get_inspect_response.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/common/utils/unwrap_es_response.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/dev_docs/how_we_manage_dependencies.md (100%) create mode 100644 x-pack/solutions/observability/plugins/observability_shared/jest.config.js rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/kibana.jsonc (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/action_menu/action_menu.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/add_data_panel/add_data_panel.stories.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/add_data_panel/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/bottom_bar_actions/bottom_bar_actions.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/feature_feedback_button/feature_feedback_button.test.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/feature_feedback_button/feature_feedback_button.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/field_value_suggestions/__stories__/field_value_selection.stories.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/field_value_suggestions/field_value_combobox.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/field_value_suggestions/field_value_selection.test.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/field_value_suggestions/field_value_selection.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/field_value_suggestions/index.test.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/field_value_suggestions/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/field_value_suggestions/types.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/header_menu/header_menu_portal.test.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/header_menu/header_menu_portal.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/header_menu/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/load_when_in_view/get_load_when_in_view_lazy.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/load_when_in_view/load_when_in_view.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/navigation_warning_prompt/context.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/navigation_warning_prompt/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/navigation_warning_prompt/prompt.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/page_template/README.md (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/page_template/badge.png (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/page_template/helpers/navigation_registry.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/page_template/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/page_template/lazy_page_template.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/page_template/nav_name_with_badge.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/page_template/nav_name_with_beta_badge.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/page_template/page_template.png (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/page_template/page_template.test.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/page_template/page_template.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/page_template/search_bar_portal.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/profiling/embeddables/embeddable_flamegraph.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/profiling/embeddables/embeddable_functions.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/profiling/embeddables/embeddable_profiling_search_bar.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/profiling/embeddables/embeddable_stack_traces.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/profiling/embeddables/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/profiling/helpers/component_registry.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/profiling/profiling_empty_state.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/section/section.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/tags_list/tags_list.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/tags_list/tags_list_lazy.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/technical_preview_badge/technical_preview_badge.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/tour/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/tour/steps_config.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/components/tour/tour.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/contexts/inspector/inspector_context.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/contexts/inspector/use_inspector_context.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_breadcrumbs.test.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_breadcrumbs.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_chart_theme.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_control_panels_url_state.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_editable_settings.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_es_search.ts (98%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_fetcher.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_kibana_query_settings.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_kibana_space.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_kibana_ui_settings.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_link_props.test.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_link_props.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_prefix_path_with_basepath.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_query_params.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_quick_time_ranges.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_theme.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_time_zone.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_track_metric.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_url_state.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/hooks/use_values_list.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/images/profiling.png (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/infra/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/plugin.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/services/get_context_menu_items_from_actions.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/services/update_global_navigation.test.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/services/update_global_navigation.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/types.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/utils/cases_permissions.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/public/utils/date.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/scripts/storybook.js (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/tsconfig.json (93%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_shared/typings/common.ts (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 79a41f54e683c..6798ec6434c29 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -765,9 +765,6 @@ x-pack/packages/kbn-alerting-state-types @elastic/response-ops x-pack/packages/kbn-random-sampling @elastic/kibana-visualizations x-pack/packages/kbn-streams-schema @elastic/streams-program-team x-pack/packages/kbn-synthetics-private-location @elastic/obs-ux-management-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 x-pack/packages/security/api_key_management @elastic/kibana-security x-pack/packages/security/authorization_core @elastic/kibana-security @@ -910,7 +907,6 @@ x-pack/plugins/observability_solution/apm/ftr_e2e @elastic/obs-ux-infra_services x-pack/plugins/observability_solution/inventory @elastic/obs-ux-infra_services-team x-pack/plugins/observability_solution/inventory/e2e @elastic/obs-ux-infra_services-team x-pack/plugins/observability_solution/metrics_data_access @elastic/obs-ux-infra_services-team -x-pack/plugins/observability_solution/observability_shared @elastic/observability-ui x-pack/plugins/observability_solution/profiling @elastic/obs-ux-infra_services-team x-pack/plugins/observability_solution/profiling_data_access @elastic/obs-ux-infra_services-team x-pack/plugins/reporting @elastic/appex-sharedux @@ -942,6 +938,9 @@ x-pack/solutions/observability/packages/kbn-investigation-shared @elastic/obs-ux 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/synthetics_test_data @elastic/obs-ux-management-team +x-pack/solutions/observability/packages/utils_browser @elastic/observability-ui +x-pack/solutions/observability/packages/utils_common @elastic/observability-ui +x-pack/solutions/observability/packages/utils_server @elastic/observability-ui x-pack/solutions/observability/plugins/exploratory_view @elastic/obs-ux-management-team x-pack/solutions/observability/plugins/infra @elastic/obs-ux-logs-team @elastic/obs-ux-infra_services-team x-pack/solutions/observability/plugins/investigate @elastic/obs-ux-management-team @@ -953,6 +952,7 @@ x-pack/solutions/observability/plugins/observability_ai_assistant_management @el x-pack/solutions/observability/plugins/observability_logs_explorer @elastic/obs-ux-logs-team x-pack/solutions/observability/plugins/observability_onboarding @elastic/obs-ux-logs-team x-pack/solutions/observability/plugins/observability_onboarding/e2e @elastic/obs-ux-logs-team +x-pack/solutions/observability/plugins/observability_shared @elastic/observability-ui x-pack/solutions/observability/plugins/observability_solution/entities_data_access @elastic/obs-entities x-pack/solutions/observability/plugins/observability_solution/entity_manager_app @elastic/obs-entities x-pack/solutions/observability/plugins/serverless_observability @elastic/obs-ux-management-team @@ -1447,7 +1447,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /x-pack/test_serverless/**/test_suites/observability/config.ts @elastic/observability-ui # Observability onboarding tour -/x-pack/plugins/observability_solution/observability_shared/public/components/tour @elastic/appex-sharedux +/x-pack/solutions/observability/plugins/observability_shared/public/components/tour @elastic/appex-sharedux /x-pack/test/functional/apps/infra/tour.ts @elastic/appex-sharedux # Observability settings @@ -2578,7 +2578,7 @@ x-pack/platform/plugins/private/translations/translations x-pack/test/profiling_api_integration @elastic/obs-ux-infra_services-team # Observability shared profiling -x-pack/plugins/observability_solution/observability_shared/public/components/profiling @elastic/obs-ux-infra_services-team +x-pack/solutions/observability/plugins/observability_shared/public/components/profiling @elastic/obs-ux-infra_services-team # Shared UX /x-pack/test_serverless/api_integration/test_suites/common/favorites @elastic/appex-sharedux # Assigned per https://github.com/elastic/kibana/pull/200985 diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 0f3a56b2a363a..2e3f798e44982 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -764,7 +764,7 @@ Elastic. |This plugin provides an onboarding framework for observability solutions: Logs and APM. -|{kib-repo}blob/{branch}/x-pack/plugins/observability_solution/observability_shared/README.md[observabilityShared] +|{kib-repo}blob/{branch}/x-pack/solutions/observability/plugins/observability_shared/README.md[observabilityShared] |A plugin that contains components and utilities shared by all Observability plugins. diff --git a/package.json b/package.json index 03ef2f17fe63e..3b924923336fa 100644 --- a/package.json +++ b/package.json @@ -706,11 +706,11 @@ "@kbn/observability-logs-overview": "link:x-pack/platform/packages/shared/observability/logs_overview", "@kbn/observability-onboarding-plugin": "link:x-pack/solutions/observability/plugins/observability_onboarding", "@kbn/observability-plugin": "link:x-pack/solutions/observability/plugins/observability", - "@kbn/observability-shared-plugin": "link:x-pack/plugins/observability_solution/observability_shared", + "@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-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/observability-utils-browser": "link:x-pack/solutions/observability/packages/utils_browser", + "@kbn/observability-utils-common": "link:x-pack/solutions/observability/packages/utils_common", + "@kbn/observability-utils-server": "link:x-pack/solutions/observability/packages/utils_server", "@kbn/oidc-provider-plugin": "link:x-pack/test/security_api_integration/plugins/oidc_provider", "@kbn/open-telemetry-instrumented-plugin": "link:test/common/plugins/otel_metrics", "@kbn/openapi-common": "link:src/platform/packages/shared/kbn-openapi-common", diff --git a/packages/kbn-babel-preset/styled_components_files.js b/packages/kbn-babel-preset/styled_components_files.js index 11d238b00679a..b72eba6793f3f 100644 --- a/packages/kbn-babel-preset/styled_components_files.js +++ b/packages/kbn-babel-preset/styled_components_files.js @@ -17,9 +17,9 @@ module.exports = { /packages[\/\\]kbn-ui-shared-deps-src[\/\\]/, /src[\/\\]plugins[\/\\]kibana_react[\/\\]/, /x-pack[\/\\]platform[\/\\]packages[\/\\]shared[\/\\]kbn-elastic-assistant[\/\\]/, - /x-pack[\/\\]platform[\/\\]plugins[\/\\]shared[\/\\](fleet)[\/\\]/, - /x-pack[\/\\]plugins[\/\\]observability_solution[\/\\]observability_shared[\/\\]/, + /x-pack[\/\\]platform[\/\\]plugins[\/\\]shared[\/\\]fleet[\/\\]/, /x-pack[\/\\]plugins[\/\\]security_solution[\/\\]/, + /x-pack[\/\\]solutions[\/\\]observability[\/\\]plugins[\/\\]observability_shared[\/\\]/, /x-pack[\/\\]solutions[\/\\]observability[\/\\]plugins[\/\\]exploratory_view[\/\\]/, /x-pack[\/\\]solutions[\/\\]observability[\/\\]plugins[\/\\]observability[\/\\]/, /x-pack[\/\\]solutions[\/\\]observability[\/\\]plugins[\/\\]synthetics[\/\\]/, diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index 6e5d71b2175b5..7294c1960db0f 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -59,7 +59,7 @@ export const storybookAliases = { observability_ai_assistant_app: 'x-pack/solutions/observability/plugins/observability_ai_assistant_app/.storybook', observability_inventory: 'x-pack/plugins/observability_solution/inventory/.storybook', - observability_shared: 'x-pack/plugins/observability_solution/observability_shared/.storybook', + observability_shared: 'x-pack/solutions/observability/plugins/observability_shared/.storybook', observability_slo: 'x-pack/solutions/observability/plugins/slo/.storybook', presentation: 'src/platform/plugins/shared/presentation_util/storybook', random_sampling: 'x-pack/packages/kbn-random-sampling/.storybook', diff --git a/tsconfig.base.json b/tsconfig.base.json index f0968d3896a68..e3efe72b8a0af 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1348,16 +1348,16 @@ "@kbn/observability-onboarding-plugin/*": ["x-pack/solutions/observability/plugins/observability_onboarding/*"], "@kbn/observability-plugin": ["x-pack/solutions/observability/plugins/observability"], "@kbn/observability-plugin/*": ["x-pack/solutions/observability/plugins/observability/*"], - "@kbn/observability-shared-plugin": ["x-pack/plugins/observability_solution/observability_shared"], - "@kbn/observability-shared-plugin/*": ["x-pack/plugins/observability_solution/observability_shared/*"], + "@kbn/observability-shared-plugin": ["x-pack/solutions/observability/plugins/observability_shared"], + "@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-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"], - "@kbn/observability-utils-server/*": ["x-pack/packages/observability/observability_utils/observability_utils_server/*"], + "@kbn/observability-utils-browser": ["x-pack/solutions/observability/packages/utils_browser"], + "@kbn/observability-utils-browser/*": ["x-pack/solutions/observability/packages/utils_browser/*"], + "@kbn/observability-utils-common": ["x-pack/solutions/observability/packages/utils_common"], + "@kbn/observability-utils-common/*": ["x-pack/solutions/observability/packages/utils_common/*"], + "@kbn/observability-utils-server": ["x-pack/solutions/observability/packages/utils_server"], + "@kbn/observability-utils-server/*": ["x-pack/solutions/observability/packages/utils_server/*"], "@kbn/oidc-provider-plugin": ["x-pack/test/security_api_integration/plugins/oidc_provider"], "@kbn/oidc-provider-plugin/*": ["x-pack/test/security_api_integration/plugins/oidc_provider/*"], "@kbn/open-telemetry-instrumented-plugin": ["test/common/plugins/otel_metrics"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 9e54ef70f1132..1603e73e7edc1 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -109,7 +109,7 @@ "xpack.observabilityAiAssistantManagement": "solutions/observability/plugins/observability_ai_assistant_management", "xpack.observabilityLogsExplorer": "solutions/observability/plugins/observability_logs_explorer", "xpack.observability_onboarding": "solutions/observability/plugins/observability_onboarding", - "xpack.observabilityShared": "plugins/observability_solution/observability_shared", + "xpack.observabilityShared": "solutions/observability/plugins/observability_shared", "xpack.observabilityLogsOverview": [ "platform/packages/shared/observability/logs_overview/src/components" ], diff --git a/x-pack/plugins/observability_solution/observability_shared/jest.config.js b/x-pack/plugins/observability_solution/observability_shared/jest.config.js deleted file mode 100644 index 9151980b83c39..0000000000000 --- a/x-pack/plugins/observability_solution/observability_shared/jest.config.js +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/x-pack/plugins/observability_solution/observability_shared'], - setupFiles: [ - '/x-pack/plugins/observability_solution/observability_shared/.storybook/jest_setup.js', - ], - coverageDirectory: - '/target/kibana-coverage/jest/x-pack/plugins/observability_solution/observability_shared', - coverageReporters: ['text', 'html'], - collectCoverageFrom: [ - '/x-pack/plugins/observability_solution/observability_shared/{common,public,server}/**/*.{js,ts,tsx}', - ], -}; diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/chart/utils.ts b/x-pack/solutions/observability/packages/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/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/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/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/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/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/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/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/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/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/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/utils_browser/hooks/use_theme.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/jest.config.js b/x-pack/solutions/observability/packages/utils_browser/jest.config.js similarity index 76% rename from x-pack/packages/observability/observability_utils/observability_utils_common/jest.config.js rename to x-pack/solutions/observability/packages/utils_browser/jest.config.js index ee68881a5863b..3fa1852414d8d 100644 --- a/x-pack/packages/observability/observability_utils/observability_utils_common/jest.config.js +++ b/x-pack/solutions/observability/packages/utils_browser/jest.config.js @@ -8,5 +8,5 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', - roots: ['/x-pack/packages/observability/observability_utils/observability_utils_common'], + roots: ['/x-pack/solutions/observability/packages/utils_browser'], }; diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/kibana.jsonc b/x-pack/solutions/observability/packages/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/utils_browser/kibana.jsonc diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/package.json b/x-pack/solutions/observability/packages/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/utils_browser/package.json diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/tsconfig.json b/x-pack/solutions/observability/packages/utils_browser/tsconfig.json similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_browser/tsconfig.json rename to x-pack/solutions/observability/packages/utils_browser/tsconfig.json diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/utils/ui_settings/get_timezone.ts b/x-pack/solutions/observability/packages/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/utils_browser/utils/ui_settings/get_timezone.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/array/join_by_key.test.ts b/x-pack/solutions/observability/packages/utils_common/array/join_by_key.test.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/array/join_by_key.test.ts rename to x-pack/solutions/observability/packages/utils_common/array/join_by_key.test.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/array/join_by_key.ts b/x-pack/solutions/observability/packages/utils_common/array/join_by_key.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/array/join_by_key.ts rename to x-pack/solutions/observability/packages/utils_common/array/join_by_key.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/entities/get_entity_kuery.ts b/x-pack/solutions/observability/packages/utils_common/entities/get_entity_kuery.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/entities/get_entity_kuery.ts rename to x-pack/solutions/observability/packages/utils_common/entities/get_entity_kuery.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/es/format_value_for_kql.ts b/x-pack/solutions/observability/packages/utils_common/es/format_value_for_kql.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/es/format_value_for_kql.ts rename to x-pack/solutions/observability/packages/utils_common/es/format_value_for_kql.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/es/queries/entity_query.ts b/x-pack/solutions/observability/packages/utils_common/es/queries/entity_query.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/es/queries/entity_query.ts rename to x-pack/solutions/observability/packages/utils_common/es/queries/entity_query.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/es/queries/exclude_frozen_query.ts b/x-pack/solutions/observability/packages/utils_common/es/queries/exclude_frozen_query.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/es/queries/exclude_frozen_query.ts rename to x-pack/solutions/observability/packages/utils_common/es/queries/exclude_frozen_query.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/es/queries/exclude_tiers_query.ts b/x-pack/solutions/observability/packages/utils_common/es/queries/exclude_tiers_query.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/es/queries/exclude_tiers_query.ts rename to x-pack/solutions/observability/packages/utils_common/es/queries/exclude_tiers_query.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/es/queries/kql_query.ts b/x-pack/solutions/observability/packages/utils_common/es/queries/kql_query.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/es/queries/kql_query.ts rename to x-pack/solutions/observability/packages/utils_common/es/queries/kql_query.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/es/queries/range_query.ts b/x-pack/solutions/observability/packages/utils_common/es/queries/range_query.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/es/queries/range_query.ts rename to x-pack/solutions/observability/packages/utils_common/es/queries/range_query.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/es/queries/term_query.ts b/x-pack/solutions/observability/packages/utils_common/es/queries/term_query.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/es/queries/term_query.ts rename to x-pack/solutions/observability/packages/utils_common/es/queries/term_query.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/format/integer.ts b/x-pack/solutions/observability/packages/utils_common/format/integer.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/format/integer.ts rename to x-pack/solutions/observability/packages/utils_common/format/integer.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/jest.config.js b/x-pack/solutions/observability/packages/utils_common/jest.config.js similarity index 76% rename from x-pack/packages/observability/observability_utils/observability_utils_server/jest.config.js rename to x-pack/solutions/observability/packages/utils_common/jest.config.js index 5a52de35fcd06..ab3e800cf586b 100644 --- a/x-pack/packages/observability/observability_utils/observability_utils_server/jest.config.js +++ b/x-pack/solutions/observability/packages/utils_common/jest.config.js @@ -8,5 +8,5 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', - roots: ['/x-pack/packages/observability/observability_utils/observability_utils_server'], + roots: ['/x-pack/solutions/observability/packages/utils_common'], }; diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/kibana.jsonc b/x-pack/solutions/observability/packages/utils_common/kibana.jsonc similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/kibana.jsonc rename to x-pack/solutions/observability/packages/utils_common/kibana.jsonc diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/llm/log_analysis/document_analysis.ts b/x-pack/solutions/observability/packages/utils_common/llm/log_analysis/document_analysis.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/llm/log_analysis/document_analysis.ts rename to x-pack/solutions/observability/packages/utils_common/llm/log_analysis/document_analysis.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/llm/log_analysis/highlight_patterns_from_regex.ts b/x-pack/solutions/observability/packages/utils_common/llm/log_analysis/highlight_patterns_from_regex.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/llm/log_analysis/highlight_patterns_from_regex.ts rename to x-pack/solutions/observability/packages/utils_common/llm/log_analysis/highlight_patterns_from_regex.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/llm/log_analysis/merge_sample_documents_with_field_caps.ts b/x-pack/solutions/observability/packages/utils_common/llm/log_analysis/merge_sample_documents_with_field_caps.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/llm/log_analysis/merge_sample_documents_with_field_caps.ts rename to x-pack/solutions/observability/packages/utils_common/llm/log_analysis/merge_sample_documents_with_field_caps.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/llm/log_analysis/sort_and_truncate_analyzed_fields.ts b/x-pack/solutions/observability/packages/utils_common/llm/log_analysis/sort_and_truncate_analyzed_fields.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/llm/log_analysis/sort_and_truncate_analyzed_fields.ts rename to x-pack/solutions/observability/packages/utils_common/llm/log_analysis/sort_and_truncate_analyzed_fields.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/llm/short_id_table.test.ts b/x-pack/solutions/observability/packages/utils_common/llm/short_id_table.test.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/llm/short_id_table.test.ts rename to x-pack/solutions/observability/packages/utils_common/llm/short_id_table.test.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/llm/short_id_table.ts b/x-pack/solutions/observability/packages/utils_common/llm/short_id_table.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/llm/short_id_table.ts rename to x-pack/solutions/observability/packages/utils_common/llm/short_id_table.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/ml/p_value_to_label.ts b/x-pack/solutions/observability/packages/utils_common/ml/p_value_to_label.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/ml/p_value_to_label.ts rename to x-pack/solutions/observability/packages/utils_common/ml/p_value_to_label.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/object/flatten_object.test.ts b/x-pack/solutions/observability/packages/utils_common/object/flatten_object.test.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/object/flatten_object.test.ts rename to x-pack/solutions/observability/packages/utils_common/object/flatten_object.test.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/object/flatten_object.ts b/x-pack/solutions/observability/packages/utils_common/object/flatten_object.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/object/flatten_object.ts rename to x-pack/solutions/observability/packages/utils_common/object/flatten_object.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/object/merge_plain_object.test.ts b/x-pack/solutions/observability/packages/utils_common/object/merge_plain_object.test.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/object/merge_plain_object.test.ts rename to x-pack/solutions/observability/packages/utils_common/object/merge_plain_object.test.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/object/merge_plain_objects.ts b/x-pack/solutions/observability/packages/utils_common/object/merge_plain_objects.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/object/merge_plain_objects.ts rename to x-pack/solutions/observability/packages/utils_common/object/merge_plain_objects.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/object/unflatten_object.test.ts b/x-pack/solutions/observability/packages/utils_common/object/unflatten_object.test.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/object/unflatten_object.test.ts rename to x-pack/solutions/observability/packages/utils_common/object/unflatten_object.test.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/object/unflatten_object.ts b/x-pack/solutions/observability/packages/utils_common/object/unflatten_object.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/object/unflatten_object.ts rename to x-pack/solutions/observability/packages/utils_common/object/unflatten_object.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/package.json b/x-pack/solutions/observability/packages/utils_common/package.json similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/package.json rename to x-pack/solutions/observability/packages/utils_common/package.json diff --git a/x-pack/packages/observability/observability_utils/observability_utils_common/tsconfig.json b/x-pack/solutions/observability/packages/utils_common/tsconfig.json similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_common/tsconfig.json rename to x-pack/solutions/observability/packages/utils_common/tsconfig.json diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/entities/analyze_documents.ts b/x-pack/solutions/observability/packages/utils_server/entities/analyze_documents.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/entities/analyze_documents.ts rename to x-pack/solutions/observability/packages/utils_server/entities/analyze_documents.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/entities/get_data_streams_for_entity.ts b/x-pack/solutions/observability/packages/utils_server/entities/get_data_streams_for_entity.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/entities/get_data_streams_for_entity.ts rename to x-pack/solutions/observability/packages/utils_server/entities/get_data_streams_for_entity.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/entities/get_entities_by_fuzzy_search.ts b/x-pack/solutions/observability/packages/utils_server/entities/get_entities_by_fuzzy_search.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/entities/get_entities_by_fuzzy_search.ts rename to x-pack/solutions/observability/packages/utils_server/entities/get_entities_by_fuzzy_search.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/entities/get_log_patterns.ts b/x-pack/solutions/observability/packages/utils_server/entities/get_log_patterns.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/entities/get_log_patterns.ts rename to x-pack/solutions/observability/packages/utils_server/entities/get_log_patterns.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/entities/signals/get_alerts_for_entity.ts b/x-pack/solutions/observability/packages/utils_server/entities/signals/get_alerts_for_entity.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/entities/signals/get_alerts_for_entity.ts rename to x-pack/solutions/observability/packages/utils_server/entities/signals/get_alerts_for_entity.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/entities/signals/get_anomalies_for_entity.ts b/x-pack/solutions/observability/packages/utils_server/entities/signals/get_anomalies_for_entity.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/entities/signals/get_anomalies_for_entity.ts rename to x-pack/solutions/observability/packages/utils_server/entities/signals/get_anomalies_for_entity.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/entities/signals/get_slos_for_entity.ts b/x-pack/solutions/observability/packages/utils_server/entities/signals/get_slos_for_entity.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/entities/signals/get_slos_for_entity.ts rename to x-pack/solutions/observability/packages/utils_server/entities/signals/get_slos_for_entity.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/es/client/create_observability_es_client.ts b/x-pack/solutions/observability/packages/utils_server/es/client/create_observability_es_client.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/es/client/create_observability_es_client.ts rename to x-pack/solutions/observability/packages/utils_server/es/client/create_observability_es_client.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/es/esql_result_to_plain_objects.test.ts b/x-pack/solutions/observability/packages/utils_server/es/esql_result_to_plain_objects.test.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/es/esql_result_to_plain_objects.test.ts rename to x-pack/solutions/observability/packages/utils_server/es/esql_result_to_plain_objects.test.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/es/esql_result_to_plain_objects.ts b/x-pack/solutions/observability/packages/utils_server/es/esql_result_to_plain_objects.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/es/esql_result_to_plain_objects.ts rename to x-pack/solutions/observability/packages/utils_server/es/esql_result_to_plain_objects.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/es/queries/exclude_frozen_query.ts b/x-pack/solutions/observability/packages/utils_server/es/queries/exclude_frozen_query.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/es/queries/exclude_frozen_query.ts rename to x-pack/solutions/observability/packages/utils_server/es/queries/exclude_frozen_query.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/es/queries/kql_query.ts b/x-pack/solutions/observability/packages/utils_server/es/queries/kql_query.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/es/queries/kql_query.ts rename to x-pack/solutions/observability/packages/utils_server/es/queries/kql_query.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/es/queries/range_query.ts b/x-pack/solutions/observability/packages/utils_server/es/queries/range_query.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/es/queries/range_query.ts rename to x-pack/solutions/observability/packages/utils_server/es/queries/range_query.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/es/queries/term_query.ts b/x-pack/solutions/observability/packages/utils_server/es/queries/term_query.ts similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/es/queries/term_query.ts rename to x-pack/solutions/observability/packages/utils_server/es/queries/term_query.ts diff --git a/x-pack/packages/observability/observability_utils/observability_utils_browser/jest.config.js b/x-pack/solutions/observability/packages/utils_server/jest.config.js similarity index 74% rename from x-pack/packages/observability/observability_utils/observability_utils_browser/jest.config.js rename to x-pack/solutions/observability/packages/utils_server/jest.config.js index 33358c221fa1f..ed77899c0323a 100644 --- a/x-pack/packages/observability/observability_utils/observability_utils_browser/jest.config.js +++ b/x-pack/solutions/observability/packages/utils_server/jest.config.js @@ -8,7 +8,5 @@ module.exports = { preset: '@kbn/test', rootDir: '../../../../..', - roots: [ - '/x-pack/packages/observability/observability_utils/observability_utils_browser', - ], + roots: ['/x-pack/solutions/observability/packages/utils_server'], }; diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/kibana.jsonc b/x-pack/solutions/observability/packages/utils_server/kibana.jsonc similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/kibana.jsonc rename to x-pack/solutions/observability/packages/utils_server/kibana.jsonc diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/package.json b/x-pack/solutions/observability/packages/utils_server/package.json similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/package.json rename to x-pack/solutions/observability/packages/utils_server/package.json diff --git a/x-pack/packages/observability/observability_utils/observability_utils_server/tsconfig.json b/x-pack/solutions/observability/packages/utils_server/tsconfig.json similarity index 100% rename from x-pack/packages/observability/observability_utils/observability_utils_server/tsconfig.json rename to x-pack/solutions/observability/packages/utils_server/tsconfig.json diff --git a/x-pack/plugins/observability_solution/observability_shared/.storybook/get_mock_context.tsx b/x-pack/solutions/observability/plugins/observability_shared/.storybook/get_mock_context.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/.storybook/get_mock_context.tsx rename to x-pack/solutions/observability/plugins/observability_shared/.storybook/get_mock_context.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/.storybook/jest_setup.js b/x-pack/solutions/observability/plugins/observability_shared/.storybook/jest_setup.js similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/.storybook/jest_setup.js rename to x-pack/solutions/observability/plugins/observability_shared/.storybook/jest_setup.js diff --git a/x-pack/plugins/observability_solution/observability_shared/.storybook/main.js b/x-pack/solutions/observability/plugins/observability_shared/.storybook/main.js similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/.storybook/main.js rename to x-pack/solutions/observability/plugins/observability_shared/.storybook/main.js diff --git a/x-pack/plugins/observability_solution/observability_shared/.storybook/preview.js b/x-pack/solutions/observability/plugins/observability_shared/.storybook/preview.js similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/.storybook/preview.js rename to x-pack/solutions/observability/plugins/observability_shared/.storybook/preview.js diff --git a/x-pack/plugins/observability_solution/observability_shared/.storybook/storybook_decorator.tsx b/x-pack/solutions/observability/plugins/observability_shared/.storybook/storybook_decorator.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/.storybook/storybook_decorator.tsx rename to x-pack/solutions/observability/plugins/observability_shared/.storybook/storybook_decorator.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/README.md b/x-pack/solutions/observability/plugins/observability_shared/README.md similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/README.md rename to x-pack/solutions/observability/plugins/observability_shared/README.md diff --git a/x-pack/plugins/observability_solution/observability_shared/common/color_palette.ts b/x-pack/solutions/observability/plugins/observability_shared/common/color_palette.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/color_palette.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/color_palette.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/embeddable_grouping.ts b/x-pack/solutions/observability/plugins/observability_shared/common/embeddable_grouping.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/embeddable_grouping.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/embeddable_grouping.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/entity/entity_data_stream_types.ts b/x-pack/solutions/observability/plugins/observability_shared/common/entity/entity_data_stream_types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/entity/entity_data_stream_types.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/entity/entity_data_stream_types.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/entity/entity_types.ts b/x-pack/solutions/observability/plugins/observability_shared/common/entity/entity_types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/entity/entity_types.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/entity/entity_types.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/entity/index.ts b/x-pack/solutions/observability/plugins/observability_shared/common/entity/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/entity/index.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/entity/index.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/field_names/elasticsearch.ts b/x-pack/solutions/observability/plugins/observability_shared/common/field_names/elasticsearch.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/field_names/elasticsearch.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/field_names/elasticsearch.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/field_names/synthetics.ts b/x-pack/solutions/observability/plugins/observability_shared/common/field_names/synthetics.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/field_names/synthetics.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/field_names/synthetics.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/ilm_types.ts b/x-pack/solutions/observability/plugins/observability_shared/common/ilm_types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/ilm_types.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/ilm_types.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/index.ts b/x-pack/solutions/observability/plugins/observability_shared/common/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/index.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/index.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/apm/service_entity_locator.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/apm/service_entity_locator.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/apm/service_entity_locator.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/apm/service_entity_locator.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/apm/service_overview_locator.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/apm/service_overview_locator.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/apm/service_overview_locator.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/apm/service_overview_locator.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/apm/transaction_details_by_name_locator.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/apm/transaction_details_by_name_locator.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/apm/transaction_details_by_name_locator.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/apm/transaction_details_by_name_locator.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/apm/transaction_details_by_trace_id_locator.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/apm/transaction_details_by_trace_id_locator.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/apm/transaction_details_by_trace_id_locator.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/apm/transaction_details_by_trace_id_locator.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/entity_inventory/entity_inventory_locator.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/entity_inventory/entity_inventory_locator.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/entity_inventory/entity_inventory_locator.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/entity_inventory/entity_inventory_locator.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/index.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/index.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/index.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/infra/asset_details_flyout_locator.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/infra/asset_details_flyout_locator.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/infra/asset_details_flyout_locator.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/infra/asset_details_flyout_locator.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/infra/asset_details_locator.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/infra/asset_details_locator.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/infra/asset_details_locator.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/infra/asset_details_locator.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/infra/hosts_locator.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/infra/hosts_locator.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/infra/hosts_locator.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/infra/hosts_locator.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/infra/inventory_locator.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/infra/inventory_locator.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/infra/inventory_locator.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/infra/inventory_locator.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/infra/locators.test.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/infra/locators.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/infra/locators.test.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/infra/locators.test.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/infra/metrics_explorer_locator.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/infra/metrics_explorer_locator.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/infra/metrics_explorer_locator.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/infra/metrics_explorer_locator.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/profiling/flamegraph_locator.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/profiling/flamegraph_locator.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/profiling/flamegraph_locator.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/profiling/flamegraph_locator.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/profiling/stacktraces_locator.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/profiling/stacktraces_locator.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/profiling/stacktraces_locator.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/profiling/stacktraces_locator.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/locators/profiling/topn_functions_locator.ts b/x-pack/solutions/observability/plugins/observability_shared/common/locators/profiling/topn_functions_locator.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/locators/profiling/topn_functions_locator.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/locators/profiling/topn_functions_locator.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/trigger_ids.ts b/x-pack/solutions/observability/plugins/observability_shared/common/trigger_ids.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/trigger_ids.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/trigger_ids.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/utils/get_inspect_response.ts b/x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/utils/get_inspect_response.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/common/utils/unwrap_es_response.ts b/x-pack/solutions/observability/plugins/observability_shared/common/utils/unwrap_es_response.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/common/utils/unwrap_es_response.ts rename to x-pack/solutions/observability/plugins/observability_shared/common/utils/unwrap_es_response.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/dev_docs/how_we_manage_dependencies.md b/x-pack/solutions/observability/plugins/observability_shared/dev_docs/how_we_manage_dependencies.md similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/dev_docs/how_we_manage_dependencies.md rename to x-pack/solutions/observability/plugins/observability_shared/dev_docs/how_we_manage_dependencies.md diff --git a/x-pack/solutions/observability/plugins/observability_shared/jest.config.js b/x-pack/solutions/observability/plugins/observability_shared/jest.config.js new file mode 100644 index 0000000000000..eb01ca09e9ab4 --- /dev/null +++ b/x-pack/solutions/observability/plugins/observability_shared/jest.config.js @@ -0,0 +1,21 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/x-pack/solutions/observability/plugins/observability_shared'], + setupFiles: [ + '/x-pack/solutions/observability/plugins/observability_shared/.storybook/jest_setup.js', + ], + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/solutions/observability/plugins/observability_shared', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/x-pack/solutions/observability/plugins/observability_shared/{common,public,server}/**/*.{js,ts,tsx}', + ], +}; diff --git a/x-pack/plugins/observability_solution/observability_shared/kibana.jsonc b/x-pack/solutions/observability/plugins/observability_shared/kibana.jsonc similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/kibana.jsonc rename to x-pack/solutions/observability/plugins/observability_shared/kibana.jsonc diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/action_menu/action_menu.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/action_menu/action_menu.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/action_menu/action_menu.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/action_menu/action_menu.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/add_data_panel/add_data_panel.stories.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/add_data_panel/add_data_panel.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/add_data_panel/add_data_panel.stories.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/add_data_panel/add_data_panel.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/add_data_panel/index.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/add_data_panel/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/add_data_panel/index.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/add_data_panel/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/bottom_bar_actions/bottom_bar_actions.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/bottom_bar_actions/bottom_bar_actions.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/bottom_bar_actions/bottom_bar_actions.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/bottom_bar_actions/bottom_bar_actions.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/feature_feedback_button/feature_feedback_button.test.ts b/x-pack/solutions/observability/plugins/observability_shared/public/components/feature_feedback_button/feature_feedback_button.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/feature_feedback_button/feature_feedback_button.test.ts rename to x-pack/solutions/observability/plugins/observability_shared/public/components/feature_feedback_button/feature_feedback_button.test.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/feature_feedback_button/feature_feedback_button.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/feature_feedback_button/feature_feedback_button.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/feature_feedback_button/feature_feedback_button.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/feature_feedback_button/feature_feedback_button.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/__stories__/field_value_selection.stories.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/__stories__/field_value_selection.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/__stories__/field_value_selection.stories.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/__stories__/field_value_selection.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/field_value_combobox.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_combobox.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/field_value_combobox.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_combobox.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/field_value_selection.test.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_selection.test.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/field_value_selection.test.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_selection.test.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/field_value_selection.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_selection.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/field_value_selection.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/field_value_selection.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/index.test.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/index.test.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/index.test.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/index.test.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/index.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/index.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/types.ts b/x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/field_value_suggestions/types.ts rename to x-pack/solutions/observability/plugins/observability_shared/public/components/field_value_suggestions/types.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/header_menu/header_menu_portal.test.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/header_menu/header_menu_portal.test.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/header_menu/header_menu_portal.test.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/header_menu/header_menu_portal.test.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/header_menu/header_menu_portal.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/header_menu/header_menu_portal.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/header_menu/header_menu_portal.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/header_menu/header_menu_portal.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/header_menu/index.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/header_menu/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/header_menu/index.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/header_menu/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/index.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/index.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/load_when_in_view/get_load_when_in_view_lazy.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/load_when_in_view/get_load_when_in_view_lazy.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/load_when_in_view/get_load_when_in_view_lazy.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/load_when_in_view/get_load_when_in_view_lazy.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/load_when_in_view/load_when_in_view.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/load_when_in_view/load_when_in_view.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/load_when_in_view/load_when_in_view.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/load_when_in_view/load_when_in_view.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/navigation_warning_prompt/context.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/navigation_warning_prompt/context.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/navigation_warning_prompt/context.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/navigation_warning_prompt/context.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/navigation_warning_prompt/index.ts b/x-pack/solutions/observability/plugins/observability_shared/public/components/navigation_warning_prompt/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/navigation_warning_prompt/index.ts rename to x-pack/solutions/observability/plugins/observability_shared/public/components/navigation_warning_prompt/index.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/navigation_warning_prompt/prompt.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/navigation_warning_prompt/prompt.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/navigation_warning_prompt/prompt.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/navigation_warning_prompt/prompt.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/page_template/README.md b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/README.md similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/page_template/README.md rename to x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/README.md diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/page_template/badge.png b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/badge.png similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/page_template/badge.png rename to x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/badge.png diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/page_template/helpers/navigation_registry.ts b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/helpers/navigation_registry.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/page_template/helpers/navigation_registry.ts rename to x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/helpers/navigation_registry.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/page_template/index.ts b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/page_template/index.ts rename to x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/index.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/page_template/lazy_page_template.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/lazy_page_template.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/page_template/lazy_page_template.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/lazy_page_template.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/page_template/nav_name_with_badge.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_badge.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/page_template/nav_name_with_badge.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_badge.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/page_template/nav_name_with_beta_badge.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_beta_badge.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/page_template/nav_name_with_beta_badge.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/nav_name_with_beta_badge.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/page_template/page_template.png b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.png similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/page_template/page_template.png rename to x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.png diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/page_template/page_template.test.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.test.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/page_template/page_template.test.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.test.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/page_template/page_template.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/page_template/page_template.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/page_template.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/page_template/search_bar_portal.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/search_bar_portal.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/page_template/search_bar_portal.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/page_template/search_bar_portal.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/profiling/embeddables/embeddable_flamegraph.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/embeddables/embeddable_flamegraph.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/profiling/embeddables/embeddable_flamegraph.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/embeddables/embeddable_flamegraph.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/profiling/embeddables/embeddable_functions.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/embeddables/embeddable_functions.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/profiling/embeddables/embeddable_functions.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/embeddables/embeddable_functions.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/profiling/embeddables/embeddable_profiling_search_bar.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/embeddables/embeddable_profiling_search_bar.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/profiling/embeddables/embeddable_profiling_search_bar.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/embeddables/embeddable_profiling_search_bar.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/profiling/embeddables/embeddable_stack_traces.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/embeddables/embeddable_stack_traces.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/profiling/embeddables/embeddable_stack_traces.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/embeddables/embeddable_stack_traces.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/profiling/embeddables/index.ts b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/embeddables/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/profiling/embeddables/index.ts rename to x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/embeddables/index.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/profiling/helpers/component_registry.ts b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/helpers/component_registry.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/profiling/helpers/component_registry.ts rename to x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/helpers/component_registry.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/profiling/profiling_empty_state.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/profiling_empty_state.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/profiling/profiling_empty_state.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/profiling/profiling_empty_state.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/section/section.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/section/section.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/section/section.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/section/section.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/tags_list/tags_list.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/tags_list/tags_list.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/tags_list/tags_list.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/tags_list/tags_list.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/tags_list/tags_list_lazy.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/tags_list/tags_list_lazy.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/tags_list/tags_list_lazy.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/tags_list/tags_list_lazy.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/technical_preview_badge/technical_preview_badge.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/technical_preview_badge/technical_preview_badge.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/technical_preview_badge/technical_preview_badge.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/technical_preview_badge/technical_preview_badge.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/tour/index.ts b/x-pack/solutions/observability/plugins/observability_shared/public/components/tour/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/tour/index.ts rename to x-pack/solutions/observability/plugins/observability_shared/public/components/tour/index.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/tour/steps_config.ts b/x-pack/solutions/observability/plugins/observability_shared/public/components/tour/steps_config.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/tour/steps_config.ts rename to x-pack/solutions/observability/plugins/observability_shared/public/components/tour/steps_config.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/public/components/tour/tour.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/components/tour/tour.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/components/tour/tour.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/components/tour/tour.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/contexts/inspector/inspector_context.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/contexts/inspector/inspector_context.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/contexts/inspector/inspector_context.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/contexts/inspector/inspector_context.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/contexts/inspector/use_inspector_context.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/contexts/inspector/use_inspector_context.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/contexts/inspector/use_inspector_context.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/contexts/inspector/use_inspector_context.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/hooks/use_breadcrumbs.test.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_breadcrumbs.test.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/hooks/use_breadcrumbs.test.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_breadcrumbs.test.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/hooks/use_breadcrumbs.ts b/x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_breadcrumbs.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/hooks/use_breadcrumbs.ts rename to x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_breadcrumbs.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/public/hooks/use_chart_theme.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_chart_theme.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/hooks/use_chart_theme.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_chart_theme.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/hooks/use_control_panels_url_state.ts b/x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_control_panels_url_state.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/hooks/use_control_panels_url_state.ts rename to x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_control_panels_url_state.ts diff --git a/x-pack/plugins/observability_solution/observability_shared/public/hooks/use_editable_settings.tsx b/x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_editable_settings.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_shared/public/hooks/use_editable_settings.tsx rename to x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_editable_settings.tsx diff --git a/x-pack/plugins/observability_solution/observability_shared/public/hooks/use_es_search.ts b/x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_es_search.ts similarity index 98% rename from x-pack/plugins/observability_solution/observability_shared/public/hooks/use_es_search.ts rename to x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_es_search.ts index 1560df88c7873..6baa8f87ddab9 100644 --- a/x-pack/plugins/observability_solution/observability_shared/public/hooks/use_es_search.ts +++ b/x-pack/solutions/observability/plugins/observability_shared/public/hooks/use_es_search.ts @@ -110,7 +110,6 @@ export const useEsSearch =