From 69c5cfec2bf41841271b403df551b89a178dbe1c Mon Sep 17 00:00:00 2001 From: Kate Patticha Date: Fri, 28 Jan 2022 22:01:02 +0100 Subject: [PATCH] [APM] Convert all apm files to follow snake convention (#123648) * [APM] Convert all apm files to follow snake convention * Fix uppecase filename * Fix broken paths in api integration tests * Fix uppercase filenames * Disable import/no-extraneous-dependencies eslint error --- src/dev/precommit_hook/casing_check_config.js | 3 - .../get_anomaly_detection_setup_state.ts | 2 +- .../public/application/application.test.tsx | 6 +- .../plugins/apm/public/application/index.tsx | 6 +- .../application/{uxApp.tsx => ux_app.tsx} | 4 +- .../error_count_alert_trigger.stories.tsx | 2 +- .../error_count_alert_trigger/index.tsx | 2 +- .../components/alerting/fields.test.tsx | 2 +- .../index.tsx | 2 +- .../index.tsx | 2 +- .../index.tsx | 2 +- .../failed_transactions_correlations.tsx | 2 +- ..._failed_transactions_correlations.test.tsx | 2 +- .../use_failed_transactions_correlations.ts | 2 +- .../use_latency_correlations.test.tsx | 2 +- .../correlations/use_latency_correlations.ts | 2 +- .../{ErrorTabs.tsx => error_tabs.tsx} | 0 .../detail_view/index.test.tsx | 2 +- .../error_group_details/detail_view/index.tsx | 4 +- .../index.stories.tsx | 2 +- .../{Distribution => distribution}/index.tsx | 2 +- .../app/error_group_details/index.tsx | 4 +- .../error_group_list/index.tsx | 2 +- .../app/error_group_overview/index.tsx | 4 +- ...e.tsx => scroll_to_top_on_path_change.tsx} | 0 .../app/rum_dashboard/hooks/use_call_api.ts | 2 +- .../app/rum_dashboard/ux_overview_fetchers.ts | 4 +- ...ip.stories.tsx => map_tooltip.stories.tsx} | 0 .../app/service_inventory/index.tsx | 2 +- .../__fixtures__/service_api_mock_data.ts | 2 +- .../{HealthBadge.tsx => health_badge.tsx} | 0 .../service_inventory/service_list/index.tsx | 4 +- .../components/app/service_logs/index.tsx | 2 +- .../app/service_map/__stories__/centerer.tsx | 2 +- ...cape.stories.tsx => cytoscape.stories.tsx} | 4 +- .../cytoscape_example_data.stories.tsx | 2 +- .../{Controls.test.tsx => controls.test.tsx} | 4 +- .../{Controls.tsx => controls.tsx} | 2 +- .../{Cytoscape.tsx => cytoscape.tsx} | 0 .../app/service_map/empty_banner.test.tsx | 6 +- .../{EmptyBanner.tsx => empty_banner.tsx} | 2 +- .../components/app/service_map/index.tsx | 10 +-- .../anomaly_detection.tsx | 0 .../{Popover => popover}/backend_contents.tsx | 2 +- .../externals_list_contents.tsx | 0 .../{Popover => popover}/index.tsx | 2 +- .../popover.stories.tsx} | 6 +- .../{Popover => popover}/popover.test.tsx | 2 +- .../resource_contents.tsx | 0 .../{Popover => popover}/service_contents.tsx | 2 +- .../{Popover => popover}/stats_list.tsx | 2 +- ...RefDimensions.ts => use_ref_dimensions.ts} | 0 .../get_columns.tsx | 2 +- .../service_overview_errors_table/index.tsx | 2 +- ...ice_overview_instances_chart_and_table.tsx | 2 +- .../get_columns.tsx | 2 +- .../index.tsx | 2 +- .../instance_actions_menu/menu_sections.ts | 2 +- .../instance_details.test.tsx | 4 +- .../intance_details.tsx | 2 +- .../app/service_profiling/index.tsx | 2 +- .../index.stories.tsx | 4 +- .../index.tsx | 4 +- .../service_page/form_row_select.tsx} | 0 .../service_page/service_page.tsx} | 2 +- .../settings_page/save_config.ts} | 2 +- .../settings_page/setting_form_row.tsx} | 0 .../settings_page/settings_page.tsx} | 4 +- .../agent_configurations/index.tsx | 2 +- .../list/confirm_delete_modal.tsx} | 2 +- .../agent_configurations/list}/index.tsx | 4 +- .../agent_keys/agent_keys_table.tsx | 0 .../agent_keys/confirm_delete_modal.tsx | 2 +- .../agent_keys/create_agent_key.tsx | 2 +- .../create_agent_key/agent_key_callout.tsx | 0 .../agent_keys/index.tsx | 0 .../prompts/api_keys_not_enabled.tsx | 0 .../agent_keys/prompts/permission_denied.tsx | 0 .../anomaly_detection/add_environments.tsx | 2 +- .../anomaly_detection/create_jobs.ts | 2 +- .../anomaly_detection/index.tsx | 2 +- .../anomaly_detection/jobs_list.tsx | 2 +- .../anomaly_detection/jobs_list_status.tsx | 0 .../apm_indices}/index.test.tsx | 0 .../apm_indices}/index.tsx | 4 +- .../create_custom_link_button.tsx} | 0 .../delete_button.test.tsx} | 4 +- .../delete_button.tsx} | 2 +- .../documentation.tsx} | 0 .../filters_section.tsx} | 0 .../flyout_footer.tsx} | 2 +- .../helper.test.ts | 0 .../create_edit_custom_link_flyout/helper.ts | 0 .../create_edit_custom_link_flyout/index.tsx | 10 +-- .../link_preview.stories.tsx | 4 +- .../link_preview.test.tsx | 0 .../link_preview.tsx | 2 +- .../link_section.tsx} | 2 +- .../save_custom_link.ts} | 2 +- .../custom_link/custom_link_table.tsx | 0 .../custom_link/empty_prompt.tsx} | 2 +- .../custom_link/index.test.tsx | 6 +- .../custom_link/index.tsx | 4 +- .../schema/blog_rocket_720x420.png} | Bin .../schema/confirm_switch_modal.tsx | 0 .../{Settings => settings}/schema/index.tsx | 4 +- .../schema/migrated/card_footer_content.tsx | 0 .../migrated/successful_migration_card.tsx | 0 .../migrated/upgrade_available_card.tsx | 0 .../schema/migration_in_progress_panel.tsx | 0 .../schema/schema.stories.tsx | 4 +- .../schema/schema_overview.tsx | 2 +- .../get_redirect_to_trace_page_url.ts | 0 ...ect_to_transaction_detail_page_url.test.ts | 0 ...redirect_to_transaction_detail_page_url.ts | 0 .../app/{TraceLink => trace_link}/index.tsx | 0 .../trace_link.test.tsx | 0 .../components/app/trace_overview/index.tsx | 2 +- .../app/trace_overview/trace_list.tsx | 2 +- .../waterfall_helpers/waterfall_helpers.ts | 2 +- .../waterfall_container.stories.data.ts | 2 +- .../waterfall_container.test.tsx | 2 +- .../components/app/transaction_link/index.tsx | 2 +- .../transaction_overview.test.tsx | 2 +- .../components/routing/apm_route_config.tsx | 2 +- .../public/components/routing/app_root.tsx | 2 +- .../create_agent_configuration_route_view.tsx | 2 +- .../edit_agent_configuration_route_view.tsx | 2 +- .../components/routing/settings/index.tsx | 12 ++-- .../shared/agent_icon/get_agent_icon.ts | 2 +- .../icons/{dot-net.svg => dot_net.svg} | 0 .../failed_transaction_rate_chart/index.tsx | 2 +- .../helper/get_alert_annotations.test.tsx | 2 +- .../charts/helper/get_alert_annotations.tsx | 2 +- .../custom_tooltip.stories.tsx | 2 +- .../custom_tooltip.tsx | 2 +- .../index.tsx | 2 +- .../latency_chart/latency_chart.stories.tsx | 2 +- .../shared/charts/metrics_chart/index.tsx | 2 +- ...e.test.tsx.snap => timeline.test.tsx.snap} | 0 .../timeline/marker/error_marker.test.tsx | 2 +- .../{Timeline.test.tsx => timeline.test.tsx} | 2 +- .../components/shared/date_picker/index.tsx | 2 +- .../key_value_filter_list.test.tsx | 2 +- .../shared/key_value_table/index.tsx | 2 +- .../key_value_table/key_value_table.test.tsx | 2 +- .../shared/license_prompt/index.tsx | 2 +- .../{APMLink.test.tsx => apm_link.test.tsx} | 2 +- .../shared/links/apm/apn_link.test.tsx | 60 ++++++++++++++++++ .../discover_links.integration.test.tsx | 2 +- .../shared/links/infra_link.test.tsx | 2 +- .../mlexplorer_link.test.tsx | 2 +- .../mlmanage_jobs_link.test.tsx | 2 +- .../mlsingle_metric_link.test.tsx | 2 +- .../metadata_table/metadata_table.test.tsx | 2 +- .../shared/metadata_table/section.test.tsx | 2 +- .../components/shared/search_bar.test.tsx | 2 +- .../shared/service_icons/cloud_details.tsx | 2 +- .../service_icons/container_details.tsx | 2 +- .../shared/service_icons/index.test.tsx | 2 +- .../shared/service_icons/service_details.tsx | 2 +- .../service_icons/service_icons.stories.tsx | 2 +- .../stacktrace/cause_stacktrace.test.tsx | 2 +- .../stacktrace/{Context.tsx => context.tsx} | 0 .../shared/stacktrace/frame_heading.test.tsx | 2 +- .../components/shared/stacktrace/index.tsx | 2 +- .../stacktrace/library_stacktrace.test.tsx | 2 +- .../shared/stacktrace/library_stacktrace.tsx | 2 +- ...tackframe.test.tsx => stackframe.test.tsx} | 4 +- .../{Stackframe.tsx => stackframe.tsx} | 4 +- .../{Variables.tsx => variables.tsx} | 2 +- .../sticky_properties.test.tsx | 2 +- .../suggestions_select.stories.tsx | 2 +- .../error_count_summary_item_badge.test.tsx | 2 +- .../http_status_badge.test.tsx | 2 +- .../summary/http_status_badge/index.tsx | 2 +- .../summary/user_agent_summary_item.test.tsx | 2 +- .../shared/time_comparison/index.test.tsx | 2 +- .../shared/timestamp_tooltip/index.test.tsx | 2 +- .../{mockData.ts => mock_data.ts} | 0 .../custom_link_list.test.tsx | 2 +- .../custom_link_toolbar.test.tsx | 2 +- .../custom_link_menu_section/index.test.tsx | 2 +- .../custom_link_menu_section/index.tsx | 4 +- .../transaction_action_menu.test.tsx | 6 +- .../shared/transactions_table/get_columns.tsx | 2 +- .../shared/transactions_table/index.tsx | 2 +- .../anomaly_detection_jobs_context.tsx | 2 +- .../apm_plugin/mock_apm_plugin_context.tsx | 2 +- .../apm_service/apm_service_context.tsx | 2 +- ...n.tsx => invalid_license_notification.tsx} | 2 +- .../context/license/license_context.tsx | 2 +- .../url_params_context/url_params_context.tsx | 2 +- ...gueEntry.ts => feature_catalogue_entry.ts} | 0 ...dentity.ts => use_deep_object_identity.ts} | 0 .../hooks/use_fetcher.integration.test.tsx | 2 +- .../apm/public/hooks/use_fetcher.test.tsx | 2 +- .../plugins/apm/public/hooks/use_fetcher.tsx | 2 +- .../{useKibanaUrl.ts => use_kibana_url.ts} | 0 ...seLocalStorage.ts => use_local_storage.ts} | 0 .../use_service_metric_charts_fetcher.ts | 2 +- ...g => apm_ml_anomaly_detection_example.png} | Bin x-pack/plugins/apm/public/plugin.ts | 8 +-- .../selectors/latency_chart_selectors.ts | 2 +- .../{callApi.test.ts => call_api.test.ts} | 4 +- ...allApmApi.test.ts => call_apm_api.test.ts} | 4 +- ...pm_observability_overview_fetchers.test.ts | 2 +- .../apm_observability_overview_fetchers.ts | 2 +- .../services/rest/{callApi.ts => call_api.ts} | 0 .../{callApmApiSpy.ts => call_apm_api_spy.ts} | 4 +- ...teCallApmApi.ts => create_call_apm_api.ts} | 2 +- .../apm/public/services/rest/data_view.ts | 2 +- ...HelpExtension.ts => set_help_extension.ts} | 0 .../config_agent/config_agent.stories.tsx | 2 +- .../config_agent/get_policy_options.test.ts | 2 +- .../tutorial/config_agent/index.test.tsx | 2 +- .../public/tutorial/config_agent/index.tsx | 2 +- .../tutorial/tutorial_apm_fleet_check.ts | 2 +- .../tutorial_fleet_instructions/index.tsx | 2 +- .../{updateBadge.ts => update_badge.ts} | 0 ...nObject.test.ts => flatten_object.test.ts} | 2 +- .../{flattenObject.ts => flatten_object.ts} | 0 ...oColor.ts => http_status_code_to_color.ts} | 0 .../{testHelpers.tsx => test_helpers.tsx} | 3 + .../common/apm_api_supertest.ts | 2 +- .../dependencies/top_dependencies.spec.ts | 2 +- .../tests/errors/distribution.spec.ts | 2 +- .../tests/errors/error_group_list.spec.ts | 2 +- .../tests/errors/group_id.spec.ts | 2 +- .../dependencies/index.spec.ts | 2 +- .../service_overview/instance_details.spec.ts | 2 +- .../instances_detailed_statistics.spec.ts | 2 +- .../instances_main_statistics.spec.ts | 2 +- .../services/derived_annotations.spec.ts | 2 +- .../error_groups_detailed_statistics.spec.ts | 2 +- .../error_groups_main_statistics.spec.ts | 2 +- .../services_detailed_statistics.spec.ts | 2 +- .../tests/services/throughput.spec.ts | 2 +- .../tests/services/top_services.spec.ts | 2 +- .../tests/transactions/error_rate.spec.ts | 2 +- .../tests/transactions/latency.spec.ts | 2 +- .../tests/transactions/trace_samples.spec.ts | 2 +- ...actions_groups_detailed_statistics.spec.ts | 2 +- ...ransactions_groups_main_statistics.spec.ts | 2 +- 244 files changed, 307 insertions(+), 247 deletions(-) rename x-pack/plugins/apm/public/application/{uxApp.tsx => ux_app.tsx} (98%) rename x-pack/plugins/apm/public/components/app/error_group_details/detail_view/{ErrorTabs.tsx => error_tabs.tsx} (100%) rename x-pack/plugins/apm/public/components/app/error_group_details/{Distribution => distribution}/index.stories.tsx (98%) rename x-pack/plugins/apm/public/components/app/error_group_details/{Distribution => distribution}/index.tsx (98%) rename x-pack/plugins/apm/public/components/app/main/{ScrollToTopOnPathChange.tsx => scroll_to_top_on_path_change.tsx} (100%) rename x-pack/plugins/apm/public/components/app/rum_dashboard/visitor_breakdown_map/__stories__/{MapTooltip.stories.tsx => map_tooltip.stories.tsx} (100%) rename x-pack/plugins/apm/public/components/app/service_inventory/service_list/{HealthBadge.tsx => health_badge.tsx} (100%) rename x-pack/plugins/apm/public/components/app/service_map/__stories__/{Cytoscape.stories.tsx => cytoscape.stories.tsx} (96%) rename x-pack/plugins/apm/public/components/app/service_map/{Controls.test.tsx => controls.test.tsx} (95%) rename x-pack/plugins/apm/public/components/app/service_map/{Controls.tsx => controls.tsx} (99%) rename x-pack/plugins/apm/public/components/app/service_map/{Cytoscape.tsx => cytoscape.tsx} (100%) rename x-pack/plugins/apm/public/components/app/service_map/{EmptyBanner.tsx => empty_banner.tsx} (98%) rename x-pack/plugins/apm/public/components/app/service_map/{Popover => popover}/anomaly_detection.tsx (100%) rename x-pack/plugins/apm/public/components/app/service_map/{Popover => popover}/backend_contents.tsx (97%) rename x-pack/plugins/apm/public/components/app/service_map/{Popover => popover}/externals_list_contents.tsx (100%) rename x-pack/plugins/apm/public/components/app/service_map/{Popover => popover}/index.tsx (99%) rename x-pack/plugins/apm/public/components/app/service_map/{Popover/Popover.stories.tsx => popover/popover.stories.tsx} (98%) rename x-pack/plugins/apm/public/components/app/service_map/{Popover => popover}/popover.test.tsx (97%) rename x-pack/plugins/apm/public/components/app/service_map/{Popover => popover}/resource_contents.tsx (100%) rename x-pack/plugins/apm/public/components/app/service_map/{Popover => popover}/service_contents.tsx (97%) rename x-pack/plugins/apm/public/components/app/service_map/{Popover => popover}/stats_list.tsx (98%) rename x-pack/plugins/apm/public/components/app/service_map/{useRefDimensions.ts => use_ref_dimensions.ts} (100%) rename x-pack/plugins/apm/public/components/app/{Settings/agent_configurations/AgentConfigurationCreateEdit => settings/agent_configurations/agent_configuration_create_edit}/index.stories.tsx (95%) rename x-pack/plugins/apm/public/components/app/{Settings/agent_configurations/AgentConfigurationCreateEdit => settings/agent_configurations/agent_configuration_create_edit}/index.tsx (97%) rename x-pack/plugins/apm/public/components/app/{Settings/agent_configurations/AgentConfigurationCreateEdit/ServicePage/FormRowSelect.tsx => settings/agent_configurations/agent_configuration_create_edit/service_page/form_row_select.tsx} (100%) rename x-pack/plugins/apm/public/components/app/{Settings/agent_configurations/AgentConfigurationCreateEdit/ServicePage/ServicePage.tsx => settings/agent_configurations/agent_configuration_create_edit/service_page/service_page.tsx} (99%) rename x-pack/plugins/apm/public/components/app/{Settings/agent_configurations/AgentConfigurationCreateEdit/SettingsPage/saveConfig.ts => settings/agent_configurations/agent_configuration_create_edit/settings_page/save_config.ts} (99%) rename x-pack/plugins/apm/public/components/app/{Settings/agent_configurations/AgentConfigurationCreateEdit/SettingsPage/SettingFormRow.tsx => settings/agent_configurations/agent_configuration_create_edit/settings_page/setting_form_row.tsx} (100%) rename x-pack/plugins/apm/public/components/app/{Settings/agent_configurations/AgentConfigurationCreateEdit/SettingsPage/SettingsPage.tsx => settings/agent_configurations/agent_configuration_create_edit/settings_page/settings_page.tsx} (98%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/agent_configurations/index.tsx (98%) rename x-pack/plugins/apm/public/components/app/{Settings/agent_configurations/List/ConfirmDeleteModal.tsx => settings/agent_configurations/list/confirm_delete_modal.tsx} (98%) rename x-pack/plugins/apm/public/components/app/{Settings/agent_configurations/List => settings/agent_configurations/list}/index.tsx (98%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/agent_keys/agent_keys_table.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/agent_keys/confirm_delete_modal.tsx (96%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/agent_keys/create_agent_key.tsx (99%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/agent_keys/create_agent_key/agent_key_callout.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/agent_keys/index.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/agent_keys/prompts/api_keys_not_enabled.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/agent_keys/prompts/permission_denied.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/anomaly_detection/add_environments.tsx (98%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/anomaly_detection/create_jobs.ts (96%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/anomaly_detection/index.tsx (97%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/anomaly_detection/jobs_list.tsx (99%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/anomaly_detection/jobs_list_status.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings/ApmIndices => settings/apm_indices}/index.test.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings/ApmIndices => settings/apm_indices}/index.tsx (98%) rename x-pack/plugins/apm/public/components/app/{Settings/custom_link/CreateCustomLinkButton.tsx => settings/custom_link/create_custom_link_button.tsx} (100%) rename x-pack/plugins/apm/public/components/app/{Settings/custom_link/create_edit_custom_link_flyout/DeleteButton.test.tsx => settings/custom_link/create_edit_custom_link_flyout/delete_button.test.tsx} (91%) rename x-pack/plugins/apm/public/components/app/{Settings/custom_link/create_edit_custom_link_flyout/DeleteButton.tsx => settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx} (96%) rename x-pack/plugins/apm/public/components/app/{Settings/custom_link/create_edit_custom_link_flyout/Documentation.tsx => settings/custom_link/create_edit_custom_link_flyout/documentation.tsx} (100%) rename x-pack/plugins/apm/public/components/app/{Settings/custom_link/create_edit_custom_link_flyout/FiltersSection.tsx => settings/custom_link/create_edit_custom_link_flyout/filters_section.tsx} (100%) rename x-pack/plugins/apm/public/components/app/{Settings/custom_link/create_edit_custom_link_flyout/FlyoutFooter.tsx => settings/custom_link/create_edit_custom_link_flyout/flyout_footer.tsx} (97%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/custom_link/create_edit_custom_link_flyout/helper.test.ts (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/custom_link/create_edit_custom_link_flyout/helper.ts (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/custom_link/create_edit_custom_link_flyout/index.tsx (93%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/custom_link/create_edit_custom_link_flyout/link_preview.stories.tsx (92%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/custom_link/create_edit_custom_link_flyout/link_preview.test.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/custom_link/create_edit_custom_link_flyout/link_preview.tsx (98%) rename x-pack/plugins/apm/public/components/app/{Settings/custom_link/create_edit_custom_link_flyout/LinkSection.tsx => settings/custom_link/create_edit_custom_link_flyout/link_section.tsx} (98%) rename x-pack/plugins/apm/public/components/app/{Settings/custom_link/create_edit_custom_link_flyout/saveCustomLink.ts => settings/custom_link/create_edit_custom_link_flyout/save_custom_link.ts} (95%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/custom_link/custom_link_table.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings/custom_link/EmptyPrompt.tsx => settings/custom_link/empty_prompt.tsx} (94%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/custom_link/index.test.tsx (99%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/custom_link/index.tsx (97%) rename x-pack/plugins/apm/public/components/app/{Settings/schema/blog-rocket-720x420.png => settings/schema/blog_rocket_720x420.png} (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/schema/confirm_switch_modal.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/schema/index.tsx (97%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/schema/migrated/card_footer_content.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/schema/migrated/successful_migration_card.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/schema/migrated/upgrade_available_card.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/schema/migration_in_progress_panel.tsx (100%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/schema/schema.stories.tsx (98%) rename x-pack/plugins/apm/public/components/app/{Settings => settings}/schema/schema_overview.tsx (99%) rename x-pack/plugins/apm/public/components/app/{TraceLink => trace_link}/get_redirect_to_trace_page_url.ts (100%) rename x-pack/plugins/apm/public/components/app/{TraceLink => trace_link}/get_redirect_to_transaction_detail_page_url.test.ts (100%) rename x-pack/plugins/apm/public/components/app/{TraceLink => trace_link}/get_redirect_to_transaction_detail_page_url.ts (100%) rename x-pack/plugins/apm/public/components/app/{TraceLink => trace_link}/index.tsx (100%) rename x-pack/plugins/apm/public/components/app/{TraceLink => trace_link}/trace_link.test.tsx (100%) rename x-pack/plugins/apm/public/components/shared/agent_icon/icons/{dot-net.svg => dot_net.svg} (100%) rename x-pack/plugins/apm/public/components/shared/charts/timeline/__snapshots__/{Timeline.test.tsx.snap => timeline.test.tsx.snap} (100%) rename x-pack/plugins/apm/public/components/shared/charts/timeline/{Timeline.test.tsx => timeline.test.tsx} (97%) rename x-pack/plugins/apm/public/components/shared/links/apm/{APMLink.test.tsx => apm_link.test.tsx} (97%) create mode 100644 x-pack/plugins/apm/public/components/shared/links/apm/apn_link.test.tsx rename x-pack/plugins/apm/public/components/shared/stacktrace/{Context.tsx => context.tsx} (100%) rename x-pack/plugins/apm/public/components/shared/stacktrace/{Stackframe.test.tsx => stackframe.test.tsx} (94%) rename x-pack/plugins/apm/public/components/shared/stacktrace/{Stackframe.tsx => stackframe.tsx} (96%) rename x-pack/plugins/apm/public/components/shared/stacktrace/{Variables.tsx => variables.tsx} (96%) rename x-pack/plugins/apm/public/components/shared/transaction_action_menu/__fixtures__/{mockData.ts => mock_data.ts} (100%) rename x-pack/plugins/apm/public/context/license/{Invalid_license_notification.tsx => invalid_license_notification.tsx} (95%) rename x-pack/plugins/apm/public/{featureCatalogueEntry.ts => feature_catalogue_entry.ts} (100%) rename x-pack/plugins/apm/public/hooks/{useDeepObjectIdentity.ts => use_deep_object_identity.ts} (100%) rename x-pack/plugins/apm/public/hooks/{useKibanaUrl.ts => use_kibana_url.ts} (100%) rename x-pack/plugins/apm/public/hooks/{useLocalStorage.ts => use_local_storage.ts} (100%) rename x-pack/plugins/apm/public/images/{apm-ml-anomaly-detection-example.png => apm_ml_anomaly_detection_example.png} (100%) rename x-pack/plugins/apm/public/services/{callApi.test.ts => call_api.test.ts} (98%) rename x-pack/plugins/apm/public/services/{callApmApi.test.ts => call_apm_api.test.ts} (93%) rename x-pack/plugins/apm/public/services/rest/{callApi.ts => call_api.ts} (100%) rename x-pack/plugins/apm/public/services/rest/{callApmApiSpy.ts => call_apm_api_spy.ts} (84%) rename x-pack/plugins/apm/public/services/rest/{createCallApmApi.ts => create_call_apm_api.ts} (98%) rename x-pack/plugins/apm/public/{setHelpExtension.ts => set_help_extension.ts} (100%) rename x-pack/plugins/apm/public/{updateBadge.ts => update_badge.ts} (100%) rename x-pack/plugins/apm/public/utils/{flattenObject.test.ts => flatten_object.test.ts} (96%) rename x-pack/plugins/apm/public/utils/{flattenObject.ts => flatten_object.ts} (100%) rename x-pack/plugins/apm/public/utils/{httpStatusCodeToColor.ts => http_status_code_to_color.ts} (100%) rename x-pack/plugins/apm/public/utils/{testHelpers.tsx => test_helpers.tsx} (97%) diff --git a/src/dev/precommit_hook/casing_check_config.js b/src/dev/precommit_hook/casing_check_config.js index e885180cdb8037..3eba9ffa4e7ad4 100644 --- a/src/dev/precommit_hook/casing_check_config.js +++ b/src/dev/precommit_hook/casing_check_config.js @@ -58,9 +58,6 @@ export const IGNORE_FILE_GLOBS = [ // filename must match upstream filenames from lodash 'packages/elastic-safer-lodash-set/**/*', - // TODO fix file names in APM to remove these - 'x-pack/plugins/apm/public/**/*', - 'x-pack/plugins/maps/server/fonts/**/*', // Bazel default files diff --git a/x-pack/plugins/apm/common/anomaly_detection/get_anomaly_detection_setup_state.ts b/x-pack/plugins/apm/common/anomaly_detection/get_anomaly_detection_setup_state.ts index 9ca8ddbe437fea..de4917ba37d5da 100644 --- a/x-pack/plugins/apm/common/anomaly_detection/get_anomaly_detection_setup_state.ts +++ b/x-pack/plugins/apm/common/anomaly_detection/get_anomaly_detection_setup_state.ts @@ -7,7 +7,7 @@ // eslint-disable-next-line @kbn/eslint/no-restricted-paths import { FETCH_STATUS } from '../../public/hooks/use_fetcher'; // eslint-disable-next-line @kbn/eslint/no-restricted-paths -import type { APIReturnType } from '../../public/services/rest/createCallApmApi'; +import type { APIReturnType } from '../../public/services/rest/create_call_apm_api'; import { ENVIRONMENT_ALL } from '../environment_filter_values'; export enum AnomalyDetectionSetupState { diff --git a/x-pack/plugins/apm/public/application/application.test.tsx b/x-pack/plugins/apm/public/application/application.test.tsx index 982e279a2d65d4..5ea9b6999483e6 100644 --- a/x-pack/plugins/apm/public/application/application.test.tsx +++ b/x-pack/plugins/apm/public/application/application.test.tsx @@ -13,10 +13,10 @@ import { createMemoryHistory } from 'history'; import { Observable } from 'rxjs'; import { AppMountParameters, DocLinksStart, HttpStart } from 'src/core/public'; import { mockApmPluginContextValue } from '../context/apm_plugin/mock_apm_plugin_context'; -import { createCallApmApi } from '../services/rest/createCallApmApi'; +import { createCallApmApi } from '../services/rest/create_call_apm_api'; import { renderApp as renderApmApp } from './'; -import { UXAppRoot } from './uxApp'; -import { disableConsoleWarning } from '../utils/testHelpers'; +import { UXAppRoot } from './ux_app'; +import { disableConsoleWarning } from '../utils/test_helpers'; import { dataPluginMock } from 'src/plugins/data/public/mocks'; import { embeddablePluginMock } from 'src/plugins/embeddable/public/mocks'; import { ApmPluginSetupDeps, ApmPluginStartDeps } from '../plugin'; diff --git a/x-pack/plugins/apm/public/application/index.tsx b/x-pack/plugins/apm/public/application/index.tsx index a59865adfa168a..5fd8697a1352b8 100644 --- a/x-pack/plugins/apm/public/application/index.tsx +++ b/x-pack/plugins/apm/public/application/index.tsx @@ -16,10 +16,10 @@ import { APP_WRAPPER_CLASS, } from '../../../../../src/core/public'; import { ApmPluginSetupDeps, ApmPluginStartDeps } from '../plugin'; -import { createCallApmApi } from '../services/rest/createCallApmApi'; +import { createCallApmApi } from '../services/rest/create_call_apm_api'; import { createStaticDataView } from '../services/rest/data_view'; -import { setHelpExtension } from '../setHelpExtension'; -import { setReadonlyBadge } from '../updateBadge'; +import { setHelpExtension } from '../set_help_extension'; +import { setReadonlyBadge } from '../update_badge'; import { ApmAppRoot } from '../components/routing/app_root'; import { KibanaThemeProvider } from '../../../../../src/plugins/kibana_react/public'; diff --git a/x-pack/plugins/apm/public/application/uxApp.tsx b/x-pack/plugins/apm/public/application/ux_app.tsx similarity index 98% rename from x-pack/plugins/apm/public/application/uxApp.tsx rename to x-pack/plugins/apm/public/application/ux_app.tsx index 259db1885935b5..982b3b7210ee68 100644 --- a/x-pack/plugins/apm/public/application/uxApp.tsx +++ b/x-pack/plugins/apm/public/application/ux_app.tsx @@ -21,7 +21,7 @@ import { useUiSetting$, } from '../../../../../src/plugins/kibana_react/public'; import { APMRouteDefinition } from '../application/routes'; -import { ScrollToTopOnPathChange } from '../components/app/main/ScrollToTopOnPathChange'; +import { ScrollToTopOnPathChange } from '../components/app/main/scroll_to_top_on_path_change'; import { RumHome, DASHBOARD_LABEL, @@ -30,7 +30,7 @@ import { ApmPluginContext } from '../context/apm_plugin/apm_plugin_context'; import { UrlParamsProvider } from '../context/url_params_context/url_params_context'; import { ConfigSchema } from '../index'; import { ApmPluginSetupDeps, ApmPluginStartDeps } from '../plugin'; -import { createCallApmApi } from '../services/rest/createCallApmApi'; +import { createCallApmApi } from '../services/rest/create_call_apm_api'; import { createStaticDataView } from '../services/rest/data_view'; import { UXActionMenu } from '../components/app/rum_dashboard/action_menu'; import { redirectTo } from '../components/routing/redirect_to'; diff --git a/x-pack/plugins/apm/public/components/alerting/error_count_alert_trigger/error_count_alert_trigger.stories.tsx b/x-pack/plugins/apm/public/components/alerting/error_count_alert_trigger/error_count_alert_trigger.stories.tsx index f1279674ed87f8..3f3eb0becdc26b 100644 --- a/x-pack/plugins/apm/public/components/alerting/error_count_alert_trigger/error_count_alert_trigger.stories.tsx +++ b/x-pack/plugins/apm/public/components/alerting/error_count_alert_trigger/error_count_alert_trigger.stories.tsx @@ -11,7 +11,7 @@ import { RuleParams, ErrorCountAlertTrigger } from '.'; import { CoreStart } from '../../../../../../../src/core/public'; import { createKibanaReactContext } from '../../../../../../../src/plugins/kibana_react/public'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; -import { createCallApmApi } from '../../../services/rest/createCallApmApi'; +import { createCallApmApi } from '../../../services/rest/create_call_apm_api'; import { AlertMetadata } from '../helper'; diff --git a/x-pack/plugins/apm/public/components/alerting/error_count_alert_trigger/index.tsx b/x-pack/plugins/apm/public/components/alerting/error_count_alert_trigger/index.tsx index e2ea395426fa3c..5a59a6902b3687 100644 --- a/x-pack/plugins/apm/public/components/alerting/error_count_alert_trigger/index.tsx +++ b/x-pack/plugins/apm/public/components/alerting/error_count_alert_trigger/index.tsx @@ -14,7 +14,7 @@ import { ForLastExpression } from '../../../../../triggers_actions_ui/public'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; import { asInteger } from '../../../../common/utils/formatters'; import { useFetcher } from '../../../hooks/use_fetcher'; -import { createCallApmApi } from '../../../services/rest/createCallApmApi'; +import { createCallApmApi } from '../../../services/rest/create_call_apm_api'; import { ChartPreview } from '../chart_preview'; import { EnvironmentField, IsAboveField, ServiceField } from '../fields'; import { AlertMetadata, getIntervalAndTimeRange, TimeUnit } from '../helper'; diff --git a/x-pack/plugins/apm/public/components/alerting/fields.test.tsx b/x-pack/plugins/apm/public/components/alerting/fields.test.tsx index c379418ad03f82..c8b0f1a348ff84 100644 --- a/x-pack/plugins/apm/public/components/alerting/fields.test.tsx +++ b/x-pack/plugins/apm/public/components/alerting/fields.test.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { ServiceField, TransactionTypeField } from './fields'; import { render } from '@testing-library/react'; -import { expectTextsInDocument } from '../../utils/testHelpers'; +import { expectTextsInDocument } from '../../utils/test_helpers'; describe('alerting fields', () => { describe('Service Field', () => { diff --git a/x-pack/plugins/apm/public/components/alerting/transaction_duration_alert_trigger/index.tsx b/x-pack/plugins/apm/public/components/alerting/transaction_duration_alert_trigger/index.tsx index 1c45d9f22d7c75..dceb8bf7ff07c5 100644 --- a/x-pack/plugins/apm/public/components/alerting/transaction_duration_alert_trigger/index.tsx +++ b/x-pack/plugins/apm/public/components/alerting/transaction_duration_alert_trigger/index.tsx @@ -15,7 +15,7 @@ import { ForLastExpression } from '../../../../../triggers_actions_ui/public'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; import { getDurationFormatter } from '../../../../common/utils/formatters'; import { useFetcher } from '../../../hooks/use_fetcher'; -import { createCallApmApi } from '../../../services/rest/createCallApmApi'; +import { createCallApmApi } from '../../../services/rest/create_call_apm_api'; import { getMaxY, getResponseTimeTickFormatter, diff --git a/x-pack/plugins/apm/public/components/alerting/transaction_duration_anomaly_alert_trigger/index.tsx b/x-pack/plugins/apm/public/components/alerting/transaction_duration_anomaly_alert_trigger/index.tsx index b47b0b9f323de2..628ba40f20efd4 100644 --- a/x-pack/plugins/apm/public/components/alerting/transaction_duration_anomaly_alert_trigger/index.tsx +++ b/x-pack/plugins/apm/public/components/alerting/transaction_duration_anomaly_alert_trigger/index.tsx @@ -12,7 +12,7 @@ import { CoreStart } from '../../../../../../../src/core/public'; import { useKibana } from '../../../../../../../src/plugins/kibana_react/public'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; import { ANOMALY_SEVERITY } from '../../../../common/ml_constants'; -import { createCallApmApi } from '../../../services/rest/createCallApmApi'; +import { createCallApmApi } from '../../../services/rest/create_call_apm_api'; import { EnvironmentField, ServiceField, diff --git a/x-pack/plugins/apm/public/components/alerting/transaction_error_rate_alert_trigger/index.tsx b/x-pack/plugins/apm/public/components/alerting/transaction_error_rate_alert_trigger/index.tsx index ae0a8d3d919689..8f638d6de75572 100644 --- a/x-pack/plugins/apm/public/components/alerting/transaction_error_rate_alert_trigger/index.tsx +++ b/x-pack/plugins/apm/public/components/alerting/transaction_error_rate_alert_trigger/index.tsx @@ -13,7 +13,7 @@ import { ForLastExpression } from '../../../../../triggers_actions_ui/public'; import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values'; import { asPercent } from '../../../../common/utils/formatters'; import { useFetcher } from '../../../hooks/use_fetcher'; -import { createCallApmApi } from '../../../services/rest/createCallApmApi'; +import { createCallApmApi } from '../../../services/rest/create_call_apm_api'; import { ChartPreview } from '../chart_preview'; import { EnvironmentField, diff --git a/x-pack/plugins/apm/public/components/app/correlations/failed_transactions_correlations.tsx b/x-pack/plugins/apm/public/components/app/correlations/failed_transactions_correlations.tsx index 2d09abc15f8540..f00487cdc40823 100644 --- a/x-pack/plugins/apm/public/components/app/correlations/failed_transactions_correlations.tsx +++ b/x-pack/plugins/apm/public/components/app/correlations/failed_transactions_correlations.tsx @@ -34,7 +34,7 @@ import { FailedTransactionsCorrelation } from '../../../../common/correlations/f import { FieldStats } from '../../../../common/correlations/field_stats_types'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; -import { useLocalStorage } from '../../../hooks/useLocalStorage'; +import { useLocalStorage } from '../../../hooks/use_local_storage'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; import { useTheme } from '../../../hooks/use_theme'; diff --git a/x-pack/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.test.tsx b/x-pack/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.test.tsx index d68c11f981a0f5..700339bfbb2afc 100644 --- a/x-pack/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.test.tsx +++ b/x-pack/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.test.tsx @@ -15,7 +15,7 @@ import { mockApmPluginContextValue, MockApmPluginContextWrapper, } from '../../../context/apm_plugin/mock_apm_plugin_context'; -import { delay } from '../../../utils/testHelpers'; +import { delay } from '../../../utils/test_helpers'; import { fromQuery } from '../../shared/links/url_helpers'; diff --git a/x-pack/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.ts b/x-pack/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.ts index ad71f564706168..41a2afada6e658 100644 --- a/x-pack/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.ts +++ b/x-pack/plugins/apm/public/components/app/correlations/use_failed_transactions_correlations.ts @@ -21,7 +21,7 @@ import type { FailedTransactionsCorrelationsResponse, } from '../../../../common/correlations/failed_transactions_correlations/types'; -import { callApmApi } from '../../../services/rest/createCallApmApi'; +import { callApmApi } from '../../../services/rest/create_call_apm_api'; import { getInitialResponse, diff --git a/x-pack/plugins/apm/public/components/app/correlations/use_latency_correlations.test.tsx b/x-pack/plugins/apm/public/components/app/correlations/use_latency_correlations.test.tsx index c2c5a63a2ab030..711577cecd6ef9 100644 --- a/x-pack/plugins/apm/public/components/app/correlations/use_latency_correlations.test.tsx +++ b/x-pack/plugins/apm/public/components/app/correlations/use_latency_correlations.test.tsx @@ -15,7 +15,7 @@ import { mockApmPluginContextValue, MockApmPluginContextWrapper, } from '../../../context/apm_plugin/mock_apm_plugin_context'; -import { delay } from '../../../utils/testHelpers'; +import { delay } from '../../../utils/test_helpers'; import { fromQuery } from '../../shared/links/url_helpers'; diff --git a/x-pack/plugins/apm/public/components/app/correlations/use_latency_correlations.ts b/x-pack/plugins/apm/public/components/app/correlations/use_latency_correlations.ts index f5958de43e383e..0e166344d0dec4 100644 --- a/x-pack/plugins/apm/public/components/app/correlations/use_latency_correlations.ts +++ b/x-pack/plugins/apm/public/components/app/correlations/use_latency_correlations.ts @@ -21,7 +21,7 @@ import type { LatencyCorrelationsResponse, } from '../../../../common/correlations/latency_correlations/types'; -import { callApmApi } from '../../../services/rest/createCallApmApi'; +import { callApmApi } from '../../../services/rest/create_call_apm_api'; import { getInitialResponse, diff --git a/x-pack/plugins/apm/public/components/app/error_group_details/detail_view/ErrorTabs.tsx b/x-pack/plugins/apm/public/components/app/error_group_details/detail_view/error_tabs.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/error_group_details/detail_view/ErrorTabs.tsx rename to x-pack/plugins/apm/public/components/app/error_group_details/detail_view/error_tabs.tsx diff --git a/x-pack/plugins/apm/public/components/app/error_group_details/detail_view/index.test.tsx b/x-pack/plugins/apm/public/components/app/error_group_details/detail_view/index.test.tsx index de0bf22d3209f9..c280f90f0c0fac 100644 --- a/x-pack/plugins/apm/public/components/app/error_group_details/detail_view/index.test.tsx +++ b/x-pack/plugins/apm/public/components/app/error_group_details/detail_view/index.test.tsx @@ -7,7 +7,7 @@ import { shallow } from 'enzyme'; import React from 'react'; -import { mockMoment } from '../../../../utils/testHelpers'; +import { mockMoment } from '../../../../utils/test_helpers'; import { DetailView } from './index'; describe('DetailView', () => { diff --git a/x-pack/plugins/apm/public/components/app/error_group_details/detail_view/index.tsx b/x-pack/plugins/apm/public/components/app/error_group_details/detail_view/index.tsx index af7283af8c5264..97118bf763d43e 100644 --- a/x-pack/plugins/apm/public/components/app/error_group_details/detail_view/index.tsx +++ b/x-pack/plugins/apm/public/components/app/error_group_details/detail_view/index.tsx @@ -20,7 +20,7 @@ import { first } from 'lodash'; import React from 'react'; import { useHistory } from 'react-router-dom'; import { euiStyled } from '../../../../../../../../src/plugins/kibana_react/common'; -import type { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import type { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import type { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; import type { ApmUrlParams } from '../../../../context/url_params_context/types'; import { TransactionDetailLink } from '../../../shared/links/apm/transaction_detail_link'; @@ -37,7 +37,7 @@ import { exceptionStacktraceTab, getTabs, logStacktraceTab, -} from './ErrorTabs'; +} from './error_tabs'; import { ExceptionStacktrace } from './exception_stacktrace'; const HeaderContainer = euiStyled.div` diff --git a/x-pack/plugins/apm/public/components/app/error_group_details/Distribution/index.stories.tsx b/x-pack/plugins/apm/public/components/app/error_group_details/distribution/index.stories.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/error_group_details/Distribution/index.stories.tsx rename to x-pack/plugins/apm/public/components/app/error_group_details/distribution/index.stories.tsx index 040190cf44ad62..67d22aaf6740ab 100644 --- a/x-pack/plugins/apm/public/components/app/error_group_details/Distribution/index.stories.tsx +++ b/x-pack/plugins/apm/public/components/app/error_group_details/distribution/index.stories.tsx @@ -15,7 +15,7 @@ import { ErrorDistribution } from './'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; export default { - title: 'app/ErrorGroupDetails/Distribution', + title: 'app/ErrorGroupDetails/distribution', component: ErrorDistribution, decorators: [ (Story: ComponentType) => { diff --git a/x-pack/plugins/apm/public/components/app/error_group_details/Distribution/index.tsx b/x-pack/plugins/apm/public/components/app/error_group_details/distribution/index.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/error_group_details/Distribution/index.tsx rename to x-pack/plugins/apm/public/components/app/error_group_details/distribution/index.tsx index 521a4d7f80fe00..a44e32e7f6a57d 100644 --- a/x-pack/plugins/apm/public/components/app/error_group_details/Distribution/index.tsx +++ b/x-pack/plugins/apm/public/components/app/error_group_details/distribution/index.tsx @@ -19,7 +19,7 @@ import React, { Suspense, useState } from 'react'; import { ALERT_RULE_TYPE_ID } from '@kbn/rule-data-utils'; import { i18n } from '@kbn/i18n'; import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { useTheme } from '../../../../hooks/use_theme'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { AlertType } from '../../../../../common/alert_types'; diff --git a/x-pack/plugins/apm/public/components/app/error_group_details/index.tsx b/x-pack/plugins/apm/public/components/app/error_group_details/index.tsx index 57d7cf58a6caba..94505b5c0386e9 100644 --- a/x-pack/plugins/apm/public/components/app/error_group_details/index.tsx +++ b/x-pack/plugins/apm/public/components/app/error_group_details/index.tsx @@ -26,9 +26,9 @@ import { useApmRouter } from '../../../hooks/use_apm_router'; import { useErrorGroupDistributionFetcher } from '../../../hooks/use_error_group_distribution_fetcher'; import { useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; -import type { APIReturnType } from '../../../services/rest/createCallApmApi'; +import type { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { DetailView } from './detail_view'; -import { ErrorDistribution } from './Distribution'; +import { ErrorDistribution } from './distribution'; const Titles = euiStyled.div` margin-bottom: ${({ theme }) => theme.eui.euiSizeL}; diff --git a/x-pack/plugins/apm/public/components/app/error_group_overview/error_group_list/index.tsx b/x-pack/plugins/apm/public/components/app/error_group_overview/error_group_list/index.tsx index 8be150e4b99ea4..cd991b0f128c5a 100644 --- a/x-pack/plugins/apm/public/components/app/error_group_overview/error_group_list/index.tsx +++ b/x-pack/plugins/apm/public/components/app/error_group_overview/error_group_list/index.tsx @@ -17,7 +17,7 @@ import { asInteger } from '../../../../../common/utils/formatters'; import { euiStyled } from '../../../../../../../../src/plugins/kibana_react/common'; import { NOT_AVAILABLE_LABEL } from '../../../../../common/i18n'; import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { truncate, unit } from '../../../../utils/style'; import { ErrorDetailLink } from '../../../shared/links/apm/error_detail_link'; import { ErrorOverviewLink } from '../../../shared/links/apm/error_overview_link'; diff --git a/x-pack/plugins/apm/public/components/app/error_group_overview/index.tsx b/x-pack/plugins/apm/public/components/app/error_group_overview/index.tsx index b904006ceb9043..a6ba3febeb01d8 100644 --- a/x-pack/plugins/apm/public/components/app/error_group_overview/index.tsx +++ b/x-pack/plugins/apm/public/components/app/error_group_overview/index.tsx @@ -21,10 +21,10 @@ import { useApmParams } from '../../../hooks/use_apm_params'; import { useErrorGroupDistributionFetcher } from '../../../hooks/use_error_group_distribution_fetcher'; import { useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; -import { APIReturnType } from '../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { FailedTransactionRateChart } from '../../shared/charts/failed_transaction_rate_chart'; import { getTimeRangeComparison } from '../../shared/time_comparison/get_time_range_comparison'; -import { ErrorDistribution } from '../error_group_details/Distribution'; +import { ErrorDistribution } from '../error_group_details/distribution'; import { ErrorGroupList } from './error_group_list'; type ErrorGroupMainStatistics = diff --git a/x-pack/plugins/apm/public/components/app/main/ScrollToTopOnPathChange.tsx b/x-pack/plugins/apm/public/components/app/main/scroll_to_top_on_path_change.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/main/ScrollToTopOnPathChange.tsx rename to x-pack/plugins/apm/public/components/app/main/scroll_to_top_on_path_change.tsx diff --git a/x-pack/plugins/apm/public/components/app/rum_dashboard/hooks/use_call_api.ts b/x-pack/plugins/apm/public/components/app/rum_dashboard/hooks/use_call_api.ts index f932cec3cacb6f..a7a5dd0d2d5ffe 100644 --- a/x-pack/plugins/apm/public/components/app/rum_dashboard/hooks/use_call_api.ts +++ b/x-pack/plugins/apm/public/components/app/rum_dashboard/hooks/use_call_api.ts @@ -6,7 +6,7 @@ */ import { useMemo } from 'react'; -import { callApi } from '../../../../services/rest/callApi'; +import { callApi } from '../../../../services/rest/call_api'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { FetchOptions } from '../../../../../common/fetch_options'; diff --git a/x-pack/plugins/apm/public/components/app/rum_dashboard/ux_overview_fetchers.ts b/x-pack/plugins/apm/public/components/app/rum_dashboard/ux_overview_fetchers.ts index 4d1d7d5264f0dc..fdf9849d7983fa 100644 --- a/x-pack/plugins/apm/public/components/app/rum_dashboard/ux_overview_fetchers.ts +++ b/x-pack/plugins/apm/public/components/app/rum_dashboard/ux_overview_fetchers.ts @@ -11,9 +11,9 @@ import { UxFetchDataResponse, UXHasDataResponse, } from '../../../../../observability/public/'; -import { callApmApi } from '../../../services/rest/createCallApmApi'; +import { callApmApi } from '../../../services/rest/create_call_apm_api'; -export { createCallApmApi } from '../../../services/rest/createCallApmApi'; +export { createCallApmApi } from '../../../services/rest/create_call_apm_api'; export const fetchUxOverviewDate = async ({ absoluteTime, diff --git a/x-pack/plugins/apm/public/components/app/rum_dashboard/visitor_breakdown_map/__stories__/MapTooltip.stories.tsx b/x-pack/plugins/apm/public/components/app/rum_dashboard/visitor_breakdown_map/__stories__/map_tooltip.stories.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/rum_dashboard/visitor_breakdown_map/__stories__/MapTooltip.stories.tsx rename to x-pack/plugins/apm/public/components/app/rum_dashboard/visitor_breakdown_map/__stories__/map_tooltip.stories.tsx diff --git a/x-pack/plugins/apm/public/components/app/service_inventory/index.tsx b/x-pack/plugins/apm/public/components/app/service_inventory/index.tsx index 6a1847196cc630..2d984b7db703d0 100644 --- a/x-pack/plugins/apm/public/components/app/service_inventory/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_inventory/index.tsx @@ -18,7 +18,7 @@ import { toMountPoint } from '../../../../../../../src/plugins/kibana_react/publ import { useAnomalyDetectionJobsContext } from '../../../context/anomaly_detection_jobs/use_anomaly_detection_jobs_context'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; import { useLegacyUrlParams } from '../../../context/url_params_context/use_url_params'; -import { useLocalStorage } from '../../../hooks/useLocalStorage'; +import { useLocalStorage } from '../../../hooks/use_local_storage'; import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; diff --git a/x-pack/plugins/apm/public/components/app/service_inventory/service_list/__fixtures__/service_api_mock_data.ts b/x-pack/plugins/apm/public/components/app/service_inventory/service_list/__fixtures__/service_api_mock_data.ts index 85e7eeadc74871..13900b965fcb3b 100644 --- a/x-pack/plugins/apm/public/components/app/service_inventory/service_list/__fixtures__/service_api_mock_data.ts +++ b/x-pack/plugins/apm/public/components/app/service_inventory/service_list/__fixtures__/service_api_mock_data.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { APIReturnType } from '../../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; type ServiceListAPIResponse = APIReturnType<'GET /internal/apm/services'>; diff --git a/x-pack/plugins/apm/public/components/app/service_inventory/service_list/HealthBadge.tsx b/x-pack/plugins/apm/public/components/app/service_inventory/service_list/health_badge.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/service_inventory/service_list/HealthBadge.tsx rename to x-pack/plugins/apm/public/components/app/service_inventory/service_list/health_badge.tsx diff --git a/x-pack/plugins/apm/public/components/app/service_inventory/service_list/index.tsx b/x-pack/plugins/apm/public/components/app/service_inventory/service_list/index.tsx index 65c007061a824a..760b8497754296 100644 --- a/x-pack/plugins/apm/public/components/app/service_inventory/service_list/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_inventory/service_list/index.tsx @@ -32,7 +32,7 @@ import { import { useApmParams } from '../../../../hooks/use_apm_params'; import { Breakpoints, useBreakpoints } from '../../../../hooks/use_breakpoints'; import { useFallbackToTransactionsFetcher } from '../../../../hooks/use_fallback_to_transactions_fetcher'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { unit } from '../../../../utils/style'; import { ApmRoutes } from '../../../routing/apm_route_config'; import { AggregatedTransactionsBadge } from '../../../shared/aggregated_transactions_badge'; @@ -41,11 +41,11 @@ import { ListMetric } from '../../../shared/list_metric'; import { ITableColumn, ManagedTable } from '../../../shared/managed_table'; import { ServiceLink } from '../../../shared/service_link'; import { TruncateWithTooltip } from '../../../shared/truncate_with_tooltip'; -import { HealthBadge } from './HealthBadge'; import { ChartType, getTimeSeriesColor, } from '../../../shared/charts/helper/get_timeseries_color'; +import { HealthBadge } from './health_badge'; type ServiceListAPIResponse = APIReturnType<'GET /internal/apm/services'>; type Items = ServiceListAPIResponse['items']; diff --git a/x-pack/plugins/apm/public/components/app/service_logs/index.tsx b/x-pack/plugins/apm/public/components/app/service_logs/index.tsx index 441d8ebcb69be6..2cd94bf5de207d 100644 --- a/x-pack/plugins/apm/public/components/app/service_logs/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_logs/index.tsx @@ -13,7 +13,7 @@ import moment from 'moment'; import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher'; import { useApmServiceContext } from '../../../context/apm_service/use_apm_service_context'; import { LogStream } from '../../../../../infra/public'; -import { APIReturnType } from '../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { CONTAINER_ID, diff --git a/x-pack/plugins/apm/public/components/app/service_map/__stories__/centerer.tsx b/x-pack/plugins/apm/public/components/app/service_map/__stories__/centerer.tsx index b4dd9d8ef87f39..db571f397e70f4 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/__stories__/centerer.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/__stories__/centerer.tsx @@ -6,7 +6,7 @@ */ import { useContext, useEffect } from 'react'; -import { CytoscapeContext } from '../Cytoscape'; +import { CytoscapeContext } from '../cytoscape'; // Component to center map on load export function Centerer() { diff --git a/x-pack/plugins/apm/public/components/app/service_map/__stories__/Cytoscape.stories.tsx b/x-pack/plugins/apm/public/components/app/service_map/__stories__/cytoscape.stories.tsx similarity index 96% rename from x-pack/plugins/apm/public/components/app/service_map/__stories__/Cytoscape.stories.tsx rename to x-pack/plugins/apm/public/components/app/service_map/__stories__/cytoscape.stories.tsx index 7ce9c3e9436132..0e755c62b69712 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/__stories__/Cytoscape.stories.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/__stories__/cytoscape.stories.tsx @@ -7,11 +7,11 @@ import cytoscape from 'cytoscape'; import React from 'react'; -import { Cytoscape } from '../Cytoscape'; +import { Cytoscape } from '../cytoscape'; import { Centerer } from './centerer'; export default { - title: 'app/ServiceMap/Cytoscape', + title: 'app/ServiceMap/cytoscape', component: Cytoscape, }; diff --git a/x-pack/plugins/apm/public/components/app/service_map/__stories__/cytoscape_example_data.stories.tsx b/x-pack/plugins/apm/public/components/app/service_map/__stories__/cytoscape_example_data.stories.tsx index 8189668ad6ef2f..24e2dceeafdc86 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/__stories__/cytoscape_example_data.stories.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/__stories__/cytoscape_example_data.stories.tsx @@ -22,7 +22,7 @@ import { CodeEditor, createKibanaReactContext, } from '../../../../../../../../src/plugins/kibana_react/public'; -import { Cytoscape } from '../Cytoscape'; +import { Cytoscape } from '../cytoscape'; import { Centerer } from './centerer'; import exampleResponseHipsterStore from './example_response_hipster_store.json'; import exampleResponseOpbeansBeats from './example_response_opbeans_beats.json'; diff --git a/x-pack/plugins/apm/public/components/app/service_map/Controls.test.tsx b/x-pack/plugins/apm/public/components/app/service_map/controls.test.tsx similarity index 95% rename from x-pack/plugins/apm/public/components/app/service_map/Controls.test.tsx rename to x-pack/plugins/apm/public/components/app/service_map/controls.test.tsx index 0be6bf3e3f5458..9dba11d3d74151 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/Controls.test.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/controls.test.tsx @@ -12,8 +12,8 @@ import React, { ReactNode } from 'react'; import { MemoryRouter } from 'react-router-dom'; import { ThemeContext } from 'styled-components'; import { MockApmPluginContextWrapper } from '../../../context/apm_plugin/mock_apm_plugin_context'; -import { Controls } from './Controls'; -import { CytoscapeContext } from './Cytoscape'; +import { Controls } from './controls'; +import { CytoscapeContext } from './cytoscape'; const cy = cytoscape({ elements: [{ classes: 'primary', data: { id: 'test node' } }], diff --git a/x-pack/plugins/apm/public/components/app/service_map/Controls.tsx b/x-pack/plugins/apm/public/components/app/service_map/controls.tsx similarity index 99% rename from x-pack/plugins/apm/public/components/app/service_map/Controls.tsx rename to x-pack/plugins/apm/public/components/app/service_map/controls.tsx index 9236d9c21a6c64..90d4179cba4668 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/Controls.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/controls.tsx @@ -14,7 +14,7 @@ import { useTheme } from '../../../hooks/use_theme'; import { getLegacyApmHref } from '../../shared/links/apm/apm_link'; import { useLegacyUrlParams } from '../../../context/url_params_context/use_url_params'; import { APMQueryParams } from '../../shared/links/url_helpers'; -import { CytoscapeContext } from './Cytoscape'; +import { CytoscapeContext } from './cytoscape'; import { getAnimationOptions, getNodeHeight } from './cytoscape_options'; import { useAnyOfApmParams } from '../../../hooks/use_apm_params'; diff --git a/x-pack/plugins/apm/public/components/app/service_map/Cytoscape.tsx b/x-pack/plugins/apm/public/components/app/service_map/cytoscape.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/service_map/Cytoscape.tsx rename to x-pack/plugins/apm/public/components/app/service_map/cytoscape.tsx diff --git a/x-pack/plugins/apm/public/components/app/service_map/empty_banner.test.tsx b/x-pack/plugins/apm/public/components/app/service_map/empty_banner.test.tsx index 5d30c777cd5958..e695e251ee0ee9 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/empty_banner.test.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/empty_banner.test.tsx @@ -10,9 +10,9 @@ import cytoscape from 'cytoscape'; import React, { ReactNode } from 'react'; import { MemoryRouter } from 'react-router-dom'; import { MockApmPluginContextWrapper } from '../../../context/apm_plugin/mock_apm_plugin_context'; -import { renderWithTheme } from '../../../utils/testHelpers'; -import { CytoscapeContext } from './Cytoscape'; -import { EmptyBanner } from './EmptyBanner'; +import { renderWithTheme } from '../../../utils/test_helpers'; +import { CytoscapeContext } from './cytoscape'; +import { EmptyBanner } from './empty_banner'; const cy = cytoscape({}); diff --git a/x-pack/plugins/apm/public/components/app/service_map/EmptyBanner.tsx b/x-pack/plugins/apm/public/components/app/service_map/empty_banner.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/service_map/EmptyBanner.tsx rename to x-pack/plugins/apm/public/components/app/service_map/empty_banner.tsx index 0708ee364b0f23..684082e90cf15c 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/EmptyBanner.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/empty_banner.tsx @@ -9,7 +9,7 @@ import React, { useContext, useEffect, useState } from 'react'; import { EuiCallOut, EuiLink } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { euiStyled } from '../../../../../../../src/plugins/kibana_react/common'; -import { CytoscapeContext } from './Cytoscape'; +import { CytoscapeContext } from './cytoscape'; import { useTheme } from '../../../hooks/use_theme'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; diff --git a/x-pack/plugins/apm/public/components/app/service_map/index.tsx b/x-pack/plugins/apm/public/components/app/service_map/index.tsx index a1fb69a9fe975a..a63166331d8f23 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/index.tsx @@ -21,14 +21,14 @@ import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher'; import { useLicenseContext } from '../../../context/license/use_license_context'; import { useTheme } from '../../../hooks/use_theme'; import { LicensePrompt } from '../../shared/license_prompt'; -import { Controls } from './Controls'; -import { Cytoscape } from './Cytoscape'; +import { Controls } from './controls'; +import { Cytoscape } from './cytoscape'; import { getCytoscapeDivStyle } from './cytoscape_options'; -import { EmptyBanner } from './EmptyBanner'; +import { EmptyBanner } from './empty_banner'; import { EmptyPrompt } from './empty_prompt'; -import { Popover } from './Popover'; +import { Popover } from './popover'; import { TimeoutPrompt } from './timeout_prompt'; -import { useRefDimensions } from './useRefDimensions'; +import { useRefDimensions } from './use_ref_dimensions'; import { SearchBar } from '../../shared/search_bar'; import { useServiceName } from '../../../hooks/use_service_name'; import { useApmParams } from '../../../hooks/use_apm_params'; diff --git a/x-pack/plugins/apm/public/components/app/service_map/Popover/anomaly_detection.tsx b/x-pack/plugins/apm/public/components/app/service_map/popover/anomaly_detection.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/service_map/Popover/anomaly_detection.tsx rename to x-pack/plugins/apm/public/components/app/service_map/popover/anomaly_detection.tsx diff --git a/x-pack/plugins/apm/public/components/app/service_map/Popover/backend_contents.tsx b/x-pack/plugins/apm/public/components/app/service_map/popover/backend_contents.tsx similarity index 97% rename from x-pack/plugins/apm/public/components/app/service_map/Popover/backend_contents.tsx rename to x-pack/plugins/apm/public/components/app/service_map/popover/backend_contents.tsx index ebc948d1f3ef1b..facc3a9dbc5821 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/Popover/backend_contents.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/popover/backend_contents.tsx @@ -18,7 +18,7 @@ import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; import { ApmRoutes } from '../../../routing/apm_route_config'; import { StatsList } from './stats_list'; import { getTimeRangeComparison } from '../../../shared/time_comparison/get_time_range_comparison'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; type BackendReturn = APIReturnType<'GET /internal/apm/service-map/backend'>; diff --git a/x-pack/plugins/apm/public/components/app/service_map/Popover/externals_list_contents.tsx b/x-pack/plugins/apm/public/components/app/service_map/popover/externals_list_contents.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/service_map/Popover/externals_list_contents.tsx rename to x-pack/plugins/apm/public/components/app/service_map/popover/externals_list_contents.tsx diff --git a/x-pack/plugins/apm/public/components/app/service_map/Popover/index.tsx b/x-pack/plugins/apm/public/components/app/service_map/popover/index.tsx similarity index 99% rename from x-pack/plugins/apm/public/components/app/service_map/Popover/index.tsx rename to x-pack/plugins/apm/public/components/app/service_map/popover/index.tsx index d6a0228ffcc4b7..d3fabd9a045fc8 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/Popover/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/popover/index.tsx @@ -28,7 +28,7 @@ import { } from '../../../../../common/elasticsearch_fieldnames'; import { Environment } from '../../../../../common/environment_rt'; import { useTheme } from '../../../../hooks/use_theme'; -import { CytoscapeContext } from '../Cytoscape'; +import { CytoscapeContext } from '../cytoscape'; import { getAnimationOptions, popoverWidth } from '../cytoscape_options'; import { BackendContents } from './backend_contents'; import { ExternalsListContents } from './externals_list_contents'; diff --git a/x-pack/plugins/apm/public/components/app/service_map/Popover/Popover.stories.tsx b/x-pack/plugins/apm/public/components/app/service_map/popover/popover.stories.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/service_map/Popover/Popover.stories.tsx rename to x-pack/plugins/apm/public/components/app/service_map/popover/popover.stories.tsx index 212489bf12cb43..bd2d897ea27524 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/Popover/Popover.stories.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/popover/popover.stories.tsx @@ -15,8 +15,8 @@ import { createKibanaReactContext } from '../../../../../../../../src/plugins/ki import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values'; import { MockApmPluginContextWrapper } from '../../../../context/apm_plugin/mock_apm_plugin_context'; import { MockUrlParamsContextProvider } from '../../../../context/url_params_context/mock_url_params_context_provider'; -import { createCallApmApi } from '../../../../services/rest/createCallApmApi'; -import { CytoscapeContext } from '../Cytoscape'; +import { createCallApmApi } from '../../../../services/rest/create_call_apm_api'; +import { CytoscapeContext } from '../cytoscape'; import exampleGroupedConnectionsData from '../__stories__/example_grouped_connections.json'; interface Args { @@ -24,7 +24,7 @@ interface Args { } const stories: Meta = { - title: 'app/ServiceMap/Popover', + title: 'app/ServiceMap/popover', component: Popover, decorators: [ (StoryComponent) => { diff --git a/x-pack/plugins/apm/public/components/app/service_map/Popover/popover.test.tsx b/x-pack/plugins/apm/public/components/app/service_map/popover/popover.test.tsx similarity index 97% rename from x-pack/plugins/apm/public/components/app/service_map/Popover/popover.test.tsx rename to x-pack/plugins/apm/public/components/app/service_map/popover/popover.test.tsx index 5bec70b9eb8416..417d239a852a84 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/Popover/popover.test.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/popover/popover.test.tsx @@ -8,7 +8,7 @@ import { composeStories } from '@storybook/testing-react'; import { render, screen, waitFor } from '@testing-library/react'; import React from 'react'; -import * as stories from './Popover.stories'; +import * as stories from './popover.stories'; const { Backend, ExternalsList, Resource, Service } = composeStories(stories); diff --git a/x-pack/plugins/apm/public/components/app/service_map/Popover/resource_contents.tsx b/x-pack/plugins/apm/public/components/app/service_map/popover/resource_contents.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/service_map/Popover/resource_contents.tsx rename to x-pack/plugins/apm/public/components/app/service_map/popover/resource_contents.tsx diff --git a/x-pack/plugins/apm/public/components/app/service_map/Popover/service_contents.tsx b/x-pack/plugins/apm/public/components/app/service_map/popover/service_contents.tsx similarity index 97% rename from x-pack/plugins/apm/public/components/app/service_map/Popover/service_contents.tsx rename to x-pack/plugins/apm/public/components/app/service_map/popover/service_contents.tsx index 113aad554614a4..76092c596d13df 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/Popover/service_contents.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/popover/service_contents.tsx @@ -23,7 +23,7 @@ import { AnomalyDetection } from './anomaly_detection'; import { StatsList } from './stats_list'; import { useTimeRange } from '../../../../hooks/use_time_range'; import { getTimeRangeComparison } from '../../../shared/time_comparison/get_time_range_comparison'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; type ServiceNodeReturn = APIReturnType<'GET /internal/apm/service-map/service/{serviceName}'>; diff --git a/x-pack/plugins/apm/public/components/app/service_map/Popover/stats_list.tsx b/x-pack/plugins/apm/public/components/app/service_map/popover/stats_list.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/service_map/Popover/stats_list.tsx rename to x-pack/plugins/apm/public/components/app/service_map/popover/stats_list.tsx index ec82d2112f0e2f..7cc0e158fe52d1 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/Popover/stats_list.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/popover/stats_list.tsx @@ -20,12 +20,12 @@ import { asTransactionRate, } from '../../../../../common/utils/formatters'; import { Coordinate } from '../../../../../typings/timeseries'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; import { SparkPlot } from '../../../shared/charts/spark_plot'; import { ChartType, getTimeSeriesColor, } from '../../../shared/charts/helper/get_timeseries_color'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; type ServiceNodeReturn = APIReturnType<'GET /internal/apm/service-map/service/{serviceName}'>; diff --git a/x-pack/plugins/apm/public/components/app/service_map/useRefDimensions.ts b/x-pack/plugins/apm/public/components/app/service_map/use_ref_dimensions.ts similarity index 100% rename from x-pack/plugins/apm/public/components/app/service_map/useRefDimensions.ts rename to x-pack/plugins/apm/public/components/app/service_map/use_ref_dimensions.ts diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/get_columns.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/get_columns.tsx index f379b17ee6b48a..6a3db6221e0081 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/get_columns.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/get_columns.tsx @@ -9,7 +9,7 @@ import { EuiBasicTableColumn, RIGHT_ALIGNMENT } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; import { asInteger } from '../../../../../common/utils/formatters'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { SparkPlot } from '../../../shared/charts/spark_plot'; import { ErrorDetailLink } from '../../../shared/links/apm/error_detail_link'; import { TimestampTooltip } from '../../../shared/timestamp_tooltip'; diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/index.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/index.tsx index 2718ae393e535e..84f65d4e5feb6d 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/index.tsx @@ -18,7 +18,7 @@ import uuid from 'uuid'; import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context'; import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { ErrorOverviewLink } from '../../../shared/links/apm/error_overview_link'; import { getTimeRangeComparison } from '../../../shared/time_comparison/get_time_range_comparison'; import { OverviewTableContainer } from '../../../shared/overview_table_container'; diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_chart_and_table.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_chart_and_table.tsx index b8802d946eb7ae..5e0aa95340e81b 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_chart_and_table.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_chart_and_table.tsx @@ -14,7 +14,7 @@ import { useLegacyUrlParams } from '../../../context/url_params_context/use_url_ import { useApmParams } from '../../../hooks/use_apm_params'; import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; -import { APIReturnType } from '../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { InstancesLatencyDistributionChart } from '../../shared/charts/instances_latency_distribution_chart'; import { getTimeRangeComparison } from '../../shared/time_comparison/get_time_range_comparison'; import { diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/get_columns.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/get_columns.tsx index 1950c361fe2de0..0b6e846f952399 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/get_columns.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/get_columns.tsx @@ -24,7 +24,7 @@ import { asPercent, asTransactionRate, } from '../../../../../common/utils/formatters'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { MetricOverviewLink } from '../../../shared/links/apm/metric_overview_link'; import { ServiceNodeMetricOverviewLink } from '../../../shared/links/apm/service_node_metric_overview_link'; import { ListMetric } from '../../../shared/list_metric'; diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/index.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/index.tsx index 71ea1412c64265..b698a0672213d2 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/index.tsx @@ -16,7 +16,7 @@ import React, { ReactNode, useEffect, useState } from 'react'; import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context'; import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { PAGE_SIZE, SortDirection, diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_actions_menu/menu_sections.ts b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_actions_menu/menu_sections.ts index 7a537125203ead..360b9185166655 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_actions_menu/menu_sections.ts +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_actions_menu/menu_sections.ts @@ -8,7 +8,7 @@ import { i18n } from '@kbn/i18n'; import { IBasePath } from 'kibana/public'; import moment from 'moment'; -import { APIReturnType } from '../../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; import { getInfraHref } from '../../../../shared/links/infra_link'; import { Action, diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_details.test.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_details.test.tsx index b8e18eec43e6a0..8f033bed82b3d3 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_details.test.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/instance_details.test.tsx @@ -6,12 +6,12 @@ */ import React from 'react'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { expectTextsInDocument, expectTextsNotInDocument, renderWithTheme, -} from '../../../../utils/testHelpers'; +} from '../../../../utils/test_helpers'; import { InstanceDetails } from './intance_details'; import * as useInstanceDetailsFetcher from './use_instance_details_fetcher'; diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/intance_details.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/intance_details.tsx index fad5628b2192dc..b61a2cd53cccbd 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/intance_details.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/intance_details.tsx @@ -26,7 +26,7 @@ import { } from '../../../../../common/elasticsearch_fieldnames'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { useTheme } from '../../../../hooks/use_theme'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { getAgentIcon } from '../../../shared/agent_icon/get_agent_icon'; import { KeyValueFilterList } from '../../../shared/key_value_filter_list'; import { pushNewItemToKueryBar } from '../../../shared/kuery_bar/utils'; diff --git a/x-pack/plugins/apm/public/components/app/service_profiling/index.tsx b/x-pack/plugins/apm/public/components/app/service_profiling/index.tsx index 150daca8520e0a..fccaf5c46ccbf8 100644 --- a/x-pack/plugins/apm/public/components/app/service_profiling/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_profiling/index.tsx @@ -14,7 +14,7 @@ import { useApmServiceContext } from '../../../context/apm_service/use_apm_servi import { useApmParams } from '../../../hooks/use_apm_params'; import { useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; -import { APIReturnType } from '../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { ServiceProfilingFlamegraph } from './service_profiling_flamegraph'; import { ServiceProfilingTimeline } from './service_profiling_timeline'; diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/index.stories.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.stories.tsx similarity index 95% rename from x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/index.stories.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.stories.tsx index a779be24b29369..1b43a85addb05b 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/index.stories.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.stories.tsx @@ -10,7 +10,7 @@ import React from 'react'; import { CoreStart } from 'kibana/public'; import { AgentConfiguration } from '../../../../../../common/agent_configuration/configuration_types'; import { FETCH_STATUS } from '../../../../../hooks/use_fetcher'; -import { createCallApmApi } from '../../../../../services/rest/createCallApmApi'; +import { createCallApmApi } from '../../../../../services/rest/create_call_apm_api'; import { AgentConfigurationCreateEdit } from './index'; import { ApmPluginContext, @@ -18,7 +18,7 @@ import { } from '../../../../../context/apm_plugin/apm_plugin_context'; storiesOf( - 'app/Settings/AgentConfigurations/AgentConfigurationCreateEdit', + 'app/settings/AgentConfigurations/agent_configuration_create_edit', module ) .addDecorator((storyFn) => { diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/index.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.tsx similarity index 97% rename from x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/index.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.tsx index eaf7bb711e54e9..82bcf2352c63c3 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/index.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/index.tsx @@ -17,8 +17,8 @@ import { } from '../../../../../../common/agent_configuration/configuration_types'; import { FetcherResult } from '../../../../../hooks/use_fetcher'; import { fromQuery, toQuery } from '../../../../shared/links/url_helpers'; -import { ServicePage } from './ServicePage/ServicePage'; -import { SettingsPage } from './SettingsPage/SettingsPage'; +import { ServicePage } from './service_page/service_page'; +import { SettingsPage } from './settings_page/settings_page'; type PageStep = 'choose-service-step' | 'choose-settings-step' | 'review-step'; diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/ServicePage/FormRowSelect.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/form_row_select.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/ServicePage/FormRowSelect.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/form_row_select.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/ServicePage/ServicePage.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/service_page.tsx similarity index 99% rename from x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/ServicePage/ServicePage.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/service_page.tsx index 3c834e6c46efbe..6f141a0ad8d566 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/ServicePage/ServicePage.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/service_page/service_page.tsx @@ -16,7 +16,7 @@ import { getOptionLabel, } from '../../../../../../../common/agent_configuration/all_option'; import { useFetcher, FETCH_STATUS } from '../../../../../../hooks/use_fetcher'; -import { FormRowSelect } from './FormRowSelect'; +import { FormRowSelect } from './form_row_select'; import { APMLink } from '../../../../../shared/links/apm/apm_link'; interface Props { diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/SettingsPage/saveConfig.ts b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/save_config.ts similarity index 99% rename from x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/SettingsPage/saveConfig.ts rename to x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/save_config.ts index 29cca2ae9d615e..6594a30bf2bdfe 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/SettingsPage/saveConfig.ts +++ b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/save_config.ts @@ -12,7 +12,7 @@ import { getOptionLabel, omitAllOption, } from '../../../../../../../common/agent_configuration/all_option'; -import { callApmApi } from '../../../../../../services/rest/createCallApmApi'; +import { callApmApi } from '../../../../../../services/rest/create_call_apm_api'; export async function saveConfig({ config, diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/SettingsPage/SettingFormRow.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/setting_form_row.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/SettingsPage/SettingFormRow.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/setting_form_row.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/SettingsPage/SettingsPage.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/settings_page.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/SettingsPage/SettingsPage.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/settings_page.tsx index 8789bbd7723197..19c18bac8d5b18 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/AgentConfigurationCreateEdit/SettingsPage/SettingsPage.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/agent_configuration_create_edit/settings_page/settings_page.tsx @@ -34,8 +34,8 @@ import { import { AgentName } from '../../../../../../../typings/es_schemas/ui/fields/agent'; import { useApmPluginContext } from '../../../../../../context/apm_plugin/use_apm_plugin_context'; import { FETCH_STATUS } from '../../../../../../hooks/use_fetcher'; -import { saveConfig } from './saveConfig'; -import { SettingFormRow } from './SettingFormRow'; +import { saveConfig } from './save_config'; +import { SettingFormRow } from './setting_form_row'; function removeEmpty(obj: { [key: string]: any }) { return Object.fromEntries( diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/index.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/index.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/Settings/agent_configurations/index.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_configurations/index.tsx index 0abc5fd3ab809a..48b421ca046115 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/index.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/index.tsx @@ -20,7 +20,7 @@ import React from 'react'; import { useApmRouter } from '../../../../hooks/use_apm_router'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { useFetcher } from '../../../../hooks/use_fetcher'; -import { AgentConfigurationList } from './List'; +import { AgentConfigurationList } from './list'; const INITIAL_DATA = { configurations: [] }; diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/List/ConfirmDeleteModal.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/list/confirm_delete_modal.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/Settings/agent_configurations/List/ConfirmDeleteModal.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_configurations/list/confirm_delete_modal.tsx index 8132d87ab70011..341cba5826bf35 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/List/ConfirmDeleteModal.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/list/confirm_delete_modal.tsx @@ -13,7 +13,7 @@ import { getOptionLabel } from '../../../../../../common/agent_configuration/all import { APIReturnType, callApmApi, -} from '../../../../../services/rest/createCallApmApi'; +} from '../../../../../services/rest/create_call_apm_api'; import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context'; type Config = diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/List/index.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/list/index.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/Settings/agent_configurations/List/index.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_configurations/list/index.tsx index fc9250973fc307..0dd2cbd1b8dcfc 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/agent_configurations/List/index.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/agent_configurations/list/index.tsx @@ -18,7 +18,7 @@ import { i18n } from '@kbn/i18n'; import { isEmpty } from 'lodash'; import React, { useState } from 'react'; import { useApmRouter } from '../../../../../hooks/use_apm_router'; -import { APIReturnType } from '../../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; import { getOptionLabel } from '../../../../../../common/agent_configuration/all_option'; import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context'; import { FETCH_STATUS } from '../../../../../hooks/use_fetcher'; @@ -26,7 +26,7 @@ import { useTheme } from '../../../../../hooks/use_theme'; import { LoadingStatePrompt } from '../../../../shared/loading_state_prompt'; import { ITableColumn, ManagedTable } from '../../../../shared/managed_table'; import { TimestampTooltip } from '../../../../shared/timestamp_tooltip'; -import { ConfirmDeleteModal } from './ConfirmDeleteModal'; +import { ConfirmDeleteModal } from './confirm_delete_modal'; type Config = APIReturnType<'GET /api/apm/settings/agent-configuration'>['configurations'][0]; diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_keys/agent_keys_table.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_keys/agent_keys_table.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/agent_keys/agent_keys_table.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_keys/agent_keys_table.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_keys/confirm_delete_modal.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_keys/confirm_delete_modal.tsx similarity index 96% rename from x-pack/plugins/apm/public/components/app/Settings/agent_keys/confirm_delete_modal.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_keys/confirm_delete_modal.tsx index f2821cc4a51f10..cad8d8016fc8e8 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/agent_keys/confirm_delete_modal.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/agent_keys/confirm_delete_modal.tsx @@ -9,7 +9,7 @@ import React, { useState } from 'react'; import { i18n } from '@kbn/i18n'; import { EuiConfirmModal } from '@elastic/eui'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; -import { callApmApi } from '../../../../services/rest/createCallApmApi'; +import { callApmApi } from '../../../../services/rest/create_call_apm_api'; import { ApiKey } from '../../../../../../security/common/model'; interface Props { diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_keys/create_agent_key.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_keys/create_agent_key.tsx similarity index 99% rename from x-pack/plugins/apm/public/components/app/Settings/agent_keys/create_agent_key.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_keys/create_agent_key.tsx index 934899d30029db..1634706d330e28 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/agent_keys/create_agent_key.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/agent_keys/create_agent_key.tsx @@ -27,7 +27,7 @@ import { htmlIdGenerator, } from '@elastic/eui'; import { isEmpty } from 'lodash'; -import { callApmApi } from '../../../../services/rest/createCallApmApi'; +import { callApmApi } from '../../../../services/rest/create_call_apm_api'; import { CreateApiKeyResponse } from '../../../../../common/agent_key_types'; import { useCurrentUser } from '../../../../hooks/use_current_user'; import { PrivilegeType } from '../../../../../common/privilege_type'; diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_keys/create_agent_key/agent_key_callout.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_keys/create_agent_key/agent_key_callout.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/agent_keys/create_agent_key/agent_key_callout.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_keys/create_agent_key/agent_key_callout.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_keys/index.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_keys/index.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/agent_keys/index.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_keys/index.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_keys/prompts/api_keys_not_enabled.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_keys/prompts/api_keys_not_enabled.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/agent_keys/prompts/api_keys_not_enabled.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_keys/prompts/api_keys_not_enabled.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/agent_keys/prompts/permission_denied.tsx b/x-pack/plugins/apm/public/components/app/settings/agent_keys/prompts/permission_denied.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/agent_keys/prompts/permission_denied.tsx rename to x-pack/plugins/apm/public/components/app/settings/agent_keys/prompts/permission_denied.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/add_environments.tsx b/x-pack/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/add_environments.tsx rename to x-pack/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx index 2ce9cab01e9407..caa79fdc321188 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/add_environments.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/anomaly_detection/add_environments.tsx @@ -20,7 +20,7 @@ import { EuiEmptyPrompt, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { ML_ERRORS } from '../../../../../common/anomaly_detection'; import { useFetcher, FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; diff --git a/x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/create_jobs.ts b/x-pack/plugins/apm/public/components/app/settings/anomaly_detection/create_jobs.ts similarity index 96% rename from x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/create_jobs.ts rename to x-pack/plugins/apm/public/components/app/settings/anomaly_detection/create_jobs.ts index 4c94f50b848a0f..d986c292bea105 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/create_jobs.ts +++ b/x-pack/plugins/apm/public/components/app/settings/anomaly_detection/create_jobs.ts @@ -7,7 +7,7 @@ import { i18n } from '@kbn/i18n'; import { NotificationsStart } from 'kibana/public'; -import { callApmApi } from '../../../../services/rest/createCallApmApi'; +import { callApmApi } from '../../../../services/rest/create_call_apm_api'; const errorToastTitle = i18n.translate( 'xpack.apm.anomalyDetection.createJobs.failed.title', diff --git a/x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/index.tsx b/x-pack/plugins/apm/public/components/app/settings/anomaly_detection/index.tsx similarity index 97% rename from x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/index.tsx rename to x-pack/plugins/apm/public/components/app/settings/anomaly_detection/index.tsx index 7fd40cc4a1663e..41c78f1277c4b6 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/index.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/anomaly_detection/index.tsx @@ -13,7 +13,7 @@ import { JobsList } from './jobs_list'; import { AddEnvironments } from './add_environments'; import { LicensePrompt } from '../../../shared/license_prompt'; import { useLicenseContext } from '../../../../context/license/use_license_context'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { useAnomalyDetectionJobsContext } from '../../../../context/anomaly_detection_jobs/use_anomaly_detection_jobs_context'; export type AnomalyDetectionApiResponse = diff --git a/x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/jobs_list.tsx b/x-pack/plugins/apm/public/components/app/settings/anomaly_detection/jobs_list.tsx similarity index 99% rename from x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/jobs_list.tsx rename to x-pack/plugins/apm/public/components/app/settings/anomaly_detection/jobs_list.tsx index 8f2c9cb3ac4a43..69b92a9a50a366 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/jobs_list.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/anomaly_detection/jobs_list.tsx @@ -26,7 +26,7 @@ import { getEnvironmentLabel } from '../../../../../common/environment_filter_va import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { useMlManageJobsHref } from '../../../../hooks/use_ml_manage_jobs_href'; -import { callApmApi } from '../../../../services/rest/createCallApmApi'; +import { callApmApi } from '../../../../services/rest/create_call_apm_api'; import { MLExplorerLink } from '../../../shared/links/machine_learning_links/mlexplorer_link'; import { MLManageJobsLink } from '../../../shared/links/machine_learning_links/mlmanage_jobs_link'; import { LoadingStatePrompt } from '../../../shared/loading_state_prompt'; diff --git a/x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/jobs_list_status.tsx b/x-pack/plugins/apm/public/components/app/settings/anomaly_detection/jobs_list_status.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/jobs_list_status.tsx rename to x-pack/plugins/apm/public/components/app/settings/anomaly_detection/jobs_list_status.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/ApmIndices/index.test.tsx b/x-pack/plugins/apm/public/components/app/settings/apm_indices/index.test.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/ApmIndices/index.test.tsx rename to x-pack/plugins/apm/public/components/app/settings/apm_indices/index.test.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/ApmIndices/index.tsx b/x-pack/plugins/apm/public/components/app/settings/apm_indices/index.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/Settings/ApmIndices/index.tsx rename to x-pack/plugins/apm/public/components/app/settings/apm_indices/index.tsx index ad998836961a2e..1a1654e22eb199 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/ApmIndices/index.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/apm_indices/index.tsx @@ -22,11 +22,11 @@ import { i18n } from '@kbn/i18n'; import React, { useEffect, useState } from 'react'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { useFetcher } from '../../../../hooks/use_fetcher'; -import { clearCache } from '../../../../services/rest/callApi'; +import { clearCache } from '../../../../services/rest/call_api'; import { APIReturnType, callApmApi, -} from '../../../../services/rest/createCallApmApi'; +} from '../../../../services/rest/create_call_apm_api'; const APM_INDEX_LABELS = [ { diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/CreateCustomLinkButton.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_custom_link_button.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/CreateCustomLinkButton.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_custom_link_button.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/DeleteButton.test.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.test.tsx similarity index 91% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/DeleteButton.test.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.test.tsx index b251e20edbb0b9..55943a82dd7ec8 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/DeleteButton.test.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.test.tsx @@ -10,8 +10,8 @@ import React, { ReactNode } from 'react'; import { act } from 'react-dom/test-utils'; import { EuiThemeProvider } from '../../../../../../../../../src/plugins/kibana_react/common'; import { MockApmPluginContextWrapper } from '../../../../../context/apm_plugin/mock_apm_plugin_context'; -import * as apmApi from '../../../../../services/rest/createCallApmApi'; -import { DeleteButton } from './DeleteButton'; +import * as apmApi from '../../../../../services/rest/create_call_apm_api'; +import { DeleteButton } from './delete_button'; function Wrapper({ children }: { children?: ReactNode }) { return ( diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/DeleteButton.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx similarity index 96% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/DeleteButton.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx index 8a703c275d971d..ee0193d8376d61 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/DeleteButton.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/delete_button.tsx @@ -9,7 +9,7 @@ import { EuiButtonEmpty } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { NotificationsStart } from 'kibana/public'; import React, { useState } from 'react'; -import { callApmApi } from '../../../../../services/rest/createCallApmApi'; +import { callApmApi } from '../../../../../services/rest/create_call_apm_api'; import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context'; import { useTheme } from '../../../../../hooks/use_theme'; diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/Documentation.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/documentation.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/Documentation.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/documentation.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/FiltersSection.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/filters_section.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/FiltersSection.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/filters_section.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/FlyoutFooter.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/flyout_footer.tsx similarity index 97% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/FlyoutFooter.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/flyout_footer.tsx index 8f6ba102fb10fc..18950a26556ddd 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/FlyoutFooter.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/flyout_footer.tsx @@ -14,7 +14,7 @@ import { EuiButton, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { DeleteButton } from './DeleteButton'; +import { DeleteButton } from './delete_button'; export function FlyoutFooter({ onClose, diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/helper.test.ts b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/helper.test.ts similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/helper.test.ts rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/helper.test.ts diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/helper.ts b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/helper.ts similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/helper.ts rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/helper.ts diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/index.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/index.tsx similarity index 93% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/index.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/index.tsx index 9bc54cd429e89d..5ca96542f47b48 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/index.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/index.tsx @@ -17,12 +17,12 @@ import { i18n } from '@kbn/i18n'; import React, { useState } from 'react'; import { Filter } from '../../../../../../common/custom_link/custom_link_types'; import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context'; -import { FiltersSection } from './FiltersSection'; -import { FlyoutFooter } from './FlyoutFooter'; -import { LinkSection } from './LinkSection'; -import { saveCustomLink } from './saveCustomLink'; +import { FiltersSection } from './filters_section'; +import { FlyoutFooter } from './flyout_footer'; +import { LinkSection } from './link_section'; +import { saveCustomLink } from './save_custom_link'; import { LinkPreview } from './link_preview'; -import { Documentation } from './Documentation'; +import { Documentation } from './documentation'; interface Props { onClose: () => void; diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/link_preview.stories.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.stories.tsx similarity index 92% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/link_preview.stories.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.stories.tsx index 5ff1c1fec2b9e1..ea6dac148e844e 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/link_preview.stories.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.stories.tsx @@ -7,12 +7,12 @@ import React, { ComponentProps } from 'react'; import { CoreStart } from 'kibana/public'; -import { createCallApmApi } from '../../../../../services/rest/createCallApmApi'; +import { createCallApmApi } from '../../../../../services/rest/create_call_apm_api'; import { LinkPreview } from './link_preview'; export default { title: - 'app/Settings/CustomizeUI/CustomLink/CreateEditCustomLinkFlyout/LinkPreview', + 'app/settings/CustomizeUI/CustomLink/CreateEditCustomLinkFlyout/LinkPreview', component: LinkPreview, }; diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/link_preview.test.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.test.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/link_preview.test.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.test.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/link_preview.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/link_preview.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.tsx index d421a31c015586..5b7ad8d744bb25 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/link_preview.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_preview.tsx @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n'; import { debounce } from 'lodash'; import { Filter } from '../../../../../../common/custom_link/custom_link_types'; import { Transaction } from '../../../../../../typings/es_schemas/ui/transaction'; -import { callApmApi } from '../../../../../services/rest/createCallApmApi'; +import { callApmApi } from '../../../../../services/rest/create_call_apm_api'; import { replaceTemplateVariables, convertFiltersToQuery } from './helper'; export interface LinkPreviewProps { diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/LinkSection.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_section.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/LinkSection.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_section.tsx index cbb65efba6fe87..b568e5b171c55e 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/LinkSection.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/link_section.tsx @@ -15,7 +15,7 @@ import { import { i18n } from '@kbn/i18n'; import React from 'react'; import { CustomLink } from '../../../../../../common/custom_link/custom_link_types'; -import { Documentation } from './Documentation'; +import { Documentation } from './documentation'; interface InputField { name: keyof CustomLink; diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/saveCustomLink.ts b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/save_custom_link.ts similarity index 95% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/saveCustomLink.ts rename to x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/save_custom_link.ts index 5d97ab4dcfb5af..7884d6740d5eaf 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/custom_link/create_edit_custom_link_flyout/saveCustomLink.ts +++ b/x-pack/plugins/apm/public/components/app/settings/custom_link/create_edit_custom_link_flyout/save_custom_link.ts @@ -11,7 +11,7 @@ import { Filter, CustomLink, } from '../../../../../../common/custom_link/custom_link_types'; -import { callApmApi } from '../../../../../services/rest/createCallApmApi'; +import { callApmApi } from '../../../../../services/rest/create_call_apm_api'; export async function saveCustomLink({ id, diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/custom_link_table.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/custom_link_table.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/custom_link_table.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/custom_link_table.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/EmptyPrompt.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/empty_prompt.tsx similarity index 94% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/EmptyPrompt.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/empty_prompt.tsx index 9967b927585c51..dd9cd760d70cf1 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/custom_link/EmptyPrompt.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/custom_link/empty_prompt.tsx @@ -8,7 +8,7 @@ import { EuiEmptyPrompt } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { CreateCustomLinkButton } from './CreateCustomLinkButton'; +import { CreateCustomLinkButton } from './create_custom_link_button'; export function EmptyPrompt({ onCreateCustomLinkClick, diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/index.test.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/index.test.tsx similarity index 99% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/index.test.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/index.test.tsx index 26647a9565b14e..fe997306f4b1d5 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/custom_link/index.test.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/custom_link/index.test.tsx @@ -8,7 +8,7 @@ import { fireEvent, render, RenderResult } from '@testing-library/react'; import React from 'react'; import { act } from 'react-dom/test-utils'; -import { getCallApmApiSpy } from '../../../../services/rest/callApmApiSpy'; +import { getCallApmApiSpy } from '../../../../services/rest/call_apm_api_spy'; import { CustomLinkOverview } from '.'; import { License } from '../../../../../../licensing/common/license'; import { ApmPluginContextValue } from '../../../../context/apm_plugin/apm_plugin_context'; @@ -21,8 +21,8 @@ import * as hooks from '../../../../hooks/use_fetcher'; import { expectTextsInDocument, expectTextsNotInDocument, -} from '../../../../utils/testHelpers'; -import * as saveCustomLink from './create_edit_custom_link_flyout/saveCustomLink'; +} from '../../../../utils/test_helpers'; +import * as saveCustomLink from './create_edit_custom_link_flyout/save_custom_link'; const data = { customLinks: [ diff --git a/x-pack/plugins/apm/public/components/app/Settings/custom_link/index.tsx b/x-pack/plugins/apm/public/components/app/settings/custom_link/index.tsx similarity index 97% rename from x-pack/plugins/apm/public/components/app/Settings/custom_link/index.tsx rename to x-pack/plugins/apm/public/components/app/settings/custom_link/index.tsx index 060a18cbfc7970..8870764ecbf5b0 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/custom_link/index.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/custom_link/index.tsx @@ -20,10 +20,10 @@ import { CustomLink } from '../../../../../common/custom_link/custom_link_types' import { useLicenseContext } from '../../../../context/license/use_license_context'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; import { LicensePrompt } from '../../../shared/license_prompt'; -import { CreateCustomLinkButton } from './CreateCustomLinkButton'; +import { CreateCustomLinkButton } from './create_custom_link_button'; import { CreateEditCustomLinkFlyout } from './create_edit_custom_link_flyout'; import { CustomLinkTable } from './custom_link_table'; -import { EmptyPrompt } from './EmptyPrompt'; +import { EmptyPrompt } from './empty_prompt'; export function CustomLinkOverview() { const license = useLicenseContext(); diff --git a/x-pack/plugins/apm/public/components/app/Settings/schema/blog-rocket-720x420.png b/x-pack/plugins/apm/public/components/app/settings/schema/blog_rocket_720x420.png similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/schema/blog-rocket-720x420.png rename to x-pack/plugins/apm/public/components/app/settings/schema/blog_rocket_720x420.png diff --git a/x-pack/plugins/apm/public/components/app/Settings/schema/confirm_switch_modal.tsx b/x-pack/plugins/apm/public/components/app/settings/schema/confirm_switch_modal.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/schema/confirm_switch_modal.tsx rename to x-pack/plugins/apm/public/components/app/settings/schema/confirm_switch_modal.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/schema/index.tsx b/x-pack/plugins/apm/public/components/app/settings/schema/index.tsx similarity index 97% rename from x-pack/plugins/apm/public/components/app/Settings/schema/index.tsx rename to x-pack/plugins/apm/public/components/app/settings/schema/index.tsx index bb5608fb7fc711..0ea03cb0614d40 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/schema/index.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/schema/index.tsx @@ -9,14 +9,14 @@ import React, { useState } from 'react'; import { i18n } from '@kbn/i18n'; import { NotificationsStart } from 'kibana/public'; import moment from 'moment'; -import { useLocalStorage } from '../../../../hooks/useLocalStorage'; +import { useLocalStorage } from '../../../../hooks/use_local_storage'; import { SchemaOverview } from './schema_overview'; import { ConfirmSwitchModal } from './confirm_switch_modal'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; import { callApmApi, APIReturnType, -} from '../../../../services/rest/createCallApmApi'; +} from '../../../../services/rest/create_call_apm_api'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; type FleetMigrationCheckResponse = diff --git a/x-pack/plugins/apm/public/components/app/Settings/schema/migrated/card_footer_content.tsx b/x-pack/plugins/apm/public/components/app/settings/schema/migrated/card_footer_content.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/schema/migrated/card_footer_content.tsx rename to x-pack/plugins/apm/public/components/app/settings/schema/migrated/card_footer_content.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/schema/migrated/successful_migration_card.tsx b/x-pack/plugins/apm/public/components/app/settings/schema/migrated/successful_migration_card.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/schema/migrated/successful_migration_card.tsx rename to x-pack/plugins/apm/public/components/app/settings/schema/migrated/successful_migration_card.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/schema/migrated/upgrade_available_card.tsx b/x-pack/plugins/apm/public/components/app/settings/schema/migrated/upgrade_available_card.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/schema/migrated/upgrade_available_card.tsx rename to x-pack/plugins/apm/public/components/app/settings/schema/migrated/upgrade_available_card.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/schema/migration_in_progress_panel.tsx b/x-pack/plugins/apm/public/components/app/settings/schema/migration_in_progress_panel.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/Settings/schema/migration_in_progress_panel.tsx rename to x-pack/plugins/apm/public/components/app/settings/schema/migration_in_progress_panel.tsx diff --git a/x-pack/plugins/apm/public/components/app/Settings/schema/schema.stories.tsx b/x-pack/plugins/apm/public/components/app/settings/schema/schema.stories.tsx similarity index 98% rename from x-pack/plugins/apm/public/components/app/Settings/schema/schema.stories.tsx rename to x-pack/plugins/apm/public/components/app/settings/schema/schema.stories.tsx index f546eed14bf94f..4d5063624b1016 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/schema/schema.stories.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/schema/schema.stories.tsx @@ -10,7 +10,7 @@ import React, { ComponentType } from 'react'; import { MemoryRouter } from 'react-router-dom'; import { CoreStart } from '../../../../../../../../src/core/public'; import { MockApmPluginContextWrapper } from '../../../../context/apm_plugin/mock_apm_plugin_context'; -import { createCallApmApi } from '../../../../services/rest/createCallApmApi'; +import { createCallApmApi } from '../../../../services/rest/create_call_apm_api'; import { Schema } from './'; import { ConfirmSwitchModal } from './confirm_switch_modal'; @@ -23,7 +23,7 @@ interface Args { } export default { - title: 'app/Settings/Schema', + title: 'app/settings/Schema', component: Schema, argTypes: { hasCloudAgentPolicy: { diff --git a/x-pack/plugins/apm/public/components/app/Settings/schema/schema_overview.tsx b/x-pack/plugins/apm/public/components/app/settings/schema/schema_overview.tsx similarity index 99% rename from x-pack/plugins/apm/public/components/app/Settings/schema/schema_overview.tsx rename to x-pack/plugins/apm/public/components/app/settings/schema/schema_overview.tsx index 4c50b47a4b9a61..d2287cf875383c 100644 --- a/x-pack/plugins/apm/public/components/app/Settings/schema/schema_overview.tsx +++ b/x-pack/plugins/apm/public/components/app/settings/schema/schema_overview.tsx @@ -23,7 +23,7 @@ import semverLt from 'semver/functions/lt'; import { SUPPORTED_APM_PACKAGE_VERSION } from '../../../../../common/fleet'; import { PackagePolicy } from '../../../../../../fleet/common/types'; import { ElasticDocsLink } from '../../../shared/links/elastic_docs_link'; -import rocketLaunchGraphic from './blog-rocket-720x420.png'; +import rocketLaunchGraphic from './blog_rocket_720x420.png'; import { MigrationInProgressPanel } from './migration_in_progress_panel'; import { UpgradeAvailableCard } from './migrated/upgrade_available_card'; import { SuccessfulMigrationCard } from './migrated/successful_migration_card'; diff --git a/x-pack/plugins/apm/public/components/app/TraceLink/get_redirect_to_trace_page_url.ts b/x-pack/plugins/apm/public/components/app/trace_link/get_redirect_to_trace_page_url.ts similarity index 100% rename from x-pack/plugins/apm/public/components/app/TraceLink/get_redirect_to_trace_page_url.ts rename to x-pack/plugins/apm/public/components/app/trace_link/get_redirect_to_trace_page_url.ts diff --git a/x-pack/plugins/apm/public/components/app/TraceLink/get_redirect_to_transaction_detail_page_url.test.ts b/x-pack/plugins/apm/public/components/app/trace_link/get_redirect_to_transaction_detail_page_url.test.ts similarity index 100% rename from x-pack/plugins/apm/public/components/app/TraceLink/get_redirect_to_transaction_detail_page_url.test.ts rename to x-pack/plugins/apm/public/components/app/trace_link/get_redirect_to_transaction_detail_page_url.test.ts diff --git a/x-pack/plugins/apm/public/components/app/TraceLink/get_redirect_to_transaction_detail_page_url.ts b/x-pack/plugins/apm/public/components/app/trace_link/get_redirect_to_transaction_detail_page_url.ts similarity index 100% rename from x-pack/plugins/apm/public/components/app/TraceLink/get_redirect_to_transaction_detail_page_url.ts rename to x-pack/plugins/apm/public/components/app/trace_link/get_redirect_to_transaction_detail_page_url.ts diff --git a/x-pack/plugins/apm/public/components/app/TraceLink/index.tsx b/x-pack/plugins/apm/public/components/app/trace_link/index.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/TraceLink/index.tsx rename to x-pack/plugins/apm/public/components/app/trace_link/index.tsx diff --git a/x-pack/plugins/apm/public/components/app/TraceLink/trace_link.test.tsx b/x-pack/plugins/apm/public/components/app/trace_link/trace_link.test.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/app/TraceLink/trace_link.test.tsx rename to x-pack/plugins/apm/public/components/app/trace_link/trace_link.test.tsx diff --git a/x-pack/plugins/apm/public/components/app/trace_overview/index.tsx b/x-pack/plugins/apm/public/components/app/trace_overview/index.tsx index 6505f082246875..141aaee1b826e1 100644 --- a/x-pack/plugins/apm/public/components/app/trace_overview/index.tsx +++ b/x-pack/plugins/apm/public/components/app/trace_overview/index.tsx @@ -9,7 +9,7 @@ import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import React from 'react'; import { useApmParams } from '../../../hooks/use_apm_params'; import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher'; -import { APIReturnType } from '../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { SearchBar } from '../../shared/search_bar'; import { TraceList } from './trace_list'; import { useFallbackToTransactionsFetcher } from '../../../hooks/use_fallback_to_transactions_fetcher'; diff --git a/x-pack/plugins/apm/public/components/app/trace_overview/trace_list.tsx b/x-pack/plugins/apm/public/components/app/trace_overview/trace_list.tsx index fe09a4784239e2..ca9acc76f27bb0 100644 --- a/x-pack/plugins/apm/public/components/app/trace_overview/trace_list.tsx +++ b/x-pack/plugins/apm/public/components/app/trace_overview/trace_list.tsx @@ -16,7 +16,7 @@ import { asTransactionRate, } from '../../../../common/utils/formatters'; import { useApmParams } from '../../../hooks/use_apm_params'; -import { APIReturnType } from '../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { truncate } from '../../../utils/style'; import { EmptyMessage } from '../../shared/empty_message'; import { ImpactBar } from '../../shared/impact_bar'; diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.ts b/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.ts index 7e4268488eafcc..489eb30528bf4d 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.ts +++ b/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/waterfall_helpers/waterfall_helpers.ts @@ -7,7 +7,7 @@ import { euiPaletteColorBlind } from '@elastic/eui'; import { first, flatten, groupBy, isEmpty, sortBy, uniq } from 'lodash'; -import { APIReturnType } from '../../../../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../../../../services/rest/create_call_apm_api'; import { APMError } from '../../../../../../../../typings/es_schemas/ui/apm_error'; import { Span } from '../../../../../../../../typings/es_schemas/ui/span'; import { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction'; diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_container.stories.data.ts b/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_container.stories.data.ts index 6cca3726a7d00b..f3331fba0ca23a 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_container.stories.data.ts +++ b/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_container.stories.data.ts @@ -7,7 +7,7 @@ import type { Location } from 'history'; import type { ApmUrlParams } from '../../../../../context/url_params_context/types'; -import { APIReturnType } from '../../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../../services/rest/create_call_apm_api'; export const location = { pathname: '/services/opbeans-go/transactions/view', diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_container.test.tsx b/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_container.test.tsx index 47610569dfa06c..bac6ec41cf4200 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_container.test.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall_container.test.tsx @@ -8,7 +8,7 @@ import { composeStories } from '@storybook/testing-react'; import { render } from '@testing-library/react'; import React from 'react'; -import { disableConsoleWarning } from '../../../../../utils/testHelpers'; +import { disableConsoleWarning } from '../../../../../utils/test_helpers'; import * as stories from './waterfall_container.stories'; const { Example } = composeStories(stories); diff --git a/x-pack/plugins/apm/public/components/app/transaction_link/index.tsx b/x-pack/plugins/apm/public/components/app/transaction_link/index.tsx index 937ab60e6b7cb7..2c71bcf49917bc 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_link/index.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_link/index.tsx @@ -10,7 +10,7 @@ import React from 'react'; import { Redirect } from 'react-router-dom'; import { euiStyled } from '../../../../../../../src/plugins/kibana_react/common'; import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher'; -import { getRedirectToTransactionDetailPageUrl } from '../TraceLink/get_redirect_to_transaction_detail_page_url'; +import { getRedirectToTransactionDetailPageUrl } from '../trace_link/get_redirect_to_transaction_detail_page_url'; import { useApmParams } from '../../../hooks/use_apm_params'; const CentralizedContainer = euiStyled.div` diff --git a/x-pack/plugins/apm/public/components/app/transaction_overview/transaction_overview.test.tsx b/x-pack/plugins/apm/public/components/app/transaction_overview/transaction_overview.test.tsx index ede47a65d7ea56..82164f34adb794 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_overview/transaction_overview.test.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_overview/transaction_overview.test.tsx @@ -20,7 +20,7 @@ import * as useServiceAgentNameHook from '../../../context/apm_service/use_servi import { disableConsoleWarning, renderWithTheme, -} from '../../../utils/testHelpers'; +} from '../../../utils/test_helpers'; import { fromQuery } from '../../shared/links/url_helpers'; import { TransactionOverview } from './'; diff --git a/x-pack/plugins/apm/public/components/routing/apm_route_config.tsx b/x-pack/plugins/apm/public/components/routing/apm_route_config.tsx index daab3003b18dcb..d89dd9aab6865b 100644 --- a/x-pack/plugins/apm/public/components/routing/apm_route_config.tsx +++ b/x-pack/plugins/apm/public/components/routing/apm_route_config.tsx @@ -9,7 +9,7 @@ import { createRouter, Outlet } from '@kbn/typed-react-router-config'; import * as t from 'io-ts'; import React from 'react'; import { Breadcrumb } from '../app/breadcrumb'; -import { TraceLink } from '../app/TraceLink'; +import { TraceLink } from '../app/trace_link'; import { TransactionLink } from '../app/transaction_link'; import { home } from './home'; import { serviceDetail } from './service_detail'; diff --git a/x-pack/plugins/apm/public/components/routing/app_root.tsx b/x-pack/plugins/apm/public/components/routing/app_root.tsx index 5a6749b08e5b7d..aca6d3d737e3de 100644 --- a/x-pack/plugins/apm/public/components/routing/app_root.tsx +++ b/x-pack/plugins/apm/public/components/routing/app_root.tsx @@ -20,7 +20,7 @@ import { HeaderMenuPortal, InspectorContextProvider, } from '../../../../observability/public'; -import { ScrollToTopOnPathChange } from '../../components/app/main/ScrollToTopOnPathChange'; +import { ScrollToTopOnPathChange } from '../../components/app/main/scroll_to_top_on_path_change'; import { AnomalyDetectionJobsContextProvider } from '../../context/anomaly_detection_jobs/anomaly_detection_jobs_context'; import { ApmPluginContext, diff --git a/x-pack/plugins/apm/public/components/routing/settings/create_agent_configuration_route_view.tsx b/x-pack/plugins/apm/public/components/routing/settings/create_agent_configuration_route_view.tsx index b01882031bea59..992f83e3441012 100644 --- a/x-pack/plugins/apm/public/components/routing/settings/create_agent_configuration_route_view.tsx +++ b/x-pack/plugins/apm/public/components/routing/settings/create_agent_configuration_route_view.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { AgentConfigurationPageStep } from '../../../../common/agent_configuration/constants'; import { useApmParams } from '../../../hooks/use_apm_params'; -import { AgentConfigurationCreateEdit } from '../../app/Settings/agent_configurations/AgentConfigurationCreateEdit'; +import { AgentConfigurationCreateEdit } from '../../app/settings/agent_configurations/agent_configuration_create_edit'; export function CreateAgentConfigurationRouteView() { const { diff --git a/x-pack/plugins/apm/public/components/routing/settings/edit_agent_configuration_route_view.tsx b/x-pack/plugins/apm/public/components/routing/settings/edit_agent_configuration_route_view.tsx index 20e0a923a3c6ba..cf1b882afe441d 100644 --- a/x-pack/plugins/apm/public/components/routing/settings/edit_agent_configuration_route_view.tsx +++ b/x-pack/plugins/apm/public/components/routing/settings/edit_agent_configuration_route_view.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { AgentConfigurationPageStep } from '../../../../common/agent_configuration/constants'; import { useApmParams } from '../../../hooks/use_apm_params'; import { useFetcher } from '../../../hooks/use_fetcher'; -import { AgentConfigurationCreateEdit } from '../../app/Settings/agent_configurations/AgentConfigurationCreateEdit'; +import { AgentConfigurationCreateEdit } from '../../app/settings/agent_configurations/agent_configuration_create_edit'; export function EditAgentConfigurationRouteView() { const { diff --git a/x-pack/plugins/apm/public/components/routing/settings/index.tsx b/x-pack/plugins/apm/public/components/routing/settings/index.tsx index 97748f2ce13ba8..ac93c31581e61d 100644 --- a/x-pack/plugins/apm/public/components/routing/settings/index.tsx +++ b/x-pack/plugins/apm/public/components/routing/settings/index.tsx @@ -12,14 +12,14 @@ import { Redirect } from 'react-router-dom'; import { agentConfigurationPageStepRt } from '../../../../common/agent_configuration/constants'; import { Breadcrumb } from '../../app/breadcrumb'; import { SettingsTemplate } from '../templates/settings_template'; -import { AgentConfigurations } from '../../app/Settings/agent_configurations'; +import { AgentConfigurations } from '../../app/settings/agent_configurations'; import { CreateAgentConfigurationRouteView } from './create_agent_configuration_route_view'; import { EditAgentConfigurationRouteView } from './edit_agent_configuration_route_view'; -import { ApmIndices } from '../../app/Settings/ApmIndices'; -import { CustomLinkOverview } from '../../app/Settings/custom_link'; -import { Schema } from '../../app/Settings/schema'; -import { AnomalyDetection } from '../../app/Settings/anomaly_detection'; -import { AgentKeys } from '../../app/Settings/agent_keys'; +import { ApmIndices } from '../../app/settings/apm_indices'; +import { CustomLinkOverview } from '../../app/settings/custom_link'; +import { Schema } from '../../app/settings/schema'; +import { AnomalyDetection } from '../../app/settings/anomaly_detection'; +import { AgentKeys } from '../../app/settings/agent_keys'; function page({ title, diff --git a/x-pack/plugins/apm/public/components/shared/agent_icon/get_agent_icon.ts b/x-pack/plugins/apm/public/components/shared/agent_icon/get_agent_icon.ts index e361d72eb2ce8a..470c56e69efa43 100644 --- a/x-pack/plugins/apm/public/components/shared/agent_icon/get_agent_icon.ts +++ b/x-pack/plugins/apm/public/components/shared/agent_icon/get_agent_icon.ts @@ -13,7 +13,7 @@ import { } from '../../../../common/agent_name'; import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; import defaultIcon from '../span_icon/icons/default.svg'; -import dotNetIcon from './icons/dot-net.svg'; +import dotNetIcon from './icons/dot_net.svg'; import erlangIcon from './icons/erlang.svg'; import goIcon from './icons/go.svg'; import iosIcon from './icons/ios.svg'; diff --git a/x-pack/plugins/apm/public/components/shared/agent_icon/icons/dot-net.svg b/x-pack/plugins/apm/public/components/shared/agent_icon/icons/dot_net.svg similarity index 100% rename from x-pack/plugins/apm/public/components/shared/agent_icon/icons/dot-net.svg rename to x-pack/plugins/apm/public/components/shared/agent_icon/icons/dot_net.svg diff --git a/x-pack/plugins/apm/public/components/shared/charts/failed_transaction_rate_chart/index.tsx b/x-pack/plugins/apm/public/components/shared/charts/failed_transaction_rate_chart/index.tsx index d17de1a4edd1b0..2efbae85d91c26 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/failed_transaction_rate_chart/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/failed_transaction_rate_chart/index.tsx @@ -10,7 +10,7 @@ import { i18n } from '@kbn/i18n'; import React from 'react'; import { ALERT_RULE_TYPE_ID } from '../../../../../../rule_registry/common/technical_rule_data_field_names'; import { AlertType } from '../../../../../common/alert_types'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { asPercent } from '../../../../../common/utils/formatters'; import { useFetcher } from '../../../../hooks/use_fetcher'; import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params'; diff --git a/x-pack/plugins/apm/public/components/shared/charts/helper/get_alert_annotations.test.tsx b/x-pack/plugins/apm/public/components/shared/charts/helper/get_alert_annotations.test.tsx index a3ab10ea6514a1..b9f935caa98c04 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/helper/get_alert_annotations.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/helper/get_alert_annotations.test.tsx @@ -26,7 +26,7 @@ import { import { ValuesType } from 'utility-types'; import { EuiTheme } from '../../../../../../../../src/plugins/kibana_react/common'; import { ObservabilityRuleTypeRegistry } from '../../../../../../observability/public'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { getAlertAnnotations } from './get_alert_annotations'; type Alert = ValuesType< diff --git a/x-pack/plugins/apm/public/components/shared/charts/helper/get_alert_annotations.tsx b/x-pack/plugins/apm/public/components/shared/charts/helper/get_alert_annotations.tsx index 55c0993105a397..ca2d0351c81356 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/helper/get_alert_annotations.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/helper/get_alert_annotations.tsx @@ -26,7 +26,7 @@ import { ValuesType } from 'utility-types'; import type { ObservabilityRuleTypeRegistry } from '../../../../../../observability/public'; import { parseTechnicalFields } from '../../../../../../rule_registry/common'; import { asDuration, asPercent } from '../../../../../common/utils/formatters'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; type Alert = ValuesType< APIReturnType<'GET /internal/apm/services/{serviceName}/alerts'>['alerts'] diff --git a/x-pack/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.stories.tsx b/x-pack/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.stories.tsx index 56138a676a29de..01c77f1c5779ff 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.stories.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.stories.tsx @@ -7,7 +7,7 @@ import { TooltipInfo } from '@elastic/charts'; import React from 'react'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { getDurationFormatter } from '../../../../../common/utils/formatters'; import { CustomTooltip } from './custom_tooltip'; diff --git a/x-pack/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.tsx b/x-pack/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.tsx index 2974f909615f4d..39451002efcb2a 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/custom_tooltip.tsx @@ -9,7 +9,7 @@ import { TooltipInfo } from '@elastic/charts'; import { EuiIcon } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { getServiceNodeName } from '../../../../../common/service_nodes'; import { asTransactionRate, diff --git a/x-pack/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/index.tsx b/x-pack/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/index.tsx index 0e9ad848648630..0146b9e8dd44d5 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/instances_latency_distribution_chart/index.tsx @@ -30,7 +30,7 @@ import { } from '../../../../../common/utils/formatters'; import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; import { useTheme } from '../../../../hooks/use_theme'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import * as urlHelpers from '../../links/url_helpers'; import { ChartContainer } from '../chart_container'; import { getResponseTimeTickFormatter } from '../transaction_charts/helper'; diff --git a/x-pack/plugins/apm/public/components/shared/charts/latency_chart/latency_chart.stories.tsx b/x-pack/plugins/apm/public/components/shared/charts/latency_chart/latency_chart.stories.tsx index 9ce9dd2c2fc913..dfac98c9d33b71 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/latency_chart/latency_chart.stories.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/latency_chart/latency_chart.stories.tsx @@ -37,7 +37,7 @@ import { MockUrlParamsContextProvider } from '../../../../context/url_params_con import { APIReturnType, createCallApmApi, -} from '../../../../services/rest/createCallApmApi'; +} from '../../../../services/rest/create_call_apm_api'; import { LatencyChart } from './'; interface Args { diff --git a/x-pack/plugins/apm/public/components/shared/charts/metrics_chart/index.tsx b/x-pack/plugins/apm/public/components/shared/charts/metrics_chart/index.tsx index 1c2b7fdeb77140..1ad5227813d544 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/metrics_chart/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/metrics_chart/index.tsx @@ -7,7 +7,7 @@ import { EuiTitle } from '@elastic/eui'; import React from 'react'; -import { APIReturnType } from '../../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../services/rest/create_call_apm_api'; import { asDecimal, asInteger, diff --git a/x-pack/plugins/apm/public/components/shared/charts/timeline/__snapshots__/Timeline.test.tsx.snap b/x-pack/plugins/apm/public/components/shared/charts/timeline/__snapshots__/timeline.test.tsx.snap similarity index 100% rename from x-pack/plugins/apm/public/components/shared/charts/timeline/__snapshots__/Timeline.test.tsx.snap rename to x-pack/plugins/apm/public/components/shared/charts/timeline/__snapshots__/timeline.test.tsx.snap diff --git a/x-pack/plugins/apm/public/components/shared/charts/timeline/marker/error_marker.test.tsx b/x-pack/plugins/apm/public/components/shared/charts/timeline/marker/error_marker.test.tsx index d3b378ab5cb0bb..17a0fa8d816db8 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/timeline/marker/error_marker.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/timeline/marker/error_marker.test.tsx @@ -13,7 +13,7 @@ import { MockApmPluginContextWrapper } from '../../../../../context/apm_plugin/m import { expectTextsInDocument, renderWithTheme, -} from '../../../../../utils/testHelpers'; +} from '../../../../../utils/test_helpers'; import { ErrorMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks'; import { ErrorMarker } from './error_marker'; diff --git a/x-pack/plugins/apm/public/components/shared/charts/timeline/Timeline.test.tsx b/x-pack/plugins/apm/public/components/shared/charts/timeline/timeline.test.tsx similarity index 97% rename from x-pack/plugins/apm/public/components/shared/charts/timeline/Timeline.test.tsx rename to x-pack/plugins/apm/public/components/shared/charts/timeline/timeline.test.tsx index 68fee32941fd67..268efff6c652d5 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/timeline/Timeline.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/timeline/timeline.test.tsx @@ -11,7 +11,7 @@ import { mountWithTheme, mockMoment, toJson, -} from '../../../../utils/testHelpers'; +} from '../../../../utils/test_helpers'; import { Timeline } from '.'; describe('Timeline', () => { diff --git a/x-pack/plugins/apm/public/components/shared/date_picker/index.tsx b/x-pack/plugins/apm/public/components/shared/date_picker/index.tsx index c792c4ae9b426d..20433a89f359fb 100644 --- a/x-pack/plugins/apm/public/components/shared/date_picker/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/date_picker/index.tsx @@ -10,7 +10,7 @@ import React, { useEffect } from 'react'; import { useHistory, useLocation } from 'react-router-dom'; import { UI_SETTINGS } from '../../../../../../../src/plugins/data/common'; import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context'; -import { clearCache } from '../../../services/rest/callApi'; +import { clearCache } from '../../../services/rest/call_api'; import { fromQuery, toQuery } from '../links/url_helpers'; import { TimePickerQuickRange } from './typings'; diff --git a/x-pack/plugins/apm/public/components/shared/key_value_filter_list/key_value_filter_list.test.tsx b/x-pack/plugins/apm/public/components/shared/key_value_filter_list/key_value_filter_list.test.tsx index 78a7698259e7a0..6dbbc864297a25 100644 --- a/x-pack/plugins/apm/public/components/shared/key_value_filter_list/key_value_filter_list.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/key_value_filter_list/key_value_filter_list.test.tsx @@ -9,7 +9,7 @@ import { KeyValueFilterList } from './'; import { expectTextsInDocument, renderWithTheme, -} from '../../../utils/testHelpers'; +} from '../../../utils/test_helpers'; import { fireEvent } from '@testing-library/react'; describe('KeyValueFilterList', () => { diff --git a/x-pack/plugins/apm/public/components/shared/key_value_table/index.tsx b/x-pack/plugins/apm/public/components/shared/key_value_table/index.tsx index 8b5595a67fa78b..efc4d22c692a90 100644 --- a/x-pack/plugins/apm/public/components/shared/key_value_table/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/key_value_table/index.tsx @@ -14,7 +14,7 @@ import { EuiTableRowCell, } from '@elastic/eui'; import { FormattedValue } from './formatted_value'; -import { KeyValuePair } from '../../../utils/flattenObject'; +import { KeyValuePair } from '../../../utils/flatten_object'; export function KeyValueTable({ keyValuePairs, diff --git a/x-pack/plugins/apm/public/components/shared/key_value_table/key_value_table.test.tsx b/x-pack/plugins/apm/public/components/shared/key_value_table/key_value_table.test.tsx index 5bac03228daebd..395003e7b24399 100644 --- a/x-pack/plugins/apm/public/components/shared/key_value_table/key_value_table.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/key_value_table/key_value_table.test.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { KeyValueTable } from '.'; import { render } from '@testing-library/react'; -import { renderWithTheme } from '../../../utils/testHelpers'; +import { renderWithTheme } from '../../../utils/test_helpers'; function getKeys(output: ReturnType) { const keys = output.getAllByTestId('dot-key'); diff --git a/x-pack/plugins/apm/public/components/shared/license_prompt/index.tsx b/x-pack/plugins/apm/public/components/shared/license_prompt/index.tsx index 5d643614ba4d31..c545f7a0e41287 100644 --- a/x-pack/plugins/apm/public/components/shared/license_prompt/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/license_prompt/index.tsx @@ -8,7 +8,7 @@ import { EuiButton, EuiCard, EuiTextColor } from '@elastic/eui'; import React from 'react'; import { i18n } from '@kbn/i18n'; -import { useKibanaUrl } from '../../../hooks/useKibanaUrl'; +import { useKibanaUrl } from '../../../hooks/use_kibana_url'; export interface LicensePromptProps { text: string; diff --git a/x-pack/plugins/apm/public/components/shared/links/apm/APMLink.test.tsx b/x-pack/plugins/apm/public/components/shared/links/apm/apm_link.test.tsx similarity index 97% rename from x-pack/plugins/apm/public/components/shared/links/apm/APMLink.test.tsx rename to x-pack/plugins/apm/public/components/shared/links/apm/apm_link.test.tsx index ea10852c7d6683..7293cae85e4692 100644 --- a/x-pack/plugins/apm/public/components/shared/links/apm/APMLink.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/links/apm/apm_link.test.tsx @@ -7,7 +7,7 @@ import { Location } from 'history'; import React from 'react'; -import { getRenderedHref } from '../../../../utils/testHelpers'; +import { getRenderedHref } from '../../../../utils/test_helpers'; import { APMLink } from './apm_link'; describe('APMLink', () => { diff --git a/x-pack/plugins/apm/public/components/shared/links/apm/apn_link.test.tsx b/x-pack/plugins/apm/public/components/shared/links/apm/apn_link.test.tsx new file mode 100644 index 00000000000000..7293cae85e4692 --- /dev/null +++ b/x-pack/plugins/apm/public/components/shared/links/apm/apn_link.test.tsx @@ -0,0 +1,60 @@ +/* + * 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. + */ + +import { Location } from 'history'; +import React from 'react'; +import { getRenderedHref } from '../../../../utils/test_helpers'; +import { APMLink } from './apm_link'; + +describe('APMLink', () => { + test('APMLink should produce the correct URL', async () => { + const href = await getRenderedHref( + () => , + { + search: + '?rangeFrom=now-5h&rangeTo=now-2h&refreshPaused=true&refreshInterval=0', + } as Location + ); + + expect(href).toMatchInlineSnapshot( + `"/basepath/app/apm/some/path?rangeFrom=now-5h&rangeTo=now-2h&refreshPaused=true&refreshInterval=0&transactionId=blah"` + ); + }); + + test('APMLink should retain current kuery value if it exists', async () => { + const href = await getRenderedHref( + () => , + { + search: + '?kuery=host.hostname~20~3A~20~22fakehostname~22&rangeFrom=now-5h&rangeTo=now-2h&refreshPaused=true&refreshInterval=0', + } as Location + ); + + expect(href).toMatchInlineSnapshot( + `"/basepath/app/apm/some/path?kuery=host.hostname~20~3A~20~22fakehostname~22&rangeFrom=now-5h&rangeTo=now-2h&refreshPaused=true&refreshInterval=0&transactionId=blah"` + ); + }); + + test('APMLink should overwrite current kuery value if new kuery value is provided', async () => { + const href = await getRenderedHref( + () => ( + + ), + { + search: + '?kuery=host.hostname~20~3A~20~22fakehostname~22&rangeFrom=now-5h&rangeTo=now-2h&refreshPaused=true&refreshInterval=0', + } as Location + ); + + expect(href).toMatchInlineSnapshot( + `"/basepath/app/apm/some/path?kuery=host.os~20~3A~20~22linux~22&rangeFrom=now-5h&rangeTo=now-2h&refreshPaused=true&refreshInterval=0"` + ); + }); +}); diff --git a/x-pack/plugins/apm/public/components/shared/links/discover_links/discover_links.integration.test.tsx b/x-pack/plugins/apm/public/components/shared/links/discover_links/discover_links.integration.test.tsx index 4e47a1d4217de8..c55a87f2a24820 100644 --- a/x-pack/plugins/apm/public/components/shared/links/discover_links/discover_links.integration.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/links/discover_links/discover_links.integration.test.tsx @@ -10,7 +10,7 @@ import React from 'react'; import { APMError } from '../../../../../typings/es_schemas/ui/apm_error'; import { Span } from '../../../../../typings/es_schemas/ui/span'; import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; -import { getRenderedHref } from '../../../../utils/testHelpers'; +import { getRenderedHref } from '../../../../utils/test_helpers'; import { DiscoverErrorLink } from './discover_error_link'; import { DiscoverSpanLink } from './discover_span_link'; import { DiscoverTransactionLink } from './discover_transaction_link'; diff --git a/x-pack/plugins/apm/public/components/shared/links/infra_link.test.tsx b/x-pack/plugins/apm/public/components/shared/links/infra_link.test.tsx index 8301bd844b5cb3..1a395b2c1d891b 100644 --- a/x-pack/plugins/apm/public/components/shared/links/infra_link.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/links/infra_link.test.tsx @@ -7,7 +7,7 @@ import { Location } from 'history'; import React from 'react'; -import { getRenderedHref } from '../../../utils/testHelpers'; +import { getRenderedHref } from '../../../utils/test_helpers'; import { InfraLink } from './infra_link'; test('InfraLink produces the correct URL', async () => { diff --git a/x-pack/plugins/apm/public/components/shared/links/machine_learning_links/mlexplorer_link.test.tsx b/x-pack/plugins/apm/public/components/shared/links/machine_learning_links/mlexplorer_link.test.tsx index 9a8f2bd98106bd..49c9c6c244c019 100644 --- a/x-pack/plugins/apm/public/components/shared/links/machine_learning_links/mlexplorer_link.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/links/machine_learning_links/mlexplorer_link.test.tsx @@ -7,7 +7,7 @@ import { Location } from 'history'; import React from 'react'; -import { getRenderedHref } from '../../../../utils/testHelpers'; +import { getRenderedHref } from '../../../../utils/test_helpers'; import { MLExplorerLink } from './mlexplorer_link'; describe('MLExplorerLink', () => { diff --git a/x-pack/plugins/apm/public/components/shared/links/machine_learning_links/mlmanage_jobs_link.test.tsx b/x-pack/plugins/apm/public/components/shared/links/machine_learning_links/mlmanage_jobs_link.test.tsx index 8f7ff4f11ab22f..c2ce967768502c 100644 --- a/x-pack/plugins/apm/public/components/shared/links/machine_learning_links/mlmanage_jobs_link.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/links/machine_learning_links/mlmanage_jobs_link.test.tsx @@ -7,7 +7,7 @@ import { Location } from 'history'; import React from 'react'; -import { getRenderedHref } from '../../../../utils/testHelpers'; +import { getRenderedHref } from '../../../../utils/test_helpers'; import { MLManageJobsLink } from './mlmanage_jobs_link'; test('MLManageJobsLink', async () => { diff --git a/x-pack/plugins/apm/public/components/shared/links/machine_learning_links/mlsingle_metric_link.test.tsx b/x-pack/plugins/apm/public/components/shared/links/machine_learning_links/mlsingle_metric_link.test.tsx index ddcd5503853fea..dcf9cc9a06ffc1 100644 --- a/x-pack/plugins/apm/public/components/shared/links/machine_learning_links/mlsingle_metric_link.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/links/machine_learning_links/mlsingle_metric_link.test.tsx @@ -7,7 +7,7 @@ import { Location } from 'history'; import React from 'react'; -import { getRenderedHref } from '../../../../utils/testHelpers'; +import { getRenderedHref } from '../../../../utils/test_helpers'; import { MLSingleMetricLink } from './mlsingle_metric_link'; describe('MLSingleMetricLink', () => { diff --git a/x-pack/plugins/apm/public/components/shared/metadata_table/metadata_table.test.tsx b/x-pack/plugins/apm/public/components/shared/metadata_table/metadata_table.test.tsx index 5d5976866ba244..084729a08146dc 100644 --- a/x-pack/plugins/apm/public/components/shared/metadata_table/metadata_table.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/metadata_table/metadata_table.test.tsx @@ -10,7 +10,7 @@ import React, { ReactNode } from 'react'; import { MemoryRouter } from 'react-router-dom'; import { MetadataTable } from '.'; import { MockApmPluginContextWrapper } from '../../../context/apm_plugin/mock_apm_plugin_context'; -import { expectTextsInDocument } from '../../../utils/testHelpers'; +import { expectTextsInDocument } from '../../../utils/test_helpers'; import type { SectionDescriptor } from './types'; function Wrapper({ children }: { children?: ReactNode }) { diff --git a/x-pack/plugins/apm/public/components/shared/metadata_table/section.test.tsx b/x-pack/plugins/apm/public/components/shared/metadata_table/section.test.tsx index 1d14d04a2be652..d0437cc72e032d 100644 --- a/x-pack/plugins/apm/public/components/shared/metadata_table/section.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/metadata_table/section.test.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { render } from '@testing-library/react'; import { Section } from './section'; -import { expectTextsInDocument } from '../../../utils/testHelpers'; +import { expectTextsInDocument } from '../../../utils/test_helpers'; describe('Section', () => { it('shows "empty state message" if no data is available', () => { diff --git a/x-pack/plugins/apm/public/components/shared/search_bar.test.tsx b/x-pack/plugins/apm/public/components/shared/search_bar.test.tsx index d91af5b11c49bc..6cf6c2090c661f 100644 --- a/x-pack/plugins/apm/public/components/shared/search_bar.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/search_bar.test.tsx @@ -16,7 +16,7 @@ import { UrlParamsProvider } from '../../context/url_params_context/url_params_c import type { ApmUrlParams } from '../../context/url_params_context/types'; import * as useFetcherHook from '../../hooks/use_fetcher'; import * as useServiceTransactionTypesHook from '../../context/apm_service/use_service_transaction_types_fetcher'; -import { renderWithTheme } from '../../utils/testHelpers'; +import { renderWithTheme } from '../../utils/test_helpers'; import { fromQuery } from './links/url_helpers'; import { CoreStart } from 'kibana/public'; import { SearchBar } from './search_bar'; diff --git a/x-pack/plugins/apm/public/components/shared/service_icons/cloud_details.tsx b/x-pack/plugins/apm/public/components/shared/service_icons/cloud_details.tsx index eded3ff9fd1c6f..b5938167378d7a 100644 --- a/x-pack/plugins/apm/public/components/shared/service_icons/cloud_details.tsx +++ b/x-pack/plugins/apm/public/components/shared/service_icons/cloud_details.tsx @@ -9,7 +9,7 @@ import { EuiBadge, EuiDescriptionList } from '@elastic/eui'; import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { APIReturnType } from '../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../services/rest/create_call_apm_api'; type ServiceDetailsReturnType = APIReturnType<'GET /internal/apm/services/{serviceName}/metadata/details'>; diff --git a/x-pack/plugins/apm/public/components/shared/service_icons/container_details.tsx b/x-pack/plugins/apm/public/components/shared/service_icons/container_details.tsx index cd2e3a518b3b33..2bc3fddfb7590e 100644 --- a/x-pack/plugins/apm/public/components/shared/service_icons/container_details.tsx +++ b/x-pack/plugins/apm/public/components/shared/service_icons/container_details.tsx @@ -10,7 +10,7 @@ import { EuiDescriptionListProps } from '@elastic/eui/src/components/description import { i18n } from '@kbn/i18n'; import React from 'react'; import { asInteger } from '../../../../common/utils/formatters'; -import { APIReturnType } from '../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../services/rest/create_call_apm_api'; type ServiceDetailsReturnType = APIReturnType<'GET /internal/apm/services/{serviceName}/metadata/details'>; diff --git a/x-pack/plugins/apm/public/components/shared/service_icons/index.test.tsx b/x-pack/plugins/apm/public/components/shared/service_icons/index.test.tsx index 891b18168793df..778cdeb9be3f75 100644 --- a/x-pack/plugins/apm/public/components/shared/service_icons/index.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/service_icons/index.test.tsx @@ -8,7 +8,7 @@ import { fireEvent, render } from '@testing-library/react'; import { CoreStart } from 'kibana/public'; import { merge } from 'lodash'; -// import { renderWithTheme } from '../../../../utils/testHelpers'; +// import { renderWithTheme } from '../../../../utils/test_helpers'; import React, { ReactNode } from 'react'; import { createKibanaReactContext } from 'src/plugins/kibana_react/public'; import { MockUrlParamsContextProvider } from '../../../context/url_params_context/mock_url_params_context_provider'; diff --git a/x-pack/plugins/apm/public/components/shared/service_icons/service_details.tsx b/x-pack/plugins/apm/public/components/shared/service_icons/service_details.tsx index 9ab8b5ba8a1f04..5ddb9a422c37c7 100644 --- a/x-pack/plugins/apm/public/components/shared/service_icons/service_details.tsx +++ b/x-pack/plugins/apm/public/components/shared/service_icons/service_details.tsx @@ -9,7 +9,7 @@ import { EuiDescriptionList } from '@elastic/eui'; import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { APIReturnType } from '../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../services/rest/create_call_apm_api'; type ServiceDetailsReturnType = APIReturnType<'GET /internal/apm/services/{serviceName}/metadata/details'>; diff --git a/x-pack/plugins/apm/public/components/shared/service_icons/service_icons.stories.tsx b/x-pack/plugins/apm/public/components/shared/service_icons/service_icons.stories.tsx index 41a63eae56d526..97c1ecf3476fa3 100644 --- a/x-pack/plugins/apm/public/components/shared/service_icons/service_icons.stories.tsx +++ b/x-pack/plugins/apm/public/components/shared/service_icons/service_icons.stories.tsx @@ -12,7 +12,7 @@ import { createKibanaReactContext } from '../../../../../../../src/plugins/kiban import { APIReturnType, createCallApmApi, -} from '../../../services/rest/createCallApmApi'; +} from '../../../services/rest/create_call_apm_api'; import { ServiceIcons } from './'; type ServiceDetailsReturnType = diff --git a/x-pack/plugins/apm/public/components/shared/stacktrace/cause_stacktrace.test.tsx b/x-pack/plugins/apm/public/components/shared/stacktrace/cause_stacktrace.test.tsx index cc23452127fa4e..5b8cf6e4ad4960 100644 --- a/x-pack/plugins/apm/public/components/shared/stacktrace/cause_stacktrace.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/stacktrace/cause_stacktrace.test.tsx @@ -7,7 +7,7 @@ import { shallow } from 'enzyme'; import React from 'react'; -import { mountWithTheme } from '../../../utils/testHelpers'; +import { mountWithTheme } from '../../../utils/test_helpers'; import { CauseStacktrace } from './cause_stacktrace'; describe('CauseStacktrace', () => { diff --git a/x-pack/plugins/apm/public/components/shared/stacktrace/Context.tsx b/x-pack/plugins/apm/public/components/shared/stacktrace/context.tsx similarity index 100% rename from x-pack/plugins/apm/public/components/shared/stacktrace/Context.tsx rename to x-pack/plugins/apm/public/components/shared/stacktrace/context.tsx diff --git a/x-pack/plugins/apm/public/components/shared/stacktrace/frame_heading.test.tsx b/x-pack/plugins/apm/public/components/shared/stacktrace/frame_heading.test.tsx index 2eb3320ef3aa31..14ba371222a7e5 100644 --- a/x-pack/plugins/apm/public/components/shared/stacktrace/frame_heading.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/stacktrace/frame_heading.test.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; -import { renderWithTheme } from '../../../utils/testHelpers'; +import { renderWithTheme } from '../../../utils/test_helpers'; import { FrameHeading } from './frame_heading'; function getRenderedStackframeText( diff --git a/x-pack/plugins/apm/public/components/shared/stacktrace/index.tsx b/x-pack/plugins/apm/public/components/shared/stacktrace/index.tsx index de24482c06d502..965d6bf8d5df87 100644 --- a/x-pack/plugins/apm/public/components/shared/stacktrace/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/stacktrace/index.tsx @@ -11,7 +11,7 @@ import React, { Fragment } from 'react'; import { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; import { EmptyMessage } from '../../shared/empty_message'; import { LibraryStacktrace } from './library_stacktrace'; -import { Stackframe as StackframeComponent } from './Stackframe'; +import { Stackframe as StackframeComponent } from './stackframe'; interface Props { stackframes?: Stackframe[]; diff --git a/x-pack/plugins/apm/public/components/shared/stacktrace/library_stacktrace.test.tsx b/x-pack/plugins/apm/public/components/shared/stacktrace/library_stacktrace.test.tsx index d10e6c46cd12c7..549bb2b329d910 100644 --- a/x-pack/plugins/apm/public/components/shared/stacktrace/library_stacktrace.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/stacktrace/library_stacktrace.test.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { renderWithTheme } from '../../../utils/testHelpers'; +import { renderWithTheme } from '../../../utils/test_helpers'; import { LibraryStacktrace } from './library_stacktrace'; describe('LibraryStacktrace', () => { diff --git a/x-pack/plugins/apm/public/components/shared/stacktrace/library_stacktrace.tsx b/x-pack/plugins/apm/public/components/shared/stacktrace/library_stacktrace.tsx index 08399d09bed86d..11017dd09d4eec 100644 --- a/x-pack/plugins/apm/public/components/shared/stacktrace/library_stacktrace.tsx +++ b/x-pack/plugins/apm/public/components/shared/stacktrace/library_stacktrace.tsx @@ -10,7 +10,7 @@ import { i18n } from '@kbn/i18n'; import React from 'react'; import { euiStyled } from '../../../../../../../src/plugins/kibana_react/common'; import { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; -import { Stackframe as StackframeComponent } from './Stackframe'; +import { Stackframe as StackframeComponent } from './stackframe'; const LibraryStacktraceAccordion = euiStyled(EuiAccordion)` margin: ${({ theme }) => theme.eui.euiSizeXS} 0; diff --git a/x-pack/plugins/apm/public/components/shared/stacktrace/Stackframe.test.tsx b/x-pack/plugins/apm/public/components/shared/stacktrace/stackframe.test.tsx similarity index 94% rename from x-pack/plugins/apm/public/components/shared/stacktrace/Stackframe.test.tsx rename to x-pack/plugins/apm/public/components/shared/stacktrace/stackframe.test.tsx index 6bab77dbe49701..41ffb743ae9b78 100644 --- a/x-pack/plugins/apm/public/components/shared/stacktrace/Stackframe.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/stacktrace/stackframe.test.tsx @@ -8,8 +8,8 @@ import React from 'react'; import { ReactWrapper, shallow } from 'enzyme'; import { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; -import { mountWithTheme } from '../../../utils/testHelpers'; -import { Stackframe as StackframeComponent } from './Stackframe'; +import { mountWithTheme } from '../../../utils/test_helpers'; +import { Stackframe as StackframeComponent } from './stackframe'; import stacktracesMock from './__fixtures__/stacktraces.json'; describe('Stackframe', () => { diff --git a/x-pack/plugins/apm/public/components/shared/stacktrace/Stackframe.tsx b/x-pack/plugins/apm/public/components/shared/stacktrace/stackframe.tsx similarity index 96% rename from x-pack/plugins/apm/public/components/shared/stacktrace/Stackframe.tsx rename to x-pack/plugins/apm/public/components/shared/stacktrace/stackframe.tsx index 0985153c2d39e2..48c81b2365d2d7 100644 --- a/x-pack/plugins/apm/public/components/shared/stacktrace/Stackframe.tsx +++ b/x-pack/plugins/apm/public/components/shared/stacktrace/stackframe.tsx @@ -12,9 +12,9 @@ import { Stackframe as StackframeType, StackframeWithLineContext, } from '../../../../typings/es_schemas/raw/fields/stackframe'; -import { Context } from './Context'; +import { Context } from './context'; import { FrameHeading } from './frame_heading'; -import { Variables } from './Variables'; +import { Variables } from './variables'; const ContextContainer = euiStyled.div<{ isLibraryFrame: boolean }>` position: relative; diff --git a/x-pack/plugins/apm/public/components/shared/stacktrace/Variables.tsx b/x-pack/plugins/apm/public/components/shared/stacktrace/variables.tsx similarity index 96% rename from x-pack/plugins/apm/public/components/shared/stacktrace/Variables.tsx rename to x-pack/plugins/apm/public/components/shared/stacktrace/variables.tsx index 3d92f3c584f450..01abfbe0915dc1 100644 --- a/x-pack/plugins/apm/public/components/shared/stacktrace/Variables.tsx +++ b/x-pack/plugins/apm/public/components/shared/stacktrace/variables.tsx @@ -11,7 +11,7 @@ import React from 'react'; import { euiStyled } from '../../../../../../../src/plugins/kibana_react/common'; import { Stackframe } from '../../../../typings/es_schemas/raw/fields/stackframe'; import { KeyValueTable } from '../key_value_table'; -import { flattenObject } from '../../../utils/flattenObject'; +import { flattenObject } from '../../../utils/flatten_object'; const VariablesContainer = euiStyled.div` background: ${({ theme }) => theme.eui.euiColorEmptyShade}; diff --git a/x-pack/plugins/apm/public/components/shared/sticky_properties/sticky_properties.test.tsx b/x-pack/plugins/apm/public/components/shared/sticky_properties/sticky_properties.test.tsx index d29702752c159b..5207dae54efad1 100644 --- a/x-pack/plugins/apm/public/components/shared/sticky_properties/sticky_properties.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/sticky_properties/sticky_properties.test.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { StickyProperties } from '.'; import { shallow } from 'enzyme'; import { USER_ID, URL_FULL } from '../../../../common/elasticsearch_fieldnames'; -import { mockMoment } from '../../../utils/testHelpers'; +import { mockMoment } from '../../../utils/test_helpers'; describe('StickyProperties', () => { beforeEach(mockMoment); diff --git a/x-pack/plugins/apm/public/components/shared/suggestions_select/suggestions_select.stories.tsx b/x-pack/plugins/apm/public/components/shared/suggestions_select/suggestions_select.stories.tsx index d83ca13a9bb218..2e3a1af38e2ff2 100644 --- a/x-pack/plugins/apm/public/components/shared/suggestions_select/suggestions_select.stories.tsx +++ b/x-pack/plugins/apm/public/components/shared/suggestions_select/suggestions_select.stories.tsx @@ -10,7 +10,7 @@ import { Meta, Story } from '@storybook/react'; import React from 'react'; import { CoreStart } from '../../../../../../../src/core/public'; import { createKibanaReactContext } from '../../../../../../../src/plugins/kibana_react/public'; -import { createCallApmApi } from '../../../services/rest/createCallApmApi'; +import { createCallApmApi } from '../../../services/rest/create_call_apm_api'; import { SuggestionsSelect } from './'; interface Args { diff --git a/x-pack/plugins/apm/public/components/shared/summary/error_count_summary_item_badge.test.tsx b/x-pack/plugins/apm/public/components/shared/summary/error_count_summary_item_badge.test.tsx index c6b77bddbf5449..7b805e46583b1d 100644 --- a/x-pack/plugins/apm/public/components/shared/summary/error_count_summary_item_badge.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/summary/error_count_summary_item_badge.test.tsx @@ -10,7 +10,7 @@ import { ErrorCountSummaryItemBadge } from './error_count_summary_item_badge'; import { expectTextsInDocument, renderWithTheme, -} from '../../../utils/testHelpers'; +} from '../../../utils/test_helpers'; describe('ErrorCountSummaryItemBadge', () => { it('shows singular error message', () => { diff --git a/x-pack/plugins/apm/public/components/shared/summary/http_status_badge/http_status_badge.test.tsx b/x-pack/plugins/apm/public/components/shared/summary/http_status_badge/http_status_badge.test.tsx index eccceb046bc1c4..3972dc15dbea10 100644 --- a/x-pack/plugins/apm/public/components/shared/summary/http_status_badge/http_status_badge.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/summary/http_status_badge/http_status_badge.test.tsx @@ -13,7 +13,7 @@ import { neutralColor, warningColor, errorColor, -} from '../../../../utils/httpStatusCodeToColor'; +} from '../../../../utils/http_status_code_to_color'; describe('HttpStatusBadge', () => { describe('render', () => { diff --git a/x-pack/plugins/apm/public/components/shared/summary/http_status_badge/index.tsx b/x-pack/plugins/apm/public/components/shared/summary/http_status_badge/index.tsx index 4ef9634fe0279a..48866619a6543b 100644 --- a/x-pack/plugins/apm/public/components/shared/summary/http_status_badge/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/summary/http_status_badge/index.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import { EuiToolTip, EuiBadge } from '@elastic/eui'; import { statusCodes } from './status_codes'; -import { httpStatusCodeToColor } from '../../../../utils/httpStatusCodeToColor'; +import { httpStatusCodeToColor } from '../../../../utils/http_status_code_to_color'; interface HttpStatusBadgeProps { status: number; diff --git a/x-pack/plugins/apm/public/components/shared/summary/user_agent_summary_item.test.tsx b/x-pack/plugins/apm/public/components/shared/summary/user_agent_summary_item.test.tsx index 9d68c5912f513e..d1a001a3a6b7b1 100644 --- a/x-pack/plugins/apm/public/components/shared/summary/user_agent_summary_item.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/summary/user_agent_summary_item.test.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { UserAgentSummaryItem } from './user_agent_summary_item'; -import { mountWithTheme } from '../../../utils/testHelpers'; +import { mountWithTheme } from '../../../utils/test_helpers'; describe('UserAgentSummaryItem', () => { describe('render', () => { diff --git a/x-pack/plugins/apm/public/components/shared/time_comparison/index.test.tsx b/x-pack/plugins/apm/public/components/shared/time_comparison/index.test.tsx index d3c3369f6a72a9..d811fbb5d03578 100644 --- a/x-pack/plugins/apm/public/components/shared/time_comparison/index.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/time_comparison/index.test.tsx @@ -12,7 +12,7 @@ import { EuiThemeProvider } from '../../../../../../../src/plugins/kibana_react/ import { expectTextsInDocument, expectTextsNotInDocument, -} from '../../../utils/testHelpers'; +} from '../../../utils/test_helpers'; import { getSelectOptions, TimeComparison } from './'; import * as urlHelpers from '../../shared/links/url_helpers'; import moment from 'moment'; diff --git a/x-pack/plugins/apm/public/components/shared/timestamp_tooltip/index.test.tsx b/x-pack/plugins/apm/public/components/shared/timestamp_tooltip/index.test.tsx index c84287dad7a97c..2b9ab7d8c5dbf0 100644 --- a/x-pack/plugins/apm/public/components/shared/timestamp_tooltip/index.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/timestamp_tooltip/index.test.tsx @@ -9,7 +9,7 @@ import { shallow } from 'enzyme'; import React from 'react'; import moment from 'moment-timezone'; import { TimestampTooltip } from './index'; -import { mockNow } from '../../../utils/testHelpers'; +import { mockNow } from '../../../utils/test_helpers'; describe('TimestampTooltip', () => { const timestamp = 1570720000123; // Oct 10, 2019, 08:06:40.123 (UTC-7) diff --git a/x-pack/plugins/apm/public/components/shared/transaction_action_menu/__fixtures__/mockData.ts b/x-pack/plugins/apm/public/components/shared/transaction_action_menu/__fixtures__/mock_data.ts similarity index 100% rename from x-pack/plugins/apm/public/components/shared/transaction_action_menu/__fixtures__/mockData.ts rename to x-pack/plugins/apm/public/components/shared/transaction_action_menu/__fixtures__/mock_data.ts diff --git a/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_list.test.tsx b/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_list.test.tsx index 9c1e8522238943..53f52d19271523 100644 --- a/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_list.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_list.test.tsx @@ -12,7 +12,7 @@ import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; import { expectTextsInDocument, expectTextsNotInDocument, -} from '../../../../utils/testHelpers'; +} from '../../../../utils/test_helpers'; import { CustomLinkList } from './custom_link_list'; describe('CustomLinkList', () => { diff --git a/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_toolbar.test.tsx b/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_toolbar.test.tsx index 300b0ec345f42d..4d92f5a1ae34ab 100644 --- a/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_toolbar.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/custom_link_toolbar.test.tsx @@ -16,7 +16,7 @@ import { import { expectTextsInDocument, expectTextsNotInDocument, -} from '../../../../utils/testHelpers'; +} from '../../../../utils/test_helpers'; import { CustomLinkToolbar } from './custom_link_toolbar'; function getMockAPMContext({ canSave }: { canSave: boolean }) { diff --git a/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.test.tsx b/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.test.tsx index a9a57d2247c6ca..8849515d9a4271 100644 --- a/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.test.tsx @@ -15,7 +15,7 @@ import * as useFetcher from '../../../../hooks/use_fetcher'; import { expectTextsInDocument, expectTextsNotInDocument, -} from '../../../../utils/testHelpers'; +} from '../../../../utils/test_helpers'; function Wrapper({ children }: { children?: ReactNode }) { return ( diff --git a/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx b/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx index 31c8146c953c9a..aa3445d098c0e3 100644 --- a/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/transaction_action_menu/custom_link_menu_section/index.tsx @@ -30,8 +30,8 @@ import { import { Transaction } from '../../../../../typings/es_schemas/ui/transaction'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher'; -import { CreateEditCustomLinkFlyout } from '../../../app/Settings/custom_link/create_edit_custom_link_flyout'; -import { convertFiltersToQuery } from '../../../app/Settings/custom_link/create_edit_custom_link_flyout/helper'; +import { CreateEditCustomLinkFlyout } from '../../../app/settings/custom_link/create_edit_custom_link_flyout'; +import { convertFiltersToQuery } from '../../../app/settings/custom_link/create_edit_custom_link_flyout/helper'; import { LoadingStatePrompt } from '../../loading_state_prompt'; import { CustomLinkToolbar } from './custom_link_toolbar'; import { CustomLinkList } from './custom_link_list'; diff --git a/x-pack/plugins/apm/public/components/shared/transaction_action_menu/transaction_action_menu.test.tsx b/x-pack/plugins/apm/public/components/shared/transaction_action_menu/transaction_action_menu.test.tsx index be91fb8adfe6c0..4d82bb69ee9a50 100644 --- a/x-pack/plugins/apm/public/components/shared/transaction_action_menu/transaction_action_menu.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/transaction_action_menu/transaction_action_menu.test.tsx @@ -17,13 +17,13 @@ import { } from '../../../context/apm_plugin/mock_apm_plugin_context'; import { LicenseContext } from '../../../context/license/license_context'; import * as hooks from '../../../hooks/use_fetcher'; -import * as apmApi from '../../../services/rest/createCallApmApi'; +import * as apmApi from '../../../services/rest/create_call_apm_api'; import { expectTextsInDocument, expectTextsNotInDocument, -} from '../../../utils/testHelpers'; +} from '../../../utils/test_helpers'; import { TransactionActionMenu } from './transaction_action_menu'; -import * as Transactions from './__fixtures__/mockData'; +import * as Transactions from './__fixtures__/mock_data'; function getMockAPMContext({ canSave }: { canSave: boolean }) { return { diff --git a/x-pack/plugins/apm/public/components/shared/transactions_table/get_columns.tsx b/x-pack/plugins/apm/public/components/shared/transactions_table/get_columns.tsx index fcf98795b3709e..82db4760b3b7cf 100644 --- a/x-pack/plugins/apm/public/components/shared/transactions_table/get_columns.tsx +++ b/x-pack/plugins/apm/public/components/shared/transactions_table/get_columns.tsx @@ -16,7 +16,7 @@ import { asPercent, asTransactionRate, } from '../../../../common/utils/formatters'; -import { APIReturnType } from '../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { ImpactBar } from '../impact_bar'; import { TransactionDetailLink } from '../links/apm/transaction_detail_link'; import { ListMetric } from '../list_metric'; diff --git a/x-pack/plugins/apm/public/components/shared/transactions_table/index.tsx b/x-pack/plugins/apm/public/components/shared/transactions_table/index.tsx index d2b1c925e71801..856fa4139963ed 100644 --- a/x-pack/plugins/apm/public/components/shared/transactions_table/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/transactions_table/index.tsx @@ -13,7 +13,7 @@ import uuid from 'uuid'; import { EuiCallOut } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import { EuiCode } from '@elastic/eui'; -import { APIReturnType } from '../../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../../services/rest/create_call_apm_api'; import { useApmServiceContext } from '../../../context/apm_service/use_apm_service_context'; import { useLegacyUrlParams } from '../../../context/url_params_context/use_url_params'; import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher'; diff --git a/x-pack/plugins/apm/public/context/anomaly_detection_jobs/anomaly_detection_jobs_context.tsx b/x-pack/plugins/apm/public/context/anomaly_detection_jobs/anomaly_detection_jobs_context.tsx index cb67d57668160e..927ad164b72b40 100644 --- a/x-pack/plugins/apm/public/context/anomaly_detection_jobs/anomaly_detection_jobs_context.tsx +++ b/x-pack/plugins/apm/public/context/anomaly_detection_jobs/anomaly_detection_jobs_context.tsx @@ -13,7 +13,7 @@ import { import { ENVIRONMENT_ALL } from '../../../common/environment_filter_values'; import { useApmParams } from '../../hooks/use_apm_params'; import { FETCH_STATUS, useFetcher } from '../../hooks/use_fetcher'; -import { APIReturnType } from '../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../services/rest/create_call_apm_api'; import { useApmPluginContext } from '../apm_plugin/use_apm_plugin_context'; import { useLicenseContext } from '../license/use_license_context'; diff --git a/x-pack/plugins/apm/public/context/apm_plugin/mock_apm_plugin_context.tsx b/x-pack/plugins/apm/public/context/apm_plugin/mock_apm_plugin_context.tsx index b519388a8bac73..fc3771dba499f2 100644 --- a/x-pack/plugins/apm/public/context/apm_plugin/mock_apm_plugin_context.tsx +++ b/x-pack/plugins/apm/public/context/apm_plugin/mock_apm_plugin_context.tsx @@ -16,7 +16,7 @@ import { createObservabilityRuleTypeRegistryMock } from '../../../../observabili import { ApmPluginContext, ApmPluginContextValue } from './apm_plugin_context'; import { ConfigSchema } from '../..'; import { UI_SETTINGS } from '../../../../../../src/plugins/data/common'; -import { createCallApmApi } from '../../services/rest/createCallApmApi'; +import { createCallApmApi } from '../../services/rest/create_call_apm_api'; import { apmRouter } from '../../components/routing/apm_route_config'; import { MlLocatorDefinition } from '../../../../ml/public'; diff --git a/x-pack/plugins/apm/public/context/apm_service/apm_service_context.tsx b/x-pack/plugins/apm/public/context/apm_service/apm_service_context.tsx index d6854b9075e1b9..f9fa5b057e0fd5 100644 --- a/x-pack/plugins/apm/public/context/apm_service/apm_service_context.tsx +++ b/x-pack/plugins/apm/public/context/apm_service/apm_service_context.tsx @@ -14,7 +14,7 @@ import { } from '../../../common/transaction_types'; import { useServiceTransactionTypesFetcher } from './use_service_transaction_types_fetcher'; import { useServiceAgentFetcher } from './use_service_agent_fetcher'; -import { APIReturnType } from '../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../services/rest/create_call_apm_api'; import { useServiceAlertsFetcher } from './use_service_alerts_fetcher'; import { useApmParams } from '../../hooks/use_apm_params'; import { useTimeRange } from '../../hooks/use_time_range'; diff --git a/x-pack/plugins/apm/public/context/license/Invalid_license_notification.tsx b/x-pack/plugins/apm/public/context/license/invalid_license_notification.tsx similarity index 95% rename from x-pack/plugins/apm/public/context/license/Invalid_license_notification.tsx rename to x-pack/plugins/apm/public/context/license/invalid_license_notification.tsx index f93bf7e73ebe68..742e6181148f3c 100644 --- a/x-pack/plugins/apm/public/context/license/Invalid_license_notification.tsx +++ b/x-pack/plugins/apm/public/context/license/invalid_license_notification.tsx @@ -8,7 +8,7 @@ import { EuiButton, EuiEmptyPrompt } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { useKibanaUrl } from '../../hooks/useKibanaUrl'; +import { useKibanaUrl } from '../../hooks/use_kibana_url'; export function InvalidLicenseNotification() { const manageLicenseURL = useKibanaUrl( diff --git a/x-pack/plugins/apm/public/context/license/license_context.tsx b/x-pack/plugins/apm/public/context/license/license_context.tsx index 9a6cd31d466189..356fd791abdd0f 100644 --- a/x-pack/plugins/apm/public/context/license/license_context.tsx +++ b/x-pack/plugins/apm/public/context/license/license_context.tsx @@ -9,7 +9,7 @@ import React from 'react'; import useObservable from 'react-use/lib/useObservable'; import { ILicense } from '../../../../licensing/public'; import { useApmPluginContext } from '../apm_plugin/use_apm_plugin_context'; -import { InvalidLicenseNotification } from './Invalid_license_notification'; +import { InvalidLicenseNotification } from './invalid_license_notification'; export const LicenseContext = React.createContext( undefined diff --git a/x-pack/plugins/apm/public/context/url_params_context/url_params_context.tsx b/x-pack/plugins/apm/public/context/url_params_context/url_params_context.tsx index e7a5e072ff80b6..4d96cb074172d6 100644 --- a/x-pack/plugins/apm/public/context/url_params_context/url_params_context.tsx +++ b/x-pack/plugins/apm/public/context/url_params_context/url_params_context.tsx @@ -20,7 +20,7 @@ import { } from '../../../common/ux_ui_filter'; import { pickKeys } from '../../../common/utils/pick_keys'; import { UxUIFilters } from '../../../typings/ui_filters'; -import { useDeepObjectIdentity } from '../../hooks/useDeepObjectIdentity'; +import { useDeepObjectIdentity } from '../../hooks/use_deep_object_identity'; import { getDateRange } from './helpers'; import { resolveUrlParams } from './resolve_url_params'; import { UrlParams } from './types'; diff --git a/x-pack/plugins/apm/public/featureCatalogueEntry.ts b/x-pack/plugins/apm/public/feature_catalogue_entry.ts similarity index 100% rename from x-pack/plugins/apm/public/featureCatalogueEntry.ts rename to x-pack/plugins/apm/public/feature_catalogue_entry.ts diff --git a/x-pack/plugins/apm/public/hooks/useDeepObjectIdentity.ts b/x-pack/plugins/apm/public/hooks/use_deep_object_identity.ts similarity index 100% rename from x-pack/plugins/apm/public/hooks/useDeepObjectIdentity.ts rename to x-pack/plugins/apm/public/hooks/use_deep_object_identity.ts diff --git a/x-pack/plugins/apm/public/hooks/use_fetcher.integration.test.tsx b/x-pack/plugins/apm/public/hooks/use_fetcher.integration.test.tsx index 97e3e2d9928568..4b19ea5dddbda7 100644 --- a/x-pack/plugins/apm/public/hooks/use_fetcher.integration.test.tsx +++ b/x-pack/plugins/apm/public/hooks/use_fetcher.integration.test.tsx @@ -7,7 +7,7 @@ import { render, waitFor } from '@testing-library/react'; import React from 'react'; -import { delay } from '../utils/testHelpers'; +import { delay } from '../utils/test_helpers'; import { useFetcher } from './use_fetcher'; import { MockApmPluginContextWrapper } from '../context/apm_plugin/mock_apm_plugin_context'; diff --git a/x-pack/plugins/apm/public/hooks/use_fetcher.test.tsx b/x-pack/plugins/apm/public/hooks/use_fetcher.test.tsx index 79eed2b27cd669..eb78f386105b54 100644 --- a/x-pack/plugins/apm/public/hooks/use_fetcher.test.tsx +++ b/x-pack/plugins/apm/public/hooks/use_fetcher.test.tsx @@ -9,7 +9,7 @@ import { renderHook, RenderHookResult } from '@testing-library/react-hooks'; import React, { ReactNode } from 'react'; import { CoreStart } from '../../../../../src/core/public'; import { createKibanaReactContext } from '../../../../../src/plugins/kibana_react/public'; -import { delay } from '../utils/testHelpers'; +import { delay } from '../utils/test_helpers'; import { FetcherResult, useFetcher } from './use_fetcher'; // Wrap the hook with a provider so it can useKibana diff --git a/x-pack/plugins/apm/public/hooks/use_fetcher.tsx b/x-pack/plugins/apm/public/hooks/use_fetcher.tsx index 15e729b7c62768..e0c62fa8953d98 100644 --- a/x-pack/plugins/apm/public/hooks/use_fetcher.tsx +++ b/x-pack/plugins/apm/public/hooks/use_fetcher.tsx @@ -13,7 +13,7 @@ import { useTimeRangeId } from '../context/time_range_id/use_time_range_id'; import { AutoAbortedAPMClient, callApmApi, -} from '../services/rest/createCallApmApi'; +} from '../services/rest/create_call_apm_api'; import { useInspectorContext } from '../../../observability/public'; export enum FETCH_STATUS { diff --git a/x-pack/plugins/apm/public/hooks/useKibanaUrl.ts b/x-pack/plugins/apm/public/hooks/use_kibana_url.ts similarity index 100% rename from x-pack/plugins/apm/public/hooks/useKibanaUrl.ts rename to x-pack/plugins/apm/public/hooks/use_kibana_url.ts diff --git a/x-pack/plugins/apm/public/hooks/useLocalStorage.ts b/x-pack/plugins/apm/public/hooks/use_local_storage.ts similarity index 100% rename from x-pack/plugins/apm/public/hooks/useLocalStorage.ts rename to x-pack/plugins/apm/public/hooks/use_local_storage.ts diff --git a/x-pack/plugins/apm/public/hooks/use_service_metric_charts_fetcher.ts b/x-pack/plugins/apm/public/hooks/use_service_metric_charts_fetcher.ts index ec75a38e39b905..624c3c626fe971 100644 --- a/x-pack/plugins/apm/public/hooks/use_service_metric_charts_fetcher.ts +++ b/x-pack/plugins/apm/public/hooks/use_service_metric_charts_fetcher.ts @@ -5,7 +5,7 @@ * 2.0. */ -import type { APIReturnType } from '../services/rest/createCallApmApi'; +import type { APIReturnType } from '../services/rest/create_call_apm_api'; import { useApmServiceContext } from '../context/apm_service/use_apm_service_context'; import { useFetcher } from './use_fetcher'; import { useTimeRange } from './use_time_range'; diff --git a/x-pack/plugins/apm/public/images/apm-ml-anomaly-detection-example.png b/x-pack/plugins/apm/public/images/apm_ml_anomaly_detection_example.png similarity index 100% rename from x-pack/plugins/apm/public/images/apm-ml-anomaly-detection-example.png rename to x-pack/plugins/apm/public/images/apm_ml_anomaly_detection_example.png diff --git a/x-pack/plugins/apm/public/plugin.ts b/x-pack/plugins/apm/public/plugin.ts index eccfe6f90f764e..b0686f8fc28cb2 100644 --- a/x-pack/plugins/apm/public/plugin.ts +++ b/x-pack/plugins/apm/public/plugin.ts @@ -53,7 +53,7 @@ import { import { getLazyApmAgentsTabExtension } from './components/fleet_integration/lazy_apm_agents_tab_extension'; import { getLazyAPMPolicyCreateExtension } from './components/fleet_integration/lazy_apm_policy_create_extension'; import { getLazyAPMPolicyEditExtension } from './components/fleet_integration/lazy_apm_policy_edit_extension'; -import { featureCatalogueEntry } from './featureCatalogueEntry'; +import { featureCatalogueEntry } from './feature_catalogue_entry'; import type { SecurityPluginStart } from '../../security/public'; export type ApmPluginSetup = ReturnType; @@ -186,7 +186,7 @@ export class ApmPlugin implements Plugin { ); const { createCallApmApi } = await import( - './services/rest/createCallApmApi' + './services/rest/create_call_apm_api' ); // have to do this here as well in case app isn't mounted yet @@ -241,7 +241,7 @@ export class ApmPlugin implements Plugin { './components/app/rum_dashboard/ux_overview_fetchers' ); const { createCallApmApi } = await import( - './services/rest/createCallApmApi' + './services/rest/create_call_apm_api' ); // have to do this here as well in case app isn't mounted yet createCallApmApi(core); @@ -326,7 +326,7 @@ export class ApmPlugin implements Plugin { async mount(appMountParameters: AppMountParameters) { // Load application bundle and Get start service const [{ renderApp }, [coreStart, corePlugins]] = await Promise.all([ - import('./application/uxApp'), + import('./application/ux_app'), core.getStartServices(), ]); diff --git a/x-pack/plugins/apm/public/selectors/latency_chart_selectors.ts b/x-pack/plugins/apm/public/selectors/latency_chart_selectors.ts index 4c58dd13f3dcf7..caca063b0b8bc1 100644 --- a/x-pack/plugins/apm/public/selectors/latency_chart_selectors.ts +++ b/x-pack/plugins/apm/public/selectors/latency_chart_selectors.ts @@ -8,11 +8,11 @@ import { i18n } from '@kbn/i18n'; import { asDuration } from '../../common/utils/formatters'; import { APMChartSpec, Coordinate } from '../../typings/timeseries'; -import { APIReturnType } from '../services/rest/createCallApmApi'; import { ChartType, getTimeSeriesColor, } from '../components/shared/charts/helper/get_timeseries_color'; +import { APIReturnType } from '../services/rest/create_call_apm_api'; export type LatencyChartsResponse = APIReturnType<'GET /internal/apm/services/{serviceName}/transactions/charts/latency'>; diff --git a/x-pack/plugins/apm/public/services/callApi.test.ts b/x-pack/plugins/apm/public/services/call_api.test.ts similarity index 98% rename from x-pack/plugins/apm/public/services/callApi.test.ts rename to x-pack/plugins/apm/public/services/call_api.test.ts index 85e58bc81a93f9..e172d41001f161 100644 --- a/x-pack/plugins/apm/public/services/callApi.test.ts +++ b/x-pack/plugins/apm/public/services/call_api.test.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { mockNow } from '../utils/testHelpers'; -import { clearCache, callApi } from './rest/callApi'; +import { mockNow } from '../utils/test_helpers'; +import { clearCache, callApi } from './rest/call_api'; import { CoreStart, HttpSetup } from 'kibana/public'; type CoreMock = CoreStart & { diff --git a/x-pack/plugins/apm/public/services/callApmApi.test.ts b/x-pack/plugins/apm/public/services/call_apm_api.test.ts similarity index 93% rename from x-pack/plugins/apm/public/services/callApmApi.test.ts rename to x-pack/plugins/apm/public/services/call_apm_api.test.ts index f10f6a82610ab0..2e74d36b97b380 100644 --- a/x-pack/plugins/apm/public/services/callApmApi.test.ts +++ b/x-pack/plugins/apm/public/services/call_apm_api.test.ts @@ -5,8 +5,8 @@ * 2.0. */ -import * as callApiExports from './rest/callApi'; -import { createCallApmApi, callApmApi } from './rest/createCallApmApi'; +import * as callApiExports from './rest/call_api'; +import { createCallApmApi, callApmApi } from './rest/create_call_apm_api'; import { CoreStart } from 'kibana/public'; const callApi = jest diff --git a/x-pack/plugins/apm/public/services/rest/apm_observability_overview_fetchers.test.ts b/x-pack/plugins/apm/public/services/rest/apm_observability_overview_fetchers.test.ts index c6513aa24df6b4..a2d4a449c52e7b 100644 --- a/x-pack/plugins/apm/public/services/rest/apm_observability_overview_fetchers.test.ts +++ b/x-pack/plugins/apm/public/services/rest/apm_observability_overview_fetchers.test.ts @@ -10,7 +10,7 @@ import { fetchObservabilityOverviewPageData, getHasData, } from './apm_observability_overview_fetchers'; -import { getCallApmApiSpy } from './callApmApiSpy'; +import { getCallApmApiSpy } from './call_apm_api_spy'; describe('Observability dashboard data', () => { const callApmApiMock = getCallApmApiSpy(); diff --git a/x-pack/plugins/apm/public/services/rest/apm_observability_overview_fetchers.ts b/x-pack/plugins/apm/public/services/rest/apm_observability_overview_fetchers.ts index a8aac24c085166..c52d38489a85eb 100644 --- a/x-pack/plugins/apm/public/services/rest/apm_observability_overview_fetchers.ts +++ b/x-pack/plugins/apm/public/services/rest/apm_observability_overview_fetchers.ts @@ -9,7 +9,7 @@ import { ApmFetchDataResponse, FetchDataParams, } from '../../../../observability/public'; -import { callApmApi } from './createCallApmApi'; +import { callApmApi } from './create_call_apm_api'; export const fetchObservabilityOverviewPageData = async ({ absoluteTime, diff --git a/x-pack/plugins/apm/public/services/rest/callApi.ts b/x-pack/plugins/apm/public/services/rest/call_api.ts similarity index 100% rename from x-pack/plugins/apm/public/services/rest/callApi.ts rename to x-pack/plugins/apm/public/services/rest/call_api.ts diff --git a/x-pack/plugins/apm/public/services/rest/callApmApiSpy.ts b/x-pack/plugins/apm/public/services/rest/call_apm_api_spy.ts similarity index 84% rename from x-pack/plugins/apm/public/services/rest/callApmApiSpy.ts rename to x-pack/plugins/apm/public/services/rest/call_apm_api_spy.ts index d6ffd330f08bda..7acc485e53e987 100644 --- a/x-pack/plugins/apm/public/services/rest/callApmApiSpy.ts +++ b/x-pack/plugins/apm/public/services/rest/call_apm_api_spy.ts @@ -5,8 +5,8 @@ * 2.0. */ -import * as createCallApmApi from './createCallApmApi'; -import type { AbstractAPMClient } from './createCallApmApi'; +import * as createCallApmApi from './create_call_apm_api'; +import type { AbstractAPMClient } from './create_call_apm_api'; export type CallApmApiSpy = jest.SpyInstance< Promise, diff --git a/x-pack/plugins/apm/public/services/rest/createCallApmApi.ts b/x-pack/plugins/apm/public/services/rest/create_call_apm_api.ts similarity index 98% rename from x-pack/plugins/apm/public/services/rest/createCallApmApi.ts rename to x-pack/plugins/apm/public/services/rest/create_call_apm_api.ts index a8a1cff853432a..214f91198e35fb 100644 --- a/x-pack/plugins/apm/public/services/rest/createCallApmApi.ts +++ b/x-pack/plugins/apm/public/services/rest/create_call_apm_api.ts @@ -19,7 +19,7 @@ import type { // an error is expected here import { formatRequest } from '@kbn/server-route-repository/target_node/format_request'; import { FetchOptions } from '../../../common/fetch_options'; -import { CallApi, callApi } from './callApi'; +import { CallApi, callApi } from './call_api'; import type { APMServerRouteRepository, APIEndpoint, diff --git a/x-pack/plugins/apm/public/services/rest/data_view.ts b/x-pack/plugins/apm/public/services/rest/data_view.ts index 00a4664ab8351a..016c1c905b0081 100644 --- a/x-pack/plugins/apm/public/services/rest/data_view.ts +++ b/x-pack/plugins/apm/public/services/rest/data_view.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { callApmApi } from './createCallApmApi'; +import { callApmApi } from './create_call_apm_api'; export const createStaticDataView = async () => { return await callApmApi('POST /internal/apm/data_view/static', { diff --git a/x-pack/plugins/apm/public/setHelpExtension.ts b/x-pack/plugins/apm/public/set_help_extension.ts similarity index 100% rename from x-pack/plugins/apm/public/setHelpExtension.ts rename to x-pack/plugins/apm/public/set_help_extension.ts diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/config_agent.stories.tsx b/x-pack/plugins/apm/public/tutorial/config_agent/config_agent.stories.tsx index c52b32863e33a3..0fe659700a1ebd 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/config_agent.stories.tsx +++ b/x-pack/plugins/apm/public/tutorial/config_agent/config_agent.stories.tsx @@ -10,7 +10,7 @@ import { HttpStart } from 'kibana/public'; import React from 'react'; import { POLICY_ELASTIC_AGENT_ON_CLOUD } from '../../../common/fleet'; import TutorialConfigAgent from './'; -import { APIReturnType } from '../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../services/rest/create_call_apm_api'; export type APIResponseType = APIReturnType<'GET /internal/apm/fleet/agents'>; diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/get_policy_options.test.ts b/x-pack/plugins/apm/public/tutorial/config_agent/get_policy_options.test.ts index 79eefeab85c632..a8d03e651e5b75 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/get_policy_options.test.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/get_policy_options.test.ts @@ -5,7 +5,7 @@ * 2.0. */ import { getPolicyOptions } from './get_policy_options'; -import { APIReturnType } from '../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../services/rest/create_call_apm_api'; type APIResponseType = APIReturnType<'GET /internal/apm/fleet/agents'>; diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/index.test.tsx b/x-pack/plugins/apm/public/tutorial/config_agent/index.test.tsx index bc5b5246fa7ce0..ab2163cc961bf9 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/index.test.tsx +++ b/x-pack/plugins/apm/public/tutorial/config_agent/index.test.tsx @@ -10,7 +10,7 @@ import React from 'react'; import { expectTextsInDocument, expectTextsNotInDocument, -} from '../../utils/testHelpers'; +} from '../../utils/test_helpers'; import TutorialConfigAgent from './'; const policyElasticAgentOnCloudAgent = { diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/index.tsx b/x-pack/plugins/apm/public/tutorial/config_agent/index.tsx index 485109584fbe48..087ea8094ea793 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/index.tsx +++ b/x-pack/plugins/apm/public/tutorial/config_agent/index.tsx @@ -13,7 +13,7 @@ import { isPrereleaseVersion, SUPPORTED_APM_PACKAGE_VERSION, } from '../../../common/fleet'; -import { APIReturnType } from '../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../services/rest/create_call_apm_api'; import { getCommands } from './commands/get_commands'; import { getPolicyOptions, PolicyOption } from './get_policy_options'; import { PolicySelector } from './policy_selector'; diff --git a/x-pack/plugins/apm/public/tutorial/tutorial_apm_fleet_check.ts b/x-pack/plugins/apm/public/tutorial/tutorial_apm_fleet_check.ts index 45ece40a59cea2..99db7bb9637dd8 100644 --- a/x-pack/plugins/apm/public/tutorial/tutorial_apm_fleet_check.ts +++ b/x-pack/plugins/apm/public/tutorial/tutorial_apm_fleet_check.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { callApmApi } from '../services/rest/createCallApmApi'; +import { callApmApi } from '../services/rest/create_call_apm_api'; export async function hasFleetApmIntegrations() { try { diff --git a/x-pack/plugins/apm/public/tutorial/tutorial_fleet_instructions/index.tsx b/x-pack/plugins/apm/public/tutorial/tutorial_fleet_instructions/index.tsx index 27bdfd1910042c..460f61d8ae1c5e 100644 --- a/x-pack/plugins/apm/public/tutorial/tutorial_fleet_instructions/index.tsx +++ b/x-pack/plugins/apm/public/tutorial/tutorial_fleet_instructions/index.tsx @@ -23,7 +23,7 @@ import { isPrereleaseVersion, SUPPORTED_APM_PACKAGE_VERSION, } from '../../../common/fleet'; -import { APIReturnType } from '../../services/rest/createCallApmApi'; +import { APIReturnType } from '../../services/rest/create_call_apm_api'; interface Props { http: HttpStart; diff --git a/x-pack/plugins/apm/public/updateBadge.ts b/x-pack/plugins/apm/public/update_badge.ts similarity index 100% rename from x-pack/plugins/apm/public/updateBadge.ts rename to x-pack/plugins/apm/public/update_badge.ts diff --git a/x-pack/plugins/apm/public/utils/flattenObject.test.ts b/x-pack/plugins/apm/public/utils/flatten_object.test.ts similarity index 96% rename from x-pack/plugins/apm/public/utils/flattenObject.test.ts rename to x-pack/plugins/apm/public/utils/flatten_object.test.ts index 783cc9a0466875..46d115addff49e 100644 --- a/x-pack/plugins/apm/public/utils/flattenObject.test.ts +++ b/x-pack/plugins/apm/public/utils/flatten_object.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { flattenObject } from './flattenObject'; +import { flattenObject } from './flatten_object'; describe('FlattenObject', () => { it('flattens multi level item', () => { diff --git a/x-pack/plugins/apm/public/utils/flattenObject.ts b/x-pack/plugins/apm/public/utils/flatten_object.ts similarity index 100% rename from x-pack/plugins/apm/public/utils/flattenObject.ts rename to x-pack/plugins/apm/public/utils/flatten_object.ts diff --git a/x-pack/plugins/apm/public/utils/httpStatusCodeToColor.ts b/x-pack/plugins/apm/public/utils/http_status_code_to_color.ts similarity index 100% rename from x-pack/plugins/apm/public/utils/httpStatusCodeToColor.ts rename to x-pack/plugins/apm/public/utils/http_status_code_to_color.ts diff --git a/x-pack/plugins/apm/public/utils/testHelpers.tsx b/x-pack/plugins/apm/public/utils/test_helpers.tsx similarity index 97% rename from x-pack/plugins/apm/public/utils/testHelpers.tsx rename to x-pack/plugins/apm/public/utils/test_helpers.tsx index 76648c578ec40c..b503c8b78d63ca 100644 --- a/x-pack/plugins/apm/public/utils/testHelpers.tsx +++ b/x-pack/plugins/apm/public/utils/test_helpers.tsx @@ -7,8 +7,11 @@ /* global jest */ +// eslint-disable-next-line import/no-extraneous-dependencies import { render, waitFor } from '@testing-library/react'; +// eslint-disable-next-line import/no-extraneous-dependencies import { mount, MountRendererProps, ReactWrapper } from 'enzyme'; +// eslint-disable-next-line import/no-extraneous-dependencies import enzymeToJson from 'enzyme-to-json'; import { Location } from 'history'; import moment from 'moment'; diff --git a/x-pack/test/apm_api_integration/common/apm_api_supertest.ts b/x-pack/test/apm_api_integration/common/apm_api_supertest.ts index b9470f39b507f6..1c829cbb94b411 100644 --- a/x-pack/test/apm_api_integration/common/apm_api_supertest.ts +++ b/x-pack/test/apm_api_integration/common/apm_api_supertest.ts @@ -12,7 +12,7 @@ import { parseEndpoint } from '../../../plugins/apm/common/apm_api/parse_endpoin import type { APIReturnType, APIClientRequestParamsOf, -} from '../../../plugins/apm/public/services/rest/createCallApmApi'; +} from '../../../plugins/apm/public/services/rest/create_call_apm_api'; import type { APIEndpoint } from '../../../plugins/apm/server'; export function createApmApiClient(st: supertest.SuperTest) { diff --git a/x-pack/test/apm_api_integration/tests/dependencies/top_dependencies.spec.ts b/x-pack/test/apm_api_integration/tests/dependencies/top_dependencies.spec.ts index d2ead8048358b0..1b4b27c6b441b0 100644 --- a/x-pack/test/apm_api_integration/tests/dependencies/top_dependencies.spec.ts +++ b/x-pack/test/apm_api_integration/tests/dependencies/top_dependencies.spec.ts @@ -5,7 +5,7 @@ * 2.0. */ import expect from '@kbn/expect'; -import { APIReturnType } from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { FtrProviderContext } from '../../common/ftr_provider_context'; import { dataConfig, generateData } from './generate_data'; import { NodeType, BackendNode } from '../../../../plugins/apm/common/connections'; diff --git a/x-pack/test/apm_api_integration/tests/errors/distribution.spec.ts b/x-pack/test/apm_api_integration/tests/errors/distribution.spec.ts index ed2cc468001f68..d237574d551f71 100644 --- a/x-pack/test/apm_api_integration/tests/errors/distribution.spec.ts +++ b/x-pack/test/apm_api_integration/tests/errors/distribution.spec.ts @@ -10,7 +10,7 @@ import { isFiniteNumber } from '../../../../plugins/apm/common/utils/is_finite_n import { APIClientRequestParamsOf, APIReturnType, -} from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +} from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { RecursivePartial } from '../../../../plugins/apm/typings/common'; import { FtrProviderContext } from '../../common/ftr_provider_context'; import { config, generateData } from './generate_data'; diff --git a/x-pack/test/apm_api_integration/tests/errors/error_group_list.spec.ts b/x-pack/test/apm_api_integration/tests/errors/error_group_list.spec.ts index 421b536c6d5a5a..4820eda1870a09 100644 --- a/x-pack/test/apm_api_integration/tests/errors/error_group_list.spec.ts +++ b/x-pack/test/apm_api_integration/tests/errors/error_group_list.spec.ts @@ -9,7 +9,7 @@ import { apm, timerange } from '@elastic/apm-synthtrace'; import { APIClientRequestParamsOf, APIReturnType, -} from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +} from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { RecursivePartial } from '../../../../plugins/apm/typings/common'; import { FtrProviderContext } from '../../common/ftr_provider_context'; diff --git a/x-pack/test/apm_api_integration/tests/errors/group_id.spec.ts b/x-pack/test/apm_api_integration/tests/errors/group_id.spec.ts index 9fc5165ed575eb..14de478afe4f9a 100644 --- a/x-pack/test/apm_api_integration/tests/errors/group_id.spec.ts +++ b/x-pack/test/apm_api_integration/tests/errors/group_id.spec.ts @@ -8,7 +8,7 @@ import expect from '@kbn/expect'; import { APIClientRequestParamsOf, APIReturnType, -} from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +} from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { RecursivePartial } from '../../../../plugins/apm/typings/common'; import { FtrProviderContext } from '../../common/ftr_provider_context'; import { config, generateData } from './generate_data'; diff --git a/x-pack/test/apm_api_integration/tests/service_overview/dependencies/index.spec.ts b/x-pack/test/apm_api_integration/tests/service_overview/dependencies/index.spec.ts index 507b3d21e1b3fe..cbb76183f9a005 100644 --- a/x-pack/test/apm_api_integration/tests/service_overview/dependencies/index.spec.ts +++ b/x-pack/test/apm_api_integration/tests/service_overview/dependencies/index.spec.ts @@ -14,7 +14,7 @@ import { ENVIRONMENT_ALL, ENVIRONMENT_NOT_DEFINED, } from '../../../../../plugins/apm/common/environment_filter_values'; -import { APIReturnType } from '../../../../../plugins/apm/public/services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../../plugins/apm/public/services/rest/create_call_apm_api'; import archives from '../../../common/fixtures/es_archiver/archives_metadata'; import { FtrProviderContext } from '../../../common/ftr_provider_context'; import { apmDependenciesMapping, createServiceDependencyDocs } from './es_utils'; diff --git a/x-pack/test/apm_api_integration/tests/service_overview/instance_details.spec.ts b/x-pack/test/apm_api_integration/tests/service_overview/instance_details.spec.ts index fae3aff1b35a3d..d0f60ded4c4447 100644 --- a/x-pack/test/apm_api_integration/tests/service_overview/instance_details.spec.ts +++ b/x-pack/test/apm_api_integration/tests/service_overview/instance_details.spec.ts @@ -9,7 +9,7 @@ import expect from '@kbn/expect'; import { omit } from 'lodash'; import { FtrProviderContext } from '../../common/ftr_provider_context'; import archives from '../../common/fixtures/es_archiver/archives_metadata'; -import { APIReturnType } from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { getServiceNodeIds } from './get_service_node_ids'; import { createApmApiClient } from '../../common/apm_api_supertest'; diff --git a/x-pack/test/apm_api_integration/tests/service_overview/instances_detailed_statistics.spec.ts b/x-pack/test/apm_api_integration/tests/service_overview/instances_detailed_statistics.spec.ts index 719b0b487172c6..b344639920615a 100644 --- a/x-pack/test/apm_api_integration/tests/service_overview/instances_detailed_statistics.spec.ts +++ b/x-pack/test/apm_api_integration/tests/service_overview/instances_detailed_statistics.spec.ts @@ -10,7 +10,7 @@ import url from 'url'; import moment from 'moment'; import { Coordinate } from '../../../../plugins/apm/typings/timeseries'; import { isFiniteNumber } from '../../../../plugins/apm/common/utils/is_finite_number'; -import { APIReturnType } from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { FtrProviderContext } from '../../common/ftr_provider_context'; import archives from '../../common/fixtures/es_archiver/archives_metadata'; import { createApmApiClient } from '../../common/apm_api_supertest'; diff --git a/x-pack/test/apm_api_integration/tests/service_overview/instances_main_statistics.spec.ts b/x-pack/test/apm_api_integration/tests/service_overview/instances_main_statistics.spec.ts index a60da5f2bd5c05..ec8534de9f9136 100644 --- a/x-pack/test/apm_api_integration/tests/service_overview/instances_main_statistics.spec.ts +++ b/x-pack/test/apm_api_integration/tests/service_overview/instances_main_statistics.spec.ts @@ -9,7 +9,7 @@ import expect from '@kbn/expect'; import { pick, sortBy } from 'lodash'; import moment from 'moment'; import { apm, timerange } from '@elastic/apm-synthtrace'; -import { APIReturnType } from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { isFiniteNumber } from '../../../../plugins/apm/common/utils/is_finite_number'; import { FtrProviderContext } from '../../common/ftr_provider_context'; import archives from '../../common/fixtures/es_archiver/archives_metadata'; diff --git a/x-pack/test/apm_api_integration/tests/services/derived_annotations.spec.ts b/x-pack/test/apm_api_integration/tests/services/derived_annotations.spec.ts index 6a27f68be5d4fa..7b5262de18e096 100644 --- a/x-pack/test/apm_api_integration/tests/services/derived_annotations.spec.ts +++ b/x-pack/test/apm_api_integration/tests/services/derived_annotations.spec.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { APIReturnType } from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { FtrProviderContext } from '../../common/ftr_provider_context'; diff --git a/x-pack/test/apm_api_integration/tests/services/error_groups/error_groups_detailed_statistics.spec.ts b/x-pack/test/apm_api_integration/tests/services/error_groups/error_groups_detailed_statistics.spec.ts index 164a613cd2a148..0d5d61ee572971 100644 --- a/x-pack/test/apm_api_integration/tests/services/error_groups/error_groups_detailed_statistics.spec.ts +++ b/x-pack/test/apm_api_integration/tests/services/error_groups/error_groups_detailed_statistics.spec.ts @@ -12,7 +12,7 @@ import { isFiniteNumber } from '../../../../../plugins/apm/common/utils/is_finit import { APIClientRequestParamsOf, APIReturnType, -} from '../../../../../plugins/apm/public/services/rest/createCallApmApi'; +} from '../../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { RecursivePartial } from '../../../../../plugins/apm/typings/common'; import { FtrProviderContext } from '../../../common/ftr_provider_context'; import { config, generateData } from './generate_data'; diff --git a/x-pack/test/apm_api_integration/tests/services/error_groups/error_groups_main_statistics.spec.ts b/x-pack/test/apm_api_integration/tests/services/error_groups/error_groups_main_statistics.spec.ts index cf2a0865b1cbc6..d81c3106e4e2e1 100644 --- a/x-pack/test/apm_api_integration/tests/services/error_groups/error_groups_main_statistics.spec.ts +++ b/x-pack/test/apm_api_integration/tests/services/error_groups/error_groups_main_statistics.spec.ts @@ -9,7 +9,7 @@ import moment from 'moment'; import { APIClientRequestParamsOf, APIReturnType, -} from '../../../../../plugins/apm/public/services/rest/createCallApmApi'; +} from '../../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { RecursivePartial } from '../../../../../plugins/apm/typings/common'; import { FtrProviderContext } from '../../../common/ftr_provider_context'; import { generateData, config } from './generate_data'; diff --git a/x-pack/test/apm_api_integration/tests/services/services_detailed_statistics.spec.ts b/x-pack/test/apm_api_integration/tests/services/services_detailed_statistics.spec.ts index 742221d2a66e18..edb2d7d79315f4 100644 --- a/x-pack/test/apm_api_integration/tests/services/services_detailed_statistics.spec.ts +++ b/x-pack/test/apm_api_integration/tests/services/services_detailed_statistics.spec.ts @@ -9,7 +9,7 @@ import url from 'url'; import moment from 'moment'; import archives_metadata from '../../common/fixtures/es_archiver/archives_metadata'; import { FtrProviderContext } from '../../common/ftr_provider_context'; -import { APIReturnType } from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { isFiniteNumber } from '../../../../plugins/apm/common/utils/is_finite_number'; type ServicesDetailedStatisticsReturn = diff --git a/x-pack/test/apm_api_integration/tests/services/throughput.spec.ts b/x-pack/test/apm_api_integration/tests/services/throughput.spec.ts index 87c1f5a04ed258..48887b751aa020 100644 --- a/x-pack/test/apm_api_integration/tests/services/throughput.spec.ts +++ b/x-pack/test/apm_api_integration/tests/services/throughput.spec.ts @@ -13,7 +13,7 @@ import { isFiniteNumber } from '../../../../plugins/apm/common/utils/is_finite_n import { APIClientRequestParamsOf, APIReturnType, -} from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +} from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { RecursivePartial } from '../../../../plugins/apm/typings/common'; import { FtrProviderContext } from '../../common/ftr_provider_context'; import { roundNumber } from '../../utils'; diff --git a/x-pack/test/apm_api_integration/tests/services/top_services.spec.ts b/x-pack/test/apm_api_integration/tests/services/top_services.spec.ts index 9d56eb312ee5cf..137136b8a4e929 100644 --- a/x-pack/test/apm_api_integration/tests/services/top_services.spec.ts +++ b/x-pack/test/apm_api_integration/tests/services/top_services.spec.ts @@ -8,7 +8,7 @@ import expect from '@kbn/expect'; import { sortBy } from 'lodash'; import { apm, timerange } from '@elastic/apm-synthtrace'; -import { APIReturnType } from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { FtrProviderContext } from '../../common/ftr_provider_context'; import archives_metadata from '../../common/fixtures/es_archiver/archives_metadata'; import { ENVIRONMENT_ALL } from '../../../../plugins/apm/common/environment_filter_values'; diff --git a/x-pack/test/apm_api_integration/tests/transactions/error_rate.spec.ts b/x-pack/test/apm_api_integration/tests/transactions/error_rate.spec.ts index 3a198d36e02e6f..858c7c9327176d 100644 --- a/x-pack/test/apm_api_integration/tests/transactions/error_rate.spec.ts +++ b/x-pack/test/apm_api_integration/tests/transactions/error_rate.spec.ts @@ -9,7 +9,7 @@ import expect from '@kbn/expect'; import { first, last } from 'lodash'; import { format } from 'url'; import moment from 'moment'; -import { APIReturnType } from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import archives_metadata from '../../common/fixtures/es_archiver/archives_metadata'; import { FtrProviderContext } from '../../common/ftr_provider_context'; diff --git a/x-pack/test/apm_api_integration/tests/transactions/latency.spec.ts b/x-pack/test/apm_api_integration/tests/transactions/latency.spec.ts index f8715ef0c0e9eb..a221325e157715 100644 --- a/x-pack/test/apm_api_integration/tests/transactions/latency.spec.ts +++ b/x-pack/test/apm_api_integration/tests/transactions/latency.spec.ts @@ -8,7 +8,7 @@ import expect from '@kbn/expect'; import url from 'url'; import moment from 'moment'; -import { APIReturnType } from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { FtrProviderContext } from '../../common/ftr_provider_context'; import archives_metadata from '../../common/fixtures/es_archiver/archives_metadata'; diff --git a/x-pack/test/apm_api_integration/tests/transactions/trace_samples.spec.ts b/x-pack/test/apm_api_integration/tests/transactions/trace_samples.spec.ts index ef114740ec735c..0895c20371cc19 100644 --- a/x-pack/test/apm_api_integration/tests/transactions/trace_samples.spec.ts +++ b/x-pack/test/apm_api_integration/tests/transactions/trace_samples.spec.ts @@ -8,7 +8,7 @@ import expect from '@kbn/expect'; import qs from 'querystring'; import { sortBy } from 'lodash'; -import { APIReturnType } from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import archives_metadata from '../../common/fixtures/es_archiver/archives_metadata'; import { FtrProviderContext } from '../../common/ftr_provider_context'; diff --git a/x-pack/test/apm_api_integration/tests/transactions/transactions_groups_detailed_statistics.spec.ts b/x-pack/test/apm_api_integration/tests/transactions/transactions_groups_detailed_statistics.spec.ts index be60c655ce50df..83f4bc6ea4afb8 100644 --- a/x-pack/test/apm_api_integration/tests/transactions/transactions_groups_detailed_statistics.spec.ts +++ b/x-pack/test/apm_api_integration/tests/transactions/transactions_groups_detailed_statistics.spec.ts @@ -10,7 +10,7 @@ import { first, isEmpty, last, meanBy } from 'lodash'; import moment from 'moment'; import { LatencyAggregationType } from '../../../../plugins/apm/common/latency_aggregation_types'; import { asPercent } from '../../../../plugins/apm/common/utils/formatters'; -import { APIReturnType } from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { FtrProviderContext } from '../../common/ftr_provider_context'; import { roundNumber } from '../../utils'; diff --git a/x-pack/test/apm_api_integration/tests/transactions/transactions_groups_main_statistics.spec.ts b/x-pack/test/apm_api_integration/tests/transactions/transactions_groups_main_statistics.spec.ts index 2c645ce2c62776..56719588b439b1 100644 --- a/x-pack/test/apm_api_integration/tests/transactions/transactions_groups_main_statistics.spec.ts +++ b/x-pack/test/apm_api_integration/tests/transactions/transactions_groups_main_statistics.spec.ts @@ -8,7 +8,7 @@ import expect from '@kbn/expect'; import { pick, sum } from 'lodash'; import url from 'url'; -import { APIReturnType } from '../../../../plugins/apm/public/services/rest/createCallApmApi'; +import { APIReturnType } from '../../../../plugins/apm/public/services/rest/create_call_apm_api'; import { FtrProviderContext } from '../../common/ftr_provider_context'; import archives from '../../common/fixtures/es_archiver/archives_metadata';