From 6b30bee068608ba9d7e61bbcc55c27065d9a1202 Mon Sep 17 00:00:00 2001 From: Eric Wei Date: Thu, 14 Apr 2022 10:09:26 -0700 Subject: [PATCH] Event analytics jest tests (#651) * Bump prismjs from 1.25.0 to 1.27.0 in /dashboards-observability (#508) (#574) Bumps [prismjs](https://github.com/PrismJS/prism) from 1.25.0 to 1.27.0. - [Release notes](https://github.com/PrismJS/prism/releases) - [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md) - [Commits](https://github.com/PrismJS/prism/compare/v1.25.0...v1.27.0) --- updated-dependencies: - dependency-name: prismjs dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit b4f491a16f81725db6d63f604a3020e5b89dd720) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * change to support java 8 in compile and runtime (#575) (#576) Signed-off-by: Zhongnan Su (cherry picked from commit 5c43e9dac336b37fa4f6f002709e0965015383aa) Co-authored-by: Zhongnan Su * Add 1.3.0 release notes (#580) (#582) Signed-off-by: Eugene Lee * restructure event analytics folders Signed-off-by: Eric Wei * jest tests Signed-off-by: Eric Wei Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhongnan Su --- .../public/components/app.tsx | 2 +- .../components/application.tsx | 2 +- .../application_analytics/helpers/utils.tsx | 10 +- .../components/common/search/search.tsx | 2 +- .../__snapshots__/no_results.test.tsx.snap | 0 .../__tests__/no_results.test.tsx | 2 +- .../__snapshots__/data_grid.test.tsx.snap | 0 .../explorer/__tests__/data_grid.test.tsx | 6 +- .../__snapshots__/doc_viewer.test.tsx.snap} | 0 .../doc_viewer_row.test.tsx.snap} | 0 .../__tests__/doc_viewer.test.tsx} | 0 .../__tests__/doc_viewer_row.test.tsx} | 0 .../explorer/events_views}/data_grid.scss | 0 .../explorer/events_views}/data_grid.tsx | 10 +- .../detail_table/doc_detail_table.tsx} | 0 .../detail_table/doc_detail_title.tsx} | 0 .../events_views/detail_table}/table_row.tsx | 32 +- .../detail_table}/table_row_btn_collapse.tsx | 0 .../table_row_icon_no_mapping.tsx | 0 .../table_row_icon_underscore.tsx | 0 .../explorer/events_views}/docView.scss | 0 .../explorer/events_views}/docViewRow.tsx | 10 +- .../explorer/events_views}/docViewer.tsx | 8 +- .../explorer/events_views}/doc_flyout.tsx | 14 +- .../explorer/events_views}/index.ts | 0 .../json_code_block.test.tsx.snap | 0 .../__tests__/json_code_block.test.tsx | 0 .../json_code_block/json_code_block.tsx | 0 .../events_views}/surrounding_flyout.tsx | 12 +- .../events_views}/trace_block/trace_block.tsx | 10 +- .../explorer/explorer.scss | 0 .../explorer/explorer.tsx | 40 +- .../__snapshots__/hits_counter.test.tsx.snap | 0 .../__tests__/hits_counter.test.tsx | 0 .../explorer/hits_counter/hits_counter.tsx | 2 +- .../explorer/hits_counter/index.ts | 0 .../explorer/log_explorer.scss | 0 .../explorer/log_explorer.tsx | 12 +- .../explorer/no_results.tsx | 0 .../__snapshots__/save_panel.test.tsx.snap | 0 .../save_panel/__tests__/save_panel.test.tsx | 6 +- .../explorer/save_panel/index.ts | 0 .../explorer/save_panel/save_panel.tsx | 2 +- .../__snapshots__/field.test.tsx.snap | 0 .../__snapshots__/sidebar.test.tsx.snap | 0 .../explorer/sidebar/__tests__/field.test.tsx | 2 +- .../sidebar/__tests__/sidebar.test.tsx | 4 +- .../explorer/sidebar/field.tsx | 6 +- .../explorer/sidebar/field_insights.tsx | 4 +- .../explorer/sidebar/index.ts | 0 .../explorer/sidebar/sidebar.scss | 0 .../explorer/sidebar/sidebar.tsx | 2 +- .../timechart_header.test.tsx.snap | 11 +- .../__tests__/timechart_header.test.tsx | 4 +- .../explorer/timechart_header/index.ts | 0 .../timechart_header/timechart_header.tsx | 0 .../explorer/visualizations/_mixins.scss | 0 .../explorer/visualizations/_variables.scss | 0 .../explorer/visualizations/app.scss | 0 .../__snapshots__/config_panel.test.tsx.snap | 6180 +++++++++++++++++ .../__tests__/config_panel.test.tsx | 52 + .../config_panel/config_panel.scss | 0 .../config_panel/config_panel.tsx | 17 +- .../config_panel/config_panel_footer.tsx} | 1 - .../config_controls/config_chart_options.tsx | 2 +- .../config_controls/config_data_links.tsx | 0 .../config_controls/config_gauge_options.tsx | 6 +- .../config_controls/config_panel_item.tsx} | 0 .../config_controls/config_panel_options.tsx | 0 .../config_controls/config_text.tsx | 0 .../config_controls/config_thresholds.tsx | 2 +- .../config_controls/config_value_options.tsx | 2 +- .../config_visualization_selector.tsx | 0 .../config_panes}/config_controls/index.ts | 0 .../config_panes}/default_vis_editor.tsx | 0 .../config_panes/json_editor.tsx} | 0 .../visualizations/config_panel/index.ts | 0 .../count_distribution.test.tsx.snap | 0 .../__tests__/count_distribution.test.tsx | 2 +- .../count_distribution/count_distribution.tsx | 4 +- .../count_distribution/index.ts | 0 .../explorer/visualizations/index.tsx | 4 +- .../shared_components.test.tsx.snap | 0 .../__tests__/shared_components.test.tsx | 2 +- .../shared_components/empty_placeholder.tsx | 0 .../visualizations/shared_components/index.ts | 0 .../plotly_viz_editor/index.tsx | 0 .../plotly_viz_editor/plotly_actions.tsx | 0 .../plotly_viz_editor/plotly_editor.scss | 0 .../plotly_viz_editor/plotly_vis.scss | 0 .../plotly_viz_editor/plotly_viz_editor.tsx | 0 .../shared_components/toolbar_button.scss | 0 .../shared_components/toolbar_button.tsx | 0 .../default.data.spec.hjson | 0 .../default.layout.spec.hjson | 0 .../visualization_specs/default_spec.ts | 0 .../visualizations/workspace_panel/index.ts | 0 .../workspace_panel/workspace_panel.scss | 0 .../workspace_panel/workspace_panel.tsx | 6 +- .../saved_query_table.test.tsx.snap | 0 .../__tests__/saved_query_table.test.tsx | 2 +- .../home}/home.scss | 0 .../home}/home.tsx | 34 +- .../home/saved_objects_table.tsx} | 0 .../hooks/index.ts | 0 .../hooks/use_fetch_events.ts | 8 +- .../hooks/use_fetch_visualizations.ts | 10 +- .../hooks/use_tab_context.ts | 0 .../index.tsx} | 4 +- .../redux}/reducers/fetch_reducers.ts | 0 .../redux}/reducers/index.ts | 0 .../redux}/reducers/query_reducers.ts | 0 .../redux}/slices/count_distribution_slice.ts | 4 +- .../redux}/slices/field_slice.ts | 6 +- .../redux}/slices/query_result_slice.ts | 4 +- .../redux}/slices/query_slice.ts | 4 +- .../redux}/slices/query_tab_slice.ts | 4 +- .../redux}/slices/visualization_slice.ts | 4 +- .../slices/viualization_config_slice.ts | 4 +- .../utils/index.tsx | 0 .../utils/utils.tsx | 2 +- .../explorer/__tests__/explorer.test.tsx | 54 - .../docTable/detailTable/table_helper.test.ts | 33 - .../docTable/detailTable/table_helper.tsx | 18 - .../detailTable/table_row_btn_filter_add.tsx | 44 - .../table_row_btn_filter_exists.tsx | 56 - .../table_row_btn_filter_remove.tsx | 44 - .../table_row_btn_toggle_column.tsx | 54 - .../__snapshots__/datapanel.test.tsx.snap | 6064 ---------------- .../field_accordion.test.tsx.snap | 5693 --------------- .../__snapshots__/field_item.test.tsx.snap | 278 - .../__snapshots__/field_list.test.tsx.snap | 237 - .../lens_field_icon.test.tsx.snap | 55 - .../__tests__/datapanel.test.tsx | 45 - .../__tests__/field_accordion.test.tsx | 36 - .../__snapshots__/config_panel.test.tsx.snap | 3666 ---------- .../__tests__/config_panel.test.tsx | 68 - .../explorer/visualizations/datapanel.scss | 41 - .../explorer/visualizations/datapanel.tsx | 72 - .../visualizations/drag_drop/drag_drop.scss | 59 - .../visualizations/drag_drop/drag_drop.tsx | 249 - .../visualizations/drag_drop/index.ts | 7 - .../visualizations/drag_drop/providers.tsx | 85 - .../visualizations/drag_drop/readme.md | 69 - .../explorer/visualizations/fieldList.tsx | 35 - .../explorer/visualizations/field_item.scss | 53 - .../explorer/visualizations/field_item.tsx | 108 - .../explorer/visualizations/field_list.scss | 25 - .../visualizations/fields_accordion.tsx | 75 - .../explorer/visualizations/frame_layout.scss | 66 - .../explorer/visualizations/frame_layout.tsx | 31 - .../visualizations/lens_field_icon.tsx | 20 - .../workspace_panel/chart_switch.scss | 27 - .../workspace_panel/chart_switch.tsx | 114 - .../__tests__/__snapshots__/bar.test.tsx.snap | 608 +- .../__snapshots__/data_table.test.tsx.snap | 498 ++ .../__snapshots__/heatmap.test.tsx.snap | 419 ++ .../horizontal_bar.test.tsx.snap | 567 -- .../__snapshots__/line.test.tsx.snap | 595 +- .../__tests__/__snapshots__/pie.test.tsx.snap | 482 ++ .../__snapshots__/text.test.tsx.snap | 356 + .../charts/__tests__/bar.test.tsx | 11 +- .../charts/__tests__/data_table.test.tsx} | 21 +- ...rizontal_bar.test.tsx => heatmap.test.tsx} | 17 +- .../charts/__tests__/line.test.tsx | 11 +- .../charts/__tests__/pie.test.tsx} | 21 +- .../charts/__tests__/text.test.tsx} | 16 +- .../visualizations/charts/bar/bar_type.ts | 10 +- .../charts/bar/horizontal_bar_type.ts | 6 +- .../charts/bubble/bubble_type.ts | 6 +- .../candle_stick/candle_stick_type.ts | 6 +- .../charts/financial/gauge/gauge_type.ts | 6 +- .../charts/histogram/histogram_type.ts | 6 +- .../visualizations/charts/horizontal_bar.tsx | 47 - .../visualizations/charts/lines/line_type.ts | 6 +- .../visualizations/charts/maps/heatmap.tsx | 2 +- .../charts/maps/heatmap_type.ts | 6 +- .../charts/maps/treemap_type.ts | 6 +- .../visualizations/charts/pie/pie.tsx | 3 +- .../visualizations/charts/pie/pie_type.ts | 6 +- .../visualizations/charts/text/text_type.ts | 4 +- .../visualizations/visualization.tsx | 2 +- .../public/framework/redux/reducers/index.ts | 14 +- .../test/event_analytics_constants.ts | 65 +- dashboards-observability/test/jest.config.js | 1 + 185 files changed, 8992 insertions(+), 18998 deletions(-) rename dashboards-observability/public/components/{explorer => event_analytics}/__tests__/__snapshots__/no_results.test.tsx.snap (100%) rename dashboards-observability/public/components/{explorer => event_analytics}/__tests__/no_results.test.tsx (91%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/__tests__/data_grid.test.tsx (86%) rename dashboards-observability/public/components/{explorer/docTable/__tests__/__snapshots__/docViewer.test.tsx.snap => event_analytics/explorer/events_views/__tests__/__snapshots__/doc_viewer.test.tsx.snap} (100%) rename dashboards-observability/public/components/{explorer/docTable/__tests__/__snapshots__/docViewerRow.test.tsx.snap => event_analytics/explorer/events_views/__tests__/__snapshots__/doc_viewer_row.test.tsx.snap} (100%) rename dashboards-observability/public/components/{explorer/docTable/__tests__/docViewer.test.tsx => event_analytics/explorer/events_views/__tests__/doc_viewer.test.tsx} (100%) rename dashboards-observability/public/components/{explorer/docTable/__tests__/docViewerRow.test.tsx => event_analytics/explorer/events_views/__tests__/doc_viewer_row.test.tsx} (100%) rename dashboards-observability/public/components/{explorer => event_analytics/explorer/events_views}/data_grid.scss (100%) rename dashboards-observability/public/components/{explorer => event_analytics/explorer/events_views}/data_grid.tsx (91%) rename dashboards-observability/public/components/{explorer/docTable/detailTable/docDetailTable.tsx => event_analytics/explorer/events_views/detail_table/doc_detail_table.tsx} (100%) rename dashboards-observability/public/components/{explorer/docTable/detailTable/docDetailTitle.tsx => event_analytics/explorer/events_views/detail_table/doc_detail_title.tsx} (100%) rename dashboards-observability/public/components/{explorer/docTable/detailTable => event_analytics/explorer/events_views/detail_table}/table_row.tsx (61%) rename dashboards-observability/public/components/{explorer/docTable/detailTable => event_analytics/explorer/events_views/detail_table}/table_row_btn_collapse.tsx (100%) rename dashboards-observability/public/components/{explorer/docTable/detailTable => event_analytics/explorer/events_views/detail_table}/table_row_icon_no_mapping.tsx (100%) rename dashboards-observability/public/components/{explorer/docTable/detailTable => event_analytics/explorer/events_views/detail_table}/table_row_icon_underscore.tsx (100%) rename dashboards-observability/public/components/{explorer/docTable => event_analytics/explorer/events_views}/docView.scss (100%) rename dashboards-observability/public/components/{explorer/docTable => event_analytics/explorer/events_views}/docViewRow.tsx (95%) rename dashboards-observability/public/components/{explorer/docTable => event_analytics/explorer/events_views}/docViewer.tsx (92%) rename dashboards-observability/public/components/{explorer/docTable => event_analytics/explorer/events_views}/doc_flyout.tsx (89%) rename dashboards-observability/public/components/{explorer/docTable => event_analytics/explorer/events_views}/index.ts (100%) rename dashboards-observability/public/components/{explorer/docTable => event_analytics/explorer/events_views}/json_code_block/__tests__/__snapshots__/json_code_block.test.tsx.snap (100%) rename dashboards-observability/public/components/{explorer/docTable => event_analytics/explorer/events_views}/json_code_block/__tests__/json_code_block.test.tsx (100%) rename dashboards-observability/public/components/{explorer/docTable => event_analytics/explorer/events_views}/json_code_block/json_code_block.tsx (100%) rename dashboards-observability/public/components/{explorer/docTable => event_analytics/explorer/events_views}/surrounding_flyout.tsx (95%) rename dashboards-observability/public/components/{explorer/docTable => event_analytics/explorer/events_views}/trace_block/trace_block.tsx (78%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/explorer.scss (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/explorer.tsx (97%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/hits_counter/__tests__/__snapshots__/hits_counter.test.tsx.snap (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/hits_counter/__tests__/hits_counter.test.tsx (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/hits_counter/hits_counter.tsx (96%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/hits_counter/index.ts (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/log_explorer.scss (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/log_explorer.tsx (92%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/no_results.tsx (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/save_panel/__tests__/__snapshots__/save_panel.test.tsx.snap (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/save_panel/__tests__/save_panel.test.tsx (79%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/save_panel/index.ts (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/save_panel/save_panel.tsx (96%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/sidebar/__tests__/field.test.tsx (92%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/sidebar/__tests__/sidebar.test.tsx (95%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/sidebar/field.tsx (96%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/sidebar/field_insights.tsx (96%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/sidebar/index.ts (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/sidebar/sidebar.scss (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/sidebar/sidebar.tsx (99%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap (96%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/timechart_header/__tests__/timechart_header.test.tsx (85%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/timechart_header/index.ts (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/timechart_header/timechart_header.tsx (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/_mixins.scss (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/_variables.scss (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/app.scss (100%) create mode 100644 dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap create mode 100644 dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/config_panel.test.tsx rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/config_panel/config_panel.scss (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/config_panel/config_panel.tsx (91%) rename dashboards-observability/public/components/{explorer/visualizations/config_panel/DefaultEditorControls.tsx => event_analytics/explorer/visualizations/config_panel/config_panel_footer.tsx} (98%) rename dashboards-observability/public/components/{explorer/visualizations/config_panel/config_editor => event_analytics/explorer/visualizations/config_panel/config_panes}/config_controls/config_chart_options.tsx (96%) rename dashboards-observability/public/components/{explorer/visualizations/config_panel/config_editor => event_analytics/explorer/visualizations/config_panel/config_panes}/config_controls/config_data_links.tsx (100%) rename dashboards-observability/public/components/{explorer/visualizations/config_panel/config_editor => event_analytics/explorer/visualizations/config_panel/config_panes}/config_controls/config_gauge_options.tsx (92%) rename dashboards-observability/public/components/{explorer/visualizations/config_panel/configPanelItem.tsx => event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_panel_item.tsx} (100%) rename dashboards-observability/public/components/{explorer/visualizations/config_panel/config_editor => event_analytics/explorer/visualizations/config_panel/config_panes}/config_controls/config_panel_options.tsx (100%) rename dashboards-observability/public/components/{explorer/visualizations/config_panel/config_editor => event_analytics/explorer/visualizations/config_panel/config_panes}/config_controls/config_text.tsx (100%) rename dashboards-observability/public/components/{explorer/visualizations/config_panel/config_editor => event_analytics/explorer/visualizations/config_panel/config_panes}/config_controls/config_thresholds.tsx (98%) rename dashboards-observability/public/components/{explorer/visualizations/config_panel/config_editor => event_analytics/explorer/visualizations/config_panel/config_panes}/config_controls/config_value_options.tsx (97%) rename dashboards-observability/public/components/{explorer/visualizations/config_panel/config_editor => event_analytics/explorer/visualizations/config_panel/config_panes}/config_controls/config_visualization_selector.tsx (100%) rename dashboards-observability/public/components/{explorer/visualizations/config_panel/config_editor => event_analytics/explorer/visualizations/config_panel/config_panes}/config_controls/index.ts (100%) rename dashboards-observability/public/components/{explorer/visualizations/config_panel/config_editor => event_analytics/explorer/visualizations/config_panel/config_panes}/default_vis_editor.tsx (100%) rename dashboards-observability/public/components/{explorer/visualizations/config_panel/config_editor/config_editor.tsx => event_analytics/explorer/visualizations/config_panel/config_panes/json_editor.tsx} (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/config_panel/index.ts (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/count_distribution/__tests__/count_distribution.test.tsx (91%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/count_distribution/count_distribution.tsx (86%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/count_distribution/index.ts (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/index.tsx (95%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/shared_components/__tests__/__snapshots__/shared_components.test.tsx.snap (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/shared_components/__tests__/shared_components.test.tsx (92%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/shared_components/empty_placeholder.tsx (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/shared_components/index.ts (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/shared_components/plotly_viz_editor/index.tsx (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/shared_components/plotly_viz_editor/plotly_actions.tsx (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/shared_components/plotly_viz_editor/plotly_editor.scss (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/shared_components/plotly_viz_editor/plotly_vis.scss (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/shared_components/plotly_viz_editor/plotly_viz_editor.tsx (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/shared_components/toolbar_button.scss (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/shared_components/toolbar_button.tsx (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/visualization_specs/default.data.spec.hjson (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/visualization_specs/default.layout.spec.hjson (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/visualization_specs/default_spec.ts (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/workspace_panel/index.ts (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/workspace_panel/workspace_panel.scss (100%) rename dashboards-observability/public/components/{ => event_analytics}/explorer/visualizations/workspace_panel/workspace_panel.tsx (90%) rename dashboards-observability/public/components/{explorer/home_table => event_analytics/home}/__tests__/__snapshots__/saved_query_table.test.tsx.snap (100%) rename dashboards-observability/public/components/{explorer/home_table => event_analytics/home}/__tests__/saved_query_table.test.tsx (94%) rename dashboards-observability/public/components/{explorer => event_analytics/home}/home.scss (100%) rename dashboards-observability/public/components/{explorer => event_analytics/home}/home.tsx (92%) rename dashboards-observability/public/components/{explorer/home_table/saved_query_table.tsx => event_analytics/home/saved_objects_table.tsx} (100%) rename dashboards-observability/public/components/{explorer => event_analytics}/hooks/index.ts (100%) rename dashboards-observability/public/components/{explorer => event_analytics}/hooks/use_fetch_events.ts (94%) rename dashboards-observability/public/components/{explorer => event_analytics}/hooks/use_fetch_visualizations.ts (88%) rename dashboards-observability/public/components/{explorer => event_analytics}/hooks/use_tab_context.ts (100%) rename dashboards-observability/public/components/{explorer/event_analytics.tsx => event_analytics/index.tsx} (96%) rename dashboards-observability/public/components/{explorer => event_analytics/redux}/reducers/fetch_reducers.ts (100%) rename dashboards-observability/public/components/{explorer => event_analytics/redux}/reducers/index.ts (100%) rename dashboards-observability/public/components/{explorer => event_analytics/redux}/reducers/query_reducers.ts (100%) rename dashboards-observability/public/components/{explorer => event_analytics/redux}/slices/count_distribution_slice.ts (86%) rename dashboards-observability/public/components/{explorer => event_analytics/redux}/slices/field_slice.ts (88%) rename dashboards-observability/public/components/{explorer => event_analytics/redux}/slices/query_result_slice.ts (83%) rename dashboards-observability/public/components/{explorer => event_analytics/redux}/slices/query_slice.ts (92%) rename dashboards-observability/public/components/{explorer => event_analytics/redux}/slices/query_tab_slice.ts (91%) rename dashboards-observability/public/components/{explorer => event_analytics/redux}/slices/visualization_slice.ts (80%) rename dashboards-observability/public/components/{explorer => event_analytics/redux}/slices/viualization_config_slice.ts (86%) rename dashboards-observability/public/components/{explorer => event_analytics}/utils/index.tsx (100%) rename dashboards-observability/public/components/{explorer => event_analytics}/utils/utils.tsx (99%) delete mode 100644 dashboards-observability/public/components/explorer/__tests__/explorer.test.tsx delete mode 100644 dashboards-observability/public/components/explorer/docTable/detailTable/table_helper.test.ts delete mode 100644 dashboards-observability/public/components/explorer/docTable/detailTable/table_helper.tsx delete mode 100644 dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_filter_add.tsx delete mode 100644 dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_filter_exists.tsx delete mode 100644 dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_filter_remove.tsx delete mode 100644 dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_toggle_column.tsx delete mode 100644 dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/datapanel.test.tsx.snap delete mode 100644 dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/field_accordion.test.tsx.snap delete mode 100644 dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/field_item.test.tsx.snap delete mode 100644 dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/field_list.test.tsx.snap delete mode 100644 dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/lens_field_icon.test.tsx.snap delete mode 100644 dashboards-observability/public/components/explorer/visualizations/__tests__/datapanel.test.tsx delete mode 100644 dashboards-observability/public/components/explorer/visualizations/__tests__/field_accordion.test.tsx delete mode 100644 dashboards-observability/public/components/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap delete mode 100644 dashboards-observability/public/components/explorer/visualizations/config_panel/__tests__/config_panel.test.tsx delete mode 100644 dashboards-observability/public/components/explorer/visualizations/datapanel.scss delete mode 100644 dashboards-observability/public/components/explorer/visualizations/datapanel.tsx delete mode 100644 dashboards-observability/public/components/explorer/visualizations/drag_drop/drag_drop.scss delete mode 100644 dashboards-observability/public/components/explorer/visualizations/drag_drop/drag_drop.tsx delete mode 100644 dashboards-observability/public/components/explorer/visualizations/drag_drop/index.ts delete mode 100644 dashboards-observability/public/components/explorer/visualizations/drag_drop/providers.tsx delete mode 100644 dashboards-observability/public/components/explorer/visualizations/drag_drop/readme.md delete mode 100644 dashboards-observability/public/components/explorer/visualizations/fieldList.tsx delete mode 100644 dashboards-observability/public/components/explorer/visualizations/field_item.scss delete mode 100644 dashboards-observability/public/components/explorer/visualizations/field_item.tsx delete mode 100644 dashboards-observability/public/components/explorer/visualizations/field_list.scss delete mode 100644 dashboards-observability/public/components/explorer/visualizations/fields_accordion.tsx delete mode 100644 dashboards-observability/public/components/explorer/visualizations/frame_layout.scss delete mode 100644 dashboards-observability/public/components/explorer/visualizations/frame_layout.tsx delete mode 100644 dashboards-observability/public/components/explorer/visualizations/lens_field_icon.tsx delete mode 100644 dashboards-observability/public/components/explorer/visualizations/workspace_panel/chart_switch.scss delete mode 100644 dashboards-observability/public/components/explorer/visualizations/workspace_panel/chart_switch.tsx create mode 100644 dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/data_table.test.tsx.snap create mode 100644 dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap delete mode 100644 dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap create mode 100644 dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap create mode 100644 dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/text.test.tsx.snap rename dashboards-observability/public/components/{explorer/visualizations/__tests__/field_item.test.tsx => visualizations/charts/__tests__/data_table.test.tsx} (52%) rename dashboards-observability/public/components/visualizations/charts/__tests__/{horizontal_bar.test.tsx => heatmap.test.tsx} (60%) rename dashboards-observability/public/components/{explorer/visualizations/__tests__/field_list.test.tsx => visualizations/charts/__tests__/pie.test.tsx} (64%) rename dashboards-observability/public/components/{explorer/visualizations/__tests__/lens_field_icon.test.tsx => visualizations/charts/__tests__/text.test.tsx} (61%) delete mode 100644 dashboards-observability/public/components/visualizations/charts/horizontal_bar.tsx diff --git a/dashboards-observability/public/components/app.tsx b/dashboards-observability/public/components/app.tsx index 3cc0da4de..b4d164331 100644 --- a/dashboards-observability/public/components/app.tsx +++ b/dashboards-observability/public/components/app.tsx @@ -13,7 +13,7 @@ import store from '../framework/redux/store'; import { AppPluginStartDependencies } from '../types'; import { Home as ApplicationAnalyticsHome } from './application_analytics/home'; import { Home as CustomPanelsHome } from './custom_panels/home'; -import { EventAnalytics } from './explorer/event_analytics'; +import { EventAnalytics } from './event_analytics'; import { Main as NotebooksHome } from './notebooks/components/main'; import { Home as TraceAnalyticsHome } from './trace_analytics/home'; diff --git a/dashboards-observability/public/components/application_analytics/components/application.tsx b/dashboards-observability/public/components/application_analytics/components/application.tsx index 582d181cd..08ab10f22 100644 --- a/dashboards-observability/public/components/application_analytics/components/application.tsx +++ b/dashboards-observability/public/components/application_analytics/components/application.tsx @@ -36,7 +36,7 @@ import { PanelTitle, } from '../../../../public/components/trace_analytics/components/common/helper_functions'; import { SpanDetailTable } from '../../../../public/components/trace_analytics/components/traces/span_detail_table'; -import { Explorer } from '../../explorer/explorer'; +import { Explorer } from '../../event_analytics/explorer/explorer'; import { Configuration } from './configuration'; import { TAB_CONFIG_ID_TXT_PFX, diff --git a/dashboards-observability/public/components/application_analytics/helpers/utils.tsx b/dashboards-observability/public/components/application_analytics/helpers/utils.tsx index 57c4bf768..40f8e1f98 100644 --- a/dashboards-observability/public/components/application_analytics/helpers/utils.tsx +++ b/dashboards-observability/public/components/application_analytics/helpers/utils.tsx @@ -18,21 +18,21 @@ import { VisualizationType } from '../../../../common/types/custom_panels'; import { NEW_SELECTED_QUERY_TAB, TAB_CREATED_TYPE } from '../../../../common/constants/explorer'; import { APP_ANALYTICS_API_PREFIX } from '../../../../common/constants/application_analytics'; import { HttpSetup } from '../../../../../../src/core/public'; -import { init as initFields, remove as removefields } from '../../explorer/slices/field_slice'; +import { init as initFields, remove as removefields } from '../../event_analytics/redux/slices/field_slice'; import { init as initVisualizationConfig, reset as resetVisualizationConfig, -} from '../../explorer/slices/viualization_config_slice'; +} from '../../event_analytics/redux/slices/viualization_config_slice'; import { init as initQuery, remove as removeQuery, changeQuery, -} from '../../explorer/slices/query_slice'; +} from '../../event_analytics/redux/slices/query_slice'; import { init as initQueryResult, remove as removeQueryResult, -} from '../../explorer/slices/query_result_slice'; -import { addTab, removeTab } from '../../explorer/slices/query_tab_slice'; +} from '../../event_analytics/redux/slices/query_result_slice'; +import { addTab, removeTab } from '../../event_analytics/redux/slices/query_tab_slice'; // Name validation export const isNameValid = (name: string, existingNames: string[]) => { diff --git a/dashboards-observability/public/components/common/search/search.tsx b/dashboards-observability/public/components/common/search/search.tsx index 6c59133d2..46078c69b 100644 --- a/dashboards-observability/public/components/common/search/search.tsx +++ b/dashboards-observability/public/components/common/search/search.tsx @@ -21,7 +21,7 @@ import _ from 'lodash'; import { DatePicker } from './date_picker'; import '@algolia/autocomplete-theme-classic'; import { Autocomplete } from './autocomplete'; -import { SavePanel } from '../../explorer/save_panel'; +import { SavePanel } from '../../event_analytics/explorer/save_panel'; import { PPLReferenceFlyout } from '../helpers'; import { uiSettingsService } from '../../../../common/utils'; import { APP_ANALYTICS_TAB_ID_REGEX } from '../../../../common/constants/explorer'; diff --git a/dashboards-observability/public/components/explorer/__tests__/__snapshots__/no_results.test.tsx.snap b/dashboards-observability/public/components/event_analytics/__tests__/__snapshots__/no_results.test.tsx.snap similarity index 100% rename from dashboards-observability/public/components/explorer/__tests__/__snapshots__/no_results.test.tsx.snap rename to dashboards-observability/public/components/event_analytics/__tests__/__snapshots__/no_results.test.tsx.snap diff --git a/dashboards-observability/public/components/explorer/__tests__/no_results.test.tsx b/dashboards-observability/public/components/event_analytics/__tests__/no_results.test.tsx similarity index 91% rename from dashboards-observability/public/components/explorer/__tests__/no_results.test.tsx rename to dashboards-observability/public/components/event_analytics/__tests__/no_results.test.tsx index b87c8dc13..1bc6c9eb1 100644 --- a/dashboards-observability/public/components/explorer/__tests__/no_results.test.tsx +++ b/dashboards-observability/public/components/event_analytics/__tests__/no_results.test.tsx @@ -7,7 +7,7 @@ import { configure, mount } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import React from 'react'; import { waitFor } from '@testing-library/react'; -import { NoResults } from '../no_results'; +import { NoResults } from '../explorer/no_results'; describe('No result component', () => { configure({ adapter: new Adapter() }); diff --git a/dashboards-observability/public/components/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap similarity index 100% rename from dashboards-observability/public/components/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap rename to dashboards-observability/public/components/event_analytics/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap diff --git a/dashboards-observability/public/components/explorer/__tests__/data_grid.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/__tests__/data_grid.test.tsx similarity index 86% rename from dashboards-observability/public/components/explorer/__tests__/data_grid.test.tsx rename to dashboards-observability/public/components/event_analytics/explorer/__tests__/data_grid.test.tsx index a45d7ecd9..f659f3243 100644 --- a/dashboards-observability/public/components/explorer/__tests__/data_grid.test.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/__tests__/data_grid.test.tsx @@ -7,18 +7,18 @@ import { configure, mount } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import React from 'react'; import { waitFor } from '@testing-library/react'; -import { DataGrid } from '../data_grid'; +import { DataGrid } from '../events_views/data_grid'; import { SELECTED_FIELDS, AVAILABLE_FIELDS, UNSELECTED_FIELDS, QUERIED_FIELDS -} from '../../../../common/constants/explorer'; +} from '../../../../../common/constants/explorer'; import { AVAILABLE_FIELDS as SIDEBAR_AVAILABLE_FIELDS, QUERY_FIELDS, DATA_GRID_ROWS -} from '../../../../test/event_analytics_constants'; +} from '../../../../../test/event_analytics_constants'; describe('Datagrid component', () => { configure({ adapter: new Adapter() }); diff --git a/dashboards-observability/public/components/explorer/docTable/__tests__/__snapshots__/docViewer.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/__snapshots__/doc_viewer.test.tsx.snap similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/__tests__/__snapshots__/docViewer.test.tsx.snap rename to dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/__snapshots__/doc_viewer.test.tsx.snap diff --git a/dashboards-observability/public/components/explorer/docTable/__tests__/__snapshots__/docViewerRow.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/__snapshots__/doc_viewer_row.test.tsx.snap similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/__tests__/__snapshots__/docViewerRow.test.tsx.snap rename to dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/__snapshots__/doc_viewer_row.test.tsx.snap diff --git a/dashboards-observability/public/components/explorer/docTable/__tests__/docViewer.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/doc_viewer.test.tsx similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/__tests__/docViewer.test.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/doc_viewer.test.tsx diff --git a/dashboards-observability/public/components/explorer/docTable/__tests__/docViewerRow.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/doc_viewer_row.test.tsx similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/__tests__/docViewerRow.test.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/doc_viewer_row.test.tsx diff --git a/dashboards-observability/public/components/explorer/data_grid.scss b/dashboards-observability/public/components/event_analytics/explorer/events_views/data_grid.scss similarity index 100% rename from dashboards-observability/public/components/explorer/data_grid.scss rename to dashboards-observability/public/components/event_analytics/explorer/events_views/data_grid.scss diff --git a/dashboards-observability/public/components/explorer/data_grid.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/data_grid.tsx similarity index 91% rename from dashboards-observability/public/components/explorer/data_grid.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/data_grid.tsx index ad31d3745..d0385a9a0 100644 --- a/dashboards-observability/public/components/explorer/data_grid.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/data_grid.tsx @@ -6,11 +6,11 @@ import './data_grid.scss'; import React, { useMemo, useState, useEffect, useRef, RefObject } from 'react'; -import { IExplorerFields } from '../../../common/types/explorer'; -import { DEFAULT_COLUMNS, PAGE_SIZE } from '../../../common/constants/explorer'; -import { getHeaders, getTrs, populateDataGrid } from './utils'; -import { HttpSetup } from '../../../../../src/core/public'; -import PPLService from '../../services/requests/ppl'; +import { IExplorerFields } from '../../../../../common/types/explorer'; +import { DEFAULT_COLUMNS, PAGE_SIZE } from '../../../../../common/constants/explorer'; +import { getHeaders, getTrs, populateDataGrid } from '../../utils'; +import { HttpSetup } from '../../../../../../../src/core/public'; +import PPLService from '../../../../services/requests/ppl'; interface DataGridProps { http: HttpSetup; diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/docDetailTable.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/doc_detail_table.tsx similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/detailTable/docDetailTable.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/doc_detail_table.tsx diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/docDetailTitle.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/doc_detail_title.tsx similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/detailTable/docDetailTitle.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/doc_detail_title.tsx diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row.tsx similarity index 61% rename from dashboards-observability/public/components/explorer/docTable/detailTable/table_row.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row.tsx index 875c29191..865fa9581 100644 --- a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row.tsx @@ -5,15 +5,10 @@ import classNames from 'classnames'; import React, { ReactNode } from 'react'; -// import { FieldMapping, DocViewFilterFn } from '../../doc_views/doc_views_types'; -import { DocViewTableRowBtnFilterAdd } from './table_row_btn_filter_add'; -import { DocViewTableRowBtnFilterRemove } from './table_row_btn_filter_remove'; -import { DocViewTableRowBtnToggleColumn } from './table_row_btn_toggle_column'; import { DocViewTableRowBtnCollapse } from './table_row_btn_collapse'; -import { DocViewTableRowBtnFilterExists } from './table_row_btn_filter_exists'; import { DocViewTableRowIconNoMapping } from './table_row_icon_no_mapping'; import { DocViewTableRowIconUnderscore } from './table_row_icon_underscore'; -import { FieldName } from '../../../common/field_name/field_name'; +import { FieldName } from '../../../../common/field_name/field_name'; export interface FieldMapping { filterable?: boolean; @@ -53,12 +48,8 @@ export function DocViewTableRow({ displayUnderscoreWarning, isCollapsible, isCollapsed, - isColumnActive, - onFilter, onToggleCollapse, - onToggleColumn, value, - valueRaw, }: Props) { const valueClassName = classNames({ // eslint-disable-next-line @typescript-eslint/naming-convention @@ -68,31 +59,10 @@ export function DocViewTableRow({ return ( - {typeof onFilter === 'function' && (<> - // - // onFilter(fieldMapping, valueRaw, '+')} - // /> - // onFilter(fieldMapping, valueRaw, '-')} - // /> - // {typeof onToggleColumn === 'function' && ( - // - // )} - // onFilter('_exists_', field, '+')} - // scripted={fieldMapping && fieldMapping.scripted} - // /> - // - )} diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_collapse.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row_btn_collapse.tsx similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_collapse.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row_btn_collapse.tsx diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_icon_no_mapping.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row_icon_no_mapping.tsx similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/detailTable/table_row_icon_no_mapping.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row_icon_no_mapping.tsx diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_icon_underscore.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row_icon_underscore.tsx similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/detailTable/table_row_icon_underscore.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row_icon_underscore.tsx diff --git a/dashboards-observability/public/components/explorer/docTable/docView.scss b/dashboards-observability/public/components/event_analytics/explorer/events_views/docView.scss similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/docView.scss rename to dashboards-observability/public/components/event_analytics/explorer/events_views/docView.scss diff --git a/dashboards-observability/public/components/explorer/docTable/docViewRow.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/docViewRow.tsx similarity index 95% rename from dashboards-observability/public/components/explorer/docTable/docViewRow.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/docViewRow.tsx index ad612c8b0..7a4f2c3b2 100644 --- a/dashboards-observability/public/components/explorer/docTable/docViewRow.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/docViewRow.tsx @@ -9,13 +9,13 @@ import React, { forwardRef, useImperativeHandle, useMemo, useState } from 'react import { toPairs, uniqueId, has, forEach, isEqual } from 'lodash'; import { EuiButtonEmpty, EuiButtonIcon, EuiIcon, EuiLink } from '@elastic/eui'; import { useEffect } from 'react'; -import { IExplorerFields, IField } from '../../../../common/types/explorer'; +import { IExplorerFields, IField } from '../../../../../common/types/explorer'; import { DocFlyout } from './doc_flyout'; -import { HttpStart } from '../../../../../../src/core/public'; -import { OTEL_TRACE_ID, DATE_PICKER_FORMAT } from '../../../../common/constants/explorer'; +import { HttpStart } from '../../../../../../../src/core/public'; +import { OTEL_TRACE_ID, DATE_PICKER_FORMAT } from '../../../../../common/constants/explorer'; import { SurroundingFlyout } from './surrounding_flyout'; -import PPLService from '../../../services/requests/ppl'; -import { isValidTraceId } from '../utils'; +import PPLService from '../../../../services/requests/ppl'; +import { isValidTraceId } from '../../utils'; export interface IDocType { [key: string]: string; diff --git a/dashboards-observability/public/components/explorer/docTable/docViewer.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/docViewer.tsx similarity index 92% rename from dashboards-observability/public/components/explorer/docTable/docViewer.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/docViewer.tsx index 240e7fdce..581b30aeb 100644 --- a/dashboards-observability/public/components/explorer/docTable/docViewer.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/docViewer.tsx @@ -13,13 +13,13 @@ import { EuiTabbedContent, EuiTabbedContentTab, } from '@elastic/eui'; -import { DocViewTable } from './detailTable/docDetailTable'; +import { DocViewTable } from './detail_table/doc_detail_table'; import { JsonCodeBlock } from './json_code_block/json_code_block'; import { IDocType } from './docViewRow'; -import { HttpSetup } from '../../../../../../src/core/public'; +import { HttpSetup } from '../../../../../../../src/core/public'; import { TraceBlock } from './trace_block/trace_block'; -import { OTEL_TRACE_ID } from '../../../../common/constants/explorer'; -import { isValidTraceId } from '../utils'; +import { OTEL_TRACE_ID } from '../../../../../common/constants/explorer'; +import { isValidTraceId } from '../../utils'; interface IDocViewerProps { http: HttpSetup; diff --git a/dashboards-observability/public/components/explorer/docTable/doc_flyout.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/doc_flyout.tsx similarity index 89% rename from dashboards-observability/public/components/explorer/docTable/doc_flyout.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/doc_flyout.tsx index fdff39ea3..beba69089 100644 --- a/dashboards-observability/public/components/explorer/docTable/doc_flyout.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/doc_flyout.tsx @@ -16,15 +16,15 @@ import { EuiToolTip, } from '@elastic/eui'; import moment from 'moment'; -import { FlyoutContainers } from '../../common/flyout_containers'; +import { FlyoutContainers } from '../../../common/flyout_containers'; import { IDocType } from './docViewRow'; import { DocViewer } from './docViewer'; -import { uiSettingsService } from '../../../../common/utils'; -import { IExplorerFields } from '../../../../common/types/explorer'; -import { getHeaders, populateDataGrid } from '../utils'; -import { DEFAULT_COLUMNS } from '../../../../common/constants/explorer'; -import { HttpSetup } from '../../../../../../src/core/public'; -import { PPL_STATS_REGEX } from '../../../../common/constants/shared'; +import { uiSettingsService } from '../../../../../common/utils'; +import { IExplorerFields } from '../../../../../common/types/explorer'; +import { getHeaders, populateDataGrid } from '../../utils'; +import { DEFAULT_COLUMNS } from '../../../../../common/constants/explorer'; +import { HttpSetup } from '../../../../../../../src/core/public'; +import { PPL_STATS_REGEX } from '../../../../../common/constants/shared'; interface Props { http: HttpSetup; diff --git a/dashboards-observability/public/components/explorer/docTable/index.ts b/dashboards-observability/public/components/event_analytics/explorer/events_views/index.ts similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/index.ts rename to dashboards-observability/public/components/event_analytics/explorer/events_views/index.ts diff --git a/dashboards-observability/public/components/explorer/docTable/json_code_block/__tests__/__snapshots__/json_code_block.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/events_views/json_code_block/__tests__/__snapshots__/json_code_block.test.tsx.snap similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/json_code_block/__tests__/__snapshots__/json_code_block.test.tsx.snap rename to dashboards-observability/public/components/event_analytics/explorer/events_views/json_code_block/__tests__/__snapshots__/json_code_block.test.tsx.snap diff --git a/dashboards-observability/public/components/explorer/docTable/json_code_block/__tests__/json_code_block.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/json_code_block/__tests__/json_code_block.test.tsx similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/json_code_block/__tests__/json_code_block.test.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/json_code_block/__tests__/json_code_block.test.tsx diff --git a/dashboards-observability/public/components/explorer/docTable/json_code_block/json_code_block.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/json_code_block/json_code_block.tsx similarity index 100% rename from dashboards-observability/public/components/explorer/docTable/json_code_block/json_code_block.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/json_code_block/json_code_block.tsx diff --git a/dashboards-observability/public/components/explorer/docTable/surrounding_flyout.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/surrounding_flyout.tsx similarity index 95% rename from dashboards-observability/public/components/explorer/docTable/surrounding_flyout.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/surrounding_flyout.tsx index 5ca0701dc..4c67c3e19 100644 --- a/dashboards-observability/public/components/explorer/docTable/surrounding_flyout.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/surrounding_flyout.tsx @@ -21,13 +21,13 @@ import { EuiTitle, EuiToolTip, } from '@elastic/eui'; -import { FlyoutContainers } from '../../common/flyout_containers'; +import { FlyoutContainers } from '../../../common/flyout_containers'; import { IDocType } from './docViewRow'; -import { IExplorerFields, IField } from '../../../../common/types/explorer'; -import { getHeaders, fetchSurroundingData, rangeNumDocs, populateDataGrid } from '../utils'; -import { DEFAULT_COLUMNS } from '../../../../common/constants/explorer'; -import { HttpSetup } from '../../../../../../src/core/public'; -import PPLService from '../../../services/requests/ppl'; +import { IExplorerFields, IField } from '../../../../../common/types/explorer'; +import { getHeaders, fetchSurroundingData, rangeNumDocs, populateDataGrid } from '../../utils'; +import { DEFAULT_COLUMNS } from '../../../../../common/constants/explorer'; +import { HttpSetup } from '../../../../../../../src/core/public'; +import PPLService from '../../../../services/requests/ppl'; interface Props { http: HttpSetup; diff --git a/dashboards-observability/public/components/explorer/docTable/trace_block/trace_block.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/trace_block/trace_block.tsx similarity index 78% rename from dashboards-observability/public/components/explorer/docTable/trace_block/trace_block.tsx rename to dashboards-observability/public/components/event_analytics/explorer/events_views/trace_block/trace_block.tsx index 6227666e8..e90476c92 100644 --- a/dashboards-observability/public/components/explorer/docTable/trace_block/trace_block.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/trace_block/trace_block.tsx @@ -3,17 +3,17 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { TraceDetailRender } from '../../../application_analytics/components/flyout_components/trace_detail_render'; +import { TraceDetailRender } from '../../../../application_analytics/components/flyout_components/trace_detail_render'; import React, { useEffect } from 'react'; -import { HttpSetup } from '../../../../../../../src/core/public'; +import { HttpSetup } from '../../../../../../../../src/core/public'; import { EuiCallOut, EuiLink } from '@elastic/eui'; -import { TRACE_ANALYTICS_DOCUMENTATION_LINK } from '../../../../../common/constants/trace_analytics'; +import { TRACE_ANALYTICS_DOCUMENTATION_LINK } from '../../../../../../common/constants/trace_analytics'; import { OPEN_TELEMETRY_LOG_CORRELATION_LINK, OTEL_TRACE_ID, -} from '../../../../../common/constants/explorer'; +} from '../../../../../../common/constants/explorer'; import { IDocType } from '../docViewRow'; -import { isValidTraceId } from '../../utils'; +import { isValidTraceId } from '../../../utils'; interface props { http: HttpSetup; diff --git a/dashboards-observability/public/components/explorer/explorer.scss b/dashboards-observability/public/components/event_analytics/explorer/explorer.scss similarity index 100% rename from dashboards-observability/public/components/explorer/explorer.scss rename to dashboards-observability/public/components/event_analytics/explorer/explorer.scss diff --git a/dashboards-observability/public/components/explorer/explorer.tsx b/dashboards-observability/public/components/event_analytics/explorer/explorer.tsx similarity index 97% rename from dashboards-observability/public/components/explorer/explorer.tsx rename to dashboards-observability/public/components/event_analytics/explorer/explorer.tsx index 4f9233cf8..3171f8476 100644 --- a/dashboards-observability/public/components/explorer/explorer.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/explorer.tsx @@ -24,15 +24,15 @@ import { } from '@elastic/eui'; import dateMath from '@elastic/datemath'; import classNames from 'classnames'; -import { Search } from '../common/search/search'; +import { Search } from '../../common/search/search'; import { CountDistribution } from './visualizations/count_distribution'; -import { DataGrid } from './data_grid'; +import { DataGrid } from './events_views/data_grid'; import { Sidebar } from './sidebar'; import { NoResults } from './no_results'; import { HitsCounter } from './hits_counter/hits_counter'; import { TimechartHeader } from './timechart_header'; import { ExplorerVisualizations } from './visualizations'; -import { IField, IQueryTab, IDefaultTimestampState } from '../../../common/types/explorer'; +import { IField, IQueryTab, IDefaultTimestampState } from '../../../../common/types/explorer'; import { TAB_CHART_TITLE, TAB_EVENT_TITLE, @@ -54,29 +54,29 @@ import { INDEX, FINAL_QUERY, DATE_PICKER_FORMAT, -} from '../../../common/constants/explorer'; -import { PPL_STATS_REGEX, PPL_NEWLINE_REGEX } from '../../../common/constants/shared'; -import { getIndexPatternFromRawQuery, preprocessQuery, buildQuery } from '../../../common/utils'; -import { useFetchEvents, useFetchVisualizations } from './hooks'; -import { changeQuery, changeDateRange, selectQueries } from './slices/query_slice'; -import { selectQueryResult } from './slices/query_result_slice'; -import { selectFields, updateFields, sortFields } from './slices/field_slice'; -import { updateTabName } from './slices/query_tab_slice'; -import { selectCountDistribution } from './slices/count_distribution_slice'; -import { selectExplorerVisualization } from './slices/visualization_slice'; +} from '../../../../common/constants/explorer'; +import { PPL_STATS_REGEX, PPL_NEWLINE_REGEX } from '../../../../common/constants/shared'; +import { getIndexPatternFromRawQuery, preprocessQuery, buildQuery } from '../../../../common/utils'; +import { useFetchEvents, useFetchVisualizations } from '../hooks'; +import { changeQuery, changeDateRange, selectQueries } from '../redux/slices/query_slice'; +import { selectQueryResult } from '../redux/slices/query_result_slice'; +import { selectFields, updateFields, sortFields } from '../redux/slices/field_slice'; +import { updateTabName } from '../redux/slices/query_tab_slice'; +import { selectCountDistribution } from '../redux/slices/count_distribution_slice'; +import { selectExplorerVisualization } from '../redux/slices/visualization_slice'; import { selectVisualizationConfig, change as changeVisualizationConfig, -} from './slices/viualization_config_slice'; -import { change as updateVizConfig } from './slices/viualization_config_slice'; -import { IExplorerProps, IVisualizationContainerProps } from '../../../common/types/explorer'; -import { TabContext } from './hooks'; -import { getVizContainerProps } from '../visualizations/charts/helpers'; +} from '../redux/slices/viualization_config_slice'; +import { change as updateVizConfig } from '../redux/slices/viualization_config_slice'; +import { IExplorerProps, IVisualizationContainerProps } from '../../../../common/types/explorer'; +import { TabContext } from '../hooks'; +import { getVizContainerProps } from '../../visualizations/charts/helpers'; import { parseGetSuggestions, onItemSelect, -} from '../common/search/autocomplete_logic'; -import { formatError } from './utils'; +} from '../../common/search/autocomplete_logic'; +import { formatError } from '../utils'; const TYPE_TAB_MAPPING = { [SAVED_QUERY]: TAB_EVENT_ID, diff --git a/dashboards-observability/public/components/explorer/hits_counter/__tests__/__snapshots__/hits_counter.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/hits_counter/__tests__/__snapshots__/hits_counter.test.tsx.snap similarity index 100% rename from dashboards-observability/public/components/explorer/hits_counter/__tests__/__snapshots__/hits_counter.test.tsx.snap rename to dashboards-observability/public/components/event_analytics/explorer/hits_counter/__tests__/__snapshots__/hits_counter.test.tsx.snap diff --git a/dashboards-observability/public/components/explorer/hits_counter/__tests__/hits_counter.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/hits_counter/__tests__/hits_counter.test.tsx similarity index 100% rename from dashboards-observability/public/components/explorer/hits_counter/__tests__/hits_counter.test.tsx rename to dashboards-observability/public/components/event_analytics/explorer/hits_counter/__tests__/hits_counter.test.tsx diff --git a/dashboards-observability/public/components/explorer/hits_counter/hits_counter.tsx b/dashboards-observability/public/components/event_analytics/explorer/hits_counter/hits_counter.tsx similarity index 96% rename from dashboards-observability/public/components/explorer/hits_counter/hits_counter.tsx rename to dashboards-observability/public/components/event_analytics/explorer/hits_counter/hits_counter.tsx index 8b7d3f1d0..0941658eb 100644 --- a/dashboards-observability/public/components/explorer/hits_counter/hits_counter.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/hits_counter/hits_counter.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { EuiButtonEmpty, EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui'; import { FormattedMessage, I18nProvider } from '@osd/i18n/react'; import { i18n } from '@osd/i18n'; -import { formatNumWithCommas } from '../../common/helpers'; +import { formatNumWithCommas } from '../../../common/helpers'; export interface HitsCounterProps { /** diff --git a/dashboards-observability/public/components/explorer/hits_counter/index.ts b/dashboards-observability/public/components/event_analytics/explorer/hits_counter/index.ts similarity index 100% rename from dashboards-observability/public/components/explorer/hits_counter/index.ts rename to dashboards-observability/public/components/event_analytics/explorer/hits_counter/index.ts diff --git a/dashboards-observability/public/components/explorer/log_explorer.scss b/dashboards-observability/public/components/event_analytics/explorer/log_explorer.scss similarity index 100% rename from dashboards-observability/public/components/explorer/log_explorer.scss rename to dashboards-observability/public/components/event_analytics/explorer/log_explorer.scss diff --git a/dashboards-observability/public/components/explorer/log_explorer.tsx b/dashboards-observability/public/components/event_analytics/explorer/log_explorer.tsx similarity index 92% rename from dashboards-observability/public/components/explorer/log_explorer.tsx rename to dashboards-observability/public/components/event_analytics/explorer/log_explorer.tsx index dd10d70a7..53bd15be4 100644 --- a/dashboards-observability/public/components/explorer/log_explorer.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/log_explorer.tsx @@ -11,7 +11,7 @@ import { uniqueId, map, isEmpty } from 'lodash'; import $ from 'jquery'; import { EuiIcon, EuiText, EuiTabbedContentTab, EuiTabbedContent } from '@elastic/eui'; import { Explorer } from './explorer'; -import { ILogExplorerProps } from '../../../common/types/explorer'; +import { ILogExplorerProps } from '../../../../common/types/explorer'; import { TAB_TITLE, TAB_ID_TXT_PFX, @@ -21,11 +21,11 @@ import { TAB_EVENT_ID, TAB_CHART_ID, APP_ANALYTICS_TAB_ID_REGEX, -} from '../../../common/constants/explorer'; -import { selectQueryTabs, setSelectedQueryTab } from './slices/query_tab_slice'; -import { selectQueries } from './slices/query_slice'; -import { selectQueryResult } from './slices/query_result_slice'; -import { initializeTabData, removeTabData } from '../application_analytics/helpers/utils'; +} from '../../../../common/constants/explorer'; +import { selectQueryTabs, setSelectedQueryTab } from '../redux/slices/query_tab_slice'; +import { selectQueries } from '../redux/slices/query_slice'; +import { selectQueryResult } from '../redux/slices/query_result_slice'; +import { initializeTabData, removeTabData } from '../../application_analytics/helpers/utils'; const searchBarConfigs = { [TAB_EVENT_ID]: { diff --git a/dashboards-observability/public/components/explorer/no_results.tsx b/dashboards-observability/public/components/event_analytics/explorer/no_results.tsx similarity index 100% rename from dashboards-observability/public/components/explorer/no_results.tsx rename to dashboards-observability/public/components/event_analytics/explorer/no_results.tsx diff --git a/dashboards-observability/public/components/explorer/save_panel/__tests__/__snapshots__/save_panel.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/save_panel/__tests__/__snapshots__/save_panel.test.tsx.snap similarity index 100% rename from dashboards-observability/public/components/explorer/save_panel/__tests__/__snapshots__/save_panel.test.tsx.snap rename to dashboards-observability/public/components/event_analytics/explorer/save_panel/__tests__/__snapshots__/save_panel.test.tsx.snap diff --git a/dashboards-observability/public/components/explorer/save_panel/__tests__/save_panel.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/save_panel/__tests__/save_panel.test.tsx similarity index 79% rename from dashboards-observability/public/components/explorer/save_panel/__tests__/save_panel.test.tsx rename to dashboards-observability/public/components/event_analytics/explorer/save_panel/__tests__/save_panel.test.tsx index 8a907ac2a..6eec4ca91 100644 --- a/dashboards-observability/public/components/explorer/save_panel/__tests__/save_panel.test.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/save_panel/__tests__/save_panel.test.tsx @@ -8,9 +8,9 @@ import Adapter from 'enzyme-adapter-react-16'; import React from 'react'; import { waitFor } from '@testing-library/react'; import { SavePanel } from '../save_panel'; -import { SELECTED_PANELS_OPTIONS } from '../../../../../test/event_analytics_constants'; -import SavedObjects from '../../../../services/saved_objects/event_analytics/saved_objects'; -import httpClientMock from '../../../../../test/__mocks__/httpClientMock'; +import { SELECTED_PANELS_OPTIONS } from '../../../../../../test/event_analytics_constants'; +import SavedObjects from '../../../../../services/saved_objects/event_analytics/saved_objects'; +import httpClientMock from '../../../../../../test/__mocks__/httpClientMock'; describe('Saved query table component', () => { configure({ adapter: new Adapter() }); diff --git a/dashboards-observability/public/components/explorer/save_panel/index.ts b/dashboards-observability/public/components/event_analytics/explorer/save_panel/index.ts similarity index 100% rename from dashboards-observability/public/components/explorer/save_panel/index.ts rename to dashboards-observability/public/components/event_analytics/explorer/save_panel/index.ts diff --git a/dashboards-observability/public/components/explorer/save_panel/save_panel.tsx b/dashboards-observability/public/components/event_analytics/explorer/save_panel/save_panel.tsx similarity index 96% rename from dashboards-observability/public/components/explorer/save_panel/save_panel.tsx rename to dashboards-observability/public/components/event_analytics/explorer/save_panel/save_panel.tsx index e18022db5..c0b4793b5 100644 --- a/dashboards-observability/public/components/explorer/save_panel/save_panel.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/save_panel/save_panel.tsx @@ -8,7 +8,7 @@ import { useDispatch, useSelector } from 'react-redux'; import { EuiTitle, EuiComboBox, EuiFormRow, EuiSpacer, EuiFieldText } from '@elastic/eui'; import { useEffect } from 'react'; import { isEmpty } from 'lodash'; -import SavedObjects from '../../../services/saved_objects/event_analytics/saved_objects'; +import SavedObjects from '../../../../services/saved_objects/event_analytics/saved_objects'; interface ISavedPanelProps { selectedOptions: any; diff --git a/dashboards-observability/public/components/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap similarity index 100% rename from dashboards-observability/public/components/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap diff --git a/dashboards-observability/public/components/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap similarity index 100% rename from dashboards-observability/public/components/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap diff --git a/dashboards-observability/public/components/explorer/sidebar/__tests__/field.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/field.test.tsx similarity index 92% rename from dashboards-observability/public/components/explorer/sidebar/__tests__/field.test.tsx rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/field.test.tsx index c6660d934..472812664 100644 --- a/dashboards-observability/public/components/explorer/sidebar/__tests__/field.test.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/field.test.tsx @@ -8,7 +8,7 @@ import Adapter from 'enzyme-adapter-react-16'; import React from 'react'; import { waitFor } from '@testing-library/react'; import { Field } from '../field'; -import { AGENT_FIELD } from '../../../../../test/event_analytics_constants'; +import { AGENT_FIELD } from '../../../../../../test/event_analytics_constants'; describe('Field component', () => { configure({ adapter: new Adapter() }); diff --git a/dashboards-observability/public/components/explorer/sidebar/__tests__/sidebar.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/sidebar.test.tsx similarity index 95% rename from dashboards-observability/public/components/explorer/sidebar/__tests__/sidebar.test.tsx rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/sidebar.test.tsx index 0e8e23ec4..6e1b9c5c7 100644 --- a/dashboards-observability/public/components/explorer/sidebar/__tests__/sidebar.test.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/sidebar.test.tsx @@ -13,13 +13,13 @@ import { AVAILABLE_FIELDS, UNSELECTED_FIELDS, QUERIED_FIELDS -} from '../../../../../common/constants/explorer'; +} from '../../../../../../common/constants/explorer'; import { AVAILABLE_FIELDS as SIDEBAR_AVAILABLE_FIELDS, QUERY_FIELDS, JSON_DATA, JSON_DATA_ALL -} from '../../../../../test/event_analytics_constants'; +} from '../../../../../../test/event_analytics_constants'; describe('Siderbar component', () => { configure({ adapter: new Adapter() }); diff --git a/dashboards-observability/public/components/explorer/sidebar/field.tsx b/dashboards-observability/public/components/event_analytics/explorer/sidebar/field.tsx similarity index 96% rename from dashboards-observability/public/components/explorer/sidebar/field.tsx rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/field.tsx index 3b6b127ae..efeacf5c1 100644 --- a/dashboards-observability/public/components/explorer/sidebar/field.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/sidebar/field.tsx @@ -19,9 +19,9 @@ import { EuiFlexItem, EuiTitle, } from '@elastic/eui'; -import { FieldButton } from '../../common/field_button'; -import { FieldIcon } from '../../common/field_icon'; -import { IField } from '../../../../common/types/explorer'; +import { FieldButton } from '../../../common/field_button'; +import { FieldIcon } from '../../../common/field_icon'; +import { IField } from '../../../../../common/types/explorer'; import { FieldInsights } from './field_insights'; interface IFieldProps { diff --git a/dashboards-observability/public/components/explorer/sidebar/field_insights.tsx b/dashboards-observability/public/components/event_analytics/explorer/sidebar/field_insights.tsx similarity index 96% rename from dashboards-observability/public/components/explorer/sidebar/field_insights.tsx rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/field_insights.tsx index 90b3c958e..6a682cc5c 100644 --- a/dashboards-observability/public/components/explorer/sidebar/field_insights.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/sidebar/field_insights.tsx @@ -6,8 +6,8 @@ import React, { useMemo, useState, useContext, useEffect } from 'react'; import { indexOf, last } from 'lodash'; import { EuiFlexGroup, EuiFlexItem, EuiLink, EuiBasicTable } from '@elastic/eui'; -import { getIndexPatternFromRawQuery } from '../../../../common/utils/query_utils'; -import { TabContext } from '../hooks/use_tab_context'; +import { getIndexPatternFromRawQuery } from '../../../../../common/utils/query_utils'; +import { TabContext } from '../../hooks/use_tab_context'; export const FieldInsights = ({ field, query }: any) => { const { pplService } = useContext(TabContext); diff --git a/dashboards-observability/public/components/explorer/sidebar/index.ts b/dashboards-observability/public/components/event_analytics/explorer/sidebar/index.ts similarity index 100% rename from dashboards-observability/public/components/explorer/sidebar/index.ts rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/index.ts diff --git a/dashboards-observability/public/components/explorer/sidebar/sidebar.scss b/dashboards-observability/public/components/event_analytics/explorer/sidebar/sidebar.scss similarity index 100% rename from dashboards-observability/public/components/explorer/sidebar/sidebar.scss rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/sidebar.scss diff --git a/dashboards-observability/public/components/explorer/sidebar/sidebar.tsx b/dashboards-observability/public/components/event_analytics/explorer/sidebar/sidebar.tsx similarity index 99% rename from dashboards-observability/public/components/explorer/sidebar/sidebar.tsx rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/sidebar.tsx index be58d19b1..9a49ca926 100644 --- a/dashboards-observability/public/components/explorer/sidebar/sidebar.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/sidebar/sidebar.tsx @@ -12,7 +12,7 @@ import { i18n } from '@osd/i18n'; import { FormattedMessage, I18nProvider } from '@osd/i18n/react'; import { cssNumber } from 'jquery'; import { Field } from './field'; -import { IExplorerFields, IField } from '../../../../common/types/explorer'; +import { IExplorerFields, IField } from '../../../../../common/types/explorer'; interface ISidebarProps { explorerFields: IExplorerFields; diff --git a/dashboards-observability/public/components/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap similarity index 96% rename from dashboards-observability/public/components/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap rename to dashboards-observability/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap index af8ade96a..9c302d242 100644 --- a/dashboards-observability/public/components/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap +++ b/dashboards-observability/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap @@ -172,7 +172,7 @@ exports[`Time chart header component Renders Time chart header component 1`] = `