From bf04235dae35452061cc7ea3d86d96c19a58206c Mon Sep 17 00:00:00 2001
From: restrry
Date: Fri, 22 May 2020 09:08:58 +0200
Subject: [PATCH] apply prettier styles
---
.eslintrc.js | 2 +-
Gruntfile.js | 2 +-
.../public/alert_types/always_firing.tsx | 2 +-
.../public/alert_types/astros.tsx | 10 +-
.../server/alert_types/astros.ts | 5 +-
.../public/components/count_until/index.tsx | 2 +-
.../components/double_integers/index.tsx | 10 +-
.../public/containers/app/index.tsx | 2 +-
.../public/containers/app/sidebar/index.tsx | 2 +-
examples/bfetch_explorer/server/plugin.ts | 2 +-
.../server/async_demo_search_strategy.ts | 4 +-
.../server/demo_search_strategy.ts | 2 +-
.../list_container_component.tsx | 2 +-
.../multi_task_todo_component.tsx | 2 +-
.../multi_task_todo_embeddable.tsx | 2 +-
.../searchable_list_container_component.tsx | 24 +-
.../public/todo/todo_embeddable_factory.tsx | 4 +-
examples/embeddable_explorer/public/app.tsx | 4 +-
.../public/embeddable_panel_example.tsx | 2 +-
.../public/todo_embeddable_example.tsx | 8 +-
.../search_explorer/public/application.tsx | 4 +-
.../public/async_demo_strategy.tsx | 2 +-
.../search_explorer/public/demo_strategy.tsx | 4 +-
examples/search_explorer/public/do_search.tsx | 4 +-
.../search_explorer/public/es_strategy.tsx | 4 +-
.../search_explorer/public/guide_section.tsx | 6 +-
.../public/todo/todo.tsx | 18 +-
.../with_data_services/components/app.tsx | 4 +-
.../public/actions/actions.tsx | 8 +-
examples/ui_actions_explorer/public/app.tsx | 2 +-
.../public/trigger_context_example.tsx | 2 +-
.../url_generators_examples/public/app.tsx | 2 +-
.../public/url_generator.ts | 4 +-
.../url_generators_explorer/public/app.tsx | 8 +-
packages/elastic-datemath/__tests__/index.js | 145 +-
packages/elastic-datemath/src/index.js | 4 +-
packages/kbn-analytics/scripts/build.js | 4 +-
packages/kbn-analytics/src/report.ts | 2 +-
packages/kbn-analytics/src/reporter.ts | 2 +-
.../kbn-babel-code-parser/src/code_parser.js | 2 +-
.../kbn-babel-code-parser/src/strategies.js | 2 +-
.../src/strategies.test.js | 2 +-
.../kbn-babel-code-parser/src/visitors.js | 10 +-
.../src/visitors.test.js | 2 +-
.../src/errors/schema_error.test.ts | 4 +-
.../src/errors/validation_error.ts | 4 +-
.../kbn-config-schema/src/internals/index.ts | 4 +-
.../src/typeguards/is_config_schema.test.ts | 2 +-
.../kbn-config-schema/src/types/array_type.ts | 5 +-
.../src/types/string_type.ts | 6 +-
.../kbn-config-schema/src/types/union_type.ts | 2 +-
.../ci_stats_reporter/ci_stats_reporter.ts | 2 +-
.../src/kbn_client/kbn_client_requester.ts | 2 +-
.../src/proc_runner/observe_readable.ts | 2 +-
.../kbn-dev-utils/src/proc_runner/proc.ts | 4 +-
.../src/proc_runner/proc_runner.ts | 18 +-
.../src/proc_runner/with_proc_runner.test.ts | 14 +-
packages/kbn-dev-utils/src/run/fail.ts | 2 +-
packages/kbn-dev-utils/src/run/run.ts | 4 +-
.../src/tooling_log/tooling_log.test.ts | 51 +-
.../tooling_log_collecting_writer.ts | 2 +-
packages/kbn-es/src/artifact.js | 4 +-
packages/kbn-es/src/artifact.test.js | 6 +-
packages/kbn-es/src/cli.js | 2 +-
packages/kbn-es/src/cluster.js | 22 +-
packages/kbn-es/src/errors.js | 4 +-
packages/kbn-es/src/install/source.js | 8 +-
.../integration_tests/__fixtures__/es_bin.js | 2 +-
.../src/integration_tests/cluster.test.js | 10 +-
packages/kbn-es/src/settings.ts | 2 +-
packages/kbn-es/src/utils/build_snapshot.js | 8 +-
packages/kbn-es/src/utils/decompress.js | 11 +-
.../kbn-es/src/utils/extract_config_files.js | 2 +-
.../src/utils/find_most_recently_changed.js | 2 +-
.../utils/find_most_recently_changed.test.js | 2 +-
packages/kbn-es/src/utils/native_realm.js | 6 +-
.../lib/get_is_path_request.js | 2 +-
.../lib/get_kibana_path.js | 2 +-
.../lib/get_path_type.js | 4 +-
.../lib/get_plugins.js | 12 +-
.../lib/get_project_root.js | 2 +-
.../lib/get_webpack_config.js | 4 +-
.../lib/is_probably_webpack_shim.js | 8 +-
.../lib/resolve_webpack_alias.js | 2 +-
packages/kbn-eslint-plugin-eslint/lib.js | 2 +-
.../rules/disallow_license_headers.js | 6 +-
.../rules/module_migration.js | 4 +-
.../rules/require_license_header.js | 6 +-
packages/kbn-i18n/scripts/build.js | 4 +-
packages/kbn-i18n/src/angular/filter.test.ts | 7 +-
packages/kbn-i18n/src/loader.ts | 2 +-
.../src/react/pseudo_locale_wrapper.tsx | 2 +-
.../kbn-interpreter/src/common/lib/arg.js | 2 +-
.../kbn-interpreter/src/common/lib/ast.js | 4 +-
packages/kbn-interpreter/src/common/lib/fn.js | 2 +-
.../src/common/lib/get_by_alias.js | 2 +-
.../src/common/lib/registry.js | 2 +-
.../kbn-interpreter/src/common/registries.js | 6 +-
packages/kbn-interpreter/tasks/build/cli.js | 4 +-
packages/kbn-optimizer/src/cli.ts | 4 +-
.../src/common/array_helpers.test.ts | 12 +-
packages/kbn-optimizer/src/common/bundle.ts | 2 +-
.../disallowed_syntax.ts | 4 +-
.../disallowed_syntax_plugin.ts | 8 +-
.../src/common/event_stream_helpers.test.ts | 2 +-
.../src/common/event_stream_helpers.ts | 4 +-
.../src/common/parse_path.test.ts | 4 +-
.../src/common/rxjs_helpers.test.ts | 10 +-
.../kbn-optimizer/src/common/rxjs_helpers.ts | 4 +-
.../basic_optimization.test.ts | 28 +-
.../integration_tests/bundle_cache.test.ts | 2 +-
.../watch_bundles_for_changes.test.ts | 4 +-
.../kbn-optimizer/src/log_optimizer_state.ts | 2 +-
.../assign_bundles_to_workers.test.ts | 2 +-
.../optimizer/assign_bundles_to_workers.ts | 14 +-
.../src/optimizer/cache_keys.test.ts | 2 +-
.../kbn-optimizer/src/optimizer/cache_keys.ts | 2 +-
.../kbn-optimizer/src/optimizer/get_mtimes.ts | 6 +-
.../src/optimizer/get_plugin_bundles.test.ts | 2 +-
.../src/optimizer/get_plugin_bundles.ts | 4 +-
.../optimizer/handle_optimizer_completion.ts | 2 +-
.../src/optimizer/kibana_platform_plugins.ts | 6 +-
.../src/optimizer/observe_worker.ts | 12 +-
.../src/optimizer/optimizer_config.ts | 4 +-
.../src/optimizer/optimizer_state.ts | 6 +-
.../src/optimizer/run_workers.ts | 8 +-
.../optimizer/watch_bundles_for_changes.ts | 10 +-
.../kbn-optimizer/src/optimizer/watcher.ts | 8 +-
.../src/report_optimizer_stats.ts | 4 +-
.../kbn-optimizer/src/worker/run_compilers.ts | 18 +-
.../kbn-optimizer/src/worker/run_worker.ts | 4 +-
.../kbn-optimizer/src/worker/theme_loader.ts | 2 +-
.../src/worker/webpack.config.ts | 6 +-
packages/kbn-plugin-generator/index.js | 2 +-
.../kbn-plugin-generator/sao_template/sao.js | 8 +-
packages/kbn-plugin-helpers/src/cli.ts | 4 +-
packages/kbn-plugin-helpers/src/lib/docs.ts | 2 +-
.../lib/enable_collecting_unknown_options.ts | 2 +-
.../build_action_test_plugin/index.js | 2 +-
.../create_build_test_plugin/index.js | 2 +-
.../create_package_test_plugin/index.js | 2 +-
.../integration_tests/build_action.test.js | 4 +-
.../src/tasks/build/rewrite_package_json.ts | 2 +-
.../src/tasks/start/start_task.ts | 2 +-
packages/kbn-pm/src/cli.ts | 4 +-
packages/kbn-pm/src/commands/bootstrap.ts | 2 +-
packages/kbn-pm/src/commands/run.ts | 2 +-
packages/kbn-pm/src/commands/watch.ts | 2 +-
.../production/build_production_projects.ts | 4 +-
packages/kbn-pm/src/run.ts | 2 +-
.../kbn-pm/src/utils/bootstrap_cache_file.ts | 4 +-
packages/kbn-pm/src/utils/fs.ts | 6 +-
packages/kbn-pm/src/utils/kibana.ts | 4 +-
.../utils/link_project_executables.test.ts | 2 +-
.../src/utils/link_project_executables.ts | 4 +-
packages/kbn-pm/src/utils/parallelize.test.ts | 8 +-
packages/kbn-pm/src/utils/project.ts | 4 +-
.../kbn-pm/src/utils/project_checksums.ts | 6 +-
packages/kbn-pm/src/utils/projects.test.ts | 6 +-
packages/kbn-pm/src/utils/projects.ts | 10 +-
packages/kbn-pm/src/utils/watch.ts | 10 +-
packages/kbn-pm/src/utils/workspaces.ts | 2 +-
.../bin/spec_to_console.js | 2 +-
packages/kbn-spec-to-console/lib/convert.js | 14 +-
.../lib/convert/methods.js | 2 +-
.../kbn-spec-to-console/lib/convert/params.js | 6 +-
.../kbn-spec-to-console/lib/convert/parts.js | 4 +-
.../kbn-spec-to-console/lib/convert/paths.js | 4 +-
.../lib/replace_pattern.js | 2 +-
packages/kbn-storybook/index.js | 2 +-
packages/kbn-storybook/lib/storybook_entry.js | 12 +-
.../storybook_config/middleware.js | 2 +-
.../storybook_config/mocks/noop.js | 2 +-
.../storybook_config/webpack.config.js | 2 +-
.../kbn-test-subj-selector/__tests__/index.js | 4 +-
packages/kbn-test-subj-selector/index.js | 7 +-
.../add_messages_to_report.test.ts | 8 +-
.../add_messages_to_report.ts | 4 +-
.../src/failed_tests_reporter/github_api.ts | 2 +-
.../run_failed_tests_reporter_cli.ts | 2 +-
.../__tests__/integration/basic.js | 2 +-
.../__tests__/integration/failure_hooks.js | 2 +-
.../src/functional_test_runner/cli.ts | 2 +-
.../functional_test_runner.ts | 2 +-
.../lib/config/config.ts | 4 +-
.../lib/config/schema.ts | 40 +-
.../lib/failure_metadata.ts | 8 +-
.../lib/lifecycle_event.ts | 2 +-
.../lib/lifecycle_phase.test.ts | 6 +-
.../functional_test_runner/lib/load_tracer.ts | 4 +-
.../lib/mocha/assignment_proxy.js | 2 +-
.../lib/mocha/decorate_mocha_ui.js | 4 +-
.../lib/mocha/filter_suites_by_tags.js | 10 +-
.../lib/mocha/filter_suites_by_tags.test.js | 8 +-
.../lib/mocha/load_test_files.js | 2 +-
.../lib/mocha/reporter/reporter.js | 22 +-
.../lib/mocha/run_tests.ts | 2 +-
.../lib/mocha/setup_mocha.js | 10 +-
.../lib/providers/async_instance.ts | 2 +-
.../lib/providers/provider_collection.ts | 4 +-
.../lib/providers/read_provider_spec.ts | 2 +-
.../lib/providers/verbose_instance.ts | 6 +-
.../lib/suite_tracker.test.ts | 4 +-
.../lib/suite_tracker.ts | 4 +-
.../functional_tests/cli/run_tests/args.js | 8 +-
.../src/functional_tests/cli/run_tests/cli.js | 2 +-
.../cli/start_servers/args.js | 6 +-
.../functional_tests/cli/start_servers/cli.js | 2 +-
.../src/functional_tests/lib/run_cli.js | 7 +-
.../src/functional_tests/lib/run_cli.test.js | 4 +-
.../functional_tests/lib/run_elasticsearch.js | 2 +-
.../functional_tests/lib/run_kibana_server.js | 10 +-
.../kbn-test/src/functional_tests/tasks.js | 6 +-
.../__tests__/junit_report_generation.js | 4 +-
.../src/mocha/junit_report_generation.js | 24 +-
packages/kbn-test/src/mocha/run_mocha_cli.js | 2 +-
packages/kbn-ui-framework/Gruntfile.js | 22 +-
.../src/actions/example_nav_actions.js | 2 +-
.../src/components/guide_code/guide_code.js | 2 +-
.../guide_code_viewer/guide_code_viewer.js | 2 +-
.../src/components/guide_demo/guide_demo.js | 2 +-
.../src/components/guide_link/guide_link.js | 2 +-
.../src/components/guide_nav/guide_nav.js | 4 +-
.../guide_page/guide_page_container.js | 2 +-
.../guide_page_side_nav.js | 2 +-
.../src/components/guide_text/guide_text.js | 2 +-
.../kbn-ui-framework/doc_site/src/index.js | 6 +-
.../doc_site/src/services/routes/routes.js | 4 +-
.../doc_site/src/services/string/slugify.js | 2 +-
.../src/store/reducers/sections_reducer.js | 2 +-
.../doc_site/src/views/bar/bar_example.js | 2 +-
.../src/views/button/button_elements.js | 4 +-
.../src/views/button/button_example.js | 2 +-
.../collapse_button/collapse_button_aria.js | 4 +-
.../collapse_button_example.js | 2 +-
.../empty_table_prompt_example.js | 2 +-
.../doc_site/src/views/form/check_box.js | 8 +-
.../doc_site/src/views/form/form_example.js | 2 +-
.../doc_site/src/views/form/select.js | 13 +-
.../doc_site/src/views/form/text_area.js | 12 +-
.../src/views/form/text_area_non_resizable.js | 2 +-
.../doc_site/src/views/form/text_input.js | 12 +-
.../views/form_layout/form_layout_example.js | 2 +-
.../doc_site/src/views/icon/icon_example.js | 2 +-
.../views/info_panel/info_panel_example.js | 2 +-
.../doc_site/src/views/link/link_example.js | 2 +-
.../src/views/local_nav/local_nav_example.js | 2 +-
.../doc_site/src/views/pager/pager_example.js | 2 +-
.../doc_site/src/views/panel/panel_example.js | 2 +-
.../views/status_text/status_text_example.js | 2 +-
.../doc_site/src/views/table/fluid_table.js | 8 +-
.../doc_site/src/views/table/listing_table.js | 2 +-
.../doc_site/src/views/table/table.js | 24 +-
.../doc_site/src/views/table/table_example.js | 2 +-
.../doc_site/src/views/tabs/tabs.js | 2 +-
.../doc_site/src/views/tabs/tabs_example.js | 2 +-
.../src/views/tool_bar/tool_bar_example.js | 2 +-
.../views/typography/typography_example.js | 2 +-
.../vertical_rhythm_example.js | 2 +-
.../doc_site/src/views/view/view_sandbox.js | 2 +-
.../generator-kui/app/component.js | 2 +-
.../generator-kui/app/documentation.js | 2 +-
.../generator-kui/component/index.js | 4 +-
.../generator-kui/documentation/index.js | 4 +-
.../kbn-ui-framework/generator-kui/utils.js | 6 +-
.../src/components/button/button.js | 2 +-
.../src/components/button/button.test.js | 2 +-
.../button/button_group/button_group.js | 2 +-
.../button/button_icon/button_icon.js | 2 +-
.../button/button_icon/button_icon.test.js | 2 +-
.../src/components/button/link_button.test.js | 2 +-
.../components/button/submit_button.test.js | 2 +-
.../collapse_button/collapse_button.test.js | 2 +-
.../src/components/form/select/select.test.js | 2 +-
.../form/text_area/text_area.test.js | 2 +-
.../form/text_input/text_input.test.js | 2 +-
.../table/listing_table/listing_table.js | 2 +-
.../table/listing_table/listing_table.test.js | 12 +-
.../components/typography/typography.test.js | 2 +-
.../accessibility/html_id_generator.js | 2 +-
.../src/services/sort/sortable_properties.js | 2 +-
.../services/sort/sortable_properties.test.js | 6 +-
.../src/test/take_mounted_snapshot.js | 2 +-
.../kbn-ui-shared-deps/public_path_loader.js | 2 +-
packages/kbn-ui-shared-deps/scripts/build.js | 6 +-
packages/kbn-ui-shared-deps/webpack.config.js | 4 +-
packages/kbn-utility-types/index.ts | 6 +-
scripts/es.js | 2 +-
scripts/test_hardening.js | 6 +-
src/apm.js | 2 +-
src/cli/cli.js | 4 +-
src/cli/cluster/cluster_manager.test.ts | 2 +-
src/cli/cluster/cluster_manager.ts | 21 +-
src/cli/cluster/worker.ts | 8 +-
src/cli/command.js | 18 +-
src/cli/help.js | 10 +-
src/cli/repl/index.js | 6 +-
src/cli/repl/repl.test.js | 6 +-
.../integration_tests/invalid_config.test.ts | 10 +-
.../reload_logging_config.test.ts | 40 +-
src/cli/serve/read_keystore.js | 2 +-
src/cli/serve/serve.js | 12 +-
src/cli_keystore/add.test.js | 4 +-
src/cli_keystore/cli_keystore.js | 4 +-
src/cli_keystore/create.test.js | 4 +-
src/cli_keystore/list.test.js | 4 +-
src/cli_plugin/cli.js | 4 +-
src/cli_plugin/install/cleanup.js | 2 +-
src/cli_plugin/install/cleanup.test.js | 42 +-
src/cli_plugin/install/download.js | 2 +-
src/cli_plugin/install/download.test.js | 96 +-
src/cli_plugin/install/downloaders/file.js | 2 +-
src/cli_plugin/install/downloaders/http.js | 2 +-
src/cli_plugin/install/index.test.js | 22 +-
src/cli_plugin/install/kibana.test.js | 34 +-
src/cli_plugin/install/pack.test.js | 34 +-
src/cli_plugin/install/progress.test.js | 16 +-
src/cli_plugin/install/rename.js | 2 +-
src/cli_plugin/install/rename.test.js | 26 +-
src/cli_plugin/install/settings.js | 2 +-
src/cli_plugin/install/settings.test.js | 80 +-
src/cli_plugin/install/zip.js | 22 +-
src/cli_plugin/install/zip.test.js | 6 +-
src/cli_plugin/lib/log_warnings.js | 4 +-
src/cli_plugin/lib/logger.test.js | 32 +-
src/cli_plugin/list/list.js | 2 +-
src/cli_plugin/list/list.test.js | 22 +-
src/cli_plugin/list/settings.test.js | 16 +-
src/cli_plugin/remove/remove.test.js | 14 +-
src/cli_plugin/remove/settings.test.js | 38 +-
.../application/application_leave.test.ts | 6 +-
.../application/application_service.mock.ts | 2 +-
.../application/application_service.test.ts | 34 +-
.../application/application_service.tsx | 20 +-
.../application_service.test.tsx | 14 +-
.../integration_tests/router.test.tsx | 2 +-
.../application/integration_tests/utils.tsx | 2 +-
.../public/application/scoped_history.test.ts | 6 +-
src/core/public/application/scoped_history.ts | 2 +-
.../application/ui/app_container.test.tsx | 4 +-
.../public/application/ui/app_container.tsx | 2 +-
src/core/public/chrome/chrome_service.test.ts | 49 +-
src/core/public/chrome/chrome_service.tsx | 6 +-
.../chrome/doc_title/doc_title_service.ts | 2 +-
.../nav_controls/nav_controls_service.test.ts | 28 +-
.../nav_controls/nav_controls_service.ts | 4 +-
.../nav_links/nav_links_service.test.ts | 45 +-
.../chrome/nav_links/nav_links_service.ts | 10 +-
.../chrome/recently_accessed/persisted_log.ts | 4 +-
.../chrome/ui/header/collapsible_nav.tsx | 8 +-
src/core/public/chrome/ui/header/header.tsx | 8 +-
.../public/chrome/ui/header/header_badge.tsx | 2 +-
.../chrome/ui/header/header_breadcrumbs.tsx | 2 +-
.../public/chrome/ui/header/header_logo.tsx | 4 +-
src/core/public/chrome/ui/header/nav_link.tsx | 2 +-
.../public/chrome/ui/loading_indicator.tsx | 2 +-
src/core/public/entry_point.ts | 4 +-
.../fatal_errors/fatal_errors_screen.tsx | 4 +-
.../fatal_errors/fatal_errors_service.test.ts | 2 +-
.../fatal_errors/fatal_errors_service.tsx | 4 +-
src/core/public/http/base_path.ts | 2 +-
src/core/public/http/fetch.test.ts | 12 +-
src/core/public/http/fetch.ts | 2 +-
src/core/public/http/intercept.ts | 8 +-
.../public/http/loading_count_service.test.ts | 10 +-
src/core/public/http/loading_count_service.ts | 6 +-
.../moment/moment_service.test.mocks.ts | 2 +-
.../moment/moment_service.test.ts | 2 +-
.../styles/styles_service.test.ts | 2 +-
src/core/public/legacy/legacy_service.ts | 4 +-
.../toasts/global_toast_list.test.tsx | 2 +-
.../toasts/global_toast_list.tsx | 2 +-
.../notifications/toasts/toasts_api.test.ts | 5 +-
.../notifications/toasts/toasts_api.tsx | 2 +-
.../public/overlays/banners/banners_list.tsx | 2 +-
.../overlays/banners/banners_service.test.ts | 6 +-
.../overlays/banners/banners_service.tsx | 2 +-
.../overlays/banners/user_banner_service.tsx | 2 +-
.../overlays/modal/modal_service.test.tsx | 4 +-
.../public/overlays/overlay.test.mocks.ts | 2 +-
src/core/public/plugins/plugin.test.ts | 4 +-
src/core/public/plugins/plugin_context.ts | 4 +-
.../public/plugins/plugins_service.test.ts | 8 +-
src/core/public/plugins/plugins_service.ts | 6 +-
.../saved_objects/saved_objects_client.ts | 26 +-
.../ui_settings/ui_settings_api.test.ts | 22 +-
.../ui_settings/ui_settings_client.test.ts | 15 +-
.../public/ui_settings/ui_settings_client.ts | 2 +-
.../ui_settings/ui_settings_service.test.ts | 2 +-
.../public/utils/share_weak_replay.test.ts | 4 +-
src/core/public/utils/share_weak_replay.ts | 2 +-
src/core/server/bootstrap.ts | 2 +-
.../capabilities/capabilities_service.ts | 4 +-
.../capabilities/resolve_capabilities.ts | 2 +-
src/core/server/config/config.ts | 2 +-
src/core/server/config/config_service.test.ts | 12 +-
src/core/server/config/config_service.ts | 29 +-
.../deprecation/apply_deprecations.test.ts | 4 +-
.../deprecation/core_deprecations.test.ts | 4 +-
.../config/deprecation/core_deprecations.ts | 10 +-
.../deprecation/deprecation_factory.test.ts | 2 +-
src/core/server/config/ensure_deep_object.ts | 2 +-
.../config_deprecation.test.ts | 4 +-
.../server/config/raw_config_service.test.ts | 11 +-
src/core/server/config/raw_config_service.ts | 4 +-
.../default_route_provider_config.test.ts | 6 +-
.../integration_tests/static_assets.test.ts | 12 +-
.../elasticsearch_config.test.ts | 4 +-
.../elasticsearch/elasticsearch_config.ts | 6 +-
.../elasticsearch_service.test.ts | 8 +-
.../elasticsearch/elasticsearch_service.ts | 12 +-
.../elasticsearch/retry_call_cluster.test.ts | 2 +-
.../elasticsearch/retry_call_cluster.ts | 4 +-
.../elasticsearch/scoped_cluster_client.ts | 2 +-
src/core/server/elasticsearch/status.test.ts | 8 +-
.../version_check/ensure_es_version.test.ts | 14 +-
.../version_check/ensure_es_version.ts | 14 +-
src/core/server/http/auth_headers_storage.ts | 2 +-
src/core/server/http/auth_state_storage.ts | 2 +-
.../server/http/base_path_proxy_server.ts | 8 +-
src/core/server/http/base_path_service.ts | 2 +-
.../http/cookie_session_storage.test.ts | 18 +-
src/core/server/http/http_config.ts | 4 +-
src/core/server/http/http_server.test.ts | 128 +-
src/core/server/http/http_server.ts | 2 +-
src/core/server/http/http_tools.test.ts | 6 +-
src/core/server/http/http_tools.ts | 6 +-
.../server/http/https_redirect_server.test.ts | 2 +-
.../core_service.test.mocks.ts | 4 +-
.../http/integration_tests/lifecycle.test.ts | 161 +-
.../lifecycle_handlers.test.ts | 26 +-
.../http/integration_tests/request.test.ts | 44 +-
.../http/integration_tests/router.test.ts | 306 ++--
.../server/http/lifecycle/on_pre_response.ts | 2 +-
.../validate_object.test.ts | 6 +-
src/core/server/http/router/error_wrapper.ts | 2 +-
src/core/server/http/router/headers.ts | 2 +-
src/core/server/http/router/router.mock.ts | 2 +-
.../http/router/validator/validator.test.ts | 4 +-
src/core/server/http/ssl_config.ts | 2 +-
.../config/ensure_valid_configuration.ts | 2 +-
.../legacy/config/get_unused_config_keys.ts | 4 +-
.../legacy_deprecation_adapters.test.ts | 4 +-
.../server/legacy/legacy_internals.test.ts | 12 +-
src/core/server/legacy/legacy_service.test.ts | 6 +-
src/core/server/legacy/legacy_service.ts | 8 +-
src/core/server/legacy/merge_vars.ts | 6 +-
.../plugins/find_legacy_plugin_specs.ts | 12 +-
.../legacy/plugins/get_nav_links.test.ts | 2 +-
.../server/legacy/plugins/get_nav_links.ts | 6 +-
.../plugins/log_legacy_plugins_warning.ts | 4 +-
.../appenders/file/file_appender.test.ts | 2 +-
.../logging/appenders/file/file_appender.ts | 2 +-
.../server/logging/integration_tests/utils.ts | 4 +-
.../server/logging/layouts/pattern_layout.ts | 2 +-
src/core/server/logging/logging_config.ts | 4 +-
src/core/server/logging/logging_service.ts | 2 +-
src/core/server/metrics/collectors/process.ts | 2 +-
src/core/server/metrics/collectors/server.ts | 4 +-
.../server_collector.test.ts | 12 +-
.../server/metrics/metrics_service.test.ts | 5 +-
src/core/server/path/index.ts | 2 +-
.../discovery/plugin_manifest_parser.ts | 4 +-
.../discovery/plugins_discovery.test.ts | 4 +-
.../plugins/discovery/plugins_discovery.ts | 18 +-
.../integration_tests/plugins_service.test.ts | 2 +-
src/core/server/plugins/plugin.test.ts | 4 +-
.../server/plugins/plugins_service.test.ts | 4 +-
src/core/server/plugins/plugins_service.ts | 16 +-
.../server/plugins/plugins_system.test.ts | 8 +-
src/core/server/plugins/plugins_system.ts | 20 +-
src/core/server/rendering/views/fonts.tsx | 2 +-
src/core/server/root/index.test.ts | 2 +-
src/core/server/root/index.ts | 6 +-
.../export/get_sorted_objects_for_export.ts | 2 +-
.../export/inject_nested_depdendencies.ts | 6 +-
.../saved_objects/export/sort_objects.ts | 6 +-
.../import/collect_saved_objects.ts | 4 +-
.../import/create_objects_filter.ts | 2 +-
.../import/import_saved_objects.test.ts | 12 +-
.../import/import_saved_objects.ts | 2 +-
.../import/resolve_import_errors.test.ts | 26 +-
.../import/resolve_import_errors.ts | 4 +-
.../saved_objects/import/split_overwrites.ts | 4 +-
.../import/validate_references.ts | 8 +-
.../saved_objects/mappings/lib/get_types.ts | 2 +-
.../migrations/core/build_active_mappings.ts | 11 +-
.../migrations/core/build_index_map.test.ts | 2 +-
.../migrations/core/build_index_map.ts | 2 +-
.../migrations/core/document_migrator.test.ts | 10 +-
.../migrations/core/document_migrator.ts | 8 +-
.../migrations/core/elastic_index.ts | 8 +-
.../migrations/core/index_migrator.test.ts | 2 +-
.../migrations/core/index_migrator.ts | 6 +-
.../migrations/core/migrate_raw_docs.ts | 2 +-
.../migrations/core/migration_coordinator.ts | 2 +-
.../migrations/kibana/kibana_migrator.mock.ts | 2 +-
.../migrations/kibana/kibana_migrator.test.ts | 9 +-
.../migrations/kibana/kibana_migrator.ts | 6 +-
.../server/saved_objects/migrations/mocks.ts | 4 +-
.../server/saved_objects/routes/export.ts | 2 +-
.../server/saved_objects/routes/import.ts | 2 +-
.../routes/integration_tests/export.test.ts | 2 +-
.../routes/integration_tests/find.test.ts | 4 +-
.../routes/integration_tests/migrate.test.ts | 15 +-
.../routes/resolve_import_errors.ts | 2 +-
src/core/server/saved_objects/routes/utils.ts | 8 +-
.../saved_objects_service.test.ts | 4 +-
.../saved_objects/saved_objects_service.ts | 10 +-
.../saved_objects_type_registry.mock.ts | 5 +-
.../saved_objects_type_registry.test.ts | 4 +-
.../saved_objects_type_registry.ts | 2 +-
.../saved_objects/service/lib/filter_utils.ts | 10 +-
.../service/lib/included_fields.ts | 2 +-
.../service/lib/priority_collection.test.ts | 4 +-
.../service/lib/priority_collection.ts | 6 +-
.../service/lib/repository.test.js | 103 +-
.../saved_objects/service/lib/repository.ts | 30 +-
.../service/lib/scoped_client_provider.ts | 2 +-
.../lib/search_dsl/query_params.test.ts | 14 +-
.../service/lib/search_dsl/query_params.ts | 4 +-
src/core/server/saved_objects/status.ts | 2 +-
src/core/server/saved_objects/utils.test.ts | 10 +-
.../server/saved_objects/validation/index.ts | 2 +-
src/core/server/status/status_service.test.ts | 4 +-
src/core/server/status/status_service.ts | 2 +-
.../create_or_upgrade_saved_config.test.ts | 4 +-
.../get_upgradeable_config.ts | 2 +-
.../create_or_upgrade.test.ts | 6 +-
.../is_config_version_upgradeable.test.ts | 2 +-
.../integration_tests/index.test.ts | 2 +-
.../integration_tests/lib/servers.ts | 2 +-
.../server/ui_settings/ui_settings_client.ts | 2 +-
src/core/server/utils/crypto/pkcs12.test.ts | 4 +-
src/core/server/utils/crypto/pkcs12.ts | 6 +-
src/core/server/uuid/resolve_uuid.test.ts | 2 +-
src/core/server/uuid/resolve_uuid.ts | 10 +-
src/core/utils/context.test.ts | 22 +-
src/core/utils/context.ts | 2 +-
.../integration_tests/deep_freeze.test.ts | 2 +-
src/core/utils/map_utils.ts | 2 +-
src/core/utils/promise.test.ts | 4 +-
src/core/utils/unset.ts | 4 +-
src/core/utils/url.test.ts | 8 +-
src/dev/build/args.ts | 2 +-
src/dev/build/cli.js | 2 +-
src/dev/build/lib/__tests__/config.js | 6 +-
src/dev/build/lib/__tests__/exec.js | 2 +-
src/dev/build/lib/__tests__/fs.js | 4 +-
src/dev/build/lib/__tests__/runner.js | 12 +-
src/dev/build/lib/__tests__/version_info.js | 10 +-
src/dev/build/lib/config.js | 6 +-
src/dev/build/lib/exec.js | 2 +-
src/dev/build/lib/fs.js | 10 +-
src/dev/build/lib/scan.ts | 2 +-
src/dev/build/lib/scan_copy.test.ts | 7 +-
src/dev/build/lib/scan_copy.ts | 6 +-
src/dev/build/lib/scan_delete.ts | 8 +-
src/dev/build/tasks/clean_tasks.js | 10 +-
.../tasks/create_archives_sources_task.js | 2 +-
.../build/tasks/create_package_json_task.js | 4 +-
.../build/tasks/nodejs/__tests__/download.js | 12 +-
.../__tests__/download_node_builds_task.js | 4 +-
.../verify_existing_node_builds_task.js | 2 +-
src/dev/build/tasks/nodejs/download.js | 2 +-
.../tasks/nodejs/download_node_builds_task.js | 2 +-
.../tasks/nodejs/extract_node_builds_task.js | 2 +-
.../verify_existing_node_builds_task.js | 2 +-
.../clean_client_modules_on_dll_task.js | 6 +-
.../build/tasks/nodejs_modules/webpack_dll.js | 8 +-
src/dev/build/tasks/path_length_task.js | 6 +-
.../code_coverage/ingest_coverage/either.js | 16 +-
.../code_coverage/ingest_coverage/ingest.js | 9 +-
.../integration_tests/ingest_coverage.test.js | 18 +-
.../ingest_coverage/json_stream.js | 2 +-
.../code_coverage/ingest_coverage/process.js | 12 +-
.../ingest_coverage/transforms.js | 48 +-
.../code_coverage/ingest_coverage/utils.js | 8 +-
src/dev/eslint/lint_files.ts | 2 +-
src/dev/eslint/pick_files_to_lint.ts | 2 +-
src/dev/globs.js | 2 +-
src/dev/i18n/config.ts | 10 +-
src/dev/i18n/extract_default_translations.js | 8 +-
src/dev/i18n/extractors/code.test.js | 6 +-
src/dev/i18n/extractors/html.js | 16 +-
src/dev/i18n/extractors/i18n_call.js | 2 +-
src/dev/i18n/extractors/i18n_call.test.js | 14 +-
src/dev/i18n/extractors/pug.js | 4 +-
src/dev/i18n/extractors/react.js | 6 +-
src/dev/i18n/extractors/react.test.js | 10 +-
src/dev/i18n/integrate_locale_files.ts | 2 +-
src/dev/i18n/serializers/json5.ts | 4 +-
src/dev/i18n/tasks/check_compatibility.ts | 2 +-
src/dev/i18n/tasks/check_configs.ts | 2 +-
.../tasks/extract_default_translations.ts | 2 +-
.../tasks/extract_untracked_translations.ts | 6 +-
src/dev/i18n/tasks/merge_configs.ts | 2 +-
src/dev/i18n/utils.js | 12 +-
src/dev/i18n/utils.test.js | 10 +-
src/dev/jest/config.integration.js | 2 +-
src/dev/jest/junit_reporter.js | 10 +-
src/dev/jest/setup/mocks.js | 2 +-
src/dev/jest/setup/polyfills.js | 2 +-
.../license_checker/run_check_licenses_cli.ts | 4 +-
src/dev/license_checker/valid.ts | 4 +-
src/dev/notice/bundled_notices.js | 6 +-
src/dev/notice/cli.js | 4 +-
src/dev/notice/generate_notice_from_source.ts | 4 +-
.../notice/generate_package_notice_text.js | 2 +-
.../installed_packages.test.ts | 10 +-
src/dev/precommit_hook/check_file_casing.js | 6 +-
.../precommit_hook/get_files_for_commit.js | 6 +-
src/dev/prs/helpers.ts | 2 +-
src/dev/prs/run_update_prs_cli.ts | 10 +-
src/dev/renovate/config.ts | 6 +-
src/dev/renovate/package_groups.ts | 4 +-
src/dev/run_check_file_casing.js | 2 +-
src/dev/run_check_lockfile_symlinks.js | 24 +-
src/dev/run_check_published_api_changes.ts | 8 +-
src/dev/run_i18n_extract.ts | 4 +-
src/dev/run_prettier_on_changed.ts | 6 +-
src/dev/sass/build_sass.js | 12 +-
src/dev/sasslint/lint_files.js | 2 +-
src/dev/sasslint/pick_files_to_lint.js | 4 +-
src/dev/storybook/run_storybook_cli.ts | 4 +-
src/dev/typescript/exec_in_projects.ts | 4 +-
.../get_ts_project_for_absolute_path.ts | 4 +-
src/dev/typescript/project.ts | 4 +-
src/dev/typescript/projects.ts | 12 +-
.../typescript/run_check_ts_projects_cli.ts | 6 +-
src/dev/typescript/run_type_check_cli.ts | 4 +-
src/es_archiver/actions/edit.ts | 6 +-
src/es_archiver/actions/load.ts | 6 +-
src/es_archiver/actions/rebuild_all.ts | 4 +-
src/es_archiver/cli.ts | 16 +-
src/es_archiver/lib/__tests__/stats.ts | 4 +-
.../lib/archives/__tests__/format.ts | 10 +-
.../lib/archives/__tests__/parse.ts | 6 +-
src/es_archiver/lib/archives/format.ts | 2 +-
src/es_archiver/lib/archives/parse.ts | 4 +-
src/es_archiver/lib/directory.ts | 4 +-
src/es_archiver/lib/docs/__tests__/stubs.ts | 2 +-
.../lib/docs/index_doc_records_stream.ts | 2 +-
.../generate_index_records_stream.ts | 8 +-
.../lib/indices/__tests__/stubs.ts | 12 +-
src/es_archiver/lib/indices/delete_index.ts | 2 +-
.../__tests__/filter_records_stream.ts | 2 +-
src/es_archiver/lib/stats.ts | 6 +-
src/fixtures/agg_resp/geohash_grid.js | 6 +-
src/fixtures/logstash_fields.js | 2 +-
src/fixtures/mock_index_patterns.js | 2 +-
src/fixtures/mock_ui_state.js | 10 +-
.../stubbed_logstash_index_pattern.js | 10 +-
src/fixtures/stubbed_search_source.js | 10 +-
src/legacy/core_plugins/apm_oss/index.js | 2 +-
.../core_plugins/console_legacy/index.ts | 2 +-
.../core_plugins/elasticsearch/index.js | 4 +-
.../integration_tests/elasticsearch.test.ts | 6 +-
.../elasticsearch/lib/version_health_check.js | 2 +-
.../lib/version_health_check.test.js | 8 +-
.../server/lib/__tests__/handle_es_error.js | 14 +-
.../elasticsearch/server/lib/create_proxy.js | 2 +-
src/legacy/core_plugins/kibana/index.js | 18 +-
.../public/__tests__/discover/doc_table.js | 24 +-
.../public/__tests__/discover/fixed_scroll.js | 34 +-
.../public/__tests__/discover/row_headers.js | 174 +--
.../__tests__/vis_type_table/agg_table.js | 82 +-
.../vis_type_table/agg_table_group.js | 16 +-
.../__tests__/vis_type_tagcloud/tag_cloud.js | 106 +-
.../tag_cloud_visualization.js | 14 +-
.../vis_type_vega/vega_visualization.js | 10 +-
.../__tests__/vis_type_vislib/_vis_fixture.js | 8 +-
.../vis_type_vislib/lib/chart_title.js | 33 +-
.../__tests__/vis_type_vislib/lib/dispatch.js | 52 +-
.../vis_type_vislib/lib/handler/handler.js | 64 +-
.../vis_type_vislib/lib/layout/layout.js | 54 +-
.../public/__tests__/vis_type_vislib/vis.js | 88 +-
.../visualizations/area_chart.js | 96 +-
.../vis_type_vislib/visualizations/chart.js | 17 +-
.../visualizations/column_chart.js | 98 +-
.../visualizations/gauge_chart.js | 38 +-
.../visualizations/heatmap_chart.js | 50 +-
.../visualizations/line_chart.js | 70 +-
.../visualizations/pie_chart.js | 84 +-
.../local_application_service.ts | 6 +-
.../kibana/public/management/index.js | 12 +-
.../export/collect_references_deep.test.ts | 4 +-
.../lib/export/collect_references_deep.ts | 2 +-
.../server/lib/export/export_dashboards.js | 2 +-
.../server/lib/import/import_dashboards.js | 4 +-
.../management/saved_objects/relationships.js | 8 +-
.../kibana/server/routes/api/export/index.js | 2 +-
.../kibana/server/routes/api/import/index.js | 2 +-
.../kibana/server/ui_setting_defaults.js | 4 +-
src/legacy/core_plugins/status_page/index.js | 2 +-
.../public/components/metric_tiles.js | 4 +-
.../public/components/status_app.js | 2 +-
.../public/components/status_table.js | 4 +-
.../public/lib/load_status.test.js | 4 +-
.../status_page/public/status_page.js | 2 +-
src/legacy/core_plugins/testbed/index.js | 2 +-
.../tests_bundle/find_source_files.js | 4 +-
src/legacy/core_plugins/tests_bundle/index.js | 17 +-
.../tests_bundle/tests_entry_template.js | 2 +-
.../core_plugins/timelion/public/app.js | 70 +-
.../components/timelionhelp_tabs_directive.js | 2 +-
.../timelion/public/directives/cells/cells.js | 8 +-
.../timelion/public/directives/chart/chart.js | 2 +-
.../public/directives/fixed_element.js | 6 +-
.../directives/fullscreen/fullscreen.js | 2 +-
.../public/directives/saved_object_finder.js | 38 +-
.../saved_object_save_as_checkbox.js | 2 +-
.../directives/timelion_expression_input.js | 10 +-
.../timelion_expression_input_helpers.js | 22 +-
.../timelion_expression_suggestions.js | 12 +-
.../timelion_expression_suggestions.js | 4 +-
.../public/directives/timelion_grid.js | 10 +-
.../directives/timelion_help/timelion_help.js | 16 +-
.../timelion_interval/timelion_interval.js | 10 +-
.../public/directives/timelion_load_sheet.js | 2 +-
.../directives/timelion_options_sheet.js | 2 +-
.../public/directives/timelion_save_sheet.js | 2 +-
.../timelion/public/lib/observe_resize.js | 6 +-
.../public/panels/timechart/schema.ts | 37 +-
.../timelion/public/services/saved_sheets.ts | 2 +-
.../public/shim/timelion_legacy_module.ts | 2 +-
.../deprecation/__tests__/create_transform.js | 16 +-
src/legacy/deprecation/create_transform.js | 2 +-
.../deprecations/__tests__/rename.js | 14 +-
.../deprecations/__tests__/unused.js | 14 +-
.../__tests__/find_plugin_specs.js | 24 +-
.../__tests__/fixtures/conflicts/foo/index.js | 2 +-
.../__tests__/fixtures/plugins/bar/index.js | 2 +-
.../__tests__/fixtures/plugins/foo/index.js | 2 +-
.../plugin_discovery/find_plugin_specs.js | 36 +-
.../__tests__/extend_config_service.js | 2 +-
.../plugin_config/__tests__/schema.js | 16 +-
.../plugin_pack/__tests__/create_pack.js | 16 +-
.../fixtures/plugins/broken_code/index.js | 2 +-
.../__tests__/fixtures/plugins/foo/index.js | 2 +-
.../__tests__/package_json_at_path.js | 22 +-
.../__tests__/package_jsons_in_directory.js | 24 +-
.../plugin_pack/__tests__/plugin_pack.js | 8 +-
.../plugin_pack/create_pack.js | 4 +-
.../plugin_discovery/plugin_pack/lib/fs.js | 16 +-
.../plugin_pack/package_json_at_path.js | 8 +-
.../plugin_pack/package_jsons_in_directory.js | 4 +-
.../plugin_pack/plugin_pack.js | 2 +-
.../plugin_spec/__tests__/plugin_spec.js | 26 +-
.../server/capabilities/capabilities_mixin.ts | 8 +-
src/legacy/server/config/complete.js | 4 +-
src/legacy/server/config/complete.test.js | 2 +-
src/legacy/server/config/config.js | 6 +-
src/legacy/server/config/config.test.js | 122 +-
src/legacy/server/config/override.test.ts | 4 +-
src/legacy/server/config/schema.js | 47 +-
src/legacy/server/config/schema.test.js | 28 +-
src/legacy/server/http/index.js | 6 +-
.../max_payload_size.test.js | 10 +-
.../server/http/setup_base_path_provider.js | 2 +-
.../server/i18n/get_translations_path.ts | 2 +-
src/legacy/server/i18n/index.ts | 6 +-
.../localization/file_integrity.test.mocks.ts | 2 +-
src/legacy/server/keystore/keystore.test.js | 4 +-
.../server/logging/apply_filters_to_keys.js | 2 +-
.../logging/apply_filters_to_keys.test.js | 4 +-
src/legacy/server/logging/configuration.js | 2 +-
src/legacy/server/logging/log_format.js | 4 +-
src/legacy/server/logging/log_format_json.js | 2 +-
.../server/logging/log_format_json.test.js | 2 +-
.../server/logging/log_format_string.js | 8 +-
src/legacy/server/logging/log_reporter.js | 5 +-
.../server/logging/rotate/log_rotator.ts | 6 +-
src/legacy/server/pid/index.js | 12 +-
src/legacy/server/plugins/initialize_mixin.js | 2 +-
.../server/plugins/lib/call_plugin_hook.js | 2 +-
src/legacy/server/plugins/scan_mixin.js | 2 +-
.../server/plugins/wait_for_plugins_init.js | 2 +-
src/legacy/server/sass/build.js | 8 +-
src/legacy/server/sass/build_all.js | 4 +-
src/legacy/server/sass/index.js | 18 +-
.../saved_objects/saved_objects_mixin.js | 10 +-
.../saved_objects/saved_objects_mixin.test.js | 4 +-
.../add_memoized_factory_to_request.test.js | 2 +-
.../server_extensions_mixin.js | 2 +-
src/legacy/server/status/index.js | 4 +-
.../server/status/lib/__mocks__/_fs_stubs.js | 6 +-
src/legacy/server/status/lib/cgroup.js | 16 +-
src/legacy/server/status/lib/cgroup.test.js | 2 +-
.../server/status/lib/get_os_info.test.js | 2 +-
src/legacy/server/status/lib/metrics.test.js | 4 +-
.../status/routes/api/register_stats.js | 6 +-
.../status/routes/page/register_status.js | 2 +-
src/legacy/server/status/samples.js | 6 +-
src/legacy/server/status/server_status.js | 6 +-
.../server/status/server_status.test.js | 34 +-
src/legacy/server/status/status.js | 6 +-
src/legacy/server/status/status.test.js | 32 +-
src/legacy/server/status/wrap_auth_config.js | 4 +-
.../server/status/wrap_auth_config.test.js | 2 +-
src/legacy/server/utils/prompt.js | 10 +-
src/legacy/server/warnings/index.js | 4 +-
.../fixtures/plugin_async_foo/index.js | 2 +-
.../ui/__tests__/fixtures/plugin_bar/index.js | 2 +-
.../ui/__tests__/fixtures/plugin_foo/index.js | 2 +-
.../ui/__tests__/fixtures/test_app/index.js | 2 +-
src/legacy/ui/public/__tests__/events.js | 56 +-
.../__tests__/kbn_accessible_click.js | 4 +-
.../ui/public/accessibility/angular_aria.js | 2 +-
.../accessibility/kbn_ui_ace_keyboard_mode.js | 6 +-
.../scrollto_activedescendant.js | 2 +-
.../ui/public/binder/__tests__/binder.js | 18 +-
src/legacy/ui/public/binder/binder.js | 2 +-
src/legacy/ui/public/bound_to_config_obj.js | 2 +-
.../react/ui_capabilities_provider.tsx | 2 +-
.../ui/public/chrome/__mocks__/index.js | 8 +-
.../ui/public/chrome/api/__tests__/apps.js | 38 +-
.../ui/public/chrome/api/__tests__/nav.js | 20 +-
.../api/__tests__/sub_url_route_filter.js | 6 +-
.../ui/public/chrome/api/__tests__/xsrf.js | 8 +-
src/legacy/ui/public/chrome/api/angular.js | 2 +-
src/legacy/ui/public/chrome/api/apps.js | 18 +-
src/legacy/ui/public/chrome/api/nav.ts | 14 +-
.../public/chrome/api/saved_object_client.ts | 2 +-
src/legacy/ui/public/chrome/api/template.js | 6 +-
.../ui/public/chrome/api/ui_settings.js | 2 +-
src/legacy/ui/public/chrome/api/xsrf.js | 2 +-
src/legacy/ui/public/chrome/chrome.js | 6 +-
.../ui/public/chrome/directives/kbn_chrome.js | 4 +-
.../ui/public/config/__tests__/config.js | 6 +-
src/legacy/ui/public/config/config.js | 12 +-
.../directives/__tests__/input_focus.js | 14 +-
.../public/directives/bind/__tests__/bind.js | 14 +-
src/legacy/ui/public/directives/bind/bind.js | 18 +-
.../ui/public/directives/input_focus.js | 6 +-
src/legacy/ui/public/directives/kbn_href.js | 6 +-
.../directives/listen/__tests__/listen.js | 12 +-
.../__tests__/render_directive.js | 20 +-
.../render_directive/apply_scope_bindings.js | 6 +-
.../render_directive/render_directive.js | 6 +-
.../ui/public/directives/storage/index.js | 4 +-
.../watch_multi/__tests__/watch_multi.js | 46 +-
.../public/doc_title/__tests__/doc_title.js | 26 +-
src/legacy/ui/public/doc_title/doc_title.js | 2 +-
.../__tests__/documentation_links.js | 4 +-
src/legacy/ui/public/dom_location.js | 2 +-
src/legacy/ui/public/events.js | 18 +-
src/legacy/ui/public/i18n/index.tsx | 2 +-
.../indexed_array/__tests__/indexed_array.js | 40 +-
.../indexed_array/__tests__/inflector.js | 16 +-
.../ui/public/indexed_array/indexed_array.js | 14 +-
.../ui/public/indexed_array/inflector.js | 2 +-
src/legacy/ui/public/kfetch/kfetch.test.ts | 16 +-
src/legacy/ui/public/kfetch/kfetch.ts | 2 +-
.../ui/public/legacy_compat/__tests__/xsrf.js | 36 +-
src/legacy/ui/public/modules.js | 4 +-
.../new_platform/new_platform.karma_mock.js | 12 +-
.../public/new_platform/new_platform.test.ts | 2 +-
.../public/new_platform/set_services.test.ts | 4 +-
.../ui/public/private/__tests__/private.js | 24 +-
.../ui/public/promises/__tests__/promises.js | 18 +-
src/legacy/ui/public/react_components.js | 4 +-
.../ui/public/registry/__tests__/registry.js | 46 +-
src/legacy/ui/public/registry/_registry.js | 8 +-
.../public/routes/__tests__/_route_manager.js | 30 +-
.../ui/public/routes/__tests__/_work_queue.js | 32 +-
.../routes/__tests__/_wrap_route_with_prep.js | 28 +-
.../ui/public/routes/__tests__/index.js | 2 +-
src/legacy/ui/public/routes/route_manager.js | 16 +-
.../ui/public/routes/route_setup_manager.js | 12 +-
src/legacy/ui/public/routes/work_queue.js | 16 +-
.../ui/public/routes/wrap_route_with_prep.js | 8 +-
.../state_management/__tests__/app_state.js | 18 +-
.../__tests__/config_provider.js | 8 +-
.../__tests__/global_state.js | 8 +-
.../state_management/__tests__/state.js | 44 +-
.../__tests__/state_monitor_factory.js | 62 +-
.../ui/public/state_management/app_state.js | 24 +-
.../public/state_management/global_state.js | 2 +-
.../ui/public/state_management/state.js | 30 +-
.../state_management/state_monitor_factory.ts | 4 +-
.../ui/public/test_harness/test_harness.js | 2 +-
.../test_sharding/find_test_bundle_url.js | 4 +-
.../test_sharding/setup_test_sharding.js | 2 +-
.../setup_top_level_describe_filter.js | 2 +-
.../url/__tests__/extract_app_path_and_id.js | 50 +-
.../public/url/__tests__/kibana_parsed_url.js | 50 +-
.../ui/public/url/__tests__/prepend_path.js | 30 +-
src/legacy/ui/public/url/__tests__/url.js | 166 +-
src/legacy/ui/public/url/kibana_parsed_url.ts | 6 +-
.../ui/public/url/redirect_when_missing.js | 6 +-
src/legacy/ui/public/url/url.js | 30 +-
src/legacy/ui/public/utils/legacy_class.js | 2 +-
src/legacy/ui/ui_apps/__tests__/ui_app.js | 7 +-
src/legacy/ui/ui_apps/ui_app.js | 2 +-
src/legacy/ui/ui_apps/ui_apps_mixin.js | 8 +-
.../ui/ui_bundles/app_entry_template.js | 2 +-
src/legacy/ui/ui_bundles/ui_bundle.js | 12 +-
.../ui/ui_bundles/ui_bundles_controller.js | 4 +-
.../__tests__/collect_ui_exports.js | 4 +-
.../ui/ui_exports/ui_export_defaults.js | 2 +-
.../ui_export_types/modify_reduce/alias.js | 2 +-
.../ui_export_types/modify_reduce/map_spec.js | 2 +-
.../modify_reduce/unique_keys.js | 6 +-
.../reduce/lib/create_type_reducer.js | 2 +-
.../ui_export_types/saved_object.js | 6 +-
.../ui_export_types/style_sheet_paths.test.js | 4 +-
.../ui_export_types/webpack_customizations.js | 2 +-
src/legacy/ui/ui_render/ui_render_mixin.js | 21 +-
.../ui_settings_mixin.test.ts | 22 +-
.../ui/ui_settings/ui_exports_consumer.js | 2 +-
.../ui/ui_settings/ui_settings_mixin.js | 2 +-
src/legacy/utils/__tests__/unset.js | 34 +-
.../utils/__tests__/watch_stdio_for_line.js | 6 +-
src/legacy/utils/binder.ts | 2 +-
.../utils/streams/concat_stream_providers.js | 2 +-
.../utils/streams/filter_stream.test.ts | 2 +-
src/legacy/utils/streams/list_stream.js | 2 +-
src/legacy/utils/streams/list_stream.test.js | 4 +-
src/legacy/utils/streams/map_stream.test.js | 2 +-
.../utils/streams/promise_from_streams.js | 2 +-
.../streams/promise_from_streams.test.js | 6 +-
.../utils/streams/reduce_stream.test.js | 4 +-
.../utils/streams/replace_stream.test.js | 6 +-
src/legacy/utils/streams/split_stream.test.js | 2 +-
src/legacy/utils/watch_stdio_for_line.js | 2 +-
src/optimize/base_optimizer.js | 22 +-
src/optimize/bundles_route/file_hash.ts | 6 +-
src/optimize/create_ui_exports_module.js | 4 +-
.../dynamic_dll_plugin/dll_compiler.js | 22 +-
.../dynamic_dll_plugin/dll_entry_template.js | 8 +-
.../dynamic_dll_plugin/dynamic_dll_plugin.js | 14 +-
src/optimize/fs_optimizer.js | 2 +-
src/optimize/np_ui_plugin_public_dirs.ts | 2 +-
src/optimize/public_path_placeholder.ts | 2 +-
src/optimize/watch/optmzr_role.js | 2 +-
src/optimize/watch/proxy_role.js | 4 +-
src/optimize/watch/watch.js | 2 +-
src/optimize/watch/watch_cache.ts | 2 +-
src/optimize/watch/watch_optimizer.js | 4 +-
.../management_app/advanced_settings.tsx | 4 +-
.../advanced_settings_voice_announcement.tsx | 4 +-
.../components/field/field.test.tsx | 6 +-
.../management_app/components/field/field.tsx | 4 +-
.../management_app/components/form/form.tsx | 16 +-
.../components/search/search.tsx | 2 +-
.../management_app/lib/get_aria_name.test.ts | 10 +-
.../management_app/lib/get_aria_name.ts | 2 +-
.../lib/get_category_name.test.ts | 10 +-
.../management_app/lib/get_category_name.ts | 2 +-
.../management_app/lib/get_val_type.test.ts | 14 +-
.../lib/is_default_value.test.ts | 24 +-
.../lib/to_editable_config.test.ts | 48 +-
.../instructions/apm_agent_instructions.ts | 5 +-
.../tests/create_batched_function.test.ts | 2 +-
.../create_streaming_batched_function.test.ts | 48 +-
.../create_streaming_batched_function.ts | 4 +-
src/plugins/bfetch/public/plugin.ts | 4 +-
.../public/streaming/fetch_streaming.test.ts | 2 +-
.../bfetch/public/streaming/split.test.ts | 4 +-
src/plugins/bfetch/public/streaming/split.ts | 2 +-
src/plugins/bfetch/server/plugin.ts | 4 +-
.../server/streaming/create_ndjson_stream.ts | 2 +-
.../public/services/colors/color_palette.ts | 6 +-
.../public/services/colors/colors.test.ts | 2 +-
.../charts/public/services/colors/colors.ts | 2 +-
.../services/colors/mapped_colors.test.ts | 37 +-
.../public/services/colors/mapped_colors.ts | 8 +-
.../services/colors/seed_colors.test.ts | 4 +-
.../charts/public/services/theme/theme.ts | 2 +-
.../public/static/color_maps/heatmap_color.ts | 2 +-
.../public/static/components/number_input.tsx | 2 +-
.../public/static/components/select.tsx | 2 +-
.../public/static/components/switch.tsx | 2 +-
.../public/static/components/text_input.tsx | 2 +-
.../application/components/console_menu.tsx | 4 +-
.../application/components/settings_modal.tsx | 16 +-
.../editor/legacy/console_editor/editor.tsx | 7 +-
.../legacy/console_editor/editor_output.tsx | 4 +-
.../editor/legacy/console_menu_actions.ts | 7 +-
.../subscribe_console_resize_checker.ts | 2 +-
.../application/containers/settings.tsx | 2 +-
.../editor_context/editor_context.tsx | 2 +-
.../__tests__/input.test.js | 4 +-
.../__tests__/output_tokenization.test.js | 4 +-
.../legacy_core_editor.test.mocks.ts | 2 +-
.../legacy_core_editor/legacy_core_editor.ts | 10 +-
.../models/legacy_core_editor/mode/input.js | 16 +-
.../models/legacy_core_editor/mode/output.js | 4 +-
.../models/legacy_core_editor/mode/script.js | 8 +-
.../models/legacy_core_editor/smart_resize.ts | 2 +-
.../legacy_core_editor/theme_sense_dark.js | 2 +-
.../__tests__/integration.test.js | 16 +-
.../__tests__/sense_editor.test.js | 16 +-
.../models/sense_editor/sense_editor.ts | 6 +-
.../public/application/stores/editor.ts | 2 +-
.../public/application/stores/request.ts | 2 +-
.../ace_token_provider/token_provider.test.ts | 16 +-
.../lib/ace_token_provider/token_provider.ts | 2 +-
.../__jest__/url_autocomplete.test.js | 26 +-
.../autocomplete/__jest__/url_params.test.js | 8 +-
.../public/lib/autocomplete/autocomplete.ts | 8 +-
.../public/lib/autocomplete/body_completer.js | 16 +-
.../field_autocomplete_component.js | 4 +-
.../components/id_autocomplete_component.js | 2 +-
.../autocomplete/components/list_component.js | 6 +-
.../components/object_component.js | 8 +-
.../components/url_pattern_matcher.js | 8 +-
.../console/public/lib/autocomplete/engine.js | 24 +-
.../public/lib/autocomplete/url_params.js | 2 +-
.../__tests__/curl_parsing.test.js | 8 +-
.../public/lib/kb/__tests__/kb.test.js | 6 +-
src/plugins/console/public/lib/kb/api.js | 18 +-
src/plugins/console/public/lib/kb/kb.js | 44 +-
.../local_storage_object_client.ts | 2 +-
.../lib/mappings/__tests__/mapping.test.js | 16 +-
.../console/public/lib/mappings/mappings.js | 34 +-
.../lib/token_iterator/token_iterator.ts | 2 +-
.../public/lib/utils/__tests__/utils.test.js | 6 +-
src/plugins/console/public/lib/utils/index.ts | 2 +-
.../console/public/services/history.ts | 6 +-
.../__tests__/elasticsearch_proxy_config.js | 38 +-
.../console/server/__tests__/proxy_config.js | 62 +-
.../__tests__/proxy_config_collection.js | 52 +-
.../server/__tests__/proxy_route/body.test.ts | 4 +-
.../console/server/__tests__/set_headers.js | 12 +-
.../server/__tests__/wildcard_matcher.js | 10 +-
.../server/lib/proxy_config_collection.ts | 4 +-
.../console/server/lib/proxy_request.ts | 4 +-
.../lib/spec_definitions/js/mappings.ts | 2 +-
src/plugins/console/server/plugin.ts | 5 +-
.../api/console/proxy/create_handler.ts | 4 +-
.../api/console/proxy/validation_config.ts | 6 +-
.../services/spec_definitions_service.ts | 10 +-
.../common/migrate_to_730_panels.test.ts | 6 +-
.../dashboard/common/migrate_to_730_panels.ts | 4 +-
.../actions/clone_panel_action.test.tsx | 2 +-
.../actions/clone_panel_action.tsx | 5 +-
.../actions/replace_panel_flyout.tsx | 2 +-
.../public/application/application.ts | 2 +-
.../application/dashboard_app_controller.tsx | 28 +-
.../application/dashboard_state.test.ts | 12 +-
.../application/dashboard_state_manager.ts | 12 +-
.../embeddable/dashboard_container.test.tsx | 4 +-
.../embeddable/grid/dashboard_grid.test.tsx | 2 +-
.../embeddable/grid/dashboard_grid.tsx | 6 +-
.../panel/dashboard_panel_placement.ts | 4 +-
.../viewport/dashboard_viewport.test.tsx | 38 +-
.../public/application/legacy_app.js | 31 +-
.../public/application/lib/filter_utils.ts | 6 +-
.../application/lib/migrate_app_state.ts | 2 +-
.../application/lib/update_saved_dashboard.ts | 2 +-
.../listing/dashboard_listing.test.js | 14 +-
src/plugins/dashboard/public/plugin.tsx | 6 +-
.../saved_dashboard_references.ts | 4 +-
src/plugins/dashboard/public/url_generator.ts | 8 +-
.../saved_objects/migrate_match_all_query.ts | 2 +-
.../saved_objects/move_filters_to_query.ts | 2 +-
.../es_query/es_query/build_es_query.ts | 2 +-
.../common/es_query/es_query/from_filters.ts | 10 +-
.../es_query/es_query/from_kuery.test.ts | 6 +-
.../common/es_query/es_query/from_kuery.ts | 2 +-
.../es_query/es_query/from_lucene.test.ts | 4 +-
.../common/es_query/es_query/from_lucene.ts | 2 +-
.../es_query/handle_nested_filter.test.ts | 4 +-
.../es_query/es_query/handle_nested_filter.ts | 4 +-
.../es_query/es_query/migrate_filter.test.ts | 8 +-
.../es_query/es_query/migrate_filter.ts | 2 +-
.../es_query/filters/exists_filter.test.ts | 6 +-
.../filters/geo_bounding_box_filter.test.ts | 4 +-
.../filters/geo_bounding_box_filter.ts | 2 +-
.../filters/geo_polygon_filter.test.ts | 4 +-
.../es_query/filters/geo_polygon_filter.ts | 2 +-
.../es_query/filters/get_filter_field.test.ts | 4 +-
.../filters/get_index_pattern_from_filter.ts | 2 +-
.../es_query/filters/missing_filter.test.ts | 4 +-
.../es_query/filters/phrase_filter.test.ts | 4 +-
.../es_query/filters/phrases_filter.test.ts | 6 +-
.../es_query/filters/range_filter.test.ts | 4 +-
.../common/es_query/filters/range_filter.ts | 2 +-
.../es_query/kuery/functions/and.test.ts | 2 +-
.../es_query/kuery/functions/geo_polygon.ts | 2 +-
.../es_query/kuery/functions/or.test.ts | 2 +-
.../kuery/functions/utils/get_fields.ts | 4 +-
.../utils/get_full_field_name_node.test.ts | 2 +-
.../es_query/kuery/kuery_syntax_error.ts | 2 +-
.../es_query/kuery/node_types/wildcard.ts | 10 +-
.../content_types/text_content_type.ts | 2 +-
.../field_formats/converters/boolean.test.ts | 2 +-
.../field_formats/converters/boolean.ts | 2 +-
.../common/field_formats/converters/color.ts | 2 +-
.../converters/date_nanos.test.ts | 2 +-
.../field_formats/converters/date_nanos.ts | 2 +-
.../field_formats/converters/duration.ts | 2 +-
.../common/field_formats/converters/ip.ts | 2 +-
.../field_formats/converters/numeral.ts | 2 +-
.../field_formats/converters/percent.ts | 2 +-
.../field_formats/converters/relative_date.ts | 2 +-
.../common/field_formats/converters/source.ts | 4 +-
.../field_formats/converters/static_lookup.ts | 2 +-
.../common/field_formats/converters/string.ts | 4 +-
.../field_formats/converters/truncate.ts | 2 +-
.../common/field_formats/converters/url.ts | 6 +-
.../field_formats/field_formats_registry.ts | 6 +-
.../utils/highlight/highlight_html.test.ts | 14 +-
.../utils/highlight/highlight_html.ts | 2 +-
.../index_patterns/fields/fields.mocks.ts.ts | 2 +-
.../data/common/index_patterns/utils.test.ts | 6 +-
.../common/kbn_field_types/kbn_field_types.ts | 8 +-
.../least_common_interval.ts | 2 +-
.../parse_es_interval.test.ts | 4 +-
.../date_interval_utils/parse_es_interval.ts | 4 +-
.../date_interval_utils/parse_interval.ts | 6 +-
.../data/common/utils/abort_utils.test.ts | 2 +-
src/plugins/data/common/utils/abort_utils.ts | 2 +-
.../public/actions/apply_filter_action.ts | 4 +-
.../create_filters_from_value_click.ts | 12 +-
.../data/public/actions/value_click_action.ts | 4 +-
.../autocomplete/autocomplete_service.ts | 2 +-
.../public/field_formats/converters/date.ts | 2 +-
.../public/field_formats/utils/deserialize.ts | 2 +-
.../index_patterns/fields/field_list.ts | 4 +-
.../index_patterns/fields/obj_define.js | 20 +-
.../index_patterns/fields/obj_define.test.js | 36 +-
.../index_patterns/flatten_hit.ts | 10 +-
.../index_patterns/format_hit.ts | 4 +-
.../index_patterns/index_pattern.test.ts | 20 +-
.../index_patterns/index_pattern.ts | 16 +-
.../index_patterns/index_patterns.ts | 4 +-
.../index_patterns_api_client.test.mock.ts | 2 +-
.../index_patterns_api_client.test.ts | 6 +-
.../index_patterns_api_client.ts | 8 +-
.../lib/validate_index_pattern.test.ts | 2 +-
.../filter_manager/filter_manager.test.ts | 66 +-
.../query/filter_manager/filter_manager.ts | 6 +-
.../filter_manager/lib/generate_filters.ts | 4 +-
.../lib/generate_mapping_chain.test.ts | 2 +-
.../filter_manager/lib/map_filter.test.ts | 2 +-
.../filter_manager/lib/mappers/map_default.ts | 2 +-
.../lib/mappers/map_exists.test.ts | 2 +-
.../lib/mappers/map_geo_bounding_box.test.ts | 2 +-
.../lib/mappers/map_geo_bounding_box.ts | 2 +-
.../lib/mappers/map_geo_polygon.test.ts | 2 +-
.../lib/mappers/map_geo_polygon.ts | 2 +-
.../lib/mappers/map_match_all.test.ts | 2 +-
.../lib/mappers/map_missing.test.ts | 2 +-
.../lib/mappers/map_phrase.test.ts | 2 +-
.../lib/mappers/map_query_string.test.ts | 2 +-
.../lib/mappers/map_range.test.ts | 2 +-
.../lib/mappers/map_spatial_filter.test.ts | 2 +-
.../data/public/query/lib/from_user.test.ts | 12 +-
.../data/public/query/lib/match_pairs.ts | 4 +-
.../query/persisted_log/persisted_log.ts | 2 +-
.../saved_query/saved_query_service.test.ts | 12 +-
.../state_sync/connect_to_query_state.ts | 8 +-
.../create_global_query_observable.ts | 10 +-
.../query/state_sync/sync_state_with_url.ts | 2 +-
.../data/public/query/timefilter/get_time.ts | 4 +-
.../timefilter/lib/diff_time_picker_vals.ts | 2 +-
.../public/search/aggs/agg_config.test.ts | 11 +-
.../data/public/search/aggs/agg_config.ts | 12 +-
.../public/search/aggs/agg_configs.test.ts | 12 +-
.../data/public/search/aggs/agg_configs.ts | 20 +-
.../public/search/aggs/agg_params.test.ts | 4 +-
.../data/public/search/aggs/agg_params.ts | 2 +-
.../data/public/search/aggs/agg_type.test.ts | 2 +-
.../buckets/_terms_other_bucket_helper.ts | 14 +-
.../create_filter/date_histogram.test.ts | 9 +-
.../search/aggs/buckets/date_histogram.ts | 4 +-
.../public/search/aggs/buckets/date_range.ts | 2 +-
.../public/search/aggs/buckets/filters.ts | 4 +-
.../public/search/aggs/buckets/ip_range.ts | 2 +-
.../buckets/migrate_include_exclude_format.ts | 2 +-
.../data/public/search/aggs/buckets/terms.ts | 4 +-
.../data/public/search/aggs/index.test.ts | 4 +-
.../data/public/search/aggs/metrics/avg.ts | 2 +-
.../public/search/aggs/metrics/bucket_avg.ts | 2 +-
.../public/search/aggs/metrics/bucket_max.ts | 2 +-
.../public/search/aggs/metrics/bucket_min.ts | 2 +-
.../public/search/aggs/metrics/bucket_sum.ts | 2 +-
.../public/search/aggs/metrics/cardinality.ts | 2 +-
.../search/aggs/metrics/cumulative_sum.ts | 2 +-
.../search/aggs/metrics/metric_agg_type.ts | 2 +-
.../public/search/aggs/metrics/moving_avg.ts | 2 +-
.../aggs/metrics/parent_pipeline.test.ts | 6 +-
.../aggs/metrics/percentile_ranks.test.ts | 4 +-
.../public/search/aggs/metrics/serial_diff.ts | 2 +-
.../aggs/metrics/sibling_pipeline.test.ts | 6 +-
.../search/aggs/metrics/top_hit.test.ts | 4 +-
.../public/search/aggs/metrics/top_hit.ts | 4 +-
.../public/search/aggs/param_types/base.ts | 2 +-
.../search/aggs/param_types/json.test.ts | 4 +-
.../public/search/aggs/param_types/json.ts | 4 +-
.../search/aggs/param_types/string.test.ts | 2 +-
.../aggs/test_helpers/function_wrapper.ts | 2 +-
.../test_helpers/mock_agg_types_registry.ts | 6 +-
.../public/search/aggs/utils/prop_filter.ts | 4 +-
.../build_tabular_inspector_data.ts | 10 +-
.../search/expressions/create_filter.ts | 6 +-
.../data/public/search/expressions/esaggs.ts | 4 +-
.../search/fetch/get_search_params.test.ts | 2 +-
.../public/search/legacy/call_client.test.ts | 2 +-
.../data/public/search/legacy/call_client.ts | 4 +-
.../legacy/default_search_strategy.test.ts | 6 +-
.../search/legacy/default_search_strategy.ts | 2 +-
.../public/search/legacy/fetch_soon.test.ts | 12 +-
.../data/public/search/legacy/fetch_soon.ts | 2 +-
.../search/legacy/get_msearch_params.test.ts | 2 +-
.../data/public/search/search_interceptor.ts | 2 +-
.../data/public/search/search_service.ts | 6 +-
.../search_source/filter_docvalue_fields.ts | 2 +-
.../search/search_source/inject_references.ts | 2 +-
.../normalize_sort_request.test.ts | 14 +-
.../search_source/normalize_sort_request.ts | 2 +-
.../search_source/search_source.test.ts | 2 +-
.../search/search_source/search_source.ts | 2 +-
.../search/sync_search_strategy.test.ts | 4 +-
.../data/public/search/tabify/buckets.test.ts | 6 +-
.../data/public/search/tabify/buckets.ts | 2 +-
.../public/search/tabify/get_columns.test.ts | 2 +-
.../data/public/search/tabify/get_columns.ts | 6 +-
.../public/search/tabify/response_writer.ts | 6 +-
.../data/public/search/tabify/tabify.test.ts | 4 +-
.../data/public/ui/filter_bar/filter_bar.tsx | 2 +-
.../filter_editor/generic_combo_box.tsx | 6 +-
.../ui/filter_bar/filter_editor/index.tsx | 6 +-
.../lib/filter_editor_utils.test.ts | 6 +-
.../filter_editor/lib/filter_editor_utils.ts | 8 +-
.../filter_editor/phrase_value_input.tsx | 2 +-
.../filter_editor/phrases_values_input.tsx | 2 +-
.../public/ui/filter_bar/filter_options.tsx | 2 +-
.../fetch_index_patterns.ts | 4 +-
.../query_string_input.test.tsx | 5 +-
.../query_string_input/query_string_input.tsx | 10 +-
.../ui/saved_query_form/save_query_form.tsx | 6 +-
.../saved_query_management_component.tsx | 10 +-
.../data/public/ui/search_bar/search_bar.tsx | 6 +-
.../shard_failure_description_header.tsx | 6 +-
.../shard_failure_modal.tsx | 2 +-
.../typeahead/suggestions_component.test.tsx | 10 +-
.../ui/typeahead/suggestions_component.tsx | 4 +-
.../autocomplete/value_suggestions_route.ts | 2 +-
.../field_formats/converters/date_server.ts | 2 +-
.../field_formats/field_formats_service.ts | 2 +-
.../field_capabilities.test.js | 12 +-
.../field_capabilities/field_capabilities.ts | 4 +-
.../field_caps_response.test.js | 32 +-
.../field_capabilities/field_caps_response.ts | 98 +-
.../fetcher/lib/resolve_time_pattern.ts | 8 +-
.../data/server/index_patterns/utils.ts | 2 +-
.../kql_telemetry/kql_telemetry_service.ts | 4 +-
.../saved_objects/index_pattern_migrations.ts | 6 +-
.../saved_objects/search_migrations.test.ts | 2 +-
.../server/saved_objects/search_migrations.ts | 6 +-
.../data/server/search/search_service.ts | 2 +-
src/plugins/dev_tools/public/application.tsx | 10 +-
.../public/application/angular/context.js | 6 +-
.../application/angular/context/api/_stubs.js | 6 +-
.../angular/context/api/anchor.test.js | 26 +-
.../context/api/context.predecessors.test.js | 24 +-
.../context/api/context.successors.test.js | 24 +-
.../angular/context/api/context.ts | 2 +-
.../context/api/utils/date_conversion.test.ts | 8 +-
.../context/api/utils/generate_intervals.ts | 2 +-
.../angular/context/api/utils/sorting.test.ts | 4 +-
.../angular/context/api/utils/sorting.ts | 2 +-
.../components/action_bar/action_bar.test.tsx | 2 +-
.../components/action_bar/action_bar.tsx | 2 +-
.../action_bar/action_bar_directive.ts | 2 +-
.../angular/context/query/actions.js | 30 +-
.../context/query_parameters/actions.js | 10 +-
.../context/query_parameters/actions.test.ts | 10 +-
.../public/application/angular/context_app.js | 8 +-
.../collapsible_sidebar.ts | 4 +-
.../angular/directives/debounce/debounce.js | 6 +-
.../directives/debounce/debounce.test.ts | 18 +-
.../angular/directives/fixed_scroll.js | 8 +-
.../angular/directives/histogram.tsx | 10 +-
.../application/angular/directives/index.js | 6 +-
.../public/application/angular/discover.js | 82 +-
.../public/application/angular/doc.ts | 4 +-
.../angular/doc_table/actions/columns.ts | 4 +-
.../components/table_header/table_header.tsx | 2 +-
.../table_header/table_header_column.tsx | 8 +-
.../angular/doc_table/components/table_row.ts | 6 +-
.../angular/doc_table/doc_table.ts | 2 +-
.../angular/doc_table/infinite_scroll.ts | 6 +-
.../angular/doc_table/lib/get_sort.test.ts | 22 +-
.../angular/doc_table/lib/get_sort.ts | 4 +-
.../angular/helpers/point_series.ts | 6 +-
.../application/angular/response_handler.js | 4 +-
.../application/components/doc/doc.test.tsx | 2 +-
.../hits_counter/hits_counter.test.tsx | 8 +-
.../sidebar/change_indexpattern.tsx | 4 +-
.../sidebar/discover_field.test.tsx | 8 +-
.../sidebar/discover_field_search.tsx | 6 +-
.../sidebar/discover_index_pattern.test.tsx | 11 +-
.../sidebar/discover_index_pattern.tsx | 6 +-
.../sidebar/discover_sidebar.test.tsx | 12 +-
.../components/sidebar/discover_sidebar.tsx | 2 +-
.../sidebar/lib/field_calculator.js | 25 +-
.../sidebar/lib/field_calculator.test.ts | 58 +-
.../sidebar/lib/field_filter.test.ts | 12 +-
.../lib/get_index_pattern_field_list.ts | 2 +-
.../components/sidebar/lib/get_warnings.ts | 2 +-
.../sidebar/lib/group_fields.test.ts | 4 +-
.../components/sidebar/lib/group_fields.tsx | 4 +-
.../components/table/table.test.tsx | 10 +-
.../application/components/table/table.tsx | 8 +-
.../components/table/table_helper.tsx | 2 +-
.../timechart_header.test.tsx | 10 +-
.../timechart_header/timechart_header.tsx | 4 +-
.../components/top_nav/open_search_panel.js | 2 +-
.../doc_views/doc_views_helpers.tsx | 4 +-
.../doc_views/doc_views_registry.ts | 2 +-
.../embeddable/search_embeddable.ts | 4 +-
.../helpers/get_index_pattern_id.ts | 2 +-
.../discover/public/get_inner_angular.ts | 10 +-
.../components/panel_options_menu/index.tsx | 2 +-
.../public/lib/containers/container.ts | 10 +-
.../lib/embeddables/embeddable.test.tsx | 4 +-
.../embeddable_factory_renderer.tsx | 2 +-
.../lib/panel/embeddable_panel.test.tsx | 2 +-
.../public/lib/panel/embeddable_panel.tsx | 8 +-
.../add_panel/add_panel_flyout.test.tsx | 4 +-
.../add_panel/add_panel_flyout.tsx | 11 +-
.../saved_object_finder_create_new.test.tsx | 16 +-
.../customize_panel_action.test.ts | 2 +-
.../customize_title/customize_panel_modal.tsx | 4 +-
.../lib/panel/panel_header/panel_header.tsx | 4 +-
.../panel/panel_header/panel_options_menu.tsx | 4 +-
.../actions/get_message_modal.tsx | 2 +-
.../actions/send_message_action.tsx | 2 +-
.../contact_card/contact_card_embeddable.tsx | 2 +-
.../contact_card_embeddable_factory.tsx | 2 +-
.../contact_card/contact_card_initializer.tsx | 4 +-
.../hello_world_container_component.tsx | 4 +-
src/plugins/embeddable/public/plugin.test.ts | 6 +-
src/plugins/embeddable/public/plugin.tsx | 4 +-
.../embeddable/public/tests/container.test.ts | 32 +-
.../public/tests/explicit_input.test.ts | 2 +-
.../embeddable/public/tests/helpers.ts | 2 +-
.../components/with_privileges.tsx | 4 +-
.../helpers/enzyme_helpers.tsx | 6 +-
.../helpers/router_helpers.tsx | 4 +-
.../test_utils_temp/lib/utils.ts | 2 +-
.../test_utils_temp/testbed/testbed.ts | 20 +-
.../components/cron_editor/cron_daily.js | 4 +-
.../components/cron_editor/cron_editor.js | 16 +-
.../components/cron_editor/cron_hourly.js | 2 +-
.../components/cron_editor/cron_monthly.js | 6 +-
.../components/cron_editor/cron_weekly.js | 6 +-
.../components/cron_editor/cron_yearly.js | 8 +-
.../elasticsearch_sql_highlight_rules.ts | 2 +-
.../lexer_rules/x_json_highlight_rules.ts | 2 +-
.../console_lang/ace/modes/x_json/x_json.ts | 6 +-
.../json_xjson_translation_tools.test.ts | 8 +-
.../indices/validate/validate_index.test.ts | 2 +-
.../public/request/request.test.js | 4 +-
.../components/fields/combobox_field.tsx | 4 +-
.../components/fields/json_editor_field.tsx | 2 +-
.../components/fields/multi_select_field.tsx | 2 +-
.../forms/components/fields/select_field.tsx | 2 +-
.../components/fields/super_select_field.tsx | 2 +-
.../static/forms/helpers/de_serializers.ts | 4 +-
.../static/forms/helpers/serializers.ts | 2 +-
.../components/form_data_provider.test.tsx | 6 +-
.../components/form_data_provider.ts | 2 +-
.../hook_form_lib/components/use_array.ts | 6 +-
.../hook_form_lib/components/use_field.tsx | 2 +-
.../components/use_multi_fields.tsx | 2 +-
.../forms/hook_form_lib/form_context.tsx | 2 +-
.../forms/hook_form_lib/hooks/use_field.ts | 14 +-
.../forms/hook_form_lib/hooks/use_form.ts | 36 +-
.../static/forms/hook_form_lib/lib/subject.ts | 2 +-
.../expressions/common/execution/container.ts | 6 +-
.../common/execution/execution.test.ts | 4 +-
.../expressions/common/execution/execution.ts | 8 +-
.../expressions/common/executor/container.ts | 10 +-
.../common/executor/executor.test.ts | 4 +-
.../common/expression_functions/specs/font.ts | 6 +-
.../expression_functions/specs/tests/utils.ts | 2 +-
.../expression_types/expression_type.test.ts | 4 +-
.../common/expression_types/specs/boolean.ts | 4 +-
.../expression_types/specs/datatable.ts | 16 +-
.../specs/kibana_datatable.ts | 2 +-
.../common/expression_types/specs/num.ts | 6 +-
.../common/expression_types/specs/number.ts | 4 +-
.../common/expression_types/specs/shape.ts | 2 +-
.../common/expression_types/specs/string.ts | 4 +-
.../expression_functions/sleep.ts | 2 +-
.../expressions/common/util/get_by_alias.ts | 2 +-
src/plugins/expressions/public/loader.ts | 6 +-
src/plugins/expressions/public/mocks.tsx | 2 +-
src/plugins/expressions/public/plugin.ts | 2 +-
.../public/react_expression_renderer.test.tsx | 2 +-
.../public/react_expression_renderer.tsx | 8 +-
src/plugins/expressions/public/render.test.ts | 4 +-
src/plugins/expressions/public/render.ts | 6 +-
src/plugins/expressions/server/legacy.ts | 2 +-
.../components/feature_directory.js | 8 +-
.../public/application/components/home.js | 6 +-
.../application/components/home.test.js | 6 +-
.../public/application/components/home_app.js | 4 +-
.../components/recently_accessed.test.js | 2 +-
.../components/sample_data_set_cards.js | 28 +-
.../sample_data_view_data_button.js | 2 +-
.../sample_data_view_data_button.test.js | 2 +-
.../components/tutorial/instruction.js | 4 +-
.../components/tutorial/instruction_set.js | 8 +-
.../components/tutorial/number_parameter.js | 2 +-
.../components/tutorial/parameter_form.js | 2 +-
.../tutorial/saved_objects_installer.js | 4 +-
.../tutorial/saved_objects_installer.test.js | 4 +-
.../components/tutorial/string_parameter.js | 2 +-
.../components/tutorial/tutorial.js | 20 +-
.../components/tutorial/tutorial.test.js | 10 +-
.../components/tutorial_directory.js | 12 +-
.../home/public/application/load_tutorials.js | 2 +-
src/plugins/home/public/plugin.ts | 2 +-
.../feature_catalogue_registry.ts | 2 +-
.../sample_data/data_sets/ecommerce/index.ts | 2 +-
.../sample_data/data_sets/flights/index.ts | 2 +-
.../sample_data/data_sets/logs/index.ts | 2 +-
.../sample_data/lib/create_index_name.ts | 2 +-
.../services/sample_data/lib/load_data.ts | 2 +-
.../sample_data/lib/sample_dataset_schema.ts | 20 +-
.../services/sample_data/routes/install.ts | 2 +-
.../services/sample_data/routes/list.ts | 4 +-
.../sample_data/sample_data_registry.ts | 8 +-
.../services/sample_data/usage/usage.ts | 2 +-
.../services/tutorials/lib/tutorial_schema.ts | 28 +-
.../services/tutorials/tutorials_registry.ts | 4 +-
.../create_button/create_button.tsx | 2 +-
.../empty_state/empty_state.test.tsx | 4 +-
.../components/indices_list/indices_list.tsx | 2 +-
.../step_index_pattern.test.tsx | 10 +-
.../step_index_pattern/step_index_pattern.tsx | 2 +-
.../step_time_field/step_time_field.tsx | 2 +-
.../create_index_pattern_wizard.tsx | 8 +-
.../lib/contains_illegal_characters.ts | 2 +-
.../lib/ensure_minimum_time.test.ts | 14 +-
.../lib/ensure_minimum_time.ts | 2 +-
.../lib/extract_time_fields.ts | 4 +-
.../lib/get_indices.test.ts | 6 +-
.../lib/get_matched_indices.ts | 2 +-
.../edit_index_pattern/edit_index_pattern.tsx | 12 +-
.../edit_index_pattern_state_container.ts | 2 +-
.../indexed_fields_table.test.tsx | 6 +-
.../indexed_fields_table.tsx | 8 +-
.../scripted_fields_table.tsx | 6 +-
.../components/add_filter/add_filter.tsx | 2 +-
.../components/table/table.test.tsx | 35 +-
.../source_filters_table.tsx | 6 +-
.../edit_index_pattern/tabs/tabs.tsx | 12 +-
.../edit_index_pattern/tabs/utils.ts | 8 +-
.../editors/color/color.tsx | 8 +-
.../field_format_editor/editors/date/date.tsx | 10 +-
.../editors/date_nanos/date_nanos.tsx | 2 +-
.../editors/default/default.tsx | 2 +-
.../editors/duration/duration.tsx | 6 +-
.../editors/number/number.tsx | 2 +-
.../editors/static_lookup/static_lookup.tsx | 6 +-
.../editors/string/string.tsx | 2 +-
.../editors/truncate/truncate.tsx | 2 +-
.../field_format_editor/editors/url/url.tsx | 12 +-
.../components/scripting_help/test_script.tsx | 8 +-
.../field_editor/field_editor.test.tsx | 18 +-
.../components/field_editor/field_editor.tsx | 22 +-
.../index_pattern_table.tsx | 2 +-
.../public/components/utils.ts | 4 +-
.../index_pattern_management/public/plugin.ts | 6 +-
.../public/service/creation/manager.ts | 6 +-
.../field_format_editors.ts | 2 +-
.../public/service/list/manager.ts | 4 +-
.../public/components/editor/controls_tab.tsx | 2 +-
.../public/components/editor/field_select.tsx | 2 +-
.../components/editor/list_control_editor.tsx | 8 +-
.../editor/range_control_editor.tsx | 4 +-
.../components/vis/input_control_vis.tsx | 2 +-
.../public/components/vis/list_control.tsx | 4 +-
.../public/control/control.test.ts | 14 +-
.../public/control/control.ts | 4 +-
.../filter_manager/filter_manager.test.ts | 10 +-
.../control/filter_manager/filter_manager.ts | 2 +-
.../phrase_filter_manager.test.ts | 18 +-
.../filter_manager/phrase_filter_manager.ts | 8 +-
.../range_filter_manager.test.ts | 12 +-
.../public/control/list_control_factory.ts | 2 +-
.../public/lineage/lineage_map.ts | 4 +-
.../public/lineage/parent_candidates.ts | 2 +-
.../public/test_utils/update_component.ts | 2 +-
.../public/vis_controller.tsx | 30 +-
.../common/adapters/data/data_adapter.ts | 2 +-
.../adapters/request/request_adapter.test.ts | 2 +-
src/plugins/inspector/public/plugin.tsx | 2 +-
.../inspector/public/ui/inspector_panel.tsx | 2 +-
.../public/ui/inspector_view_chooser.tsx | 2 +-
.../inspector/public/view_registry.test.ts | 6 +-
src/plugins/inspector/public/view_registry.ts | 2 +-
.../data/components/download_options.tsx | 2 +-
.../public/views/data/lib/export_csv.ts | 10 +-
.../components/details/req_details_stats.tsx | 2 +-
.../public/angular/angular_config.tsx | 4 +-
.../public/angular/kbn_top_nav.js | 8 +-
.../kibana_legacy/public/angular/promises.js | 34 +-
.../public/angular/watch_multi.js | 18 +-
.../navigate_to_legacy_kibana_url.ts | 2 +-
.../public/navigate_to_default_app.ts | 2 +-
.../public/notify/lib/format_msg.ts | 2 +-
.../notify/toasts/toast_notifications.ts | 2 +-
.../kibana_legacy/public/paginate/paginate.js | 20 +-
src/plugins/kibana_legacy/public/plugin.ts | 4 +-
.../public/utils/kbn_accessible_click.js | 6 +-
.../kibana_legacy/public/utils/private.js | 14 +-
.../utils/register_listen_event_listener.js | 4 +-
.../public/adapters/ui_to_react_component.ts | 2 +-
.../kibana_react/public/code_editor/index.tsx | 2 +-
.../kibana_react/public/context/context.tsx | 5 +-
.../public/field_icon/field_icon.test.tsx | 2 +-
.../public/markdown/markdown.test.tsx | 37 +-
.../kibana_react/public/markdown/markdown.tsx | 4 +-
.../notifications/create_notifications.tsx | 6 +-
.../containers/panel_container.tsx | 2 +-
.../public/split_panel/split_panel.test.tsx | 5 +-
.../table_list_view/table_list_view.tsx | 4 +-
.../application_usage/index.test.ts | 4 +-
.../server/collectors/find_all.test.ts | 2 +-
.../server/collectors/kibana/index.test.ts | 2 +-
.../kibana/kibana_usage_collector.ts | 2 +-
.../collectors/management/index.test.ts | 2 +-
.../server/collectors/ops_stats/index.test.ts | 2 +-
.../ops_stats/ops_stats_collector.ts | 2 +-
.../server/collectors/ui_metric/index.test.ts | 2 +-
.../server/index.test.ts | 4 +-
.../kibana_usage_collection/server/plugin.ts | 4 +-
.../common/calculate_object_hash.ts | 4 +-
.../common/create_getter_setter.ts | 2 +-
src/plugins/kibana_utils/common/defer.test.ts | 2 +-
...t_until_changed_with_initial_value.test.ts | 2 +-
...stinct_until_changed_with_initial_value.ts | 2 +-
src/plugins/kibana_utils/common/of.test.ts | 4 +-
.../create_state_container.test.ts | 2 +-
.../create_state_container.ts | 6 +-
...ate_state_container_react_helpers.test.tsx | 18 +-
.../create_state_container_react_helpers.ts | 2 +-
.../demos/state_containers/todomvc.ts | 22 +-
.../kibana_utils/demos/state_sync/url.ts | 2 +-
.../core/create_start_service_getter.test.ts | 8 +-
.../core/create_start_service_getter.ts | 2 +-
.../kibana_utils/public/errors/errors.test.ts | 2 +-
.../field_wildcard/field_wildcard.test.ts | 22 +-
.../public/field_wildcard/field_wildcard.ts | 7 +-
.../resize_checker/resize_checker.test.ts | 22 +-
.../state_management/url/format.test.ts | 2 +-
.../state_management/url/hash_unhash_url.ts | 2 +-
.../state_management/url/kbn_url_storage.ts | 2 +-
.../url/kbn_url_tracker.test.ts | 4 +-
.../state_management/url/kbn_url_tracker.ts | 6 +-
.../state_management/utils/diff_object.ts | 8 +-
.../public/state_sync/state_sync.test.ts | 2 +-
.../public/state_sync/state_sync.ts | 8 +-
.../create_kbn_url_state_storage.test.ts | 12 +-
.../create_kbn_url_state_storage.ts | 6 +-
.../public/storage/__tests__/storage.js | 34 +-
.../hashed_item_store/hashed_item_store.ts | 2 +-
.../management_sidebar_nav.tsx | 10 +-
.../management/public/legacy/section.js | 8 +-
.../management/public/legacy/section.test.js | 10 +-
.../public/legacy/sections_register.js | 2 +-
.../management/public/management_app.tsx | 2 +-
.../management/public/management_section.ts | 4 +-
.../management/public/management_service.ts | 4 +-
.../public/__tests__/map/kibana_map.js | 68 +-
.../public/__tests__/map/service_settings.js | 36 +-
.../maps_legacy/public/kibana_services.js | 6 +-
.../public/map/base_maps_visualization.js | 6 +-
.../public/map/convert_to_geojson.js | 4 +-
.../maps_legacy/public/map/kibana_map.js | 56 +-
.../maps_legacy/public/map/map_messages.js | 4 +-
.../public/map/service_settings.js | 14 +-
.../top_nav_menu/create_top_nav_menu.tsx | 2 +-
.../components/newsfeed_header_nav_button.tsx | 2 +-
src/plugins/newsfeed/public/lib/api.test.ts | 22 +-
src/plugins/newsfeed/public/lib/api.ts | 4 +-
src/plugins/newsfeed/public/plugin.tsx | 2 +-
.../__tests__/region_map_visualization.js | 30 +-
.../region_map/public/choropleth_layer.js | 34 +-
.../public/components/region_map_options.tsx | 2 +-
.../region_map/public/region_map_type.js | 8 +-
.../public/region_map_visualization.js | 8 +-
.../finder/saved_object_finder.test.tsx | 59 +-
.../public/finder/saved_object_finder.tsx | 30 +-
.../saved_object_save_modal_origin.tsx | 2 +-
.../helpers/find_object_by_title.ts | 4 +-
.../public/saved_object/saved_object.test.ts | 70 +-
.../saved_object/saved_object_loader.ts | 16 +-
.../public/lib/create_field_list.ts | 2 +-
.../public/lib/extract_export_details.ts | 6 +-
.../public/lib/import_legacy_file.ts | 2 +-
.../public/lib/process_import_response.ts | 4 +-
.../public/lib/resolve_import_errors.ts | 12 +-
.../public/lib/resolve_saved_objects.ts | 14 +-
.../object_view/components/field.tsx | 6 +-
.../object_view/components/form.tsx | 6 +-
.../object_view/saved_object_view.tsx | 2 +-
.../objects_table/components/flyout.test.tsx | 34 +-
.../objects_table/components/flyout.tsx | 22 +-
.../components/relationships.test.tsx | 10 +-
.../components/relationships.tsx | 2 +-
.../objects_table/components/table.tsx | 14 +-
.../saved_objects_table.test.tsx | 34 +-
.../objects_table/saved_objects_table.tsx | 22 +-
.../saved_objects_table_page.tsx | 4 +-
.../saved_objects_management/public/plugin.ts | 2 +-
.../public/services/action_service.ts | 4 +-
.../public/services/types.ts | 2 +-
.../server/lib/find_all.test.ts | 2 +-
.../server/lib/find_relationships.test.ts | 2 +-
.../server/lib/find_relationships.ts | 10 +-
.../server/routes/find.ts | 8 +-
.../server/routes/get_allowed_types.ts | 2 +-
.../server/routes/scroll_export.ts | 2 +-
.../public/components/share_context_menu.tsx | 2 +-
.../public/components/url_panel_content.tsx | 4 +-
.../public/services/share_menu_registry.ts | 2 +-
.../services/short_url_redirect_app.test.ts | 2 +-
src/plugins/share/server/routes/get.ts | 2 +-
src/plugins/share/server/routes/goto.ts | 4 +-
.../routes/lib/short_url_assert_valid.test.ts | 2 +-
.../server/routes/lib/short_url_lookup.ts | 5 +-
.../share/server/routes/shorten_url.ts | 2 +-
.../saved_objects/kibana_app_migration.ts | 2 +-
.../get_telemetry_opt_in.test.ts | 8 +-
.../public/components/opt_in_banner.test.tsx | 4 +-
.../opted_in_notice_banner.test.tsx | 2 +-
src/plugins/telemetry/public/mocks.ts | 2 +-
.../public/services/telemetry_sender.ts | 2 +-
.../collectors/usage/ensure_deep_object.ts | 2 +-
.../usage/telemetry_usage_collector.test.ts | 4 +-
src/plugins/telemetry/server/fetcher.ts | 4 +-
src/plugins/telemetry/server/plugin.ts | 2 +-
.../server/routes/telemetry_opt_in.ts | 4 +-
.../server/routes/telemetry_opt_in_stats.ts | 4 +-
.../server/routes/telemetry_usage_stats.ts | 2 +-
.../__tests__/get_local_stats.js | 2 +-
.../telemetry_collection/get_local_license.ts | 2 +-
.../telemetry_collection/get_local_stats.ts | 2 +-
.../server/plugin.ts | 2 +-
.../telemetry_management_section.tsx | 2 +-
src/plugins/testbed/server/index.ts | 2 +-
.../coordinate_maps_visualization.js | 30 +-
.../public/__tests__/geohash_layer.js | 16 +-
src/plugins/tile_map/public/css_filters.js | 8 +-
src/plugins/tile_map/public/geohash_layer.js | 4 +-
.../tile_map/public/markers/geohash_grid.js | 2 +-
.../tile_map/public/markers/heatmap.js | 16 +-
.../tile_map/public/markers/scaled_circles.js | 33 +-
src/plugins/tile_map/public/tile_map_type.js | 4 +-
.../tile_map/public/tile_map_visualization.js | 8 +-
.../build_eui_context_menu_panels.tsx | 2 +-
.../public/service/ui_actions_service.ts | 8 +-
.../tests/execute_trigger_actions.test.ts | 2 +-
src/plugins/usage_collection/public/plugin.ts | 2 +-
.../public/services/application_usage.ts | 4 +-
.../server/collector/collector_set.test.ts | 2 +-
.../server/collector/collector_set.ts | 4 +-
.../agg_filters/agg_type_field_filters.ts | 4 +-
.../public/agg_filters/agg_type_filters.ts | 4 +-
.../public/components/agg.test.tsx | 15 +-
.../public/components/agg.tsx | 2 +-
.../public/components/agg_add.tsx | 4 +-
.../public/components/agg_group.tsx | 6 +-
.../public/components/agg_group_helper.tsx | 4 +-
.../public/components/agg_params.tsx | 8 +-
.../public/components/agg_params_helper.ts | 6 +-
.../public/components/agg_select.tsx | 4 +-
.../components/controls/auto_precision.tsx | 2 +-
.../controls/components/from_to_list.tsx | 4 +-
.../controls/components/input_list.tsx | 6 +-
.../controls/components/mask_list.tsx | 2 +-
.../number_list/number_list.test.tsx | 12 +-
.../components/number_list/number_list.tsx | 6 +-
.../components/number_list/range.test.ts | 8 +-
.../controls/components/number_list/utils.ts | 2 +-
.../components/simple_number_list.tsx | 6 +-
.../components/controls/date_ranges.test.tsx | 2 +-
.../components/controls/date_ranges.tsx | 16 +-
.../components/controls/extended_bounds.tsx | 4 +-
.../public/components/controls/field.tsx | 2 +-
.../public/components/controls/filter.tsx | 2 +-
.../public/components/controls/filters.tsx | 13 +-
.../components/controls/include_exclude.tsx | 6 +-
.../public/components/controls/metric_agg.tsx | 4 +-
.../public/components/controls/order.tsx | 2 +-
.../public/components/controls/order_by.tsx | 2 +-
.../public/components/controls/ranges.tsx | 16 +-
.../components/controls/rows_or_columns.tsx | 2 +-
.../public/components/controls/size.tsx | 2 +-
.../public/components/controls/string.tsx | 2 +-
.../public/components/controls/switch.tsx | 2 +-
.../components/controls/top_aggregate.tsx | 6 +-
.../components/controls/use_geocentroid.tsx | 2 +-
.../components/controls/utils/agg_utils.ts | 4 +-
.../utils/strings/comma_separated_list.ts | 2 +-
.../public/components/sidebar/controls.tsx | 2 +-
.../public/components/sidebar/data_tab.tsx | 4 +-
.../public/components/sidebar/sidebar.tsx | 10 +-
.../components/sidebar/sidebar_title.tsx | 2 +-
.../components/sidebar/state/actions.ts | 6 +-
.../sidebar/state/editor_form_state.ts | 6 +-
.../components/sidebar/state/reducers.ts | 12 +-
.../public/default_editor.tsx | 2 +-
.../vis_default_editor/public/schemas.ts | 4 +-
.../vis_default_editor/public/utils.ts | 4 +-
.../components/metric_vis_component.test.tsx | 6 +-
.../public/components/metric_vis_options.tsx | 2 +-
.../public/agg_table/agg_table.js | 44 +-
.../public/agg_table/agg_table_group.js | 6 +-
.../public/components/table_vis_options.tsx | 2 +-
.../public/get_inner_angular.ts | 2 +-
.../public/paginated_table/paginated_table.js | 4 +-
.../paginated_table/paginated_table.test.ts | 338 +----
.../public/paginated_table/rows.js | 14 +-
.../public/table_vis_controller.js | 4 +-
.../public/components/tag_cloud.js | 22 +-
.../components/tag_cloud_visualization.js | 2 +-
.../common/lib/calculate_interval.test.ts | 4 +-
.../common/lib/to_milliseconds.ts | 2 +-
.../public/components/panel.tsx | 32 +-
.../components/timelion_expression_input.tsx | 2 +-
.../timelion_expression_input_helpers.ts | 16 +-
.../public/components/timelion_interval.tsx | 4 +-
.../public/helpers/arg_value_suggestions.ts | 18 +-
.../public/helpers/tick_formatters.test.ts | 72 +-
.../public/helpers/tick_generator.test.ts | 14 +-
.../helpers/timelion_request_handler.ts | 2 +-
.../server/fit_functions/average.js | 4 +-
.../server/fit_functions/average.test.js | 12 +-
.../server/fit_functions/carry.js | 2 +-
.../server/fit_functions/carry.test.js | 10 +-
.../server/fit_functions/nearest.js | 2 +-
.../server/fit_functions/scale.js | 2 +-
.../server/handlers/chain_runner.js | 35 +-
.../server/handlers/lib/arg_type.js | 5 +-
.../server/handlers/lib/index_arguments.js | 4 +-
.../server/handlers/lib/parse_sheet.js | 2 +-
.../server/handlers/lib/parse_sheet.test.js | 8 +-
.../server/handlers/lib/preprocess_chain.js | 2 +-
.../handlers/lib/reposition_arguments.js | 4 +-
.../server/handlers/lib/tl_config.js | 10 +-
.../server/handlers/lib/validate_arg.js | 2 +-
.../vis_type_timelion/server/lib/alter.js | 6 +-
.../server/lib/build_target.js | 2 +-
.../server/lib/classes/datasource.js | 10 +-
.../server/lib/classes/timelion_function.js | 8 +-
.../server/lib/config_manager.ts | 4 +-
.../server/lib/functions_md.js | 18 +-
.../server/lib/get_namespaced_settings.js | 4 +-
.../server/lib/load_functions.js | 10 +-
.../server/lib/process_function_definition.js | 4 +-
.../vis_type_timelion/server/lib/reduce.js | 12 +-
.../server/lib/unzip_pairs.js | 4 +-
.../server/routes/functions.ts | 2 +-
.../server/routes/validate_es.ts | 2 +-
.../server/series_functions/abs.js | 4 +-
.../server/series_functions/abs.test.js | 10 +-
.../aggregate/aggregate.test.js | 14 +-
.../server/series_functions/aggregate/avg.js | 2 +-
.../series_functions/aggregate/cardinality.js | 2 +-
.../series_functions/aggregate/first.js | 2 +-
.../series_functions/aggregate/index.js | 2 +-
.../server/series_functions/aggregate/last.js | 2 +-
.../server/series_functions/aggregate/max.js | 2 +-
.../server/series_functions/aggregate/min.js | 2 +-
.../server/series_functions/aggregate/sum.js | 2 +-
.../server/series_functions/bars.js | 2 +-
.../server/series_functions/bars.test.js | 12 +-
.../server/series_functions/color.js | 2 +-
.../server/series_functions/color.test.js | 8 +-
.../server/series_functions/condition.js | 6 +-
.../server/series_functions/condition.test.js | 52 +-
.../server/series_functions/cusum.js | 4 +-
.../server/series_functions/cusum.test.js | 2 +-
.../server/series_functions/derivative.js | 4 +-
.../series_functions/derivative.test.js | 2 +-
.../server/series_functions/divide.js | 2 +-
.../server/series_functions/divide.test.js | 2 +-
.../server/series_functions/es/es.test.js | 8 +-
.../server/series_functions/es/index.js | 4 +-
.../series_functions/es/lib/agg_body.js | 2 +-
.../es/lib/agg_response_to_series_list.js | 16 +-
.../series_functions/es/lib/build_request.js | 4 +-
.../es/lib/create_date_agg.js | 4 +-
.../server/series_functions/first.js | 2 +-
.../server/series_functions/first.test.js | 6 +-
.../server/series_functions/fit.js | 6 +-
.../server/series_functions/fit.test.js | 46 +-
.../series_functions/fixtures/series_list.js | 2 +-
.../series_functions/fixtures/tl_config.js | 6 +-
.../server/series_functions/graphite.js | 10 +-
.../server/series_functions/graphite.test.js | 16 +-
.../series_functions/helpers/get_series.js | 2 +-
.../helpers/get_series_list.js | 2 +-
.../helpers/get_single_series_list.js | 2 +-
.../helpers/invoke_series_fn.js | 4 +-
.../server/series_functions/hide.js | 2 +-
.../server/series_functions/hide.test.js | 8 +-
.../server/series_functions/holt/index.js | 2 +-
.../server/series_functions/holt/lib/tes.js | 6 +-
.../server/series_functions/label.js | 2 +-
.../server/series_functions/label.test.js | 6 +-
.../server/series_functions/legend.js | 2 +-
.../server/series_functions/legend.test.js | 8 +-
.../server/series_functions/lines.js | 2 +-
.../server/series_functions/lines.test.js | 4 +-
.../server/series_functions/log.js | 4 +-
.../server/series_functions/log.test.js | 2 +-
.../server/series_functions/max.js | 2 +-
.../server/series_functions/max.test.js | 2 +-
.../server/series_functions/min.js | 2 +-
.../server/series_functions/min.test.js | 2 +-
.../server/series_functions/movingaverage.js | 12 +-
.../series_functions/movingaverage.test.js | 10 +-
.../server/series_functions/movingstd.js | 14 +-
.../server/series_functions/movingstd.test.js | 2 +-
.../server/series_functions/multiply.js | 2 +-
.../server/series_functions/multiply.test.js | 2 +-
.../server/series_functions/points.js | 4 +-
.../server/series_functions/points.test.js | 16 +-
.../server/series_functions/precision.js | 4 +-
.../server/series_functions/precision.test.js | 4 +-
.../server/series_functions/props.js | 4 +-
.../server/series_functions/quandl.js | 6 +-
.../server/series_functions/quandl.test.js | 28 +-
.../server/series_functions/range.js | 4 +-
.../server/series_functions/range.test.js | 2 +-
.../server/series_functions/scale_interval.js | 4 +-
.../series_functions/scale_interval.test.js | 2 +-
.../server/series_functions/static.js | 4 +-
.../server/series_functions/static.test.js | 6 +-
.../server/series_functions/subtract.js | 2 +-
.../server/series_functions/sum.js | 2 +-
.../server/series_functions/sum.test.js | 2 +-
.../server/series_functions/title.js | 2 +-
.../server/series_functions/title.test.js | 4 +-
.../server/series_functions/trend/index.js | 8 +-
.../series_functions/trend/lib/regress.js | 26 +-
.../server/series_functions/trim.js | 6 +-
.../server/series_functions/trim.test.js | 10 +-
.../server/series_functions/worldbank.js | 10 +-
.../series_functions/worldbank_indicators.js | 6 +-
.../server/series_functions/yaxis.js | 4 +-
.../server/series_functions/yaxis.test.js | 32 +-
.../common/calculate_label.js | 2 +-
.../common/extract_index_patterns.js | 4 +-
.../common/get_last_value.js | 2 +-
.../common/to_percentile_number.js | 2 +-
.../components/add_delete_buttons.test.js | 15 +-
.../application/components/aggs/agg_select.js | 12 +-
.../application/components/aggs/aggs.js | 2 +-
.../components/aggs/calculation.js | 2 +-
.../application/components/aggs/derivative.js | 2 +-
.../components/aggs/filter_ratio.js | 2 +-
.../application/components/aggs/math.js | 2 +-
.../components/aggs/metric_select.js | 14 +-
.../components/aggs/moving_average.js | 2 +-
.../application/components/aggs/percentile.js | 2 +-
.../aggs/percentile_rank/multi_value_row.js | 2 +-
.../aggs/percentile_rank/percentile_rank.js | 4 +-
.../percentile_rank/percentile_rank_values.js | 2 +-
.../components/aggs/percentile_ui.js | 6 +-
.../components/aggs/positive_only.js | 2 +-
.../components/aggs/positive_rate.js | 4 +-
.../components/aggs/serial_diff.js | 2 +-
.../application/components/aggs/series_agg.js | 2 +-
.../application/components/aggs/static.js | 2 +-
.../components/aggs/std_deviation.js | 4 +-
.../components/aggs/std_sibling.js | 4 +-
.../application/components/aggs/top_hit.js | 8 +-
.../application/components/aggs/vars.js | 4 +-
.../components/annotations_editor.js | 6 +-
.../application/components/color_picker.js | 2 +-
.../components/color_picker.test.js | 5 +-
.../application/components/color_rules.js | 6 +-
.../components/color_rules.test.js | 5 +-
.../components/custom_color_picker.js | 4 +-
.../components/data_format_picker.js | 14 +-
.../components/icon_select/icon_select.js | 2 +-
.../application/components/index_pattern.js | 2 +-
.../components/lib/calculate_siblings.js | 4 +-
.../application/components/lib/charts.js | 2 +-
.../components/lib/collection_actions.js | 4 +-
.../components/lib/convert_series_to_vars.js | 10 +-
.../components/lib/create_change_handler.js | 2 +-
.../components/lib/create_number_handler.js | 4 +-
.../components/lib/create_select_handler.js | 4 +-
.../components/lib/create_text_handler.js | 4 +-
.../components/lib/create_xaxis_formatter.js | 2 +-
.../application/components/lib/durations.js | 2 +-
.../components/lib/get_interval.js | 6 +-
.../components/lib/re_id_series.js | 14 +-
.../components/lib/series_change_handler.js | 2 +-
.../application/components/lib/stacked.js | 2 +-
.../components/lib/tick_formatter.js | 2 +-
.../components/lib/tick_formatter.test.js | 10 +-
.../application/components/markdown_editor.js | 8 +-
.../application/components/panel_config.js | 4 +-
.../components/panel_config/gauge.js | 4 +-
.../components/panel_config/gauge.test.js | 5 +-
.../components/panel_config/markdown.js | 6 +-
.../components/panel_config/metric.js | 2 +-
.../components/panel_config/table.js | 6 +-
.../components/panel_config/timeseries.js | 8 +-
.../components/panel_config/top_n.js | 2 +-
.../public/application/components/series.js | 8 +-
.../application/components/series_config.js | 4 +-
.../application/components/series_editor.js | 6 +-
.../components/splits/everything.js | 2 +-
.../application/components/splits/filter.js | 4 +-
.../components/splits/filter_items.js | 6 +-
.../application/components/splits/filters.js | 2 +-
.../components/splits/group_by_select.js | 4 +-
.../application/components/splits/terms.js | 2 +-
.../components/splits/unsupported_split.js | 2 +-
.../application/components/vis_editor.js | 8 +-
.../components/vis_editor_visualization.js | 10 +-
.../application/components/vis_picker.js | 6 +-
.../components/vis_types/gauge/series.test.js | 5 +-
.../components/vis_types/gauge/vis.js | 8 +-
.../components/vis_types/markdown/vis.js | 2 +-
.../vis_types/metric/series.test.js | 10 +-
.../components/vis_types/metric/vis.js | 8 +-
.../components/vis_types/table/config.js | 4 +-
.../components/vis_types/table/vis.js | 14 +-
.../components/vis_types/timeseries/config.js | 12 +-
.../components/vis_types/timeseries/series.js | 2 +-
.../components/vis_types/timeseries/vis.js | 20 +-
.../components/vis_types/top_n/series.js | 2 +-
.../components/vis_types/top_n/vis.js | 12 +-
.../application/components/vis_with_splits.js | 12 +-
.../public/application/components/yes_no.js | 2 +-
.../application/components/yes_no.test.js | 10 +-
.../application/lib/create_brush_handler.js | 2 +-
.../lib/create_brush_handler.test.js | 2 +-
.../public/application/lib/fetch_fields.js | 2 +-
.../public/application/lib/set_is_reversed.js | 4 +-
.../visualizations/lib/get_value_by.js | 2 +-
.../application/visualizations/views/gauge.js | 8 +-
.../visualizations/views/gauge_vis.js | 4 +-
.../visualizations/views/metric.js | 8 +-
.../visualizations/views/timeseries/index.js | 4 +-
.../views/timeseries/utils/stack_format.js | 2 +-
.../application/visualizations/views/top_n.js | 6 +-
.../server/lib/get_fields.ts | 6 +-
.../server/lib/get_vis_data.ts | 4 +-
.../default_search_capabilities.js | 2 +-
.../strategies/abstract_search_strategy.ts | 4 +-
.../server/lib/vis_data/get_annotations.js | 2 +-
.../server/lib/vis_data/get_panel_data.js | 2 +-
.../server/lib/vis_data/get_series_data.js | 2 +-
.../lib/vis_data/handle_error_response.js | 2 +-
.../lib/vis_data/helpers/bucket_transform.js | 18 +-
.../vis_data/helpers/bucket_transform.test.js | 4 +-
.../lib/vis_data/helpers/get_active_series.js | 4 +-
.../lib/vis_data/helpers/get_agg_value.js | 6 +-
.../lib/vis_data/helpers/get_bucket_size.js | 2 +-
.../lib/vis_data/helpers/get_buckets_path.js | 2 +-
.../helpers/get_default_decoration.js | 2 +-
.../lib/vis_data/helpers/get_index_pattern.js | 4 +-
.../lib/vis_data/helpers/get_last_metric.js | 2 +-
.../server/lib/vis_data/helpers/get_splits.js | 8 +-
.../lib/vis_data/helpers/get_timerange.js | 4 +-
.../vis_data/helpers/get_timerange_mode.js | 6 +-
.../server/lib/vis_data/helpers/map_bucket.js | 2 +-
.../lib/vis_data/helpers/parse_interval.js | 6 +-
.../lib/vis_data/helpers/parse_settings.js | 2 +-
.../server/lib/vis_data/helpers/timestamp.js | 2 +-
.../lib/vis_data/helpers/unit_to_seconds.js | 8 +-
.../server/lib/vis_data/offset_time.test.js | 14 +-
.../annotations/date_histogram.js | 2 +-
.../request_processors/annotations/query.js | 4 +-
.../annotations/top_hits.js | 2 +-
.../series/date_histogram.js | 2 +-
.../series/date_histogram.test.js | 10 +-
.../series/filter_ratios.js | 6 +-
.../series/filter_ratios.test.js | 4 +-
.../series/metric_buckets.js | 6 +-
.../series/metric_buckets.test.js | 2 +-
.../series/normalize_query.js | 2 +-
.../series/normalize_query.test.js | 2 +-
.../series/positive_rate.js | 6 +-
.../series/positive_rate.test.js | 2 +-
.../request_processors/series/query.js | 2 +-
.../request_processors/series/query.test.js | 12 +-
.../series/sibling_buckets.js | 6 +-
.../series/sibling_buckets.test.js | 2 +-
.../series/split_by_everything.js | 2 +-
.../series/split_by_everything.test.js | 4 +-
.../series/split_by_filter.js | 2 +-
.../series/split_by_filter.test.js | 4 +-
.../series/split_by_filters.js | 4 +-
.../series/split_by_filters.test.js | 4 +-
.../series/split_by_terms.js | 4 +-
.../series/split_by_terms.test.js | 8 +-
.../table/date_histogram.js | 6 +-
.../request_processors/table/filter_ratios.js | 8 +-
.../table/metric_buckets.js | 8 +-
.../table/normalize_query.js | 2 +-
.../table/normalize_query.test.js | 2 +-
.../request_processors/table/pivot.js | 4 +-
.../request_processors/table/positive_rate.js | 4 +-
.../request_processors/table/query.js | 2 +-
.../table/sibling_buckets.js | 8 +-
.../table/split_by_everything.js | 6 +-
.../table/split_by_terms.js | 6 +-
.../annotations/buckets.js | 6 +-
.../response_processors/annotations/filter.js | 6 +-
.../response_processors/annotations/index.js | 2 +-
.../response_processors/series/_series_agg.js | 20 +-
.../series/drop_last_bucket.js | 4 +-
.../response_processors/series/math.js | 20 +-
.../response_processors/series/percentile.js | 8 +-
.../series/percentile.test.js | 2 +-
.../series/percentile_rank.js | 8 +-
.../response_processors/series/series_agg.js | 8 +-
.../series/series_agg.test.js | 2 +-
.../series/std_deviation_bands.js | 4 +-
.../series/std_deviation_bands.test.js | 2 +-
.../series/std_deviation_sibling.js | 6 +-
.../series/std_deviation_sibling.test.js | 2 +-
.../response_processors/series/std_metric.js | 4 +-
.../series/std_metric.test.js | 6 +-
.../response_processors/series/std_sibling.js | 6 +-
.../series/std_sibling.test.js | 4 +-
.../response_processors/series/time_shift.js | 4 +-
.../series/time_shift.test.js | 2 +-
.../response_processors/table/_series_agg.js | 28 +-
.../table/drop_last_bucket.js | 2 +-
.../response_processors/table/math.js | 2 +-
.../response_processors/table/percentile.js | 6 +-
.../table/percentile_rank.js | 6 +-
.../response_processors/table/series_agg.js | 4 +-
.../response_processors/table/std_metric.js | 4 +-
.../response_processors/table/std_sibling.js | 6 +-
.../vis_data/series/handle_response_body.js | 4 +-
.../lib/vis_data/table/process_bucket.js | 4 +-
.../server/routes/post_vis_schema.ts | 2 +-
.../server/saved_objects/tsvb_telemetry.ts | 2 +-
.../validation_telemetry_service.ts | 2 +-
.../public/components/vega_actions_menu.tsx | 2 +-
.../public/data_model/ems_file_parser.js | 2 +-
.../public/data_model/es_query_parser.js | 2 +-
.../public/data_model/vega_parser.js | 6 +-
.../public/data_model/vega_parser.test.js | 2 +-
.../public/vega_view/vega_base_view.js | 9 +-
.../public/vega_view/vega_map_view.js | 2 +-
.../public/vega_view/vega_tooltip.js | 2 +-
.../components/common/validation_wrapper.tsx | 4 +-
.../options/heatmap/labels_panel.tsx | 2 +-
.../components/options/metrics_axes/index.tsx | 8 +-
.../metrics_axes/value_axes_panel.test.tsx | 20 +-
.../options/metrics_axes/value_axes_panel.tsx | 4 +-
.../options/metrics_axes/y_extents.test.tsx | 10 +-
.../options/point_series/point_series.tsx | 2 +-
.../mock_data/date_histogram/_columns.js | 12 +-
.../mock_data/date_histogram/_rows.js | 8 +-
.../date_histogram/_rows_series_with_holes.js | 4 +-
.../mock_data/date_histogram/_series.js | 4 +-
.../_series_monthly_interval.js | 4 +-
.../mock_data/date_histogram/_series_neg.js | 4 +-
.../date_histogram/_series_pos_neg.js | 4 +-
.../date_histogram/_stacked_series.js | 4 +-
.../fixtures/mock_data/filters/_columns.js | 12 +-
.../fixtures/mock_data/filters/_rows.js | 12 +-
.../fixtures/mock_data/filters/_series.js | 4 +-
.../fixtures/mock_data/histogram/_columns.js | 12 +-
.../fixtures/mock_data/histogram/_rows.js | 12 +-
.../fixtures/mock_data/histogram/_series.js | 4 +-
.../fixtures/mock_data/histogram/_slices.js | 2 +-
.../mock_data/not_enough_data/_one_point.js | 4 +-
.../fixtures/mock_data/range/_columns.js | 4 +-
.../public/fixtures/mock_data/range/_rows.js | 4 +-
.../fixtures/mock_data/range/_series.js | 4 +-
.../mock_data/significant_terms/_columns.js | 20 +-
.../mock_data/significant_terms/_rows.js | 20 +-
.../mock_data/significant_terms/_series.js | 4 +-
.../fixtures/mock_data/stacked/_stacked.js | 4 +-
.../fixtures/mock_data/terms/_columns.js | 12 +-
.../public/fixtures/mock_data/terms/_rows.js | 8 +-
.../fixtures/mock_data/terms/_series.js | 4 +-
.../mock_data/terms/_series_multiple.js | 6 +-
.../vis_type_vislib/public/fixtures/mocks.js | 2 +-
src/plugins/vis_type_vislib/public/plugin.ts | 4 +-
.../vis_type_vislib/public/vis_controller.tsx | 2 +-
.../components/labels/flatten_series.js | 5 +-
.../vislib/components/labels/labels.test.js | 120 +-
.../components/labels/truncate_labels.js | 2 +-
.../vislib/components/labels/uniq_labels.js | 5 +-
.../vislib/components/legend/legend.tsx | 10 +-
.../vislib/components/legend/legend_item.tsx | 2 +-
.../vislib/components/legend/pie_utils.ts | 12 +-
.../_hierarchical_tooltip_formatter.js | 4 +-
.../tooltip/_pointseries_tooltip_formatter.js | 5 +-
.../_pointseries_tooltip_formatter.test.js | 11 +-
.../components/tooltip/position_tooltip.js | 8 +-
.../tooltip/position_tooltip.test.js | 62 +-
.../vislib/components/tooltip/tooltip.js | 36 +-
.../components/zero_injection/inject_zeros.js | 2 +-
.../zero_injection/ordered_x_keys.js | 4 +-
.../components/zero_injection/uniq_keys.js | 6 +-
.../zero_injection/zero_fill_data_array.js | 2 +-
.../zero_injection/zero_filled_array.js | 2 +-
.../zero_injection/zero_injection.test.js | 118 +-
.../build_hierarchical_data.test.ts | 4 +-
.../hierarchical/build_hierarchical_data.ts | 4 +-
.../helpers/point_series/_add_to_siri.test.ts | 10 +-
.../point_series/_fake_x_aspect.test.ts | 4 +-
.../helpers/point_series/_get_aspects.test.ts | 6 +-
.../helpers/point_series/_get_aspects.ts | 4 +-
.../helpers/point_series/_get_point.test.ts | 20 +-
.../vislib/helpers/point_series/_get_point.ts | 2 +-
.../helpers/point_series/_get_series.test.ts | 34 +-
.../helpers/point_series/_get_series.ts | 2 +-
.../helpers/point_series/_init_x_axis.test.ts | 22 +-
.../helpers/point_series/_init_x_axis.ts | 2 +-
.../helpers/point_series/_init_y_axis.test.ts | 14 +-
.../point_series/_ordered_date_axis.test.ts | 14 +-
.../helpers/point_series/point_series.test.ts | 16 +-
.../public/vislib/lib/_error_handler.test.js | 16 +-
.../public/vislib/lib/alerts.js | 28 +-
.../public/vislib/lib/axis/axis.js | 51 +-
.../public/vislib/lib/axis/axis.test.js | 24 +-
.../public/vislib/lib/axis/axis_labels.js | 20 +-
.../public/vislib/lib/axis/axis_scale.js | 8 +-
.../public/vislib/lib/axis/axis_title.js | 15 +-
.../public/vislib/lib/axis/axis_title.test.js | 59 +-
.../public/vislib/lib/axis/time_ticks.js | 8 +-
.../public/vislib/lib/axis/time_ticks.test.js | 2 +-
.../public/vislib/lib/axis/x_axis.test.js | 62 +-
.../public/vislib/lib/axis/y_axis.test.js | 110 +-
.../public/vislib/lib/binder.ts | 2 +-
.../public/vislib/lib/chart_grid.js | 14 +-
.../public/vislib/lib/chart_title.js | 24 +-
.../vis_type_vislib/public/vislib/lib/data.js | 63 +-
.../public/vislib/lib/data.test.js | 44 +-
.../public/vislib/lib/dispatch.js | 22 +-
.../public/vislib/lib/handler.js | 27 +-
.../public/vislib/lib/layout/layout.js | 18 +-
.../vislib/lib/layout/layout_types.test.js | 6 +-
.../layout/splits/column_chart/chart_split.js | 8 +-
.../splits/column_chart/chart_title_split.js | 4 +-
.../layout/splits/column_chart/splits.test.js | 56 +-
.../splits/column_chart/x_axis_split.js | 4 +-
.../splits/column_chart/y_axis_split.js | 4 +-
.../layout/splits/gauge_chart/chart_split.js | 8 +-
.../splits/gauge_chart/chart_title_split.js | 12 +-
.../layout/splits/gauge_chart/splits.test.js | 32 +-
.../layout/splits/pie_chart/chart_split.js | 8 +-
.../splits/pie_chart/chart_title_split.js | 12 +-
.../lib/layout/types/column_layout.test.js | 17 +-
.../public/vislib/lib/types/point_series.js | 22 +-
.../vislib/lib/types/point_series.test.js | 20 +-
.../public/vislib/lib/vis_config.test.js | 26 +-
.../public/vislib/response_handler.js | 6 +-
.../public/vislib/response_handler.test.ts | 2 +-
.../public/vislib/visualizations/_chart.js | 4 +-
.../vislib/visualizations/gauge_chart.js | 6 +-
.../vislib/visualizations/gauges/meter.js | 38 +-
.../public/vislib/visualizations/pie_chart.js | 49 +-
.../vislib/visualizations/point_series.js | 23 +-
.../point_series/_point_series.js | 4 +-
.../visualizations/point_series/area_chart.js | 30 +-
.../point_series/column_chart.js | 10 +-
.../point_series/heatmap_chart.js | 31 +-
.../visualizations/point_series/line_chart.js | 8 +-
.../vislib/visualizations/time_marker.js | 18 +-
.../vislib/visualizations/time_marker.test.js | 54 +-
.../vislib/visualizations/vis_types.test.js | 8 +-
.../public/components/visualization.test.js | 6 +-
.../components/visualization_chart.test.js | 2 +-
.../public/embeddable/visualize_embeddable.ts | 12 +-
.../visualize_embeddable_factory.tsx | 6 +-
.../expression_functions/vis_dimension.ts | 2 +-
.../expressions/visualization_function.ts | 2 +-
.../public/legacy/build_pipeline.ts | 26 +-
.../visualizations/public/legacy/memoize.ts | 2 +-
.../public/legacy/vis_update_state.js | 6 +-
.../public/persisted_state/persisted_state.ts | 4 +-
.../saved_visualizations/find_list_items.ts | 12 +-
.../saved_visualization_references.ts | 6 +-
src/plugins/visualizations/public/vis.test.ts | 22 +-
src/plugins/visualizations/public/vis.ts | 6 +-
.../vis_types/vis_type_alias_registry.ts | 4 +-
.../public/wizard/new_vis_modal.test.tsx | 2 +-
.../wizard/type_selection/new_vis_help.tsx | 2 +-
.../wizard/type_selection/type_selection.tsx | 12 +-
.../saved_objects/visualization_migrations.ts | 44 +-
.../public/application/editor/editor.js | 46 +-
.../application/editor/lib/make_stateful.ts | 4 +-
.../editor/lib/visualize_app_state.ts | 14 +-
.../application/editor/visualization.js | 6 +-
.../editor/visualization_editor.js | 6 +-
.../public/application/legacy_app.js | 34 +-
.../application/listing/visualize_listing.js | 14 +-
.../listing/visualize_listing_table.js | 4 +-
src/setup_node_env/exit_on_warning.js | 4 +-
src/setup_node_env/harden.js | 2 +-
.../node_version_validator.test.js | 10 +-
src/setup_node_env/patches/child_process.js | 2 +-
src/setup_node_env/root/force.js | 2 +-
src/setup_node_env/root/force.test.js | 8 +-
src/setup_node_env/root/is_root.js | 2 +-
src/setup_node_env/root/is_root.test.js | 6 +-
src/test_utils/__tests__/get_url.js | 8 +-
src/test_utils/get_url.js | 2 +-
src/test_utils/public/enzyme_helpers.tsx | 2 +-
src/test_utils/public/image_comparator.js | 4 +-
src/test_utils/public/mocks/intl.js | 10 +-
src/test_utils/public/no_digest_promises.js | 6 +-
src/test_utils/public/simulate_keys.js | 6 +-
.../public/stub_get_active_injector.js | 2 +-
src/test_utils/public/stub_index_pattern.js | 10 +-
tasks/check_plugins.js | 4 +-
tasks/config/availabletasks.js | 2 +-
tasks/config/karma.js | 10 +-
tasks/config/run.js | 4 +-
tasks/docker_docs.js | 4 +-
tasks/function_test_groups.js | 10 +-
tasks/jenkins.js | 2 +-
tasks/licenses_csv_report.js | 6 +-
tasks/test.js | 12 +-
tasks/test_jest.js | 6 +-
tasks/verify_dependency_versions.js | 4 +-
test/accessibility/apps/console.ts | 2 +-
test/accessibility/apps/dashboard.ts | 2 +-
test/accessibility/apps/dashboard_panel.ts | 2 +-
test/accessibility/apps/discover.ts | 2 +-
test/accessibility/apps/home.ts | 2 +-
test/accessibility/apps/management.ts | 2 +-
test/accessibility/apps/visualize.ts | 2 +-
test/accessibility/config.ts | 2 +-
test/accessibility/services/a11y/a11y.ts | 2 +-
.../services/a11y/analyze_with_axe.js | 4 +-
.../accessibility/services/a11y/axe_report.ts | 2 +-
test/api_integration/apis/core/index.js | 8 +-
.../apis/elasticsearch/index.js | 2 +-
test/api_integration/apis/general/cookies.js | 6 +-
test/api_integration/apis/general/csp.js | 4 +-
test/api_integration/apis/general/index.js | 2 +-
test/api_integration/apis/home/index.js | 2 +-
test/api_integration/apis/home/sample_data.js | 17 +-
test/api_integration/apis/index.js | 2 +-
.../apis/index_patterns/es_errors/errors.js | 2 +-
.../apis/index_patterns/es_errors/index.js | 2 +-
.../fields_for_time_pattern_route/errors.js | 2 +-
.../fields_for_time_pattern_route/index.js | 2 +-
.../fields_for_time_pattern_route/pattern.js | 8 +-
.../query_params.js | 10 +-
.../fields_for_wildcard_route/conflicts.js | 4 +-
.../fields_for_wildcard_route/index.js | 2 +-
.../fields_for_wildcard_route/params.js | 7 +-
.../fields_for_wildcard_route/response.js | 4 +-
.../apis/index_patterns/index.js | 2 +-
.../apis/kql_telemetry/index.js | 2 +-
.../apis/kql_telemetry/kql_telemetry.js | 8 +-
.../apis/saved_objects/bulk_create.js | 8 +-
.../apis/saved_objects/bulk_get.js | 6 +-
.../apis/saved_objects/bulk_update.js | 2 +-
.../apis/saved_objects/create.js | 6 +-
.../apis/saved_objects/delete.js | 8 +-
.../apis/saved_objects/export.js | 34 +-
.../apis/saved_objects/find.js | 30 +-
.../api_integration/apis/saved_objects/get.js | 8 +-
.../apis/saved_objects/import.js | 16 +-
.../apis/saved_objects/index.js | 2 +-
.../apis/saved_objects/migrations.js | 28 +-
.../saved_objects/resolve_import_errors.js | 24 +-
.../apis/saved_objects/update.js | 8 +-
.../apis/saved_objects_management/find.ts | 2 +-
.../apis/saved_objects_management/index.ts | 2 +-
.../saved_objects_management/relationships.ts | 4 +-
.../saved_objects_management/scroll_count.ts | 2 +-
test/api_integration/apis/scripts/index.js | 2 +-
.../api_integration/apis/scripts/languages.js | 6 +-
test/api_integration/apis/shorten/index.js | 2 +-
test/api_integration/apis/stats/index.js | 2 +-
test/api_integration/apis/stats/stats.js | 4 +-
test/api_integration/apis/status/index.js | 2 +-
test/api_integration/apis/status/status.js | 4 +-
.../api_integration/apis/suggestions/index.js | 2 +-
.../apis/suggestions/suggestions.js | 4 +-
test/api_integration/apis/telemetry/index.js | 2 +-
test/api_integration/apis/telemetry/opt_in.ts | 2 +-
.../apis/telemetry/telemetry_local.js | 4 +-
.../telemetry/telemetry_optin_notice_seen.ts | 5 +-
test/api_integration/apis/ui_metric/index.js | 2 +-
.../apis/ui_metric/ui_metric.js | 6 +-
test/api_integration/config.js | 2 +-
test/common/config.js | 2 +-
.../kibana_server/extend_es_archiver.js | 2 +-
.../services/retry/retry_for_success.ts | 2 +-
.../common/services/retry/retry_for_truthy.ts | 4 +-
test/examples/config.js | 2 +-
test/examples/embeddables/adding_children.ts | 2 +-
.../embeddables/hello_world_embeddable.ts | 2 +-
test/examples/embeddables/index.ts | 4 +-
test/examples/embeddables/list_container.ts | 2 +-
test/examples/embeddables/todo_embeddable.ts | 2 +-
test/examples/search/demo_data.ts | 2 +-
test/examples/search/es_search.ts | 2 +-
test/examples/search/index.ts | 6 +-
test/examples/state_sync/index.ts | 4 +-
test/examples/state_sync/todo_app.ts | 2 +-
test/examples/ui_actions/index.ts | 4 +-
test/examples/ui_actions/ui_actions.ts | 2 +-
test/functional/apps/bundles/index.js | 4 +-
test/functional/apps/console/_console.ts | 2 +-
test/functional/apps/console/index.js | 6 +-
.../apps/context/_context_navigation.js | 10 +-
test/functional/apps/context/_date_nanos.js | 8 +-
.../context/_date_nanos_custom_timestamp.js | 8 +-
.../apps/context/_discover_navigation.js | 14 +-
test/functional/apps/context/_filters.js | 18 +-
test/functional/apps/context/_size.js | 20 +-
test/functional/apps/context/index.js | 6 +-
.../apps/dashboard/bwc_shared_urls.js | 10 +-
.../dashboard/create_and_add_embeddables.js | 2 +-
.../apps/dashboard/dashboard_back_button.ts | 2 +-
.../apps/dashboard/dashboard_clone.js | 12 +-
.../apps/dashboard/dashboard_filter_bar.js | 18 +-
.../apps/dashboard/dashboard_filtering.js | 6 +-
.../apps/dashboard/dashboard_grid.js | 4 +-
.../apps/dashboard/dashboard_listing.js | 48 +-
.../apps/dashboard/dashboard_options.js | 2 +-
.../apps/dashboard/dashboard_query_bar.js | 2 +-
.../apps/dashboard/dashboard_save.js | 20 +-
.../apps/dashboard/dashboard_saved_query.js | 6 +-
.../apps/dashboard/dashboard_snapshots.js | 6 +-
.../apps/dashboard/dashboard_state.js | 22 +-
.../apps/dashboard/dashboard_time.js | 20 +-
.../apps/dashboard/dashboard_time_picker.js | 4 +-
.../apps/dashboard/data_shared_attributes.js | 12 +-
.../dashboard/edit_embeddable_redirects.js | 2 +-
test/functional/apps/dashboard/embed_mode.js | 4 +-
.../apps/dashboard/embeddable_rendering.js | 2 +-
.../apps/dashboard/empty_dashboard.js | 2 +-
.../apps/dashboard/full_screen_mode.js | 2 +-
test/functional/apps/dashboard/index.js | 12 +-
.../apps/dashboard/panel_controls.js | 28 +-
.../apps/dashboard/panel_expand_toggle.js | 2 +-
test/functional/apps/dashboard/time_zones.js | 4 +-
test/functional/apps/dashboard/view_edit.js | 40 +-
test/functional/apps/discover/_date_nanos.js | 8 +-
.../apps/discover/_date_nanos_mixed.js | 8 +-
test/functional/apps/discover/_discover.js | 46 +-
.../apps/discover/_discover_histogram.js | 4 +-
.../apps/discover/_doc_navigation.js | 6 +-
test/functional/apps/discover/_errors.js | 6 +-
test/functional/apps/discover/_field_data.js | 20 +-
.../apps/discover/_field_visualize.ts | 4 +-
.../apps/discover/_filter_editor.js | 12 +-
.../_indexpattern_without_timefield.ts | 12 +-
test/functional/apps/discover/_inspector.js | 4 +-
.../functional/apps/discover/_large_string.js | 14 +-
.../apps/discover/_saved_queries.js | 8 +-
.../functional/apps/discover/_shared_links.js | 22 +-
test/functional/apps/discover/_sidebar.js | 16 +-
.../apps/discover/_source_filters.js | 8 +-
test/functional/apps/discover/index.js | 6 +-
.../apps/getting_started/_shakespeare.js | 18 +-
test/functional/apps/getting_started/index.js | 6 +-
test/functional/apps/home/_add_data.js | 2 +-
test/functional/apps/home/_home.js | 2 +-
test/functional/apps/home/_navigation.ts | 2 +-
test/functional/apps/home/_newsfeed.ts | 2 +-
test/functional/apps/home/_sample_data.ts | 2 +-
test/functional/apps/home/index.js | 6 +-
.../_create_index_pattern_wizard.js | 12 +-
.../apps/management/_handle_alias.js | 18 +-
.../management/_handle_version_conflict.js | 12 +-
.../apps/management/_import_objects.js | 38 +-
.../_index_pattern_create_delete.js | 26 +-
.../apps/management/_index_pattern_filter.js | 14 +-
.../management/_index_pattern_popularity.js | 10 +-
.../management/_index_pattern_results_sort.js | 28 +-
.../apps/management/_kibana_settings.js | 14 +-
.../management/_mgmt_import_saved_objects.js | 8 +-
.../apps/management/_scripted_fields.js | 76 +-
.../management/_scripted_fields_filter.js | 14 +-
.../management/_scripted_fields_preview.js | 10 +-
.../apps/management/_test_huge_fields.js | 8 +-
test/functional/apps/management/index.js | 8 +-
.../edit_saved_object.ts | 4 +-
test/functional/apps/status_page/index.js | 6 +-
.../apps/timelion/_expression_typeahead.js | 2 +-
test/functional/apps/timelion/index.js | 6 +-
test/functional/apps/visualize/_area_chart.js | 23 +-
.../functional/apps/visualize/_chart_types.ts | 12 +-
test/functional/apps/visualize/_data_table.js | 12 +-
.../visualize/_data_table_nontimeindex.js | 12 +-
.../_data_table_notimeindex_filters.ts | 8 +-
.../apps/visualize/_embedding_chart.js | 4 +-
.../apps/visualize/_experimental_vis.js | 2 +-
.../functional/apps/visualize/_gauge_chart.js | 12 +-
.../apps/visualize/_heatmap_chart.js | 16 +-
.../visualize/_histogram_request_start.js | 12 +-
test/functional/apps/visualize/_inspector.js | 22 +-
test/functional/apps/visualize/_lab_mode.js | 2 +-
test/functional/apps/visualize/_line_chart.js | 22 +-
.../apps/visualize/_linked_saved_searches.ts | 2 +-
.../apps/visualize/_markdown_vis.js | 14 +-
.../apps/visualize/_metric_chart.js | 32 +-
test/functional/apps/visualize/_pie_chart.js | 20 +-
.../apps/visualize/_point_series_options.js | 42 +-
test/functional/apps/visualize/_region_map.js | 14 +-
.../functional/apps/visualize/_shared_item.js | 8 +-
test/functional/apps/visualize/_tag_cloud.js | 34 +-
test/functional/apps/visualize/_tile_map.js | 24 +-
test/functional/apps/visualize/_tsvb_chart.ts | 2 +-
.../apps/visualize/_tsvb_markdown.ts | 8 +-
test/functional/apps/visualize/_tsvb_table.ts | 2 +-
.../apps/visualize/_tsvb_time_series.ts | 2 +-
test/functional/apps/visualize/_vega_chart.js | 18 +-
.../apps/visualize/_vertical_bar_chart.js | 36 +-
.../_vertical_bar_chart_nontimeindex.js | 26 +-
.../apps/visualize/_visualize_listing.js | 26 +-
test/functional/apps/visualize/index.ts | 10 +-
.../input_control_vis/chained_controls.js | 20 +-
.../input_control_vis/dynamic_options.js | 48 +-
.../apps/visualize/input_control_vis/index.js | 4 +-
.../input_control_options.js | 18 +-
.../input_control_vis/input_control_range.ts | 2 +-
test/functional/config.coverage.js | 2 +-
test/functional/config.edge.js | 2 +-
test/functional/config.firefox.js | 2 +-
test/functional/config.ie.js | 2 +-
test/functional/config.js | 2 +-
test/functional/page_objects/console_page.ts | 2 +-
.../functional/page_objects/dashboard_page.ts | 16 +-
test/functional/page_objects/discover_page.ts | 14 +-
test/functional/page_objects/settings_page.ts | 10 +-
.../functional/page_objects/tag_cloud_page.ts | 2 +-
test/functional/page_objects/tile_map_page.ts | 2 +-
test/functional/page_objects/time_picker.ts | 2 +-
test/functional/page_objects/timelion_page.ts | 2 +-
.../page_objects/vega_chart_page.ts | 2 +-
.../page_objects/visual_builder_page.ts | 2 +-
.../page_objects/visualize_chart_page.ts | 41 +-
.../page_objects/visualize_editor_page.ts | 2 +-
.../functional/page_objects/visualize_page.ts | 7 +-
test/functional/services/apps_menu.ts | 6 +-
test/functional/services/combo_box.ts | 4 +-
test/functional/services/common/browser.ts | 49 +-
test/functional/services/common/find.ts | 12 +-
.../services/common/test_subjects.ts | 4 +-
.../services/dashboard/expectations.js | 18 +-
test/functional/services/doc_table.ts | 12 +-
test/functional/services/filter_bar.ts | 5 +-
test/functional/services/inspector.ts | 24 +-
.../web_element_wrapper.ts | 17 +-
.../config.js | 2 +-
.../test.js | 2 +-
.../test2.js | 2 +-
.../test3.1.js | 2 +-
.../test3.js | 2 +-
.../__tests__/remote_default_window_size.js | 4 +-
.../services/remote/create_stdout_stream.ts | 8 +-
.../services/remote/poll_for_log_entry.ts | 8 +-
.../remote/prevent_parallel_calls.test.js | 4 +-
.../services/remote/prevent_parallel_calls.ts | 2 +-
test/functional/services/remote/remote.ts | 21 +-
test/functional/services/remote/webdriver.ts | 4 +-
test/functional/services/table.ts | 4 +-
.../services/visualizations/pie_chart.js | 6 +-
test/harden/child_process.js | 220 +--
test/interpreter_functional/config.ts | 6 +-
.../test_suites/run_pipeline/basic.ts | 2 +-
.../test_suites/run_pipeline/esaggs.ts | 2 +-
.../test_suites/run_pipeline/index.ts | 4 +-
.../test_suites/run_pipeline/metric.ts | 2 +-
.../test_suites/run_pipeline/tag_cloud.ts | 2 +-
test/plugin_functional/config.js | 6 +-
.../plugins/core_plugin_a/server/plugin.ts | 2 +-
.../core_plugin_appleave/public/plugin.tsx | 4 +-
.../plugins/core_plugin_legacy/index.ts | 2 +-
.../core_provider_plugin/public/index.ts | 2 +-
.../doc_views_plugin/public/plugin.tsx | 2 +-
.../plugins/legacy_plugin/index.ts | 2 +-
.../bfetch_explorer/batched_function.ts | 8 +-
.../test_suites/bfetch_explorer/index.ts | 4 +-
.../core_plugins/application_leave_confirm.ts | 2 +-
.../core_plugins/application_status.ts | 2 +-
.../test_suites/core_plugins/applications.ts | 2 +-
.../test_suites/core_plugins/index.ts | 2 +-
.../core_plugins/legacy_plugins.ts | 2 +-
.../test_suites/core_plugins/rendering.ts | 2 +-
.../core_plugins/server_plugins.ts | 7 +-
.../test_suites/core_plugins/top_nav.js | 2 +-
.../test_suites/core_plugins/ui_plugins.ts | 18 +-
.../test_suites/core_plugins/ui_settings.ts | 11 +-
.../custom_visualizations/index.js | 4 +-
.../self_changing_vis.js | 2 +-
.../test_suites/doc_views/doc_views.ts | 4 +-
.../test_suites/doc_views/index.ts | 4 +-
.../dashboard_container.js | 2 +-
.../test_suites/embeddable_explorer/index.js | 4 +-
.../test_suites/management/index.js | 2 +-
.../management/management_plugin.js | 2 +-
.../test_suites/panel_actions/index.js | 6 +-
.../panel_actions/panel_actions.js | 2 +-
test/server_integration/config.js | 2 +-
test/server_integration/http/cache/config.js | 2 +-
test/server_integration/http/cache/index.js | 2 +-
test/server_integration/http/ssl/config.js | 2 +-
test/server_integration/http/ssl/index.js | 2 +-
.../http/ssl_redirect/config.js | 2 +-
.../http/ssl_redirect/index.js | 13 +-
.../http/ssl_with_p12/config.js | 2 +-
.../http/ssl_with_p12/index.js | 2 +-
.../http/ssl_with_p12_intermediate/config.js | 2 +-
.../http/ssl_with_p12_intermediate/index.js | 2 +-
test/server_integration/services/supertest.js | 2 +-
test/ui_capabilities/newsfeed_err/test.ts | 2 +-
test/visual_regression/config.ts | 2 +-
.../services/visual_testing/visual_testing.ts | 2 +-
test/visual_regression/tests/console_app.ts | 2 +-
.../tests/discover/chart_visualization.ts | 24 +-
.../visual_regression/tests/discover/index.ts | 6 +-
utilities/visual_regression.js | 8 +-
x-pack/dev-tools/api_debug/index.js | 4 +-
x-pack/dev-tools/jest/setup/polyfills.js | 2 +-
.../dashboard_hello_world_drilldown/index.tsx | 2 +-
.../collect_config_container.tsx | 4 +-
.../discover_drilldown_config.tsx | 2 +-
.../drilldown.tsx | 2 +-
.../dashboard_to_url_drilldown/index.tsx | 2 +-
x-pack/index.js | 2 +-
x-pack/legacy/common/__tests__/poller.js | 4 +-
x-pack/legacy/common/poller.js | 2 +-
.../common/config_block_validation.ts | 4 +-
.../beats_management/common/config_schemas.ts | 2 +-
.../common/config_schemas_translations_map.ts | 4 +-
.../beats_management/common/domain_types.ts | 2 +-
.../beats_management/common/io_ts_types.ts | 2 +-
.../legacy/plugins/beats_management/index.ts | 4 +-
.../beats_management/scripts/fake_env.ts | 2 +-
.../beats/elasticsearch_beats_adapter.ts | 2 +-
.../adapters/beats/memory_beats_adapter.ts | 28 +-
...asticsearch_configuration_block_adapter.ts | 6 +-
.../memory_tags_adapter.ts | 18 +-
.../tags/elasticsearch_tags_adapter.ts | 14 +-
.../lib/adapters/tags/memory_tags_adapter.ts | 8 +-
.../tokens/elasticsearch_tokens_adapter.ts | 4 +-
.../adapters/tokens/memory_tokens_adapter.ts | 10 +-
.../server/lib/beat_events.ts | 4 +-
.../beats_management/server/lib/beats.ts | 10 +-
.../beats_management/server/lib/tags.ts | 4 +-
.../beats_management/server/lib/tokens.ts | 4 +-
.../server/rest_api/beats/tag_assignment.ts | 2 +-
.../server/rest_api/beats/tag_removal.ts | 2 +-
.../server/rest_api/configurations/delete.ts | 2 +-
.../server/rest_api/configurations/upsert.ts | 2 +-
.../server/rest_api/tags/assignable.ts | 2 +-
.../server/rest_api/tokens/create.ts | 7 +-
.../server/utils/helper_types.ts | 4 +-
.../plugins/beats_management/wallaby.js | 4 +-
.../dashboard_mode_request_interceptor.js | 13 +-
.../dashboard_mode_request_interceptor.js | 9 +-
.../maps/public/angular/map_controller.js | 30 +-
x-pack/legacy/plugins/maps/public/plugin.ts | 2 +-
x-pack/legacy/plugins/maps/public/routes.js | 14 +-
x-pack/legacy/plugins/monitoring/config.ts | 34 +-
.../plugins/reporting/common/validate_urls.ts | 2 +-
.../get_conditional_headers.test.ts | 5 +-
.../common/execute_job/get_full_urls.ts | 2 +-
.../execute_job/omit_blacklisted_headers.ts | 2 +-
.../common/lib/screenshots/get_time_range.ts | 2 +-
.../common/lib/screenshots/inject_css.ts | 2 +-
.../common/lib/screenshots/observable.ts | 4 +-
.../common/lib/screenshots/wait_for_render.ts | 6 +-
.../csv/server/execute_job.test.ts | 122 +-
.../csv/server/lib/cell_has_formula.ts | 2 +-
.../lib/check_cells_for_formulas.test.ts | 6 +-
.../server/lib/check_cells_for_formulas.ts | 2 +-
.../csv/server/lib/escape_value.test.ts | 38 +-
.../csv/server/lib/field_format_map.test.ts | 8 +-
.../csv/server/lib/field_format_map.ts | 2 +-
.../csv/server/lib/flatten_hit.test.ts | 28 +-
.../csv/server/lib/flatten_hit.ts | 2 +-
.../csv/server/lib/format_csv_values.test.ts | 22 +-
.../csv/server/lib/format_csv_values.ts | 6 +-
.../csv/server/lib/hit_iterator.test.ts | 2 +-
.../lib/max_size_string_builder.test.ts | 30 +-
.../png/server/execute_job/index.ts | 8 +-
.../printable_pdf/server/execute_job/index.ts | 10 +-
.../printable_pdf/server/lib/generate_pdf.ts | 6 +-
.../printable_pdf/server/lib/pdf/index.js | 8 +-
.../printable_pdf/server/lib/uri_encode.js | 4 +-
.../chromium/driver/chromium_driver.ts | 2 +-
.../browsers/chromium/driver_factory/index.ts | 12 +-
.../server/browsers/download/checksum.ts | 2 +-
.../server/browsers/download/clean.ts | 2 +-
.../server/browsers/download/download.test.ts | 4 +-
.../browsers/download/ensure_downloaded.ts | 4 +-
.../server/browsers/extract/unzip.js | 4 +-
.../server/browsers/safe_child_process.ts | 6 +-
.../server/lib/__tests__/check_license.js | 2 +-
.../lib/__tests__/export_types_registry.js | 54 +-
.../reporting/server/lib/check_license.ts | 4 +-
.../server/lib/create_tagged_logger.ts | 6 +-
.../esqueue/__tests__/helpers/create_index.js | 30 +-
.../lib/esqueue/__tests__/helpers/errors.js | 20 +-
.../__tests__/helpers/index_timestamp.js | 36 +-
.../server/lib/esqueue/__tests__/index.js | 46 +-
.../server/lib/esqueue/__tests__/job.js | 105 +-
.../server/lib/esqueue/__tests__/worker.js | 276 ++--
.../lib/esqueue/helpers/create_index.js | 4 +-
.../reporting/server/lib/esqueue/index.js | 10 +-
.../reporting/server/lib/esqueue/job.js | 8 +-
.../reporting/server/lib/esqueue/worker.js | 36 +-
.../server/lib/export_types_registry.ts | 2 +-
.../reporting/server/lib/jobs_query.ts | 6 +-
.../server/routes/generate_from_jobparams.ts | 4 +-
.../server/routes/generation.test.ts | 2 +-
.../lib/authorized_user_pre_routing.test.js | 22 +-
.../routes/lib/authorized_user_pre_routing.ts | 2 +-
.../server/routes/lib/job_response_handler.ts | 9 +-
.../server/usage/decorate_range_stats.ts | 2 +-
.../plugins/security/public/hacks/legacy.ts | 2 +-
x-pack/legacy/plugins/xpack_main/index.js | 2 +-
.../public/hacks/check_xpack_info_change.js | 6 +-
.../xpack_main/public/services/xpack_info.js | 8 +-
.../lib/__tests__/call_cluster_factory.js | 5 +-
.../__tests__/inject_xpack_info_signature.js | 4 +-
.../lib/__tests__/replace_injected_vars.js | 2 +-
.../server/lib/__tests__/setup_xpack_main.js | 4 +-
.../server/lib/__tests__/xpack_info.js | 16 +-
.../xpack_main/server/lib/xpack_info.ts | 6 +-
.../server/lib/xpack_info_license.test.js | 2 +-
.../server/lib/xpack_info_license.ts | 4 +-
.../server/routes/api/v1/settings.js | 2 +-
.../server/lib/__tests__/kibana_state.js | 46 +-
.../lib/__tests__/mirror_plugin_status.js | 6 +-
x-pack/legacy/server/lib/audit_logger.js | 2 +-
x-pack/legacy/server/lib/audit_logger.test.js | 6 +-
.../lib/check_license/check_license.test.js | 2 +-
.../legacy/server/lib/create_router/index.js | 4 +-
.../is_es_error_factory.js | 2 +-
.../__tests__/license_pre_routing_factory.js | 2 +-
.../legacy/server/lib/mirror_plugin_status.js | 2 +-
.../register_license_checker.js | 2 +-
.../watch_status_and_license_to_initialize.js | 2 +-
...h_status_and_license_to_initialize.test.js | 42 +-
.../server/action_type_registry.test.ts | 2 +-
.../actions/server/action_type_registry.ts | 2 +-
.../actions/server/actions_client.test.ts | 2 +-
.../plugins/actions/server/actions_client.ts | 10 +-
.../plugins/actions/server/actions_config.ts | 4 +-
.../builtin_action_types/case/utils.test.ts | 6 +-
.../server/builtin_action_types/case/utils.ts | 13 +-
.../server/builtin_action_types/email.test.ts | 2 +-
.../server/builtin_action_types/index.test.ts | 2 +-
.../lib/http_rersponse_retry_header.ts | 4 +-
.../builtin_action_types/pagerduty.test.ts | 4 +-
.../server/builtin_action_types/slack.test.ts | 4 +-
.../server/builtin_action_types/slack.ts | 2 +-
.../builtin_action_types/webhook.test.ts | 4 +-
.../server/builtin_action_types/webhook.ts | 4 +-
.../actions/server/create_execute_function.ts | 2 +-
.../actions/server/lib/action_executor.ts | 2 +-
.../server/lib/validate_with_schema.test.ts | 2 +-
x-pack/plugins/actions/server/mocks.ts | 8 +-
x-pack/plugins/actions/server/plugin.ts | 9 +-
.../plugins/actions/server/routes/create.ts | 2 +-
.../plugins/actions/server/routes/delete.ts | 2 +-
.../plugins/actions/server/routes/execute.ts | 2 +-
x-pack/plugins/actions/server/routes/get.ts | 2 +-
.../plugins/actions/server/routes/get_all.ts | 2 +-
.../server/routes/list_action_types.ts | 2 +-
.../plugins/actions/server/routes/update.ts | 2 +-
x-pack/plugins/actions/server/usage/task.ts | 7 +-
.../action_wizard/action_wizard.tsx | 6 +-
.../components/action_wizard/test_data.tsx | 8 +-
.../public/custom_time_range_action.test.ts | 6 +-
.../public/custom_time_range_badge.test.ts | 2 +-
.../public/customize_time_range_modal.tsx | 2 +-
.../dynamic_action_manager.test.ts | 6 +-
.../dynamic_actions/dynamic_action_manager.ts | 2 +-
.../dynamic_action_manager_state.ts | 16 +-
.../dynamic_actions/dynamic_action_storage.ts | 6 +-
.../ui_actions_service_enhancements.ts | 6 +-
.../alerting/common/date_from_string.ts | 4 +-
x-pack/plugins/alerting/public/alert_api.ts | 2 +-
.../alerting/server/alerts_client.test.ts | 2 +-
.../plugins/alerting/server/alerts_client.ts | 20 +-
x-pack/plugins/alerting/server/lib/types.ts | 4 +-
x-pack/plugins/alerting/server/plugin.ts | 2 +-
.../plugins/alerting/server/routes/create.ts | 2 +-
.../plugins/alerting/server/routes/delete.ts | 2 +-
.../plugins/alerting/server/routes/disable.ts | 2 +-
.../plugins/alerting/server/routes/enable.ts | 2 +-
x-pack/plugins/alerting/server/routes/find.ts | 2 +-
x-pack/plugins/alerting/server/routes/get.ts | 2 +-
.../alerting/server/routes/get_alert_state.ts | 2 +-
.../plugins/alerting/server/routes/health.ts | 2 +-
.../server/routes/list_alert_types.ts | 2 +-
.../alerting/server/routes/mute_all.ts | 2 +-
.../alerting/server/routes/mute_instance.ts | 2 +-
.../alerting/server/routes/unmute_all.ts | 2 +-
.../alerting/server/routes/unmute_instance.ts | 2 +-
.../plugins/alerting/server/routes/update.ts | 2 +-
.../alerting/server/routes/update_api_key.ts | 2 +-
.../task_runner/create_execution_handler.ts | 2 +-
.../server/task_runner/task_runner.ts | 10 +-
.../alerting/server/test_utils/index.ts | 2 +-
x-pack/plugins/alerting/server/usage/task.ts | 7 +-
.../lib/date_range_info.test.ts | 4 +-
.../index_threshold/routes/indices.ts | 2 +-
.../common/agent_configuration/all_option.ts | 2 +-
.../agent_configuration/amount_and_unit.ts | 2 +-
.../agent_configuration_intake_rt.test.ts | 16 +-
.../agent_configuration_intake_rt.ts | 8 +-
.../runtime_types/boolean_rt.test.ts | 4 +-
.../runtime_types/bytes_rt.test.ts | 20 +-
.../runtime_types/bytes_rt.ts | 23 +-
.../runtime_types/capture_body_rt.test.ts | 4 +-
.../runtime_types/capture_body_rt.ts | 2 +-
.../runtime_types/duration_rt.test.ts | 22 +-
.../runtime_types/duration_rt.ts | 25 +-
.../runtime_types/float_rt.ts | 2 +-
.../runtime_types/get_range_type_message.ts | 4 +-
.../runtime_types/integer_rt.test.ts | 12 +-
.../runtime_types/integer_rt.ts | 19 +-
.../setting_definitions/general_settings.ts | 70 +-
.../setting_definitions/index.test.ts | 30 +-
.../setting_definitions/index.ts | 8 +-
.../setting_definitions/java_settings.ts | 54 +-
x-pack/plugins/apm/common/agent_name.ts | 2 +-
x-pack/plugins/apm/common/alert_types.ts | 32 +-
x-pack/plugins/apm/common/annotations.ts | 2 +-
.../custom_link/custom_link_filter_options.ts | 4 +-
.../common/custom_link/custom_link_types.d.ts | 2 +-
.../common/elasticsearch_fieldnames.test.ts | 70 +-
x-pack/plugins/apm/common/i18n.ts | 4 +-
.../apm/common/ml_job_constants.test.ts | 2 +-
x-pack/plugins/apm/common/ml_job_constants.ts | 7 +-
x-pack/plugins/apm/common/processor_event.ts | 2 +-
.../plugins/apm/common/projections/errors.ts | 22 +-
.../plugins/apm/common/projections/metrics.ts | 16 +-
.../apm/common/projections/service_nodes.ts | 16 +-
.../apm/common/projections/services.ts | 24 +-
.../common/projections/transaction_groups.ts | 20 +-
.../apm/common/projections/transactions.ts | 16 +-
.../plugins/apm/common/projections/typings.ts | 4 +-
.../util/merge_projection/index.test.ts | 34 +-
.../util/merge_projection/index.ts | 2 +-
.../runtime_types/date_as_string_rt/index.ts | 2 +-
.../apm/common/runtime_types/json_rt/index.ts | 4 +-
x-pack/plugins/apm/common/service_map.test.ts | 20 +-
x-pack/plugins/apm/common/service_map.ts | 4 +-
x-pack/plugins/apm/common/viz_colors.ts | 2 +-
.../plugins/apm/e2e/cypress/plugins/index.js | 6 +-
.../cypress/support/step_definitions/apm.ts | 19 +-
.../plugins/apm/e2e/cypress/webpack.config.js | 26 +-
x-pack/plugins/apm/e2e/ingest-data/replay.js | 16 +-
.../plugins/apm/public/application/index.tsx | 6 +-
.../app/APMIndicesPermission/index.test.tsx | 32 +-
.../app/APMIndicesPermission/index.tsx | 24 +-
.../DetailView/ErrorTabs.tsx | 14 +-
.../DetailView/ExceptionStacktrace.tsx | 2 +-
.../DetailView/index.test.tsx | 30 +-
.../ErrorGroupDetails/DetailView/index.tsx | 18 +-
.../ErrorGroupDetails/Distribution/index.tsx | 16 +-
.../app/ErrorGroupDetails/index.tsx | 36 +-
.../app/ErrorGroupOverview/List/index.tsx | 38 +-
.../app/ErrorGroupOverview/index.tsx | 30 +-
.../apm/public/components/app/Home/index.tsx | 24 +-
.../app/Main/ProvideBreadcrumbs.test.tsx | 24 +-
.../app/Main/ProvideBreadcrumbs.tsx | 12 +-
.../app/Main/UpdateBreadcrumbs.test.tsx | 10 +-
.../components/app/Main/UpdateBreadcrumbs.tsx | 4 +-
.../app/Main/route_config/index.tsx | 68 +-
.../route_handlers/agent_configuration.tsx | 4 +-
.../app/Main/route_config/route_names.tsx | 2 +-
.../AlertIntegrations/index.tsx | 38 +-
.../app/ServiceDetails/ServiceDetailTabs.tsx | 24 +-
.../TransactionSelect.tsx | 10 +-
.../MachineLearningFlyout/index.tsx | 22 +-
.../MachineLearningFlyout/view.tsx | 34 +-
.../ServiceIntegrations/WatcherFlyout.tsx | 116 +-
.../__test__/createErrorGroupWatch.test.ts | 16 +-
.../__test__/esResponse.ts | 82 +-
.../createErrorGroupWatch.ts | 84 +-
.../ServiceIntegrations/index.tsx | 32 +-
.../components/app/ServiceMap/BetaBadge.tsx | 4 +-
.../components/app/ServiceMap/Controls.tsx | 16 +-
.../app/ServiceMap/Cytoscape.stories.tsx | 150 +-
.../components/app/ServiceMap/Cytoscape.tsx | 36 +-
.../app/ServiceMap/EmptyBanner.test.tsx | 4 +-
.../components/app/ServiceMap/EmptyBanner.tsx | 8 +-
.../app/ServiceMap/LoadingOverlay.tsx | 2 +-
.../app/ServiceMap/Popover/Buttons.tsx | 6 +-
.../app/ServiceMap/Popover/Contents.tsx | 12 +-
.../app/ServiceMap/Popover/Info.tsx | 12 +-
.../Popover/ServiceMetricFetcher.tsx | 10 +-
.../ServiceMap/Popover/ServiceMetricList.tsx | 24 +-
.../app/ServiceMap/Popover/index.tsx | 12 +-
.../app/ServiceMap/cytoscapeOptions.ts | 36 +-
.../public/components/app/ServiceMap/icons.ts | 18 +-
.../components/app/ServiceMap/index.test.tsx | 6 +-
.../components/app/ServiceMap/index.tsx | 8 +-
.../components/app/ServiceMetrics/index.tsx | 8 +-
.../app/ServiceNodeMetrics/index.tsx | 24 +-
.../app/ServiceNodeOverview/index.tsx | 48 +-
.../app/ServiceOverview/NoServicesMessage.tsx | 10 +-
.../ServiceList/__test__/List.test.js | 6 +-
.../app/ServiceOverview/ServiceList/index.tsx | 32 +-
.../__test__/NoServicesMessage.test.tsx | 4 +-
.../__test__/ServiceOverview.test.tsx | 34 +-
.../components/app/ServiceOverview/index.tsx | 22 +-
.../ServicePage/FormRowSelect.tsx | 4 +-
.../ServicePage/ServicePage.tsx | 42 +-
.../SettingsPage/SettingFormRow.tsx | 28 +-
.../SettingsPage/SettingsPage.tsx | 30 +-
.../SettingsPage/saveConfig.ts | 24 +-
.../index.stories.tsx | 16 +-
.../AgentConfigurationCreateEdit/index.tsx | 22 +-
.../List/ConfirmDeleteModal.tsx | 24 +-
.../AgentConfigurations/List/index.tsx | 24 +-
.../Settings/AgentConfigurations/index.tsx | 6 +-
.../app/Settings/ApmIndices/index.test.tsx | 2 +-
.../app/Settings/ApmIndices/index.tsx | 50 +-
.../CustomLink/CreateCustomLinkButton.tsx | 2 +-
.../CustomLinkFlyout/DeleteButton.tsx | 10 +-
.../CustomLinkFlyout/FiltersSection.tsx | 22 +-
.../CustomLinkFlyout/FlyoutFooter.tsx | 8 +-
.../CustomLinkFlyout/LinkPreview.test.tsx | 4 +-
.../CustomLinkFlyout/LinkPreview.tsx | 6 +-
.../CustomLinkFlyout/LinkSection.tsx | 32 +-
.../CustomLinkFlyout/helper.test.ts | 26 +-
.../CustomLink/CustomLinkFlyout/helper.ts | 22 +-
.../CustomLink/CustomLinkFlyout/index.tsx | 12 +-
.../CustomLinkFlyout/saveCustomLink.ts | 22 +-
.../CustomLink/CustomLinkTable.tsx | 24 +-
.../CustomizeUI/CustomLink/EmptyPrompt.tsx | 6 +-
.../Settings/CustomizeUI/CustomLink/Title.tsx | 4 +-
.../CustomizeUI/CustomLink/index.test.tsx | 56 +-
.../Settings/CustomizeUI/CustomLink/index.tsx | 4 +-
.../app/Settings/CustomizeUI/index.tsx | 2 +-
.../public/components/app/Settings/index.tsx | 26 +-
.../app/TraceLink/__test__/TraceLink.test.tsx | 24 +-
.../public/components/app/TraceLink/index.tsx | 22 +-
.../app/TraceOverview/TraceList.tsx | 30 +-
.../components/app/TraceOverview/index.tsx | 10 +-
.../__test__/distribution.test.ts | 28 +-
.../TransactionDetails/Distribution/index.tsx | 38 +-
.../WaterfallWithSummmary/ErrorCount.tsx | 2 +-
.../MaybeViewTraceLink.tsx | 8 +-
.../WaterfallWithSummmary/PercentOfParent.tsx | 8 +-
.../WaterfallWithSummmary/TransactionTabs.tsx | 14 +-
.../Marks/__test__/get_agent_marks.test.ts | 20 +-
.../Marks/__test__/get_error_marks.test.ts | 24 +-
.../Marks/get_agent_marks.ts | 2 +-
.../Marks/get_error_marks.ts | 6 +-
.../WaterfallContainer/ServiceLegends.tsx | 2 +-
.../Waterfall/FlyoutTopLevelProperties.tsx | 12 +-
.../Waterfall/SpanFlyout/DatabaseContext.tsx | 8 +-
.../Waterfall/SpanFlyout/HttpContext.tsx | 2 +-
.../SpanFlyout/StickySpanProperties.tsx | 18 +-
.../SpanFlyout/TruncateHeightSection.tsx | 10 +-
.../Waterfall/SpanFlyout/index.tsx | 24 +-
.../Waterfall/SyncBadge.stories.tsx | 12 +-
.../Waterfall/SyncBadge.tsx | 4 +-
.../TransactionFlyout/DroppedSpansWarning.tsx | 6 +-
.../Waterfall/TransactionFlyout/index.tsx | 8 +-
.../Waterfall/WaterfallFlyout.tsx | 6 +-
.../Waterfall/WaterfallItem.tsx | 16 +-
.../WaterfallContainer/Waterfall/index.tsx | 16 +-
.../waterfall_helpers.test.ts | 212 +--
.../waterfall_helpers/waterfall_helpers.ts | 42 +-
.../WaterfallContainer.stories.tsx | 2 +-
.../WaterfallContainer/index.tsx | 2 +-
.../waterfallContainer.stories.data.ts | 1172 +++++++-------
.../__tests__/ErrorCount.test.tsx | 2 +-
.../WaterfallWithSummmary/index.tsx | 12 +-
.../app/TransactionDetails/index.tsx | 12 +-
.../app/TransactionOverview/List/index.tsx | 32 +-
.../__jest__/TransactionOverview.test.tsx | 28 +-
.../app/TransactionOverview/index.tsx | 18 +-
.../DatePicker/__test__/DatePicker.test.tsx | 23 +-
.../components/shared/DatePicker/index.tsx | 40 +-
.../public/components/shared/EmptyMessage.tsx | 6 +-
.../shared/EnvironmentBadge/index.tsx | 6 +-
.../shared/EnvironmentFilter/index.tsx | 26 +-
.../ErrorRateAlertTrigger/index.stories.tsx | 4 +-
.../shared/ErrorRateAlertTrigger/index.tsx | 22 +-
.../components/shared/ErrorStatePrompt.tsx | 4 +-
.../public/components/shared/EuiTabLink.tsx | 2 +-
.../shared/HeightRetainer/index.tsx | 2 +-
.../shared/KeyValueTable/FormattedValue.tsx | 2 +-
.../__test__/KeyValueTable.test.tsx | 10 +-
.../components/shared/KeyValueTable/index.tsx | 4 +-
.../shared/KueryBar/Typeahead/ClickOutside.js | 6 +-
.../shared/KueryBar/Typeahead/Suggestion.js | 12 +-
.../shared/KueryBar/Typeahead/Suggestions.js | 6 +-
.../shared/KueryBar/Typeahead/index.js | 36 +-
.../shared/KueryBar/get_bool_filter.ts | 30 +-
.../components/shared/KueryBar/index.tsx | 18 +-
.../LicensePrompt/LicensePrompt.stories.tsx | 8 +-
.../components/shared/LicensePrompt/index.tsx | 8 +-
.../Links/DiscoverLinks/DiscoverErrorLink.tsx | 8 +-
.../Links/DiscoverLinks/DiscoverLink.tsx | 10 +-
.../Links/DiscoverLinks/DiscoverSpanLink.tsx | 6 +-
.../DiscoverLinks/DiscoverTransactionLink.tsx | 8 +-
.../__test__/DiscoverErrorButton.test.tsx | 4 +-
.../__test__/DiscoverErrorLink.test.tsx | 4 +-
.../DiscoverLinks.integration.test.tsx | 30 +-
.../DiscoverTransactionButton.test.tsx | 2 +-
.../__test__/DiscoverTransactionLink.test.tsx | 6 +-
.../shared/Links/InfraLink.test.tsx | 2 +-
.../components/shared/Links/InfraLink.tsx | 4 +-
.../shared/Links/KibanaLink.test.tsx | 2 +-
.../components/shared/Links/KibanaLink.tsx | 2 +-
.../Links/MachineLearningLinks/MLJobLink.tsx | 4 +-
.../MachineLearningLinks/MLLink.test.tsx | 2 +-
.../Links/MachineLearningLinks/MLLink.tsx | 2 +-
.../shared/Links/SetupInstructionsLink.tsx | 4 +-
.../shared/Links/apm/APMLink.test.tsx | 6 +-
.../components/shared/Links/apm/APMLink.tsx | 6 +-
.../shared/Links/apm/ErrorOverviewLink.tsx | 2 +-
.../shared/Links/apm/ExternalLinks.test.ts | 6 +-
.../shared/Links/apm/ExternalLinks.ts | 4 +-
.../Links/apm/TransactionDetailLink.tsx | 2 +-
.../Links/apm/agentConfigurationLinks.tsx | 2 +-
.../components/shared/Links/rison_helpers.ts | 8 +-
.../shared/Links/url_helpers.test.tsx | 16 +-
.../components/shared/Links/url_helpers.ts | 2 +-
.../LocalUIFilters/Filter/FilterBadgeList.tsx | 2 +-
.../Filter/FilterTitleButton.tsx | 4 +-
.../shared/LocalUIFilters/Filter/index.tsx | 26 +-
.../TransactionTypeFilter/index.tsx | 16 +-
.../shared/LocalUIFilters/index.tsx | 16 +-
.../__test__/ManagedTable.test.js | 6 +-
.../components/shared/ManagedTable/index.tsx | 16 +-
.../__test__/ErrorMetadata.test.tsx | 20 +-
.../MetadataTable/ErrorMetadata/sections.ts | 4 +-
.../__test__/SpanMetadata.test.tsx | 36 +-
.../MetadataTable/SpanMetadata/sections.ts | 4 +-
.../__test__/TransactionMetadata.test.tsx | 24 +-
.../TransactionMetadata/sections.ts | 4 +-
.../__test__/MetadataTable.test.tsx | 14 +-
.../MetadataTable/__test__/helper.test.ts | 28 +-
.../components/shared/MetadataTable/helper.ts | 4 +-
.../components/shared/MetadataTable/index.tsx | 14 +-
.../shared/MetadataTable/sections.ts | 76 +-
.../shared/SelectWithPlaceholder/index.tsx | 12 +-
.../shared/ServiceAlertTrigger/index.tsx | 8 +-
.../Stacktrace/CauseStacktrace.test.tsx | 4 +-
.../shared/Stacktrace/CauseStacktrace.tsx | 4 +-
.../components/shared/Stacktrace/Context.tsx | 6 +-
.../Stacktrace/LibraryStacktrace.test.tsx | 2 +-
.../shared/Stacktrace/LibraryStacktrace.tsx | 2 +-
.../shared/Stacktrace/Stackframe.tsx | 8 +-
.../shared/Stacktrace/__test__/index.test.ts | 70 +-
.../components/shared/Stacktrace/index.tsx | 4 +-
.../StickyProperties/StickyProperties.test.js | 22 +-
.../shared/StickyProperties/index.tsx | 12 +-
.../shared/Summary/DurationSummaryItem.tsx | 4 +-
.../Summary/ErrorCountSummaryItemBadge.tsx | 2 +-
.../Summary/HttpInfoSummaryItem/index.tsx | 2 +-
.../__test__/HttpStatusBadge.test.tsx | 2 +-
.../shared/Summary/HttpStatusBadge/index.tsx | 2 +-
.../Summary/HttpStatusBadge/statusCodes.ts | 2 +-
.../Summary/TransactionResultSummaryItem.tsx | 2 +-
.../Summary/TransactionSummary.test.tsx | 4 +-
.../shared/Summary/TransactionSummary.tsx | 4 +-
.../shared/Summary/UserAgentSummaryItem.tsx | 4 +-
.../Summary/__fixtures__/transactions.ts | 14 +-
.../CustomLink/CustomLinkPopover.test.tsx | 6 +-
.../CustomLink/CustomLinkPopover.tsx | 6 +-
.../CustomLink/CustomLinkSection.test.tsx | 8 +-
.../CustomLink/CustomLinkSection.tsx | 4 +-
.../CustomLink/ManageCustomLink.test.tsx | 2 +-
.../CustomLink/ManageCustomLink.tsx | 8 +-
.../CustomLink/index.test.tsx | 10 +-
.../CustomLink/index.tsx | 18 +-
.../TransactionActionMenu.tsx | 34 +-
.../__test__/TransactionActionMenu.test.tsx | 32 +-
.../__test__/mockData.ts | 56 +-
.../__test__/sections.test.ts | 84 +-
.../shared/TransactionActionMenu/sections.ts | 105 +-
.../TransactionBreakdownGraph/index.tsx | 2 +-
.../TransactionBreakdownHeader.tsx | 8 +-
.../TransactionBreakdownKpiList.tsx | 4 +-
.../shared/TransactionBreakdown/index.tsx | 2 +-
.../index.stories.tsx | 12 +-
.../TransactionDurationAlertTrigger/index.tsx | 38 +-
.../charts/CustomPlot/AnnotationsPlot.tsx | 12 +-
.../charts/CustomPlot/InteractivePlot.js | 24 +-
.../shared/charts/CustomPlot/Legends.js | 8 +-
.../charts/CustomPlot/SelectionMarker.js | 2 +-
.../shared/charts/CustomPlot/StaticPlot.js | 32 +-
.../shared/charts/CustomPlot/StatusText.js | 6 +-
.../shared/charts/CustomPlot/VoronoiPlot.js | 14 +-
.../charts/CustomPlot/getEmptySeries.ts | 8 +-
.../shared/charts/CustomPlot/index.js | 60 +-
.../charts/CustomPlot/plotUtils.test.ts | 8 +-
.../shared/charts/CustomPlot/plotUtils.tsx | 29 +-
.../charts/CustomPlot/test/CustomPlot.test.js | 74 +-
.../shared/charts/Histogram/SingleRect.js | 2 +-
.../Histogram/__test__/Histogram.test.js | 43 +-
.../shared/charts/Histogram/index.js | 55 +-
.../components/shared/charts/Legend/index.tsx | 18 +-
.../shared/charts/MetricsChart/index.tsx | 6 +-
.../Timeline/Marker/AgentMarker.test.tsx | 2 +-
.../Timeline/Marker/ErrorMarker.test.tsx | 10 +-
.../charts/Timeline/Marker/ErrorMarker.tsx | 6 +-
.../charts/Timeline/Marker/index.test.tsx | 6 +-
.../shared/charts/Timeline/Timeline.test.tsx | 16 +-
.../shared/charts/Timeline/TimelineAxis.tsx | 12 +-
.../shared/charts/Timeline/VerticalLines.tsx | 6 +-
.../shared/charts/Timeline/index.tsx | 2 +-
.../shared/charts/Timeline/plotUtils.ts | 4 +-
.../components/shared/charts/Tooltip/index.js | 4 +-
.../TransactionCharts/BrowserLineChart.tsx | 4 +-
.../ChoroplethMap/ChoroplethToolTip.tsx | 4 +-
.../TransactionCharts/ChoroplethMap/index.tsx | 26 +-
.../DurationByCountryMap/index.tsx | 2 +-
.../TransactionLineChart/index.tsx | 4 +-
.../shared/charts/TransactionCharts/index.tsx | 22 +-
.../charts/helper/__test__/timezone.test.ts | 8 +-
.../shared/charts/helper/timezone.ts | 4 +-
.../Delayed/index.test.tsx | 8 +-
.../useDelayedVisibility/Delayed/index.ts | 2 +-
.../useDelayedVisibility/index.test.tsx | 18 +-
.../shared/useDelayedVisibility/index.ts | 4 +-
.../ApmPluginContext/MockApmPluginContext.tsx | 24 +-
.../apm/public/context/ChartsSyncContext.tsx | 18 +-
.../InvalidLicenseNotification.tsx | 8 +-
.../context/LoadingIndicatorContext.tsx | 8 +-
.../public/context/MatchedRouteContext.tsx | 6 +-
.../MockUrlParamsContextProvider.tsx | 6 +-
.../__tests__/UrlParamsContext.test.tsx | 22 +-
.../context/UrlParamsContext/constants.ts | 2 +-
.../context/UrlParamsContext/helpers.ts | 16 +-
.../public/context/UrlParamsContext/index.tsx | 14 +-
.../UrlParamsContext/resolveUrlParams.ts | 8 +-
.../apm/public/featureCatalogueEntry.ts | 4 +-
.../plugins/apm/public/hooks/useAgentName.ts | 10 +-
.../hooks/useAvgDurationByBrowser.test.ts | 8 +-
.../public/hooks/useAvgDurationByBrowser.ts | 14 +-
.../public/hooks/useAvgDurationByCountry.ts | 12 +-
.../public/hooks/useDynamicIndexPattern.ts | 10 +-
.../apm/public/hooks/useEnvironments.tsx | 20 +-
.../hooks/useFetcher.integration.test.tsx | 12 +-
.../apm/public/hooks/useFetcher.test.tsx | 32 +-
.../plugins/apm/public/hooks/useFetcher.tsx | 26 +-
.../plugins/apm/public/hooks/useKibanaUrl.ts | 2 +-
.../apm/public/hooks/useLoadingIndicator.ts | 2 +-
.../apm/public/hooks/useLocalUIFilters.ts | 26 +-
.../public/hooks/useServiceMetricCharts.ts | 12 +-
.../hooks/useServiceTransactionTypes.tsx | 6 +-
.../public/hooks/useTransactionBreakdown.ts | 12 +-
.../apm/public/hooks/useTransactionCharts.ts | 12 +-
.../hooks/useTransactionDistribution.ts | 14 +-
.../apm/public/hooks/useTransactionList.ts | 16 +-
.../plugins/apm/public/hooks/useWaterfall.ts | 12 +-
x-pack/plugins/apm/public/index.ts | 2 +-
x-pack/plugins/apm/public/plugin.ts | 24 +-
.../__tests__/chartSelectors.test.ts | 74 +-
.../__tests__/mockData/anomalyData.ts | 66 +-
.../apm/public/selectors/chartSelectors.ts | 46 +-
.../public/services/__test__/callApi.test.ts | 48 +-
.../services/__test__/callApmApi.test.ts | 28 +-
.../apm/public/services/rest/callApi.ts | 4 +-
.../public/services/rest/createCallApmApi.ts | 2 +-
.../apm/public/services/rest/index_pattern.ts | 4 +-
x-pack/plugins/apm/public/services/rest/ml.ts | 24 +-
.../apm/public/services/rest/watcher.ts | 4 +-
x-pack/plugins/apm/public/setHelpExtension.ts | 14 +-
x-pack/plugins/apm/public/style/variables.ts | 4 +-
x-pack/plugins/apm/public/updateBadge.ts | 6 +-
.../utils/__test__/flattenObject.test.ts | 8 +-
.../formatters/__test__/datetime.test.ts | 2 +-
.../formatters/__test__/duration.test.ts | 16 +-
.../apm/public/utils/formatters/datetime.ts | 6 +-
.../apm/public/utils/formatters/duration.ts | 26 +-
.../apm/public/utils/formatters/formatters.ts | 4 +-
.../public/utils/getRangeFromTimeSeries.ts | 4 +-
.../apm/public/utils/httpStatusCodeToColor.ts | 2 +-
.../plugins/apm/public/utils/testHelpers.tsx | 30 +-
.../setup-custom-kibana-user-role.ts | 32 +-
.../plugins/apm/scripts/optimize-tsconfig.js | 2 +-
.../apm/scripts/optimize-tsconfig/optimize.js | 10 +-
.../apm/scripts/optimize-tsconfig/paths.js | 4 +-
.../scripts/optimize-tsconfig/unoptimize.js | 2 +-
.../apm/scripts/setup-kibana-security.js | 4 +-
x-pack/plugins/apm/scripts/storybook.js | 4 +-
.../apm/scripts/unoptimize-tsconfig.js | 2 +-
.../apm/scripts/upload-telemetry-data.js | 6 +-
.../download-telemetry-template.ts | 4 +-
.../generate-sample-documents.ts | 30 +-
.../scripts/upload-telemetry-data/index.ts | 42 +-
x-pack/plugins/apm/server/feature.ts | 22 +-
x-pack/plugins/apm/server/index.ts | 13 +-
.../server/lib/alerts/register_apm_alerts.ts | 4 +-
.../alerts/register_error_rate_alert_type.ts | 48 +-
...egister_transaction_duration_alert_type.ts | 68 +-
.../collect_data_telemetry/index.ts | 16 +-
.../collect_data_telemetry/tasks.ts | 416 ++---
.../apm/server/lib/apm_telemetry/index.ts | 24 +-
.../__tests__/get_buckets.test.ts | 24 +-
.../lib/errors/distribution/get_buckets.ts | 30 +-
.../errors/distribution/get_distribution.ts | 8 +-
.../lib/errors/distribution/queries.test.ts | 10 +-
.../apm/server/lib/errors/get_error_group.ts | 20 +-
.../apm/server/lib/errors/get_error_groups.ts | 36 +-
.../apm/server/lib/errors/queries.test.ts | 14 +-
.../get_environment_ui_filter_es.ts | 4 +-
.../convert_ui_filters/get_ui_filters_es.ts | 16 +-
.../apm/server/lib/helpers/es_client.test.ts | 4 +-
.../apm/server/lib/helpers/es_client.ts | 28 +-
.../helpers/get_bucket_size/calculate_auto.js | 4 +-
.../lib/helpers/get_bucket_size/index.ts | 2 +-
.../get_bucket_size/unit_to_seconds.js | 2 +-
.../server/lib/helpers/input_validation.ts | 2 +-
.../plugins/apm/server/lib/helpers/metrics.ts | 2 +-
.../apm/server/lib/helpers/range_filter.ts | 4 +-
.../round_to_nearest_five_or_ten.test.ts | 20 +-
.../server/lib/helpers/setup_request.test.ts | 80 +-
.../apm/server/lib/helpers/setup_request.ts | 12 +-
.../create_static_index_pattern.test.ts | 16 +-
.../create_static_index_pattern.ts | 2 +-
.../get_dynamic_index_pattern.ts | 14 +-
.../server/lib/metrics/by_agent/default.ts | 4 +-
.../java/gc/fetch_and_transform_gc_metrics.ts | 56 +-
.../by_agent/java/gc/get_gc_rate_chart.ts | 14 +-
.../by_agent/java/gc/get_gc_time_chart.ts | 14 +-
.../by_agent/java/heap_memory/index.ts | 28 +-
.../server/lib/metrics/by_agent/java/index.ts | 4 +-
.../by_agent/java/non_heap_memory/index.ts | 26 +-
.../by_agent/java/thread_count/index.ts | 22 +-
.../lib/metrics/by_agent/shared/cpu/index.ts | 30 +-
.../metrics/by_agent/shared/memory/index.ts | 34 +-
.../metrics/fetch_and_transform_metrics.ts | 18 +-
.../get_metrics_chart_data_by_agent.ts | 4 +-
.../apm/server/lib/metrics/queries.test.ts | 12 +-
.../metrics/transform_metrics_chart.test.ts | 18 +-
.../lib/metrics/transform_metrics_chart.ts | 10 +-
.../security/get_indices_privileges.test.ts | 64 +-
.../lib/security/get_indices_privileges.ts | 10 +-
.../server/lib/service_map/get_service_map.ts | 64 +-
.../get_service_map_from_trace_ids.ts | 50 +-
.../get_service_map_service_node_info.ts | 114 +-
.../lib/service_map/get_trace_sample_ids.ts | 68 +-
.../server/lib/service_map/ml_helpers.test.ts | 44 +-
.../apm/server/lib/service_map/ml_helpers.ts | 10 +-
.../transform_service_map_responses.test.ts | 68 +-
.../transform_service_map_responses.ts | 62 +-
.../apm/server/lib/service_nodes/index.ts | 38 +-
.../server/lib/service_nodes/queries.test.ts | 12 +-
.../get_derived_service_annotations.ts | 44 +-
.../annotations/get_stored_annotations.ts | 22 +-
.../lib/services/annotations/index.test.ts | 28 +-
.../server/lib/services/annotations/index.ts | 10 +-
.../lib/services/get_service_agent_name.ts | 20 +-
.../lib/services/get_service_node_metadata.ts | 24 +-
.../services/get_service_transaction_types.ts | 18 +-
.../get_services/get_legacy_data_status.ts | 12 +-
.../get_services/get_services_items.ts | 34 +-
.../get_services/has_historical_agent_data.ts | 18 +-
.../server/lib/services/get_services/index.ts | 6 +-
.../apm/server/lib/services/queries.test.ts | 12 +-
.../create_agent_config_index.ts | 36 +-
.../create_or_update_configuration.ts | 10 +-
.../delete_configuration.ts | 4 +-
.../find_exact_configuration.ts | 10 +-
.../get_agent_name_by_service.ts | 22 +-
.../get_environments/get_all_environments.ts | 26 +-
.../get_existing_environments_for_service.ts | 16 +-
.../get_environments/index.ts | 8 +-
.../agent_configuration/get_service_names.ts | 24 +-
.../list_configurations.ts | 4 +-
.../mark_applied_by_agent.ts | 6 +-
.../agent_configuration/queries.test.ts | 42 +-
.../search_configurations.ts | 28 +-
.../settings/apm_indices/get_apm_indices.ts | 14 +-
.../apm_indices/save_apm_indices.test.ts | 4 +-
.../settings/apm_indices/save_apm_indices.ts | 4 +-
.../custom_link/create_custom_link_index.ts | 36 +-
.../create_or_update_custom_link.test.ts | 20 +-
.../create_or_update_custom_link.ts | 8 +-
.../settings/custom_link/custom_link_types.ts | 12 +-
.../custom_link/delete_custom_link.ts | 4 +-
.../custom_link/get_transaction.test.ts | 14 +-
.../settings/custom_link/get_transaction.ts | 14 +-
.../lib/settings/custom_link/helper.test.ts | 34 +-
.../server/lib/settings/custom_link/helper.ts | 10 +-
.../custom_link/list_custom_links.test.ts | 14 +-
.../settings/custom_link/list_custom_links.ts | 28 +-
.../apm/server/lib/traces/get_trace.ts | 2 +-
.../apm/server/lib/traces/get_trace_items.ts | 42 +-
.../apm/server/lib/traces/queries.test.ts | 4 +-
.../lib/transaction_groups/fetcher.test.ts | 12 +-
.../server/lib/transaction_groups/fetcher.ts | 30 +-
.../server/lib/transaction_groups/index.ts | 4 +-
.../transaction_groups_response.ts | 1012 ++++++-------
.../lib/transaction_groups/queries.test.ts | 10 +-
.../lib/transaction_groups/transform.test.ts | 28 +-
.../lib/transaction_groups/transform.ts | 12 +-
.../__fixtures__/responses.ts | 34 +-
.../avg_duration_by_browser/fetcher.test.ts | 4 +-
.../avg_duration_by_browser/fetcher.ts | 32 +-
.../avg_duration_by_browser/index.test.ts | 4 +-
.../avg_duration_by_browser/index.ts | 2 +-
.../transformer.test.ts | 10 +-
.../avg_duration_by_browser/transformer.ts | 8 +-
.../avg_duration_by_country/index.ts | 28 +-
.../lib/transactions/breakdown/index.test.ts | 28 +-
.../lib/transactions/breakdown/index.ts | 80 +-
.../charts/get_anomaly_data/fetcher.test.ts | 8 +-
.../charts/get_anomaly_data/fetcher.ts | 28 +-
.../get_anomaly_data/get_ml_bucket_size.ts | 18 +-
.../charts/get_anomaly_data/index.test.ts | 14 +-
.../charts/get_anomaly_data/index.ts | 8 +-
.../mock_responses/ml_anomaly_response.ts | 68 +-
.../mock_responses/ml_bucket_span_response.ts | 12 +-
.../charts/get_anomaly_data/transform.test.ts | 86 +-
.../charts/get_anomaly_data/transform.ts | 22 +-
.../get_timeseries_data/fetcher.test.ts | 18 +-
.../charts/get_timeseries_data/fetcher.ts | 32 +-
.../charts/get_timeseries_data/index.ts | 4 +-
.../mock_responses/timeseries_response.ts | 1340 ++++++++---------
.../get_timeseries_data/transform.test.ts | 48 +-
.../charts/get_timeseries_data/transform.ts | 14 +-
.../server/lib/transactions/charts/index.ts | 8 +-
.../distribution/get_buckets/fetcher.ts | 36 +-
.../distribution/get_buckets/index.ts | 2 +-
.../distribution/get_buckets/transform.ts | 6 +-
.../distribution/get_distribution_max.ts | 26 +-
.../lib/transactions/distribution/index.ts | 6 +-
.../lib/transactions/get_transaction/index.ts | 16 +-
.../get_transaction_by_trace/index.ts | 24 +-
.../server/lib/transactions/queries.test.ts | 28 +-
.../server/lib/ui_filters/get_environments.ts | 24 +-
.../lib/ui_filters/local_ui_filters/config.ts | 32 +-
.../get_local_filter_query.ts | 26 +-
.../lib/ui_filters/local_ui_filters/index.ts | 12 +-
.../local_ui_filters/queries.test.ts | 8 +-
.../apm/server/lib/ui_filters/queries.test.ts | 6 +-
x-pack/plugins/apm/server/plugin.ts | 24 +-
.../server/routes/create_api/index.test.ts | 108 +-
.../apm/server/routes/create_api/index.ts | 28 +-
.../apm/server/routes/create_apm_api.ts | 16 +-
.../apm/server/routes/default_api_types.ts | 2 +-
x-pack/plugins/apm/server/routes/errors.ts | 30 +-
.../apm/server/routes/index_pattern.ts | 14 +-
x-pack/plugins/apm/server/routes/metrics.ts | 14 +-
x-pack/plugins/apm/server/routes/security.ts | 4 +-
.../plugins/apm/server/routes/service_map.ts | 26 +-
.../apm/server/routes/service_nodes.ts | 10 +-
x-pack/plugins/apm/server/routes/services.ts | 62 +-
.../routes/settings/agent_configuration.ts | 54 +-
.../apm/server/routes/settings/apm_indices.ts | 18 +-
.../apm/server/routes/settings/custom_link.ts | 40 +-
x-pack/plugins/apm/server/routes/traces.ts | 10 +-
.../plugins/apm/server/routes/transaction.ts | 6 +-
.../apm/server/routes/transaction_groups.ts | 76 +-
x-pack/plugins/apm/server/routes/typings.ts | 2 +-
.../plugins/apm/server/routes/ui_filters.ts | 78 +-
.../apm/server/saved_objects/apm_indices.ts | 18 +-
.../apm/server/saved_objects/apm_telemetry.ts | 692 ++++-----
.../apm/server/tutorial/elastic_cloud.ts | 42 +-
.../components/autocomplete_field/index.tsx | 12 +-
.../autocomplete_field/suggestion_item.tsx | 22 +-
.../public/components/config_list.tsx | 4 +-
.../public/components/enroll_beats.tsx | 2 +-
.../public/components/layouts/walkthrough.tsx | 2 +-
.../navigation/breadcrumb/breadcrumb.tsx | 2 +-
.../navigation/breadcrumb/provider.tsx | 2 +-
.../components/navigation/child_routes.tsx | 4 +-
.../table/controls/tag_badge_list.tsx | 2 +-
.../public/components/table/table.tsx | 2 +-
.../components/table/table_type_configs.tsx | 2 +-
.../tag/config_view/config_form.tsx | 2 +-
.../components/tag/config_view/index.tsx | 8 +-
.../public/containers/beats.ts | 4 +-
.../public/containers/tags.ts | 2 +-
.../containers/with_kuery_autocompletion.tsx | 2 +-
.../adapters/beats/memory_beats_adapter.ts | 26 +-
.../memory_config_blocks_adapter.ts | 6 +-
.../lib/adapters/framework/adapter_types.ts | 2 +-
.../framework/kibana_framework_adapter.ts | 2 +-
.../rest_api/axios_rest_api_adapter.ts | 16 +-
.../rest_api/node_axios_api_adapter.ts | 16 +-
.../lib/adapters/tags/memory_tags_adapter.ts | 6 +-
.../lib/adapters/tags/rest_tags_adapter.ts | 2 +-
.../adapters/tokens/rest_tokens_adapter.ts | 2 +-
.../public/lib/configuration_blocks.ts | 12 +-
.../public/lib/elasticsearch.ts | 2 +-
.../public/pages/beat/details.tsx | 8 +-
.../pages/overview/configuration_tags.tsx | 2 +-
.../public/pages/overview/enrolled_beats.tsx | 10 +-
.../public/pages/tag/create.tsx | 12 +-
.../public/pages/tag/edit.tsx | 10 +-
.../pages/walkthrough/initial/index.tsx | 2 +-
.../public/pages/walkthrough/initial/tag.tsx | 10 +-
.../beats_management/public/router.tsx | 8 +-
.../public/utils/random_eui_color.ts | 4 +-
.../__tests__/fixtures/function_specs.ts | 2 +-
.../canvas/__tests__/fixtures/kibana.js | 6 +-
.../__tests__/helpers/function_wrapper.js | 2 +-
.../canvas_plugin_src/elements/index.ts | 2 +-
.../functions/browser/location.ts | 2 +-
.../functions/browser/markdown.test.js | 2 +-
.../functions/browser/markdown.ts | 4 +-
.../functions/common/__tests__/progress.js | 4 +-
.../functions/common/alterColumn.ts | 4 +-
.../functions/common/columns.ts | 12 +-
.../functions/common/context.ts | 2 +-
.../canvas_plugin_src/functions/common/do.ts | 2 +-
.../functions/common/dropdownControl.ts | 2 +-
.../functions/common/filterrows.test.js | 10 +-
.../functions/common/filterrows.ts | 6 +-
.../functions/common/join_rows.ts | 2 +-
.../functions/common/mapColumn.test.js | 10 +-
.../functions/common/mapColumn.ts | 6 +-
.../functions/common/math.ts | 2 +-
.../functions/common/pie.test.js | 2 +-
.../canvas_plugin_src/functions/common/pie.ts | 2 +-
.../functions/common/plot.test.js | 2 +-
.../functions/common/plot/get_tick_hash.ts | 4 +-
.../functions/common/plot/index.ts | 2 +-
.../functions/common/ply.test.js | 18 +-
.../canvas_plugin_src/functions/common/ply.ts | 22 +-
.../functions/common/rowCount.ts | 2 +-
.../functions/common/staticColumn.test.js | 10 +-
.../functions/common/staticColumn.ts | 2 +-
.../functions/common/switch.test.js | 6 +-
.../functions/common/timefilter.test.js | 4 +-
.../functions/server/esdocs.ts | 6 +-
.../functions/server/pointseries/index.ts | 16 +-
.../component/advanced_filter.tsx | 4 +-
.../component/dropdown_filter.tsx | 4 +-
.../renderers/embeddable/embeddable.tsx | 4 +-
.../visualization.test.ts | 4 +-
.../renderers/error/index.js | 2 +-
.../component/__examples__/metric.stories.tsx | 2 +-
.../canvas_plugin_src/renderers/pie/index.js | 2 +-
.../renderers/pie/plugins/pie.js | 24 +-
.../canvas_plugin_src/renderers/plot/index.js | 2 +-
.../renderers/plot/plugins/size.js | 4 +-
.../renderers/plot/plugins/text.js | 15 +-
.../renderers/progress/index.js | 2 +-
.../renderers/repeat_image.js | 4 +-
.../renderers/reveal_image/index.js | 2 +-
.../renderers/shape/index.js | 2 +-
.../__examples__/time_filter.stories.tsx | 2 +-
.../extended_template.stories.tsx | 6 +-
.../__examples__/simple_template.stories.tsx | 6 +-
.../datacolumn/__tests__/get_form_object.js | 4 +-
.../uis/arguments/datacolumn/index.js | 17 +-
.../uis/arguments/date_format/index.ts | 2 +-
.../uis/arguments/filter_group.js | 8 +-
.../uis/arguments/image_upload/index.js | 12 +-
.../canvas_plugin_src/uis/arguments/index.ts | 2 +-
.../canvas_plugin_src/uis/arguments/number.js | 2 +-
.../uis/arguments/palette.js | 2 +-
.../uis/arguments/percentage.js | 2 +-
.../canvas_plugin_src/uis/arguments/range.js | 2 +-
.../canvas_plugin_src/uis/arguments/select.js | 2 +-
.../canvas_plugin_src/uis/arguments/string.js | 2 +-
.../uis/arguments/textarea.js | 2 +-
.../uis/datasources/esdocs.js | 14 +-
.../uis/datasources/essql.js | 2 +-
.../uis/datasources/timelion.js | 4 +-
.../canvas_plugin_src/uis/views/index.ts | 2 +-
.../canvas/canvas_plugin_src/uis/views/pie.js | 2 +-
.../canvas_plugin_src/uis/views/plot.js | 2 +-
.../canvas_plugin_src/uis/views/progress.js | 2 +-
.../canvas_plugin_src/uis/views/table.js | 2 +-
.../canvas/common/lib/autocomplete.test.ts | 32 +-
.../plugins/canvas/common/lib/autocomplete.ts | 12 +-
.../canvas/common/lib/datatable/query.js | 8 +-
x-pack/plugins/canvas/common/lib/dataurl.ts | 2 +-
.../canvas/common/lib/get_field_type.ts | 2 +-
.../plugins/canvas/common/lib/hex_to_rgb.ts | 4 +-
.../canvas/common/lib/pivot_object_array.ts | 2 +-
.../canvas/i18n/elements/apply_strings.ts | 2 +-
.../i18n/elements/element_strings.test.ts | 10 +-
.../i18n/functions/dict/alter_column.ts | 2 +-
.../canvas/i18n/functions/dict/axis_config.ts | 2 +-
.../plugins/canvas/i18n/functions/dict/pie.ts | 2 +-
.../canvas/i18n/functions/dict/plot.ts | 2 +-
.../canvas/i18n/functions/dict/progress.ts | 2 +-
.../i18n/functions/dict/reveal_image.ts | 2 +-
.../canvas/i18n/templates/apply_strings.ts | 4 +-
.../i18n/templates/template_strings.test.ts | 10 +-
x-pack/plugins/canvas/public/application.tsx | 2 +-
.../canvas/public/apps/export/export/index.js | 4 +-
.../canvas/public/apps/export/routes.js | 2 +-
.../canvas/public/apps/home/home_app/index.js | 2 +-
.../canvas/public/apps/workpad/routes.js | 2 +-
.../public/apps/workpad/workpad_app/index.js | 4 +-
.../workpad/workpad_app/workpad_telemetry.tsx | 4 +-
.../canvas/public/components/app/app.js | 2 +-
.../canvas/public/components/app/index.js | 8 +-
.../arg_add_popover/arg_add_popover.tsx | 2 +-
.../components/arg_form/advanced_failure.js | 10 +-
.../public/components/arg_form/arg_form.js | 2 +-
.../public/components/arg_form/arg_label.js | 2 +-
.../components/arg_form/arg_template_form.js | 4 +-
.../public/components/arg_form/index.js | 2 +-
.../components/arg_form/pending_arg_value.js | 2 +-
.../__examples__/asset.examples.tsx | 2 +-
.../public/components/asset_manager/asset.tsx | 2 +-
.../asset_manager/asset_manager.tsx | 2 +-
.../components/asset_manager/asset_modal.tsx | 4 +-
.../public/components/asset_manager/index.ts | 2 +-
.../components/asset_picker/asset_picker.tsx | 2 +-
.../components/autocomplete/autocomplete.js | 6 +-
.../__examples__/color_manager.stories.tsx | 2 +-
.../color_manager/color_manager.tsx | 2 +-
.../__examples__/color_palette.stories.tsx | 2 +-
.../color_palette/color_palette.tsx | 4 +-
.../__examples__/color_picker.stories.tsx | 8 +-
.../components/color_picker/color_picker.tsx | 4 +-
.../color_picker_popover.stories.tsx | 2 +-
.../confirm_modal/confirm_modal.tsx | 2 +-
.../custom_element_modal.tsx | 4 +-
.../datasource/datasource_component.js | 6 +-
.../datasource/datasource_selector.js | 2 +-
.../public/components/datasource/index.js | 12 +-
.../public/components/datatable/datatable.js | 10 +-
.../components/dom_preview/dom_preview.js | 4 +-
.../__examples__/element_card.stories.tsx | 2 +-
.../public/components/element_config/index.js | 2 +-
.../components/element_content/index.js | 2 +-
.../element_share_container.js | 2 +-
.../element_wrapper/element_wrapper.js | 2 +-
.../components/element_wrapper/index.js | 4 +-
.../element_wrapper/lib/handlers.js | 4 +-
.../components/embeddable_flyout/flyout.tsx | 8 +-
.../components/enhance/error_boundary.tsx | 4 +-
.../components/enhance/stateful_prop.js | 6 +-
.../es_field_select/es_field_select.js | 4 +-
.../components/es_field_select/index.js | 2 +-
.../es_fields_select/es_fields_select.js | 6 +-
.../components/es_fields_select/index.js | 2 +-
.../es_index_select/es_index_select.js | 6 +-
.../components/expression/expression.js | 2 +-
.../public/components/expression/index.js | 16 +-
.../components/file_upload/file_upload.tsx | 2 +-
.../components/font_picker/font_picker.tsx | 6 +-
.../public/components/fullscreen/index.js | 2 +-
.../components/function_form/function_form.js | 2 +-
.../function_form/function_form_component.js | 2 +-
.../public/components/function_form/index.js | 4 +-
.../function_form_list/function_form_list.js | 2 +-
.../components/function_form_list/index.js | 4 +-
.../__examples__/item_grid.stories.tsx | 8 +-
.../keyboard_shortcuts_doc.tsx | 4 +-
.../canvas/public/components/link/link.js | 4 +-
.../public/components/page_config/index.js | 6 +-
.../components/page_config/page_config.js | 2 +-
.../public/components/page_manager/index.js | 8 +-
.../components/page_manager/page_manager.js | 10 +-
.../components/page_preview/page_controls.js | 4 +-
.../public/components/paginate/paginate.js | 4 +-
.../palette_picker/palette_picker.js | 2 +-
.../palette_swatch/palette_swatch.js | 2 +-
.../components/positionable/positionable.js | 2 +-
.../components/render_to_dom/render_to_dom.js | 2 +-
.../public/components/render_with_fn/index.js | 2 +-
.../render_with_fn/render_with_fn.js | 6 +-
.../canvas/public/components/router/router.js | 4 +-
.../__examples__/element_controls.stories.tsx | 2 +-
.../__examples__/element_grid.stories.tsx | 2 +-
.../components/shape_picker/shape_picker.tsx | 2 +-
.../shape_picker_popover.stories.tsx | 2 +-
.../sidebar/element_settings/index.tsx | 2 +-
.../components/sidebar/sidebar_content.js | 2 +-
.../__examples__/sidebar_header.stories.tsx | 2 +-
.../public/components/sidebar_header/index.js | 20 +-
.../text_style_picker/text_style_picker.js | 12 +-
.../tool_tip_shortcut.stories.tsx | 2 +-
.../canvas/public/components/toolbar/index.js | 8 +-
.../canvas/public/components/workpad/index.js | 10 +-
.../public/components/workpad_config/index.js | 8 +-
.../workpad_config/workpad_config.js | 8 +-
.../workpad_header/edit_menu/index.ts | 8 +-
.../fullscreen_control/index.js | 16 +-
.../workpad_header/share_menu/flyout/index.ts | 6 +-
.../workpad_header/share_menu/index.ts | 6 +-
.../workpad_header/share_menu/utils.test.ts | 2 +-
.../view_menu/auto_refresh_controls.tsx | 2 +-
.../view_menu/custom_interval.tsx | 2 +-
.../view_menu/kiosk_controls.tsx | 2 +-
.../workpad_header/view_menu/view_menu.tsx | 2 +-
.../public/components/workpad_loader/index.js | 22 +-
.../workpad_loader/workpad_loader.js | 18 +-
.../workpad_loader/workpad_search.js | 2 +-
.../workpad_page/integration_utils.js | 49 +-
.../public/components/workpad_page/utils.js | 4 +-
.../event_handlers.js | 11 +-
.../workpad_interactive_page/index.js | 36 +-
.../interactive_workpad_page.js | 6 +-
.../static_workpad_page.js | 4 +-
.../components/workpad_templates/index.js | 4 +-
.../workpad_templates/workpad_templates.js | 8 +-
.../extended_template.examples.tsx | 8 +-
.../__examples__/simple_template.examples.tsx | 8 +-
.../arg_types/container_style/border_form.tsx | 6 +-
.../container_style/simple_template.tsx | 2 +-
.../public/expression_types/arg_types/font.js | 4 +-
.../extended_template.examples.tsx | 6 +-
.../__examples__/simple_template.examples.tsx | 6 +-
.../series_style/extended_template.tsx | 14 +-
.../series_style/simple_template.tsx | 4 +-
.../public/expression_types/datasource.js | 2 +-
.../public/expression_types/function_form.js | 14 +-
.../canvas/public/expression_types/model.js | 2 +-
.../public/functions/__tests__/asset.js | 2 +-
.../canvas/public/functions/filters.ts | 2 +-
.../canvas/public/functions/timelion.ts | 10 +-
.../public/lib/__tests__/history_provider.js | 12 +-
.../__fixtures__/typescript/typespec_tests.ts | 2 +-
.../canvas/public/lib/aeroelastic/common.js | 6 +-
.../public/lib/aeroelastic/functional.js | 20 +-
.../canvas/public/lib/aeroelastic/geometry.js | 6 +-
.../canvas/public/lib/aeroelastic/gestures.js | 24 +-
.../lib/aeroelastic/layout_functions.js | 254 ++--
.../canvas/public/lib/aeroelastic/select.ts | 2 +-
.../plugins/canvas/public/lib/arg_helpers.js | 4 +-
.../canvas/public/lib/build_bool_array.js | 4 +-
.../public/lib/build_embeddable_filters.ts | 4 +-
.../canvas/public/lib/clone_subgraphs.js | 8 +-
.../public/lib/custom_element_service.ts | 2 +-
x-pack/plugins/canvas/public/lib/doc_title.js | 2 +-
.../public/lib/element_handler_creators.ts | 21 +-
.../plugins/canvas/public/lib/es_service.ts | 16 +-
.../canvas/public/lib/extract_search.js | 4 +-
.../canvas/public/lib/find_existing_asset.js | 2 +-
.../canvas/public/lib/find_expression_type.js | 2 +-
.../canvas/public/lib/history_provider.js | 4 +-
x-pack/plugins/canvas/public/lib/keymap.ts | 12 +-
.../public/lib/load_expression_types.js | 2 +-
.../canvas/public/lib/load_transitions.js | 2 +-
.../canvas/public/lib/monaco_language_def.ts | 2 +-
.../public/lib/parse_single_function_chain.js | 2 +-
.../canvas/public/lib/router_provider.js | 6 +-
.../canvas/public/lib/run_interpreter.ts | 4 +-
x-pack/plugins/canvas/public/lib/template.js | 2 +-
.../lib/template_from_react_component.tsx | 2 +-
.../canvas/public/lib/window_error_handler.js | 10 +-
.../canvas/public/lib/workpad_service.js | 8 +-
x-pack/plugins/canvas/public/plugin_api.ts | 28 +-
.../canvas/public/state/actions/elements.js | 42 +-
.../canvas/public/state/actions/embeddable.ts | 6 +-
.../canvas/public/state/initial_state.js | 2 +-
.../public/state/middleware/app_ready.js | 2 +-
.../public/state/middleware/breadcrumbs.js | 2 +-
.../public/state/middleware/element_stats.js | 2 +-
.../public/state/middleware/es_persist.js | 6 +-
.../public/state/middleware/fullscreen.js | 2 +-
.../canvas/public/state/middleware/history.js | 6 +-
.../public/state/middleware/resolved_args.js | 8 +-
.../state/middleware/workpad_autoplay.ts | 4 +-
.../state/middleware/workpad_refresh.ts | 4 +-
.../public/state/middleware/workpad_update.js | 2 +-
.../__tests__/fixtures/action_creator.js | 2 +-
.../canvas/public/state/reducers/app.js | 2 +-
.../canvas/public/state/reducers/elements.js | 22 +-
.../public/state/reducers/embeddable.ts | 8 +-
.../canvas/public/state/reducers/pages.js | 14 +-
.../public/state/reducers/resolved_args.js | 4 +-
.../canvas/public/state/reducers/transient.js | 10 +-
.../state/selectors/__tests__/workpad.js | 2 +-
.../canvas/public/state/selectors/workpad.ts | 28 +-
x-pack/plugins/canvas/public/state/store.js | 2 +-
x-pack/plugins/canvas/scripts/_helpers.js | 6 +-
.../canvas/server/collectors/collector.ts | 2 +-
.../server/collectors/collector_helpers.ts | 4 +-
.../custom_element_collector.test.ts | 2 +-
.../collectors/custom_element_collector.ts | 8 +-
.../server/collectors/workpad_collector.ts | 10 +-
.../canvas/server/lib/build_bool_array.js | 4 +-
.../canvas/server/lib/format_response.js | 2 +-
.../canvas/server/lib/normalize_type.js | 2 +-
.../plugins/canvas/server/lib/query_es_sql.js | 8 +-
.../canvas/server/lib/sanitize_name.js | 2 +-
.../server/routes/catch_error_handler.ts | 2 +-
.../server/routes/custom_elements/find.ts | 2 +-
.../server/routes/es_fields/es_fields.ts | 4 +-
.../canvas/server/routes/workpad/find.ts | 2 +-
.../canvas/server/routes/workpad/get.ts | 2 +-
.../server/sample_data/load_sample_data.ts | 2 +-
.../migrations/remove_attributes_id.ts | 2 +-
.../__mocks__/supported_renderers.js | 4 +-
.../api/__tests__/shareable.test.tsx | 2 +-
.../shareable_runtime/api/shareable.tsx | 4 +-
.../shareable_runtime/components/app.tsx | 2 +-
.../shareable_runtime/components/canvas.tsx | 5 +-
.../settings/__tests__/settings.test.tsx | 4 +-
.../plugins/canvas/shareable_runtime/index.ts | 4 +-
.../shareable_runtime/postcss.config.js | 2 +-
.../shareable_runtime/supported_renderers.js | 2 +-
.../canvas/shareable_runtime/test/context.tsx | 2 +-
.../shareable_runtime/test/interactions.ts | 12 +-
.../shareable_runtime/test/selectors.ts | 12 +-
.../canvas/shareable_runtime/test/utils.ts | 2 +-
.../canvas/tasks/mocks/downloadWorkpad.js | 8 +-
x-pack/plugins/canvas/tasks/mocks/uiNotify.js | 6 +-
.../canvas/tasks/mocks/uiNotifyFormatMsg.js | 2 +-
.../plugins/case/common/api/saved_object.ts | 2 +-
x-pack/plugins/case/server/plugin.ts | 6 +-
.../__fixtures__/create_mock_so_repository.ts | 24 +-
.../api/cases/comments/delete_all_comments.ts | 4 +-
.../api/cases/comments/delete_comment.ts | 2 +-
.../api/cases/comments/get_comment.test.ts | 2 +-
.../api/cases/comments/patch_comment.ts | 2 +-
.../cases/configure/get_connectors.test.ts | 2 +-
.../api/cases/configure/get_connectors.ts | 2 +-
.../api/cases/configure/post_configure.ts | 2 +-
.../server/routes/api/cases/delete_cases.ts | 10 +-
.../server/routes/api/cases/find_cases.ts | 10 +-
.../server/routes/api/cases/get_case.test.ts | 2 +-
.../case/server/routes/api/cases/helpers.ts | 4 +-
.../server/routes/api/cases/patch_cases.ts | 26 +-
.../case/server/routes/api/cases/push_case.ts | 10 +-
.../user_actions/get_all_user_actions.ts | 7 +-
.../plugins/case/server/routes/api/utils.ts | 2 +-
x-pack/plugins/case/server/services/index.ts | 14 +-
.../services/reporters/read_reporters.ts | 2 +-
.../server/services/user_actions/helpers.ts | 4 +-
.../server/services/user_actions/index.ts | 2 +-
.../console_extensions/server/plugin.ts | 2 +-
.../common/services/utils.ts | 2 +-
.../auto_follow_pattern_add.test.js | 2 +-
.../auto_follow_pattern_list.test.js | 8 +-
.../follower_index_add.test.js | 8 +-
.../follower_indices_list.test.js | 14 +-
.../auto_follow_pattern_add.helpers.js | 4 +-
.../auto_follow_pattern_edit.helpers.js | 4 +-
.../auto_follow_pattern_list.helpers.js | 4 +-
.../helpers/follower_index_add.helpers.js | 4 +-
.../helpers/follower_index_edit.helpers.js | 4 +-
.../helpers/follower_index_list.helpers.js | 9 +-
.../helpers/home.helpers.js | 2 +-
.../helpers/http_requests.js | 14 +-
.../mocks/track_ui_metric.mock.ts | 2 +-
.../auto_follow_pattern_delete_provider.js | 10 +-
.../components/auto_follow_pattern_form.js | 34 +-
.../advanced_settings_fields.js | 2 +-
.../follower_index_form.js | 26 +-
.../follower_index_pause_provider.js | 14 +-
.../follower_index_resume_provider.js | 10 +-
.../follower_index_unfollow_provider.js | 10 +-
.../public/app/components/form_entry_row.js | 10 +-
.../components/remote_clusters_form_field.js | 14 +-
.../components/remote_clusters_provider.js | 6 +-
.../auto_follow_pattern_add.container.js | 4 +-
.../auto_follow_pattern_edit.container.js | 8 +-
.../follower_index_add.container.js | 4 +-
.../follower_index_edit.container.js | 8 +-
.../auto_follow_pattern_list.container.js | 8 +-
.../auto_follow_pattern_table.container.js | 10 +-
.../auto_follow_pattern_table.js | 22 +-
.../detail_panel/detail_panel.container.js | 2 +-
.../components/context_menu/context_menu.js | 14 +-
.../detail_panel/detail_panel.container.js | 2 +-
.../follower_indices_table.container.js | 6 +-
.../follower_indices_table.js | 22 +-
.../follower_indices_list.container.js | 8 +-
.../app/sections/home/home.container.js | 2 +-
.../public/app/sections/home/home.js | 4 +-
.../public/app/services/api.js | 34 +-
.../public/app/services/auto_follow_errors.js | 4 +-
.../app/services/auto_follow_pattern.js | 18 +-
.../app/services/auto_follow_pattern.test.js | 26 +-
.../auto_follow_pattern_validators.js | 10 +-
.../follower_index_default_settings.js | 6 +-
.../app/services/get_remote_cluster_name.js | 4 +-
.../public/app/services/input_validation.js | 12 +-
.../public/app/services/routing.js | 6 +-
.../public/app/services/track_ui_metric.ts | 2 +-
.../public/app/services/utils.js | 2 +-
.../public/app/store/actions/api.js | 5 +-
.../app/store/actions/auto_follow_pattern.js | 16 +-
.../app/store/actions/follower_index.js | 12 +-
.../app/store/reducers/auto_follow_pattern.js | 8 +-
.../app/store/reducers/follower_index.js | 6 +-
.../public/app/store/reducers/stats.js | 2 +-
.../public/app/store/selectors/index.js | 38 +-
.../public/plugin.ts | 2 +-
.../server/plugin.ts | 4 +-
.../register_delete_route.ts | 2 +-
.../register_pause_route.ts | 4 +-
.../register_resume_route.ts | 2 +-
.../follower_index/register_pause_route.ts | 2 +-
.../follower_index/register_resume_route.ts | 2 +-
.../server/services/license.ts | 2 +-
.../components/collect_config_container.tsx | 2 +-
.../dashboard_drilldown_config.story.tsx | 10 +-
.../dashboard_drilldown_config.tsx | 2 +-
.../drilldown.tsx | 4 +-
.../kql_query_suggestion/conjunction.test.ts | 8 +-
.../kql_query_suggestion/conjunction.tsx | 2 +-
.../kql_query_suggestion/field.test.ts | 2 +-
.../providers/kql_query_suggestion/field.tsx | 14 +-
.../providers/kql_query_suggestion/index.ts | 4 +-
.../kql_query_suggestion/lib/escape_kuery.ts | 5 +-
.../kql_query_suggestion/operator.test.ts | 2 +-
.../kql_query_suggestion/operator.tsx | 10 +-
.../kql_query_suggestion/sort_prefix_first.ts | 2 +-
.../providers/kql_query_suggestion/value.ts | 18 +-
.../public/search/search_interceptor.test.ts | 2 +-
.../public/search/search_interceptor.ts | 2 +-
.../server/search/es_search_strategy.ts | 2 +-
...onnected_flyout_manage_drilldowns.test.tsx | 2 +-
.../connected_flyout_manage_drilldowns.tsx | 8 +-
.../test_data.ts | 6 +-
.../form_drilldown_wizard.tsx | 6 +-
.../list_manage_drilldowns.tsx | 4 +-
.../embeddables/embeddable_action_storage.ts | 4 +-
.../embeddable_enhanced/public/plugin.ts | 4 +-
.../server/config.test.ts | 8 +-
.../encrypted_saved_objects/server/config.ts | 2 +-
.../server/crypto/index.mock.ts | 4 +-
.../encrypted_saved_objects/server/mocks.ts | 2 +-
...ypted_saved_objects_client_wrapper.test.ts | 6 +-
.../encrypted_saved_objects_client_wrapper.ts | 4 +-
.../server/saved_objects/index.ts | 2 +-
.../server/es/cluster_client_adapter.test.ts | 12 +-
.../server/es/cluster_client_adapter.ts | 2 +-
.../event_log/server/event_log_client.test.ts | 8 +-
x-pack/plugins/event_log/server/lib/delay.ts | 2 +-
.../event_log/server/lib/ready_signal.test.ts | 2 +-
.../event_log/server/lib/ready_signal.ts | 2 +-
.../plugins/event_log/server/routes/find.ts | 2 +-
x-pack/plugins/features/common/feature.ts | 2 +-
.../public/features_api_client.test.ts | 2 +-
.../features/public/features_api_client.ts | 2 +-
.../features/server/feature_registry.test.ts | 4 +-
.../features/server/feature_registry.ts | 8 +-
.../plugins/features/server/feature_schema.ts | 70 +-
.../features/server/oss_features.test.ts | 8 +-
x-pack/plugins/features/server/plugin.test.ts | 8 +-
x-pack/plugins/features/server/plugin.ts | 4 +-
.../features/server/routes/index.test.ts | 8 +-
.../plugins/features/server/routes/index.ts | 4 +-
.../server/ui_capabilities_for_features.ts | 8 +-
.../public/components/index_settings.js | 6 +-
.../components/json_index_file_picker.js | 8 +-
.../components/json_upload_and_parse.js | 12 +-
.../file_upload/public/util/file_parser.js | 4 +-
.../public/util/file_parser.test.js | 6 +-
.../util/geo_json_clean_and_validate.test.js | 6 +-
.../public/util/indexing_service.js | 4 +-
.../public/util/indexing_service.test.js | 4 +-
.../file_upload/public/util/pattern_reader.js | 4 +-
.../public/util/size_limited_chunking.test.js | 2 +-
.../client/call_with_request_factory.js | 2 +-
.../server/kibana_server_services.js | 4 +-
.../file_upload/server/routes/file_upload.js | 2 +-
.../public/angular/graph_client_workspace.js | 254 ++--
.../angular/graph_client_workspace.test.js | 22 +-
x-pack/plugins/graph/public/app.js | 88 +-
x-pack/plugins/graph/public/application.ts | 2 +-
.../components/field_manager/field_editor.tsx | 10 +-
.../field_manager/field_manager.test.tsx | 74 +-
.../field_manager/field_manager.tsx | 4 +-
.../components/field_manager/field_picker.tsx | 8 +-
.../graph_visualization.test.tsx | 10 +-
.../graph_visualization.tsx | 14 +-
.../guidance_panel/guidance_panel.tsx | 2 +-
.../graph/public/components/helpers.ts | 2 +-
.../graph/public/components/save_modal.tsx | 6 +-
.../public/components/search_bar.test.tsx | 2 +-
.../graph/public/components/search_bar.tsx | 4 +-
.../settings/advanced_settings_form.tsx | 6 +-
.../components/settings/blacklist_form.tsx | 4 +-
.../components/settings/settings.test.tsx | 39 +-
.../public/components/settings/settings.tsx | 2 +-
.../components/settings/url_template_form.tsx | 18 +-
.../components/settings/url_template_list.tsx | 8 +-
.../settings/use_list_keys.test.tsx | 6 +-
.../components/settings/use_list_keys.ts | 2 +-
.../graph/public/components/source_picker.tsx | 2 +-
.../graph/public/helpers/as_observable.ts | 2 +-
.../graph/public/helpers/kql_encoder.ts | 2 +-
.../graph/public/helpers/outlink_encoders.ts | 2 +-
.../public/helpers/saved_workspace_utils.ts | 4 +-
.../graph/public/helpers/style_choices.ts | 6 +-
x-pack/plugins/graph/public/plugin.ts | 2 +-
.../graph/public/services/fetch_top_nodes.ts | 6 +-
.../services/persistence/deserialize.ts | 24 +-
.../persistence/saved_workspace_references.ts | 2 +-
.../public/services/persistence/serialize.ts | 6 +-
.../graph/public/services/save_modal.tsx | 2 +-
.../graph/public/services/source_modal.tsx | 2 +-
.../state_management/advanced_settings.ts | 2 +-
.../state_management/datasource.sagas.ts | 2 +-
.../state_management/datasource.test.ts | 2 +-
.../public/state_management/datasource.ts | 4 +-
.../graph/public/state_management/fields.ts | 24 +-
.../graph/public/state_management/helpers.ts | 2 +-
.../public/state_management/meta_data.ts | 2 +-
.../graph/public/state_management/mocks.ts | 2 +-
.../state_management/persistence.test.ts | 2 +-
.../public/state_management/persistence.ts | 4 +-
.../public/state_management/url_templates.ts | 8 +-
.../public/state_management/workspace.ts | 2 +-
x-pack/plugins/graph/server/routes/explore.ts | 2 +-
.../sample_data/register_sample_data.ts | 2 +-
.../components/grok_debugger/grok_debugger.js | 8 +-
x-pack/plugins/grokdebugger/public/plugin.js | 2 +-
.../grokdebugger/grokdebugger_service.js | 4 +-
x-pack/plugins/grokdebugger/server/plugin.js | 2 +-
.../__jest__/components/edit_policy.test.js | 12 +-
.../__jest__/components/policy_table.test.js | 20 +-
.../__jest__/extend_index_management.test.js | 2 +-
.../cold_phase/cold_phase.container.js | 2 +-
.../components/cold_phase/cold_phase.js | 6 +-
.../delete_phase/delete_phase.container.js | 2 +-
.../components/delete_phase/delete_phase.js | 2 +-
.../hot_phase/hot_phase.container.js | 4 +-
.../components/hot_phase/hot_phase.js | 12 +-
.../edit_policy/components/min_age_input.js | 6 +-
.../node_allocation.container.js | 2 +-
.../node_allocation/node_allocation.js | 2 +-
.../components/set_priority_input.js | 4 +-
.../warm_phase/warm_phase.container.js | 2 +-
.../components/warm_phase/warm_phase.js | 14 +-
.../edit_policy/edit_policy.container.js | 2 +-
.../sections/edit_policy/edit_policy.js | 10 +-
.../sections/edit_policy/form_errors.js | 2 +-
.../add_policy_to_template_confirm_modal.js | 6 +-
.../policy_table/policy_table.container.js | 12 +-
.../components/policy_table/policy_table.js | 16 +-
.../public/application/services/api.js | 8 +-
.../application/services/filter_items.js | 4 +-
.../services/flatten_panel_tree.js | 2 +-
.../public/application/services/sort_table.js | 4 +-
.../public/application/services/ui_metric.ts | 2 +-
.../public/application/store/actions/nodes.js | 4 +-
.../application/store/actions/policies.js | 2 +-
.../application/store/selectors/general.js | 6 +-
.../application/store/selectors/lifecycle.js | 6 +-
.../application/store/selectors/nodes.js | 14 +-
.../application/store/selectors/policies.js | 40 +-
.../components/add_lifecycle_confirm_modal.js | 10 +-
.../remove_lifecycle_confirm_modal.js | 2 +-
.../public/extend_index_management/index.js | 22 +-
.../api/templates/register_fetch_route.ts | 2 +-
.../server/services/license.ts | 2 +-
.../helpers/home.helpers.ts | 14 +-
.../helpers/template_form.helpers.ts | 16 +-
.../__jest__/client_integration/home.test.ts | 10 +-
.../template_create.test.tsx | 2 +-
.../__jest__/components/index_table.test.js | 38 +-
.../datatypes/text_datatype.test.tsx | 2 +-
.../helpers/mappings_editor.helpers.tsx | 4 +-
.../mappings_editor.test.tsx | 2 +-
.../configuration_form/configuration_form.tsx | 2 +-
.../configuration_form_schema.tsx | 2 +-
.../dynamic_mapping_section.tsx | 2 +-
.../source_field_section.tsx | 6 +-
.../document_fields_header.tsx | 2 +-
.../field_parameters/analyzer_parameter.tsx | 4 +-
.../analyzer_parameter_selects.tsx | 6 +-
.../field_parameters/dynamic_parameter.tsx | 2 +-
.../field_parameters/format_parameter.tsx | 8 +-
.../field_parameters/index_parameter.tsx | 4 +-
.../field_parameters/path_parameter.tsx | 4 +-
.../field_parameters/subtype_parameter.tsx | 6 +-
.../term_vector_parameter.tsx | 2 +-
.../field_parameters/type_parameter.tsx | 2 +-
.../fields/create_field/create_field.tsx | 2 +-
.../fields/delete_field_provider.tsx | 4 +-
.../fields/edit_field/edit_field.tsx | 2 +-
.../edit_field/edit_field_container.tsx | 2 +-
.../fields/edit_field/edit_field_form_row.tsx | 4 +-
.../edit_field/update_field_provider.tsx | 6 +-
.../fields/field_types/numeric_type.tsx | 2 +-
.../fields/field_types/range_type.tsx | 4 +-
.../fields/field_types/text_type.tsx | 2 +-
.../fields/fields_list_item.tsx | 2 +-
.../modal_confirmation_delete_fields.tsx | 2 +-
.../search_fields/search_result_item.tsx | 2 +-
.../load_mappings/load_from_json_button.tsx | 2 +-
.../load_mappings_provider.test.tsx | 2 +-
.../load_mappings/load_mappings_provider.tsx | 2 +-
.../templates_form/templates_form.tsx | 2 +-
.../constants/data_types_definition.tsx | 2 +-
.../constants/field_options.tsx | 2 +-
.../constants/parameters_definition.tsx | 14 +-
.../mappings_editor/lib/error_reporter.ts | 2 +-
.../lib/extract_mappings_definition.ts | 2 +-
.../lib/mappings_validator.test.ts | 10 +-
.../mappings_editor/lib/mappings_validator.ts | 12 +-
.../mappings_editor/lib/search_fields.tsx | 4 +-
.../components/mappings_editor/lib/utils.ts | 24 +-
.../mappings_editor/lib/validators.ts | 8 +-
.../mappings_editor/mappings_state.tsx | 6 +-
.../components/mappings_editor/reducer.ts | 16 +-
.../components/template_delete_modal.tsx | 2 +-
.../template_form/steps/step_review.tsx | 2 +-
.../template_form/template_form.tsx | 2 +-
.../template_form/template_steps.tsx | 2 +-
.../public/application/lib/ace.js | 6 +-
.../public/application/lib/flatten_object.js | 2 +-
.../application/lib/flatten_panel_tree.js | 2 +-
.../public/application/sections/home/home.tsx | 2 +-
.../detail_panel/detail_panel.container.js | 18 +-
.../edit_settings_json.container.js | 2 +-
.../edit_settings_json/edit_settings_json.js | 6 +-
.../show_json/show_json.container.js | 2 +-
.../detail_panel/summary/summary.container.js | 2 +-
.../index_actions_context_menu.container.js | 4 +-
.../index_actions_context_menu.js | 34 +-
.../index_table/index_table.container.js | 14 +-
.../index_list/index_table/index_table.js | 28 +-
.../template_details/template_details.tsx | 6 +-
.../home/template_list/template_list.tsx | 4 +-
.../template_table/template_table.tsx | 6 +-
.../store/actions/clear_cache_indices.js | 2 +-
.../store/actions/close_indices.js | 2 +-
.../store/actions/delete_indices.js | 2 +-
.../store/actions/edit_index_settings.js | 2 +-
.../store/actions/extension_action.js | 8 +-
.../store/actions/flush_indices.js | 2 +-
.../store/actions/forcemerge_indices.js | 2 +-
.../store/actions/freeze_indices.js | 2 +-
.../store/actions/load_index_data.js | 2 +-
.../application/store/actions/load_indices.js | 2 +-
.../application/store/actions/open_indices.js | 2 +-
.../store/actions/refresh_indices.js | 2 +-
.../store/actions/reload_indices.js | 2 +-
.../store/actions/unfreeze_indices.js | 2 +-
.../store/actions/update_index_settings.js | 2 +-
.../sync_url_hash_query_param.js.ts | 2 +-
.../store/reducers/detail_panel.js | 2 +-
.../application/store/reducers/indices.js | 10 +-
.../application/store/reducers/row_status.js | 14 +-
.../application/store/selectors/index.js | 58 +-
.../public/application/store/store.js | 2 +-
.../plugins/index_management/public/plugin.ts | 2 +-
.../server/lib/fetch_indices.ts | 2 +-
.../server/services/license.ts | 2 +-
.../infra/common/http_api/source_api.ts | 4 +-
.../infra/common/inventory_models/index.ts | 2 +-
.../metrics_and_groupby_toolbar_items.tsx | 2 +-
.../components/expression.tsx | 10 +-
.../components/expression_chart.tsx | 4 +-
.../components/expression_row.tsx | 6 +-
.../alerting/inventory/expression.tsx | 14 +-
.../components/alerting/inventory/metric.tsx | 6 +-
.../alerting/inventory/node_type.tsx | 4 +-
.../logs/expression_editor/criterion.tsx | 12 +-
.../logs/expression_editor/document_count.tsx | 4 +-
.../logs/expression_editor/editor.tsx | 12 +-
.../infra/public/components/auto_sizer.tsx | 4 +-
.../autocomplete_field/autocomplete_field.tsx | 14 +-
.../autocomplete_field/suggestion_item.tsx | 22 +-
.../public/components/eui/toolbar/toolbar.tsx | 2 +-
.../components/loading_overlay_wrapper.tsx | 14 +-
.../recreate_job_button.tsx | 2 +-
.../analysis_setup_indices_form.tsx | 6 +-
.../analysis_setup_timerange_form.tsx | 20 +-
.../index_setup_dataset_filter.tsx | 2 +-
.../index_setup_row.tsx | 2 +-
.../user_management_link.tsx | 2 +-
.../logging/log_customization_menu.tsx | 2 +-
.../log_entry_actions_menu.tsx | 2 +-
.../logging/log_highlights_menu.tsx | 8 +-
.../logging/log_minimap/density_chart.tsx | 20 +-
.../log_minimap/highlighted_interval.tsx | 6 +-
.../logging/log_minimap/log_minimap.tsx | 10 +-
.../logging/log_minimap/search_marker.tsx | 12 +-
.../logging/log_minimap/search_markers.tsx | 6 +-
.../logging/log_minimap/time_ruler.tsx | 10 +-
.../log_search_controls/log_search_input.tsx | 6 +-
.../components/logging/log_statusbar.tsx | 6 +-
.../log_text_stream/column_headers.tsx | 14 +-
.../logging/log_text_stream/highlighting.tsx | 12 +-
.../logging/log_text_stream/jump_to_tail.tsx | 6 +-
.../log_text_stream/loading_item_view.tsx | 6 +-
.../log_entry_actions_column.tsx | 2 +-
.../log_text_stream/log_entry_column.tsx | 19 +-
.../log_entry_field_column.tsx | 2 +-
.../log_entry_message_column.tsx | 4 +-
.../logging/log_text_stream/log_entry_row.tsx | 8 +-
.../log_entry_timestamp_column.tsx | 2 +-
.../scrollable_log_text_stream_view.tsx | 8 +-
.../logging/log_text_stream/text_styles.tsx | 12 +-
.../log_text_stream/vertical_scroll_panel.tsx | 2 +-
.../components/navigation/app_navigation.tsx | 6 +-
.../components/navigation/routed_tabs.tsx | 2 +-
.../plugins/infra/public/components/page.tsx | 2 +-
.../components/saved_views/create_modal.tsx | 4 +-
.../add_log_column_popover.tsx | 6 +-
.../indices_configuration_form_state.ts | 22 +-
.../log_columns_configuration_form_state.tsx | 8 +-
.../log_columns_configuration_panel.tsx | 6 +-
.../source_configuration_settings.tsx | 2 +-
.../infra/public/components/toolbar_panel.ts | 2 +-
x-pack/plugins/infra/public/compose_libs.ts | 2 +-
.../logs/log_analysis/api/ml_cleanup.ts | 4 +-
.../api/ml_get_jobs_summary_api.ts | 2 +-
.../log_analysis_capabilities.tsx | 2 +-
.../log_analysis/log_analysis_cleanup.tsx | 6 +-
.../logs/log_analysis/log_analysis_module.tsx | 2 +-
.../log_analysis_module_configuration.ts | 2 +-
.../log_analysis_module_definition.tsx | 2 +-
.../log_analysis_module_status.tsx | 12 +-
.../log_analysis/log_analysis_setup_state.ts | 20 +-
.../containers/logs/log_entries/index.ts | 8 +-
.../logs/log_filter/log_filter_state.ts | 4 +-
.../log_filter/with_log_filter_url_state.tsx | 4 +-
.../public/containers/logs/log_flyout.tsx | 6 +-
.../log_highlights/log_entry_highlights.tsx | 4 +-
.../log_highlights/log_summary_highlights.ts | 4 +-
.../logs/log_summary/log_summary.tsx | 4 +-
.../containers/logs/with_log_textview.tsx | 4 +-
.../containers/logs/with_stream_items.ts | 2 +-
...ith_metrics_explorer_options_url_state.tsx | 6 +-
.../infra/public/containers/source/source.tsx | 8 +-
.../containers/with_kuery_autocompletion.tsx | 2 +-
.../hooks/use_bulk_get_saved_object.tsx | 2 +-
.../public/hooks/use_find_saved_object.tsx | 2 +-
.../infra/public/hooks/use_http_request.tsx | 4 +-
.../infra/public/hooks/use_saved_view.ts | 2 +-
x-pack/plugins/infra/public/pages/error.tsx | 2 +-
.../public/pages/link_to/link_to_logs.tsx | 4 +-
.../public/pages/link_to/link_to_metrics.tsx | 4 +-
.../pages/link_to/use_host_ip_to_name.test.ts | 2 +-
.../log_entry_categories/module_descriptor.ts | 2 +-
.../page_results_content.tsx | 2 +-
.../anomaly_severity_indicator_list.tsx | 2 +-
.../top_categories/category_expression.tsx | 4 +-
.../top_categories/datasets_action_list.tsx | 2 +-
.../sections/top_categories/datasets_list.tsx | 2 +-
.../top_categories/datasets_selector.tsx | 2 +-
.../log_entry_count_sparkline.tsx | 4 +-
.../top_categories/top_categories_table.tsx | 2 +-
.../use_log_entry_categories_module.tsx | 2 +-
.../use_log_entry_categories_quality.ts | 4 +-
.../use_log_entry_categories_results.ts | 4 +-
.../logs/log_entry_rate/module_descriptor.ts | 2 +-
.../sections/anomalies/chart.tsx | 2 +-
.../sections/anomalies/index.tsx | 4 +-
.../sections/helpers/data_formatters.tsx | 4 +-
.../sections/log_rate/bar_chart.tsx | 2 +-
.../use_log_entry_rate_module.tsx | 2 +-
.../logs/settings/add_log_column_popover.tsx | 6 +-
.../indices_configuration_form_state.ts | 12 +-
.../log_columns_configuration_form_state.tsx | 8 +-
.../log_columns_configuration_panel.tsx | 6 +-
.../source_configuration_settings.tsx | 2 +-
.../public/pages/logs/stream/page_toolbar.tsx | 2 +-
.../logs/stream/page_view_log_in_context.tsx | 2 +-
.../infra/public/pages/metrics/index.tsx | 2 +-
.../inventory_view/components/layout.tsx | 8 +-
.../components/nodes_overview.tsx | 6 +-
.../inventory_view/components/table_view.tsx | 6 +-
.../components/toolbars/toolbar.tsx | 2 +-
.../components/waffle/custom_field_panel.tsx | 6 +-
.../components/waffle/gradient_legend.tsx | 4 +-
.../components/waffle/group_name.tsx | 8 +-
.../components/waffle/group_of_groups.tsx | 6 +-
.../components/waffle/group_of_nodes.tsx | 4 +-
.../components/waffle/legend_controls.tsx | 12 +-
.../inventory_view/components/waffle/map.tsx | 2 +-
.../metric_control/custom_metric_form.tsx | 10 +-
.../waffle/metric_control/index.tsx | 8 +-
.../metric_control/metrics_context_menu.tsx | 6 +-
.../metric_control/metrics_edit_mode.tsx | 4 +-
.../inventory_view/components/waffle/node.tsx | 12 +-
.../components/waffle/palette_preview.tsx | 6 +-
.../waffle/stepped_gradient_legend.tsx | 6 +-
.../waffle/waffle_accounts_controls.tsx | 4 +-
.../waffle/waffle_group_by_controls.tsx | 20 +-
.../waffle/waffle_region_controls.tsx | 4 +-
.../hooks/use_waffle_filters.ts | 2 +-
.../hooks/use_waffle_options.ts | 29 +-
.../inventory_view/hooks/use_waffle_time.ts | 6 +-
.../lib/apply_wafflemap_layout.ts | 4 +-
.../inventory_view/lib/color_from_value.ts | 2 +-
.../inventory_view/lib/nodes_to_wafflemap.ts | 12 +-
.../components/chart_section_vis.tsx | 2 +-
.../components/gauges_section_vis.tsx | 4 +-
.../components/metadata_details.tsx | 20 +-
.../metric_detail/components/section.tsx | 4 +-
.../metric_detail/components/sub_section.tsx | 4 +-
.../metric_detail/hooks/use_metrics_time.ts | 6 +-
.../pages/metrics/metric_detail/index.tsx | 4 +-
.../metric_detail/lib/get_filtered_metrics.ts | 8 +-
.../components/aggregation.tsx | 4 +-
.../components/chart_options.tsx | 2 +-
.../metrics_explorer/components/charts.tsx | 2 +-
.../metrics_explorer/components/group_by.tsx | 8 +-
.../components/helpers/calculate_domain.ts | 4 +-
.../metrics_explorer/components/metrics.tsx | 8 +-
.../components/series_chart.tsx | 6 +-
.../hooks/use_metric_explorer_state.test.tsx | 2 +-
.../hooks/use_metric_explorer_state.ts | 4 +-
.../hooks/use_metrics_explorer_data.test.tsx | 2 +-
.../hooks/use_metrics_explorer_data.ts | 2 +-
x-pack/plugins/infra/public/utils/datemath.ts | 6 +-
.../infra/public/utils/enzyme_helpers.tsx | 4 +-
.../utils/loading_state/loading_result.ts | 2 +-
...picker_quickranges_to_datepicker_ranges.ts | 2 +-
.../public/utils/triggers_actions_context.tsx | 2 +-
.../infra/public/utils/use_kibana_space_id.ts | 2 +-
.../infra/public/utils/use_tracked_promise.ts | 16 +-
.../public/utils/use_visibility_state.ts | 2 +-
.../infra/server/graphql/sources/resolvers.ts | 4 +-
x-pack/plugins/infra/server/kibana.index.ts | 4 +-
.../fields/framework_fields_adapter.ts | 2 +-
.../log_entries/kibana_log_entries_adapter.ts | 8 +-
.../metrics/kibana_metrics_adapter.ts | 14 +-
.../elasticsearch_source_status_adapter.ts | 4 +-
.../infra/server/lib/alerting/common/utils.ts | 2 +-
.../inventory_metric_threshold_executor.ts | 27 +-
.../log_threshold/log_threshold_executor.ts | 8 +-
.../metric_threshold_executor.ts | 32 +-
.../lib/alerting/register_alert_types.ts | 2 +-
.../log_entries_domain/log_entries_domain.ts | 4 +-
.../lib/domains/log_entries_domain/message.ts | 2 +-
.../log_entry_categories_analysis.ts | 16 +-
.../log_analysis/log_entry_rate_analysis.ts | 2 +-
.../create_timerange_with_interval.ts | 8 +-
.../server/lib/snapshot/query_helpers.ts | 2 +-
.../server/lib/snapshot/response_helpers.ts | 6 +-
.../infra/server/lib/snapshot/snapshot.ts | 4 +-
.../infra/server/lib/sources/sources.ts | 14 +-
x-pack/plugins/infra/server/plugin.ts | 4 +-
.../lib/get_cloud_metadata.ts | 6 +-
.../results/log_entry_categories.ts | 2 +-
.../log_analysis/validation/datasets.ts | 2 +-
.../routes/log_analysis/validation/indices.ts | 6 +-
.../server/routes/log_entries/highlights.ts | 6 +-
.../routes/log_entries/summary_highlights.ts | 2 +-
.../metadata/lib/get_cloud_metric_metadata.ts | 2 +-
.../routes/metadata/lib/get_node_info.ts | 4 +-
.../routes/metadata/lib/pick_feature_name.ts | 2 +-
.../metrics_explorer/lib/get_groupings.ts | 10 +-
.../lib/populate_series_with_tsvb_data.ts | 14 +-
.../infra/server/usage/usage_collector.ts | 2 +-
.../server/utils/calculate_metric_interval.ts | 2 +-
.../common/services/agent_status.ts | 26 +-
.../datasource_to_agent_datasource.ts | 8 +-
.../common/services/package_to_config.ts | 6 +-
.../components/alpha_messaging.tsx | 4 +-
.../enrollment_instructions/manual/index.tsx | 2 +-
.../ingest_manager/components/header.tsx | 14 +-
.../components/package_icon.tsx | 5 +-
.../ingest_manager/components/search_bar.tsx | 4 +-
.../components/settings_flyout.tsx | 4 +-
.../ingest_manager/hooks/use_breadcrumbs.tsx | 4 +-
.../ingest_manager/hooks/use_fleet_status.tsx | 6 +-
.../ingest_manager/hooks/use_input.ts | 2 +-
.../hooks/use_package_icon_type.ts | 10 +-
.../ingest_manager/layouts/default.tsx | 10 +-
.../ingest_manager/layouts/with_header.tsx | 2 +-
.../ingest_manager/layouts/without_header.tsx | 2 +-
.../agent_config/components/config_form.tsx | 12 +-
.../danger_eui_context_menu_item.tsx | 2 +-
.../components/datasource_delete_provider.tsx | 6 +-
.../components/datasource_input_config.tsx | 6 +-
.../components/datasource_input_panel.tsx | 18 +-
.../datasource_input_stream_config.tsx | 8 +-
.../components/datasource_input_var_field.tsx | 6 +-
.../services/validate_datasource.test.ts | 6 +-
.../services/validate_datasource.ts | 6 +-
.../step_configure_datasource.tsx | 8 +-
.../step_define_datasource.tsx | 8 +-
.../step_select_config.tsx | 6 +-
.../step_select_package.tsx | 4 +-
.../datasources/datasources_table.tsx | 6 +-
.../components/settings/index.tsx | 2 +-
.../agent_config/details_page/index.tsx | 2 +-
.../edit_datasource_page/index.tsx | 4 +-
.../list_page/components/create_config.tsx | 2 +-
.../sections/agent_config/list_page/index.tsx | 4 +-
.../components/data_stream_row_actions.tsx | 2 +-
.../sections/data_stream/list_page/index.tsx | 10 +-
.../epm/components/assets_facet_group.tsx | 6 +-
.../sections/epm/components/icon_panel.tsx | 6 +-
.../sections/epm/components/icons.tsx | 2 +-
.../epm/components/nav_button_back.tsx | 2 +-
.../epm/components/package_list_grid.tsx | 6 +-
.../sections/epm/components/requirements.tsx | 4 +-
.../sections/epm/components/version.tsx | 2 +-
.../sections/epm/hooks/use_local_search.tsx | 2 +-
.../epm/hooks/use_package_install.tsx | 8 +-
.../epm/screens/detail/content_collapse.tsx | 10 +-
.../sections/epm/screens/detail/header.tsx | 2 +-
.../sections/epm/screens/detail/index.tsx | 10 +-
.../sections/epm/screens/detail/readme.tsx | 2 +-
.../epm/screens/detail/screenshots.tsx | 6 +-
.../epm/screens/detail/settings_panel.tsx | 6 +-
.../epm/screens/detail/side_nav_links.tsx | 2 +-
.../epm/screens/home/category_facets.tsx | 2 +-
.../sections/epm/screens/home/header.tsx | 2 +-
.../sections/epm/screens/home/index.tsx | 4 +-
.../epm/screens/home/search_packages.tsx | 4 +-
.../components/actions_menu.tsx | 2 +-
.../agent_details_page/components/helper.ts | 2 +-
.../components/metadata_flyout.tsx | 2 +-
.../fleet/agent_details_page/index.tsx | 6 +-
.../sections/fleet/agent_list_page/index.tsx | 16 +-
.../config_selection.tsx | 10 +-
.../agent_reassign_config_flyout/index.tsx | 4 +-
.../sections/fleet/components/list_layout.tsx | 2 +-
.../components/new_enrollment_key_flyout.tsx | 4 +-
.../enrollment_token_list_page/index.tsx | 4 +-
.../components/datastream_section.tsx | 2 +-
.../components/integration_section.tsx | 7 +-
.../overview/components/overview_panel.tsx | 14 +-
.../overview/components/overview_stats.tsx | 4 +-
.../sections/overview/index.tsx | 2 +-
.../server/routes/agent/acks_handlers.ts | 4 +-
.../server/routes/agent/actions_handlers.ts | 2 +-
.../server/routes/agent/handlers.ts | 4 +-
.../server/routes/data_streams/handlers.ts | 8 +-
.../server/saved_objects/index.ts | 2 +-
.../migrations/agent_config_v790.ts | 7 +-
.../migrations/datasources_v790.ts | 7 +-
.../server/services/agent_config.ts | 8 +-
.../server/services/agents/acks.ts | 8 +-
.../server/services/agents/actions.ts | 6 +-
.../server/services/agents/checkin.ts | 8 +-
.../server/services/agents/crud.ts | 5 +-
.../server/services/agents/events.ts | 2 +-
.../server/services/agents/status.ts | 2 +-
.../server/services/agents/update.ts | 2 +-
.../server/services/api_keys/index.ts | 4 +-
.../server/services/datasource.ts | 14 +-
.../services/epm/elasticsearch/ilm/install.ts | 2 +-
.../elasticsearch/ingest_pipeline/install.ts | 10 +-
.../epm/elasticsearch/template/install.ts | 4 +-
.../epm/elasticsearch/template/template.ts | 8 +-
.../server/services/epm/fields/field.ts | 6 +-
.../epm/kibana/index_pattern/install.test.ts | 8 +-
.../epm/kibana/index_pattern/install.ts | 14 +-
.../server/services/epm/packages/assets.ts | 2 +-
.../server/services/epm/packages/get.ts | 12 +-
.../server/services/epm/packages/install.ts | 6 +-
.../server/services/epm/packages/remove.ts | 2 +-
.../server/services/epm/registry/extract.ts | 2 +-
.../server/services/epm/registry/streams.ts | 2 +-
.../install_script/install_templates/linux.ts | 2 +-
.../install_script/install_templates/macos.ts | 2 +-
.../ingest_manager/server/services/output.ts | 2 +-
.../ingest_manager/server/services/setup.ts | 2 +-
.../helpers/pipelines_list.helpers.ts | 5 +-
.../public/application/app.tsx | 2 +-
.../pipeline_form/pipeline_form.tsx | 6 +-
.../pipeline_form/pipeline_form_fields.tsx | 4 +-
.../pipeline_form/pipeline_form_provider.tsx | 4 +-
.../pipeline_test_flyout.tsx | 2 +-
.../tabs/pipeline_test_tabs.tsx | 2 +-
.../pipeline_test_flyout/tabs/tab_output.tsx | 2 +-
.../components/pipeline_form/schema.tsx | 4 +-
.../pipelines_clone/pipelines_clone.tsx | 2 +-
.../sections/pipelines_list/delete_modal.tsx | 2 +-
.../pipelines_list/details_flyout.tsx | 2 +-
.../sections/pipelines_list/main.tsx | 4 +-
.../sections/pipelines_list/table.tsx | 6 +-
.../public/application/services/api.ts | 2 +-
.../plugins/ingest_pipelines/public/plugin.ts | 2 +-
.../server/routes/api/delete.ts | 4 +-
.../server/services/license.ts | 2 +-
.../lens/public/app_plugin/app.test.tsx | 8 +-
x-pack/plugins/lens/public/app_plugin/app.tsx | 52 +-
.../expression.test.tsx | 20 +-
.../datatable_visualization/expression.tsx | 18 +-
.../datatable_visualization/visualization.tsx | 22 +-
.../debounced_component.test.tsx | 2 +-
.../config_panel/chart_switch.test.tsx | 20 +-
.../config_panel/chart_switch.tsx | 14 +-
.../config_panel/config_panel.tsx | 8 +-
.../config_panel/dimension_popover.tsx | 2 +-
.../config_panel/layer_actions.ts | 2 +-
.../editor_frame/config_panel/layer_panel.tsx | 12 +-
.../editor_frame/data_panel_wrapper.tsx | 4 +-
.../editor_frame/editor_frame.test.tsx | 43 +-
.../editor_frame/editor_frame.tsx | 10 +-
.../editor_frame/expression_helpers.ts | 2 +-
.../editor_frame/save.test.ts | 8 +-
.../editor_frame/suggestion_helpers.ts | 4 +-
.../editor_frame/suggestion_panel.test.tsx | 31 +-
.../editor_frame/suggestion_panel.tsx | 6 +-
.../editor_frame/workspace_panel.test.tsx | 6 +-
.../editor_frame/workspace_panel.tsx | 10 +-
.../embeddable/embeddable.test.tsx | 2 +-
.../embeddable/embeddable.tsx | 4 +-
.../embeddable/expression_wrapper.tsx | 2 +-
.../editor_frame_service/format_column.ts | 2 +-
.../editor_frame_service/merge_tables.test.ts | 20 +-
.../public/editor_frame_service/mocks.tsx | 22 +-
.../public/editor_frame_service/service.tsx | 6 +-
.../change_indexpattern.tsx | 4 +-
.../datapanel.test.tsx | 75 +-
.../indexpattern_datasource/datapanel.tsx | 36 +-
.../dimension_panel/bucket_nesting_editor.tsx | 4 +-
.../dimension_panel/dimension_panel.test.tsx | 11 +-
.../dimension_panel/dimension_panel.tsx | 4 +-
.../dimension_panel/field_select.tsx | 8 +-
.../dimension_panel/format_selector.tsx | 4 +-
.../dimension_panel/popover_editor.tsx | 12 +-
.../field_item.test.tsx | 2 +-
.../indexpattern_datasource/field_item.tsx | 14 +-
.../indexpattern_datasource/indexpattern.tsx | 10 +-
.../indexpattern_suggestions.test.tsx | 10 +-
.../indexpattern_suggestions.ts | 38 +-
.../layerpanel.test.tsx | 15 +-
.../indexpattern_datasource/loader.test.ts | 14 +-
.../public/indexpattern_datasource/loader.ts | 22 +-
.../operations/definitions/cardinality.tsx | 2 +-
.../definitions/date_histogram.test.tsx | 4 +-
.../operations/definitions/date_histogram.tsx | 10 +-
.../operations/definitions/metrics.tsx | 10 +-
.../operations/definitions/terms.test.tsx | 2 +-
.../operations/definitions/terms.tsx | 2 +-
.../operations/operations.ts | 6 +-
.../indexpattern_datasource/rename_columns.ts | 4 +-
.../indexpattern_datasource/state_helpers.ts | 8 +-
.../indexpattern_datasource/to_expression.ts | 4 +-
.../lens/public/lens_ui_telemetry/factory.ts | 4 +-
.../metric_visualization/auto_scale.tsx | 4 +-
.../metric_expression.test.tsx | 4 +-
.../metric_suggestions.test.ts | 2 +-
.../metric_visualization.tsx | 2 +-
.../native_renderer/native_renderer.tsx | 2 +-
.../pie_visualization/pie_visualization.tsx | 18 +-
.../render_function.test.tsx | 9 +-
.../pie_visualization/render_function.tsx | 20 +-
.../pie_visualization/render_helpers.ts | 6 +-
.../pie_visualization/settings_widget.tsx | 8 +-
.../public/pie_visualization/suggestions.ts | 12 +-
.../public/pie_visualization/to_expression.ts | 4 +-
.../public/xy_visualization/state_helpers.ts | 4 +-
.../xy_visualization/to_expression.test.ts | 2 +-
.../public/xy_visualization/to_expression.ts | 10 +-
.../xy_visualization/xy_config_panel.tsx | 8 +-
.../xy_visualization/xy_expression.test.tsx | 19 +-
.../public/xy_visualization/xy_expression.tsx | 38 +-
.../xy_visualization/xy_suggestions.test.ts | 6 +-
.../public/xy_visualization/xy_suggestions.ts | 24 +-
.../xy_visualization/xy_visualization.test.ts | 10 +-
.../xy_visualization/xy_visualization.tsx | 36 +-
x-pack/plugins/lens/server/migrations.ts | 16 +-
.../server/routes/existing_fields.test.ts | 6 +-
.../lens/server/routes/existing_fields.ts | 16 +-
.../plugins/lens/server/routes/field_stats.ts | 8 +-
.../plugins/lens/server/usage/collectors.ts | 14 +-
x-pack/plugins/lens/server/usage/task.ts | 13 +-
.../__mocks__/focus-trap-react.js | 2 +-
.../public/application/app.container.js | 2 +-
.../public/application/app.js | 2 +-
.../license_status.container.js | 2 +-
.../request_trial_extension.container.js | 2 +-
.../revert_to_basic.container.js | 2 +-
.../revert_to_basic/revert_to_basic.js | 2 +-
.../start_trial/start_trial.container.js | 2 +-
.../start_trial/start_trial.tsx | 2 +-
.../upload_license.container.js | 2 +-
.../sections/upload_license/upload_license.js | 8 +-
.../application/store/actions/start_basic.js | 2 +-
.../store/reducers/license_management.js | 42 +-
.../licensing/common/license_update.test.ts | 10 +-
.../licensing/public/expired_banner.tsx | 2 +-
.../plugins/licensing/public/plugin.test.ts | 6 +-
x-pack/plugins/licensing/public/plugin.ts | 4 +-
.../server/on_pre_response_handler.test.ts | 2 +-
.../plugins/licensing/server/plugin.test.ts | 2 +-
x-pack/plugins/licensing/server/plugin.ts | 2 +-
.../server/services/feature_usage_service.ts | 2 +-
x-pack/plugins/lists/server/create_config.ts | 14 +-
x-pack/plugins/lists/server/plugin.ts | 4 +-
.../delete_exception_list_items_by_list.ts | 7 +-
.../server/services/exception_lists/utils.ts | 4 +-
.../services/items/buffer_lines.test.ts | 12 +-
.../server/services/items/buffer_lines.ts | 2 +-
.../items/delete_list_item_by_value.ts | 2 +-
.../items/write_lines_to_bulk_list_items.ts | 4 +-
.../items/write_list_items_to_stream.test.ts | 16 +-
.../items/write_list_items_to_stream.ts | 2 +-
.../utils/transform_elastic_to_list_item.ts | 2 +-
.../pipeline_editor/pipeline_editor.js | 24 +-
.../confirm_delete_modal.test.js | 10 +-
.../components/pipeline_list/pipeline_list.js | 12 +-
.../pipeline_list/pipeline_list.test.js | 4 +-
.../pipeline_list/pipelines_table.js | 6 +-
.../public/application/pipeline_edit_view.tsx | 2 +-
.../public/models/pipeline/pipeline.js | 2 +-
x-pack/plugins/logstash/public/plugin.ts | 4 +-
.../services/cluster/cluster_service.js | 4 +-
.../services/monitoring/monitoring_service.js | 6 +-
.../services/pipeline/pipeline_service.js | 6 +-
.../services/pipelines/pipelines_service.js | 22 +-
.../services/upgrade/upgrade_service.js | 4 +-
.../lib/check_license/check_license.test.ts | 2 +-
.../server/lib/check_license/check_license.ts | 2 +-
.../server/routes/pipelines/delete.ts | 10 +-
.../logstash/server/routes/pipelines/list.ts | 2 +-
.../migrations/add_field_meta_options.js | 4 +-
.../ems_raster_tile_to_ems_vector_tile.js | 2 +-
.../maps/common/migrations/join_agg_key.ts | 2 +-
.../migrate_symbol_style_descriptor.js | 2 +-
.../migrations/move_apply_global_query.js | 4 +-
.../maps/common/migrations/references.js | 6 +-
.../migrations/top_hits_time_to_sort.js | 2 +-
.../public/actions/data_request_actions.ts | 4 +-
.../maps/public/actions/map_actions.js | 28 +-
.../maps/public/actions/tooltip_actions.ts | 8 +-
.../services/gis_map_saved_object_loader.js | 2 +-
.../public/angular/services/saved_gis_map.js | 4 +-
.../public/classes/fields/ems_file_field.ts | 2 +-
.../classes/fields/kibana_region_field.ts | 2 +-
.../maps/public/classes/joins/inner_join.js | 2 +-
.../blended_vector_layer.ts | 2 +-
.../maps/public/classes/layers/layer.tsx | 14 +-
.../classes/layers/layer_wizard_registry.ts | 2 +-
.../create_layer_descriptor.test.ts | 2 +-
.../observability_layer_template.tsx | 2 +-
.../layers/vector_layer/vector_layer.js | 48 +-
.../vector_tile_layer/vector_tile_layer.js | 14 +-
.../ems_file_source/create_source_editor.tsx | 2 +-
.../ems_file_source/ems_file_source.tsx | 12 +-
.../ems_file_source/update_source_editor.tsx | 4 +-
.../sources/ems_tms_source/ems_tms_source.js | 2 +-
.../ems_tms_source/tile_service_select.js | 4 +-
.../sources/es_agg_source/es_agg_source.js | 10 +-
.../es_geo_grid_source/convert_to_geojson.js | 8 +-
.../create_source_editor.js | 10 +-
.../es_geo_grid_source/es_geo_grid_source.js | 4 +-
.../es_geo_grid_source/render_as_select.tsx | 2 +-
.../es_geo_grid_source/resolution_editor.js | 2 +-
.../update_source_editor.js | 10 +-
.../es_pew_pew_source/create_source_editor.js | 10 +-
.../es_pew_pew_source/update_source_editor.js | 4 +-
.../es_search_source/create_source_editor.js | 12 +-
.../es_search_source/es_search_source.js | 24 +-
.../es_search_source/update_source_editor.js | 10 +-
.../classes/sources/es_source/es_source.js | 2 +-
.../sources/es_term_source/es_term_source.js | 4 +-
.../kibana_regionmap_source.js | 4 +-
.../classes/sources/tms_source/tms_source.js | 2 +-
.../sources/vector_source/vector_source.js | 2 +-
.../wms_source/wms_create_source_editor.js | 14 +-
.../sources/xyz_tms_source/xyz_tms_editor.tsx | 2 +-
.../maps/public/classes/styles/color_utils.js | 16 +-
.../components/heatmap_style_editor.js | 2 +-
.../components/color/color_map_select.js | 6 +-
.../vector/components/color/color_stops.js | 4 +-
.../components/color/color_stops_ordinal.js | 2 +-
.../components/color/color_stops_utils.js | 2 +-
.../components/color/dynamic_color_form.js | 4 +-
.../components/color/static_color_form.js | 2 +-
.../styles/vector/components/field_select.js | 8 +-
.../components/label/static_label_form.js | 2 +-
.../components/legend/vector_style_legend.js | 2 +-
.../orientation/static_orientation_form.js | 2 +-
.../components/size/static_size_form.js | 2 +-
.../styles/vector/components/stop_input.js | 12 +-
.../vector/components/style_map_select.js | 6 +-
.../vector/components/style_prop_editor.js | 2 +-
.../components/symbol/dynamic_icon_form.js | 2 +-
.../vector/components/symbol/icon_select.js | 8 +-
.../vector/components/symbol/icon_stops.js | 6 +-
.../components/symbol/static_icon_form.js | 2 +-
.../vector_style_symbolize_as_editor.js | 2 +-
.../vector/components/vector_style_editor.js | 12 +-
.../properties/dynamic_color_property.test.js | 10 +-
.../properties/dynamic_icon_property.test.tsx | 2 +-
.../properties/dynamic_style_property.js | 6 +-
.../classes/styles/vector/symbol_utils.js | 10 +-
.../classes/styles/vector/vector_style.js | 30 +-
.../util/get_feature_collection_bounds.ts | 2 +-
.../public/components/geometry_filter_form.js | 10 +-
.../components/global_filter_checkbox.js | 2 +-
.../maps/public/components/map_listing.js | 8 +-
.../maps/public/components/metric_editor.js | 10 +-
.../maps/public/components/metric_select.js | 2 +-
.../maps/public/components/metrics_editor.js | 2 +-
.../multi_index_geo_field_select.tsx | 2 +-
.../public/components/single_field_select.js | 4 +-
.../add_tooltip_field_popover.tsx | 10 +-
.../tooltip_selector.test.tsx | 2 +-
.../tooltip_selector/tooltip_selector.tsx | 2 +-
.../maps/public/components/validated_range.js | 2 +-
.../connected_components/gis_map/view.js | 6 +-
.../filter_editor/filter_editor.js | 6 +-
.../layer_panel/flyout_footer/index.js | 2 +-
.../connected_components/layer_panel/index.js | 2 +-
.../layer_panel/join_editor/resources/join.js | 12 +-
.../join_editor/resources/join_expression.js | 10 +-
.../resources/metrics_expression.js | 2 +-
.../join_editor/resources/where_expression.js | 2 +-
.../layer_panel/join_editor/view.js | 2 +-
.../layer_settings/layer_settings.js | 4 +-
.../layer_panel/style_settings/index.js | 2 +-
.../connected_components/layer_panel/view.js | 2 +-
.../layer_panel/view.test.js | 4 +-
.../features_tooltip/feature_properties.js | 4 +-
.../feature_properties.test.js | 6 +-
.../map/features_tooltip/features_tooltip.js | 2 +-
.../map/features_tooltip/tooltip_header.js | 8 +-
.../features_tooltip/tooltip_header.test.js | 14 +-
.../map/mb/draw_control/draw_control.js | 2 +-
.../map/mb/get_initial_view.ts | 2 +-
.../connected_components/map/mb/index.js | 4 +-
.../map/mb/mb.utils.test.js | 14 +-
.../map/mb/tooltip_control/tooltip_control.js | 8 +-
.../tooltip_control/tooltip_control.test.js | 2 +-
.../map/mb/tooltip_control/tooltip_popover.js | 6 +-
.../tooltip_control/tooltip_popover.test.js | 6 +-
.../connected_components/map/mb/utils.js | 36 +-
.../connected_components/map/mb/view.js | 8 +-
.../set_view_control/set_view_control.js | 6 +-
.../toolbar_overlay/tools_control/index.js | 2 +-
.../tools_control/tools_control.js | 8 +-
.../attribution_control/view.js | 4 +-
.../attribution_control/view.test.js | 2 +-
.../layer_control/layer_toc/index.js | 2 +-
.../layer_toc/toc_entry/index.js | 6 +-
.../toc_entry_actions_popover.test.tsx | 6 +-
.../toc_entry_actions_popover.tsx | 2 +-
.../layer_toc/toc_entry/view.test.js | 10 +-
.../layer_control/layer_toc/view.js | 4 +-
.../widget_overlay/layer_control/view.js | 4 +-
.../maps/public/elasticsearch_geo_utils.js | 4 +-
.../public/elasticsearch_geo_utils.test.js | 4 +-
.../maps/public/embeddable/map_embeddable.tsx | 4 +-
.../embeddable/map_embeddable_factory.ts | 4 +-
.../plugins/maps/public/index_pattern_util.js | 6 +-
.../public/inspector/views/map_details.js | 2 +-
x-pack/plugins/maps/public/kibana_services.js | 53 +-
x-pack/plugins/maps/public/reducers/map.js | 18 +-
.../reducers/non_serializable_instances.js | 4 +-
x-pack/plugins/maps/public/reducers/ui.ts | 2 +-
.../maps/public/selectors/map_selectors.ts | 32 +-
.../server/lib/get_index_pattern_settings.js | 2 +-
.../server/maps_telemetry/maps_telemetry.ts | 20 +-
x-pack/plugins/maps/server/routes.js | 26 +-
.../maps/server/saved_objects/migrations.js | 12 +-
.../plugins/ml/common/license/ml_license.ts | 4 +-
.../plugins/ml/common/types/capabilities.ts | 4 +-
x-pack/plugins/ml/common/types/common.ts | 2 +-
x-pack/plugins/ml/common/util/job_utils.ts | 36 +-
.../plugins/ml/common/util/parse_interval.ts | 4 +-
x-pack/plugins/ml/common/util/string_utils.ts | 4 +-
.../ml/common/util/validation_utils.ts | 2 +-
x-pack/plugins/ml/common/util/validators.ts | 6 +-
x-pack/plugins/ml/public/application/app.tsx | 2 +-
.../capabilities/check_capabilities.ts | 2 +-
.../annotations/annotation_flyout/index.tsx | 4 +-
.../annotations_table/annotations_table.js | 16 +-
.../anomalies_table/anomalies_table.js | 10 +-
.../anomalies_table_columns.js | 24 +-
.../anomalies_table/anomaly_details.js | 4 +-
.../anomalies_table/influencers_cell.js | 2 +-
.../components/anomalies_table/links_menu.js | 16 +-
.../chart_tooltip/chart_tooltip.tsx | 2 +-
.../color_range_legend/color_range_legend.tsx | 13 +-
.../select_interval/select_interval.test.tsx | 2 +-
.../select_interval/select_interval.tsx | 2 +-
.../select_severity/select_severity.test.tsx | 2 +-
.../select_severity/select_severity.tsx | 2 +-
.../components/data_grid/common.ts | 6 +-
.../components/data_grid/data_grid.tsx | 4 +-
.../components/data_grid/use_data_grid.ts | 12 +-
.../data_recognizer/data_recognizer.js | 6 +-
.../influencers_list/influencers_list.js | 4 +-
.../components/items_grid/items_grid.js | 2 +-
.../items_grid/items_grid_pagination.js | 6 +-
.../custom_selection_table.js | 18 +-
.../job_selector/id_badges/id_badges.js | 2 +-
.../job_selector/job_select_service_utils.ts | 23 +-
.../components/job_selector/job_selector.tsx | 6 +-
.../job_selector/job_selector_flyout.tsx | 4 +-
.../job_selector_table/job_selector_table.js | 18 +-
.../job_selector/use_job_selection.ts | 4 +-
.../navigation_menu/top_nav/top_nav.tsx | 2 +-
.../rule_editor/condition_expression.js | 6 +-
.../rule_editor/rule_editor_flyout.js | 50 +-
.../rule_editor/rule_editor_flyout.test.js | 2 +-
.../rule_editor/scope_expression.js | 10 +-
.../rule_editor/scope_section.test.js | 2 +-
.../select_rule_action/edit_condition_link.js | 2 +-
.../select_rule_action/rule_action_panel.js | 4 +-
.../components/rule_editor/utils.js | 14 +-
.../components/stats_bar/stats_bar.tsx | 2 +-
.../validate_job/validate_job_view.js | 10 +-
.../data_frame_analytics/common/analytics.ts | 6 +-
.../data_frame_analytics/common/fields.ts | 6 +-
.../common/get_index_data.ts | 4 +-
.../common/get_index_fields.ts | 4 +-
.../common/use_results_view_config.ts | 2 +-
.../column_data.tsx | 2 +-
.../use_exploration_results.ts | 2 +-
.../components/outlier_exploration/common.ts | 2 +-
.../outlier_exploration/use_outlier_data.ts | 2 +-
.../analytics_list/action_delete.test.tsx | 2 +-
.../analytics_list/analytics_list.tsx | 26 +-
.../analytics_list/expanded_row.tsx | 2 +-
.../expanded_row_details_pane.tsx | 8 +-
.../create_analytics_advanced_editor.tsx | 4 +-
.../create_analytics_button.tsx | 2 +-
.../create_analytics_flyout_wrapper.tsx | 2 +-
.../create_analytics_form.tsx | 20 +-
.../create_analytics_form/job_description.tsx | 2 +-
.../create_analytics_form/job_type.tsx | 4 +-
.../use_create_analytics_form/reducer.ts | 10 +-
.../hooks/use_create_analytics_form/state.ts | 2 +-
.../use_create_analytics_form.ts | 2 +-
.../analytics_service/get_analytics.ts | 2 +-
.../components/about_panel/about_panel.tsx | 2 +-
.../components/edit_flyout/edit_flyout.js | 4 +-
.../components/edit_flyout/options/options.js | 2 +-
.../components/edit_flyout/overrides.js | 18 +-
.../components/edit_flyout/overrides.test.js | 2 +-
.../components/fields_stats/fields_stats.js | 4 +-
.../file_contents/file_contents.tsx | 5 +-
.../file_datavisualizer_view.js | 12 +-
.../filebeat_config_flyout.tsx | 4 +-
.../components/import_view/import_view.js | 24 +-
.../file_based/components/utils/utils.ts | 2 +-
.../content_types/number_content.tsx | 2 +-
.../metric_distribution_chart.tsx | 6 +-
...metric_distribution_chart_data_builder.tsx | 6 +-
.../field_types_select/field_types_select.tsx | 4 +-
.../components/search_panel/search_panel.tsx | 4 +-
.../index_based/data_loader/data_loader.ts | 2 +-
.../datavisualizer/index_based/page.tsx | 44 +-
.../explorer/actions/job_selection.ts | 8 +-
.../explorer/actions/load_explorer_data.ts | 4 +-
.../explorer_query_bar/explorer_query_bar.tsx | 2 +-
.../public/application/explorer/explorer.js | 14 +-
.../explorer_chart_label.js | 2 +-
.../explorer_chart_config_builder.js | 2 +-
.../explorer_chart_distribution.js | 58 +-
.../explorer_chart_distribution.test.js | 22 +-
.../explorer_chart_info_tooltip.js | 2 +-
.../explorer_chart_single_metric.js | 55 +-
.../explorer_chart_single_metric.test.js | 22 +-
.../explorer_charts_container.js | 12 +-
.../explorer_charts_container_service.js | 52 +-
.../explorer_charts_container_service.test.js | 14 +-
.../explorer/explorer_swimlane.tsx | 47 +-
.../application/explorer/explorer_utils.js | 80 +-
.../explorer/has_matching_points.ts | 4 +-
.../explorer_reducer/get_index_pattern.ts | 2 +-
.../set_influencer_filter_settings.ts | 2 +-
.../explorer/select_limit/select_limit.tsx | 2 +-
.../application/formatters/format_value.ts | 12 +-
.../formatters/number_as_ordinal.test.ts | 2 +-
.../components/custom_url_editor/editor.tsx | 12 +-
.../components/custom_url_editor/list.tsx | 10 +-
.../components/custom_url_editor/utils.js | 16 +-
.../create_watch_flyout.js | 10 +-
.../create_watch_service.js | 4 +-
.../create_watch_flyout/create_watch_view.js | 10 +-
.../create_watch_flyout/select_severity.tsx | 2 +-
.../delete_job_modal/delete_job_modal.js | 4 +-
.../edit_job_flyout/edit_job_flyout.js | 20 +-
.../components/edit_job_flyout/edit_utils.js | 22 +-
.../edit_job_flyout/tabs/custom_urls.tsx | 20 +-
.../edit_job_flyout/tabs/datafeed.js | 8 +-
.../edit_job_flyout/tabs/detectors.js | 4 +-
.../edit_job_flyout/tabs/job_details.js | 18 +-
.../components/job_actions/management.js | 32 +-
.../job_details/datafeed_preview_tab.js | 8 +-
.../job_details/extract_job_details.js | 14 +-
.../forecasts_table/forecasts_table.js | 20 +-
.../components/job_details/format_values.js | 4 +-
.../job_details/job_details_pane.js | 4 +-
.../job_filter_bar/job_filter_bar.js | 6 +-
.../components/jobs_list/job_description.js | 2 +-
.../components/jobs_list/jobs_list.js | 18 +-
.../jobs_list_view/jobs_list_view.js | 38 +-
.../jobs_stats_bar/jobs_stats_bar.js | 2 +-
.../multi_job_actions/actions_menu.js | 4 +-
.../group_selector/group_list/group_list.js | 6 +-
.../group_selector/group_selector.js | 28 +-
.../new_group_input/new_group_input.js | 4 +-
.../start_datafeed_modal.js | 12 +-
.../time_range_selector.js | 8 +-
.../jobs/jobs_list/components/utils.js | 52 +-
.../application/jobs/jobs_list/jobs.tsx | 2 +-
.../common/components/job_groups_input.tsx | 8 +-
.../job_creator/advanced_job_creator.ts | 2 +-
.../new_job/common/job_creator/job_creator.ts | 4 +-
.../job_creator/multi_metric_job_creator.ts | 2 +-
.../job_creator/population_job_creator.ts | 2 +-
.../common/job_creator/util/general.ts | 20 +-
.../util/model_memory_estimator.ts | 8 +-
.../new_job/common/job_runner/job_runner.ts | 4 +-
.../common/job_validator/job_validator.ts | 8 +-
.../jobs/new_job/common/job_validator/util.ts | 8 +-
.../common/job_validator/validators.ts | 6 +-
.../common/results_loader/results_loader.ts | 2 +-
.../components/charts/common/anomalies.tsx | 2 +-
.../model_memory_limit_input.tsx | 2 +-
.../components/frequency/frequency_input.tsx | 2 +-
.../query_delay/query_delay_input.tsx | 2 +-
.../scroll_size/scroll_size_input.tsx | 2 +-
.../calendars/calendars_selection.tsx | 10 +-
.../model_plot/model_plot_switch.tsx | 2 +-
.../components/groups/groups_input.tsx | 6 +-
.../job_description/job_description_input.tsx | 2 +-
.../components/job_id/job_id_input.tsx | 2 +-
.../advanced_detector_modal.tsx | 12 +-
.../components/agg_select/agg_select.tsx | 8 +-
.../bucket_span/bucket_span_input.tsx | 2 +-
.../bucket_span_estimator.tsx | 2 +-
.../estimate_bucket_span.ts | 6 +-
.../examples_valid_callout.tsx | 2 +-
.../categorization_view/top_categories.tsx | 2 +-
.../components/influencers/influencers.tsx | 2 +-
.../influencers/influencers_select.tsx | 4 +-
.../multi_metric_view/metric_selection.tsx | 4 +-
.../population_view/metric_selection.tsx | 4 +-
.../metric_selection_summary.tsx | 2 +-
.../sparse_data/sparse_data_switch.tsx | 2 +-
.../components/split_cards/split_cards.tsx | 4 +-
.../components/split_field/by_field.tsx | 2 +-
.../split_field/split_field_select.tsx | 2 +-
.../jobs/new_job/pages/new_job/wizard.tsx | 4 +-
.../new_job/recognize/components/edit_job.tsx | 6 +-
.../new_job/recognize/components/job_item.tsx | 2 +-
.../components/job_settings_form.tsx | 2 +-
.../jobs/new_job/recognize/page.tsx | 6 +-
.../jobs/new_job/recognize/resolvers.ts | 4 +-
.../ml/public/application/management/index.ts | 2 +-
.../anomaly_detection_panel.tsx | 6 +-
.../anomaly_detection_panel/utils.ts | 2 +-
.../ml/public/application/routing/router.tsx | 2 +-
.../routing/routes/timeseriesexplorer.tsx | 4 +-
.../public/application/routing/use_refresh.ts | 2 +-
.../application/routing/use_resolver.ts | 2 +-
.../services/anomaly_detector_service.ts | 4 +-
.../application/services/explorer_service.ts | 4 +-
.../services/field_format_service.ts | 14 +-
.../application/services/forecast_service.js | 24 +-
.../application/services/http_service.ts | 12 +-
.../application/services/job_service.js | 101 +-
.../application/services/mapping_service.js | 8 +-
.../services/ml_server_info.test.ts | 6 +-
.../new_job_capabilities._service.test.ts | 14 +-
.../services/new_job_capabilities_service.ts | 24 +-
.../results_service/result_service_rx.ts | 12 +-
.../results_service/results_service.js | 78 +-
.../edit/events_table/events_table.js | 6 +-
.../edit/import_modal/import_modal.js | 16 +-
.../calendars/edit/import_modal/utils.js | 4 +-
.../settings/calendars/edit/new_calendar.js | 46 +-
.../calendars/edit/new_calendar.test.js | 4 +-
.../edit/new_event_modal/new_event_modal.js | 14 +-
.../new_event_modal/new_event_modal.test.js | 10 +-
.../settings/calendars/edit/utils.js | 20 +-
.../settings/calendars/list/calendars_list.js | 4 +-
.../calendars/list/calendars_list.test.js | 4 +-
.../settings/calendars/list/header.test.js | 2 +-
.../settings/calendars/list/table/table.js | 10 +-
.../add_item_popover/add_item_popover.js | 4 +-
.../delete_filter_list_modal.test.js | 2 +-
.../edit_description_popover.js | 2 +-
.../filter_list_usage_popover.js | 2 +-
.../filter_lists/edit/edit_filter_list.js | 40 +-
.../edit/edit_filter_list.test.js | 2 +-
.../settings/filter_lists/edit/header.js | 2 +-
.../settings/filter_lists/edit/utils.js | 26 +-
.../filter_lists/list/filter_lists.js | 14 +-
.../filter_lists/list/filter_lists.test.js | 2 +-
.../settings/filter_lists/list/table.js | 10 +-
.../context_chart_mask/context_chart_mask.js | 28 +-
.../entity_control/entity_control.tsx | 2 +-
.../forecasting_modal/forecasting_modal.js | 36 +-
.../forecasting_modal/forecasts_list.js | 8 +-
.../timeseries_chart/timeseries_chart.js | 201 +--
.../timeseries_chart/timeseries_chart.test.js | 2 +-
.../timeseries_chart_annotations.ts | 27 +-
.../timeseries_search_service.ts | 6 +-
.../timeseriesexplorer/timeseriesexplorer.js | 60 +-
.../timeseriesexplorer_utils.js | 8 +-
.../application/util/calc_auto_interval.js | 4 +-
.../ml/public/application/util/chart_utils.js | 37 +-
.../application/util/chart_utils.test.js | 9 +-
.../application/util/custom_url_utils.ts | 4 +-
.../application/util/dependency_cache.ts | 2 +-
.../util/field_types_utils.test.ts | 2 +-
.../application/util/field_types_utils.ts | 2 +-
.../ml/public/application/util/index_utils.ts | 10 +-
.../public/application/util/string_utils.js | 6 +-
.../application/util/string_utils.test.ts | 2 +-
.../public/application/util/time_buckets.js | 28 +-
.../ml/public/application/util/url_state.ts | 6 +-
.../anomaly_swimlane_embeddable.tsx | 2 +-
.../anomaly_swimlane_initializer.tsx | 12 +-
.../explorer_swimlane_container.tsx | 6 +-
.../swimlane_input_resolver.ts | 14 +-
.../ml/server/client/elasticsearch_ml.test.ts | 4 +-
.../capabilities/__mocks__/ml_capabilities.ts | 4 +-
.../lib/capabilities/capabilities_switcher.ts | 4 +-
.../capabilities/check_capabilities.test.ts | 14 +-
.../lib/capabilities/check_capabilities.ts | 2 +-
.../annotation_service/annotation.test.ts | 10 +-
.../bucket_span_estimator.js | 48 +-
.../bucket_span_estimator.test.ts | 18 +-
.../polled_data_checker.js | 4 +-
.../single_series_checker.js | 16 +-
.../calculate_model_memory_limit.ts | 6 +-
.../models/calendar/calendar_manager.ts | 14 +-
.../models/data_recognizer/data_recognizer.ts | 134 +-
.../models/data_visualizer/data_visualizer.ts | 18 +-
.../models/fields_service/fields_service.ts | 6 +-
.../file_data_visualizer/import_data.ts | 4 +-
.../ml/server/models/filter/filter_manager.ts | 8 +-
.../job_audit_messages/job_audit_messages.js | 8 +-
.../ml/server/models/job_service/groups.ts | 10 +-
.../ml/server/models/job_service/jobs.ts | 44 +-
.../new_job/categorization/examples.ts | 10 +-
.../new_job/categorization/top_categories.ts | 4 +-
.../categorization/validation_results.ts | 12 +-
.../models/job_service/new_job/line_chart.ts | 2 +-
.../job_service/new_job/population_chart.ts | 2 +-
.../job_service/new_job_caps/field_service.ts | 34 +-
.../new_job_caps/new_job_caps.test.ts | 8 +-
.../job_service/new_job_caps/new_job_caps.ts | 8 +-
.../models/job_service/new_job_caps/rollup.ts | 2 +-
.../job_validation/job_validation.test.ts | 76 +-
.../models/job_validation/job_validation.ts | 6 +-
.../job_validation/validate_bucket_span.js | 20 +-
.../validate_bucket_span.test.ts | 28 +-
.../validate_cardinality.test.ts | 72 +-
.../job_validation/validate_cardinality.ts | 24 +-
.../validate_influencers.test.ts | 30 +-
.../job_validation/validate_influencers.ts | 4 +-
.../validate_model_memory_limit.test.ts | 72 +-
.../validate_time_range.test.ts | 46 +-
.../build_anomaly_table_items.js | 23 +-
.../models/results_service/results_service.ts | 12 +-
.../routes/apidoc_scripts/schema_extractor.ts | 4 +-
.../routes/apidoc_scripts/schema_worker.ts | 4 +-
.../routes/apidoc_scripts/version_filter.ts | 2 +-
x-pack/plugins/ml/server/routes/system.ts | 2 +-
.../__tests__/format_timestamp_to_duration.js | 17 +-
.../monitoring/common/cancel_promise.ts | 4 +-
.../monitoring/public/angular/app_modules.ts | 38 +-
.../public/angular/helpers/routes.ts | 2 +-
.../public/angular/providers/private.js | 14 +-
.../public/angular/providers/url.js | 28 +-
.../public/components/alerts/alerts.js | 14 +-
.../configuration/configuration.test.tsx | 15 +-
.../alerts/configuration/step1.test.tsx | 57 +-
.../components/alerts/configuration/step1.tsx | 8 +-
.../components/alerts/configuration/step2.tsx | 2 +-
.../components/alerts/manage_email_action.tsx | 18 +-
.../public/components/alerts/status.test.tsx | 2 +-
.../components/apm/instances/instances.js | 12 +-
.../components/beats/listing/listing.js | 12 +-
.../components/chart/__tests__/get_color.js | 2 +-
.../chart/__tests__/get_last_value.js | 2 +-
.../components/chart/__tests__/get_title.js | 2 +-
.../chart/__tests__/get_values_for_legend.js | 2 +-
.../public/components/chart/chart_target.js | 8 +-
.../public/components/chart/get_title.js | 2 +-
.../public/components/chart/get_units.js | 2 +-
.../components/chart/horizontal_legend.js | 2 +-
.../chart/monitoring_timeseries_container.js | 4 +-
.../chart/timeseries_visualization.js | 2 +-
.../components/cluster/listing/listing.js | 6 +-
.../cluster/overview/elasticsearch_panel.js | 2 +-
.../cluster/overview/license_text.js | 2 +-
.../components/elasticsearch/ccr/ccr.js | 10 +-
.../elasticsearch/indices/indices.js | 18 +-
.../components/elasticsearch/nodes/cells.js | 2 +-
.../components/elasticsearch/nodes/nodes.js | 6 +-
.../shard_activity/parse_props.js | 6 +-
.../shard_activity/recovery_index.js | 2 +-
.../shard_activity/shard_activity.js | 10 +-
.../shard_activity/source_destination.js | 2 +-
.../shard_allocation/components/assigned.js | 4 +-
.../components/cluster_view.js | 6 +-
.../shard_allocation/components/shard.js | 6 +-
.../shard_allocation/components/table_body.js | 2 +-
.../shard_allocation/components/table_head.js | 2 +-
.../shard_allocation/components/unassigned.js | 2 +-
.../shard_allocation/lib/decorate_shards.js | 6 +-
.../shard_allocation/lib/vents.js | 8 +-
.../shard_allocation/shard_allocation.js | 2 +-
.../transformers/indices_by_nodes.js | 4 +-
.../transformers/nodes_by_indices.js | 6 +-
.../components/kibana/instances/instances.js | 10 +-
.../monitoring/public/components/logs/logs.js | 10 +-
.../components/logstash/listing/listing.js | 14 +-
.../logstash/listing/listing.test.js | 2 +-
.../pipeline_listing/pipeline_listing.js | 6 +-
.../models/graph/__tests__/index.js | 198 +--
.../pipeline_viewer/models/graph/if_vertex.js | 12 +-
.../pipeline_viewer/models/graph/index.js | 22 +-
.../pipeline_viewer/models/graph/vertex.js | 6 +-
.../models/list/flatten_pipeline_section.js | 2 +-
.../pipeline/__tests__/make_statement.js | 4 +-
.../models/pipeline/if_statement.js | 4 +-
.../models/pipeline/pipeline.js | 17 +-
.../views/__test__/plugin_statement.test.js | 2 +-
.../views/__test__/statement_list.test.js | 2 +-
.../pipeline_viewer/views/detail_drawer.js | 6 +-
.../pipeline_viewer/views/statement_list.js | 10 +-
.../metricbeat_migration/flyout/flyout.js | 8 +-
.../no_data/__tests__/checker_errors.test.js | 2 +-
.../components/no_data/checker_errors.js | 2 +-
.../no_data/reasons/reason_found.js | 2 +-
.../public/components/renderers/setup_mode.js | 2 +-
.../sparkline/__test__/index.test.js | 4 +-
.../sparkline/sparkline_flot_chart.js | 4 +-
.../public/components/table/eui_table.js | 4 +-
.../public/components/table/eui_table_ssp.js | 2 +-
.../public/components/table/storage.js | 12 +-
.../elasticsearch/ml_job_listing/index.js | 8 +-
.../__tests__/monitoring_main_controller.js | 2 +-
.../public/directives/main/index.js | 10 +-
.../plugins/monitoring/public/jest.helpers.ts | 2 +-
.../public/lib/calculate_shard_stats.js | 2 +-
.../__tests__/enabler.test.js | 2 +-
.../__tests__/start_checks.test.js | 4 +-
.../elasticsearch_settings/start_checks.js | 4 +-
.../public/lib/ensure_minimum_time.js | 2 +-
.../public/lib/ensure_minimum_time.test.js | 14 +-
.../monitoring/public/lib/get_page_data.js | 4 +-
.../monitoring/public/lib/route_init.js | 2 +-
.../monitoring/public/lib/setup_mode.test.js | 16 +-
x-pack/plugins/monitoring/public/plugin.ts | 2 +-
.../public/services/__tests__/executor.js | 12 +-
.../monitoring/public/services/breadcrumbs.js | 2 +-
.../monitoring/public/services/clusters.js | 6 +-
.../monitoring/public/services/executor.js | 2 +-
x-pack/plugins/monitoring/public/url_state.ts | 2 +-
.../public/views/__tests__/base_controller.js | 12 +-
.../views/__tests__/base_table_controller.js | 2 +-
.../monitoring/public/views/alerts/index.js | 8 +-
.../public/views/apm/instance/index.js | 4 +-
.../public/views/apm/instances/index.js | 4 +-
.../public/views/apm/overview/index.js | 4 +-
.../public/views/base_controller.js | 4 +-
.../public/views/base_table_controller.js | 2 +-
.../public/views/beats/beat/get_page_data.js | 4 +-
.../public/views/beats/beat/index.js | 2 +-
.../views/beats/listing/get_page_data.js | 4 +-
.../public/views/beats/listing/index.js | 2 +-
.../views/beats/overview/get_page_data.js | 4 +-
.../public/views/beats/overview/index.js | 2 +-
.../public/views/cluster/listing/index.js | 6 +-
.../public/views/cluster/overview/index.js | 4 +-
.../views/elasticsearch/ccr/get_page_data.js | 4 +-
.../public/views/elasticsearch/ccr/index.js | 4 +-
.../elasticsearch/ccr/shard/get_page_data.js | 4 +-
.../views/elasticsearch/ccr/shard/index.js | 6 +-
.../elasticsearch/index/advanced/index.js | 8 +-
.../public/views/elasticsearch/index/index.js | 8 +-
.../views/elasticsearch/indices/index.js | 4 +-
.../elasticsearch/ml_jobs/get_page_data.js | 4 +-
.../views/elasticsearch/ml_jobs/index.js | 2 +-
.../elasticsearch/node/advanced/index.js | 8 +-
.../views/elasticsearch/node/get_page_data.js | 4 +-
.../public/views/elasticsearch/node/index.js | 8 +-
.../public/views/elasticsearch/nodes/index.js | 8 +-
.../elasticsearch/overview/controller.js | 4 +-
.../public/views/kibana/instance/index.js | 6 +-
.../views/kibana/instances/get_page_data.js | 4 +-
.../public/views/kibana/instances/index.js | 2 +-
.../public/views/kibana/overview/index.js | 8 +-
.../monitoring/public/views/license/index.js | 2 +-
.../views/logstash/node/advanced/index.js | 6 +-
.../public/views/logstash/node/index.js | 6 +-
.../views/logstash/node/pipelines/index.js | 6 +-
.../views/logstash/nodes/get_page_data.js | 4 +-
.../public/views/logstash/nodes/index.js | 2 +-
.../public/views/logstash/overview/index.js | 8 +-
.../public/views/logstash/pipeline/index.js | 14 +-
.../public/views/logstash/pipelines/index.js | 10 +-
.../no_data/__tests__/model_updater.test.js | 2 +-
.../public/views/no_data/controller.js | 2 +-
.../public/views/no_data/model_updater.js | 2 +-
.../server/__tests__/deprecations.js | 18 +-
.../server/alerts/license_expiration.test.ts | 16 +-
.../server/cloud/__tests__/cloud_service.js | 4 +-
x-pack/plugins/monitoring/server/cloud/aws.js | 4 +-
.../plugins/monitoring/server/cloud/azure.js | 4 +-
x-pack/plugins/monitoring/server/cloud/gcp.js | 6 +-
.../__tests__/alerts_cluster_search.js | 12 +-
.../__tests__/alerts_clusters_aggregation.js | 8 +-
.../__tests__/fixtures/create_stubs.js | 5 +-
.../__tests__/verify_monitoring_license.js | 30 +-
.../cluster_alerts/alerts_cluster_search.js | 6 +-
.../alerts_clusters_aggregation.js | 2 +-
x-pack/plugins/monitoring/server/config.ts | 10 +-
.../__tests__/bulk_uploader.js | 54 +-
.../server/kibana_monitoring/bulk_uploader.js | 6 +-
.../server/lib/__tests__/calculate_auto.js | 2 +-
.../lib/__tests__/calculate_overall_status.js | 6 +-
.../server/lib/__tests__/create_query.js | 4 +-
.../server/lib/__tests__/helpers.js | 2 +-
.../server/lib/alerts/fetch_cluster_state.ts | 2 +-
.../server/lib/alerts/fetch_licenses.ts | 2 +-
.../server/lib/alerts/fetch_status.ts | 2 +-
.../lib/alerts/get_ccs_index_pattern.ts | 4 +-
.../monitoring/server/lib/apm/_apm_stats.js | 4 +-
.../server/lib/apm/get_apms_for_clusters.js | 2 +-
.../lib/beats/__tests__/create_beats_query.js | 2 +-
.../server/lib/beats/_beats_stats.js | 4 +-
.../lib/beats/get_beats_for_clusters.js | 2 +-
.../server/lib/beats/get_latest_stats.js | 4 +-
.../monitoring/server/lib/calculate_auto.js | 2 +-
.../monitoring/server/lib/ccs_utils.js | 2 +-
.../__test__/get_clusters_summary.test.js | 2 +-
.../__tests__/flag_supported_clusters.js | 25 +-
.../cluster/__tests__/get_clusters_state.js | 8 +-
.../lib/cluster/flag_supported_clusters.js | 10 +-
.../server/lib/cluster/get_cluster_license.js | 2 +-
.../server/lib/cluster/get_cluster_stats.js | 2 +-
.../lib/cluster/get_clusters_from_request.js | 10 +-
.../server/lib/cluster/get_clusters_state.js | 8 +-
.../server/lib/cluster/get_clusters_stats.js | 6 +-
.../lib/cluster/get_clusters_summary.js | 2 +-
.../server/lib/details/get_metrics.js | 6 +-
.../server/lib/details/get_series.js | 6 +-
.../lib/elasticsearch/convert_metric_names.js | 2 +-
.../lib/elasticsearch/get_last_recovery.js | 4 +-
.../server/lib/elasticsearch/get_ml_jobs.js | 4 +-
.../indices/get_index_summary.js | 2 +-
.../lib/elasticsearch/indices/get_indices.js | 4 +-
.../elasticsearch/nodes/__tests__/lookups.js | 4 +-
.../elasticsearch/nodes/get_node_summary.js | 6 +-
.../nodes/get_nodes/get_live_nodes.js | 2 +-
.../nodes/get_nodes/get_metric_aggs.js | 2 +-
.../nodes/get_nodes/get_node_ids.js | 2 +-
.../nodes/get_nodes/get_nodes.js | 2 +-
.../nodes/get_nodes/get_paginated_nodes.js | 6 +-
.../nodes/get_nodes/handle_response.js | 2 +-
.../nodes/get_nodes/map_nodes_metrics.js | 8 +-
.../nodes/get_nodes/sort_nodes.js | 2 +-
.../shards/__tests__/get_shard_stats.js | 4 +-
.../calculate_shard_stat_indices_totals.js | 2 +-
.../get_indices_unassigned_shard_stats.js | 4 +-
...get_indices_unassigned_shard_stats.test.js | 2 +-
.../shards/get_nodes_shard_count.test.js | 2 +-
.../shards/get_shard_allocation.test.js | 4 +-
.../elasticsearch/shards/get_shard_stats.js | 2 +-
.../shards/normalize_shard_objects.js | 12 +-
.../__tests__/cluster.js | 8 +-
.../elasticsearch_settings/__tests__/nodes.js | 2 +-
.../lib/elasticsearch_settings/find_reason.js | 8 +-
.../server/lib/errors/auth_errors.js | 2 +-
.../server/lib/filter_partial_buckets.js | 2 +-
.../lib/kibana/__tests__/get_kibana_info.js | 4 +-
.../server/lib/kibana/get_kibanas.js | 4 +-
.../lib/kibana/get_kibanas_for_clusters.js | 8 +-
.../server/lib/logs/get_log_types.js | 4 +-
.../monitoring/server/lib/logs/get_logs.js | 2 +-
.../lib/logstash/__tests__/get_node_info.js | 8 +-
.../server/lib/logstash/get_cluster_status.js | 2 +-
.../lib/logstash/get_logstash_for_clusters.js | 12 +-
.../server/lib/logstash/get_nodes.js | 4 +-
.../lib/logstash/get_paginated_pipelines.js | 16 +-
.../server/lib/logstash/get_pipeline.js | 4 +-
.../server/lib/logstash/get_pipeline_ids.js | 4 +-
.../lib/logstash/get_pipeline_versions.js | 2 +-
.../lib/logstash/get_pipeline_vertex.js | 6 +-
.../server/lib/logstash/sort_pipelines.js | 2 +-
.../lib/metrics/classes/quota_metric.js | 2 +-
.../__test__/latency_calculation.test.js | 2 +-
.../lib/metrics/elasticsearch/classes.js | 12 +-
.../server/lib/metrics/logstash/classes.js | 12 +-
.../server/lib/pagination/filter.js | 2 +-
.../__test__/get_collection_status.test.js | 5 +-
.../setup/collection/get_collection_status.js | 2 +-
.../monitoring/server/license_service.ts | 2 +-
.../routes/api/v1/alerts/legacy_alerts.js | 2 +-
.../api/v1/apm/_get_apm_cluster_status.js | 2 +-
.../api/v1/check_access/check_access.js | 2 +-
.../server/routes/api/v1/cluster/cluster.js | 2 +-
.../server/routes/api/v1/cluster/clusters.js | 2 +-
.../server/routes/api/v1/elasticsearch/ccr.js | 6 +-
.../api/v1/elasticsearch/index_detail.js | 2 +-
.../api/v1/elasticsearch/node_detail.js | 2 +-
.../v1/kibana/_get_kibana_cluster_status.js | 2 +-
.../server/routes/api/v1/logstash/node.js | 2 +-
.../server/routes/api/v1/logstash/pipeline.js | 2 +-
.../pipelines/cluster_pipeline_ids.js | 2 +-
.../logstash/pipelines/cluster_pipelines.js | 2 +-
.../v1/logstash/pipelines/node_pipelines.js | 2 +-
.../api/v1/setup/cluster_setup_status.js | 2 +-
...sable_elasticsearch_internal_collection.js | 2 +-
.../routes/api/v1/setup/node_setup_status.js | 2 +-
.../plugins/monitoring/server/routes/index.js | 2 +-
.../telemetry_collection/get_all_stats.ts | 4 +-
.../telemetry_collection/get_beats_stats.ts | 6 +-
.../get_cluster_uuids.test.ts | 4 +-
.../telemetry_collection/get_cluster_uuids.ts | 2 +-
.../telemetry_collection/get_es_stats.test.ts | 4 +-
.../telemetry_collection/get_es_stats.ts | 2 +-
.../get_high_level_stats.ts | 2 +-
.../telemetry_collection/get_licenses.test.ts | 4 +-
.../public/components/action_menu.tsx | 12 +-
x-pack/plugins/observability/server/plugin.ts | 2 +-
.../server/utils/create_or_update_index.ts | 2 +-
.../server/lib/get_next_midnight.test.ts | 5 +-
.../lib/tasks/visualizations/task_runner.ts | 2 +-
.../oss_telemetry/server/test_utils/index.ts | 4 +-
.../public/application/components/main.tsx | 2 +-
.../components/output_pane/context_tab.tsx | 8 +-
.../components/output_pane/parameters_tab.tsx | 2 +-
.../public/application/lib/format.test.ts | 2 +-
x-pack/plugins/painless_lab/public/plugin.tsx | 2 +-
.../painless_lab/server/services/license.ts | 2 +-
.../helpers/http_requests.js | 6 +-
.../helpers/remote_clusters_add.helpers.js | 4 +-
.../helpers/remote_clusters_edit.helpers.js | 2 +-
.../helpers/remote_clusters_list.helpers.js | 4 +-
.../remote_clusters_add.test.js | 10 +-
.../remote_clusters_list.test.js | 6 +-
.../common/lib/cluster_serialization.ts | 2 +-
.../remote_cluster_form.js | 32 +-
.../remote_cluster_form.test.js | 2 +-
.../validators/validate_name.test.js | 4 +-
.../validators/validate_seeds.js | 2 +-
.../remote_cluster_add.container.js | 6 +-
.../remote_cluster_add/remote_cluster_add.js | 2 +-
.../remote_cluster_edit.container.js | 10 +-
.../remote_cluster_edit.js | 2 +-
...emove_cluster_button_provider.container.js | 4 +-
.../remove_cluster_button_provider.js | 4 +-
.../detail_panel/detail_panel.container.js | 4 +-
.../detail_panel/detail_panel.js | 4 +-
.../remote_cluster_list.container.js | 6 +-
.../remote_cluster_table.container.js | 4 +-
.../remote_cluster_table.js | 16 +-
.../public/application/services/routing.js | 6 +-
.../application/services/validate_address.js | 2 +-
.../services/validate_address.test.js | 12 +-
.../application/store/actions/add_cluster.js | 6 +-
.../application/store/actions/detail_panel.js | 4 +-
.../application/store/actions/edit_cluster.js | 10 +-
.../store/actions/load_clusters.js | 2 +-
.../store/actions/refresh_clusters.js | 2 +-
.../store/actions/remove_clusters.js | 8 +-
.../store/middleware/detail_panel.js | 2 +-
.../application/store/reducers/clusters.js | 8 +-
.../application/store/selectors/index.js | 26 +-
.../plugins/remote_clusters/server/plugin.ts | 2 +-
.../reporting/common/cancellation_token.ts | 2 +-
x-pack/plugins/reporting/common/poller.ts | 2 +-
.../buttons/report_error_button.tsx | 2 +-
.../public/components/report_listing.tsx | 6 +-
.../components/reporting_panel_content.tsx | 2 +-
.../public/lib/stream_handler.test.ts | 18 +-
.../reporting/public/lib/stream_handler.ts | 2 +-
.../panel_actions/get_csv_panel_action.tsx | 2 +-
x-pack/plugins/reporting/public/plugin.tsx | 8 +-
.../register_csv_reporting.tsx | 2 +-
.../register_pdf_png_reporting.tsx | 2 +-
.../reporting/server/config/create_config.ts | 9 +-
.../default_chromium_sandbox_disabled.test.ts | 2 +-
x-pack/plugins/rollup/fixtures/job.js | 2 +-
.../components/field_list/field_list.js | 2 +-
.../job_action_menu.container.js | 6 +-
.../job_action_menu/job_action_menu.js | 8 +-
.../job_create/job_create.container.js | 6 +-
.../sections/job_create/job_create.js | 14 +-
.../steps/components/field_chooser.js | 8 +-
.../job_create/steps/step_date_histogram.js | 10 +-
.../job_create/steps/step_histogram.js | 8 +-
.../job_create/steps/step_logistics.js | 12 +-
.../sections/job_create/steps/step_metrics.js | 20 +-
.../sections/job_create/steps/step_review.js | 2 +-
.../sections/job_create/steps/step_terms.js | 6 +-
.../sections/job_create/steps_config/index.js | 12 +-
.../detail_panel/detail_panel.container.js | 4 +-
.../detail_panel/detail_panel.test.js | 18 +-
.../sections/job_list/job_list.container.js | 8 +-
.../sections/job_list/job_list.test.js | 10 +-
.../job_list/job_table/job_table.container.js | 12 +-
.../sections/job_list/job_table/job_table.js | 34 +-
.../job_list/job_table/job_table.test.js | 24 +-
.../public/crud_app/services/filter_items.js | 4 +-
.../crud_app/services/flatten_panel_tree.js | 2 +-
.../public/crud_app/services/format_fields.js | 2 +-
.../rollup/public/crud_app/services/jobs.js | 6 +-
.../crud_app/services/noticeable_delay.js | 2 +-
.../public/crud_app/services/query_params.js | 2 +-
.../crud_app/services/retype_metrics.js | 6 +-
.../public/crud_app/services/routing.js | 6 +-
.../public/crud_app/services/sort_table.js | 2 +-
.../crud_app/services/track_ui_metric.ts | 2 +-
.../store/actions/change_job_status.js | 4 +-
.../crud_app/store/actions/clone_job.js | 4 +-
.../crud_app/store/actions/create_job.js | 6 +-
.../crud_app/store/actions/delete_jobs.js | 2 +-
.../crud_app/store/actions/detail_panel.js | 4 +-
.../crud_app/store/actions/load_jobs.js | 2 +-
.../crud_app/store/actions/refresh_jobs.js | 2 +-
.../crud_app/store/actions/table_state.js | 8 +-
.../crud_app/store/middleware/clone_job.js | 2 +-
.../crud_app/store/middleware/detail_panel.js | 2 +-
.../public/crud_app/store/reducers/jobs.js | 4 +-
.../public/crud_app/store/selectors/index.js | 38 +-
.../rollup_index_pattern_creation_config.js | 6 +-
.../rollup_index_pattern_list_config.js | 8 +-
.../helpers/job_clone.helpers.js | 2 +-
.../helpers/job_create.helpers.js | 12 +-
.../helpers/job_list.helpers.js | 2 +-
.../job_create_clone.test.js | 10 +-
.../job_create_date_histogram.test.js | 8 +-
.../job_create_histogram.test.js | 2 +-
.../job_create_logistics.test.js | 36 +-
.../job_create_metrics.test.js | 40 +-
.../job_create_review.test.js | 10 +-
.../job_create_terms.test.js | 2 +-
.../test/client_integration/job_list.test.js | 2 +-
.../client_integration/job_list_clone.test.js | 2 +-
.../rollup/server/collectors/register.ts | 6 +-
.../lib/__tests__/jobs_compatibility.js | 32 +-
.../rollup/server/lib/jobs_compatibility.ts | 2 +-
.../rollup/server/lib/map_capabilities.ts | 2 +-
.../lib/merge_capabilities_with_fields.ts | 8 +-
.../rollup_search_capabilities.test.js | 2 +-
x-pack/plugins/rollup/server/plugin.ts | 2 +-
.../rollup/server/rollup_data_enricher.ts | 2 +-
.../register_fields_for_wildcard_route.ts | 2 +-
.../register_validate_index_pattern_route.ts | 2 +-
.../plugins/rollup/server/services/license.ts | 2 +-
.../__jest__/unsafe_utils.test.ts | 12 +-
.../components/profile_tree/init_data.ts | 4 +-
.../components/profile_tree/profile_tree.tsx | 2 +-
.../shard_details/shard_details.tsx | 2 +-
.../components/profile_tree/unsafe_utils.ts | 10 +-
.../components/profile_tree/utils.ts | 2 +-
.../application/containers/main/main.tsx | 2 +-
.../containers/profile_query_editor.tsx | 4 +-
.../public/application/editor/editor.test.tsx | 2 +-
.../utils/check_for_json_errors.test.ts | 6 +-
.../application/utils/ns_to_pretty.test.ts | 18 +-
.../plugins/searchprofiler/public/plugin.ts | 2 +-
.../plugins/searchprofiler/server/plugin.ts | 2 +-
.../common/licensing/license_service.test.ts | 2 +-
.../common/licensing/license_service.ts | 4 +-
.../common/model/authenticated_user.test.ts | 2 +-
.../common/privilege_calculator_utils.ts | 2 +-
.../access_agreement_page.tsx | 4 +-
.../authentication_state_page.tsx | 2 +-
.../disabled_login_form.tsx | 2 +-
.../components/login_form/login_form.test.tsx | 12 +-
.../components/login_form/login_form.tsx | 4 +-
.../overwritten_session_page.tsx | 2 +-
.../api_keys_grid/api_keys_grid_page.test.tsx | 14 +-
.../api_keys_grid/api_keys_grid_page.tsx | 20 +-
.../management/management_service.test.ts | 2 +-
.../public/management/management_service.ts | 2 +-
.../role_combo_box/role_combo_box.tsx | 8 +-
.../delete_provider/delete_provider.test.tsx | 8 +-
.../delete_provider/delete_provider.tsx | 6 +-
.../edit_role_mapping_page.test.tsx | 10 +-
.../edit_role_mapping_page.tsx | 8 +-
.../mapping_info_panel/mapping_info_panel.tsx | 6 +-
.../role_selector/role_selector.tsx | 10 +-
.../role_selector/role_template_editor.tsx | 6 +-
.../role_template_type_select.tsx | 2 +-
.../rule_editor_panel/field_rule_editor.tsx | 4 +-
.../rule_group_editor.test.tsx | 14 +-
.../rule_editor_panel/rule_group_editor.tsx | 4 +-
.../rule_editor_panel/rule_group_title.tsx | 2 +-
.../rule_editor_panel/visual_rule_editor.tsx | 4 +-
.../role_mappings/model/all_rule.test.ts | 2 +-
.../role_mappings/model/all_rule.ts | 4 +-
.../role_mappings/model/any_rule.test.ts | 2 +-
.../role_mappings/model/any_rule.ts | 6 +-
.../model/except_all_rule.test.ts | 2 +-
.../role_mappings/model/except_all_rule.ts | 4 +-
.../model/except_any_rule.test.ts | 2 +-
.../role_mappings/model/except_any_rule.ts | 6 +-
.../role_mappings/model/field_rule.test.ts | 2 +-
.../role_mappings/model/rule_builder.test.ts | 2 +-
.../role_mappings/model/rule_builder.ts | 2 +-
.../role_mappings/role_mappings_api_client.ts | 4 +-
.../role_mappings_grid_page.tsx | 14 +-
.../roles/edit_role/edit_role_page.tsx | 18 +-
.../privileges/es/cluster_privileges.tsx | 4 +-
.../es/elasticsearch_privileges.tsx | 4 +-
.../privileges/es/index_privilege_form.tsx | 4 +-
.../privileges/es/index_privileges.tsx | 4 +-
.../feature_table/__fixtures__/index.ts | 2 +-
.../feature_table/change_all_privileges.tsx | 2 +-
.../feature_table/feature_table.test.tsx | 8 +-
.../kibana/feature_table/feature_table.tsx | 8 +-
.../feature_table_expanded_row.tsx | 8 +-
.../feature_table/sub_feature_form.test.tsx | 6 +-
.../kibana/feature_table/sub_feature_form.tsx | 10 +-
.../feature_table_cell.test.tsx | 7 +-
.../privilege_form_calculator.test.ts | 12 +-
.../privilege_form_calculator.ts | 34 +-
.../privilege_summary/__fixtures__/index.ts | 4 +-
.../privilege_summary_calculator.ts | 12 +-
.../privilege_summary_expanded_row.tsx | 4 +-
.../privilege_summary_table.test.tsx | 2 +-
.../privilege_summary_table.tsx | 10 +-
.../privilege_summary/space_column_header.tsx | 8 +-
.../privilege_selector.tsx | 2 +-
.../simple_privilege_section.tsx | 14 +-
.../privilege_display.tsx | 2 +-
.../privilege_space_form.test.tsx | 5 +-
.../privilege_space_form.tsx | 8 +-
.../privilege_space_table.test.tsx | 2 +-
.../privilege_space_table.tsx | 16 +-
.../space_aware_privilege_section.tsx | 2 +-
.../space_selector.tsx | 6 +-
.../spaces_popover_list.test.tsx | 7 +-
.../spaces_popover_list.tsx | 2 +-
.../roles/edit_role/validate_role.test.ts | 2 +-
.../roles/edit_role/validate_role.ts | 4 +-
.../roles/model/kibana_privilege.ts | 2 +-
.../roles/model/kibana_privileges.ts | 6 +-
.../roles/model/privilege_collection.ts | 2 +-
.../management/roles/model/secured_feature.ts | 2 +-
.../roles/model/secured_sub_feature.ts | 6 +-
.../model/sub_feature_privilege_group.ts | 2 +-
.../management/roles/roles_api_client.ts | 6 +-
.../confirm_delete/confirm_delete.tsx | 4 +-
.../roles/roles_grid/roles_grid_page.test.tsx | 10 +-
.../roles/roles_grid/roles_grid_page.tsx | 4 +-
.../change_password_form.tsx | 2 +-
.../confirm_delete_users.test.tsx | 2 +-
.../confirm_delete_users.tsx | 4 +-
.../users/edit_user/edit_user_page.tsx | 8 +-
.../users/users_grid/users_grid_page.tsx | 4 +-
.../nav_control/nav_control_component.tsx | 2 +-
.../nav_control/nav_control_service.test.ts | 2 +-
.../public/session/session_expired.test.ts | 4 +-
.../session_timeout_http_interceptor.test.ts | 2 +-
...thorized_response_http_interceptor.test.ts | 6 +-
.../server/authentication/authenticator.ts | 4 +-
.../server/authentication/providers/http.ts | 2 +-
.../authentication/providers/kerberos.test.ts | 6 +-
.../authentication/providers/kerberos.ts | 2 +-
.../authentication/providers/oidc.test.ts | 2 +-
.../authentication/providers/pki.test.ts | 4 +-
.../authentication/providers/saml.test.ts | 2 +-
.../server/authentication/providers/saml.ts | 5 +-
.../authentication/providers/token.test.ts | 4 +-
.../server/authorization/actions/ui.ts | 2 +-
.../authorization/api_authorization.test.ts | 4 +-
.../server/authorization/api_authorization.ts | 4 +-
.../authorization/app_authorization.test.ts | 4 +-
.../server/authorization/app_authorization.ts | 2 +-
.../authorization/check_privileges.test.ts | 2 +-
.../server/authorization/check_privileges.ts | 4 +-
.../check_saved_objects_privileges.test.ts | 2 +-
.../check_saved_objects_privileges.ts | 2 +-
.../disable_ui_capabilities.test.ts | 6 +-
.../authorization/disable_ui_capabilities.ts | 10 +-
.../privilege_serializer.test.ts | 18 +-
.../authorization/privilege_serializer.ts | 2 +-
.../feature_privilege_builder/api.ts | 2 +-
.../feature_privilege_builder/app.ts | 2 +-
.../feature_privilege_builder/catalogue.ts | 2 +-
.../feature_privilege_builder/index.ts | 2 +-
.../feature_privilege_builder/management.ts | 2 +-
.../feature_privilege_builder/saved_object.ts | 8 +-
.../feature_privilege_builder/ui.ts | 2 +-
.../feature_privilege_iterator.test.ts | 2 +-
.../authorization/privileges/privileges.ts | 8 +-
.../register_privileges_with_cluster.test.ts | 2 +-
.../validate_feature_privileges.ts | 8 +-
x-pack/plugins/security/server/config.ts | 8 +-
x-pack/plugins/security/server/index.ts | 2 +-
x-pack/plugins/security/server/plugin.ts | 4 +-
.../server/routes/api_keys/invalidate.ts | 2 +-
.../routes/authentication/basic.test.ts | 4 +-
.../authorization/privileges/get_builtin.ts | 4 +-
.../roles/model/elasticsearch_role.ts | 58 +-
.../authorization/roles/model/put_payload.ts | 16 +-
.../server/routes/indices/get_fields.ts | 2 +-
.../routes/role_mapping/feature_check.ts | 8 +-
.../server/routes/role_mapping/get.ts | 2 +-
.../server/routes/views/index.test.ts | 6 +-
.../security/server/saved_objects/index.ts | 18 +-
...ecure_saved_objects_client_wrapper.test.ts | 10 +-
.../secure_saved_objects_client_wrapper.ts | 12 +-
.../common/endpoint/generate_data.test.ts | 4 +-
.../siem/common/endpoint/generate_data.ts | 8 +-
x-pack/plugins/siem/common/exact_check.ts | 4 +-
x-pack/plugins/siem/common/format_errors.ts | 6 +-
x-pack/plugins/siem/common/test_utils.ts | 2 +-
.../siem/cypress/integration/cases.spec.ts | 16 +-
.../integration/cases_connectors.spec.ts | 8 +-
.../cypress/integration/detections.spec.ts | 14 +-
.../integration/detections_timeline.spec.ts | 6 +-
.../cypress/integration/events_viewer.spec.ts | 20 +-
.../integration/fields_browser.spec.ts | 22 +-
.../siem/cypress/integration/inspect.spec.ts | 4 +-
.../siem/cypress/integration/overview.spec.ts | 12 +-
.../cypress/integration/pagination.spec.ts | 8 +-
.../signal_detection_rules.spec.ts | 16 +-
.../signal_detection_rules_custom.spec.ts | 100 +-
.../signal_detection_rules_export.spec.ts | 4 +-
.../signal_detection_rules_ml.spec.ts | 78 +-
.../signal_detection_rules_prebuilt.spec.ts | 22 +-
.../timeline_data_providers.spec.ts | 4 +-
.../timeline_search_or_filter.spec.ts | 2 +-
.../cypress/integration/url_state.spec.ts | 13 +-
x-pack/plugins/siem/cypress/plugins/index.js | 2 +-
.../plugins/siem/cypress/support/commands.js | 4 +-
x-pack/plugins/siem/cypress/support/index.js | 4 +-
.../siem/cypress/tasks/configure_cases.ts | 4 +-
.../siem/cypress/tasks/create_new_case.ts | 6 +-
.../siem/cypress/tasks/create_new_rule.ts | 36 +-
.../plugins/siem/cypress/tasks/date_picker.ts | 28 +-
.../plugins/siem/cypress/tasks/detections.ts | 30 +-
.../siem/cypress/tasks/fields_browser.ts | 4 +-
.../siem/cypress/tasks/hosts/all_hosts.ts | 14 +-
.../cypress/tasks/hosts/authentications.ts | 4 +-
.../siem/cypress/tasks/hosts/events.ts | 9 +-
.../cypress/tasks/hosts/uncommon_processes.ts | 4 +-
x-pack/plugins/siem/cypress/tasks/login.ts | 2 +-
x-pack/plugins/siem/cypress/tasks/overview.ts | 4 +-
.../plugins/siem/cypress/tasks/siem_header.ts | 9 +-
.../plugins/siem/cypress/tasks/siem_main.ts | 2 +-
.../cypress/tasks/signal_detection_rules.ts | 20 +-
x-pack/plugins/siem/cypress/tasks/timeline.ts | 15 +-
.../detection_engine_header_page/index.tsx | 2 +-
.../components/rules/add_item_form/index.tsx | 2 +-
.../rules/description_step/helpers.test.tsx | 20 +-
.../rules/description_step/helpers.tsx | 10 +-
.../rules/description_step/index.test.tsx | 5 +-
.../rules/description_step/index.tsx | 2 +-
.../description_step/ml_job_description.tsx | 2 +-
.../alerts/components/rules/mitre/index.tsx | 10 +-
.../components/rules/ml_job_select/index.tsx | 4 +-
.../components/rules/query_bar/index.tsx | 2 +-
.../rules/rule_actions_field/index.tsx | 4 +-
.../rule_actions_overflow/index.test.tsx | 45 +-
.../rules/rule_actions_overflow/index.tsx | 2 +-
.../components/rules/rule_switch/index.tsx | 2 +-
.../rules/schedule_item_form/index.tsx | 4 +-
.../rules/step_about_rule/index.test.tsx | 5 +-
.../rules/step_about_rule/schema.tsx | 4 +-
.../step_about_rule_details/index.test.tsx | 14 +-
.../rules/step_about_rule_details/index.tsx | 4 +-
.../rules/step_rule_actions/index.tsx | 2 +-
.../rules/step_rule_actions/schema.tsx | 2 +-
.../rules/step_rule_actions/utils.ts | 2 +-
.../rules/throttle_select_field/index.tsx | 4 +-
.../alerts/components/signals/actions.tsx | 6 +-
.../alerts/components/signals/helpers.ts | 8 +-
.../signals_histogram_panel/index.tsx | 4 +-
.../containers/detection_engine/rules/api.ts | 12 +-
.../rules/fetch_index_patterns.tsx | 4 +-
.../rules/use_pre_packaged_rules.tsx | 2 +-
.../detection_engine/rules/use_rule.test.tsx | 2 +-
.../rules/use_rule_status.tsx | 4 +-
.../detection_engine/rules/use_rules.test.tsx | 6 +-
.../signals/use_query.test.tsx | 4 +-
.../detection_engine/rules/all/actions.tsx | 10 +-
.../rules/all/batch_actions.tsx | 18 +-
.../rules/all/columns.test.tsx | 4 +-
.../detection_engine/rules/all/columns.tsx | 4 +-
.../detection_engine/rules/all/index.tsx | 6 +-
.../detection_engine/rules/all/reducer.ts | 8 +-
.../rules_table_filters.tsx | 4 +-
.../detection_engine/rules/create/helpers.ts | 10 +-
.../detection_engine/rules/create/index.tsx | 8 +-
.../rules/details/failure_history.tsx | 2 +-
.../detection_engine/rules/details/index.tsx | 2 +-
.../detection_engine/rules/edit/index.tsx | 4 +-
.../pages/detection_engine/rules/helpers.tsx | 4 +-
x-pack/plugins/siem/public/app/home/index.tsx | 2 +-
.../components/add_comment/index.test.tsx | 15 +-
.../components/all_cases/columns.test.tsx | 15 +-
.../cases/components/all_cases/index.test.tsx | 84 +-
.../cases/components/all_cases/index.tsx | 4 +-
.../all_cases/table_filters.test.tsx | 38 +-
.../components/all_cases/table_filters.tsx | 16 +-
.../cases/components/callout/index.test.tsx | 36 +-
.../public/cases/components/callout/index.tsx | 2 +-
.../components/case_header_page/index.tsx | 2 +-
.../components/case_view/actions.test.tsx | 15 +-
.../cases/components/case_view/index.test.tsx | 106 +-
.../cases/components/case_view/index.tsx | 10 +-
.../configure_cases/button.test.tsx | 42 +-
.../configure_cases/closure_options.test.tsx | 23 +-
.../closure_options_radio.test.tsx | 9 +-
.../configure_cases/connectors.test.tsx | 23 +-
.../components/configure_cases/connectors.tsx | 2 +-
.../connectors_dropdown.test.tsx | 17 +-
.../configure_cases/field_mapping.test.tsx | 10 +-
.../configure_cases/field_mapping.tsx | 2 +-
.../field_mapping_row.test.tsx | 20 +-
.../components/configure_cases/index.test.tsx | 5 +-
.../components/configure_cases/index.tsx | 10 +-
.../configure_cases/mapping.test.tsx | 113 +-
.../cases/components/configure_cases/utils.ts | 4 +-
.../cases/components/create/index.test.tsx | 15 +-
.../public/cases/components/create/index.tsx | 6 +-
.../components/edit_connector/index.test.tsx | 36 +-
.../cases/components/edit_connector/index.tsx | 2 +-
.../cases/components/filter_popover/index.tsx | 2 +-
.../cases/components/tag_list/index.test.tsx | 82 +-
.../cases/components/tag_list/index.tsx | 6 +-
.../user_action_tree/helpers.test.tsx | 68 +-
.../components/user_action_tree/helpers.tsx | 4 +-
.../user_action_tree/index.test.tsx | 33 +-
.../components/user_action_tree/index.tsx | 4 +-
.../user_action_markdown.test.tsx | 15 +-
.../user_action_title.test.tsx | 5 +-
.../siem/public/cases/containers/api.ts | 2 +-
.../cases/containers/use_bulk_update_case.tsx | 2 +-
.../cases/containers/use_delete_cases.tsx | 2 +-
.../containers/use_get_action_license.tsx | 2 +-
.../containers/use_get_case_user_actions.tsx | 6 +-
.../public/cases/containers/use_get_cases.tsx | 8 +-
.../cases/containers/use_get_reporters.tsx | 6 +-
.../containers/use_post_push_to_service.tsx | 5 +-
.../cases/containers/use_update_comment.tsx | 4 +-
.../siem/public/cases/containers/utils.ts | 2 +-
.../alerts_viewer/histogram_configs.ts | 2 +-
.../components/autocomplete_field/index.tsx | 14 +-
.../autocomplete_field/suggestion_item.tsx | 20 +-
.../components/charts/areachart.test.tsx | 64 +-
.../common/components/charts/areachart.tsx | 2 +-
.../components/charts/barchart.test.tsx | 71 +-
.../common/components/charts/barchart.tsx | 2 +-
.../charts/chart_place_holder.test.tsx | 18 +-
.../common/components/charts/common.test.tsx | 4 +-
.../common/components/charts/common.tsx | 4 +-
.../charts/draggable_legend.test.tsx | 2 +-
.../components/charts/draggable_legend.tsx | 2 +-
.../charts/draggable_legend_item.test.tsx | 32 +-
.../drag_and_drop/draggable_wrapper.tsx | 2 +-
.../draggable_wrapper_hover_content.test.tsx | 123 +-
.../drag_and_drop/droppable_wrapper.tsx | 4 +-
.../components/draggables/index.test.tsx | 56 +-
.../common/components/empty_value/index.tsx | 2 +-
.../components/endpoint/link_to_app.test.tsx | 8 +-
.../common/components/endpoint/page_view.tsx | 2 +-
.../error_toast_dispatcher/index.tsx | 2 +-
.../components/event_details/columns.tsx | 6 +-
.../event_details/event_details.test.tsx | 8 +-
.../event_details/event_details.tsx | 2 +-
.../event_fields_browser.test.tsx | 44 +-
.../event_details/event_fields_browser.tsx | 2 +-
.../components/event_details/helpers.tsx | 2 +-
.../event_details/stateful_event_details.tsx | 2 +-
.../events_viewer/events_viewer.test.tsx | 36 +-
.../events_viewer/events_viewer.tsx | 13 +-
.../components/events_viewer/index.test.tsx | 7 +-
.../common/components/events_viewer/index.tsx | 4 +-
.../external_link_icon/index.test.tsx | 27 +-
.../components/formatted_date/index.tsx | 8 +-
.../formatted_date/maybe_date.test.ts | 18 +-
.../header_page/editable_title.test.tsx | 50 +-
.../components/header_page/index.test.tsx | 58 +-
.../common/components/header_page/index.tsx | 14 +-
.../components/header_page/title.test.tsx | 21 +-
.../components/header_section/index.test.tsx | 39 +-
.../import_data_modal/index.test.tsx | 2 +-
.../components/import_data_modal/index.tsx | 2 +-
.../common/components/inspect/index.test.tsx | 83 +-
.../common/components/inspect/index.tsx | 2 +-
.../common/components/inspect/modal.test.tsx | 74 +-
.../common/components/inspect/modal.tsx | 4 +-
.../components/link_icon/index.test.tsx | 28 +-
.../common/components/link_icon/index.tsx | 22 +-
.../public/common/components/links/index.tsx | 4 +-
.../localized_date_tooltip/index.tsx | 5 +-
.../common/components/markdown/index.test.tsx | 86 +-
.../markdown/markdown_hint.test.tsx | 7 +-
.../components/matrix_histogram/index.tsx | 7 +-
.../ml/anomaly/use_anomalies_table_data.ts | 2 +-
.../ml/influencers/create_influencers.tsx | 4 +-
.../get_host_name_from_influencers.ts | 2 +-
.../get_network_from_influencers.ts | 2 +-
.../ml/score/anomaly_score.test.tsx | 5 +-
.../ml/score/anomaly_scores.test.tsx | 5 +-
.../ml/score/score_interval_to_datetime.ts | 16 +-
.../get_anomalies_host_table_columns.test.tsx | 11 +-
.../get_anomalies_host_table_columns.tsx | 8 +-
...t_anomalies_network_table_columns.test.tsx | 8 +-
.../get_anomalies_network_table_columns.tsx | 8 +-
.../common/components/ml_popover/api.tsx | 2 +-
.../common/components/ml_popover/helpers.tsx | 8 +-
.../hooks/use_siem_jobs_helpers.tsx | 16 +-
.../filters/groups_filter_popover.test.tsx | 17 +-
.../filters/groups_filter_popover.tsx | 6 +-
.../filters/jobs_table_filters.test.tsx | 30 +-
.../ml_popover/jobs_table/job_switch.tsx | 2 +-
.../ml_popover/jobs_table/jobs_table.test.tsx | 16 +-
.../ml_popover/jobs_table/jobs_table.tsx | 2 +-
.../components/ml_popover/ml_popover.test.tsx | 5 +-
.../components/ml_popover/ml_popover.tsx | 7 +-
.../common/components/navigation/index.tsx | 8 +-
.../navigation/tab_navigation/index.tsx | 4 +-
.../common/components/news_feed/helpers.ts | 2 +-
.../public/common/components/page/index.tsx | 8 +-
.../components/paginated_table/index.mock.tsx | 2 +-
.../components/paginated_table/index.test.tsx | 85 +-
.../common/components/search_bar/index.tsx | 4 +-
.../common/components/search_bar/selectors.ts | 5 +-
.../components/stat_items/index.test.tsx | 4 +-
.../common/components/stat_items/index.tsx | 14 +-
.../super_date_picker/index.test.tsx | 55 +-
.../components/super_date_picker/index.tsx | 4 +-
.../components/super_date_picker/selectors.ts | 20 +-
.../common/components/tables/helpers.test.tsx | 36 +-
.../common/components/tables/helpers.tsx | 4 +-
.../common/components/toasters/index.test.tsx | 14 +-
.../common/components/toasters/index.tsx | 2 +-
.../common/components/top_n/index.test.tsx | 85 +-
.../common/components/top_n/top_n.test.tsx | 19 +-
.../components/url_state/index.test.tsx | 10 +-
.../common/components/url_state/index.tsx | 2 +-
.../url_state/index_mocked.test.tsx | 10 +-
.../url_state/initialize_redux_by_url.tsx | 2 +-
.../components/url_state/test_dependencies.ts | 2 +-
.../common/components/utility_bar/styles.tsx | 6 +-
.../utility_bar/utility_bar_action.test.tsx | 7 +-
.../common/components/wrapper_page/index.tsx | 2 +-
.../histogram_configs.ts | 2 +-
.../anomalies_query_tab_body/utils.ts | 6 +-
.../events/last_event_time/index.ts | 4 +-
.../containers/matrix_histogram/index.ts | 4 +-
.../public/common/containers/source/index.tsx | 8 +-
..._navigate_by_router_event_handler.test.tsx | 4 +-
.../use_navigate_by_router_event_handler.ts | 2 +-
.../use_navigate_to_app_event_handler.ts | 2 +-
.../common/hooks/use_add_to_timeline.tsx | 2 +-
.../components/connector_flyout/index.tsx | 2 +-
.../common/lib/connectors/jira/flyout.tsx | 6 +-
.../lib/connectors/servicenow/flyout.tsx | 4 +-
.../public/common/lib/connectors/utils.ts | 2 +-
.../siem/public/common/lib/helpers/index.tsx | 4 +-
.../public/common/lib/helpers/scheduler.ts | 5 +-
.../siem/public/common/lib/keury/index.ts | 7 +-
.../mock/endpoint/app_context_render.tsx | 8 +-
.../siem/public/common/mock/match_media.ts | 2 +-
.../public/common/mock/timeline_results.ts | 2 +-
.../siem/public/common/store/app/reducer.ts | 2 +-
.../siem/public/common/store/app/selectors.ts | 2 +-
.../common/store/drag_and_drop/selectors.ts | 2 +-
.../plugins/siem/public/common/store/index.ts | 2 +-
.../public/common/store/inputs/helpers.ts | 6 +-
.../public/common/store/inputs/reducer.ts | 4 +-
.../public/common/store/inputs/selectors.ts | 33 +-
.../siem/public/common/store/test_utils.ts | 8 +-
.../common/utils/kql/use_update_kql.test.tsx | 2 +-
.../siem/public/endpoint_alerts/index.ts | 2 +-
.../store/alert_details.test.ts | 6 +-
.../endpoint_alerts/store/alert_list.test.ts | 6 +-
.../store/alert_list_pagination.test.ts | 2 +-
.../endpoint_alerts/store/middleware.ts | 2 +-
.../public/endpoint_alerts/store/selectors.ts | 4 +-
.../public/endpoint_alerts/view/index.tsx | 6 +-
.../endpoint_alerts/view/index_search_bar.tsx | 2 +-
.../siem/public/endpoint_hosts/index.ts | 2 +-
.../store/host_pagination.test.ts | 2 +-
.../public/endpoint_hosts/store/middleware.ts | 8 +-
.../public/endpoint_hosts/store/selectors.ts | 14 +-
.../details/components/flyout_sub_header.tsx | 8 +-
.../view/details/policy_response.tsx | 18 +-
.../siem/public/endpoint_hosts/view/hooks.ts | 2 +-
.../public/endpoint_hosts/view/index.test.tsx | 16 +-
.../siem/public/endpoint_policy/details.ts | 2 +-
.../siem/public/endpoint_policy/list.ts | 2 +-
.../store/policy_details/middleware.ts | 4 +-
.../store/policy_details/selectors.ts | 12 +-
.../store/policy_list/middleware.ts | 8 +-
.../store/policy_list/selectors.ts | 2 +-
.../endpoint_policy/view/agents_summary.tsx | 2 +-
.../view/policy_details.test.tsx | 2 +-
.../view/policy_forms/events/checkbox.tsx | 2 +-
.../view/policy_forms/events/linux.tsx | 2 +-
.../view/policy_forms/events/mac.tsx | 2 +-
.../view/policy_forms/events/windows.tsx | 2 +-
.../view/policy_forms/protections/malware.tsx | 6 +-
.../endpoint_policy/view/vertical_divider.ts | 6 +-
.../authentications_table/index.test.tsx | 8 +-
.../authentications_table/index.tsx | 14 +-
.../components/first_last_seen_host/index.tsx | 2 +-
.../hosts/components/hosts_table/columns.tsx | 8 +-
.../components/hosts_table/index.test.tsx | 30 +-
.../hosts/components/hosts_table/index.tsx | 4 +-
.../uncommon_process_table/index.test.tsx | 84 +-
.../uncommon_process_table/index.tsx | 12 +-
.../containers/hosts/first_last_seen/index.ts | 4 +-
.../siem/public/hosts/pages/hosts.test.tsx | 4 +-
.../authentications_query_tab_body.tsx | 2 +-
.../navigation/events_query_tab_body.tsx | 2 +-
.../siem/public/hosts/store/reducer.ts | 4 +-
.../siem/public/hosts/store/selectors.ts | 10 +-
.../network/components/arrows/index.test.tsx | 7 +-
.../network/components/arrows/index.tsx | 2 +-
.../embeddables/embeddable_header.test.tsx | 25 +-
.../embeddables/embedded_map_helpers.tsx | 4 +-
.../embeddables/map_tool_tip/map_tool_tip.tsx | 2 +-
.../map_tool_tip/point_tool_tip_content.tsx | 4 +-
.../map_tool_tip/tooltip_footer.test.tsx | 96 +-
.../flow_controls/flow_target_select.test.tsx | 15 +-
.../flow_controls/flow_target_select.tsx | 2 +-
.../network/components/ip/index.test.tsx | 14 +-
.../components/network_dns_table/columns.tsx | 10 +-
.../network_dns_table/index.test.tsx | 12 +-
.../components/network_dns_table/index.tsx | 4 +-
.../is_ptr_included.test.tsx | 5 +-
.../components/network_http_table/columns.tsx | 4 +-
.../network_http_table/index.test.tsx | 12 +-
.../components/network_http_table/index.tsx | 4 +-
.../network_top_countries_table/columns.tsx | 10 +-
.../index.test.tsx | 30 +-
.../network_top_countries_table/index.tsx | 4 +-
.../network_top_n_flow_table/columns.tsx | 8 +-
.../network_top_n_flow_table/index.test.tsx | 30 +-
.../network_top_n_flow_table/index.tsx | 5 +-
.../network/components/port/index.test.tsx | 19 +-
.../source_destination/country_flag.tsx | 2 +-
.../source_destination/geo_fields.tsx | 6 +-
.../source_destination/index.test.tsx | 204 +--
.../components/source_destination/network.tsx | 12 +-
.../source_destination_ip.test.tsx | 109 +-
.../source_destination_ip.tsx | 14 +-
.../network/components/tls_table/columns.tsx | 4 +-
.../components/tls_table/index.test.tsx | 14 +-
.../network/components/tls_table/index.tsx | 4 +-
.../components/users_table/columns.tsx | 10 +-
.../components/users_table/index.test.tsx | 14 +-
.../network/components/users_table/index.tsx | 4 +-
.../network/pages/ip_details/index.test.tsx | 2 +-
.../pages/navigation/dns_query_tab_body.tsx | 2 +-
.../public/network/pages/network.test.tsx | 6 +-
.../siem/public/network/store/reducer.ts | 4 +-
.../siem/public/network/store/selectors.ts | 13 +-
.../alerts_by_category/index.test.tsx | 2 +-
.../components/alerts_by_category/index.tsx | 2 +-
.../components/event_counts/index.test.tsx | 6 +-
.../components/events_by_dataset/index.tsx | 3 +-
.../components/host_overview/index.tsx | 2 +-
.../components/overview_host/index.test.tsx | 25 +-
.../overview_host_stats/index.test.tsx | 10 +-
.../components/overview_host_stats/index.tsx | 4 +-
.../overview_network/index.test.tsx | 25 +-
.../overview_network_stats/index.test.tsx | 10 +-
.../overview_network_stats/index.tsx | 4 +-
.../components/recent_cases/filters/index.tsx | 2 +-
.../recent_timelines/filters/index.tsx | 2 +-
.../recent_timelines/recent_timelines.tsx | 2 +-
.../components/signals_by_category/index.tsx | 2 +-
.../public/overview/pages/overview.test.tsx | 4 +-
.../resolver/store/camera/panning.test.ts | 2 +-
.../public/resolver/store/camera/selectors.ts | 18 +-
.../public/resolver/store/data/selectors.ts | 4 +-
.../siem/public/resolver/store/middleware.ts | 6 +-
.../siem/public/resolver/store/selectors.ts | 2 +-
.../public/resolver/view/graph_controls.tsx | 2 +-
.../siem/public/resolver/view/panel.tsx | 4 +-
.../resolver/view/process_event_dot.tsx | 2 +-
.../resolver/view/side_effect_simulator.ts | 4 +-
.../siem/public/resolver/view/submenu.tsx | 4 +-
.../siem/public/resolver/view/use_camera.ts | 2 +-
.../certificate_fingerprint/index.test.tsx | 23 +-
.../components/duration/index.test.tsx | 7 +-
.../components/edit_data_provider/helpers.tsx | 6 +-
.../edit_data_provider/index.test.tsx | 92 +-
.../field_renderers/field_renderers.test.tsx | 10 +-
.../field_renderers/field_renderers.tsx | 2 +-
.../fields_browser/categories_pane.test.tsx | 18 +-
.../fields_browser/categories_pane.tsx | 2 +-
.../fields_browser/category.test.tsx | 23 +-
.../fields_browser/category_columns.test.tsx | 14 +-
.../fields_browser/category_title.test.tsx | 27 +-
.../fields_browser/field_browser.test.tsx | 6 +-
.../fields_browser/field_items.test.tsx | 48 +-
.../components/fields_browser/field_items.tsx | 8 +-
.../fields_browser/field_name.test.tsx | 12 +-
.../fields_browser/fields_pane.test.tsx | 36 +-
.../components/fields_browser/fields_pane.tsx | 2 +-
.../components/fields_browser/header.test.tsx | 74 +-
.../components/fields_browser/helpers.tsx | 6 +-
.../components/fields_browser/index.test.tsx | 48 +-
.../components/flyout/button/index.test.tsx | 10 +-
.../header_with_close_button/index.test.tsx | 5 +-
.../components/flyout/index.test.tsx | 45 +-
.../components/flyout/pane/index.test.tsx | 7 +-
.../flyout/pane/timeline_resize_handle.tsx | 2 +-
.../components/formatted_ip/index.tsx | 2 +-
.../components/ja3_fingerprint/index.test.tsx | 25 +-
.../components/netflow/fingerprints/index.tsx | 6 +-
.../components/netflow/index.test.tsx | 241 +--
.../duration_event_start_end.tsx | 6 +-
.../netflow/netflow_columns/user_process.tsx | 4 +-
.../components/notes/add_note/index.test.tsx | 37 +-
.../notes/add_note/new_note.test.tsx | 35 +-
.../components/notes/add_note/new_note.tsx | 2 +-
.../notes/note_card/note_card_body.test.tsx | 7 +-
.../notes/note_card/note_card_header.test.tsx | 21 +-
.../notes/note_card/note_created.test.tsx | 7 +-
.../components/notes/note_cards/index.tsx | 2 +-
.../delete_timeline_modal.test.tsx | 62 +-
.../delete_timeline_modal/index.test.tsx | 21 +-
.../export_timeline/export_timeline.tsx | 2 +-
.../components/open_timeline/helpers.test.ts | 6 +-
.../components/open_timeline/helpers.ts | 4 +-
.../components/open_timeline/index.test.tsx | 133 +-
.../note_previews/index.test.tsx | 29 +-
.../open_timeline/note_previews/index.tsx | 2 +-
.../note_previews/note_preview.test.tsx | 91 +-
.../note_previews/note_preview.tsx | 4 +-
.../open_timeline/open_timeline.test.tsx | 73 +-
.../open_timeline_modal_body.test.tsx | 21 +-
.../open_timeline_modal_body.tsx | 2 +-
.../open_timeline_modal_button.test.tsx | 14 +-
.../open_timeline/search_row/index.test.tsx | 24 +-
.../open_timeline/search_row/index.tsx | 4 +-
.../timelines_table/actions_columns.test.tsx | 17 +-
.../timelines_table/actions_columns.tsx | 2 +-
.../timelines_table/common_columns.test.tsx | 99 +-
.../timelines_table/extended_columns.test.tsx | 23 +-
.../timelines_table/index.test.tsx | 84 +-
.../open_timeline/title_row/index.test.tsx | 26 +-
.../timeline/body/actions/index.test.tsx | 15 +-
.../body/column_headers/column_header.tsx | 2 +-
.../body/column_headers/filter/index.test.tsx | 9 +-
.../body/column_headers/header/index.test.tsx | 43 +-
.../header_tooltip_content/index.test.tsx | 39 +-
.../timeline/body/column_headers/helpers.ts | 2 +-
.../body/column_headers/index.test.tsx | 16 +-
.../range_picker/index.test.tsx | 2 +-
.../column_headers/range_picker/index.tsx | 2 +-
.../body/column_headers/text_filter/index.tsx | 2 +-
.../body/data_driven_columns/index.test.tsx | 2 +-
.../body/data_driven_columns/index.tsx | 4 +-
.../body/events/event_column_view.tsx | 2 +-
.../components/timeline/body/helpers.ts | 2 +-
.../components/timeline/body/index.test.tsx | 34 +-
.../body/mini_map/date_ranges.test.ts | 10 +-
.../timeline/body/mini_map/date_ranges.ts | 8 +-
.../renderers/auditd/generic_row_renderer.tsx | 4 +-
.../body/renderers/bytes/index.test.tsx | 7 +-
.../renderers/empty_column_renderer.test.tsx | 6 +-
.../body/renderers/empty_column_renderer.tsx | 2 +-
.../body/renderers/formatted_field.tsx | 2 +-
.../body/renderers/get_column_renderer.ts | 2 +-
.../body/renderers/get_row_renderer.ts | 2 +-
.../timeline/body/renderers/helpers.test.tsx | 8 +-
.../timeline/body/renderers/helpers.tsx | 4 +-
.../netflow/netflow_row_renderer.test.tsx | 7 +-
.../netflow/netflow_row_renderer.tsx | 2 +-
.../renderers/plain_column_renderer.test.tsx | 36 +-
.../body/renderers/plain_column_renderer.tsx | 4 +-
.../body/renderers/plain_row_renderer.tsx | 2 +-
.../body/renderers/suricata/suricata_refs.tsx | 2 +-
.../suricata/suricata_row_renderer.tsx | 2 +-
.../suricata/suricata_signature.test.tsx | 5 +-
.../renderers/suricata/suricata_signature.tsx | 7 +-
.../system/generic_file_details.test.tsx | 2 +-
.../renderers/system/generic_row_renderer.tsx | 14 +-
.../unknown_column_renderer.test.tsx | 6 +-
.../body/renderers/zeek/zeek_details.test.tsx | 7 +-
.../body/renderers/zeek/zeek_row_renderer.tsx | 2 +-
.../renderers/zeek/zeek_signature.test.tsx | 32 +-
.../body/sort/sort_indicator.test.tsx | 9 +-
.../timeline/body/stateful_body.test.tsx | 2 +-
.../timeline/body/stateful_body.tsx | 12 +-
.../data_providers/data_providers.test.tsx | 4 +-
.../timeline/data_providers/empty.test.tsx | 2 +-
.../timeline/data_providers/empty.tsx | 6 +-
.../timeline/data_providers/helpers.test.tsx | 20 +-
.../timeline/data_providers/helpers.tsx | 6 +-
.../timeline/data_providers/index.tsx | 4 +-
.../mock/mock_data_providers.tsx | 2 +-
.../data_providers/providers.test.tsx | 34 +-
.../timeline/data_providers/providers.tsx | 2 +-
.../components/timeline/footer/index.test.tsx | 30 +-
.../components/timeline/footer/index.tsx | 7 +-
.../timelines/components/timeline/index.tsx | 4 +-
.../timeline/properties/helpers.tsx | 4 +-
.../timeline/properties/index.test.tsx | 7 +-
.../timeline/properties/properties_right.tsx | 2 +-
.../components/timeline/query_bar/index.tsx | 4 +-
.../timeline/selectable_timeline/index.tsx | 6 +-
.../components/timeline/timeline.test.tsx | 17 +-
.../components/timeline/timeline.tsx | 2 +-
.../public/timelines/containers/all/index.tsx | 4 +-
.../siem/public/timelines/pages/index.tsx | 2 +-
.../public/timelines/store/timeline/epic.ts | 2 +-
.../timelines/store/timeline/epic_favorite.ts | 6 +-
.../timelines/store/timeline/epic_note.ts | 8 +-
.../store/timeline/epic_pinned_event.ts | 6 +-
.../timelines/store/timeline/helpers.ts | 48 +-
.../timelines/store/timeline/reducer.test.ts | 26 +-
.../timelines/store/timeline/reducer.ts | 2 +-
.../timelines/store/timeline/selectors.ts | 18 +-
.../scripts/convert_saved_search_to_rules.js | 8 +-
.../extract_tactics_techniques_mitre.js | 20 +-
.../siem/scripts/loop_cypress_tests.js | 18 +-
.../plugins/siem/scripts/optimize_tsconfig.js | 2 +-
.../scripts/optimize_tsconfig/optimize.js | 2 +-
.../siem/scripts/unoptimize_tsconfig.js | 2 +-
.../endpoint/alerts/handlers/details/index.ts | 2 +-
.../endpoint/alerts/handlers/list/index.ts | 2 +-
.../server/endpoint/routes/metadata/index.ts | 6 +-
.../routes/metadata/query_builders.ts | 2 +-
.../server/endpoint/routes/policy/handlers.ts | 2 +-
.../endpoint/routes/resolver/utils/fetch.ts | 2 +-
.../routes/resolver/utils/pagination.ts | 2 +-
.../endpoint/routes/resolver/utils/tree.ts | 8 +-
.../siem/server/graphql/ecs/resolvers.ts | 4 +-
.../siem/server/graphql/hosts/resolvers.ts | 2 +-
.../scalar_to_boolean_array/resolvers.ts | 4 +-
.../graphql/scalar_to_date_array/resolvers.ts | 4 +-
.../scalar_to_number_array/resolvers.ts | 4 +-
.../authentications/elasticsearch_adapter.ts | 2 +-
.../detection_engine/notifications/types.ts | 2 +-
.../routes/__mocks__/request_responses.ts | 8 +-
.../routes/__mocks__/server.ts | 2 +-
.../routes/__mocks__/utils.ts | 4 +-
.../routes/rules/create_rules_bulk_route.ts | 6 +-
.../routes/rules/delete_rules_bulk_route.ts | 4 +-
.../routes/rules/delete_rules_route.ts | 2 +-
.../routes/rules/find_rules_route.ts | 4 +-
.../routes/rules/find_rules_status_route.ts | 2 +-
.../routes/rules/import_rules_route.test.ts | 2 +-
.../routes/rules/import_rules_route.ts | 6 +-
.../routes/rules/patch_rules_bulk_route.ts | 2 +-
.../routes/rules/update_rules_bulk_route.ts | 2 +-
.../detection_engine/routes/rules/utils.ts | 10 +-
.../schemas/add_prepackaged_rules_schema.ts | 5 +-
.../routes/schemas/schemas.ts | 52 +-
.../detection_engine/rule_actions/types.ts | 2 +-
.../rules/get_export_by_object_ids.ts | 10 +-
.../rules/get_prepackaged_rules.test.ts | 2 +-
.../rules/get_prepackaged_rules.ts | 2 +-
.../rules/get_rules_to_install.ts | 2 +-
.../rules/get_rules_to_update.ts | 4 +-
.../lib/detection_engine/rules/types.ts | 4 +-
.../rules/update_prepacked_rules.ts | 2 +-
.../signals/build_exceptions_query.ts | 4 +-
.../detection_engine/signals/build_signal.ts | 2 +-
.../signals/bulk_create_ml_signals.ts | 6 +-
.../detection_engine/signals/get_filter.ts | 2 +-
.../rule_status_saved_objects_client.ts | 6 +-
.../signals/rule_status_service.test.ts | 2 +-
.../signals/rule_status_service.ts | 2 +-
.../signals/search_after_bulk_create.test.ts | 10 +-
.../signals/signal_rule_alert_type.ts | 2 +-
.../signals/single_bulk_create.ts | 6 +-
.../detection_engine/signals/utils.test.ts | 56 +-
.../lib/detection_engine/signals/utils.ts | 5 +-
.../lib/detection_engine/tags/read_tags.ts | 2 +-
.../lib/events/elasticsearch_adapter.ts | 2 +-
.../server/lib/hosts/elasticsearch_adapter.ts | 4 +-
.../server/lib/hosts/query.detail_host.dsl.ts | 2 +-
.../lib/index_fields/elasticsearch_adapter.ts | 6 +-
.../siem/server/lib/machine_learning/index.ts | 2 +-
.../lib/network/elasticsearch_adapter.ts | 2 +-
.../siem/server/lib/note/saved_object.ts | 14 +-
.../server/lib/pinned_event/saved_object.ts | 12 +-
.../source_status/elasticsearch_adapter.ts | 2 +-
.../convert_saved_object_to_savedtimeline.ts | 4 +-
.../timeline/routes/import_timelines_route.ts | 6 +-
.../routes/schemas/import_timelines_schema.ts | 4 +-
.../timeline/routes/utils/create_timelines.ts | 6 +-
.../timeline/routes/utils/export_timelines.ts | 20 +-
.../siem/server/lib/timeline/saved_object.ts | 20 +-
.../elasticsearch_adapter.ts | 4 +-
x-pack/plugins/siem/server/saved_objects.ts | 4 +-
.../siem/server/utils/beat_schema/index.ts | 2 +-
.../utils/build_query/create_options.ts | 8 +-
.../build_validation/route_validation.test.ts | 4 +-
.../build_validation/route_validation.ts | 2 +-
.../read_stream/create_stream_from_ndjson.ts | 4 +-
.../helpers/home.helpers.ts | 10 +-
.../__jest__/client_integration/home.test.ts | 23 +-
.../client_integration/repository_add.test.ts | 4 +-
.../common/lib/snapshot_serialization.ts | 2 +-
.../common/lib/time_serialization.test.ts | 2 +-
.../common/lib/time_serialization.ts | 2 +-
.../public/application/app.tsx | 2 +-
.../components/collapsible_indices_list.tsx | 2 +-
.../components/policy_delete_provider.tsx | 2 +-
.../policy_form/steps/step_logistics.tsx | 8 +-
.../policy_form/steps/step_retention.tsx | 8 +-
.../policy_form/steps/step_settings.tsx | 14 +-
.../components/repository_delete_provider.tsx | 2 +-
.../components/repository_form/step_one.tsx | 4 +-
.../type_settings/azure_settings.tsx | 20 +-
.../type_settings/fs_settings.tsx | 12 +-
.../type_settings/gcs_settings.tsx | 16 +-
.../type_settings/hdfs_settings.tsx | 18 +-
.../type_settings/readonly_settings.tsx | 4 +-
.../type_settings/s3_settings.tsx | 28 +-
.../steps/step_logistics.tsx | 18 +-
.../steps/step_review.tsx | 2 +-
.../steps/step_settings.tsx | 8 +-
.../retention_update_modal_provider.tsx | 2 +-
.../public/application/constants/index.ts | 4 +-
.../public/application/sections/home/home.tsx | 2 +-
.../policy_details/policy_details.tsx | 6 +-
.../sections/home/policy_list/policy_list.tsx | 2 +-
.../policy_retention_schedule.tsx | 4 +-
.../policy_list/policy_table/policy_table.tsx | 10 +-
.../repository_details/repository_details.tsx | 2 +-
.../type_details/hdfs_details.tsx | 2 +-
.../repository_table/repository_table.tsx | 10 +-
.../home/restore_list/restore_list.tsx | 4 +-
.../restore_table/restore_table.tsx | 4 +-
.../snapshot_details/snapshot_details.tsx | 4 +-
.../home/snapshot_list/snapshot_list.tsx | 2 +-
.../snapshot_table/snapshot_table.tsx | 8 +-
.../services/http/policy_requests.ts | 2 +-
.../services/http/repository_requests.ts | 2 +-
.../services/validation/validate_restore.ts | 4 +-
.../plugins/snapshot_restore/public/plugin.ts | 2 +-
.../snapshot_restore/server/routes/api/app.ts | 2 +-
.../server/routes/api/policy.test.ts | 2 +-
.../server/routes/api/policy.ts | 4 +-
.../server/routes/api/repositories.test.ts | 6 +-
.../server/routes/api/repositories.ts | 16 +-
.../server/routes/api/restore.ts | 6 +-
.../server/routes/api/snapshots.ts | 4 +-
.../server/services/license.ts | 2 +-
x-pack/plugins/spaces/common/lib/dataurl.ts | 2 +-
.../common/licensing/license_service.test.ts | 2 +-
.../common/licensing/license_service.ts | 2 +-
.../advanced_settings_subtitle.tsx | 2 +-
.../advanced_settings_title.tsx | 2 +-
.../components/copy_status_indicator.tsx | 2 +-
.../components/copy_to_space_flyout.tsx | 8 +-
.../copy_to_space_flyout_footer.tsx | 6 +-
.../components/copy_to_space_form.tsx | 4 +-
.../components/processing_copy_to_space.tsx | 6 +-
.../components/selectable_spaces_control.tsx | 8 +-
.../components/space_result.tsx | 2 +-
.../components/space_result_details.tsx | 6 +-
.../summarize_copy_result.ts | 26 +-
.../confirm_delete_modal.tsx | 2 +-
.../confirm_alter_active_space_modal.tsx | 2 +-
.../customize_space_avatar.tsx | 2 +-
.../customize_space/space_identifier.tsx | 2 +-
.../enabled_features.test.tsx | 20 +-
.../enabled_features/feature_table.tsx | 6 +-
.../enabled_features/toggle_all_features.tsx | 2 +-
.../edit_space/manage_space_page.test.tsx | 5 +-
.../edit_space/manage_space_page.tsx | 4 +-
.../public/management/lib/feature_utils.ts | 2 +-
.../management/management_service.test.ts | 6 +-
.../spaces_grid/spaces_grid_page.tsx | 4 +-
.../nav_control/components/spaces_menu.tsx | 2 +-
.../nav_control/nav_control_popover.tsx | 2 +-
.../public/space_avatar/space_attributes.ts | 2 +-
.../public/space_selector/space_selector.tsx | 4 +-
.../capabilities/capabilities_switcher.ts | 10 +-
.../default_space/default_space_service.ts | 2 +-
.../lib/copy_to_spaces/copy_to_spaces.test.ts | 12 +-
.../lib/create_empty_failure_response.ts | 2 +-
.../copy_to_spaces/lib/get_eligible_types.ts | 4 +-
.../lib/read_stream_to_completion.ts | 2 +-
.../lib/readable_stream_from_array.ts | 2 +-
.../resolve_copy_conflicts.test.ts | 12 +-
.../copy_to_spaces/resolve_copy_conflicts.ts | 2 +-
.../on_post_auth_interceptor.test.ts | 9 +-
.../on_post_auth_interceptor.ts | 6 +-
.../on_request_interceptor.ts | 2 +-
.../spaces/server/lib/space_schema.test.ts | 2 +-
.../plugins/spaces/server/lib/space_schema.ts | 6 +-
.../lib/spaces_client/spaces_client.test.ts | 6 +-
.../server/lib/spaces_client/spaces_client.ts | 8 +-
.../spaces/server/lib/utils/url.test.ts | 8 +-
.../__fixtures__/create_mock_so_repository.ts | 6 +-
.../__fixtures__/create_mock_so_service.ts | 8 +-
.../routes/api/external/copy_to_space.test.ts | 2 +-
.../routes/api/external/copy_to_space.ts | 10 +-
.../server/routes/api/external/get.test.ts | 4 +-
.../routes/api/external/get_all.test.ts | 2 +-
.../routes/api/external/share_add_spaces.ts | 4 +-
.../api/external/share_remove_spaces.ts | 4 +-
.../saved_objects/migrations/migrate_6x.ts | 2 +-
.../spaces_saved_objects_client.test.ts | 2 +-
.../spaces_saved_objects_client.ts | 4 +-
.../server/spaces_service/spaces_service.ts | 2 +-
.../spaces_usage_collector.ts | 4 +-
x-pack/plugins/task_manager/server/config.ts | 2 +-
.../server/lib/middleware.test.ts | 2 +-
.../task_manager/server/lib/result_type.ts | 6 +-
x-pack/plugins/task_manager/server/plugin.ts | 20 +-
.../mark_available_tasks_as_claimed.ts | 2 +-
.../server/queries/query_clauses.ts | 2 +-
.../server/saved_objects/migrations.ts | 2 +-
x-pack/plugins/task_manager/server/task.ts | 4 +-
.../task_manager/server/task_manager.test.ts | 12 +-
.../task_manager/server/task_manager.ts | 10 +-
.../task_manager/server/task_poller.test.ts | 18 +-
.../task_manager/server/task_poller.ts | 4 +-
.../task_manager/server/task_pool.test.ts | 5 +-
.../plugins/task_manager/server/task_pool.ts | 16 +-
.../task_manager/server/task_runner.test.ts | 10 +-
.../task_manager/server/task_store.test.ts | 12 +-
.../plugins/task_manager/server/task_store.ts | 14 +-
.../task_manager/server/test_utils/index.ts | 4 +-
.../get_stats_with_xpack.ts | 4 +-
.../plugins/transform/common/types/common.ts | 2 +-
.../transform/public/app/common/fields.ts | 8 +-
.../transform/public/app/common/request.ts | 4 +-
.../transform/public/app/common/transform.ts | 6 +-
.../public/app/hooks/use_delete_transform.tsx | 2 +-
.../public/app/hooks/use_get_transforms.ts | 2 +-
.../public/app/hooks/use_index_data.test.tsx | 4 +-
.../public/app/hooks/use_index_data.ts | 6 +-
.../public/app/hooks/use_pivot_data.ts | 10 +-
.../app/hooks/use_search_items/common.ts | 8 +-
.../public/app/hooks/use_start_transform.ts | 2 +-
.../public/app/hooks/use_stop_transform.ts | 2 +-
.../components/with_privileges.tsx | 2 +-
.../components/aggregation_list/list_form.tsx | 4 +-
.../aggregation_list/popover_form.tsx | 16 +-
.../components/group_by_list/list_form.tsx | 4 +-
.../components/group_by_list/popover_form.tsx | 20 +-
.../get_agg_name_conflict_toast_messages.ts | 2 +-
.../common/get_pivot_dropdown_options.ts | 8 +-
.../step_define/hooks/use_pivot_config.ts | 8 +-
.../step_define/step_define_form.test.tsx | 2 +-
.../step_define/step_define_form.tsx | 6 +-
.../step_define/step_define_summary.test.tsx | 2 +-
.../step_details/step_details_form.tsx | 26 +-
.../edit_transform_flyout_form.tsx | 6 +-
.../edit_transform_flyout_form_text_input.tsx | 2 +-
.../use_edit_transform_flyout.ts | 6 +-
.../components/stats_bar/stats_bar.tsx | 2 +-
.../transform_list/expanded_row.tsx | 2 +-
.../expanded_row_details_pane.tsx | 8 +-
.../transform_list/transform_list.tsx | 26 +-
.../transform_list/transforms_stats_bar.tsx | 2 +-
x-pack/plugins/transform/public/plugin.ts | 2 +-
.../transform/server/routes/api/privileges.ts | 2 +-
.../transform/server/routes/api/transforms.ts | 2 +-
.../transform/server/services/license.ts | 2 +-
.../application/action_type_registry.mock.ts | 2 +-
.../email/email_connector.test.tsx | 9 +-
.../email/email_connector.tsx | 12 +-
.../email/email_params.test.tsx | 5 +-
.../email/email_params.tsx | 16 +-
.../es_index/es_index_connector.test.tsx | 5 +-
.../es_index/es_index_connector.tsx | 8 +-
.../es_index/es_index_params.test.tsx | 7 +-
.../pagerduty/pagerduty_connectors.test.tsx | 9 +-
.../pagerduty/pagerduty_params.test.tsx | 9 +-
.../pagerduty/pagerduty_params.tsx | 4 +-
.../server_log/server_log_params.test.tsx | 10 +-
.../server_log/server_log_params.tsx | 4 +-
.../slack/slack_connectors.test.tsx | 9 +-
.../slack/slack_connectors.tsx | 2 +-
.../slack/slack_params.test.tsx | 5 +-
.../slack/slack_params.tsx | 2 +-
.../webhook/webhook_connectors.test.tsx | 5 +-
.../webhook/webhook_connectors.tsx | 18 +-
.../webhook/webhook_params.test.tsx | 5 +-
.../threshold/expression.tsx | 22 +-
.../threshold/visualization.tsx | 4 +-
.../application/components/health_check.tsx | 4 +-
.../public/application/home.tsx | 2 +-
.../application/lib/action_connector_api.ts | 6 +-
.../application/lib/action_type_compare.ts | 2 +-
.../application/lib/action_variables.ts | 2 +-
.../public/application/lib/alert_api.ts | 18 +-
.../public/application/lib/capabilities.ts | 2 +-
.../lib/check_action_type_enabled.tsx | 2 +-
.../application/lib/value_validators.test.ts | 20 +-
.../action_connector_form.tsx | 2 +-
.../action_connector_form/action_form.tsx | 22 +-
.../action_type_menu.tsx | 2 +-
.../connector_add_flyout.tsx | 6 +-
.../connector_add_modal.tsx | 6 +-
.../connector_edit_flyout.test.tsx | 4 +-
.../connector_edit_flyout.tsx | 6 +-
.../actions_connectors_list.test.tsx | 30 +-
.../components/actions_connectors_list.tsx | 8 +-
.../components/alert_details_route.tsx | 4 +-
.../components/alert_instances.tsx | 6 +-
.../components/view_in_app.test.tsx | 6 +-
.../alert_details/components/view_in_app.tsx | 4 +-
.../sections/alert_form/alert_add.test.tsx | 5 +-
.../sections/alert_form/alert_add.tsx | 6 +-
.../sections/alert_form/alert_edit.test.tsx | 5 +-
.../sections/alert_form/alert_edit.tsx | 4 +-
.../sections/alert_form/alert_form.tsx | 28 +-
.../components/action_type_filter.tsx | 4 +-
.../alerts_list/components/alerts_list.tsx | 16 +-
.../alerts_list/components/type_filter.tsx | 2 +-
.../components/bulk_operation_popover.tsx | 2 +-
.../with_bulk_alert_api_operations.tsx | 15 +-
.../common/expression_items/for_the_last.tsx | 4 +-
.../common/expression_items/group_by_over.tsx | 6 +-
.../public/common/expression_items/of.tsx | 2 +-
.../common/expression_items/threshold.tsx | 4 +-
.../public/common/expression_items/when.tsx | 2 +-
.../public/common/index_controls/index.ts | 4 +-
.../triggers_actions_ui/public/plugin.ts | 2 +-
.../get_index_state_from_cluster_state.ts | 2 +-
.../application/components/tabs.test.tsx | 4 +-
.../components/tabs/checkup/checkup_tab.tsx | 2 +-
.../components/tabs/checkup/controls.tsx | 2 +-
.../tabs/checkup/deprecations/cell.tsx | 2 +-
.../checkup/deprecations/grouped.test.tsx | 19 +-
.../tabs/checkup/deprecations/grouped.tsx | 8 +-
.../tabs/checkup/deprecations/health.tsx | 6 +-
.../tabs/checkup/deprecations/index_table.tsx | 2 +-
.../tabs/checkup/deprecations/list.tsx | 6 +-
.../checkup/deprecations/reindex/button.tsx | 2 +-
.../deprecations/reindex/flyout/progress.tsx | 2 +-
.../reindex/flyout/warnings_step.tsx | 2 +-
.../reindex/polling_service.test.ts | 6 +-
.../components/tabs/checkup/filter_bar.tsx | 2 +-
.../components/tabs/checkup/group_by_bar.tsx | 2 +-
.../components/tabs/overview/index.tsx | 2 +-
.../public/application/utils.ts | 2 +-
.../lib/es_deprecation_logging_apis.test.ts | 8 +-
.../server/lib/es_indices_state_check.ts | 2 +-
.../server/lib/es_migration_apis.ts | 8 +-
.../server/lib/es_version_precheck.ts | 6 +-
.../lib/reindexing/reindex_actions.test.ts | 19 +-
.../server/lib/reindexing/reindex_actions.ts | 6 +-
.../server/lib/reindexing/reindex_service.ts | 22 +-
.../server/lib/reindexing/worker.ts | 6 +-
.../routes/reindex_indices/reindex_indices.ts | 2 +-
.../__tests__/cert_status.test.tsx | 4 +-
.../__tests__/fingerprint_col.test.tsx | 4 +-
.../certificates/fingerprint_col.tsx | 2 +-
.../common/charts/annotation_tooltip.tsx | 2 +-
.../components/common/charts/donut_chart.tsx | 9 +-
.../common/charts/duration_chart.tsx | 6 +-
.../common/charts/duration_line_bar_list.tsx | 6 +-
.../__tests__/location_status_tags.test.tsx | 60 +-
.../location_map/embeddables/map_config.ts | 4 +-
.../__test__/monitor_status.bar.test.tsx | 4 +-
.../__test__/ssl_certificate.test.tsx | 12 +-
.../monitor/ping_list/expanded_row.tsx | 2 +-
.../monitor/ping_list/ping_list.tsx | 6 +-
.../overview/alerts/add_filter_btn.tsx | 2 +-
.../overview/alerts/alert_field_number.tsx | 2 +-
.../overview/alerts/alert_monitor_status.tsx | 8 +-
.../components/overview/alerts/alert_tls.tsx | 2 +-
.../toggle_alert_flyout_button.tsx | 2 +-
.../__tests__/down_number_select.test.tsx | 4 +-
.../__tests__/time_expression_select.test.tsx | 4 +-
.../filters_expression_select.tsx | 2 +-
.../time_expression_select.tsx | 4 +-
.../settings_message_expression_popover.tsx | 2 +-
.../alerts/toggle_alert_flyout_button.tsx | 2 +-
.../__tests__/filter_popover.test.tsx | 7 +-
.../overview/filter_group/filter_group.tsx | 2 +-
.../overview/filter_group/filter_popover.tsx | 8 +-
.../overview/kuery_bar/kuery_bar.tsx | 2 +-
.../kuery_bar/typeahead/click_outside.js | 4 +-
.../overview/kuery_bar/typeahead/index.js | 20 +-
.../kuery_bar/typeahead/suggestion.js | 8 +-
.../kuery_bar/typeahead/suggestions.js | 4 +-
.../overview/monitor_list/monitor_list.tsx | 2 +-
.../monitor_list/monitor_list_container.tsx | 2 +-
.../monitor_status_list.tsx | 2 +-
.../monitor_status_row.tsx | 2 +-
.../monitor_list_page_size_select.tsx | 2 +-
.../monitor_list_status_column.tsx | 2 +-
.../overview/overview_container.tsx | 2 +-
.../components/settings/certificate_form.tsx | 2 +-
.../uptime/public/hooks/use_filter_update.ts | 2 +-
.../uptime/public/hooks/use_url_params.ts | 2 +-
.../framework/new_platform_adapter.tsx | 2 +-
.../observability_integration/build_href.ts | 2 +-
.../lib/helper/series_has_down_values.ts | 2 +-
.../public/lib/helper/stringify_kueries.ts | 2 +-
.../url_params/get_supported_url_params.ts | 2 +-
.../plugins/uptime/public/pages/settings.tsx | 4 +-
.../state/api/__tests__/snapshot.test.ts | 4 +-
.../uptime/public/state/api/ml_anomaly.ts | 4 +-
.../public/state/effects/dynamic_settings.ts | 2 +-
.../public/state/effects/fetch_effect.ts | 2 +-
.../public/state/reducers/dynamic_settings.ts | 4 +-
.../public/state/reducers/index_pattern.ts | 2 +-
.../public/state/reducers/ml_anomaly.ts | 2 +-
.../public/state/reducers/monitor_status.ts | 4 +-
.../uptime/public/state/reducers/ping.ts | 2 +-
.../uptime/public/state/reducers/ping_list.ts | 2 +-
.../uptime/public/state/selectors/index.ts | 6 +-
.../telemetry/kibana_telemetry_adapter.ts | 8 +-
.../server/lib/alerts/__tests__/tls.test.ts | 15 +-
.../plugins/uptime/server/lib/alerts/tls.ts | 17 +-
.../uptime/server/lib/domains/license.ts | 2 +-
.../__tests__/get_monitor_status.test.ts | 2 +-
.../lib/requests/generate_filter_aggs.ts | 2 +-
.../server/lib/requests/get_filter_bar.ts | 4 +-
.../lib/requests/get_monitor_duration.ts | 4 +-
.../server/lib/requests/get_monitor_status.ts | 2 +-
.../server/lib/requests/get_ping_histogram.ts | 2 +-
.../search/__tests__/fetch_page.test.ts | 4 +-
.../requests/search/enrich_monitor_groups.ts | 2 +-
.../server/lib/requests/search/fetch_page.ts | 2 +-
.../search/refine_potential_matches.ts | 4 +-
.../server/rest_api/monitors/monitor_list.ts | 2 +-
.../server/rest_api/uptime_route_wrapper.ts | 2 +-
x-pack/plugins/uptime/server/uptime_server.ts | 4 +-
.../helpers/setup_environment.ts | 4 +-
.../helpers/watch_create_json.helpers.ts | 7 +-
.../helpers/watch_create_threshold.helpers.ts | 2 +-
.../helpers/watch_edit.helpers.ts | 2 +-
.../helpers/watch_status.helpers.ts | 5 +-
.../watch_create_json.test.ts | 2 +-
.../client_integration/watch_list.test.ts | 8 +-
.../client_integration/watch_status.test.ts | 4 +-
.../lib/get_moment/__tests__/get_moment.js | 2 +-
.../serialization_helpers/build_actions.js | 2 +-
.../application/components/form_errors.tsx | 2 +-
.../application/models/watch/base_watch.js | 10 +-
.../application/models/watch/json_watch.js | 4 +-
.../lib/create_action_id/create_action_id.js | 2 +-
.../models/watch_status/watch_status.js | 2 +-
.../json_watch_edit/json_watch_edit.tsx | 4 +-
.../json_watch_edit/json_watch_edit_form.tsx | 2 +-
.../json_watch_edit_simulate.tsx | 12 +-
.../json_watch_edit_simulate_results.tsx | 4 +-
.../action_fields/email_action_fields.tsx | 10 +-
.../action_fields/jira_action_fields.tsx | 6 +-
.../action_fields/slack_action_fields.tsx | 8 +-
.../action_fields/webhook_action_fields.tsx | 18 +-
.../threshold_watch_action_accordion.tsx | 2 +-
.../threshold_watch_edit.tsx | 46 +-
.../watch_visualization.tsx | 2 +-
.../sections/watch_edit/watch_edit_actions.ts | 8 +-
.../watch_list/components/watch_list.tsx | 4 +-
.../parse_es_interval.test.ts | 4 +-
.../parse_es_interval/parse_es_interval.ts | 4 +-
.../watcher/public/legacy/time_buckets.js | 36 +-
.../__tests__/fetch_all_from_scroll.js | 8 +-
.../models/action_status/action_status.js | 2 +-
.../watcher/server/models/watch/base_watch.js | 4 +-
.../server/models/watch/base_watch.test.js | 4 +-
.../models/watch_status/watch_status.js | 6 +-
x-pack/plugins/watcher/server/plugin.ts | 2 +-
.../api/watches/register_delete_route.ts | 4 +-
x-pack/tasks/helpers/flags.ts | 4 +-
.../test/accessibility/apps/grok_debugger.ts | 2 +-
x-pack/test/accessibility/apps/home.ts | 2 +-
x-pack/test/accessibility/apps/login_page.ts | 2 +-
.../accessibility/apps/search_profiler.ts | 2 +-
x-pack/test/accessibility/apps/uptime.ts | 10 +-
x-pack/test/accessibility/config.ts | 2 +-
.../basic/tests/index.ts | 2 +-
.../alerting_api_integration/common/config.ts | 11 +-
.../fixtures/plugins/aad/server/plugin.ts | 2 +-
.../server/jira_simulation.ts | 8 +-
.../server/pagerduty_simulation.ts | 2 +-
.../actions_simulators/server/plugin.ts | 2 +-
.../server/servicenow_simulation.ts | 6 +-
.../actions_simulators_legacy/index.ts | 2 +-
.../slack_simulation.ts | 11 +-
.../webhook_simulation.ts | 15 +-
.../plugins/alerts/server/alert_types.ts | 2 +-
.../tests/actions/execute.ts | 2 +-
.../security_and_spaces/tests/index.ts | 4 +-
.../spaces_only/tests/actions/execute.ts | 2 +-
.../tests/actions/type_not_enabled.ts | 11 +-
.../index_threshold/create_test_data.ts | 4 +-
.../index_threshold/fields_endpoint.ts | 7 +-
.../index_threshold/indices_endpoint.ts | 5 +-
.../time_series_query_endpoint.ts | 5 +-
.../spaces_only/tests/index.ts | 2 +-
.../apis/beats/assign_tags_to_beats.js | 2 +-
.../apis/beats/create_enrollment_tokens.js | 18 +-
.../api_integration/apis/beats/enroll_beat.js | 14 +-
.../api_integration/apis/beats/get_beat.js | 2 +-
.../test/api_integration/apis/beats/index.js | 2 +-
.../api_integration/apis/beats/list_beats.js | 8 +-
.../apis/beats/remove_tags_from_beats.js | 2 +-
.../api_integration/apis/beats/set_config.js | 2 +-
.../api_integration/apis/beats/set_tag.js | 2 +-
.../api_integration/apis/beats/update_beat.js | 6 +-
.../apis/endpoint/alerts/index.ts | 10 +-
.../apis/endpoint/alerts/index_pattern.ts | 2 +-
.../api_integration/apis/endpoint/index.ts | 2 +-
.../api_integration/apis/endpoint/metadata.ts | 2 +-
.../api_integration/apis/endpoint/policy.ts | 2 +-
.../api_integration/apis/es/has_privileges.js | 8 +-
x-pack/test/api_integration/apis/es/index.js | 2 +-
.../apis/es/post_privileges.js | 2 +-
.../apis/features/features/features.ts | 7 +-
.../apis/features/features/index.ts | 2 +-
.../api_integration/apis/features/index.ts | 2 +-
.../api_integration/apis/fleet/agents/acks.ts | 2 +-
.../apis/fleet/agents/actions.ts | 2 +-
.../apis/fleet/agents/checkin.ts | 2 +-
.../apis/fleet/agents/enroll.ts | 2 +-
.../apis/fleet/agents/events.ts | 2 +-
.../apis/fleet/agents/services.ts | 5 +-
.../apis/fleet/delete_agent.ts | 2 +-
.../apis/fleet/enrollment_api_keys/crud.ts | 2 +-
.../api_integration/apis/fleet/install.ts | 2 +-
.../api_integration/apis/fleet/list_agent.ts | 2 +-
.../test/api_integration/apis/fleet/setup.ts | 17 +-
.../apis/fleet/unenroll_agent.ts | 2 +-
x-pack/test/api_integration/apis/index.js | 4 +-
.../apis/infra/feature_controls.ts | 2 +-
.../test/api_integration/apis/infra/index.js | 2 +-
.../apis/infra/log_analysis.ts | 4 +-
.../api_integration/apis/infra/log_entries.ts | 2 +-
.../apis/infra/log_entry_highlights.ts | 14 +-
.../api_integration/apis/infra/log_item.ts | 2 +-
.../api_integration/apis/infra/log_sources.ts | 2 +-
.../api_integration/apis/infra/log_summary.ts | 4 +-
.../apis/infra/logs_without_millis.ts | 2 +-
.../api_integration/apis/infra/metadata.ts | 4 +-
.../api_integration/apis/infra/metrics.ts | 6 +-
.../apis/infra/metrics_alerting.ts | 2 +-
.../apis/infra/metrics_explorer.ts | 10 +-
.../api_integration/apis/infra/sources.ts | 4 +-
.../test/api_integration/apis/infra/waffle.ts | 16 +-
.../api_integration/apis/ingest/policies.ts | 10 +-
.../test/api_integration/apis/kibana/index.js | 2 +-
.../apis/kibana/kql_telemetry/index.js | 2 +-
.../kibana/kql_telemetry/kql_telemetry.js | 2 +-
.../apis/kibana/stats/index.js | 2 +-
.../apis/kibana/stats/stats.js | 2 +-
.../api_integration/apis/lens/telemetry.ts | 16 +-
.../apis/logstash/cluster/index.ts | 2 +-
.../apis/logstash/cluster/load.ts | 2 +-
.../api_integration/apis/logstash/index.ts | 2 +-
.../apis/logstash/pipeline/delete.ts | 2 +-
.../apis/logstash/pipeline/index.ts | 2 +-
.../apis/logstash/pipeline/load.ts | 2 +-
.../apis/logstash/pipeline/save.ts | 2 +-
.../apis/logstash/pipelines/delete.ts | 2 +-
.../apis/logstash/pipelines/index.ts | 2 +-
.../apis/logstash/pipelines/list.ts | 2 +-
.../management/advanced_settings/index.ts | 2 +-
.../auto_follow_pattern.helpers.js | 10 +-
.../auto_follow_pattern.js | 4 +-
.../follower_indices.helpers.js | 19 +-
.../follower_indices.js | 4 +-
.../cross_cluster_replication/index.js | 2 +-
.../lib/elasticsearch.js | 6 +-
.../remote_clusters.helpers.js | 4 +-
.../api_integration/apis/management/index.js | 2 +-
.../index_lifecycle_management/index.js | 2 +-
.../indices.helpers.js | 35 +-
.../index_lifecycle_management/indices.js | 2 +-
.../lib/elasticsearch.js | 14 +-
.../index_lifecycle_management/lib/utils.js | 4 +-
.../nodes.helpers.js | 2 +-
.../index_lifecycle_management/nodes.js | 4 +-
.../policies.helpers.js | 11 +-
.../index_lifecycle_management/policies.js | 6 +-
.../templates.helpers.js | 13 +-
.../index_lifecycle_management/templates.js | 6 +-
.../apis/management/index_management/index.js | 2 +-
.../index_management/indices.helpers.js | 23 +-
.../management/index_management/indices.js | 20 +-
.../index_management/lib/elasticsearch.js | 8 +-
.../management/index_management/lib/utils.js | 2 +-
.../index_management/mapping.helpers.js | 2 +-
.../management/index_management/mapping.js | 2 +-
.../index_management/settings.helpers.js | 7 +-
.../management/index_management/settings.js | 4 +-
.../index_management/stats.helpers.js | 2 +-
.../apis/management/index_management/stats.js | 4 +-
.../index_management/templates.helpers.js | 14 +-
.../management/index_management/templates.js | 12 +-
.../apis/management/ingest_pipelines/index.ts | 2 +-
.../ingest_pipelines/ingest_pipelines.ts | 31 +-
.../apis/management/remote_clusters/index.js | 2 +-
.../remote_clusters/remote_clusters.js | 21 +-
.../apis/management/rollup/index.js | 2 +-
.../rollup/index_patterns_extensions.js | 4 +-
.../apis/management/rollup/lib/es_index.js | 8 +-
.../apis/management/rollup/lib/utils.js | 2 +-
.../apis/management/rollup/rollup.js | 12 +-
.../management/rollup/rollup.test_helpers.js | 27 +-
.../apis/management/rollup/rollup_search.js | 2 +-
.../test/api_integration/apis/maps/index.js | 2 +-
.../apis/maps/index_settings.js | 2 +-
.../api_integration/apis/maps/migrations.js | 2 +-
.../apis/ml/anomaly_detectors/create.ts | 2 +-
.../apis/ml/anomaly_detectors/index.ts | 4 +-
.../apis/ml/data_frame_analytics/index.ts | 4 +-
.../ml/data_visualizer/get_field_stats.ts | 2 +-
.../ml/data_visualizer/get_overall_stats.ts | 2 +-
.../apis/ml/data_visualizer/index.ts | 4 +-
.../ml/fields_service/field_cardinality.ts | 2 +-
.../apis/ml/fields_service/index.ts | 4 +-
.../ml/fields_service/time_field_range.ts | 2 +-
x-pack/test/api_integration/apis/ml/index.ts | 4 +-
.../job_validation/bucket_span_estimator.ts | 8 +-
.../calculate_model_memory_limit.ts | 2 +-
.../apis/ml/job_validation/cardinality.ts | 2 +-
.../apis/ml/job_validation/index.ts | 4 +-
.../apis/ml/job_validation/validate.ts | 2 +-
.../ml/jobs/categorization_field_examples.ts | 2 +-
.../api_integration/apis/ml/jobs/index.ts | 4 +-
.../apis/ml/jobs/jobs_summary.ts | 16 +-
.../apis/ml/modules/get_module.ts | 2 +-
.../api_integration/apis/ml/modules/index.ts | 4 +-
.../apis/ml/modules/recognize_module.ts | 4 +-
.../apis/ml/modules/setup_module.ts | 26 +-
.../api_integration/apis/ml/results/index.ts | 2 +-
.../apis/monitoring/apm/index.js | 2 +-
.../apis/monitoring/apm/instance.js | 2 +-
.../apis/monitoring/apm/instances.js | 2 +-
.../apis/monitoring/apm/overview.js | 2 +-
.../apis/monitoring/beats/detail.js | 2 +-
.../apis/monitoring/beats/index.js | 2 +-
.../apis/monitoring/beats/list.js | 2 +-
.../apis/monitoring/beats/overview.js | 2 +-
.../apis/monitoring/cluster/index.js | 2 +-
.../apis/monitoring/cluster/list.js | 2 +-
.../apis/monitoring/cluster/overview.js | 4 +-
.../apis/monitoring/common/index.js | 2 +-
.../apis/monitoring/common/mappings_exist.js | 2 +-
.../apis/monitoring/elasticsearch/ccr.js | 2 +-
.../monitoring/elasticsearch/ccr_shard.js | 2 +-
.../apis/monitoring/elasticsearch/index.js | 2 +-
.../monitoring/elasticsearch/index_detail.js | 2 +-
.../apis/monitoring/elasticsearch/indices.js | 2 +-
.../monitoring/elasticsearch/node_detail.js | 4 +-
.../elasticsearch/node_detail_advanced.js | 2 +-
.../apis/monitoring/elasticsearch/nodes.js | 22 +-
.../apis/monitoring/elasticsearch/overview.js | 2 +-
.../elasticsearch_settings/check_cluster.js | 2 +-
.../elasticsearch_settings/check_nodes.js | 4 +-
.../elasticsearch_settings/index.js | 2 +-
.../set_collection_enabled.js | 7 +-
.../set_collection_interval.js | 2 +-
.../api_integration/apis/monitoring/index.js | 2 +-
.../apis/monitoring/kibana/index.js | 2 +-
.../apis/monitoring/kibana/instance.js | 2 +-
.../apis/monitoring/kibana/listing.js | 2 +-
.../apis/monitoring/kibana/overview.js | 2 +-
.../apis/monitoring/logs/cluster.js | 2 +-
.../apis/monitoring/logs/index.js | 2 +-
.../apis/monitoring/logs/index_detail.js | 2 +-
.../apis/monitoring/logs/multiple_clusters.js | 2 +-
.../apis/monitoring/logs/node_detail.js | 2 +-
.../apis/monitoring/logstash/index.js | 2 +-
.../logstash/multicluster_pipelines.js | 2 +-
.../apis/monitoring/logstash/node_detail.js | 2 +-
.../apis/monitoring/logstash/nodes.js | 2 +-
.../apis/monitoring/logstash/overview.js | 2 +-
.../apis/monitoring/logstash/pipelines.js | 4 +-
.../apis/monitoring/setup/collection/ccs.js | 2 +-
.../monitoring/setup/collection/detect_apm.js | 2 +-
.../setup/collection/detect_beats.js | 2 +-
.../collection/detect_beats_management.js | 2 +-
.../setup/collection/detect_logstash.js | 2 +-
.../collection/detect_logstash_management.js | 2 +-
.../collection/es_and_kibana_exclusive_mb.js | 2 +-
.../setup/collection/es_and_kibana_mb.js | 2 +-
.../apis/monitoring/setup/collection/index.js | 2 +-
.../setup/collection/kibana_exclusive_mb.js | 2 +-
.../monitoring/setup/collection/kibana_mb.js | 2 +-
.../monitoring/setup/collection/security.js | 2 +-
.../apis/monitoring/setup/index.js | 4 +-
.../monitoring/standalone_cluster/cluster.js | 2 +-
.../monitoring/standalone_cluster/clusters.js | 4 +-
.../monitoring/standalone_cluster/index.js | 2 +-
.../api_integration/apis/security/api_keys.ts | 2 +-
.../apis/security/basic_login.js | 12 +-
.../apis/security/builtin_es_privileges.ts | 6 +-
.../apis/security/change_password.ts | 2 +-
.../api_integration/apis/security/index.js | 4 +-
.../apis/security/index_fields.ts | 4 +-
.../apis/security/privileges.ts | 12 +-
.../apis/security/privileges_basic.ts | 2 +-
.../api_integration/apis/security/roles.js | 7 +-
.../apis/security/security_basic.ts | 4 +-
.../api_integration/apis/security/session.ts | 2 +-
.../apis/short_urls/feature_controls.ts | 6 +-
.../apis/siem/authentications.ts | 6 +-
.../apis/siem/feature_controls.ts | 2 +-
.../test/api_integration/apis/siem/hosts.ts | 10 +-
.../test/api_integration/apis/siem/index.js | 2 +-
.../api_integration/apis/siem/ip_overview.ts | 6 +-
.../apis/siem/kpi_host_details.ts | 6 +-
.../api_integration/apis/siem/kpi_hosts.ts | 6 +-
.../api_integration/apis/siem/kpi_network.ts | 6 +-
.../api_integration/apis/siem/network_dns.ts | 10 +-
.../apis/siem/network_top_n_flow.ts | 14 +-
.../apis/siem/overview_host.ts | 4 +-
.../apis/siem/overview_network.ts | 8 +-
.../apis/siem/saved_objects/notes.ts | 2 +-
.../apis/siem/saved_objects/pinned_events.ts | 2 +-
.../apis/siem/saved_objects/timeline.ts | 4 +-
.../test/api_integration/apis/siem/sources.ts | 4 +-
.../api_integration/apis/siem/timeline.ts | 6 +-
.../apis/siem/timeline_details.ts | 6 +-
x-pack/test/api_integration/apis/siem/tls.ts | 10 +-
.../apis/siem/uncommon_processes.ts | 2 +-
.../test/api_integration/apis/siem/users.ts | 4 +-
.../apis/spaces/get_active_space.ts | 21 +-
.../test/api_integration/apis/spaces/index.ts | 4 +-
.../apis/spaces/saved_objects.ts | 2 +-
.../apis/spaces/space_attributes.ts | 2 +-
.../api_integration/apis/telemetry/index.js | 2 +-
.../api_integration/apis/telemetry/opt_in.ts | 2 +-
.../apis/telemetry/telemetry.js | 2 +-
.../apis/telemetry/telemetry_local.js | 11 +-
.../telemetry/telemetry_optin_notice_seen.ts | 5 +-
.../apis/uptime/get_all_pings.ts | 2 +-
.../test/api_integration/apis/uptime/index.ts | 2 +-
.../api_integration/apis/uptime/rest/certs.ts | 2 +-
.../apis/uptime/rest/doc_count.ts | 2 +-
.../apis/uptime/rest/dynamic_settings.ts | 2 +-
.../apis/uptime/rest/filters.ts | 2 +-
.../uptime/rest/helper/expect_fixture_eql.ts | 2 +-
.../apis/uptime/rest/helper/make_checks.ts | 17 +-
.../apis/uptime/rest/helper/make_tls.ts | 5 +-
.../api_integration/apis/uptime/rest/index.ts | 2 +-
.../apis/uptime/rest/monitor_duration.ts | 2 +-
.../apis/uptime/rest/monitor_latest_status.ts | 2 +-
.../uptime/rest/monitor_states_generated.ts | 4 +-
.../uptime/rest/monitor_states_real_data.ts | 10 +-
.../apis/uptime/rest/ping_histogram.ts | 2 +-
.../apis/uptime/rest/ping_list.ts | 2 +-
.../apis/uptime/rest/snapshot.ts | 2 +-
.../apis/uptime/rest/telemetry_collectors.ts | 2 +-
.../api_integration/apis/xpack_main/index.js | 2 +-
.../apis/xpack_main/settings/index.js | 2 +-
.../apis/xpack_main/settings/settings.js | 7 +-
.../api_integration/config_security_basic.js | 4 +-
.../services/infraops_graphql_client.ts | 2 +-
.../services/ingest_manager.ts | 5 +-
.../services/siem_graphql_client.ts | 2 +-
.../basic/tests/agent_configuration.ts | 6 +-
.../basic/tests/annotations.ts | 5 +-
.../apm_api_integration/basic/tests/index.ts | 2 +-
.../trial/tests/annotations.ts | 5 +-
.../apm_api_integration/trial/tests/index.ts | 2 +-
.../basic/tests/cases/find_cases.ts | 25 +-
.../basic/tests/cases/get_case.ts | 6 +-
.../tests/cases/reporters/get_reporters.ts | 6 +-
.../basic/tests/cases/status/get_status.ts | 5 +-
.../basic/tests/cases/tags/get_tags.ts | 5 +-
.../user_actions/get_all_user_actions.ts | 13 +-
.../case_api_integration/basic/tests/index.ts | 2 +-
.../case_api_integration/common/config.ts | 7 +-
.../basic/tests/find_statuses.ts | 2 +-
.../basic/tests/import_rules.ts | 2 +-
.../basic/tests/index.ts | 2 +-
.../common/config.ts | 2 +-
.../tests/find_statuses.ts | 2 +-
.../security_and_spaces/tests/import_rules.ts | 2 +-
.../security_and_spaces/tests/index.ts | 2 +-
.../detection_engine_api_integration/utils.ts | 14 +-
.../config.ts | 2 +-
.../server/hidden_saved_object_routes.ts | 4 +-
.../api_consumer_plugin/server/index.ts | 2 +-
.../tests/encrypted_saved_objects_api.ts | 7 +-
.../tests/index.ts | 2 +-
.../apis/alerts/index.ts | 2 +-
.../apis/alerts/index_pattern.ts | 2 +-
.../apis/index.ts | 2 +-
.../apis/metadata.ts | 8 +-
.../config.ts | 2 +-
x-pack/test/epm_api_integration/apis/file.ts | 2 +-
x-pack/test/epm_api_integration/apis/ilm.ts | 2 +-
x-pack/test/epm_api_integration/apis/index.js | 4 +-
x-pack/test/epm_api_integration/apis/list.ts | 2 +-
.../test/epm_api_integration/apis/template.ts | 2 +-
x-pack/test/epm_api_integration/config.ts | 2 +-
.../advanced_settings_security.ts | 10 +-
.../advanced_settings_spaces.ts | 6 +-
.../functional/apps/api_keys/home_page.ts | 2 +-
x-pack/test/functional/apps/api_keys/index.ts | 2 +-
.../apps/apm/feature_controls/apm_security.ts | 8 +-
.../apps/apm/feature_controls/apm_spaces.ts | 6 +-
.../apps/apm/feature_controls/index.ts | 4 +-
x-pack/test/functional/apps/apm/index.ts | 4 +-
.../functional/apps/canvas/custom_elements.ts | 2 +-
.../test/functional/apps/canvas/expression.ts | 2 +-
.../feature_controls/canvas_security.ts | 8 +-
.../canvas/feature_controls/canvas_spaces.ts | 8 +-
.../test/functional/apps/canvas/smoke_test.js | 2 +-
.../cross_cluster_replication/home_page.ts | 2 +-
.../apps/cross_cluster_replication/index.ts | 2 +-
.../apps/dashboard/_async_dashboard.ts | 10 +-
.../drilldowns/dashboard_drilldowns.ts | 4 +-
.../apps/dashboard/drilldowns/index.ts | 4 +-
.../feature_controls/dashboard_security.ts | 8 +-
.../feature_controls/dashboard_spaces.ts | 6 +-
.../apps/dashboard/feature_controls/index.ts | 4 +-
.../test/functional/apps/dashboard/index.ts | 4 +-
.../functional/apps/dashboard/preserve_url.ts | 12 +-
.../apps/dashboard/reporting/download_csv.ts | 6 +-
.../apps/dashboard/reporting/index.ts | 4 +-
.../apps/dashboard/reporting/screenshots.ts | 6 +-
.../dashboard_mode/dashboard_empty_screen.js | 4 +-
.../dashboard_mode/dashboard_view_mode.js | 4 +-
.../functional/apps/dashboard_mode/index.js | 4 +-
.../feature_controls/dev_tools_security.ts | 6 +-
.../feature_controls/dev_tools_spaces.ts | 6 +-
.../apps/dev_tools/feature_controls/index.ts | 4 +-
.../test/functional/apps/dev_tools/index.ts | 4 +-
.../apps/dev_tools/searchprofiler_editor.ts | 2 +-
.../feature_controls/discover_security.ts | 8 +-
.../feature_controls/discover_spaces.ts | 6 +-
.../apps/discover/feature_controls/index.ts | 4 +-
x-pack/test/functional/apps/discover/index.ts | 4 +-
.../functional/apps/discover/preserve_url.ts | 12 +-
.../functional/apps/discover/reporting.ts | 2 +-
.../graph/feature_controls/graph_security.ts | 8 +-
.../graph/feature_controls/graph_spaces.ts | 6 +-
.../apps/graph/feature_controls/index.ts | 4 +-
x-pack/test/functional/apps/graph/graph.ts | 26 +-
x-pack/test/functional/apps/graph/index.ts | 4 +-
.../apps/grok_debugger/grok_debugger.js | 4 +-
.../functional/apps/grok_debugger/index.js | 4 +-
.../index_lifecycle_management/home_page.ts | 2 +-
.../apps/index_lifecycle_management/index.ts | 2 +-
.../apps/index_management/home_page.ts | 2 +-
.../functional/apps/index_management/index.ts | 2 +-
.../index_patterns/feature_controls/index.ts | 4 +-
.../index_patterns_security.ts | 8 +-
.../feature_controls/index_patterns_spaces.ts | 4 +-
.../apps/infra/feature_controls/index.ts | 4 +-
.../infrastructure_security.ts | 8 +-
.../feature_controls/infrastructure_spaces.ts | 6 +-
.../infra/feature_controls/logs_security.ts | 8 +-
.../infra/feature_controls/logs_spaces.ts | 6 +-
.../test/functional/apps/infra/home_page.ts | 2 +-
x-pack/test/functional/apps/infra/index.ts | 2 +-
x-pack/test/functional/apps/infra/link_to.ts | 2 +-
.../apps/infra/log_entry_categories_tab.ts | 2 +-
.../apps/infra/log_entry_rate_tab.ts | 2 +-
.../apps/infra/logs_source_configuration.ts | 2 +-
.../infra/metrics_source_configuration.ts | 2 +-
.../functional/apps/ingest_pipelines/index.ts | 2 +-
.../apps/ingest_pipelines/ingest_pipelines.ts | 4 +-
x-pack/test/functional/apps/lens/index.ts | 4 +-
.../functional/apps/lens/lens_reporting.ts | 2 +-
.../test/functional/apps/lens/smokescreen.ts | 8 +-
.../apps/license_management/home_page.ts | 2 +-
.../apps/license_management/index.ts | 2 +-
x-pack/test/functional/apps/logstash/index.js | 4 +-
.../apps/logstash/pipeline_create.js | 4 +-
.../functional/apps/logstash/pipeline_list.js | 18 +-
.../anomaly_detection/advanced_job.ts | 10 +-
.../anomaly_detection/anomaly_explorer.ts | 8 +-
.../anomaly_detection/categorization_job.ts | 10 +-
.../anomaly_detection/date_nanos_job.ts | 8 +-
.../anomaly_detection/index.ts | 4 +-
.../anomaly_detection/multi_metric_job.ts | 8 +-
.../anomaly_detection/population_job.ts | 12 +-
.../anomaly_detection/saved_search_job.ts | 8 +-
.../anomaly_detection/single_metric_job.ts | 10 +-
.../anomaly_detection/single_metric_viewer.ts | 6 +-
.../classification_creation.ts | 8 +-
.../data_frame_analytics/cloning.ts | 8 +-
.../data_frame_analytics/index.ts | 4 +-
.../outlier_detection_creation.ts | 8 +-
.../regression_creation.ts | 8 +-
.../data_visualizer/file_data_visualizer.ts | 8 +-
.../machine_learning/data_visualizer/index.ts | 4 +-
.../data_visualizer/index_data_visualizer.ts | 8 +-
.../feature_controls/index.ts | 4 +-
.../feature_controls/ml_security.ts | 8 +-
.../feature_controls/ml_spaces.ts | 6 +-
.../functional/apps/machine_learning/index.ts | 4 +-
.../functional/apps/machine_learning/pages.ts | 4 +-
.../functional/apps/maps/add_layer_panel.js | 2 +-
.../apps/maps/blended_vector_layer.js | 2 +-
x-pack/test/functional/apps/maps/discover.js | 2 +-
.../maps/documents_source/docvalue_fields.js | 2 +-
.../apps/maps/documents_source/index.js | 4 +-
.../apps/maps/documents_source/search_hits.js | 2 +-
.../apps/maps/documents_source/top_hits.js | 2 +-
.../apps/maps/embeddable/dashboard.js | 2 +-
.../apps/maps/embeddable/embeddable_state.js | 2 +-
.../functional/apps/maps/embeddable/index.js | 4 +-
.../maps/embeddable/tooltip_filter_actions.js | 2 +-
.../apps/maps/es_geo_grid_source.js | 2 +-
.../functional/apps/maps/es_pew_pew_source.js | 2 +-
.../maps/feature_controls/maps_security.ts | 8 +-
.../apps/maps/feature_controls/maps_spaces.ts | 4 +-
.../functional/apps/maps/full_screen_mode.js | 2 +-
.../import_geojson/add_layer_import_panel.js | 2 +-
.../import_geojson/file_indexing_panel.js | 6 +-
.../apps/maps/import_geojson/index.js | 4 +-
x-pack/test/functional/apps/maps/index.js | 8 +-
x-pack/test/functional/apps/maps/joins.js | 8 +-
.../test/functional/apps/maps/layer_errors.js | 2 +-
.../test/functional/apps/maps/sample_data.js | 2 +-
.../apps/maps/saved_object_management.js | 2 +-
.../functional/apps/maps/vector_styling.js | 9 +-
.../apps/maps/visualize_create_menu.js | 2 +-
.../apps/monitoring/beats/beat_detail.js | 2 +-
.../apps/monitoring/beats/cluster.js | 2 +-
.../apps/monitoring/beats/listing.js | 2 +-
.../apps/monitoring/beats/overview.js | 2 +-
.../apps/monitoring/cluster/alerts.js | 4 +-
.../apps/monitoring/cluster/list.js | 8 +-
.../apps/monitoring/cluster/overview.js | 2 +-
.../monitoring/elasticsearch/index_detail.js | 2 +-
.../apps/monitoring/elasticsearch/indices.js | 2 +-
.../monitoring/elasticsearch/node_detail.js | 2 +-
.../apps/monitoring/elasticsearch/nodes.js | 6 +-
.../apps/monitoring/elasticsearch/overview.js | 2 +-
.../apps/monitoring/elasticsearch/shards.js | 2 +-
.../monitoring/enable_monitoring/index.js | 11 +-
.../apps/monitoring/feature_controls/index.ts | 4 +-
.../feature_controls/monitoring_security.ts | 6 +-
.../feature_controls/monitoring_spaces.ts | 6 +-
.../test/functional/apps/monitoring/index.js | 4 +-
.../apps/monitoring/kibana/instance.js | 2 +-
.../apps/monitoring/kibana/instances.js | 2 +-
.../apps/monitoring/kibana/overview.js | 2 +-
.../apps/monitoring/logstash/pipelines.js | 2 +-
.../functional/apps/monitoring/time_filter.js | 2 +-
.../apps/remote_clusters/home_page.ts | 2 +-
.../functional/apps/remote_clusters/index.ts | 2 +-
.../apps/reporting_management/index.ts | 2 +-
.../report_delete_pagination.ts | 2 +-
.../apps/rollup_job/hybrid_index_pattern.js | 8 +-
.../test/functional/apps/rollup_job/index.js | 4 +-
.../functional/apps/rollup_job/rollup_jobs.js | 6 +-
.../test/functional/apps/rollup_job/tsvb.js | 6 +-
.../saved_objects_management_security.ts | 2 +-
.../apps/security/basic_license/index.ts | 4 +-
.../security/basic_license/role_mappings.ts | 2 +-
.../apps/security/doc_level_security_roles.js | 10 +-
.../apps/security/field_level_security.js | 16 +-
x-pack/test/functional/apps/security/index.js | 4 +-
.../functional/apps/security/management.js | 4 +-
.../functional/apps/security/rbac_phase1.js | 8 +-
.../functional/apps/security/role_mappings.ts | 6 +-
.../apps/security/secure_roles_perm.js | 14 +-
.../test/functional/apps/security/security.ts | 4 +-
.../apps/security/trial_license/index.ts | 4 +-
.../security/trial_license/login_selector.ts | 4 +-
.../functional/apps/security/user_email.js | 14 +-
x-pack/test/functional/apps/security/users.js | 14 +-
.../apps/snapshot_restore/home_page.ts | 2 +-
.../functional/apps/snapshot_restore/index.ts | 2 +-
.../apps/spaces/copy_saved_objects.ts | 2 +-
.../functional/apps/spaces/enter_space.ts | 2 +-
.../feature_controls/spaces_security.ts | 6 +-
.../apps/spaces/spaces_selection.ts | 2 +-
.../apps/status_page/status_page.ts | 2 +-
.../feature_controls/timelion_security.ts | 6 +-
.../feature_controls/timelion_spaces.ts | 6 +-
.../test/functional/apps/transform/cloning.ts | 6 +-
.../apps/transform/creation_index_pattern.ts | 8 +-
.../apps/transform/creation_saved_search.ts | 8 +-
.../test/functional/apps/transform/index.ts | 4 +-
.../upgrade_assistant/upgrade_assistant.ts | 2 +-
.../functional/apps/uptime/certificates.ts | 2 +-
.../apps/uptime/feature_controls/index.ts | 4 +-
.../feature_controls/uptime_security.ts | 8 +-
.../uptime/feature_controls/uptime_spaces.ts | 6 +-
x-pack/test/functional/apps/uptime/index.ts | 2 +-
.../test/functional/apps/uptime/locations.ts | 4 +-
.../test/functional/apps/uptime/ml_anomaly.ts | 2 +-
x-pack/test/functional/apps/uptime/monitor.ts | 2 +-
.../test/functional/apps/uptime/overview.ts | 2 +-
.../feature_controls/visualize_security.ts | 8 +-
.../feature_controls/visualize_spaces.ts | 6 +-
.../apps/visualize/hybrid_visualization.ts | 2 +-
.../apps/visualize/precalculated_histogram.ts | 10 +-
.../functional/apps/visualize/preserve_url.ts | 12 +-
.../functional/apps/visualize/reporting.ts | 4 +-
x-pack/test/functional/apps/watcher/index.js | 4 +-
.../functional/apps/watcher/watcher_test.js | 4 +-
x-pack/test/functional/config.coverage.js | 2 +-
x-pack/test/functional/config.edge.js | 2 +-
x-pack/test/functional/config.firefox.js | 2 +-
x-pack/test/functional/config.ie.js | 2 +-
x-pack/test/functional/config.js | 2 +-
.../test/functional/config_security_basic.ts | 2 +-
.../test/functional/config_security_trial.ts | 2 +-
.../test/functional/page_objects/gis_page.js | 2 +-
.../page_objects/index_management_page.ts | 26 +-
.../page_objects/ingest_pipelines_page.ts | 2 +-
.../test/functional/page_objects/lens_page.ts | 4 +-
.../functional/page_objects/log_wrapper.ts | 2 +-
.../functional/page_objects/reporting_page.ts | 2 +-
.../functional/page_objects/rollup_page.js | 2 +-
.../functional/page_objects/security_page.ts | 34 +-
.../page_objects/snapshot_restore_page.ts | 4 +-
.../functional/page_objects/uptime_page.ts | 2 +-
.../functional/page_objects/watcher_page.js | 4 +-
x-pack/test/functional/services/ace_editor.js | 2 +-
.../infra_source_configuration_form.ts | 4 +-
.../functional/services/logs_ui/log_stream.ts | 2 +-
.../machine_learning/anomaly_explorer.ts | 2 +-
.../services/machine_learning/api.ts | 15 +-
.../data_frame_analytics_table.ts | 2 +-
.../machine_learning/job_selection.ts | 2 +-
.../services/machine_learning/job_table.ts | 28 +-
.../machine_learning/security_common.ts | 2 +-
.../services/monitoring/cluster_alerts.js | 2 +-
.../monitoring/elasticsearch_shards.js | 4 +-
.../functional/services/pipeline_editor.js | 2 +-
.../test/functional/services/pipeline_list.js | 24 +-
.../functional/services/transform_ui/api.ts | 5 +-
.../services/transform_ui/security_common.ts | 2 +-
.../services/transform_ui/transform_table.ts | 10 +-
.../services/transform_ui/wizard.ts | 8 +-
.../functional/services/uptime/monitor.ts | 2 +-
.../apps/endpoint/alerts.ts | 4 +-
.../feature_controls/endpoint_spaces.ts | 6 +-
.../apps/endpoint/feature_controls/index.ts | 4 +-
.../apps/endpoint/header_nav.ts | 2 +-
.../apps/endpoint/host_list.ts | 4 +-
.../apps/endpoint/index.ts | 4 +-
.../apps/endpoint/landing_page.ts | 2 +-
.../apps/endpoint/policy_list.ts | 4 +-
.../apps/endpoint/resolver.ts | 6 +-
x-pack/test/functional_endpoint/config.ts | 2 +-
.../page_objects/endpoint_alerts_page.ts | 10 +-
.../page_objects/endpoint_page.ts | 8 +-
.../apps/endpoint/index.ts | 4 +-
.../apps/endpoint/landing_page.ts | 2 +-
.../config.ts | 2 +-
.../apps/triggers_actions_ui/alerts.ts | 2 +-
.../apps/triggers_actions_ui/connectors.ts | 2 +-
.../apps/triggers_actions_ui/details.ts | 30 +-
.../apps/triggers_actions_ui/home_page.ts | 2 +-
.../apps/triggers_actions_ui/index.ts | 2 +-
.../apps/uptime/alert_flyout.ts | 14 +-
.../apps/uptime/index.ts | 2 +-
x-pack/test/functional_with_es_ssl/config.ts | 2 +-
.../page_objects/alert_details.ts | 4 +-
.../page_objects/triggers_actions_ui_page.ts | 4 +-
.../anonymous_access.config.ts | 2 +-
.../kerberos_api_integration/apis/index.ts | 4 +-
.../apis/security/index.ts | 2 +-
.../apis/security/kerberos_login.ts | 21 +-
.../test/kerberos_api_integration/config.ts | 2 +-
x-pack/test/licensing_plugin/config.legacy.ts | 2 +-
x-pack/test/licensing_plugin/config.public.ts | 2 +-
x-pack/test/licensing_plugin/config.ts | 2 +-
x-pack/test/licensing_plugin/legacy/index.ts | 4 +-
.../test/licensing_plugin/legacy/updates.ts | 2 +-
x-pack/test/licensing_plugin/public/index.ts | 4 +-
.../test/licensing_plugin/public/updates.ts | 10 +-
x-pack/test/licensing_plugin/scenario.ts | 2 +-
x-pack/test/licensing_plugin/server/header.ts | 2 +-
x-pack/test/licensing_plugin/server/index.ts | 4 +-
x-pack/test/licensing_plugin/server/info.ts | 2 +-
.../test/licensing_plugin/server/updates.ts | 2 +-
.../apis/index.ts | 4 +-
.../apis/login_selector.ts | 2 +-
.../login_selector_api_integration/config.ts | 2 +-
.../basic/tests/annotations.ts | 5 +-
.../basic/tests/index.ts | 2 +-
.../trial/tests/annotations.ts | 10 +-
.../trial/tests/index.ts | 2 +-
.../apis/authorization_code_flow/index.js | 4 +-
.../apis/authorization_code_flow/oidc_auth.js | 17 +-
.../apis/implicit_flow/index.ts | 4 +-
.../apis/implicit_flow/oidc_auth.ts | 4 +-
x-pack/test/oidc_api_integration/config.ts | 2 +-
.../fixtures/oidc_provider/server/index.ts | 2 +-
.../oidc_provider/server/init_routes.ts | 4 +-
.../fixtures/oidc_tools.ts | 4 +-
.../implicit_flow.config.ts | 2 +-
x-pack/test/pki_api_integration/apis/index.ts | 4 +-
.../apis/security/index.ts | 2 +-
.../apis/security/pki_auth.ts | 6 +-
x-pack/test/pki_api_integration/config.ts | 2 +-
x-pack/test/plugin_api_integration/config.ts | 6 +-
.../plugins/event_log/server/init_routes.ts | 16 +-
.../sample_task_plugin/server/init_routes.ts | 16 +-
.../sample_task_plugin/server/plugin.ts | 6 +-
.../test_suites/event_log/index.ts | 2 +-
.../event_log/public_api_integration.ts | 9 +-
.../event_log/service_api_integration.ts | 7 +-
.../licensed_feature_usage/feature_usage.ts | 2 +-
.../licensed_feature_usage/index.ts | 4 +-
.../test_suites/task_manager/index.js | 2 +-
.../task_manager/task_manager_integration.js | 50 +-
x-pack/test/plugin_api_perf/config.js | 6 +-
.../server/init_routes.ts | 8 +-
.../task_manager_performance/server/plugin.ts | 9 +-
.../test_suites/task_manager/index.ts | 2 +-
.../task_manager_perf_integration.ts | 7 +-
x-pack/test/plugin_functional/config.ts | 6 +-
.../applications/resolver_test/index.tsx | 2 +-
.../plugins/resolver_test/public/plugin.ts | 2 +-
.../test_suites/resolver/index.ts | 10 +-
.../test/reporting_api_integration/config.js | 2 +-
.../reporting/csv_job_params.ts | 2 +-
.../reporting/csv_saved_search.ts | 4 +-
.../reporting/index.ts | 4 +-
.../reporting/usage.ts | 2 +-
.../reporting_api_integration/services.ts | 6 +-
.../test/saml_api_integration/apis/index.ts | 4 +-
.../apis/security/index.ts | 2 +-
.../apis/security/saml_login.ts | 19 +-
x-pack/test/saml_api_integration/config.ts | 2 +-
.../fixtures/saml_provider/server/index.ts | 2 +-
.../common/config.ts | 2 +-
.../common/lib/saved_object_test_utils.ts | 10 +-
.../common/suites/bulk_create.ts | 8 +-
.../common/suites/bulk_get.ts | 6 +-
.../common/suites/bulk_update.ts | 8 +-
.../common/suites/create.ts | 4 +-
.../common/suites/delete.ts | 4 +-
.../common/suites/export.ts | 4 +-
.../common/suites/find.ts | 4 +-
.../common/suites/get.ts | 4 +-
.../common/suites/import.ts | 14 +-
.../common/suites/resolve_import_errors.ts | 14 +-
.../common/suites/update.ts | 4 +-
.../security_and_spaces/apis/bulk_create.ts | 6 +-
.../security_and_spaces/apis/bulk_get.ts | 6 +-
.../security_and_spaces/apis/bulk_update.ts | 6 +-
.../security_and_spaces/apis/create.ts | 6 +-
.../security_and_spaces/apis/delete.ts | 6 +-
.../security_and_spaces/apis/export.ts | 6 +-
.../security_and_spaces/apis/find.ts | 6 +-
.../security_and_spaces/apis/get.ts | 6 +-
.../security_and_spaces/apis/import.ts | 6 +-
.../security_and_spaces/apis/index.ts | 4 +-
.../apis/resolve_import_errors.ts | 6 +-
.../security_and_spaces/apis/update.ts | 6 +-
.../security_only/apis/bulk_create.ts | 6 +-
.../security_only/apis/bulk_get.ts | 6 +-
.../security_only/apis/bulk_update.ts | 6 +-
.../security_only/apis/create.ts | 6 +-
.../security_only/apis/delete.ts | 6 +-
.../security_only/apis/export.ts | 6 +-
.../security_only/apis/find.ts | 6 +-
.../security_only/apis/get.ts | 6 +-
.../security_only/apis/import.ts | 6 +-
.../security_only/apis/index.ts | 4 +-
.../apis/resolve_import_errors.ts | 6 +-
.../security_only/apis/update.ts | 6 +-
.../spaces_only/apis/bulk_create.ts | 4 +-
.../spaces_only/apis/bulk_get.ts | 2 +-
.../spaces_only/apis/bulk_update.ts | 2 +-
.../spaces_only/apis/create.ts | 2 +-
.../spaces_only/apis/delete.ts | 2 +-
.../spaces_only/apis/export.ts | 2 +-
.../spaces_only/apis/find.ts | 2 +-
.../spaces_only/apis/get.ts | 2 +-
.../spaces_only/apis/import.ts | 2 +-
.../spaces_only/apis/index.ts | 4 +-
.../spaces_only/apis/resolve_import_errors.ts | 2 +-
.../spaces_only/apis/update.ts | 2 +-
x-pack/test/siem_cypress/config.ts | 2 +-
x-pack/test/siem_cypress/runner.ts | 2 +-
.../spaces_api_integration/common/config.ts | 2 +-
.../common/suites/copy_to_space.ts | 2 +-
.../common/suites/delete.ts | 9 +-
.../common/suites/get.ts | 2 +-
.../common/suites/get_all.ts | 2 +-
.../common/suites/share_add.ts | 4 +-
.../common/suites/share_remove.ts | 4 +-
.../security_and_spaces/apis/copy_to_space.ts | 2 +-
.../security_and_spaces/apis/create.ts | 2 +-
.../security_and_spaces/apis/delete.ts | 2 +-
.../security_and_spaces/apis/get.ts | 4 +-
.../security_and_spaces/apis/get_all.ts | 2 +-
.../security_and_spaces/apis/index.ts | 4 +-
.../apis/resolve_copy_to_space_conflicts.ts | 2 +-
.../security_and_spaces/apis/share_add.ts | 14 +-
.../security_and_spaces/apis/share_remove.ts | 6 +-
.../security_and_spaces/apis/update.ts | 2 +-
.../spaces_only/apis/copy_to_space.ts | 2 +-
.../spaces_only/apis/create.ts | 2 +-
.../spaces_only/apis/delete.ts | 2 +-
.../spaces_only/apis/get.ts | 4 +-
.../spaces_only/apis/get_all.ts | 2 +-
.../spaces_only/apis/index.ts | 2 +-
.../apis/resolve_copy_to_space_conflicts.ts | 2 +-
.../spaces_only/apis/share_add.ts | 2 +-
.../spaces_only/apis/share_remove.ts | 2 +-
.../spaces_only/apis/update.ts | 2 +-
.../test/token_api_integration/auth/header.js | 6 +-
.../test/token_api_integration/auth/index.js | 4 +-
.../test/token_api_integration/auth/login.js | 6 +-
.../test/token_api_integration/auth/logout.js | 6 +-
.../token_api_integration/auth/session.js | 18 +-
x-pack/test/token_api_integration/config.js | 2 +-
x-pack/test/ui_capabilities/common/config.ts | 2 +-
.../common/lib/assert_deeply_false.ts | 2 +-
.../common/nav_links_builder.ts | 4 +-
.../common/services/ui_capabilities.ts | 4 +-
.../security_and_spaces/tests/catalogue.ts | 2 +-
.../security_and_spaces/tests/foo.ts | 2 +-
.../security_and_spaces/tests/index.ts | 4 +-
.../security_and_spaces/tests/nav_links.ts | 2 +-
.../security_only/tests/catalogue.ts | 2 +-
.../security_only/tests/foo.ts | 2 +-
.../security_only/tests/index.ts | 4 +-
.../security_only/tests/nav_links.ts | 2 +-
.../spaces_only/tests/catalogue.ts | 2 +-
.../ui_capabilities/spaces_only/tests/foo.ts | 2 +-
.../spaces_only/tests/index.ts | 2 +-
.../spaces_only/tests/nav_links.ts | 2 +-
.../upgrade_assistant_integration/config.js | 2 +-
.../upgrade_assistant/index.js | 4 +-
.../upgrade_assistant/reindexing.js | 8 +-
.../upgrade_assistant/status.ts | 2 +-
x-pack/test/visual_regression/config.ts | 2 +-
.../tests/canvas/fullscreen.js | 2 +-
.../visual_regression/tests/canvas/index.js | 4 +-
.../visual_regression/tests/infra/index.js | 4 +-
.../tests/infra/saved_views.js | 2 +-
.../tests/infra/waffle_map.js | 2 +-
.../visual_regression/tests/login_page.ts | 2 +-
.../visual_regression/tests/maps/index.js | 4 +-
.../tests/maps/vector_styling.js | 2 +-
.../test_subjects_finder/background.js | 2 +-
.../test_subjects_finder/popup.js | 12 +-
.../start_tracking_test_subjects.js | 10 +-
x-pack/test_utils/enzyme_helpers.tsx | 6 +-
x-pack/test_utils/jest/config.integration.js | 2 +-
x-pack/test_utils/lib/utils.ts | 2 +-
x-pack/test_utils/router_helpers.tsx | 4 +-
x-pack/test_utils/testbed/testbed.ts | 20 +-
7130 files changed, 31405 insertions(+), 37175 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index 86ac92de9042d..aeaf6e04fdc01 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -50,7 +50,7 @@ const ELASTIC_LICENSE_HEADER = `
`;
const allMochaRulesOff = {};
-Object.keys(require('eslint-plugin-mocha').rules).forEach(k => {
+Object.keys(require('eslint-plugin-mocha').rules).forEach((k) => {
allMochaRulesOff['mocha/' + k] = 'off';
});
diff --git a/Gruntfile.js b/Gruntfile.js
index c33a576d4340f..0216ab12f7cc5 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -19,7 +19,7 @@
require('./src/setup_node_env');
-module.exports = function(grunt) {
+module.exports = function (grunt) {
// set the config once before calling load-grunt-config
// and once during so that we have access to it via
// grunt.config.get() within the config files
diff --git a/examples/alerting_example/public/alert_types/always_firing.tsx b/examples/alerting_example/public/alert_types/always_firing.tsx
index b7add1f6d43ce..130519308d3c3 100644
--- a/examples/alerting_example/public/alert_types/always_firing.tsx
+++ b/examples/alerting_example/public/alert_types/always_firing.tsx
@@ -71,7 +71,7 @@ export const AlwaysFiringExpression: React.FunctionComponent {
+ onChange={(event) => {
setAlertParams('instances', event.target.valueAsNumber);
}}
/>
diff --git a/examples/alerting_example/public/alert_types/astros.tsx b/examples/alerting_example/public/alert_types/astros.tsx
index 3411c6722ccd6..2e263e454fa0c 100644
--- a/examples/alerting_example/public/alert_types/astros.tsx
+++ b/examples/alerting_example/public/alert_types/astros.tsx
@@ -51,7 +51,7 @@ interface PeopleinSpaceParamsProps {
}
function isValueInEnum(enumeratin: Record, value: any): boolean {
- return !!Object.values(enumeratin).find(enumVal => enumVal === value);
+ return !!Object.values(enumeratin).find((enumVal) => enumVal === value);
}
export function getAlertType(): AlertTypeModel {
@@ -139,7 +139,7 @@ export const PeopleinSpaceExpression: React.FunctionComponent
- errs.map(e => (
+ errs.map((e) => (
{field}:`: ${errs}`
@@ -189,7 +189,7 @@ export const PeopleinSpaceExpression: React.FunctionComponent {
+ onChange={(event) => {
setAlertParams('craft', event.target.value);
setCraftTrigger({
craft: event.target.value,
@@ -238,7 +238,7 @@ export const PeopleinSpaceExpression: React.FunctionComponent {
+ onChange={(event) => {
setAlertParams('op', event.target.value);
setOuterSpaceCapacity({
...outerSpaceCapacityTrigger,
@@ -258,7 +258,7 @@ export const PeopleinSpaceExpression: React.FunctionComponent {
+ onChange={(event) => {
setAlertParams('outerSpaceCapacity', event.target.valueAsNumber);
setOuterSpaceCapacity({
...outerSpaceCapacityTrigger,
diff --git a/examples/alerting_example/server/alert_types/astros.ts b/examples/alerting_example/server/alert_types/astros.ts
index d22bc6164fa52..d25edc1e01b3f 100644
--- a/examples/alerting_example/server/alert_types/astros.ts
+++ b/examples/alerting_example/server/alert_types/astros.ts
@@ -68,10 +68,7 @@ export const alertType: AlertType = {
if (getOperator(op)(peopleInCraft.length, outerSpaceCapacity)) {
peopleInCraft.forEach(({ craft, name }) => {
- services
- .alertInstanceFactory(name)
- .replaceState({ craft })
- .scheduleActions('default');
+ services.alertInstanceFactory(name).replaceState({ craft }).scheduleActions('default');
});
}
diff --git a/examples/bfetch_explorer/public/components/count_until/index.tsx b/examples/bfetch_explorer/public/components/count_until/index.tsx
index ce48ce9dfe61f..73cbcf4cbdb1c 100644
--- a/examples/bfetch_explorer/public/components/count_until/index.tsx
+++ b/examples/bfetch_explorer/public/components/count_until/index.tsx
@@ -82,7 +82,7 @@ export const CountUntil: React.FC = ({ fetchStreaming }) => {
setData(Number(e.target.value))}
+ onChange={(e) => setData(Number(e.target.value))}
/>
diff --git a/examples/bfetch_explorer/public/components/double_integers/index.tsx b/examples/bfetch_explorer/public/components/double_integers/index.tsx
index d8fbe33ec73be..58940c23b1a6c 100644
--- a/examples/bfetch_explorer/public/components/double_integers/index.tsx
+++ b/examples/bfetch_explorer/public/components/double_integers/index.tsx
@@ -49,18 +49,18 @@ export const DoubleIntegers: React.FC = ({ double }) => {
setShowingResults(true);
const nums = numbers
.split('\n')
- .map(num => num.trim())
+ .map((num) => num.trim())
.filter(Boolean)
.map(Number);
counter.set(nums.length);
- nums.forEach(num => {
+ nums.forEach((num) => {
double({ num }).then(
- result => {
+ (result) => {
if (!isMounted()) return;
counter.dec();
pushResult({ num, result });
},
- error => {
+ (error) => {
if (!isMounted()) return;
counter.dec();
pushResult({ num, error });
@@ -94,7 +94,7 @@ export const DoubleIntegers: React.FC = ({ double }) => {
fullWidth
placeholder="Enter numbers in milliseconds separated by new line"
value={numbers}
- onChange={e => setNumbers(e.target.value)}
+ onChange={(e) => setNumbers(e.target.value)}
/>
diff --git a/examples/bfetch_explorer/public/containers/app/index.tsx b/examples/bfetch_explorer/public/containers/app/index.tsx
index a448c9e4f3a6a..13dee8ad9e61f 100644
--- a/examples/bfetch_explorer/public/containers/app/index.tsx
+++ b/examples/bfetch_explorer/public/containers/app/index.tsx
@@ -30,7 +30,7 @@ export const App: React.FC = () => {
const routeElements: React.ReactElement[] = [];
for (const { items } of routes) {
for (const { id, component } of items) {
- routeElements.push( component} />);
+ routeElements.push( component} />);
}
}
diff --git a/examples/bfetch_explorer/public/containers/app/sidebar/index.tsx b/examples/bfetch_explorer/public/containers/app/sidebar/index.tsx
index cc50698e05908..029076adea666 100644
--- a/examples/bfetch_explorer/public/containers/app/sidebar/index.tsx
+++ b/examples/bfetch_explorer/public/containers/app/sidebar/index.tsx
@@ -39,7 +39,7 @@ export const Sidebar: React.FC = () => {
id,
name: title,
isSelected: true,
- items: items.map(route => ({
+ items: items.map((route) => ({
id: route.id,
name: route.title,
onClick: () => history.push(`/${route.id}`),
diff --git a/examples/bfetch_explorer/server/plugin.ts b/examples/bfetch_explorer/server/plugin.ts
index bf3b7f50ca6c8..2bfb63edefa3d 100644
--- a/examples/bfetch_explorer/server/plugin.ts
+++ b/examples/bfetch_explorer/server/plugin.ts
@@ -54,7 +54,7 @@ export class BfetchExplorerPlugin implements Plugin {
// Validate inputs.
if (num < 0) throw new Error('Invalid number');
// Wait number of specified milliseconds.
- await new Promise(r => setTimeout(r, num));
+ await new Promise((r) => setTimeout(r, num));
// Double the number and send it back.
return { num: 2 * num };
},
diff --git a/examples/demo_search/server/async_demo_search_strategy.ts b/examples/demo_search/server/async_demo_search_strategy.ts
index d2d40891a5d93..7ed5062acba48 100644
--- a/examples/demo_search/server/async_demo_search_strategy.ts
+++ b/examples/demo_search/server/async_demo_search_strategy.ts
@@ -40,7 +40,7 @@ const totalMap = new Map();
export const asyncDemoSearchStrategyProvider: TSearchStrategyProvider = () => {
return {
- search: async request => {
+ search: async (request) => {
const id = request.id ?? generateId();
const loaded = (loadedMap.get(id) ?? 0) + 1;
@@ -52,7 +52,7 @@ export const asyncDemoSearchStrategyProvider: TSearchStrategyProvider {
+ cancel: async (id) => {
loadedMap.delete(id);
totalMap.delete(id);
},
diff --git a/examples/demo_search/server/demo_search_strategy.ts b/examples/demo_search/server/demo_search_strategy.ts
index 5b0883be1fc51..a1fd0e45dbc8e 100644
--- a/examples/demo_search/server/demo_search_strategy.ts
+++ b/examples/demo_search/server/demo_search_strategy.ts
@@ -22,7 +22,7 @@ import { DEMO_SEARCH_STRATEGY } from '../common';
export const demoSearchStrategyProvider: TSearchStrategyProvider = () => {
return {
- search: request => {
+ search: (request) => {
return Promise.resolve({
greeting:
request.mood === 'happy'
diff --git a/examples/embeddable_examples/public/list_container/list_container_component.tsx b/examples/embeddable_examples/public/list_container/list_container_component.tsx
index da27889a27603..ae4de1c765154 100644
--- a/examples/embeddable_examples/public/list_container/list_container_component.tsx
+++ b/examples/embeddable_examples/public/list_container/list_container_component.tsx
@@ -40,7 +40,7 @@ function renderList(
embeddableServices: EmbeddableStart
) {
let number = 0;
- const list = Object.values(panels).map(panel => {
+ const list = Object.values(panels).map((panel) => {
const child = embeddable.getChild(panel.explicitInput.id);
number++;
return (
diff --git a/examples/embeddable_examples/public/multi_task_todo/multi_task_todo_component.tsx b/examples/embeddable_examples/public/multi_task_todo/multi_task_todo_component.tsx
index b2882c97ef501..c059a884f08a2 100644
--- a/examples/embeddable_examples/public/multi_task_todo/multi_task_todo_component.tsx
+++ b/examples/embeddable_examples/public/multi_task_todo/multi_task_todo_component.tsx
@@ -55,7 +55,7 @@ function wrapSearchTerms(task: string, search?: string) {
}
function renderTasks(tasks: MultiTaskTodoInput['tasks'], search?: string) {
- return tasks.map(task => (
+ return tasks.map((task) => (
task.match(search));
+ const match = tasks.find((task) => task.match(search));
if (match) return true;
return false;
diff --git a/examples/embeddable_examples/public/searchable_list_container/searchable_list_container_component.tsx b/examples/embeddable_examples/public/searchable_list_container/searchable_list_container_component.tsx
index 49dbce74788bf..f5fe01734bfa5 100644
--- a/examples/embeddable_examples/public/searchable_list_container/searchable_list_container_component.tsx
+++ b/examples/embeddable_examples/public/searchable_list_container/searchable_list_container_component.tsx
@@ -65,12 +65,12 @@ export class SearchableListContainerComponentInner extends Component {
+ props.embeddable.getChildIds().forEach((id) => {
checked[id] = false;
const output = props.embeddable.getChild(id).getOutput();
hasMatch[id] = hasHasMatchOutput(output) && output.hasMatch;
});
- props.embeddable.getChildIds().forEach(id => (checked[id] = false));
+ props.embeddable.getChildIds().forEach((id) => (checked[id] = false));
this.state = {
checked,
hasMatch,
@@ -78,13 +78,13 @@ export class SearchableListContainerComponentInner extends Component {
+ this.props.embeddable.getChildIds().forEach((id) => {
this.subscriptions[id] = this.props.embeddable
.getChild(id)
.getOutput$()
- .subscribe(output => {
+ .subscribe((output) => {
if (hasHasMatchOutput(output)) {
- this.setState(prevState => ({
+ this.setState((prevState) => ({
hasMatch: {
...prevState.hasMatch,
[id]: output.hasMatch,
@@ -96,7 +96,7 @@ export class SearchableListContainerComponentInner extends Component sub.unsubscribe());
+ Object.values(this.subscriptions).forEach((sub) => sub.unsubscribe());
}
private updateSearch = (search: string) => {
@@ -104,7 +104,7 @@ export class SearchableListContainerComponentInner extends Component {
- Object.values(this.props.input.panels).map(panel => {
+ Object.values(this.props.input.panels).map((panel) => {
if (this.state.checked[panel.explicitInput.id]) {
this.props.embeddable.removeEmbeddable(panel.explicitInput.id);
this.subscriptions[panel.explicitInput.id].unsubscribe();
@@ -115,7 +115,7 @@ export class SearchableListContainerComponentInner extends Component {
const { input, embeddable } = this.props;
const checked: { [key: string]: boolean } = {};
- Object.values(input.panels).map(panel => {
+ Object.values(input.panels).map((panel) => {
const child = embeddable.getChild(panel.explicitInput.id);
const output = child.getOutput();
if (hasHasMatchOutput(output) && output.hasMatch) {
@@ -126,7 +126,7 @@ export class SearchableListContainerComponentInner extends Component {
- this.setState(prevState => ({ checked: { ...prevState.checked, [id]: isChecked } }));
+ this.setState((prevState) => ({ checked: { ...prevState.checked, [id]: isChecked } }));
};
public renderControls() {
@@ -156,7 +156,7 @@ export class SearchableListContainerComponentInner extends Component this.updateSearch(ev.target.value)}
+ onChange={(ev) => this.updateSearch(ev.target.value)}
/>
@@ -183,7 +183,7 @@ export class SearchableListContainerComponentInner extends Component {
+ const list = Object.values(input.panels).map((panel) => {
const childEmbeddable = embeddable.getChild(panel.explicitInput.id);
id++;
return childEmbeddable ? (
@@ -195,7 +195,7 @@ export class SearchableListContainerComponentInner extends Component this.toggleCheck(e.target.checked, childEmbeddable.id)}
+ onChange={(e) => this.toggleCheck(e.target.checked, childEmbeddable.id)}
/>
diff --git a/examples/embeddable_examples/public/todo/todo_embeddable_factory.tsx b/examples/embeddable_examples/public/todo/todo_embeddable_factory.tsx
index bc577ca36d793..a46c3ce9ed8e9 100644
--- a/examples/embeddable_examples/public/todo/todo_embeddable_factory.tsx
+++ b/examples/embeddable_examples/public/todo/todo_embeddable_factory.tsx
@@ -34,7 +34,7 @@ function TaskInput({ onSave }: { onSave: (task: string) => void }) {
data-test-subj="taskInputField"
value={task}
placeholder="Enter task here"
- onChange={e => setTask(e.target.value)}
+ onChange={(e) => setTask(e.target.value)}
/>
onSave(task)}>
Save
@@ -69,7 +69,7 @@ export class TodoEmbeddableFactory
*/
public getExplicitInput = async () => {
const { openModal } = await this.getStartServices();
- return new Promise<{ task: string }>(resolve => {
+ return new Promise<{ task: string }>((resolve) => {
const onSave = (task: string) => resolve({ task });
const overlay = openModal(
toMountPoint(
diff --git a/examples/embeddable_explorer/public/app.tsx b/examples/embeddable_explorer/public/app.tsx
index e18012b4b3d80..3fc7fbb3b89ef 100644
--- a/examples/embeddable_explorer/public/app.tsx
+++ b/examples/embeddable_explorer/public/app.tsx
@@ -51,7 +51,7 @@ type NavProps = RouteComponentProps & {
};
const Nav = withRouter(({ history, navigateToApp, pages }: NavProps) => {
- const navItems = pages.map(page => ({
+ const navItems = pages.map((page) => ({
id: page.id,
name: page.title,
onClick: () => history.push(`/${page.id}`),
@@ -122,7 +122,7 @@ const EmbeddableExplorerApp = ({
];
const routes = pages.map((page, i) => (
- page.component} />
+ page.component} />
));
return (
diff --git a/examples/embeddable_explorer/public/embeddable_panel_example.tsx b/examples/embeddable_explorer/public/embeddable_panel_example.tsx
index 54cd7c5b5b2c0..98f30632ebf43 100644
--- a/examples/embeddable_explorer/public/embeddable_panel_example.tsx
+++ b/examples/embeddable_explorer/public/embeddable_panel_example.tsx
@@ -84,7 +84,7 @@ export function EmbeddablePanelExample({ embeddableServices }: Props) {
const factory = embeddableServices.getEmbeddableFactory(SEARCHABLE_LIST_CONTAINER);
const promise = factory?.create(searchableInput);
if (promise) {
- promise.then(e => {
+ promise.then((e) => {
if (ref.current) {
setEmbeddable(e);
}
diff --git a/examples/embeddable_explorer/public/todo_embeddable_example.tsx b/examples/embeddable_explorer/public/todo_embeddable_example.tsx
index 2af6c713593c6..f43a81c3e7651 100644
--- a/examples/embeddable_explorer/public/todo_embeddable_example.tsx
+++ b/examples/embeddable_explorer/public/todo_embeddable_example.tsx
@@ -82,7 +82,7 @@ export class TodoEmbeddableExample extends React.Component {
icon: 'broom',
title: 'Trash',
})
- .then(embeddable => {
+ .then((embeddable) => {
this.embeddable = embeddable;
this.setState({ loading: false });
});
@@ -135,7 +135,7 @@ export class TodoEmbeddableExample extends React.Component {
this.setState({ title: ev.target.value })}
+ onChange={(ev) => this.setState({ title: ev.target.value })}
/>
@@ -143,7 +143,7 @@ export class TodoEmbeddableExample extends React.Component {
this.setState({ icon: ev.target.value })}
+ onChange={(ev) => this.setState({ icon: ev.target.value })}
/>
@@ -153,7 +153,7 @@ export class TodoEmbeddableExample extends React.Component {
fullWidth
resize="horizontal"
data-test-subj="taskTodo"
- onChange={ev => this.setState({ task: ev.target.value })}
+ onChange={(ev) => this.setState({ task: ev.target.value })}
/>
diff --git a/examples/search_explorer/public/application.tsx b/examples/search_explorer/public/application.tsx
index ea6d65d9e2113..a7072936f268d 100644
--- a/examples/search_explorer/public/application.tsx
+++ b/examples/search_explorer/public/application.tsx
@@ -51,7 +51,7 @@ type NavProps = RouteComponentProps & {
};
const Nav = withRouter(({ history, navigateToApp, pages }: NavProps) => {
- const navItems = pages.map(page => ({
+ const navItems = pages.map((page) => ({
id: page.id,
name: page.title,
onClick: () => history.push(`/${page.id}`),
@@ -103,7 +103,7 @@ const SearchApp = ({ basename, data, application }: SearchBarComponentParams) =>
];
const routes = pages.map((page, i) => (
- buildPage(page)} />
+ buildPage(page)} />
));
return (
diff --git a/examples/search_explorer/public/async_demo_strategy.tsx b/examples/search_explorer/public/async_demo_strategy.tsx
index 40ddcc1f48fe7..9cea556c32d54 100644
--- a/examples/search_explorer/public/async_demo_strategy.tsx
+++ b/examples/search_explorer/public/async_demo_strategy.tsx
@@ -73,7 +73,7 @@ export class AsyncDemoStrategy extends React.Component {
this.setState({ fibonacciNumbers: parseFloat(e.target.value) })}
+ onChange={(e) => this.setState({ fibonacciNumbers: parseFloat(e.target.value) })}
/>
diff --git a/examples/search_explorer/public/demo_strategy.tsx b/examples/search_explorer/public/demo_strategy.tsx
index 7c6c21d2b7aed..3de6827818e14 100644
--- a/examples/search_explorer/public/demo_strategy.tsx
+++ b/examples/search_explorer/public/demo_strategy.tsx
@@ -81,7 +81,7 @@ export class DemoStrategy extends React.Component {
this.setState({ name: e.target.value })}
+ onChange={(e) => this.setState({ name: e.target.value })}
/>
@@ -90,7 +90,7 @@ export class DemoStrategy extends React.Component {
this.setState({ mood: e.target.value })}
+ onChange={(e) => this.setState({ mood: e.target.value })}
/>
diff --git a/examples/search_explorer/public/do_search.tsx b/examples/search_explorer/public/do_search.tsx
index a6b6b9b57db4a..deadb06b16f5f 100644
--- a/examples/search_explorer/public/do_search.tsx
+++ b/examples/search_explorer/public/do_search.tsx
@@ -61,10 +61,10 @@ export class DoSearch extends React.Component {
this.abortController = new AbortController();
this.props.search(this.abortController.signal).subscribe(
- response => {
+ (response) => {
this.setState({ response, error: undefined });
},
- error => {
+ (error) => {
this.setState({ error, searching: false, response: undefined });
},
() => {
diff --git a/examples/search_explorer/public/es_strategy.tsx b/examples/search_explorer/public/es_strategy.tsx
index aaf9dada90341..bc6223c478bf5 100644
--- a/examples/search_explorer/public/es_strategy.tsx
+++ b/examples/search_explorer/public/es_strategy.tsx
@@ -92,7 +92,7 @@ export class EsSearchTest extends React.Component {
this.setState({ index: e.target.value, changes: true })}
+ onChange={(e) => this.setState({ index: e.target.value, changes: true })}
/>
@@ -101,7 +101,7 @@ export class EsSearchTest extends React.Component {
this.setState({ query: e.target.value, changes: true })}
+ onChange={(e) => this.setState({ query: e.target.value, changes: true })}
/>
diff --git a/examples/search_explorer/public/guide_section.tsx b/examples/search_explorer/public/guide_section.tsx
index 1562e33b14c2f..c13c11dc5864c 100644
--- a/examples/search_explorer/public/guide_section.tsx
+++ b/examples/search_explorer/public/guide_section.tsx
@@ -59,7 +59,7 @@ export class GuideSection extends React.Component {
}
if (props.codeSections) {
- props.codeSections.forEach(section => {
+ props.codeSections.forEach((section) => {
this.tabs.push({
name: section.title,
displayName: section.title,
@@ -79,7 +79,7 @@ export class GuideSection extends React.Component {
};
renderTabs() {
- return this.tabs.map(tab => (
+ return this.tabs.map((tab) => (
this.onSelectedTabChanged(tab.name)}
isSelected={tab.name === this.state.selectedTab}
@@ -98,7 +98,7 @@ export class GuideSection extends React.Component {
if (!this.props.codeSections) {
return undefined;
}
- const section = this.props.codeSections.find(s => s.title === this.state.selectedTab);
+ const section = this.props.codeSections.find((s) => s.title === this.state.selectedTab);
if (!section) {
throw new Error('No section named ' + this.state.selectedTab);
diff --git a/examples/state_containers_examples/public/todo/todo.tsx b/examples/state_containers_examples/public/todo/todo.tsx
index 597c2b19be0f6..b6f4f6550026b 100644
--- a/examples/state_containers_examples/public/todo/todo.tsx
+++ b/examples/state_containers_examples/public/todo/todo.tsx
@@ -61,7 +61,7 @@ const defaultGlobalState: GlobalState = { text: '' };
const globalStateContainer = createStateContainer(
defaultGlobalState,
{
- setText: state => text => ({ ...state, text }),
+ setText: (state) => (text) => ({ ...state, text }),
}
);
@@ -81,7 +81,7 @@ const TodoApp: React.FC = ({ filter }) => {
const { text } = GlobalStateHelpers.useState();
const { edit: editTodo, delete: deleteTodo, add: addTodo } = useTransitions();
const todos = useState().todos;
- const filteredTodos = todos.filter(todo => {
+ const filteredTodos = todos.filter((todo) => {
if (!filter) return true;
if (filter === 'completed') return todo.completed;
if (filter === 'not-completed') return !todo.completed;
@@ -111,13 +111,13 @@ const TodoApp: React.FC = ({ filter }) => {
- {filteredTodos.map(todo => (
+ {filteredTodos.map((todo) => (
-
{
+ onChange={(e) => {
editTodo({
...todo,
completed: e.target.checked,
@@ -139,7 +139,7 @@ const TodoApp: React.FC = ({ filter }) => {
))}
- setText(e.target.value)} />
+ setText(e.target.value)} />
>
);
@@ -173,7 +173,7 @@ export const TodoAppPage: React.FC<{
appTitle: string;
appBasePath: string;
isInitialRoute: () => boolean;
-}> = props => {
+}> = (props) => {
const initialAppUrl = React.useRef(window.location.href);
const [useHashedUrl, setUseHashedUrl] = React.useState(false);
@@ -181,7 +181,7 @@ export const TodoAppPage: React.FC<{
* Replicates what src/legacy/ui/public/chrome/api/nav.ts did
* Persists the url in sessionStorage and tries to restore it on "componentDidMount"
*/
- useUrlTracker(`lastUrlTracker:${props.appInstanceId}`, props.history, urlToRestore => {
+ useUrlTracker(`lastUrlTracker:${props.appInstanceId}`, props.history, (urlToRestore) => {
// shouldRestoreUrl:
// App decides if it should restore url or not
// In this specific case, restore only if navigated to initial route
diff --git a/examples/state_containers_examples/public/with_data_services/components/app.tsx b/examples/state_containers_examples/public/with_data_services/components/app.tsx
index c820929d8a61d..baf627fd62a32 100644
--- a/examples/state_containers_examples/public/with_data_services/components/app.tsx
+++ b/examples/state_containers_examples/public/with_data_services/components/app.tsx
@@ -135,7 +135,7 @@ const App = ({
appStateContainer.set({ ...appState, name: e.target.value })}
+ onChange={(e) => appStateContainer.set({ ...appState, name: e.target.value })}
aria-label="My name"
/>
@@ -217,7 +217,7 @@ function useAppStateSyncing(
stateContainer: {
...appStateContainer,
// stateSync utils requires explicit handling of default state ("null")
- set: state => state && appStateContainer.set(state),
+ set: (state) => state && appStateContainer.set(state),
},
});
diff --git a/examples/ui_actions_explorer/public/actions/actions.tsx b/examples/ui_actions_explorer/public/actions/actions.tsx
index 64a820ab6d194..4ef8d5bf4d9c6 100644
--- a/examples/ui_actions_explorer/public/actions/actions.tsx
+++ b/examples/ui_actions_explorer/public/actions/actions.tsx
@@ -47,14 +47,14 @@ export interface PhoneContext {
export const makePhoneCallAction = createAction({
type: ACTION_CALL_PHONE_NUMBER,
getDisplayName: () => 'Call phone number',
- execute: async context => alert(`Pretend calling ${context.phone}...`),
+ execute: async (context) => alert(`Pretend calling ${context.phone}...`),
});
export const lookUpWeatherAction = createAction({
type: ACTION_TRAVEL_GUIDE,
getIconType: () => 'popout',
getDisplayName: () => 'View travel guide',
- execute: async context => {
+ execute: async (context) => {
window.open(`https://www.worldtravelguide.net/?s=${context.country}`, '_blank');
},
});
@@ -67,7 +67,7 @@ export const viewInMapsAction = createAction({
type: ACTION_VIEW_IN_MAPS,
getIconType: () => 'popout',
getDisplayName: () => 'View in maps',
- execute: async context => {
+ execute: async (context) => {
window.open(`https://www.google.com/maps/place/${context.country}`, '_blank');
},
});
@@ -90,7 +90,7 @@ function EditUserModal({
const [name, setName] = useState(user.name);
return (
- setName(e.target.value)} />
+ setName(e.target.value)} />
{
update({ ...user, name });
diff --git a/examples/ui_actions_explorer/public/app.tsx b/examples/ui_actions_explorer/public/app.tsx
index f08b8bb29bdd3..1b0667962a3c2 100644
--- a/examples/ui_actions_explorer/public/app.tsx
+++ b/examples/ui_actions_explorer/public/app.tsx
@@ -72,7 +72,7 @@ const ActionsExplorer = ({ uiActionsApi, openModal }: Props) => {
from. Using the UI Action and Trigger API makes your plugin extensible by other
plugins. Any actions attached to the `HELLO_WORLD_TRIGGER_ID` will show up here!
- setName(e.target.value)} />
+ setName(e.target.value)} />
{
diff --git a/examples/ui_actions_explorer/public/trigger_context_example.tsx b/examples/ui_actions_explorer/public/trigger_context_example.tsx
index 4b88652103966..05a9895d3fac4 100644
--- a/examples/ui_actions_explorer/public/trigger_context_example.tsx
+++ b/examples/ui_actions_explorer/public/trigger_context_example.tsx
@@ -105,7 +105,7 @@ export function TriggerContextExample({ uiActionsApi }: Props) {
];
const updateUser = (newUser: User, oldName: string) => {
- const index = rows.findIndex(u => u.name === oldName);
+ const index = rows.findIndex((u) => u.name === oldName);
const newRows = [...rows];
newRows.splice(index, 1, createRowData(newUser, uiActionsApi, updateUser));
setRows(newRows);
diff --git a/examples/url_generators_examples/public/app.tsx b/examples/url_generators_examples/public/app.tsx
index c39cd876ea9b1..82f36fa13ea71 100644
--- a/examples/url_generators_examples/public/app.tsx
+++ b/examples/url_generators_examples/public/app.tsx
@@ -67,7 +67,7 @@ export const Routes: React.FC<{}> = () => {
export const LinksExample: React.FC<{
appBasePath: string;
-}> = props => {
+}> = (props) => {
const history = React.useMemo(
() =>
createBrowserHistory({
diff --git a/examples/url_generators_examples/public/url_generator.ts b/examples/url_generators_examples/public/url_generator.ts
index f21b1c9295e66..c74ade8bf743d 100644
--- a/examples/url_generators_examples/public/url_generator.ts
+++ b/examples/url_generators_examples/public/url_generator.ts
@@ -38,7 +38,7 @@ export const createHelloPageLinkGenerator = (
getStartServices: () => Promise<{ appBasePath: string }>
): UrlGeneratorsDefinition => ({
id: HELLO_URL_GENERATOR,
- createUrl: async state => {
+ createUrl: async (state) => {
const startServices = await getStartServices();
const appBasePath = startServices.appBasePath;
const parsedUrl = url.parse(window.location.href);
@@ -72,7 +72,7 @@ export type LegacyHelloLinkGeneratorState = UrlGeneratorState<
export const helloPageLinkGeneratorV1: UrlGeneratorsDefinition = {
id: HELLO_URL_GENERATOR_V1,
isDeprecated: true,
- migrate: async state => {
+ migrate: async (state) => {
return { id: HELLO_URL_GENERATOR, state: { firstName: state.name, lastName: '' } };
},
};
diff --git a/examples/url_generators_explorer/public/app.tsx b/examples/url_generators_explorer/public/app.tsx
index 77e804ae08c5f..50dd2e075c528 100644
--- a/examples/url_generators_explorer/public/app.tsx
+++ b/examples/url_generators_explorer/public/app.tsx
@@ -81,7 +81,7 @@ const ActionsExplorer = ({ getLinkGenerator }: Props) => {
const updateLinks = async () => {
const updatedLinks = await Promise.all(
- persistedLinks.map(async savedLink => {
+ persistedLinks.map(async (savedLink) => {
const generator = getLinkGenerator(savedLink.id);
const link = await generator.createUrl(savedLink.state);
return {
@@ -109,11 +109,11 @@ const ActionsExplorer = ({ getLinkGenerator }: Props) => {
{
+ onChange={(e) => {
setFirstName(e.target.value);
}}
/>
- setLastName(e.target.value)} />
+ setLastName(e.target.value)} />
setPersistedLinks([
@@ -142,7 +142,7 @@ const ActionsExplorer = ({ getLinkGenerator }: Props) => {
{buildingLinks ? (
loading...
) : (
- migratedLinks.map(link => (
+ migratedLinks.map((link) => (
dateMath.parse('now', { forceNow: '2000-01-01T00:00:00.000Z' });
expect(fn).to.throwError();
});
- it('should throw an Error if passed a moment', function() {
+ it('should throw an Error if passed a moment', function () {
expect(() => dateMath.parse('now', { forceNow: moment() })).to.throwError();
});
- it('should throw an Error if passed an invalid date', function() {
+ it('should throw an Error if passed an invalid date', function () {
expect(() => dateMath.parse('now', { forceNow: new Date('foobar') })).to.throwError();
});
});
});
- describe('objects and strings', function() {
+ describe('objects and strings', function () {
let mmnt;
let date;
let string;
let now;
- beforeEach(function() {
+ beforeEach(function () {
clock = sinon.useFakeTimers(unix);
now = moment();
mmnt = moment(anchor);
@@ -99,61 +99,61 @@ describe('dateMath', function() {
string = mmnt.format(format);
});
- afterEach(function() {
+ afterEach(function () {
clock.restore();
});
- it('should return the same moment if passed a moment', function() {
+ it('should return the same moment if passed a moment', function () {
expect(dateMath.parse(mmnt)).to.eql(mmnt);
});
- it('should return a moment if passed a date', function() {
+ it('should return a moment if passed a date', function () {
expect(dateMath.parse(date).format(format)).to.eql(mmnt.format(format));
});
- it('should return a moment if passed an ISO8601 string', function() {
+ it('should return a moment if passed an ISO8601 string', function () {
expect(dateMath.parse(string).format(format)).to.eql(mmnt.format(format));
});
- it('should return the current time when parsing now', function() {
+ it('should return the current time when parsing now', function () {
expect(dateMath.parse('now').format(format)).to.eql(now.format(format));
});
- it('should use the forceNow parameter when parsing now', function() {
+ it('should use the forceNow parameter when parsing now', function () {
expect(dateMath.parse('now', { forceNow: anchoredDate }).valueOf()).to.eql(unix);
});
});
- describe('subtraction', function() {
+ describe('subtraction', function () {
let now;
let anchored;
- beforeEach(function() {
+ beforeEach(function () {
clock = sinon.useFakeTimers(unix);
now = moment();
anchored = moment(anchor);
});
- afterEach(function() {
+ afterEach(function () {
clock.restore();
});
- [5, 12, 247].forEach(len => {
- spans.forEach(span => {
+ [5, 12, 247].forEach((len) => {
+ spans.forEach((span) => {
const nowEx = `now-${len}${span}`;
const thenEx = `${anchor}||-${len}${span}`;
- it('should return ' + len + span + ' ago', function() {
+ it('should return ' + len + span + ' ago', function () {
const parsed = dateMath.parse(nowEx).format(format);
expect(parsed).to.eql(now.subtract(len, span).format(format));
});
- it('should return ' + len + span + ' before ' + anchor, function() {
+ it('should return ' + len + span + ' before ' + anchor, function () {
const parsed = dateMath.parse(thenEx).format(format);
expect(parsed).to.eql(anchored.subtract(len, span).format(format));
});
- it('should return ' + len + span + ' before forceNow', function() {
+ it('should return ' + len + span + ' before forceNow', function () {
const parsed = dateMath.parse(nowEx, { forceNow: anchoredDate }).valueOf();
expect(parsed).to.eql(anchored.subtract(len, span).valueOf());
});
@@ -161,36 +161,36 @@ describe('dateMath', function() {
});
});
- describe('addition', function() {
+ describe('addition', function () {
let now;
let anchored;
- beforeEach(function() {
+ beforeEach(function () {
clock = sinon.useFakeTimers(unix);
now = moment();
anchored = moment(anchor);
});
- afterEach(function() {
+ afterEach(function () {
clock.restore();
});
- [5, 12, 247].forEach(len => {
- spans.forEach(span => {
+ [5, 12, 247].forEach((len) => {
+ spans.forEach((span) => {
const nowEx = `now+${len}${span}`;
const thenEx = `${anchor}||+${len}${span}`;
- it('should return ' + len + span + ' from now', function() {
+ it('should return ' + len + span + ' from now', function () {
expect(dateMath.parse(nowEx).format(format)).to.eql(now.add(len, span).format(format));
});
- it('should return ' + len + span + ' after ' + anchor, function() {
+ it('should return ' + len + span + ' after ' + anchor, function () {
expect(dateMath.parse(thenEx).format(format)).to.eql(
anchored.add(len, span).format(format)
);
});
- it('should return ' + len + span + ' after forceNow', function() {
+ it('should return ' + len + span + ' after forceNow', function () {
expect(dateMath.parse(nowEx, { forceNow: anchoredDate }).valueOf()).to.eql(
anchored.add(len, span).valueOf()
);
@@ -199,40 +199,40 @@ describe('dateMath', function() {
});
});
- describe('rounding', function() {
+ describe('rounding', function () {
let now;
let anchored;
- beforeEach(function() {
+ beforeEach(function () {
clock = sinon.useFakeTimers(unix);
now = moment();
anchored = moment(anchor);
});
- afterEach(function() {
+ afterEach(function () {
clock.restore();
});
- spans.forEach(span => {
- it(`should round now to the beginning of the ${span}`, function() {
+ spans.forEach((span) => {
+ it(`should round now to the beginning of the ${span}`, function () {
expect(dateMath.parse('now/' + span).format(format)).to.eql(
now.startOf(span).format(format)
);
});
- it(`should round now to the beginning of forceNow's ${span}`, function() {
+ it(`should round now to the beginning of forceNow's ${span}`, function () {
expect(dateMath.parse('now/' + span, { forceNow: anchoredDate }).valueOf()).to.eql(
anchored.startOf(span).valueOf()
);
});
- it(`should round now to the end of the ${span}`, function() {
+ it(`should round now to the end of the ${span}`, function () {
expect(dateMath.parse('now/' + span, { roundUp: true }).format(format)).to.eql(
now.endOf(span).format(format)
);
});
- it(`should round now to the end of forceNow's ${span}`, function() {
+ it(`should round now to the end of forceNow's ${span}`, function () {
expect(
dateMath.parse('now/' + span, { roundUp: true, forceNow: anchoredDate }).valueOf()
).to.eql(anchored.endOf(span).valueOf());
@@ -240,61 +240,46 @@ describe('dateMath', function() {
});
});
- describe('math and rounding', function() {
+ describe('math and rounding', function () {
let now;
let anchored;
- beforeEach(function() {
+ beforeEach(function () {
clock = sinon.useFakeTimers(unix);
now = moment();
anchored = moment(anchor);
});
- afterEach(function() {
+ afterEach(function () {
clock.restore();
});
- it('should round to the nearest second with 0 value', function() {
+ it('should round to the nearest second with 0 value', function () {
const val = dateMath.parse('now-0s/s').format(format);
expect(val).to.eql(now.startOf('s').format(format));
});
- it('should subtract 17s, rounded to the nearest second', function() {
+ it('should subtract 17s, rounded to the nearest second', function () {
const val = dateMath.parse('now-17s/s').format(format);
- expect(val).to.eql(
- now
- .startOf('s')
- .subtract(17, 's')
- .format(format)
- );
+ expect(val).to.eql(now.startOf('s').subtract(17, 's').format(format));
});
- it('should add 555ms, rounded to the nearest millisecond', function() {
+ it('should add 555ms, rounded to the nearest millisecond', function () {
const val = dateMath.parse('now+555ms/ms').format(format);
- expect(val).to.eql(
- now
- .add(555, 'ms')
- .startOf('ms')
- .format(format)
- );
+ expect(val).to.eql(now.add(555, 'ms').startOf('ms').format(format));
});
- it('should subtract 555ms, rounded to the nearest second', function() {
+ it('should subtract 555ms, rounded to the nearest second', function () {
const val = dateMath.parse('now-555ms/s').format(format);
- expect(val).to.eql(
- now
- .subtract(555, 'ms')
- .startOf('s')
- .format(format)
- );
+ expect(val).to.eql(now.subtract(555, 'ms').startOf('s').format(format));
});
- it('should round weeks to Sunday by default', function() {
+ it('should round weeks to Sunday by default', function () {
const val = dateMath.parse('now-1w/w');
expect(val.isoWeekday()).to.eql(7);
});
- it('should round weeks based on the passed moment locale start of week setting', function() {
+ it('should round weeks based on the passed moment locale start of week setting', function () {
const m = momentClone();
// Define a locale, that has Tuesday as beginning of the week
m.defineLocale('x-test', {
@@ -304,7 +289,7 @@ describe('dateMath', function() {
expect(val.isoWeekday()).to.eql(2);
});
- it('should round up weeks based on the passed moment locale start of week setting', function() {
+ it('should round up weeks based on the passed moment locale start of week setting', function () {
const m = momentClone();
// Define a locale, that has Tuesday as beginning of the week
m.defineLocale('x-test', {
@@ -319,7 +304,7 @@ describe('dateMath', function() {
expect(val.isoWeekday()).to.eql(3 - 1);
});
- it('should round relative to forceNow', function() {
+ it('should round relative to forceNow', function () {
const val = dateMath.parse('now-0s/s', { forceNow: anchoredDate }).valueOf();
expect(val).to.eql(anchored.startOf('s').valueOf());
});
@@ -329,15 +314,15 @@ describe('dateMath', function() {
});
});
- describe('used momentjs instance', function() {
- it('should use the default moment instance if parameter not specified', function() {
+ describe('used momentjs instance', function () {
+ it('should use the default moment instance if parameter not specified', function () {
const momentSpy = sinon.spy(moment, 'isMoment');
dateMath.parse('now');
expect(momentSpy.called).to.be(true);
momentSpy.restore();
});
- it('should not use default moment instance if parameter is specified', function() {
+ it('should not use default moment instance if parameter is specified', function () {
const m = momentClone();
const momentSpy = sinon.spy(moment, 'isMoment');
const cloneSpy = sinon.spy(m, 'isMoment');
@@ -348,7 +333,7 @@ describe('dateMath', function() {
cloneSpy.restore();
});
- it('should work with multiple different instances', function() {
+ it('should work with multiple different instances', function () {
const m1 = momentClone();
const m2 = momentClone();
const m1Spy = sinon.spy(m1, 'isMoment');
@@ -365,7 +350,7 @@ describe('dateMath', function() {
m2Spy.restore();
});
- it('should use global instance after passing an instance', function() {
+ it('should use global instance after passing an instance', function () {
const m = momentClone();
const momentSpy = sinon.spy(moment, 'isMoment');
const cloneSpy = sinon.spy(m, 'isMoment');
@@ -382,12 +367,12 @@ describe('dateMath', function() {
});
});
- describe('units', function() {
- it('should have units descending for unitsDesc', function() {
+ describe('units', function () {
+ it('should have units descending for unitsDesc', function () {
expect(dateMath.unitsDesc).to.eql(['y', 'M', 'w', 'd', 'h', 'm', 's', 'ms']);
});
- it('should have units ascending for unitsAsc', function() {
+ it('should have units ascending for unitsAsc', function () {
expect(dateMath.unitsAsc).to.eql(['ms', 's', 'm', 'h', 'd', 'w', 'M', 'y']);
});
});
diff --git a/packages/elastic-datemath/src/index.js b/packages/elastic-datemath/src/index.js
index afedad3ef6f72..52ce12ddf7027 100644
--- a/packages/elastic-datemath/src/index.js
+++ b/packages/elastic-datemath/src/index.js
@@ -34,9 +34,9 @@ const units = Object.keys(unitsMap).sort((a, b) => unitsMap[b].weight - unitsMap
const unitsDesc = [...units];
const unitsAsc = [...units].reverse();
-const isDate = d => Object.prototype.toString.call(d) === '[object Date]';
+const isDate = (d) => Object.prototype.toString.call(d) === '[object Date]';
-const isValidDate = d => isDate(d) && !isNaN(d.valueOf());
+const isValidDate = (d) => isDate(d) && !isNaN(d.valueOf());
/*
* This is a simplified version of elasticsearch's date parser.
diff --git a/packages/kbn-analytics/scripts/build.js b/packages/kbn-analytics/scripts/build.js
index bb28c1460c9c2..448d1ca9332f2 100644
--- a/packages/kbn-analytics/scripts/build.js
+++ b/packages/kbn-analytics/scripts/build.js
@@ -31,7 +31,7 @@ const padRight = (width, str) =>
run(
async ({ log, flags }) => {
- await withProcRunner(log, async proc => {
+ await withProcRunner(log, async (proc) => {
log.info('Deleting old output');
await del(BUILD_DIR);
@@ -43,7 +43,7 @@ run(
log.info(`Starting babel and typescript${flags.watch ? ' in watch mode' : ''}`);
await Promise.all([
- ...['web', 'node'].map(subTask =>
+ ...['web', 'node'].map((subTask) =>
proc.run(padRight(10, `babel:${subTask}`), {
cmd: 'babel',
args: [
diff --git a/packages/kbn-analytics/src/report.ts b/packages/kbn-analytics/src/report.ts
index 58891e48aa3a6..d9303d2d3af1d 100644
--- a/packages/kbn-analytics/src/report.ts
+++ b/packages/kbn-analytics/src/report.ts
@@ -86,7 +86,7 @@ export class ReportManager {
};
}
assignReports(newMetrics: Metric | Metric[]) {
- wrapArray(newMetrics).forEach(newMetric => this.assignReport(this.report, newMetric));
+ wrapArray(newMetrics).forEach((newMetric) => this.assignReport(this.report, newMetric));
return { report: this.report };
}
static createMetricKey(metric: Metric): string {
diff --git a/packages/kbn-analytics/src/reporter.ts b/packages/kbn-analytics/src/reporter.ts
index cbcdf6af63052..b20ddc0e58ba7 100644
--- a/packages/kbn-analytics/src/reporter.ts
+++ b/packages/kbn-analytics/src/reporter.ts
@@ -115,7 +115,7 @@ export class Reporter {
eventNames: string | string[],
count?: number
) => {
- const metrics = wrapArray(eventNames).map(eventName => {
+ const metrics = wrapArray(eventNames).map((eventName) => {
this.log(`${type} Metric -> (${appName}:${eventName}):`);
const report = createUiStatsMetric({ type, appName, eventName, count });
this.log(report);
diff --git a/packages/kbn-babel-code-parser/src/code_parser.js b/packages/kbn-babel-code-parser/src/code_parser.js
index 9431eb639e2e5..91927780363ac 100644
--- a/packages/kbn-babel-code-parser/src/code_parser.js
+++ b/packages/kbn-babel-code-parser/src/code_parser.js
@@ -79,7 +79,7 @@ export async function parseEntries(cwd, entries, strategy, results, wasParsed =
const sanitizedCwd = cwd || process.cwd();
// Test each entry against canRequire function
- const entriesQueue = entries.map(entry => canRequire(entry));
+ const entriesQueue = entries.map((entry) => canRequire(entry));
while (entriesQueue.length) {
// Get the first element in the queue as
diff --git a/packages/kbn-babel-code-parser/src/strategies.js b/packages/kbn-babel-code-parser/src/strategies.js
index f116abde9e0e6..2369692ad434b 100644
--- a/packages/kbn-babel-code-parser/src/strategies.js
+++ b/packages/kbn-babel-code-parser/src/strategies.js
@@ -59,7 +59,7 @@ export async function dependenciesParseStrategy(
// Get dependencies from a single file and filter
// out node native modules from the result
const dependencies = (await parseSingleFile(mainEntry, dependenciesVisitorsGenerator)).filter(
- dep => !builtinModules.includes(dep)
+ (dep) => !builtinModules.includes(dep)
);
// Return the list of all the new entries found into
diff --git a/packages/kbn-babel-code-parser/src/strategies.test.js b/packages/kbn-babel-code-parser/src/strategies.test.js
index dc2c599e81c39..e61c784cdcd54 100644
--- a/packages/kbn-babel-code-parser/src/strategies.test.js
+++ b/packages/kbn-babel-code-parser/src/strategies.test.js
@@ -84,7 +84,7 @@ describe('Code Parser Strategies', () => {
cb(null, `require('./relative_dep')`);
});
- canRequire.mockImplementation(entry => {
+ canRequire.mockImplementation((entry) => {
if (entry === `${mockCwd}dep1/relative_dep`) {
return `${entry}/index.js`;
}
diff --git a/packages/kbn-babel-code-parser/src/visitors.js b/packages/kbn-babel-code-parser/src/visitors.js
index 30014941d2a27..b159848d424fa 100644
--- a/packages/kbn-babel-code-parser/src/visitors.js
+++ b/packages/kbn-babel-code-parser/src/visitors.js
@@ -21,7 +21,7 @@ export function dependenciesVisitorsGenerator(dependenciesAcc) {
// raw values on require + require.resolve
CallExpression: ({ node }) => {
// AST check for require expressions
- const isRequire = node => {
+ const isRequire = (node) => {
return matches({
callee: {
type: 'Identifier',
@@ -31,7 +31,7 @@ export function dependenciesVisitorsGenerator(dependenciesAcc) {
};
// AST check for require.resolve expressions
- const isRequireResolve = node => {
+ const isRequireResolve = (node) => {
return matches({
callee: {
type: 'MemberExpression',
@@ -66,7 +66,7 @@ export function dependenciesVisitorsGenerator(dependenciesAcc) {
// raw values on import
ImportDeclaration: ({ node }) => {
// AST check for supported import expressions
- const isImport = node => {
+ const isImport = (node) => {
return matches({
type: 'ImportDeclaration',
source: {
@@ -85,7 +85,7 @@ export function dependenciesVisitorsGenerator(dependenciesAcc) {
// raw values on export from
ExportNamedDeclaration: ({ node }) => {
// AST check for supported export from expressions
- const isExportFrom = node => {
+ const isExportFrom = (node) => {
return matches({
type: 'ExportNamedDeclaration',
source: {
@@ -104,7 +104,7 @@ export function dependenciesVisitorsGenerator(dependenciesAcc) {
// raw values on export * from
ExportAllDeclaration: ({ node }) => {
// AST check for supported export * from expressions
- const isExportAllFrom = node => {
+ const isExportAllFrom = (node) => {
return matches({
type: 'ExportAllDeclaration',
source: {
diff --git a/packages/kbn-babel-code-parser/src/visitors.test.js b/packages/kbn-babel-code-parser/src/visitors.test.js
index 6a29d144a4dee..d2704fa9dfb72 100644
--- a/packages/kbn-babel-code-parser/src/visitors.test.js
+++ b/packages/kbn-babel-code-parser/src/visitors.test.js
@@ -21,7 +21,7 @@ import * as parser from '@babel/parser';
import traverse from '@babel/traverse';
import { dependenciesVisitorsGenerator } from './visitors';
-const visitorsApplier = code => {
+const visitorsApplier = (code) => {
const result = [];
traverse(
parser.parse(code, {
diff --git a/packages/kbn-config-schema/src/errors/schema_error.test.ts b/packages/kbn-config-schema/src/errors/schema_error.test.ts
index 0f632b781e9a6..d5cbb5a718a6a 100644
--- a/packages/kbn-config-schema/src/errors/schema_error.test.ts
+++ b/packages/kbn-config-schema/src/errors/schema_error.test.ts
@@ -26,8 +26,8 @@ import { SchemaError } from '.';
export const cleanStack = (stack: string) =>
stack
.split('\n')
- .filter(line => !line.includes('node_modules/') && !line.includes('internal/'))
- .map(line => {
+ .filter((line) => !line.includes('node_modules/') && !line.includes('internal/'))
+ .map((line) => {
const parts = /.*\((.*)\).?/.exec(line) || [];
if (parts.length === 0) {
diff --git a/packages/kbn-config-schema/src/errors/validation_error.ts b/packages/kbn-config-schema/src/errors/validation_error.ts
index 2a4f887bc4349..0c86b61ba1e2a 100644
--- a/packages/kbn-config-schema/src/errors/validation_error.ts
+++ b/packages/kbn-config-schema/src/errors/validation_error.ts
@@ -26,12 +26,12 @@ export class ValidationError extends SchemaError {
let message = error.message;
if (error instanceof SchemaTypesError) {
const indentLevel = level || 0;
- const childErrorMessages = error.errors.map(childError =>
+ const childErrorMessages = error.errors.map((childError) =>
ValidationError.extractMessage(childError, namespace, indentLevel + 1)
);
message = `${message}\n${childErrorMessages
- .map(childErrorMessage => `${' '.repeat(indentLevel)}- ${childErrorMessage}`)
+ .map((childErrorMessage) => `${' '.repeat(indentLevel)}- ${childErrorMessage}`)
.join('\n')}`;
}
diff --git a/packages/kbn-config-schema/src/internals/index.ts b/packages/kbn-config-schema/src/internals/index.ts
index f84e14d2f741d..f3756aaf90793 100644
--- a/packages/kbn-config-schema/src/internals/index.ts
+++ b/packages/kbn-config-schema/src/internals/index.ts
@@ -42,9 +42,7 @@ function isMap(o: any): o is Map {
const anyCustomRule: Rules = {
name: 'custom',
params: {
- validator: Joi.func()
- .maxArity(1)
- .required(),
+ validator: Joi.func().maxArity(1).required(),
},
validate(params, value, state, options) {
let validationResultMessage;
diff --git a/packages/kbn-config-schema/src/typeguards/is_config_schema.test.ts b/packages/kbn-config-schema/src/typeguards/is_config_schema.test.ts
index e0ef3835ca0a3..485251055d2b8 100644
--- a/packages/kbn-config-schema/src/typeguards/is_config_schema.test.ts
+++ b/packages/kbn-config-schema/src/typeguards/is_config_schema.test.ts
@@ -47,7 +47,7 @@ describe('isConfigSchema', () => {
expect(isConfigSchema(undefined)).toBe(false);
expect(isConfigSchema([1, 2, 3])).toBe(false);
expect(isConfigSchema({ foo: 'bar' })).toBe(false);
- expect(isConfigSchema(function() {})).toBe(false);
+ expect(isConfigSchema(function () {})).toBe(false);
});
it('returns true as long as `__isKbnConfigSchemaType` is true', () => {
diff --git a/packages/kbn-config-schema/src/types/array_type.ts b/packages/kbn-config-schema/src/types/array_type.ts
index 0df0d44a37951..2fe1fa24222a1 100644
--- a/packages/kbn-config-schema/src/types/array_type.ts
+++ b/packages/kbn-config-schema/src/types/array_type.ts
@@ -28,10 +28,7 @@ export type ArrayOptions = TypeOptions & {
export class ArrayType extends Type {
constructor(type: Type, options: ArrayOptions = {}) {
- let schema = internals
- .array()
- .items(type.getSchema().optional())
- .sparse(false);
+ let schema = internals.array().items(type.getSchema().optional()).sparse(false);
if (options.minSize !== undefined) {
schema = schema.min(options.minSize);
diff --git a/packages/kbn-config-schema/src/types/string_type.ts b/packages/kbn-config-schema/src/types/string_type.ts
index 7f49440b8d7e2..cb780bcbbc6bd 100644
--- a/packages/kbn-config-schema/src/types/string_type.ts
+++ b/packages/kbn-config-schema/src/types/string_type.ts
@@ -36,14 +36,14 @@ export class StringType extends Type {
let schema =
options.hostname === true
? internals.string().hostname()
- : internals.any().custom(value => {
+ : internals.any().custom((value) => {
if (typeof value !== 'string') {
return `expected value of type [string] but got [${typeDetect(value)}]`;
}
});
if (options.minLength !== undefined) {
- schema = schema.custom(value => {
+ schema = schema.custom((value) => {
if (value.length < options.minLength!) {
return `value has length [${value.length}] but it must have a minimum length of [${options.minLength}].`;
}
@@ -51,7 +51,7 @@ export class StringType extends Type {
}
if (options.maxLength !== undefined) {
- schema = schema.custom(value => {
+ schema = schema.custom((value) => {
if (value.length > options.maxLength!) {
return `value has length [${value.length}] but it must have a maximum length of [${options.maxLength}].`;
}
diff --git a/packages/kbn-config-schema/src/types/union_type.ts b/packages/kbn-config-schema/src/types/union_type.ts
index f4de829204e80..80fa8443e75d0 100644
--- a/packages/kbn-config-schema/src/types/union_type.ts
+++ b/packages/kbn-config-schema/src/types/union_type.ts
@@ -24,7 +24,7 @@ import { Type, TypeOptions } from './type';
export class UnionType>, T> extends Type {
constructor(types: RTS, options?: TypeOptions) {
- const schema = internals.alternatives(types.map(type => type.getSchema()));
+ const schema = internals.alternatives(types.map((type) => type.getSchema()));
super(schema, options);
}
diff --git a/packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts b/packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts
index 4e91289610432..b38a27fdc1b48 100644
--- a/packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts
+++ b/packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts
@@ -145,7 +145,7 @@ export class CiStatsReporter {
`failed to reach kibana-ci-stats service [reason=${reason}], retrying in ${attempt} seconds`
);
- await new Promise(resolve => setTimeout(resolve, attempt * 1000));
+ await new Promise((resolve) => setTimeout(resolve, attempt * 1000));
}
}
}
diff --git a/packages/kbn-dev-utils/src/kbn_client/kbn_client_requester.ts b/packages/kbn-dev-utils/src/kbn_client/kbn_client_requester.ts
index 4244006f4a3a3..ea4159de55749 100644
--- a/packages/kbn-dev-utils/src/kbn_client/kbn_client_requester.ts
+++ b/packages/kbn-dev-utils/src/kbn_client/kbn_client_requester.ts
@@ -66,7 +66,7 @@ export interface ReqOptions {
}
const delay = (ms: number) =>
- new Promise(resolve => {
+ new Promise((resolve) => {
setTimeout(resolve, ms);
});
diff --git a/packages/kbn-dev-utils/src/proc_runner/observe_readable.ts b/packages/kbn-dev-utils/src/proc_runner/observe_readable.ts
index 1a292aff303af..4951bef91c446 100644
--- a/packages/kbn-dev-utils/src/proc_runner/observe_readable.ts
+++ b/packages/kbn-dev-utils/src/proc_runner/observe_readable.ts
@@ -33,7 +33,7 @@ export function observeReadable(readable: Readable): Rx.Observable {
Rx.fromEvent(readable, 'error').pipe(
first(),
- mergeMap(err => Rx.throwError(err))
+ mergeMap((err) => Rx.throwError(err))
)
);
}
diff --git a/packages/kbn-dev-utils/src/proc_runner/proc.ts b/packages/kbn-dev-utils/src/proc_runner/proc.ts
index c899293191f2a..59512cbb133b3 100644
--- a/packages/kbn-dev-utils/src/proc_runner/proc.ts
+++ b/packages/kbn-dev-utils/src/proc_runner/proc.ts
@@ -118,7 +118,7 @@ export function startProc(name: string, options: ProcOptions, log: ToolingLog) {
// observe first error event
Rx.fromEvent(childProcess, 'error').pipe(
take(1),
- mergeMap(err => Rx.throwError(err))
+ mergeMap((err) => Rx.throwError(err))
)
).pipe(share());
@@ -126,7 +126,7 @@ export function startProc(name: string, options: ProcOptions, log: ToolingLog) {
observeLines(childProcess.stdout),
observeLines(childProcess.stderr)
).pipe(
- tap(line => log.write(` ${chalk.gray('proc')} [${chalk.gray(name)}] ${line}`)),
+ tap((line) => log.write(` ${chalk.gray('proc')} [${chalk.gray(name)}] ${line}`)),
share()
);
diff --git a/packages/kbn-dev-utils/src/proc_runner/proc_runner.ts b/packages/kbn-dev-utils/src/proc_runner/proc_runner.ts
index 1759ca2840c5b..c879b4595b451 100644
--- a/packages/kbn-dev-utils/src/proc_runner/proc_runner.ts
+++ b/packages/kbn-dev-utils/src/proc_runner/proc_runner.ts
@@ -50,7 +50,7 @@ export class ProcRunner {
constructor(private log: ToolingLog) {
this.signalUnsubscribe = exitHook(() => {
- this.teardown().catch(error => {
+ this.teardown().catch((error) => {
log.error(`ProcRunner teardown error: ${error.stack}`);
});
});
@@ -105,9 +105,9 @@ export class ProcRunner {
// wait for process to log matching line
await Rx.race(
proc.lines$.pipe(
- filter(line => wait.test(line)),
+ filter((line) => wait.test(line)),
first(),
- catchError(err => {
+ catchError((err) => {
if (err.name !== 'EmptyError') {
throw createCliError(`[${name}] exited without matching pattern: ${wait}`);
} else {
@@ -159,7 +159,7 @@ export class ProcRunner {
* @return {Promise}
*/
async waitForAllToStop() {
- await Promise.all(this.procs.map(proc => proc.outcomePromise));
+ await Promise.all(this.procs.map((proc) => proc.outcomePromise));
}
/**
@@ -181,19 +181,19 @@ export class ProcRunner {
this.log.warning(
'%d processes left running, stop them with procs.stop(name):',
this.procs.length,
- this.procs.map(proc => proc.name)
+ this.procs.map((proc) => proc.name)
);
}
await Promise.all(
- this.procs.map(async proc => {
+ this.procs.map(async (proc) => {
await proc.stop(signal === 'exit' ? 'SIGKILL' : signal);
})
);
}
private getProc(name: string) {
- return this.procs.find(proc => {
+ return this.procs.find((proc) => {
return proc.name === name;
});
}
@@ -209,14 +209,14 @@ export class ProcRunner {
// tie into proc outcome$, remove from _procs on compete
proc.outcome$.subscribe({
- next: code => {
+ next: (code) => {
const duration = moment.duration(Date.now() - startMs);
this.log.info('[%s] exited with %s after %s', name, code, duration.humanize());
},
complete: () => {
remove();
},
- error: error => {
+ error: (error) => {
if (this.closing) {
this.log.error(error);
}
diff --git a/packages/kbn-dev-utils/src/proc_runner/with_proc_runner.test.ts b/packages/kbn-dev-utils/src/proc_runner/with_proc_runner.test.ts
index e37bdcc40ca1c..89127069f4b8d 100644
--- a/packages/kbn-dev-utils/src/proc_runner/with_proc_runner.test.ts
+++ b/packages/kbn-dev-utils/src/proc_runner/with_proc_runner.test.ts
@@ -22,14 +22,14 @@ import { withProcRunner } from './with_proc_runner';
import { ProcRunner } from './proc_runner';
it('passes proc runner to a function', async () => {
- await withProcRunner(new ToolingLog(), async proc => {
+ await withProcRunner(new ToolingLog(), async (proc) => {
expect(proc).toBeInstanceOf(ProcRunner);
});
});
it('calls procRunner.teardown() if function returns synchronously', async () => {
let teardownSpy;
- await withProcRunner(new ToolingLog(), async proc => {
+ await withProcRunner(new ToolingLog(), async (proc) => {
teardownSpy = jest.spyOn(proc, 'teardown');
});
@@ -41,7 +41,7 @@ it('calls procRunner.teardown() if function throw synchronous error, and rejects
let teardownSpy;
await expect(
- withProcRunner(new ToolingLog(), async proc => {
+ withProcRunner(new ToolingLog(), async (proc) => {
teardownSpy = jest.spyOn(proc, 'teardown');
throw error;
})
@@ -53,8 +53,8 @@ it('calls procRunner.teardown() if function throw synchronous error, and rejects
it('waits for promise to resolve before tearing down proc', async () => {
let teardownSpy;
- await withProcRunner(new ToolingLog(), async proc => {
- await new Promise(resolve => setTimeout(resolve, 500));
+ await withProcRunner(new ToolingLog(), async (proc) => {
+ await new Promise((resolve) => setTimeout(resolve, 500));
teardownSpy = jest.spyOn(proc, 'teardown');
});
@@ -67,8 +67,8 @@ it('waits for promise to reject before tearing down proc and rejecting with the
let teardownSpy;
await expect(
- withProcRunner(new ToolingLog(), async proc => {
- await new Promise(resolve => setTimeout(resolve, 500));
+ withProcRunner(new ToolingLog(), async (proc) => {
+ await new Promise((resolve) => setTimeout(resolve, 500));
teardownSpy = jest.spyOn(proc, 'teardown');
throw error;
})
diff --git a/packages/kbn-dev-utils/src/run/fail.ts b/packages/kbn-dev-utils/src/run/fail.ts
index a2501fc9513bf..f10ef1d52ef04 100644
--- a/packages/kbn-dev-utils/src/run/fail.ts
+++ b/packages/kbn-dev-utils/src/run/fail.ts
@@ -61,7 +61,7 @@ export function combineErrors(errors: Array) {
.filter(isFailError)
.reduce((acc, error) => Math.max(acc, error.exitCode), 1);
- const showHelp = errors.some(error => isFailError(error) && error.showHelp);
+ const showHelp = errors.some((error) => isFailError(error) && error.showHelp);
const message = errors.reduce((acc, error) => {
if (isFailError(error)) {
diff --git a/packages/kbn-dev-utils/src/run/run.ts b/packages/kbn-dev-utils/src/run/run.ts
index 35477e988d837..894db0d3fdadb 100644
--- a/packages/kbn-dev-utils/src/run/run.ts
+++ b/packages/kbn-dev-utils/src/run/run.ts
@@ -62,7 +62,7 @@ export async function run(fn: RunFn, options: Options = {}) {
writeTo: process.stdout,
});
- process.on('unhandledRejection', error => {
+ process.on('unhandledRejection', (error) => {
log.error('UNHANDLED PROMISE REJECTION');
log.error(
error instanceof Error
@@ -110,7 +110,7 @@ export async function run(fn: RunFn, options: Options = {}) {
}
try {
- await withProcRunner(log, async procRunner => {
+ await withProcRunner(log, async (procRunner) => {
await fn({
log,
flags,
diff --git a/packages/kbn-dev-utils/src/tooling_log/tooling_log.test.ts b/packages/kbn-dev-utils/src/tooling_log/tooling_log.test.ts
index 21f02325cac66..4a0f5ca5f8a5f 100644
--- a/packages/kbn-dev-utils/src/tooling_log/tooling_log.test.ts
+++ b/packages/kbn-dev-utils/src/tooling_log/tooling_log.test.ts
@@ -80,29 +80,31 @@ describe('#indent()', () => {
});
});
-(['verbose', 'debug', 'info', 'success', 'warning', 'error', 'write'] as const).forEach(method => {
- describe(`#${method}()`, () => {
- it(`sends a msg of type "${method}" to each writer with indent and arguments`, () => {
- const log = new ToolingLog();
- const writeA = jest.fn();
- const writeB = jest.fn();
-
- log.setWriters([{ write: writeA }, { write: writeB }]);
-
- if (method === 'error') {
- const error = new Error('error message');
- error.stack = '... stack trace ...';
- log.error(error);
- log.error('string message');
- } else {
- log[method]('foo', 'bar', 'baz');
- }
-
- expect(writeA.mock.calls).toMatchSnapshot();
- expect(writeA.mock.calls).toEqual(writeB.mock.calls);
+(['verbose', 'debug', 'info', 'success', 'warning', 'error', 'write'] as const).forEach(
+ (method) => {
+ describe(`#${method}()`, () => {
+ it(`sends a msg of type "${method}" to each writer with indent and arguments`, () => {
+ const log = new ToolingLog();
+ const writeA = jest.fn();
+ const writeB = jest.fn();
+
+ log.setWriters([{ write: writeA }, { write: writeB }]);
+
+ if (method === 'error') {
+ const error = new Error('error message');
+ error.stack = '... stack trace ...';
+ log.error(error);
+ log.error('string message');
+ } else {
+ log[method]('foo', 'bar', 'baz');
+ }
+
+ expect(writeA.mock.calls).toMatchSnapshot();
+ expect(writeA.mock.calls).toEqual(writeB.mock.calls);
+ });
});
- });
-});
+ }
+);
describe('#getWritten$()', () => {
async function testWrittenMsgs(writers: Writer[]) {
@@ -110,10 +112,7 @@ describe('#getWritten$()', () => {
log.setWriters(writers);
const done$ = new Rx.Subject();
- const promise = log
- .getWritten$()
- .pipe(takeUntil(done$), toArray())
- .toPromise();
+ const promise = log.getWritten$().pipe(takeUntil(done$), toArray()).toPromise();
log.debug('foo');
log.info('bar');
diff --git a/packages/kbn-dev-utils/src/tooling_log/tooling_log_collecting_writer.ts b/packages/kbn-dev-utils/src/tooling_log/tooling_log_collecting_writer.ts
index 46026bdc369d4..7e79077032156 100644
--- a/packages/kbn-dev-utils/src/tooling_log/tooling_log_collecting_writer.ts
+++ b/packages/kbn-dev-utils/src/tooling_log/tooling_log_collecting_writer.ts
@@ -26,7 +26,7 @@ export class ToolingLogCollectingWriter extends ToolingLogTextWriter {
super({
level: 'verbose',
writeTo: {
- write: msg => {
+ write: (msg) => {
// trim trailing new line
this.messages.push(msg.slice(0, -1));
},
diff --git a/packages/kbn-es/src/artifact.js b/packages/kbn-es/src/artifact.js
index 83dcd1cf36d2e..7d4c7a3fd2c33 100644
--- a/packages/kbn-es/src/artifact.js
+++ b/packages/kbn-es/src/artifact.js
@@ -60,7 +60,7 @@ async function retry(log, fn) {
}
log.warning('...failure, retrying in 5 seconds:', error.message);
- await new Promise(resolve => setTimeout(resolve, 5000));
+ await new Promise((resolve) => setTimeout(resolve, 5000));
log.info('...retrying');
return await doAttempt(attempt + 1);
}
@@ -120,7 +120,7 @@ async function getArtifactSpecForSnapshot(urlVersion, license, log) {
const arch = process.arch === 'arm64' ? 'aarch64' : 'x86_64';
const archive = manifest.archives.find(
- archive =>
+ (archive) =>
archive.version === desiredVersion &&
archive.platform === platform &&
archive.license === desiredLicense &&
diff --git a/packages/kbn-es/src/artifact.test.js b/packages/kbn-es/src/artifact.test.js
index 02e4d5318f63f..bbcf664006046 100644
--- a/packages/kbn-es/src/artifact.test.js
+++ b/packages/kbn-es/src/artifact.test.js
@@ -52,14 +52,14 @@ const createArchive = (params = {}) => {
};
};
-const mockFetch = mock =>
+const mockFetch = (mock) =>
fetch.mockReturnValue(Promise.resolve(new Response(JSON.stringify(mock))));
const previousEnvVars = {};
const ENV_VARS_TO_RESET = ['ES_SNAPSHOT_MANIFEST', 'KBN_ES_SNAPSHOT_USE_UNVERIFIED'];
beforeAll(() => {
- ENV_VARS_TO_RESET.forEach(key => {
+ ENV_VARS_TO_RESET.forEach((key) => {
if (key in process.env) {
previousEnvVars[key] = process.env[key];
delete process.env[key];
@@ -68,7 +68,7 @@ beforeAll(() => {
});
afterAll(() => {
- Object.keys(previousEnvVars).forEach(key => {
+ Object.keys(previousEnvVars).forEach((key) => {
process.env[key] = previousEnvVars[key];
});
});
diff --git a/packages/kbn-es/src/cli.js b/packages/kbn-es/src/cli.js
index ed81e01ccf8ab..61019d27bf383 100644
--- a/packages/kbn-es/src/cli.js
+++ b/packages/kbn-es/src/cli.js
@@ -26,7 +26,7 @@ const { log } = require('./utils');
function help() {
const availableCommands = Object.keys(commands).map(
- name => `${name} - ${commands[name].description}`
+ (name) => `${name} - ${commands[name].description}`
);
console.log(dedent`
diff --git a/packages/kbn-es/src/cluster.js b/packages/kbn-es/src/cluster.js
index ceb4a5b6aece1..68bcc37c65600 100644
--- a/packages/kbn-es/src/cluster.js
+++ b/packages/kbn-es/src/cluster.js
@@ -40,8 +40,8 @@ const readFile = util.promisify(fs.readFile);
// listen to data on stream until map returns anything but undefined
const first = (stream, map) =>
- new Promise(resolve => {
- const onData = data => {
+ new Promise((resolve) => {
+ const onData = (data) => {
const result = map(data);
if (result !== undefined) {
resolve(result);
@@ -180,7 +180,7 @@ exports.Cluster = class Cluster {
await Promise.race([
// wait for native realm to be setup and es to be started
Promise.all([
- first(this._process.stdout, data => {
+ first(this._process.stdout, (data) => {
if (/started/.test(data)) {
return true;
}
@@ -207,7 +207,7 @@ exports.Cluster = class Cluster {
this._exec(installPath, options);
// log native realm setup errors so they aren't uncaught
- this._nativeRealmSetup.catch(error => {
+ this._nativeRealmSetup.catch((error) => {
this._log.error(error);
this.stop();
});
@@ -287,7 +287,7 @@ exports.Cluster = class Cluster {
});
// parse log output to find http port
- const httpPort = first(this._process.stdout, data => {
+ const httpPort = first(this._process.stdout, (data) => {
const match = data.toString('utf8').match(/HttpServer.+publish_address {[0-9.]+:([0-9]+)/);
if (match) {
@@ -296,7 +296,7 @@ exports.Cluster = class Cluster {
});
// once the http port is available setup the native realm
- this._nativeRealmSetup = httpPort.then(async port => {
+ this._nativeRealmSetup = httpPort.then(async (port) => {
const caCert = await this._caCertPromise;
const nativeRealm = new NativeRealm({
port,
@@ -309,19 +309,19 @@ exports.Cluster = class Cluster {
});
// parse and forward es stdout to the log
- this._process.stdout.on('data', data => {
+ this._process.stdout.on('data', (data) => {
const lines = parseEsLog(data.toString());
- lines.forEach(line => {
+ lines.forEach((line) => {
this._log.info(line.formattedMessage);
});
});
// forward es stderr to the log
- this._process.stderr.on('data', data => this._log.error(chalk.red(data.toString())));
+ this._process.stderr.on('data', (data) => this._log.error(chalk.red(data.toString())));
// observe the exit code of the process and reflect in _outcome promies
- const exitCode = new Promise(resolve => this._process.once('exit', resolve));
- this._outcome = exitCode.then(code => {
+ const exitCode = new Promise((resolve) => this._process.once('exit', resolve));
+ this._outcome = exitCode.then((code) => {
if (this._stopCalled) {
return;
}
diff --git a/packages/kbn-es/src/errors.js b/packages/kbn-es/src/errors.js
index 099b5214bcbdb..7b39251f1327c 100644
--- a/packages/kbn-es/src/errors.js
+++ b/packages/kbn-es/src/errors.js
@@ -17,12 +17,12 @@
* under the License.
*/
-exports.createCliError = function(message) {
+exports.createCliError = function (message) {
const error = new Error(message);
error.isCliError = true;
return error;
};
-exports.isCliError = function(error) {
+exports.isCliError = function (error) {
return error && error.isCliError;
};
diff --git a/packages/kbn-es/src/install/source.js b/packages/kbn-es/src/install/source.js
index e78e9f1ff4b25..bfeff736f8cdc 100644
--- a/packages/kbn-es/src/install/source.js
+++ b/packages/kbn-es/src/install/source.js
@@ -99,15 +99,11 @@ async function sourceInfo(cwd, license, log = defaultLog) {
etag.update(sha);
// for changed files, use last modified times in hash calculation
- status.files.forEach(file => {
+ status.files.forEach((file) => {
etag.update(fs.statSync(path.join(cwd, file.path)).mtime.toString());
});
- const cwdHash = crypto
- .createHash('md5')
- .update(cwd)
- .digest('hex')
- .substr(0, 8);
+ const cwdHash = crypto.createHash('md5').update(cwd).digest('hex').substr(0, 8);
const basename = `${branch}-${task}-${cwdHash}`;
const filename = `${basename}.${ext}`;
diff --git a/packages/kbn-es/src/integration_tests/__fixtures__/es_bin.js b/packages/kbn-es/src/integration_tests/__fixtures__/es_bin.js
index d374abe5db068..b860664443d1a 100644
--- a/packages/kbn-es/src/integration_tests/__fixtures__/es_bin.js
+++ b/packages/kbn-es/src/integration_tests/__fixtures__/es_bin.js
@@ -71,7 +71,7 @@ const delayServerClose = () => {
server.on('request', delayServerClose);
server.on('listening', delayServerClose);
-server.listen(0, '127.0.0.1', function() {
+server.listen(0, '127.0.0.1', function () {
const { port, address: hostname } = server.address();
serverUrl = new URL(
formatUrl({
diff --git a/packages/kbn-es/src/integration_tests/cluster.test.js b/packages/kbn-es/src/integration_tests/cluster.test.js
index dfbc04477bd40..0ae0ac0aac27a 100644
--- a/packages/kbn-es/src/integration_tests/cluster.test.js
+++ b/packages/kbn-es/src/integration_tests/cluster.test.js
@@ -37,7 +37,7 @@ jest.mock('../utils/extract_config_files', () => ({
const log = new ToolingLog();
function sleep(ms) {
- return new Promise(resolve => setTimeout(resolve, ms));
+ return new Promise((resolve) => setTimeout(resolve, ms));
}
async function ensureNoResolve(promise) {
@@ -77,7 +77,7 @@ function mockEsBin({ exitCode, start }) {
beforeEach(() => {
jest.resetAllMocks();
- extractConfigFiles.mockImplementation(config => config);
+ extractConfigFiles.mockImplementation((config) => config);
});
describe('#installSource()', () => {
@@ -85,7 +85,7 @@ describe('#installSource()', () => {
let resolveInstallSource;
installSource.mockImplementationOnce(
() =>
- new Promise(resolve => {
+ new Promise((resolve) => {
resolveInstallSource = () => {
resolve({ installPath: 'foo' });
};
@@ -124,7 +124,7 @@ describe('#installSnapshot()', () => {
let resolveInstallSnapshot;
installSnapshot.mockImplementationOnce(
() =>
- new Promise(resolve => {
+ new Promise((resolve) => {
resolveInstallSnapshot = () => {
resolve({ installPath: 'foo' });
};
@@ -163,7 +163,7 @@ describe('#installArchive(path)', () => {
let resolveInstallArchive;
installArchive.mockImplementationOnce(
() =>
- new Promise(resolve => {
+ new Promise((resolve) => {
resolveInstallArchive = () => {
resolve({ installPath: 'foo' });
};
diff --git a/packages/kbn-es/src/settings.ts b/packages/kbn-es/src/settings.ts
index 58eedff207b4d..bf7160b9fee7b 100644
--- a/packages/kbn-es/src/settings.ts
+++ b/packages/kbn-es/src/settings.ts
@@ -25,7 +25,7 @@ const SECURE_SETTINGS_LIST = [
];
function isSecureSetting(settingName: string) {
- return SECURE_SETTINGS_LIST.some(secureSettingNameRegex =>
+ return SECURE_SETTINGS_LIST.some((secureSettingNameRegex) =>
secureSettingNameRegex.test(settingName)
);
}
diff --git a/packages/kbn-es/src/utils/build_snapshot.js b/packages/kbn-es/src/utils/build_snapshot.js
index 3173df700e303..ce0dc88ac1d7c 100644
--- a/packages/kbn-es/src/utils/build_snapshot.js
+++ b/packages/kbn-es/src/utils/build_snapshot.js
@@ -25,7 +25,7 @@ const { createCliError } = require('../errors');
const { findMostRecentlyChanged } = require('../utils');
const { GRADLE_BIN } = require('../paths');
-const onceEvent = (emitter, event) => new Promise(resolve => emitter.once(event, resolve));
+const onceEvent = (emitter, event) => new Promise((resolve) => emitter.once(event, resolve));
/**
* Creates archive from source
@@ -59,13 +59,13 @@ exports.buildSnapshot = async ({ license, sourcePath, log, platform = os.platfor
const stdout = readline.createInterface({ input: build.stdout });
const stderr = readline.createInterface({ input: build.stderr });
- stdout.on('line', line => log.debug(line));
- stderr.on('line', line => log.error(line));
+ stdout.on('line', (line) => log.debug(line));
+ stderr.on('line', (line) => log.error(line));
const [exitCode] = await Promise.all([
Promise.race([
onceEvent(build, 'exit'),
- onceEvent(build, 'error').then(error => {
+ onceEvent(build, 'error').then((error) => {
throw createCliError(`Error spawning gradle: ${error.message}`);
}),
]),
diff --git a/packages/kbn-es/src/utils/decompress.js b/packages/kbn-es/src/utils/decompress.js
index b4299594c5062..1fdb647b1dc0d 100644
--- a/packages/kbn-es/src/utils/decompress.js
+++ b/packages/kbn-es/src/utils/decompress.js
@@ -50,15 +50,12 @@ function decompressZip(input, output) {
resolve();
});
- zipfile.on('error', err => {
+ zipfile.on('error', (err) => {
reject(err);
});
- zipfile.on('entry', entry => {
- const zipPath = entry.fileName
- .split(/\/|\\/)
- .slice(1)
- .join(path.sep);
+ zipfile.on('entry', (entry) => {
+ const zipPath = entry.fileName.split(/\/|\\/).slice(1).join(path.sep);
const fileName = path.resolve(output, zipPath);
if (/\/$/.test(entry.fileName)) {
@@ -83,7 +80,7 @@ function decompressZip(input, output) {
});
}
-exports.decompress = async function(input, output) {
+exports.decompress = async function (input, output) {
const ext = path.extname(input);
switch (path.extname(input)) {
diff --git a/packages/kbn-es/src/utils/extract_config_files.js b/packages/kbn-es/src/utils/extract_config_files.js
index a8a44a149e9b3..d535528cef239 100644
--- a/packages/kbn-es/src/utils/extract_config_files.js
+++ b/packages/kbn-es/src/utils/extract_config_files.js
@@ -32,7 +32,7 @@ exports.extractConfigFiles = function extractConfigFiles(config, dest, options =
const originalConfig = typeof config === 'string' ? [config] : config;
const localConfig = [];
- originalConfig.forEach(prop => {
+ originalConfig.forEach((prop) => {
const [key, value] = prop.split('=');
if (isFile(value)) {
diff --git a/packages/kbn-es/src/utils/find_most_recently_changed.js b/packages/kbn-es/src/utils/find_most_recently_changed.js
index 0fcd87978c357..3ba8865e88d92 100644
--- a/packages/kbn-es/src/utils/find_most_recently_changed.js
+++ b/packages/kbn-es/src/utils/find_most_recently_changed.js
@@ -32,7 +32,7 @@ exports.findMostRecentlyChanged = function findMostRecentlyChanged(pattern) {
throw new TypeError(`Pattern must be absolute, got ${pattern}`);
}
- const ctime = path => fs.statSync(path).ctime.getTime();
+ const ctime = (path) => fs.statSync(path).ctime.getTime();
return glob
.sync(pattern)
diff --git a/packages/kbn-es/src/utils/find_most_recently_changed.test.js b/packages/kbn-es/src/utils/find_most_recently_changed.test.js
index ed90576990c72..ee032686bc621 100644
--- a/packages/kbn-es/src/utils/find_most_recently_changed.test.js
+++ b/packages/kbn-es/src/utils/find_most_recently_changed.test.js
@@ -18,7 +18,7 @@
*/
jest.mock('fs', () => ({
- statSync: jest.fn().mockImplementation(path => {
+ statSync: jest.fn().mockImplementation((path) => {
if (path.includes('oldest')) {
return {
ctime: new Date(2018, 2, 1),
diff --git a/packages/kbn-es/src/utils/native_realm.js b/packages/kbn-es/src/utils/native_realm.js
index f3f5f7bbdf431..573944a8cc6d0 100644
--- a/packages/kbn-es/src/utils/native_realm.js
+++ b/packages/kbn-es/src/utils/native_realm.js
@@ -77,7 +77,7 @@ exports.NativeRealm = class NativeRealm {
const reservedUsers = await this.getReservedUsers();
await Promise.all(
- reservedUsers.map(async user => {
+ reservedUsers.map(async (user) => {
await this.setPassword(user, options[`password.${user}`]);
})
);
@@ -87,7 +87,7 @@ exports.NativeRealm = class NativeRealm {
return await this._autoRetry(async () => {
const resp = await this._client.security.getUser();
const usernames = Object.keys(resp.body).filter(
- user => resp.body[user].metadata._reserved === true
+ (user) => resp.body[user].metadata._reserved === true
);
if (!usernames?.length) {
@@ -125,7 +125,7 @@ exports.NativeRealm = class NativeRealm {
const sec = 1.5 * attempt;
this._log.warning(`assuming ES isn't initialized completely, trying again in ${sec} seconds`);
- await new Promise(resolve => setTimeout(resolve, sec * 1000));
+ await new Promise((resolve) => setTimeout(resolve, sec * 1000));
return await this._autoRetry(fn, attempt + 1);
}
}
diff --git a/packages/kbn-eslint-import-resolver-kibana/lib/get_is_path_request.js b/packages/kbn-eslint-import-resolver-kibana/lib/get_is_path_request.js
index e26660f76a550..8472aaf0fc029 100644
--- a/packages/kbn-eslint-import-resolver-kibana/lib/get_is_path_request.js
+++ b/packages/kbn-eslint-import-resolver-kibana/lib/get_is_path_request.js
@@ -31,6 +31,6 @@
//
const PATH_IMPORT_RE = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
-exports.getIsPathRequest = function(source) {
+exports.getIsPathRequest = function (source) {
return PATH_IMPORT_RE.test(source);
};
diff --git a/packages/kbn-eslint-import-resolver-kibana/lib/get_kibana_path.js b/packages/kbn-eslint-import-resolver-kibana/lib/get_kibana_path.js
index 93c0f907d628d..3856281d15320 100755
--- a/packages/kbn-eslint-import-resolver-kibana/lib/get_kibana_path.js
+++ b/packages/kbn-eslint-import-resolver-kibana/lib/get_kibana_path.js
@@ -26,7 +26,7 @@ const DEFAULT_PLUGIN_PATH = '../..';
/*
* Resolves the path to Kibana, either from default setting or config
*/
-exports.getKibanaPath = function(config, projectRoot) {
+exports.getKibanaPath = function (config, projectRoot) {
const inConfig = config != null && config.kibanaPath;
// We only allow `.` in the config as we need it for Kibana itself
diff --git a/packages/kbn-eslint-import-resolver-kibana/lib/get_path_type.js b/packages/kbn-eslint-import-resolver-kibana/lib/get_path_type.js
index 3fb5b5dab7776..445a3cad385fc 100644
--- a/packages/kbn-eslint-import-resolver-kibana/lib/get_path_type.js
+++ b/packages/kbn-eslint-import-resolver-kibana/lib/get_path_type.js
@@ -49,10 +49,10 @@ function getPathType(path) {
return type;
}
-exports.isDirectory = function(path) {
+exports.isDirectory = function (path) {
return getPathType(path) === DIR;
};
-exports.isFile = function(path) {
+exports.isFile = function (path) {
return getPathType(path) === FILE;
};
diff --git a/packages/kbn-eslint-import-resolver-kibana/lib/get_plugins.js b/packages/kbn-eslint-import-resolver-kibana/lib/get_plugins.js
index 319b959883a8a..84481783b22fc 100755
--- a/packages/kbn-eslint-import-resolver-kibana/lib/get_plugins.js
+++ b/packages/kbn-eslint-import-resolver-kibana/lib/get_plugins.js
@@ -21,8 +21,8 @@ const { dirname, resolve } = require('path');
const glob = require('glob-all');
-exports.getPlugins = function(config, kibanaPath, projectRoot) {
- const resolveToRoot = path => resolve(projectRoot, path);
+exports.getPlugins = function (config, kibanaPath, projectRoot) {
+ const resolveToRoot = (path) => resolve(projectRoot, path);
const pluginDirs = [
...(config.pluginDirs || []).map(resolveToRoot),
@@ -39,11 +39,11 @@ exports.getPlugins = function(config, kibanaPath, projectRoot) {
];
const globPatterns = [
- ...pluginDirs.map(dir => resolve(dir, '*/package.json')),
- ...pluginPaths.map(path => resolve(path, 'package.json')),
+ ...pluginDirs.map((dir) => resolve(dir, '*/package.json')),
+ ...pluginPaths.map((path) => resolve(path, 'package.json')),
];
- const pluginsFromMap = Object.keys(config.pluginMap || {}).map(name => {
+ const pluginsFromMap = Object.keys(config.pluginMap || {}).map((name) => {
const directory = resolveToRoot(config.pluginMap[name]);
return {
name,
@@ -53,7 +53,7 @@ exports.getPlugins = function(config, kibanaPath, projectRoot) {
});
return pluginsFromMap.concat(
- glob.sync(globPatterns).map(pkgJsonPath => {
+ glob.sync(globPatterns).map((pkgJsonPath) => {
const path = dirname(pkgJsonPath);
const pkg = require(pkgJsonPath); // eslint-disable-line import/no-dynamic-require
return {
diff --git a/packages/kbn-eslint-import-resolver-kibana/lib/get_project_root.js b/packages/kbn-eslint-import-resolver-kibana/lib/get_project_root.js
index 5c70d63bf147b..fed40298d513f 100755
--- a/packages/kbn-eslint-import-resolver-kibana/lib/get_project_root.js
+++ b/packages/kbn-eslint-import-resolver-kibana/lib/get_project_root.js
@@ -55,7 +55,7 @@ function getRootPackageDir(dirRoot, dir, rootPackageName) {
}
}
-exports.getProjectRoot = function(file, config) {
+exports.getProjectRoot = function (file, config) {
const { root, dir } = parse(resolve(file));
const { rootPackageName } = config;
diff --git a/packages/kbn-eslint-import-resolver-kibana/lib/get_webpack_config.js b/packages/kbn-eslint-import-resolver-kibana/lib/get_webpack_config.js
index da0b799b338ed..6cb2f3d2901d3 100755
--- a/packages/kbn-eslint-import-resolver-kibana/lib/get_webpack_config.js
+++ b/packages/kbn-eslint-import-resolver-kibana/lib/get_webpack_config.js
@@ -22,7 +22,7 @@ const { resolve } = require('path');
const { debug } = require('./debug');
const { getPlugins } = require('./get_plugins');
-exports.getWebpackConfig = function(kibanaPath, projectRoot, config) {
+exports.getWebpackConfig = function (kibanaPath, projectRoot, config) {
const fromKibana = (...path) => resolve(kibanaPath, ...path);
const alias = {
@@ -39,7 +39,7 @@ exports.getWebpackConfig = function(kibanaPath, projectRoot, config) {
test_utils: fromKibana('src/test_utils/public'),
};
- getPlugins(config, kibanaPath, projectRoot).forEach(plugin => {
+ getPlugins(config, kibanaPath, projectRoot).forEach((plugin) => {
alias[`plugins/${plugin.name}`] = plugin.publicDirectory;
});
diff --git a/packages/kbn-eslint-import-resolver-kibana/lib/is_probably_webpack_shim.js b/packages/kbn-eslint-import-resolver-kibana/lib/is_probably_webpack_shim.js
index 2af7d1c2f5349..9eb3234fca7b4 100644
--- a/packages/kbn-eslint-import-resolver-kibana/lib/is_probably_webpack_shim.js
+++ b/packages/kbn-eslint-import-resolver-kibana/lib/is_probably_webpack_shim.js
@@ -32,8 +32,8 @@ function readShimNames(shimDirectory) {
}
return readdirSync(shimDirectory)
- .filter(name => !name.startsWith('.') && !name.startsWith('_'))
- .map(name => (name.endsWith('.js') ? name.slice(0, -3) : name));
+ .filter((name) => !name.startsWith('.') && !name.startsWith('_'))
+ .map((name) => (name.endsWith('.js') ? name.slice(0, -3) : name));
}
function findRelativeWebpackShims(directory) {
@@ -53,7 +53,7 @@ function findRelativeWebpackShims(directory) {
return allShims;
}
-exports.isProbablyWebpackShim = function(source, file) {
+exports.isProbablyWebpackShim = function (source, file) {
const shims = findRelativeWebpackShims(dirname(file));
- return shims.some(shim => source === shim || source.startsWith(shim + '/'));
+ return shims.some((shim) => source === shim || source.startsWith(shim + '/'));
};
diff --git a/packages/kbn-eslint-import-resolver-kibana/lib/resolve_webpack_alias.js b/packages/kbn-eslint-import-resolver-kibana/lib/resolve_webpack_alias.js
index a7bb391f9b1c6..00b07f469bd9c 100644
--- a/packages/kbn-eslint-import-resolver-kibana/lib/resolve_webpack_alias.js
+++ b/packages/kbn-eslint-import-resolver-kibana/lib/resolve_webpack_alias.js
@@ -25,7 +25,7 @@
* @param {Array<[alias,path]>} aliasEntries
* @return {string|undefined}
*/
-exports.resolveWebpackAlias = function(source, aliasEntries) {
+exports.resolveWebpackAlias = function (source, aliasEntries) {
for (const [alias, path] of aliasEntries) {
if (source === alias) {
return path;
diff --git a/packages/kbn-eslint-plugin-eslint/lib.js b/packages/kbn-eslint-plugin-eslint/lib.js
index 56684746c479f..a7431be00e054 100644
--- a/packages/kbn-eslint-plugin-eslint/lib.js
+++ b/packages/kbn-eslint-plugin-eslint/lib.js
@@ -31,7 +31,7 @@ exports.normalizeWhitespace = function normalizeWhitespace(string) {
return string.replace(/\s+/g, ' ');
};
-exports.init = function(context, program, initStep) {
+exports.init = function (context, program, initStep) {
try {
return initStep();
} catch (error) {
diff --git a/packages/kbn-eslint-plugin-eslint/rules/disallow_license_headers.js b/packages/kbn-eslint-plugin-eslint/rules/disallow_license_headers.js
index 0567307d18968..6b5564f1f8004 100644
--- a/packages/kbn-eslint-plugin-eslint/rules/disallow_license_headers.js
+++ b/packages/kbn-eslint-plugin-eslint/rules/disallow_license_headers.js
@@ -39,7 +39,7 @@ module.exports = {
},
],
},
- create: context => {
+ create: (context) => {
return {
Program(program) {
const licenses = init(context, program, () => {
@@ -70,8 +70,8 @@ module.exports = {
sourceCode
.getAllComments()
- .filter(node => licenses.includes(normalizeWhitespace(node.value)))
- .forEach(node => {
+ .filter((node) => licenses.includes(normalizeWhitespace(node.value)))
+ .forEach((node) => {
context.report({
node,
message: 'This license header is not allowed in this file.',
diff --git a/packages/kbn-eslint-plugin-eslint/rules/module_migration.js b/packages/kbn-eslint-plugin-eslint/rules/module_migration.js
index 8119d338ee536..6027a939f1a65 100644
--- a/packages/kbn-eslint-plugin-eslint/rules/module_migration.js
+++ b/packages/kbn-eslint-plugin-eslint/rules/module_migration.js
@@ -22,7 +22,7 @@ const KIBANA_ROOT = path.resolve(__dirname, '../../..');
function checkModuleNameNode(context, mappings, node) {
const mapping = mappings.find(
- mapping => mapping.from === node.value || node.value.startsWith(`${mapping.from}/`)
+ (mapping) => mapping.from === node.value || node.value.startsWith(`${mapping.from}/`)
);
if (!mapping) {
@@ -105,7 +105,7 @@ module.exports = {
},
],
},
- create: context => {
+ create: (context) => {
const mappings = context.options[0];
return {
diff --git a/packages/kbn-eslint-plugin-eslint/rules/require_license_header.js b/packages/kbn-eslint-plugin-eslint/rules/require_license_header.js
index f3c9fcef1985e..915ac3ed7922e 100644
--- a/packages/kbn-eslint-plugin-eslint/rules/require_license_header.js
+++ b/packages/kbn-eslint-plugin-eslint/rules/require_license_header.js
@@ -40,10 +40,10 @@ module.exports = {
},
],
},
- create: context => {
+ create: (context) => {
return {
Program(program) {
- const license = init(context, program, function() {
+ const license = init(context, program, function () {
const options = context.options[0] || {};
const license = options.license;
@@ -69,7 +69,7 @@ module.exports = {
const sourceCode = context.getSourceCode();
const comment = sourceCode
.getAllComments()
- .find(node => normalizeWhitespace(node.value) === license.nodeValue);
+ .find((node) => normalizeWhitespace(node.value) === license.nodeValue);
// no licence comment
if (!comment) {
diff --git a/packages/kbn-i18n/scripts/build.js b/packages/kbn-i18n/scripts/build.js
index 0764451c74575..62e1a35f00399 100644
--- a/packages/kbn-i18n/scripts/build.js
+++ b/packages/kbn-i18n/scripts/build.js
@@ -31,7 +31,7 @@ const padRight = (width, str) =>
run(
async ({ log, flags }) => {
- await withProcRunner(log, async proc => {
+ await withProcRunner(log, async (proc) => {
log.info('Deleting old output');
await del(BUILD_DIR);
@@ -43,7 +43,7 @@ run(
log.info(`Starting babel and typescript${flags.watch ? ' in watch mode' : ''}`);
await Promise.all([
- ...['web', 'node'].map(subTask =>
+ ...['web', 'node'].map((subTask) =>
proc.run(padRight(10, `babel:${subTask}`), {
cmd: 'babel',
args: [
diff --git a/packages/kbn-i18n/src/angular/filter.test.ts b/packages/kbn-i18n/src/angular/filter.test.ts
index 78bc279689357..5336926a64139 100644
--- a/packages/kbn-i18n/src/angular/filter.test.ts
+++ b/packages/kbn-i18n/src/angular/filter.test.ts
@@ -28,17 +28,14 @@ import * as i18n from '../core/i18n';
import { i18nFilter as angularI18nFilter } from './filter';
import { I18nProvider, I18nServiceType } from './provider';
-angular
- .module('app', [])
- .provider('i18n', I18nProvider)
- .filter('i18n', angularI18nFilter);
+angular.module('app', []).provider('i18n', I18nProvider).filter('i18n', angularI18nFilter);
describe('i18nFilter', () => {
let filter: I18nServiceType;
beforeEach(angular.mock.module('app'));
beforeEach(
- angular.mock.inject(i18nFilter => {
+ angular.mock.inject((i18nFilter) => {
filter = i18nFilter;
})
);
diff --git a/packages/kbn-i18n/src/loader.ts b/packages/kbn-i18n/src/loader.ts
index 21f540f588f46..8231ed36928d8 100644
--- a/packages/kbn-i18n/src/loader.ts
+++ b/packages/kbn-i18n/src/loader.ts
@@ -127,7 +127,7 @@ export function getRegisteredLocales() {
*/
export async function getTranslationsByLocale(locale: string): Promise {
const files = translationsRegistry[locale] || [];
- const notLoadedFiles = files.filter(file => !loadedFiles[file]);
+ const notLoadedFiles = files.filter((file) => !loadedFiles[file]);
if (notLoadedFiles.length) {
await loadAndCacheFiles(notLoadedFiles);
diff --git a/packages/kbn-i18n/src/react/pseudo_locale_wrapper.tsx b/packages/kbn-i18n/src/react/pseudo_locale_wrapper.tsx
index db879fbae6ff1..3271ae7c98d2f 100644
--- a/packages/kbn-i18n/src/react/pseudo_locale_wrapper.tsx
+++ b/packages/kbn-i18n/src/react/pseudo_locale_wrapper.tsx
@@ -37,7 +37,7 @@ function translateFormattedMessageUsingPseudoLocale(message: string) {
if (formattedMessageDelimiter !== null) {
return message
.split(formattedMessageDelimiter[0])
- .map(part => (part.startsWith('ELEMENT-') ? part : translateUsingPseudoLocale(part)))
+ .map((part) => (part.startsWith('ELEMENT-') ? part : translateUsingPseudoLocale(part)))
.join(formattedMessageDelimiter[0]);
}
diff --git a/packages/kbn-interpreter/src/common/lib/arg.js b/packages/kbn-interpreter/src/common/lib/arg.js
index 0aa2b52e35acb..2ab74e5035866 100644
--- a/packages/kbn-interpreter/src/common/lib/arg.js
+++ b/packages/kbn-interpreter/src/common/lib/arg.js
@@ -30,7 +30,7 @@ export function Arg(config) {
this.multi = config.multi == null ? false : config.multi;
this.resolve = config.resolve == null ? true : config.resolve;
this.options = config.options || [];
- this.accepts = type => {
+ this.accepts = (type) => {
if (!this.types.length) return true;
return includes(config.types, type);
};
diff --git a/packages/kbn-interpreter/src/common/lib/ast.js b/packages/kbn-interpreter/src/common/lib/ast.js
index 61cfe94ac955c..98123f475cd92 100644
--- a/packages/kbn-interpreter/src/common/lib/ast.js
+++ b/packages/kbn-interpreter/src/common/lib/ast.js
@@ -55,7 +55,7 @@ function getExpressionArgs(block, level = 0) {
const argKeys = Object.keys(args);
const MAX_LINE_LENGTH = 80; // length before wrapping arguments
- return argKeys.map(argKey =>
+ return argKeys.map((argKey) =>
args[argKey].reduce((acc, arg) => {
const argString = getArgumentString(arg, argKey, level);
const lineLength = acc.split('\n').pop().length;
@@ -86,7 +86,7 @@ function getExpression(chain, level = 0) {
const separator = level > 0 ? ' | ' : '\n| ';
return chain
- .map(chainObj => {
+ .map((chainObj) => {
const type = getType(chainObj);
if (type === 'function') {
diff --git a/packages/kbn-interpreter/src/common/lib/fn.js b/packages/kbn-interpreter/src/common/lib/fn.js
index c6b2fcbe67799..5561c08f9c7d0 100644
--- a/packages/kbn-interpreter/src/common/lib/fn.js
+++ b/packages/kbn-interpreter/src/common/lib/fn.js
@@ -39,7 +39,7 @@ export function Fn(config) {
this.context = config.context || {};
- this.accepts = type => {
+ this.accepts = (type) => {
if (!this.context.types) return true; // If you don't tell us about context, we'll assume you don't care what you get
return includes(this.context.types, type); // Otherwise, check it
};
diff --git a/packages/kbn-interpreter/src/common/lib/get_by_alias.js b/packages/kbn-interpreter/src/common/lib/get_by_alias.js
index d7bb1bbf9e79d..04c435216b946 100644
--- a/packages/kbn-interpreter/src/common/lib/get_by_alias.js
+++ b/packages/kbn-interpreter/src/common/lib/get_by_alias.js
@@ -26,7 +26,7 @@ export function getByAlias(specs, name) {
const lowerCaseName = name.toLowerCase();
return Object.values(specs).find(({ name, aliases }) => {
if (name.toLowerCase() === lowerCaseName) return true;
- return (aliases || []).some(alias => {
+ return (aliases || []).some((alias) => {
return alias.toLowerCase() === lowerCaseName;
});
});
diff --git a/packages/kbn-interpreter/src/common/lib/registry.js b/packages/kbn-interpreter/src/common/lib/registry.js
index 3b22704b9e9c8..25b122f400711 100644
--- a/packages/kbn-interpreter/src/common/lib/registry.js
+++ b/packages/kbn-interpreter/src/common/lib/registry.js
@@ -48,7 +48,7 @@ export class Registry {
}
toArray() {
- return Object.keys(this._indexed).map(key => this.get(key));
+ return Object.keys(this._indexed).map((key) => this.get(key));
}
get(name) {
diff --git a/packages/kbn-interpreter/src/common/registries.js b/packages/kbn-interpreter/src/common/registries.js
index 2c68f5647ca73..9d73433bb2d26 100644
--- a/packages/kbn-interpreter/src/common/registries.js
+++ b/packages/kbn-interpreter/src/common/registries.js
@@ -24,7 +24,7 @@
* @param {*} newRegistries - The new set of registries
*/
export function addRegistries(registries, newRegistries) {
- Object.keys(newRegistries).forEach(registryName => {
+ Object.keys(newRegistries).forEach((registryName) => {
if (registries[registryName]) {
throw new Error(`There is already a registry named "${registryName}".`);
}
@@ -41,7 +41,7 @@ export function addRegistries(registries, newRegistries) {
* @param {*} specs - The specs to be regsitered (e.g. { types: [], browserFunctions: [] })
*/
export function register(registries, specs) {
- Object.keys(specs).forEach(registryName => {
+ Object.keys(specs).forEach((registryName) => {
if (!registries[registryName]) {
throw new Error(`There is no registry named "${registryName}".`);
}
@@ -49,7 +49,7 @@ export function register(registries, specs) {
if (!registries[registryName].register) {
throw new Error(`Registry "${registryName}" must have a register function.`);
}
- specs[registryName].forEach(f => registries[registryName].register(f));
+ specs[registryName].forEach((f) => registries[registryName].register(f));
});
return registries;
diff --git a/packages/kbn-interpreter/tasks/build/cli.js b/packages/kbn-interpreter/tasks/build/cli.js
index 86df21ee566ac..970e0f8847882 100644
--- a/packages/kbn-interpreter/tasks/build/cli.js
+++ b/packages/kbn-interpreter/tasks/build/cli.js
@@ -56,7 +56,7 @@ if (flags.help) {
process.exit();
}
-withProcRunner(log, async proc => {
+withProcRunner(log, async (proc) => {
log.info('Deleting old output');
await del(BUILD_DIR);
@@ -87,7 +87,7 @@ withProcRunner(log, async proc => {
]);
log.success('Complete');
-}).catch(error => {
+}).catch((error) => {
log.error(error);
process.exit(1);
});
diff --git a/packages/kbn-optimizer/src/cli.ts b/packages/kbn-optimizer/src/cli.ts
index a2fbe969e34d8..0916f12a7110d 100644
--- a/packages/kbn-optimizer/src/cli.ts
+++ b/packages/kbn-optimizer/src/cli.ts
@@ -77,8 +77,8 @@ run(
const extraPluginScanDirs = ([] as string[])
.concat((flags['scan-dir'] as string | string[]) || [])
- .map(p => Path.resolve(p));
- if (!extraPluginScanDirs.every(s => typeof s === 'string')) {
+ .map((p) => Path.resolve(p));
+ if (!extraPluginScanDirs.every((s) => typeof s === 'string')) {
throw createFlagError('expected --scan-dir to be a string');
}
diff --git a/packages/kbn-optimizer/src/common/array_helpers.test.ts b/packages/kbn-optimizer/src/common/array_helpers.test.ts
index 9d45217486ee8..ab5f4b694333e 100644
--- a/packages/kbn-optimizer/src/common/array_helpers.test.ts
+++ b/packages/kbn-optimizer/src/common/array_helpers.test.ts
@@ -53,11 +53,7 @@ describe('ascending/descending', () => {
].sort(() => 0.5 - Math.random());
it('sorts items using getters', () => {
- expect(
- Array.from(values)
- .sort(ascending(a, b, c))
- .map(print)
- ).toMatchInlineSnapshot(`
+ expect(Array.from(values).sort(ascending(a, b, c)).map(print)).toMatchInlineSnapshot(`
Array [
"1/2/3",
"3/2/1",
@@ -81,11 +77,7 @@ describe('ascending/descending', () => {
]
`);
- expect(
- Array.from(values)
- .sort(descending(a, b, c))
- .map(print)
- ).toMatchInlineSnapshot(`
+ expect(Array.from(values).sort(descending(a, b, c)).map(print)).toMatchInlineSnapshot(`
Array [
"9/9/9",
"8/foo/8",
diff --git a/packages/kbn-optimizer/src/common/bundle.ts b/packages/kbn-optimizer/src/common/bundle.ts
index 7581b90d60af2..9e2ad186ba40c 100644
--- a/packages/kbn-optimizer/src/common/bundle.ts
+++ b/packages/kbn-optimizer/src/common/bundle.ts
@@ -80,7 +80,7 @@ export class Bundle {
return {
spec: this.toSpec(),
mtimes: entriesToObject(
- files.map(p => [p, mtimes.get(p)] as const).sort(ascending(e => e[0]))
+ files.map((p) => [p, mtimes.get(p)] as const).sort(ascending((e) => e[0]))
),
};
}
diff --git a/packages/kbn-optimizer/src/common/disallowed_syntax_plugin/disallowed_syntax.ts b/packages/kbn-optimizer/src/common/disallowed_syntax_plugin/disallowed_syntax.ts
index ba19bdc9c3be7..aba4451622dcd 100644
--- a/packages/kbn-optimizer/src/common/disallowed_syntax_plugin/disallowed_syntax.ts
+++ b/packages/kbn-optimizer/src/common/disallowed_syntax_plugin/disallowed_syntax.ts
@@ -130,7 +130,7 @@ export const checks: DisallowedSyntaxCheck[] = [
{
name: '[es2018] object spread properties',
nodeType: 'ObjectExpression',
- test: (n: estree.ObjectExpression) => n.properties.some(p => p.type === 'SpreadElement'),
+ test: (n: estree.ObjectExpression) => n.properties.some((p) => p.type === 'SpreadElement'),
},
// https://github.com/estree/estree/blob/master/es2018.md#template-literals
{
@@ -142,7 +142,7 @@ export const checks: DisallowedSyntaxCheck[] = [
{
name: '[es2018] rest properties',
nodeType: 'ObjectPattern',
- test: (n: estree.ObjectPattern) => n.properties.some(p => p.type === 'RestElement'),
+ test: (n: estree.ObjectPattern) => n.properties.some((p) => p.type === 'RestElement'),
},
/**
diff --git a/packages/kbn-optimizer/src/common/disallowed_syntax_plugin/disallowed_syntax_plugin.ts b/packages/kbn-optimizer/src/common/disallowed_syntax_plugin/disallowed_syntax_plugin.ts
index 7377462eb267b..8fb7559f3e22f 100644
--- a/packages/kbn-optimizer/src/common/disallowed_syntax_plugin/disallowed_syntax_plugin.ts
+++ b/packages/kbn-optimizer/src/common/disallowed_syntax_plugin/disallowed_syntax_plugin.ts
@@ -26,8 +26,8 @@ import { parseFilePath } from '../parse_path';
export class DisallowedSyntaxPlugin {
apply(compiler: webpack.Compiler) {
- compiler.hooks.normalModuleFactory.tap(DisallowedSyntaxPlugin.name, factory => {
- factory.hooks.parser.for('javascript/auto').tap(DisallowedSyntaxPlugin.name, parser => {
+ compiler.hooks.normalModuleFactory.tap(DisallowedSyntaxPlugin.name, (factory) => {
+ factory.hooks.parser.for('javascript/auto').tap(DisallowedSyntaxPlugin.name, (parser) => {
parser.hooks.program.tap(DisallowedSyntaxPlugin.name, (program: acorn.Node) => {
const module = parser.state?.current;
if (!module || !module.resource) {
@@ -43,7 +43,7 @@ export class DisallowedSyntaxPlugin {
const failedChecks = new Set();
- AcornWalk.full(program, node => {
+ AcornWalk.full(program, (node) => {
const checks = checksByNodeType.get(node.type as any);
if (!checks) {
return;
@@ -63,7 +63,7 @@ export class DisallowedSyntaxPlugin {
// throw an error to trigger a parse failure, causing this module to be reported as invalid
throw new Error(
`disallowed syntax found in file ${resource}:\n - ${Array.from(failedChecks)
- .map(c => c.name)
+ .map((c) => c.name)
.join('\n - ')}`
);
});
diff --git a/packages/kbn-optimizer/src/common/event_stream_helpers.test.ts b/packages/kbn-optimizer/src/common/event_stream_helpers.test.ts
index f6f6841532799..7458fa13eccb3 100644
--- a/packages/kbn-optimizer/src/common/event_stream_helpers.test.ts
+++ b/packages/kbn-optimizer/src/common/event_stream_helpers.test.ts
@@ -233,6 +233,6 @@ it('stops an infinite stream when unsubscribed', async () => {
// ensure summarizer still only called 10 times after a timeout
expect(summarize).toHaveBeenCalledTimes(10);
- await new Promise(resolve => setTimeout(resolve, 1000));
+ await new Promise((resolve) => setTimeout(resolve, 1000));
expect(summarize).toHaveBeenCalledTimes(10);
});
diff --git a/packages/kbn-optimizer/src/common/event_stream_helpers.ts b/packages/kbn-optimizer/src/common/event_stream_helpers.ts
index d07af32f88897..d93cba5653abd 100644
--- a/packages/kbn-optimizer/src/common/event_stream_helpers.ts
+++ b/packages/kbn-optimizer/src/common/event_stream_helpers.ts
@@ -40,7 +40,7 @@ export const summarizeEventStream = (
initialState: State,
summarize: Summarizer
) => {
- return new Rx.Observable>(subscriber => {
+ return new Rx.Observable>((subscriber) => {
const eventBuffer: Event[] = [];
let processingEventBuffer = false;
@@ -93,7 +93,7 @@ export const summarizeEventStream = (
subscriber.add(
event$.subscribe(
injectEvent,
- error => {
+ (error) => {
subscriber.error(error);
},
() => {
diff --git a/packages/kbn-optimizer/src/common/parse_path.test.ts b/packages/kbn-optimizer/src/common/parse_path.test.ts
index 61be44348cfae..48749a08fb285 100644
--- a/packages/kbn-optimizer/src/common/parse_path.test.ts
+++ b/packages/kbn-optimizer/src/common/parse_path.test.ts
@@ -32,13 +32,13 @@ const FILES = [
];
describe('parseFilePath()', () => {
- it.each([...FILES, ...AMBIGUOUS])('parses %s', path => {
+ it.each([...FILES, ...AMBIGUOUS])('parses %s', (path) => {
expect(parseFilePath(path)).toMatchSnapshot();
});
});
describe('parseDirPath()', () => {
- it.each([...DIRS, ...AMBIGUOUS])('parses %s', path => {
+ it.each([...DIRS, ...AMBIGUOUS])('parses %s', (path) => {
expect(parseDirPath(path)).toMatchSnapshot();
});
});
diff --git a/packages/kbn-optimizer/src/common/rxjs_helpers.test.ts b/packages/kbn-optimizer/src/common/rxjs_helpers.test.ts
index 72be71e6bf7ec..dda66c999b8f1 100644
--- a/packages/kbn-optimizer/src/common/rxjs_helpers.test.ts
+++ b/packages/kbn-optimizer/src/common/rxjs_helpers.test.ts
@@ -29,9 +29,9 @@ describe('pipeClosure()', () => {
let counter = 0;
const foo$ = Rx.of(1, 2, 3).pipe(
- pipeClosure(source$ => {
+ pipeClosure((source$) => {
const multiplier = ++counter;
- return source$.pipe(map(i => i * multiplier));
+ return source$.pipe(map((i) => i * multiplier));
}),
toArray()
);
@@ -71,7 +71,7 @@ describe('maybe()', () => {
describe('maybeMap()', () => {
it('calls map fn and filters out undefined values returned', async () => {
const foo$ = Rx.of(1, 2, 3, 4, 5).pipe(
- maybeMap(i => (i % 2 ? i : undefined)),
+ maybeMap((i) => (i % 2 ? i : undefined)),
toArray()
);
@@ -94,7 +94,7 @@ describe('debounceTimeBuffer()', () => {
foo$
.pipe(
debounceTimeBuffer(100),
- map(items => items.reduce((sum, n) => sum + n))
+ map((items) => items.reduce((sum, n) => sum + n))
)
.subscribe(dest);
@@ -128,7 +128,7 @@ describe('debounceTimeBuffer()', () => {
foo$
.pipe(
debounceTimeBuffer(100),
- map(items => items.reduce((sum, n) => sum + n))
+ map((items) => items.reduce((sum, n) => sum + n))
)
.subscribe(dest);
diff --git a/packages/kbn-optimizer/src/common/rxjs_helpers.ts b/packages/kbn-optimizer/src/common/rxjs_helpers.ts
index f37bebb49efe9..c6385c22518aa 100644
--- a/packages/kbn-optimizer/src/common/rxjs_helpers.ts
+++ b/packages/kbn-optimizer/src/common/rxjs_helpers.ts
@@ -39,7 +39,7 @@ export const pipeClosure = (fn: Operator): Operator => {
* supporting TypeScript
*/
export const maybe = (): Operator => {
- return mergeMap(item => (item === undefined ? Rx.EMPTY : [item]));
+ return mergeMap((item) => (item === undefined ? Rx.EMPTY : [item]));
};
/**
@@ -64,7 +64,7 @@ export const debounceTimeBuffer = (ms: number) =>
pipeClosure((source$: Rx.Observable) => {
const buffer: T[] = [];
return source$.pipe(
- tap(item => buffer.push(item)),
+ tap((item) => buffer.push(item)),
debounceTime(ms),
map(() => {
const items = Array.from(buffer);
diff --git a/packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts b/packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts
index ff9addbb3172e..4776153935be5 100644
--- a/packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts
+++ b/packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts
@@ -85,39 +85,39 @@ it('builds expected bundles, saves bundle counts to metadata', async () => {
}
};
- const initializingStates = msgs.filter(msg => msg.state.phase === 'initializing');
+ const initializingStates = msgs.filter((msg) => msg.state.phase === 'initializing');
assert('produce at least one initializing event', initializingStates.length >= 1);
const bundleCacheStates = msgs.filter(
- msg =>
+ (msg) =>
(msg.event?.type === 'bundle cached' || msg.event?.type === 'bundle not cached') &&
msg.state.phase === 'initializing'
);
assert('produce two bundle cache events while initializing', bundleCacheStates.length === 2);
- const initializedStates = msgs.filter(msg => msg.state.phase === 'initialized');
+ const initializedStates = msgs.filter((msg) => msg.state.phase === 'initialized');
assert('produce at least one initialized event', initializedStates.length >= 1);
- const workerStarted = msgs.filter(msg => msg.event?.type === 'worker started');
+ const workerStarted = msgs.filter((msg) => msg.event?.type === 'worker started');
assert('produce one worker started event', workerStarted.length === 1);
- const runningStates = msgs.filter(msg => msg.state.phase === 'running');
+ const runningStates = msgs.filter((msg) => msg.state.phase === 'running');
assert(
'produce two or three "running" states',
runningStates.length === 2 || runningStates.length === 3
);
- const bundleNotCachedEvents = msgs.filter(msg => msg.event?.type === 'bundle not cached');
+ const bundleNotCachedEvents = msgs.filter((msg) => msg.event?.type === 'bundle not cached');
assert('produce two "bundle not cached" events', bundleNotCachedEvents.length === 2);
- const successStates = msgs.filter(msg => msg.state.phase === 'success');
+ const successStates = msgs.filter((msg) => msg.state.phase === 'success');
assert(
'produce one or two "compiler success" states',
successStates.length === 1 || successStates.length === 2
);
const otherStates = msgs.filter(
- msg =>
+ (msg) =>
msg.state.phase !== 'initializing' &&
msg.state.phase !== 'success' &&
msg.state.phase !== 'running' &&
@@ -126,7 +126,7 @@ it('builds expected bundles, saves bundle counts to metadata', async () => {
);
assert('produce zero unexpected states', otherStates.length === 0, otherStates);
- const foo = config.bundles.find(b => b.id === 'foo')!;
+ const foo = config.bundles.find((b) => b.id === 'foo')!;
expect(foo).toBeTruthy();
foo.cache.refresh();
expect(foo.cache.getModuleCount()).toBe(4);
@@ -139,7 +139,7 @@ it('builds expected bundles, saves bundle counts to metadata', async () => {
]
`);
- const bar = config.bundles.find(b => b.id === 'bar')!;
+ const bar = config.bundles.find((b) => b.id === 'bar')!;
expect(bar).toBeTruthy();
bar.cache.refresh();
expect(bar.cache.getModuleCount()).toBe(
@@ -173,7 +173,7 @@ it('uses cache on second run and exist cleanly', async () => {
const msgs = await runOptimizer(config)
.pipe(
- tap(state => {
+ tap((state) => {
if (state.event?.type === 'worker stdio') {
// eslint-disable-next-line no-console
console.log('worker', state.event.stream, state.event.chunk.toString('utf8'));
@@ -183,7 +183,7 @@ it('uses cache on second run and exist cleanly', async () => {
)
.toPromise();
- expect(msgs.map(m => m.state.phase)).toMatchInlineSnapshot(`
+ expect(msgs.map((m) => m.state.phase)).toMatchInlineSnapshot(`
Array [
"initializing",
"initializing",
@@ -202,9 +202,7 @@ it('prepares assets for distribution', async () => {
dist: true,
});
- await runOptimizer(config)
- .pipe(logOptimizerState(log, config), toArray())
- .toPromise();
+ await runOptimizer(config).pipe(logOptimizerState(log, config), toArray()).toPromise();
expectFileMatchesSnapshotWithCompression('plugins/foo/target/public/foo.plugin.js', 'foo bundle');
expectFileMatchesSnapshotWithCompression(
diff --git a/packages/kbn-optimizer/src/integration_tests/bundle_cache.test.ts b/packages/kbn-optimizer/src/integration_tests/bundle_cache.test.ts
index 1bfd8d3fd073a..14ff320173d60 100644
--- a/packages/kbn-optimizer/src/integration_tests/bundle_cache.test.ts
+++ b/packages/kbn-optimizer/src/integration_tests/bundle_cache.test.ts
@@ -35,7 +35,7 @@ const MOCK_REPO_DIR = Path.resolve(TMP_DIR, 'mock_repo');
expect.addSnapshotSerializer({
print: () => '',
- test: v => v instanceof Bundle,
+ test: (v) => v instanceof Bundle,
});
expect.addSnapshotSerializer(createAbsolutePathSerializer(MOCK_REPO_DIR));
diff --git a/packages/kbn-optimizer/src/integration_tests/watch_bundles_for_changes.test.ts b/packages/kbn-optimizer/src/integration_tests/watch_bundles_for_changes.test.ts
index c02a857883a98..91d0f308e0ef6 100644
--- a/packages/kbn-optimizer/src/integration_tests/watch_bundles_for_changes.test.ts
+++ b/packages/kbn-optimizer/src/integration_tests/watch_bundles_for_changes.test.ts
@@ -96,7 +96,7 @@ it('notifies of changes and completes once all bundles have changed', async () =
// first we change foo and bar, and after 1 second get that change comes though
if (i === 1) {
expect(event.bundles).toHaveLength(2);
- const [bar, foo] = event.bundles.sort(ascending(b => b.id));
+ const [bar, foo] = event.bundles.sort(ascending((b) => b.id));
expect(bar).toHaveProperty('id', 'bar');
expect(foo).toHaveProperty('id', 'foo');
}
@@ -110,7 +110,7 @@ it('notifies of changes and completes once all bundles have changed', async () =
// finally we change box and car together
if (i === 5) {
expect(event.bundles).toHaveLength(2);
- const [bar, foo] = event.bundles.sort(ascending(b => b.id));
+ const [bar, foo] = event.bundles.sort(ascending((b) => b.id));
expect(bar).toHaveProperty('id', 'box');
expect(foo).toHaveProperty('id', 'car');
}
diff --git a/packages/kbn-optimizer/src/log_optimizer_state.ts b/packages/kbn-optimizer/src/log_optimizer_state.ts
index 5217581d1b413..cbec159bd27a0 100644
--- a/packages/kbn-optimizer/src/log_optimizer_state.ts
+++ b/packages/kbn-optimizer/src/log_optimizer_state.ts
@@ -33,7 +33,7 @@ export function logOptimizerState(log: ToolingLog, config: OptimizerConfig) {
let loggedInit = false;
return update$.pipe(
- tap(update => {
+ tap((update) => {
const { event, state } = update;
if (event?.type === 'worker stdio') {
diff --git a/packages/kbn-optimizer/src/optimizer/assign_bundles_to_workers.test.ts b/packages/kbn-optimizer/src/optimizer/assign_bundles_to_workers.test.ts
index dd4d5c294dfc8..4671276797049 100644
--- a/packages/kbn-optimizer/src/optimizer/assign_bundles_to_workers.test.ts
+++ b/packages/kbn-optimizer/src/optimizer/assign_bundles_to_workers.test.ts
@@ -35,7 +35,7 @@ const summarizeBundles = (w: Assignments) =>
const readConfigs = (workers: Assignments[]) =>
workers.map(
- (w, i) => `worker ${i} (${summarizeBundles(w)}) => ${w.bundles.map(b => b.id).join(',')}`
+ (w, i) => `worker ${i} (${summarizeBundles(w)}) => ${w.bundles.map((b) => b.id).join(',')}`
);
const assertReturnVal = (workers: Assignments[]) => {
diff --git a/packages/kbn-optimizer/src/optimizer/assign_bundles_to_workers.ts b/packages/kbn-optimizer/src/optimizer/assign_bundles_to_workers.ts
index 001783b167c7a..e1bcb22230bf9 100644
--- a/packages/kbn-optimizer/src/optimizer/assign_bundles_to_workers.ts
+++ b/packages/kbn-optimizer/src/optimizer/assign_bundles_to_workers.ts
@@ -70,16 +70,16 @@ export function assignBundlesToWorkers(bundles: Bundle[], maxWorkerCount: number
* counts and sort them by [moduleCount, id]
*/
const bundlesWithCountsDesc = bundles
- .filter(b => b.cache.getModuleCount() !== undefined)
+ .filter((b) => b.cache.getModuleCount() !== undefined)
.sort(
descending(
- b => b.cache.getModuleCount(),
- b => b.id
+ (b) => b.cache.getModuleCount(),
+ (b) => b.id
)
);
const bundlesWithoutModuleCounts = bundles
- .filter(b => b.cache.getModuleCount() === undefined)
- .sort(descending(b => b.id));
+ .filter((b) => b.cache.getModuleCount() === undefined)
+ .sort(descending((b) => b.id));
/**
* assign largest bundles to the smallest worker until it is
@@ -87,7 +87,7 @@ export function assignBundlesToWorkers(bundles: Bundle[], maxWorkerCount: number
* with module counts are assigned
*/
while (bundlesWithCountsDesc.length) {
- const [smallestWorker, nextSmallestWorker] = workers.sort(ascending(w => w.moduleCount));
+ const [smallestWorker, nextSmallestWorker] = workers.sort(ascending((w) => w.moduleCount));
while (!nextSmallestWorker || smallestWorker.moduleCount <= nextSmallestWorker.moduleCount) {
const bundle = bundlesWithCountsDesc.shift();
@@ -104,7 +104,7 @@ export function assignBundlesToWorkers(bundles: Bundle[], maxWorkerCount: number
* assign bundles without module counts to workers round-robin
* starting with the smallest workers
*/
- workers.sort(ascending(w => w.moduleCount));
+ workers.sort(ascending((w) => w.moduleCount));
while (bundlesWithoutModuleCounts.length) {
for (const worker of workers) {
const bundle = bundlesWithoutModuleCounts.shift();
diff --git a/packages/kbn-optimizer/src/optimizer/cache_keys.test.ts b/packages/kbn-optimizer/src/optimizer/cache_keys.test.ts
index 7351a3787f760..d5b0b8491f727 100644
--- a/packages/kbn-optimizer/src/optimizer/cache_keys.test.ts
+++ b/packages/kbn-optimizer/src/optimizer/cache_keys.test.ts
@@ -35,7 +35,7 @@ jest.mock('./get_changes.ts', () => ({
}));
jest.mock('./get_mtimes.ts', () => ({
- getMtimes: async (paths: string[]) => new Map(paths.map(path => [path, 12345])),
+ getMtimes: async (paths: string[]) => new Map(paths.map((path) => [path, 12345])),
}));
jest.mock('execa');
diff --git a/packages/kbn-optimizer/src/optimizer/cache_keys.ts b/packages/kbn-optimizer/src/optimizer/cache_keys.ts
index 11288afa28969..e024af125312d 100644
--- a/packages/kbn-optimizer/src/optimizer/cache_keys.ts
+++ b/packages/kbn-optimizer/src/optimizer/cache_keys.ts
@@ -182,7 +182,7 @@ export async function getOptimizerCacheKey(config: OptimizerConfig) {
};
const mtimes = await getMtimes(modifiedPaths);
- for (const [path, mtime] of Array.from(mtimes.entries()).sort(ascending(e => e[0]))) {
+ for (const [path, mtime] of Array.from(mtimes.entries()).sort(ascending((e) => e[0]))) {
if (typeof mtime === 'number') {
cacheKeys.modifiedTimes[path] = mtime;
}
diff --git a/packages/kbn-optimizer/src/optimizer/get_mtimes.ts b/packages/kbn-optimizer/src/optimizer/get_mtimes.ts
index 9ac156cb5b8de..07777c323637a 100644
--- a/packages/kbn-optimizer/src/optimizer/get_mtimes.ts
+++ b/packages/kbn-optimizer/src/optimizer/get_mtimes.ts
@@ -33,15 +33,15 @@ export async function getMtimes(paths: Iterable) {
// map paths to [path, mtimeMs] entries with concurrency of
// 100 at a time, ignoring missing paths
mergeMap(
- path =>
+ (path) =>
stat$(path).pipe(
- map(stat => [path, stat.mtimeMs] as const),
+ map((stat) => [path, stat.mtimeMs] as const),
catchError((error: any) => (error?.code === 'ENOENT' ? Rx.EMPTY : Rx.throwError(error)))
),
100
),
toArray(),
- map(entries => new Map(entries))
+ map((entries) => new Map(entries))
)
.toPromise();
}
diff --git a/packages/kbn-optimizer/src/optimizer/get_plugin_bundles.test.ts b/packages/kbn-optimizer/src/optimizer/get_plugin_bundles.test.ts
index 36dc0ca64c6ca..2174c488ad6cc 100644
--- a/packages/kbn-optimizer/src/optimizer/get_plugin_bundles.test.ts
+++ b/packages/kbn-optimizer/src/optimizer/get_plugin_bundles.test.ts
@@ -44,7 +44,7 @@ it('returns a bundle for core and each plugin', () => {
},
],
'/repo'
- ).map(b => b.toSpec())
+ ).map((b) => b.toSpec())
).toMatchInlineSnapshot(`
Array [
Object {
diff --git a/packages/kbn-optimizer/src/optimizer/get_plugin_bundles.ts b/packages/kbn-optimizer/src/optimizer/get_plugin_bundles.ts
index 4741cc3c30af7..b75a8a6edc264 100644
--- a/packages/kbn-optimizer/src/optimizer/get_plugin_bundles.ts
+++ b/packages/kbn-optimizer/src/optimizer/get_plugin_bundles.ts
@@ -25,9 +25,9 @@ import { KibanaPlatformPlugin } from './kibana_platform_plugins';
export function getPluginBundles(plugins: KibanaPlatformPlugin[], repoRoot: string) {
return plugins
- .filter(p => p.isUiPlugin)
+ .filter((p) => p.isUiPlugin)
.map(
- p =>
+ (p) =>
new Bundle({
type: 'plugin',
id: p.id,
diff --git a/packages/kbn-optimizer/src/optimizer/handle_optimizer_completion.ts b/packages/kbn-optimizer/src/optimizer/handle_optimizer_completion.ts
index b4b02649259a2..8b39b5fe8d3b6 100644
--- a/packages/kbn-optimizer/src/optimizer/handle_optimizer_completion.ts
+++ b/packages/kbn-optimizer/src/optimizer/handle_optimizer_completion.ts
@@ -32,7 +32,7 @@ export function handleOptimizerCompletion(config: OptimizerConfig) {
return update$.pipe(
tap({
- next: update => {
+ next: (update) => {
prevState = update.state;
},
complete: () => {
diff --git a/packages/kbn-optimizer/src/optimizer/kibana_platform_plugins.ts b/packages/kbn-optimizer/src/optimizer/kibana_platform_plugins.ts
index 2165878e92ff4..992feab6cd364 100644
--- a/packages/kbn-optimizer/src/optimizer/kibana_platform_plugins.ts
+++ b/packages/kbn-optimizer/src/optimizer/kibana_platform_plugins.ts
@@ -36,15 +36,15 @@ export function findKibanaPlatformPlugins(scanDirs: string[], paths: string[]) {
.sync(
Array.from(
new Set([
- ...scanDirs.map(dir => `${dir}/*/kibana.json`),
- ...paths.map(path => `${path}/kibana.json`),
+ ...scanDirs.map((dir) => `${dir}/*/kibana.json`),
+ ...paths.map((path) => `${path}/kibana.json`),
])
),
{
absolute: true,
}
)
- .map(path =>
+ .map((path) =>
// absolute paths returned from globby are using normalize or something so the path separators are `/` even on windows, Path.resolve solves this
readKibanaPlatformPlugin(Path.resolve(path))
);
diff --git a/packages/kbn-optimizer/src/optimizer/observe_worker.ts b/packages/kbn-optimizer/src/optimizer/observe_worker.ts
index bfc853e5a6b75..f5c944cefb76f 100644
--- a/packages/kbn-optimizer/src/optimizer/observe_worker.ts
+++ b/packages/kbn-optimizer/src/optimizer/observe_worker.ts
@@ -47,7 +47,7 @@ interface ProcResource extends Rx.Unsubscribable {
const isNumeric = (input: any) => String(input).match(/^[0-9]+$/);
let inspectPortCounter = 9230;
-const inspectFlagIndex = process.execArgv.findIndex(flag => flag.startsWith('--inspect'));
+const inspectFlagIndex = process.execArgv.findIndex((flag) => flag.startsWith('--inspect'));
let inspectFlag: string | undefined;
if (inspectFlagIndex !== -1) {
const argv = process.execArgv[inspectFlagIndex];
@@ -74,7 +74,7 @@ function usingWorkerProc(
) {
return Rx.using(
(): ProcResource => {
- const args = [JSON.stringify(workerConfig), JSON.stringify(bundles.map(b => b.toSpec()))];
+ const args = [JSON.stringify(workerConfig), JSON.stringify(bundles.map((b) => b.toSpec()))];
const proc = fork(require.resolve('../worker/run_worker'), args, {
stdio: ['ignore', 'pipe', 'pipe', 'ipc'],
@@ -94,7 +94,7 @@ function usingWorkerProc(
};
},
- resource => {
+ (resource) => {
const { proc } = resource as ProcResource;
return fn(proc);
}
@@ -107,7 +107,7 @@ function observeStdio$(stream: Readable, name: WorkerStdio['stream']) {
Rx.race(
Rx.fromEvent(stream, 'end'),
Rx.fromEvent(stream, 'error').pipe(
- map(error => {
+ map((error) => {
throw error;
})
)
@@ -134,7 +134,7 @@ export function observeWorker(
workerConfig: WorkerConfig,
bundles: Bundle[]
): Rx.Observable {
- return usingWorkerProc(config, workerConfig, bundles, proc => {
+ return usingWorkerProc(config, workerConfig, bundles, (proc) => {
let lastMsg: WorkerMsg;
return Rx.merge(
@@ -161,7 +161,7 @@ export function observeWorker(
Rx.race(
// throw into stream on error events
Rx.fromEvent(proc, 'error').pipe(
- map(error => {
+ map((error) => {
throw new Error(`worker failed to spawn: ${error.message}`);
})
),
diff --git a/packages/kbn-optimizer/src/optimizer/optimizer_config.ts b/packages/kbn-optimizer/src/optimizer/optimizer_config.ts
index d6336cf867470..4ed241f3b9b2e 100644
--- a/packages/kbn-optimizer/src/optimizer/optimizer_config.ts
+++ b/packages/kbn-optimizer/src/optimizer/optimizer_config.ts
@@ -106,7 +106,7 @@ export class OptimizerConfig {
...(examples ? [Path.resolve('examples'), Path.resolve('x-pack/examples')] : []),
Path.resolve(repoRoot, '../kibana-extra'),
];
- if (!pluginScanDirs.every(p => Path.isAbsolute(p))) {
+ if (!pluginScanDirs.every((p) => Path.isAbsolute(p))) {
throw new TypeError('pluginScanDirs must all be absolute paths');
}
@@ -118,7 +118,7 @@ export class OptimizerConfig {
}
const pluginPaths = options.pluginPaths || [];
- if (!pluginPaths.every(s => Path.isAbsolute(s))) {
+ if (!pluginPaths.every((s) => Path.isAbsolute(s))) {
throw new TypeError('pluginPaths must all be absolute paths');
}
diff --git a/packages/kbn-optimizer/src/optimizer/optimizer_state.ts b/packages/kbn-optimizer/src/optimizer/optimizer_state.ts
index ac2a9b8ce1f8b..1572f459e6ee5 100644
--- a/packages/kbn-optimizer/src/optimizer/optimizer_state.ts
+++ b/packages/kbn-optimizer/src/optimizer/optimizer_state.ts
@@ -80,7 +80,7 @@ function createOptimizerState(
* calculate the total state, given a set of compiler messages
*/
function getStatePhase(states: CompilerMsg[]) {
- const types = states.map(s => s.type);
+ const types = states.map((s) => s.type);
if (types.includes('running')) {
return 'running';
@@ -90,7 +90,7 @@ function getStatePhase(states: CompilerMsg[]) {
return 'issue';
}
- if (types.every(s => s === 'compiler success')) {
+ if (types.every((s) => s === 'compiler success')) {
return 'success';
}
@@ -173,7 +173,7 @@ export function createOptimizerStateSummarizer(
event.type === 'running'
) {
const compilerStates: CompilerMsg[] = [
- ...state.compilerStates.filter(c => c.bundleId !== event.bundleId),
+ ...state.compilerStates.filter((c) => c.bundleId !== event.bundleId),
event,
];
return createOptimizerState(state, {
diff --git a/packages/kbn-optimizer/src/optimizer/run_workers.ts b/packages/kbn-optimizer/src/optimizer/run_workers.ts
index e91b0d25fd72b..1f277f011004d 100644
--- a/packages/kbn-optimizer/src/optimizer/run_workers.ts
+++ b/packages/kbn-optimizer/src/optimizer/run_workers.ts
@@ -50,15 +50,15 @@ export function runWorkers(
return Rx.concat(
// first batch of bundles are based on how up-to-date the cache is
bundleCache$.pipe(
- maybeMap(event => (event.type === 'bundle not cached' ? event.bundle : undefined)),
+ maybeMap((event) => (event.type === 'bundle not cached' ? event.bundle : undefined)),
toArray()
),
// subsequent batches are defined by changeEvent$
- changeEvent$.pipe(maybeMap(c => (c.type === 'changes' ? c.bundles : undefined)))
+ changeEvent$.pipe(maybeMap((c) => (c.type === 'changes' ? c.bundles : undefined)))
).pipe(
- mergeMap(bundles =>
+ mergeMap((bundles) =>
Rx.from(assignBundlesToWorkers(bundles, config.maxWorkerCount)).pipe(
- mergeMap(assignment =>
+ mergeMap((assignment) =>
observeWorker(config, config.getWorkerConfig(optimizerCacheKey), assignment.bundles)
)
)
diff --git a/packages/kbn-optimizer/src/optimizer/watch_bundles_for_changes.ts b/packages/kbn-optimizer/src/optimizer/watch_bundles_for_changes.ts
index 9149c483786fc..fdac4e0204fbe 100644
--- a/packages/kbn-optimizer/src/optimizer/watch_bundles_for_changes.ts
+++ b/packages/kbn-optimizer/src/optimizer/watch_bundles_for_changes.ts
@@ -38,7 +38,7 @@ function recursiveGetNextChange$(
return !bundles.length
? Rx.EMPTY
: watcher.getNextChange$(bundles, startTime).pipe(
- mergeMap(event => {
+ mergeMap((event) => {
if (event.type === 'changes detected') {
return Rx.of(event);
}
@@ -48,7 +48,7 @@ function recursiveGetNextChange$(
recursiveGetNextChange$(
watcher,
- bundles.filter(b => !event.bundles.includes(b)),
+ bundles.filter((b) => !event.bundles.includes(b)),
Date.now()
)
);
@@ -74,11 +74,11 @@ export function watchBundlesForChanges$(
initialStartTime: number
) {
return bundleCacheEvent$.pipe(
- maybeMap(event => (event.type === 'bundle cached' ? event.bundle : undefined)),
+ maybeMap((event) => (event.type === 'bundle cached' ? event.bundle : undefined)),
toArray(),
- mergeMap(bundles =>
+ mergeMap((bundles) =>
bundles.length
- ? Watcher.using(watcher => recursiveGetNextChange$(watcher, bundles, initialStartTime))
+ ? Watcher.using((watcher) => recursiveGetNextChange$(watcher, bundles, initialStartTime))
: Rx.EMPTY
)
);
diff --git a/packages/kbn-optimizer/src/optimizer/watcher.ts b/packages/kbn-optimizer/src/optimizer/watcher.ts
index 343f391921383..54c548755af5c 100644
--- a/packages/kbn-optimizer/src/optimizer/watcher.ts
+++ b/packages/kbn-optimizer/src/optimizer/watcher.ts
@@ -43,7 +43,7 @@ export class Watcher {
static using(fn: (watcher: Watcher) => Rx.Observable) {
return Rx.using(
() => new Watcher(),
- resource => fn(resource as Watcher)
+ (resource) => fn(resource as Watcher)
);
}
@@ -69,14 +69,14 @@ export class Watcher {
// debounce and bufffer change events for 1 second to create
// final change notification
this.change$.pipe(
- map(event => event[0]),
+ map((event) => event[0]),
debounceTimeBuffer(1000),
map(
(changes): Changes => ({
type: 'changes',
- bundles: bundles.filter(bundle => {
+ bundles: bundles.filter((bundle) => {
const referencedFiles = bundle.cache.getReferencedFiles();
- return changes.some(change => referencedFiles?.includes(change));
+ return changes.some((change) => referencedFiles?.includes(change));
}),
})
),
diff --git a/packages/kbn-optimizer/src/report_optimizer_stats.ts b/packages/kbn-optimizer/src/report_optimizer_stats.ts
index 06161fb2567b9..5f3153bff5175 100644
--- a/packages/kbn-optimizer/src/report_optimizer_stats.ts
+++ b/packages/kbn-optimizer/src/report_optimizer_stats.ts
@@ -29,14 +29,14 @@ export function reportOptimizerStats(reporter: CiStatsReporter, config: Optimize
let lastState: OptimizerState | undefined;
return update$.pipe(
materialize(),
- mergeMap(async n => {
+ mergeMap(async (n) => {
if (n.kind === 'N' && n.value?.state) {
lastState = n.value?.state;
}
if (n.kind === 'C' && lastState) {
await reporter.metrics(
- config.bundles.map(bundle => {
+ config.bundles.map((bundle) => {
// make the cache read from the cache file since it was likely updated by the worker
bundle.cache.refresh();
diff --git a/packages/kbn-optimizer/src/worker/run_compilers.ts b/packages/kbn-optimizer/src/worker/run_compilers.ts
index 0dfce4b5addba..4ab289d031d72 100644
--- a/packages/kbn-optimizer/src/worker/run_compilers.ts
+++ b/packages/kbn-optimizer/src/worker/run_compilers.ts
@@ -65,8 +65,8 @@ const observeCompiler = (
* Called by webpack as a single run compilation is starting
*/
const started$ = Rx.merge(
- Rx.fromEventPattern(cb => beforeRun.tap(PLUGIN_NAME, cb)),
- Rx.fromEventPattern(cb => watchRun.tap(PLUGIN_NAME, cb))
+ Rx.fromEventPattern((cb) => beforeRun.tap(PLUGIN_NAME, cb)),
+ Rx.fromEventPattern((cb) => watchRun.tap(PLUGIN_NAME, cb))
).pipe(mapTo(compilerMsgs.running()));
/**
@@ -74,8 +74,8 @@ const observeCompiler = (
* needAdditionalPass property is set then another compilation
* is about to be started, so we shouldn't send complete quite yet
*/
- const complete$ = Rx.fromEventPattern(cb => done.tap(PLUGIN_NAME, cb)).pipe(
- maybeMap(stats => {
+ const complete$ = Rx.fromEventPattern((cb) => done.tap(PLUGIN_NAME, cb)).pipe(
+ maybeMap((stats) => {
// @ts-ignore not included in types, but it is real https://github.com/webpack/webpack/blob/ab4fa8ddb3f433d286653cd6af7e3aad51168649/lib/Watching.js#L58
if (stats.compilation.needAdditionalPass) {
return undefined;
@@ -134,7 +134,7 @@ const observeCompiler = (
);
}
- const files = Array.from(referencedFiles).sort(ascending(p => p));
+ const files = Array.from(referencedFiles).sort(ascending((p) => p));
const mtimes = new Map(
files.map((path): [string, number | undefined] => {
try {
@@ -167,8 +167,10 @@ const observeCompiler = (
* prevets assets from being emitted, and prevents watching
* from continuing.
*/
- const error$ = Rx.fromEventPattern(cb => compiler.hooks.failed.tap(PLUGIN_NAME, cb)).pipe(
- map(error => {
+ const error$ = Rx.fromEventPattern((cb) =>
+ compiler.hooks.failed.tap(PLUGIN_NAME, cb)
+ ).pipe(
+ map((error) => {
throw compilerMsgs.error(error);
})
);
@@ -184,7 +186,7 @@ const observeCompiler = (
* Run webpack compilers
*/
export const runCompilers = (workerConfig: WorkerConfig, bundles: Bundle[]) => {
- const multiCompiler = webpack(bundles.map(def => getWebpackConfig(def, workerConfig)));
+ const multiCompiler = webpack(bundles.map((def) => getWebpackConfig(def, workerConfig)));
return Rx.merge(
/**
diff --git a/packages/kbn-optimizer/src/worker/run_worker.ts b/packages/kbn-optimizer/src/worker/run_worker.ts
index cbec4c3f44c7d..f83c69477f471 100644
--- a/packages/kbn-optimizer/src/worker/run_worker.ts
+++ b/packages/kbn-optimizer/src/worker/run_worker.ts
@@ -82,10 +82,10 @@ Rx.defer(() => {
return runCompilers(workerConfig, bundles);
}).subscribe(
- msg => {
+ (msg) => {
send(msg);
},
- error => {
+ (error) => {
if (isWorkerMsg(error)) {
send(error);
} else {
diff --git a/packages/kbn-optimizer/src/worker/theme_loader.ts b/packages/kbn-optimizer/src/worker/theme_loader.ts
index 6d6686a5bde1b..5d02462ef1bb8 100644
--- a/packages/kbn-optimizer/src/worker/theme_loader.ts
+++ b/packages/kbn-optimizer/src/worker/theme_loader.ts
@@ -21,7 +21,7 @@ import webpack from 'webpack';
import { stringifyRequest } from 'loader-utils';
// eslint-disable-next-line import/no-default-export
-export default function(this: webpack.loader.LoaderContext) {
+export default function (this: webpack.loader.LoaderContext) {
return `
if (window.__kbnDarkMode__) {
require(${stringifyRequest(this, `${this.resourcePath}?dark`)})
diff --git a/packages/kbn-optimizer/src/worker/webpack.config.ts b/packages/kbn-optimizer/src/worker/webpack.config.ts
index 49bcc6e7e704c..0c9a5b0a75687 100644
--- a/packages/kbn-optimizer/src/worker/webpack.config.ts
+++ b/packages/kbn-optimizer/src/worker/webpack.config.ts
@@ -64,7 +64,7 @@ function dynamicExternals(bundle: Bundle, context: string, request: string) {
// ignore requests that don't include a /{dirname}/public for one of our
// "static" bundles as a cheap way to avoid doing path resolution
// for paths that couldn't possibly resolve to what we're looking for
- const reqToStaticBundle = STATIC_BUNDLE_PLUGINS.some(p =>
+ const reqToStaticBundle = STATIC_BUNDLE_PLUGINS.some((p) =>
request.includes(`/${p.dirname}/public`)
);
if (!reqToStaticBundle) {
@@ -100,7 +100,7 @@ export function getWebpackConfig(bundle: Bundle, worker: WorkerConfig) {
output: {
path: bundle.outputDir,
filename: `[name].${bundle.type}.js`,
- devtoolModuleFilenameTemplate: info =>
+ devtoolModuleFilenameTemplate: (info) =>
`/${bundle.type}:${bundle.id}/${Path.relative(
bundle.sourceRoot,
info.absoluteResourcePath
@@ -121,7 +121,7 @@ export function getWebpackConfig(bundle: Bundle, worker: WorkerConfig) {
externals: [
UiSharedDeps.externals,
- function(context, request, cb) {
+ function (context, request, cb) {
try {
cb(undefined, dynamicExternals(bundle, context, request));
} catch (error) {
diff --git a/packages/kbn-plugin-generator/index.js b/packages/kbn-plugin-generator/index.js
index 5f20569886d88..e61037e42d63f 100644
--- a/packages/kbn-plugin-generator/index.js
+++ b/packages/kbn-plugin-generator/index.js
@@ -61,7 +61,7 @@ exports.run = function run(argv) {
name,
targetPath,
},
- }).catch(error => {
+ }).catch((error) => {
console.error(chalk`{red fatal error}!`);
console.error(error.stack);
process.exit(1);
diff --git a/packages/kbn-plugin-generator/sao_template/sao.js b/packages/kbn-plugin-generator/sao_template/sao.js
index 9073ce865a963..7fc29b1e6bd0a 100755
--- a/packages/kbn-plugin-generator/sao_template/sao.js
+++ b/packages/kbn-plugin-generator/sao_template/sao.js
@@ -59,7 +59,7 @@ async function eslintPlugin(dir) {
}
}
-module.exports = function({ name, targetPath }) {
+module.exports = function ({ name, targetPath }) {
return {
prompts: {
customPath: {
@@ -99,7 +99,7 @@ module.exports = function({ name, targetPath }) {
},
generateTranslations: {
type: 'confirm',
- when: answers => {
+ when: (answers) => {
// only for 3rd party plugins
return !answers.customPath && answers.generateApp;
},
@@ -112,7 +112,7 @@ module.exports = function({ name, targetPath }) {
generateScss: {
type: 'confirm',
message: 'Should SCSS be used?',
- when: answers => answers.generateApp,
+ when: (answers) => answers.generateApp,
default: true,
},
generateEslint: {
@@ -135,7 +135,7 @@ module.exports = function({ name, targetPath }) {
'eslintrc.js': '.eslintrc.js',
'i18nrc.json': '.i18nrc.json',
},
- data: answers => {
+ data: (answers) => {
const pathToPlugin = answers.customPath
? resolve(answers.customPath, camelCase(name), 'public')
: resolve(targetPath, 'public');
diff --git a/packages/kbn-plugin-helpers/src/cli.ts b/packages/kbn-plugin-helpers/src/cli.ts
index ee1bca0fe3ac2..b894f854a484f 100644
--- a/packages/kbn-plugin-helpers/src/cli.ts
+++ b/packages/kbn-plugin-helpers/src/cli.ts
@@ -35,7 +35,7 @@ enableCollectingUnknownOptions(
.description('Start kibana and have it include this plugin')
.on('--help', docs('start'))
.action(
- createCommanderAction('start', command => ({
+ createCommanderAction('start', (command) => ({
flags: command.unknownOptions,
}))
)
@@ -75,7 +75,7 @@ program
.option('-p, --plugins ', "Manually specify which plugins' test bundles to run")
.on('--help', docs('test/karma'))
.action(
- createCommanderAction('testKarma', command => ({
+ createCommanderAction('testKarma', (command) => ({
dev: Boolean(command.dev),
plugins: command.plugins,
}))
diff --git a/packages/kbn-plugin-helpers/src/lib/docs.ts b/packages/kbn-plugin-helpers/src/lib/docs.ts
index 68c095209e817..fb05fd0c5c2ce 100644
--- a/packages/kbn-plugin-helpers/src/lib/docs.ts
+++ b/packages/kbn-plugin-helpers/src/lib/docs.ts
@@ -28,7 +28,7 @@ function indent(txt: string, n: number) {
export function docs(name: string) {
const md = readFileSync(resolve(__dirname, '../../src/tasks', name, 'README.md'), 'utf8');
- return function() {
+ return function () {
/* eslint-disable-next-line no-console */
console.log(`\n Docs:\n\n${indent(md, 4)}\n\n`);
};
diff --git a/packages/kbn-plugin-helpers/src/lib/enable_collecting_unknown_options.ts b/packages/kbn-plugin-helpers/src/lib/enable_collecting_unknown_options.ts
index 77fa7f2fcae84..0d692aed06305 100644
--- a/packages/kbn-plugin-helpers/src/lib/enable_collecting_unknown_options.ts
+++ b/packages/kbn-plugin-helpers/src/lib/enable_collecting_unknown_options.ts
@@ -22,7 +22,7 @@ import { Command } from 'commander';
export function enableCollectingUnknownOptions(command: Command) {
const origParse = command.parseOptions;
command.allowUnknownOption();
- command.parseOptions = function(argv: string[]) {
+ command.parseOptions = function (argv: string[]) {
const opts = origParse.call(this, argv);
this.unknownOptions = opts.unknown;
return opts;
diff --git a/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/__fixtures__/build_action_test_plugin/index.js b/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/__fixtures__/build_action_test_plugin/index.js
index c2d2ade568761..052d224b662e2 100644
--- a/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/__fixtures__/build_action_test_plugin/index.js
+++ b/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/__fixtures__/build_action_test_plugin/index.js
@@ -17,7 +17,7 @@
* under the License.
*/
-module.exports = kibana =>
+module.exports = (kibana) =>
new kibana.Plugin({
uiExports: {
hacks: ['plugins/test_plugin/hack.js'],
diff --git a/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/__fixtures__/create_build_test_plugin/index.js b/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/__fixtures__/create_build_test_plugin/index.js
index c2d2ade568761..052d224b662e2 100644
--- a/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/__fixtures__/create_build_test_plugin/index.js
+++ b/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/__fixtures__/create_build_test_plugin/index.js
@@ -17,7 +17,7 @@
* under the License.
*/
-module.exports = kibana =>
+module.exports = (kibana) =>
new kibana.Plugin({
uiExports: {
hacks: ['plugins/test_plugin/hack.js'],
diff --git a/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/__fixtures__/create_package_test_plugin/index.js b/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/__fixtures__/create_package_test_plugin/index.js
index c2d2ade568761..052d224b662e2 100644
--- a/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/__fixtures__/create_package_test_plugin/index.js
+++ b/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/__fixtures__/create_package_test_plugin/index.js
@@ -17,7 +17,7 @@
* under the License.
*/
-module.exports = kibana =>
+module.exports = (kibana) =>
new kibana.Plugin({
uiExports: {
hacks: ['plugins/test_plugin/hack.js'],
diff --git a/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/build_action.test.js b/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/build_action.test.js
index f596576fe7466..d9f20129e85f9 100644
--- a/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/build_action.test.js
+++ b/packages/kbn-plugin-helpers/src/tasks/build/integration_tests/build_action.test.js
@@ -91,7 +91,7 @@ describe('calling create_build', () => {
expect(mockBuild.mock.calls).toHaveLength(1);
const { files } = nameArgs(mockBuild.mock.calls[0]);
- plugin.buildSourcePatterns.forEach(file => expect(files).toContain(file));
+ plugin.buildSourcePatterns.forEach((file) => expect(files).toContain(file));
});
it('uses only files passed in', async () => {
@@ -104,7 +104,7 @@ describe('calling create_build', () => {
expect(mockBuild.mock.calls).toHaveLength(1);
const { files } = nameArgs(mockBuild.mock.calls[0]);
- options.files.forEach(file => expect(files).toContain(file));
+ options.files.forEach((file) => expect(files).toContain(file));
});
it('rejects returned promise when build fails', async () => {
diff --git a/packages/kbn-plugin-helpers/src/tasks/build/rewrite_package_json.ts b/packages/kbn-plugin-helpers/src/tasks/build/rewrite_package_json.ts
index 255b2e6ef9992..aaecd11ad82af 100644
--- a/packages/kbn-plugin-helpers/src/tasks/build/rewrite_package_json.ts
+++ b/packages/kbn-plugin-helpers/src/tasks/build/rewrite_package_json.ts
@@ -26,7 +26,7 @@ export function rewritePackageJson(
buildVersion: string,
kibanaVersion: string
) {
- return Through2Map.obj(function(file: File) {
+ return Through2Map.obj(function (file: File) {
if (file.basename === 'package.json' && file.dirname === buildSource) {
const pkg = JSON.parse(file.contents!.toString('utf8'));
diff --git a/packages/kbn-plugin-helpers/src/tasks/start/start_task.ts b/packages/kbn-plugin-helpers/src/tasks/start/start_task.ts
index 75affb6da8c6f..5018fd7598180 100644
--- a/packages/kbn-plugin-helpers/src/tasks/start/start_task.ts
+++ b/packages/kbn-plugin-helpers/src/tasks/start/start_task.ts
@@ -35,7 +35,7 @@ export function startTask({ plugin, options }: TaskContext) {
let args = nodeOptions.concat([script, '--dev', '--plugin-path', plugin.root]);
if (Array.isArray(plugin.includePlugins)) {
- plugin.includePlugins.forEach(path => {
+ plugin.includePlugins.forEach((path) => {
args = args.concat(['--plugin-path', path]);
});
}
diff --git a/packages/kbn-pm/src/cli.ts b/packages/kbn-pm/src/cli.ts
index c2f49356957f7..94f348e1835ed 100644
--- a/packages/kbn-pm/src/cli.ts
+++ b/packages/kbn-pm/src/cli.ts
@@ -28,8 +28,8 @@ import { log } from './utils/log';
function help() {
const availableCommands = Object.keys(commands)
- .map(commandName => commands[commandName])
- .map(command => `${command.name} - ${command.description}`);
+ .map((commandName) => commands[commandName])
+ .map((command) => `${command.name} - ${command.description}`);
log.write(dedent`
usage: kbn []
diff --git a/packages/kbn-pm/src/commands/bootstrap.ts b/packages/kbn-pm/src/commands/bootstrap.ts
index d0aa220f25f66..6146aeab21db4 100644
--- a/packages/kbn-pm/src/commands/bootstrap.ts
+++ b/packages/kbn-pm/src/commands/bootstrap.ts
@@ -69,7 +69,7 @@ export const BootstrapCommand: ICommand = {
log.write(chalk.bold('\nLinking executables completed, running `kbn:bootstrap` scripts\n'));
const checksums = options.cache ? await getAllChecksums(kbn, log) : false;
- await parallelizeBatches(batchedProjects, async project => {
+ await parallelizeBatches(batchedProjects, async (project) => {
if (project.hasScript('kbn:bootstrap')) {
const cacheFile = new BootstrapCacheFile(kbn, project, checksums);
if (cacheFile.isValid()) {
diff --git a/packages/kbn-pm/src/commands/run.ts b/packages/kbn-pm/src/commands/run.ts
index 2f4d9e8453d09..989bfef19c380 100644
--- a/packages/kbn-pm/src/commands/run.ts
+++ b/packages/kbn-pm/src/commands/run.ts
@@ -43,7 +43,7 @@ export const RunCommand: ICommand = {
chalk.bold(`\nRunning script [${chalk.green(scriptName)}] in batched topological order\n`)
);
- await parallelizeBatches(batchedProjects, async pkg => {
+ await parallelizeBatches(batchedProjects, async (pkg) => {
if (pkg.hasScript(scriptName)) {
await pkg.runScriptStreaming(scriptName, scriptArgs);
}
diff --git a/packages/kbn-pm/src/commands/watch.ts b/packages/kbn-pm/src/commands/watch.ts
index b5c493372b04f..2e18b02a1c860 100644
--- a/packages/kbn-pm/src/commands/watch.ts
+++ b/packages/kbn-pm/src/commands/watch.ts
@@ -83,7 +83,7 @@ export const WatchCommand: ICommand = {
batchedProjects.push([projects.get(kibanaProjectName)!]);
}
- await parallelizeBatches(batchedProjects, async pkg => {
+ await parallelizeBatches(batchedProjects, async (pkg) => {
const completionHint = await waitUntilWatchIsReady(
pkg.runScriptStreaming(watchScriptName).stdout
);
diff --git a/packages/kbn-pm/src/production/build_production_projects.ts b/packages/kbn-pm/src/production/build_production_projects.ts
index 0d4be8b016077..689bf51cd7bdf 100644
--- a/packages/kbn-pm/src/production/build_production_projects.ts
+++ b/packages/kbn-pm/src/production/build_production_projects.ts
@@ -46,7 +46,7 @@ export async function buildProductionProjects({
const projectGraph = buildProjectGraph(projects);
const batchedProjects = topologicallyBatchProjects(projects, projectGraph);
- const projectNames = [...projects.values()].map(project => project.name);
+ const projectNames = [...projects.values()].map((project) => project.name);
log.write(`Preparing production build for [${projectNames.join(', ')}]`);
for (const batch of batchedProjects) {
@@ -82,7 +82,7 @@ async function getProductionProjects(rootPath: string, onlyOSS?: boolean) {
productionProjects.delete('kibana');
if (onlyOSS) {
- productionProjects.forEach(project => {
+ productionProjects.forEach((project) => {
if (project.getBuildConfig().oss === false) {
productionProjects.delete(project.json.name);
}
diff --git a/packages/kbn-pm/src/run.ts b/packages/kbn-pm/src/run.ts
index 44bf5a91ee1b1..c3879c701d785 100644
--- a/packages/kbn-pm/src/run.ts
+++ b/packages/kbn-pm/src/run.ts
@@ -71,7 +71,7 @@ export async function runCommand(command: ICommand, config: Omit 0) {
- const metaOutput = keys.map(key => {
+ const metaOutput = keys.map((key) => {
const value = e.meta[key];
return `${key}: ${value}`;
});
diff --git a/packages/kbn-pm/src/utils/bootstrap_cache_file.ts b/packages/kbn-pm/src/utils/bootstrap_cache_file.ts
index 7d87179f34605..282483e10ccf2 100644
--- a/packages/kbn-pm/src/utils/bootstrap_cache_file.ts
+++ b/packages/kbn-pm/src/utils/bootstrap_cache_file.ts
@@ -39,7 +39,7 @@ export class BootstrapCacheFile {
// sort deps by name so that the key is stable
.sort((a, b) => a.name.localeCompare(b.name))
// get the cacheKey for each project, return undefined if the cache key couldn't be determined
- .map(p => {
+ .map((p) => {
const cacheKey = checksums.get(p.name);
if (cacheKey) {
return `${p.name}:${cacheKey}`;
@@ -47,7 +47,7 @@ export class BootstrapCacheFile {
});
// if any of the relevant cache keys are undefined then the projectCacheKey must be too
- this.expectedValue = projectAndDepCacheKeys.some(k => !k)
+ this.expectedValue = projectAndDepCacheKeys.some((k) => !k)
? undefined
: [
`# this is only human readable for debugging, please don't try to parse this`,
diff --git a/packages/kbn-pm/src/utils/fs.ts b/packages/kbn-pm/src/utils/fs.ts
index 9484c3a61e608..44fc59bdeba96 100644
--- a/packages/kbn-pm/src/utils/fs.ts
+++ b/packages/kbn-pm/src/utils/fs.ts
@@ -49,7 +49,7 @@ async function statTest(path: string, block: (stats: fs.Stats) => boolean) {
* @param path
*/
export async function isSymlink(path: string) {
- return await statTest(path, stats => stats.isSymbolicLink());
+ return await statTest(path, (stats) => stats.isSymbolicLink());
}
/**
@@ -57,7 +57,7 @@ export async function isSymlink(path: string) {
* @param path
*/
export async function isDirectory(path: string) {
- return await statTest(path, stats => stats.isDirectory());
+ return await statTest(path, (stats) => stats.isDirectory());
}
/**
@@ -65,7 +65,7 @@ export async function isDirectory(path: string) {
* @param path
*/
export async function isFile(path: string) {
- return await statTest(path, stats => stats.isFile());
+ return await statTest(path, (stats) => stats.isFile());
}
/**
diff --git a/packages/kbn-pm/src/utils/kibana.ts b/packages/kbn-pm/src/utils/kibana.ts
index 58af98b2a92db..7fca4bd01822b 100644
--- a/packages/kbn-pm/src/utils/kibana.ts
+++ b/packages/kbn-pm/src/utils/kibana.ts
@@ -103,11 +103,11 @@ export class Kibana {
const allProjects = this.getAllProjects();
const filteredProjects: ProjectMap = new Map();
- const pkgJsonPaths = Array.from(allProjects.values()).map(p => p.packageJsonLocation);
+ const pkgJsonPaths = Array.from(allProjects.values()).map((p) => p.packageJsonLocation);
const filteredPkgJsonGlobs = getProjectPaths({
...options,
rootPath: this.kibanaProject.path,
- }).map(g => Path.resolve(g, 'package.json'));
+ }).map((g) => Path.resolve(g, 'package.json'));
const matchingPkgJsonPaths = multimatch(pkgJsonPaths, filteredPkgJsonGlobs);
for (const project of allProjects.values()) {
diff --git a/packages/kbn-pm/src/utils/link_project_executables.test.ts b/packages/kbn-pm/src/utils/link_project_executables.test.ts
index a6334ec850860..a19e1fd66f334 100644
--- a/packages/kbn-pm/src/utils/link_project_executables.test.ts
+++ b/packages/kbn-pm/src/utils/link_project_executables.test.ts
@@ -70,7 +70,7 @@ const projectGraph = buildProjectGraph(projectsByName);
function getFsMockCalls() {
const fs = require('./fs');
const fsMockCalls: { [key: string]: any[][] } = {};
- Object.keys(fs).map(key => {
+ Object.keys(fs).map((key) => {
if (jest.isMockFunction(fs[key])) {
fsMockCalls[key] = fs[key].mock.calls;
}
diff --git a/packages/kbn-pm/src/utils/link_project_executables.ts b/packages/kbn-pm/src/utils/link_project_executables.ts
index 25fb11f17f782..b403dfb2ecf2e 100644
--- a/packages/kbn-pm/src/utils/link_project_executables.ts
+++ b/packages/kbn-pm/src/utils/link_project_executables.ts
@@ -55,9 +55,7 @@ export async function linkProjectExecutables(
const dest = resolve(binsDir, name);
// Get relative project path with normalized path separators.
- const projectRelativePath = relative(project.path, srcPath)
- .split(sep)
- .join('/');
+ const projectRelativePath = relative(project.path, srcPath).split(sep).join('/');
log.write(chalk`{dim [${project.name}]} ${name} -> {dim ${projectRelativePath}}`);
diff --git a/packages/kbn-pm/src/utils/parallelize.test.ts b/packages/kbn-pm/src/utils/parallelize.test.ts
index fa23ecbb8c1e7..e85b40e0c67d8 100644
--- a/packages/kbn-pm/src/utils/parallelize.test.ts
+++ b/packages/kbn-pm/src/utils/parallelize.test.ts
@@ -22,7 +22,7 @@ import { parallelizeBatches } from './parallelize';
// As promises resolve async, we use this helper to wait for all promises that
// have been resolved to complete (aka call `then`).
const tick = () =>
- new Promise(resolve => {
+ new Promise((resolve) => {
setTimeout(resolve, 0);
});
@@ -32,7 +32,7 @@ test('parallelizes batches', async () => {
const baz = createPromiseWithResolve();
const batches = [[foo, bar], [baz]];
- const parallelize = parallelizeBatches(batches, async obj => {
+ const parallelize = parallelizeBatches(batches, async (obj) => {
obj.called = true;
await obj.promise;
});
@@ -82,7 +82,7 @@ test('schedules at most 4 calls at the same time (concurrency)', async () => {
const foobar = createPromiseWithResolve();
const batches = [[foo, bar, baz, quux, foobar]];
- const parallelize = parallelizeBatches(batches, async obj => {
+ const parallelize = parallelizeBatches(batches, async (obj) => {
obj.called = true;
await obj.promise;
});
@@ -113,7 +113,7 @@ test('rejects if any promise rejects', async () => {
const baz = createPromiseWithResolve();
const batches = [[foo, bar], [baz]];
- const parallelize = parallelizeBatches(batches, async obj => {
+ const parallelize = parallelizeBatches(batches, async (obj) => {
await obj.promise;
});
diff --git a/packages/kbn-pm/src/utils/project.ts b/packages/kbn-pm/src/utils/project.ts
index 7b0bbed5c3f46..91a3a5365b60e 100644
--- a/packages/kbn-pm/src/utils/project.ts
+++ b/packages/kbn-pm/src/utils/project.ts
@@ -229,10 +229,10 @@ export class Project {
// check for any cross-project dependency
for (const name of Object.keys(workspacesInfo)) {
const workspace = workspacesInfo[name];
- workspace.workspaceDependencies.forEach(w => unusedWorkspaces.delete(w));
+ workspace.workspaceDependencies.forEach((w) => unusedWorkspaces.delete(w));
}
- unusedWorkspaces.forEach(name => {
+ unusedWorkspaces.forEach((name) => {
const { dependencies, devDependencies } = this.json;
const nodeModulesPath = Path.resolve(this.nodeModulesLocation, name);
const isDependency = dependencies && dependencies.hasOwnProperty(name);
diff --git a/packages/kbn-pm/src/utils/project_checksums.ts b/packages/kbn-pm/src/utils/project_checksums.ts
index 7d939e715d411..46dde1b32c158 100644
--- a/packages/kbn-pm/src/utils/project_checksums.ts
+++ b/packages/kbn-pm/src/utils/project_checksums.ts
@@ -49,8 +49,8 @@ async function getChangesForProjects(projects: ProjectMap, kbn: Kibana, log: Too
'--exclude-standard',
'--',
...Array.from(projects.values())
- .filter(p => kbn.isPartOfRepo(p))
- .map(p => p.path),
+ .filter((p) => kbn.isPartOfRepo(p))
+ .map((p) => p.path),
],
{
cwd: kbn.getAbsolute(),
@@ -265,7 +265,7 @@ export async function getAllChecksums(kbn: Kibana, log: ToolingLog) {
const cacheKeys: ChecksumMap = new Map();
await Promise.all(
- Array.from(projects.values()).map(async project => {
+ Array.from(projects.values()).map(async (project) => {
cacheKeys.set(
project.name,
await getChecksum(project, changesByProject.get(project), yarnLock, kbn, log)
diff --git a/packages/kbn-pm/src/utils/projects.test.ts b/packages/kbn-pm/src/utils/projects.test.ts
index ba093b9d5eba1..068c72286872a 100644
--- a/packages/kbn-pm/src/utils/projects.test.ts
+++ b/packages/kbn-pm/src/utils/projects.test.ts
@@ -208,7 +208,7 @@ describe('#topologicallyBatchProjects', () => {
test('batches projects topologically based on their project dependencies', async () => {
const batches = topologicallyBatchProjects(projects, graph);
- const expectedBatches = batches.map(batch => batch.map(project => project.name));
+ const expectedBatches = batches.map((batch) => batch.map((project) => project.name));
expect(expectedBatches).toMatchSnapshot();
});
@@ -219,7 +219,7 @@ describe('#topologicallyBatchProjects', () => {
const batches = topologicallyBatchProjects(projects, graph);
- const expectedBatches = batches.map(batch => batch.map(project => project.name));
+ const expectedBatches = batches.map((batch) => batch.map((project) => project.name));
expect(expectedBatches).toMatchSnapshot();
});
@@ -228,7 +228,7 @@ describe('#topologicallyBatchProjects', () => {
test('batches projects topologically based on their project dependencies and workspaces', async () => {
const batches = topologicallyBatchProjects(projects, graph, { batchByWorkspace: true });
- const expectedBatches = batches.map(batch => batch.map(project => project.name));
+ const expectedBatches = batches.map((batch) => batch.map((project) => project.name));
expect(expectedBatches).toEqual([['kibana'], ['bar', 'foo'], ['baz', 'zorge'], ['quux']]);
});
diff --git a/packages/kbn-pm/src/utils/projects.ts b/packages/kbn-pm/src/utils/projects.ts
index a6f174b1fc5a1..1c3bf0fa3091a 100644
--- a/packages/kbn-pm/src/utils/projects.ts
+++ b/packages/kbn-pm/src/utils/projects.ts
@@ -137,7 +137,9 @@ export function topologicallyBatchProjects(
const batches = [];
if (batchByWorkspace) {
- const workspaceRootProject = Array.from(projectsToBatch.values()).find(p => p.isWorkspaceRoot);
+ const workspaceRootProject = Array.from(projectsToBatch.values()).find(
+ (p) => p.isWorkspaceRoot
+ );
if (!workspaceRootProject) {
throw new CliError(`There was no yarn workspace root found.`);
@@ -167,7 +169,7 @@ export function topologicallyBatchProjects(
const batch = [];
for (const projectName of projectsLeftToBatch) {
const projectDeps = projectGraph.get(projectName)!;
- const needsDependenciesBatched = projectDeps.some(dep => projectsLeftToBatch.has(dep.name));
+ const needsDependenciesBatched = projectDeps.some((dep) => projectsLeftToBatch.has(dep.name));
if (!needsDependenciesBatched) {
batch.push(projectsToBatch.get(projectName)!);
@@ -188,7 +190,7 @@ export function topologicallyBatchProjects(
batches.push(batch);
- batch.forEach(project => projectsLeftToBatch.delete(project.name));
+ batch.forEach((project) => projectsLeftToBatch.delete(project.name));
}
return batches;
@@ -211,7 +213,7 @@ export function includeTransitiveProjects(
? project.productionDependencies
: project.allDependencies;
- Object.keys(dependencies).forEach(dep => {
+ Object.keys(dependencies).forEach((dep) => {
if (allProjects.has(dep)) {
toProcess.push(allProjects.get(dep)!);
}
diff --git a/packages/kbn-pm/src/utils/watch.ts b/packages/kbn-pm/src/utils/watch.ts
index 0ec8b50d83905..1998c5199fb73 100644
--- a/packages/kbn-pm/src/utils/watch.ts
+++ b/packages/kbn-pm/src/utils/watch.ts
@@ -56,20 +56,20 @@ function getWatchHandlers(
}: IWatchOptions
) {
const typescriptHandler = buildOutput$.pipe(
- first(data => data.includes('$ tsc')),
+ first((data) => data.includes('$ tsc')),
map(() =>
buildOutput$.pipe(
- first(data => data.includes('Compilation complete.')),
+ first((data) => data.includes('Compilation complete.')),
mapTo('tsc')
)
)
);
const webpackHandler = buildOutput$.pipe(
- first(data => data.includes('$ webpack')),
+ first((data) => data.includes('$ webpack')),
map(() =>
buildOutput$.pipe(
- first(data => data.includes('Chunk Names')),
+ first((data) => data.includes('Chunk Names')),
mapTo('webpack')
)
)
@@ -100,7 +100,7 @@ export function waitUntilWatchIsReady(stream: NodeJS.EventEmitter, opts: IWatchO
return Rx.race(getWatchHandlers(buildOutput$, opts))
.pipe(
- mergeMap(whenReady => whenReady),
+ mergeMap((whenReady) => whenReady),
finalize(() => {
stream.removeListener('data', onDataListener);
stream.removeListener('end', onEndListener);
diff --git a/packages/kbn-pm/src/utils/workspaces.ts b/packages/kbn-pm/src/utils/workspaces.ts
index 22fa8636aea90..830a713e84ad4 100644
--- a/packages/kbn-pm/src/utils/workspaces.ts
+++ b/packages/kbn-pm/src/utils/workspaces.ts
@@ -48,7 +48,7 @@ export async function workspacePackagePaths(rootPath: string): Promise
for (const pattern of workspacesPathsPatterns) {
if (pattern.startsWith('!')) {
const pathToRemove = path.join(rootPath, pattern.slice(1), 'package.json');
- workspaceProjectsPaths = workspaceProjectsPaths.filter(p => p !== pathToRemove);
+ workspaceProjectsPaths = workspaceProjectsPaths.filter((p) => p !== pathToRemove);
}
}
diff --git a/packages/kbn-spec-to-console/bin/spec_to_console.js b/packages/kbn-spec-to-console/bin/spec_to_console.js
index 20b42c67f3b89..432890a9cb903 100644
--- a/packages/kbn-spec-to-console/bin/spec_to_console.js
+++ b/packages/kbn-spec-to-console/bin/spec_to_console.js
@@ -46,7 +46,7 @@ console.log();
console.log(files);
console.log();
-files.forEach(file => {
+files.forEach((file) => {
const spec = JSON.parse(fs.readFileSync(file));
const convertedSpec = convert(spec);
if (!Object.keys(convertedSpec).length) {
diff --git a/packages/kbn-spec-to-console/lib/convert.js b/packages/kbn-spec-to-console/lib/convert.js
index 9648ef0b85a4f..bd0dbb429cff3 100644
--- a/packages/kbn-spec-to-console/lib/convert.js
+++ b/packages/kbn-spec-to-console/lib/convert.js
@@ -22,7 +22,7 @@ const convertMethods = require('./convert/methods');
const convertPaths = require('./convert/paths');
const convertParts = require('./convert/parts');
-module.exports = spec => {
+module.exports = (spec) => {
const result = {};
/**
* TODO:
@@ -34,7 +34,7 @@ module.exports = spec => {
* from being used in autocompletion. It would be really nice if we could use this information
* instead of just not including it.
*/
- Object.keys(spec).forEach(api => {
+ Object.keys(spec).forEach((api) => {
const source = spec[api];
if (!source.url) {
@@ -42,7 +42,7 @@ module.exports = spec => {
}
if (source.url.path) {
- if (source.url.paths.every(path => Boolean(path.deprecated))) {
+ if (source.url.paths.every((path) => Boolean(path.deprecated))) {
return;
}
}
@@ -61,10 +61,10 @@ module.exports = spec => {
if (source.url.paths) {
// We filter out all deprecated url patterns here.
- const paths = source.url.paths.filter(path => !path.deprecated);
+ const paths = source.url.paths.filter((path) => !path.deprecated);
patterns = convertPaths(paths);
- paths.forEach(pathsObject => {
- pathsObject.methods.forEach(method => methodSet.add(method));
+ paths.forEach((pathsObject) => {
+ pathsObject.methods.forEach((method) => methodSet.add(method));
if (pathsObject.parts) {
for (const partName of Object.keys(pathsObject.parts)) {
urlComponents[partName] = pathsObject.parts[partName];
@@ -79,7 +79,7 @@ module.exports = spec => {
if (Object.keys(urlComponents).length) {
const components = convertParts(urlComponents);
const hasComponents =
- Object.keys(components).filter(c => {
+ Object.keys(components).filter((c) => {
return Boolean(components[c]);
}).length > 0;
if (hasComponents) {
diff --git a/packages/kbn-spec-to-console/lib/convert/methods.js b/packages/kbn-spec-to-console/lib/convert/methods.js
index b4ab8f467ae1f..89d193dd38071 100644
--- a/packages/kbn-spec-to-console/lib/convert/methods.js
+++ b/packages/kbn-spec-to-console/lib/convert/methods.js
@@ -17,6 +17,6 @@
* under the License.
*/
-module.exports = methods => {
+module.exports = (methods) => {
return methods;
};
diff --git a/packages/kbn-spec-to-console/lib/convert/params.js b/packages/kbn-spec-to-console/lib/convert/params.js
index 0d1747ae4f685..00169b12322ed 100644
--- a/packages/kbn-spec-to-console/lib/convert/params.js
+++ b/packages/kbn-spec-to-console/lib/convert/params.js
@@ -17,9 +17,9 @@
* under the License.
*/
-module.exports = params => {
+module.exports = (params) => {
const result = {};
- Object.keys(params).forEach(param => {
+ Object.keys(params).forEach((param) => {
const { type, description = '', options = [] } = params[param];
const [, defaultValue] = description.match(/\(default: (.*)\)/) || [];
switch (type) {
@@ -35,7 +35,7 @@ module.exports = params => {
case 'enum':
// This is to clean up entries like: "d (Days)". We only want the "d" part.
if (param === 'time') {
- result[param] = options.map(option => option.split(' ')[0]);
+ result[param] = options.map((option) => option.split(' ')[0]);
} else {
result[param] = options;
}
diff --git a/packages/kbn-spec-to-console/lib/convert/parts.js b/packages/kbn-spec-to-console/lib/convert/parts.js
index 040d04a0c1dc4..96cd3c94e796d 100644
--- a/packages/kbn-spec-to-console/lib/convert/parts.js
+++ b/packages/kbn-spec-to-console/lib/convert/parts.js
@@ -19,9 +19,9 @@
const replacePattern = require('../replace_pattern');
-module.exports = parts => {
+module.exports = (parts) => {
const result = {};
- Object.keys(parts).forEach(part => {
+ Object.keys(parts).forEach((part) => {
const key = replacePattern(part, { exact: true });
const options = parts[part].options;
if (options && options.length) {
diff --git a/packages/kbn-spec-to-console/lib/convert/paths.js b/packages/kbn-spec-to-console/lib/convert/paths.js
index 6c65bf48b9b06..af8897c2782f2 100644
--- a/packages/kbn-spec-to-console/lib/convert/paths.js
+++ b/packages/kbn-spec-to-console/lib/convert/paths.js
@@ -19,8 +19,8 @@
const replacePattern = require('../replace_pattern');
-module.exports = patterns => {
- return patterns.map(patternObject => {
+module.exports = (patterns) => {
+ return patterns.map((patternObject) => {
return replacePattern(patternObject.path, { brackets: true });
});
};
diff --git a/packages/kbn-spec-to-console/lib/replace_pattern.js b/packages/kbn-spec-to-console/lib/replace_pattern.js
index 29d16be3cc70f..4da75db78086d 100644
--- a/packages/kbn-spec-to-console/lib/replace_pattern.js
+++ b/packages/kbn-spec-to-console/lib/replace_pattern.js
@@ -21,7 +21,7 @@ const map = require('./static/map_interpolation');
module.exports = (pattern, { brackets, exact } = {}) => {
let newPattern = pattern;
- Object.keys(map).forEach(key => {
+ Object.keys(map).forEach((key) => {
const replaceFrom = brackets ? `{${key}}` : key;
const replaceTo = brackets ? `{${map[key]}}` : map[key];
if (exact) {
diff --git a/packages/kbn-storybook/index.js b/packages/kbn-storybook/index.js
index b595de8ea1c07..c7dae20902f1a 100644
--- a/packages/kbn-storybook/index.js
+++ b/packages/kbn-storybook/index.js
@@ -27,7 +27,7 @@ const { generateStorybookEntry } = require('./lib/storybook_entry');
const { REPO_ROOT, ASSET_DIR, CURRENT_CONFIG } = require('./lib/constants');
const { buildDll } = require('./lib/dll');
-exports.runStorybookCli = config => {
+exports.runStorybookCli = (config) => {
const { name, storyGlobs } = config;
run(
async ({ flags, log, procRunner }) => {
diff --git a/packages/kbn-storybook/lib/storybook_entry.js b/packages/kbn-storybook/lib/storybook_entry.js
index dececef47f40e..9eb1b0a458c6a 100644
--- a/packages/kbn-storybook/lib/storybook_entry.js
+++ b/packages/kbn-storybook/lib/storybook_entry.js
@@ -37,7 +37,7 @@ const STORE_ENTRY_DIR = dirname(STORY_ENTRY_PATH);
exports.generateStorybookEntry = ({ log, storyGlobs }) => {
const globs = ['built_assets/css/**/*.light.css', ...storyGlobs];
log.info('Storybook globs:\n', globs);
- const norm = p => normalize(relative(STORE_ENTRY_DIR, p));
+ const norm = (p) => normalize(relative(STORE_ENTRY_DIR, p));
return Rx.defer(() =>
glob(globs, {
@@ -46,20 +46,20 @@ exports.generateStorybookEntry = ({ log, storyGlobs }) => {
onlyFiles: true,
})
).pipe(
- map(paths => {
+ map((paths) => {
log.info('Discovered Storybook entry points:\n', paths);
return new Set(paths.map(norm));
}),
mergeMap(
- paths =>
- new Rx.Observable(observer => {
+ (paths) =>
+ new Rx.Observable((observer) => {
observer.next(paths);
const chokidar = watch(globs, { cwd: REPO_ROOT })
- .on('add', path => {
+ .on('add', (path) => {
observer.next(paths.add(norm(resolve(REPO_ROOT, path))));
})
- .on('unlink', path => {
+ .on('unlink', (path) => {
observer.next(paths.delete(norm(resolve(REPO_ROOT, path))));
});
diff --git a/packages/kbn-storybook/storybook_config/middleware.js b/packages/kbn-storybook/storybook_config/middleware.js
index 046758948b2cf..9410bb66030d9 100644
--- a/packages/kbn-storybook/storybook_config/middleware.js
+++ b/packages/kbn-storybook/storybook_config/middleware.js
@@ -21,6 +21,6 @@ const serve = require('serve-static');
const path = require('path');
// Extend the Storybook Middleware to include a route to access Legacy UI assets
-module.exports = function(router) {
+module.exports = function (router) {
router.get('/ui', serve(path.resolve(__dirname, '../../../src/core/server/core_app/assets')));
};
diff --git a/packages/kbn-storybook/storybook_config/mocks/noop.js b/packages/kbn-storybook/storybook_config/mocks/noop.js
index aaddfb2ed8ac3..e78d222eaa560 100755
--- a/packages/kbn-storybook/storybook_config/mocks/noop.js
+++ b/packages/kbn-storybook/storybook_config/mocks/noop.js
@@ -17,4 +17,4 @@
* under the License.
*/
-export default function() {}
+export default function () {}
diff --git a/packages/kbn-storybook/storybook_config/webpack.config.js b/packages/kbn-storybook/storybook_config/webpack.config.js
index 779d8a4153644..2dd051882bb4b 100644
--- a/packages/kbn-storybook/storybook_config/webpack.config.js
+++ b/packages/kbn-storybook/storybook_config/webpack.config.js
@@ -29,7 +29,7 @@ const { currentConfig } = require('../../../built_assets/storybook/current.confi
module.exports = async ({ config }) => {
// Find and alter the CSS rule to replace the Kibana public path string with a path
// to the route we've added in middleware.js
- const cssRule = config.module.rules.find(rule => rule.test.source.includes('.css$'));
+ const cssRule = config.module.rules.find((rule) => rule.test.source.includes('.css$'));
cssRule.use.push({
loader: 'string-replace-loader',
options: {
diff --git a/packages/kbn-test-subj-selector/__tests__/index.js b/packages/kbn-test-subj-selector/__tests__/index.js
index e18405b99ae52..23165cefec94a 100755
--- a/packages/kbn-test-subj-selector/__tests__/index.js
+++ b/packages/kbn-test-subj-selector/__tests__/index.js
@@ -20,8 +20,8 @@
const testSubjSelector = require('../');
const expect = require('@kbn/expect');
-describe('testSubjSelector()', function() {
- it('converts subjectSelectors to cssSelectors', function() {
+describe('testSubjSelector()', function () {
+ it('converts subjectSelectors to cssSelectors', function () {
expect(testSubjSelector('foo bar')).to.eql('[data-test-subj="foo bar"]');
expect(testSubjSelector('foo > bar')).to.eql('[data-test-subj="foo"] [data-test-subj="bar"]');
expect(testSubjSelector('foo > bar baz')).to.eql(
diff --git a/packages/kbn-test-subj-selector/index.js b/packages/kbn-test-subj-selector/index.js
index 3984c15c00fef..2be59d78dc5ef 100755
--- a/packages/kbn-test-subj-selector/index.js
+++ b/packages/kbn-test-subj-selector/index.js
@@ -42,12 +42,7 @@ module.exports = function testSubjSelector(selector) {
while (terms.length) {
const term = terms.shift();
// split each term by joins/& and map to css selectors
- cssSelectors.push(
- term
- .split('&')
- .map(termToCssSelector)
- .join('')
- );
+ cssSelectors.push(term.split('&').map(termToCssSelector).join(''));
}
return cssSelectors.join(' ');
diff --git a/packages/kbn-test/src/failed_tests_reporter/add_messages_to_report.test.ts b/packages/kbn-test/src/failed_tests_reporter/add_messages_to_report.test.ts
index 0c824754b1237..7cbeb18a5ebd4 100644
--- a/packages/kbn-test/src/failed_tests_reporter/add_messages_to_report.test.ts
+++ b/packages/kbn-test/src/failed_tests_reporter/add_messages_to_report.test.ts
@@ -25,12 +25,8 @@ import { createPatch } from 'diff';
// turns out Jest can't encode xml diffs in their JUnit reports...
expect.addSnapshotSerializer({
- test: v => typeof v === 'string' && (v.includes('<') || v.includes('>')),
- print: v =>
- v
- .replace(//g, '›')
- .replace(/^\s+$/gm, ''),
+ test: (v) => typeof v === 'string' && (v.includes('<') || v.includes('>')),
+ print: (v) => v.replace(//g, '›').replace(/^\s+$/gm, ''),
});
jest.mock('fs', () => {
diff --git a/packages/kbn-test/src/failed_tests_reporter/add_messages_to_report.ts b/packages/kbn-test/src/failed_tests_reporter/add_messages_to_report.ts
index 32ea5fa0f9033..6bc7556db8a47 100644
--- a/packages/kbn-test/src/failed_tests_reporter/add_messages_to_report.ts
+++ b/packages/kbn-test/src/failed_tests_reporter/add_messages_to_report.ts
@@ -49,7 +49,7 @@ export async function addMessagesToReport(options: {
for (const testCase of makeFailedTestCaseIter(report)) {
const { classname, name } = testCase.$;
const messageList = messages
- .filter(u => u.classname === classname && u.name === name)
+ .filter((u) => u.classname === classname && u.name === name)
.reduce((acc, u) => `${acc}\n - ${u.message}`, '');
if (!messageList) {
@@ -76,7 +76,7 @@ export async function addMessagesToReport(options: {
const xml = builder
.buildObject(report)
.split('\n')
- .map(line => (line.trim() === '' ? '' : line))
+ .map((line) => (line.trim() === '' ? '' : line))
.join('\n');
if (dryRun) {
diff --git a/packages/kbn-test/src/failed_tests_reporter/github_api.ts b/packages/kbn-test/src/failed_tests_reporter/github_api.ts
index 7da79b5b67e63..a0e3bcafdf196 100644
--- a/packages/kbn-test/src/failed_tests_reporter/github_api.ts
+++ b/packages/kbn-test/src/failed_tests_reporter/github_api.ts
@@ -233,7 +233,7 @@ export class GithubApi {
this.log.error(`Unable to reach github, waiting ${waitMs}ms to retry`);
}
- await new Promise(resolve => setTimeout(resolve, waitMs));
+ await new Promise((resolve) => setTimeout(resolve, waitMs));
return await this.request(
{
...options,
diff --git a/packages/kbn-test/src/failed_tests_reporter/run_failed_tests_reporter_cli.ts b/packages/kbn-test/src/failed_tests_reporter/run_failed_tests_reporter_cli.ts
index 9324f9eb42aa5..b298c08f162bf 100644
--- a/packages/kbn-test/src/failed_tests_reporter/run_failed_tests_reporter_cli.ts
+++ b/packages/kbn-test/src/failed_tests_reporter/run_failed_tests_reporter_cli.ts
@@ -100,7 +100,7 @@ export function runFailedTestsReporterCli() {
}
let existingIssue: GithubIssueMini | undefined = await githubApi.findFailedTestIssue(
- i =>
+ (i) =>
getIssueMetadata(i.body, 'test.class') === failure.classname &&
getIssueMetadata(i.body, 'test.name') === failure.name
);
diff --git a/packages/kbn-test/src/functional_test_runner/__tests__/integration/basic.js b/packages/kbn-test/src/functional_test_runner/__tests__/integration/basic.js
index 3c8daf4154236..133f4d2feb53e 100644
--- a/packages/kbn-test/src/functional_test_runner/__tests__/integration/basic.js
+++ b/packages/kbn-test/src/functional_test_runner/__tests__/integration/basic.js
@@ -26,7 +26,7 @@ import { REPO_ROOT } from '@kbn/dev-utils';
const SCRIPT = resolve(REPO_ROOT, 'scripts/functional_test_runner.js');
const BASIC_CONFIG = require.resolve('../fixtures/simple_project/config.js');
-describe('basic config file with a single app and test', function() {
+describe('basic config file with a single app and test', function () {
this.timeout(60 * 1000);
it('runs and prints expected output', () => {
diff --git a/packages/kbn-test/src/functional_test_runner/__tests__/integration/failure_hooks.js b/packages/kbn-test/src/functional_test_runner/__tests__/integration/failure_hooks.js
index d6e7b1ac58aa4..12e28d2702c5a 100644
--- a/packages/kbn-test/src/functional_test_runner/__tests__/integration/failure_hooks.js
+++ b/packages/kbn-test/src/functional_test_runner/__tests__/integration/failure_hooks.js
@@ -27,7 +27,7 @@ import { REPO_ROOT } from '@kbn/dev-utils';
const SCRIPT = resolve(REPO_ROOT, 'scripts/functional_test_runner.js');
const FAILURE_HOOKS_CONFIG = require.resolve('../fixtures/failure_hooks/config.js');
-describe('failure hooks', function() {
+describe('failure hooks', function () {
this.timeout(60 * 1000);
it('runs and prints expected output', () => {
diff --git a/packages/kbn-test/src/functional_test_runner/cli.ts b/packages/kbn-test/src/functional_test_runner/cli.ts
index 276a51c3a6a99..fd5ee5ad3ae44 100644
--- a/packages/kbn-test/src/functional_test_runner/cli.ts
+++ b/packages/kbn-test/src/functional_test_runner/cli.ts
@@ -87,7 +87,7 @@ export function runFtrCli() {
}
};
- process.on('unhandledRejection', err =>
+ process.on('unhandledRejection', (err) =>
teardown(
err instanceof Error ? err : new Error(`non-Error type rejection value: ${inspect(err)}`)
)
diff --git a/packages/kbn-test/src/functional_test_runner/functional_test_runner.ts b/packages/kbn-test/src/functional_test_runner/functional_test_runner.ts
index 3a66ba22ccf3d..03d4d7643607f 100644
--- a/packages/kbn-test/src/functional_test_runner/functional_test_runner.ts
+++ b/packages/kbn-test/src/functional_test_runner/functional_test_runner.ts
@@ -89,7 +89,7 @@ export class FunctionalTestRunner {
// promise-like objects which never resolve, essentially disabling them
// allowing us to load the test files and populate the mocha suites
const readStubbedProviderSpec = (type: string, providers: any) =>
- readProviderSpec(type, providers).map(p => ({
+ readProviderSpec(type, providers).map((p) => ({
...p,
fn: () => ({
then: () => {},
diff --git a/packages/kbn-test/src/functional_test_runner/lib/config/config.ts b/packages/kbn-test/src/functional_test_runner/lib/config/config.ts
index ad9247523797a..e38520f00e45b 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/config/config.ts
+++ b/packages/kbn-test/src/functional_test_runner/lib/config/config.ts
@@ -114,7 +114,7 @@ export class Config {
throw new Error(`Unknown config key "${key}"`);
}
- return cloneDeep(get(this[$values], key, defaultValue), v => {
+ return cloneDeep(get(this[$values], key, defaultValue), (v) => {
if (typeof v === 'function') {
return v;
}
@@ -122,7 +122,7 @@ export class Config {
}
public getAll() {
- return cloneDeep(this[$values], v => {
+ return cloneDeep(this[$values], (v) => {
if (typeof v === 'function') {
return v;
}
diff --git a/packages/kbn-test/src/functional_test_runner/lib/config/schema.ts b/packages/kbn-test/src/functional_test_runner/lib/config/schema.ts
index f4b91d154cbb8..29ec28175a851 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/config/schema.ts
+++ b/packages/kbn-test/src/functional_test_runner/lib/config/schema.ts
@@ -30,12 +30,8 @@ const INSPECTING =
const urlPartsSchema = () =>
Joi.object()
.keys({
- protocol: Joi.string()
- .valid('http', 'https')
- .default('http'),
- hostname: Joi.string()
- .hostname()
- .default('localhost'),
+ protocol: Joi.string().valid('http', 'https').default('http'),
+ hostname: Joi.string().hostname().default('localhost'),
port: Joi.number(),
auth: Joi.string().regex(/^[^:]+:.+$/, 'username and password separated by a colon'),
username: Joi.string(),
@@ -66,33 +62,21 @@ export const schema = Joi.object()
suiteFiles: Joi.object()
.keys({
- include: Joi.array()
- .items(Joi.string())
- .default([]),
- exclude: Joi.array()
- .items(Joi.string())
- .default([]),
+ include: Joi.array().items(Joi.string()).default([]),
+ exclude: Joi.array().items(Joi.string()).default([]),
})
.default(),
suiteTags: Joi.object()
.keys({
- include: Joi.array()
- .items(Joi.string())
- .default([]),
- exclude: Joi.array()
- .items(Joi.string())
- .default([]),
+ include: Joi.array().items(Joi.string()).default([]),
+ exclude: Joi.array().items(Joi.string()).default([]),
})
.default(),
- services: Joi.object()
- .pattern(ID_PATTERN, Joi.func().required())
- .default(),
+ services: Joi.object().pattern(ID_PATTERN, Joi.func().required()).default(),
- pageObjects: Joi.object()
- .pattern(ID_PATTERN, Joi.func().required())
- .default(),
+ pageObjects: Joi.object().pattern(ID_PATTERN, Joi.func().required()).default(),
timeouts: Joi.object()
.keys({
@@ -135,9 +119,7 @@ export const schema = Joi.object()
browser: Joi.object()
.keys({
- type: Joi.string()
- .valid('chrome', 'firefox', 'ie', 'msedge')
- .default('chrome'),
+ type: Joi.string().valid('chrome', 'firefox', 'ie', 'msedge').default('chrome'),
logPollingMs: Joi.number().default(100),
})
@@ -210,9 +192,7 @@ export const schema = Joi.object()
.default(),
// definition of apps that work with `common.navigateToApp()`
- apps: Joi.object()
- .pattern(ID_PATTERN, appUrlPartsSchema())
- .default(),
+ apps: Joi.object().pattern(ID_PATTERN, appUrlPartsSchema()).default(),
// settings for the esArchiver module
esArchiver: Joi.object()
diff --git a/packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts b/packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts
index be033e063fb9d..fdf8b3c0ddfa8 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts
+++ b/packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts
@@ -39,7 +39,7 @@ export class FailureMetadata {
);
}
- lifecycle.beforeEachRunnable.add(runnable => {
+ lifecycle.beforeEachRunnable.add((runnable) => {
this.currentRunnable = runnable;
});
}
@@ -57,7 +57,7 @@ export class FailureMetadata {
}
addMessages(messages: string[]) {
- this.add(current => ({
+ this.add((current) => ({
messages: [...(Array.isArray(current.messages) ? current.messages : []), ...messages],
}));
}
@@ -76,7 +76,7 @@ export class FailureMetadata {
const slash = prefix.endsWith('/') ? '' : '/';
const urlPath = Path.relative(REPO_ROOT, repoPath)
.split(Path.sep)
- .map(c => encodeURIComponent(c))
+ .map((c) => encodeURIComponent(c))
.join('/');
if (urlPath.startsWith('..')) {
@@ -91,7 +91,7 @@ export class FailureMetadata {
url,
};
- this.add(current => ({
+ this.add((current) => ({
screenshots: [...(Array.isArray(current.screenshots) ? current.screenshots : []), screenshot],
}));
diff --git a/packages/kbn-test/src/functional_test_runner/lib/lifecycle_event.ts b/packages/kbn-test/src/functional_test_runner/lib/lifecycle_event.ts
index 22b7363454361..ce242d44009f2 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/lifecycle_event.ts
+++ b/packages/kbn-test/src/functional_test_runner/lib/lifecycle_event.ts
@@ -57,7 +57,7 @@ export class LifecycleEvent {
}
try {
- await Promise.all(this.handlers.map(async fn => await fn(...args)));
+ await Promise.all(this.handlers.map(async (fn) => await fn(...args)));
} finally {
this.afterSubj.next(undefined);
if (this.options.singular) {
diff --git a/packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.test.ts b/packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.test.ts
index 94dd76884f2ca..d17c5503c42f8 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.test.ts
+++ b/packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.test.ts
@@ -104,7 +104,7 @@ describe('without randomness', () => {
const handler = jest.fn(async () => {
order.push('handler start');
- await new Promise(resolve => setTimeout(resolve, 100));
+ await new Promise((resolve) => setTimeout(resolve, 100));
order.push('handler done');
});
phase.add(handler);
@@ -124,10 +124,10 @@ describe('without randomness', () => {
const phase = new LifecyclePhase({ singular: true });
const beforeNotifs: Array> = [];
- phase.before$.pipe(materialize()).subscribe(n => beforeNotifs.push(n));
+ phase.before$.pipe(materialize()).subscribe((n) => beforeNotifs.push(n));
const afterNotifs: Array> = [];
- phase.after$.pipe(materialize()).subscribe(n => afterNotifs.push(n));
+ phase.after$.pipe(materialize()).subscribe((n) => afterNotifs.push(n));
await phase.trigger();
expect(beforeNotifs).toMatchInlineSnapshot(`
diff --git a/packages/kbn-test/src/functional_test_runner/lib/load_tracer.ts b/packages/kbn-test/src/functional_test_runner/lib/load_tracer.ts
index 26a0e9617a7c7..588e32b5d274c 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/load_tracer.ts
+++ b/packages/kbn-test/src/functional_test_runner/lib/load_tracer.ts
@@ -22,7 +22,7 @@ const globalLoadPath: Array<{ ident: string; description: string }> = [];
function getPath(startAt = 0) {
return globalLoadPath
.slice(startAt)
- .map(step => step.description)
+ .map((step) => step.description)
.join(' -> ');
}
@@ -49,7 +49,7 @@ function addPathToMessage(message: string, startAt?: number) {
* @return {Any} the value produced by load()
*/
export function loadTracer(ident: any, description: string, load: () => Promise | void) {
- const isCircular = globalLoadPath.find(step => step.ident === ident);
+ const isCircular = globalLoadPath.find((step) => step.ident === ident);
if (isCircular) {
throw new Error(addPathToMessage(`Circular reference to "${description}"`));
}
diff --git a/packages/kbn-test/src/functional_test_runner/lib/mocha/assignment_proxy.js b/packages/kbn-test/src/functional_test_runner/lib/mocha/assignment_proxy.js
index 5c08d566d3d73..ecf8f7af87ed8 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/mocha/assignment_proxy.js
+++ b/packages/kbn-test/src/functional_test_runner/lib/mocha/assignment_proxy.js
@@ -31,7 +31,7 @@ export function createAssignmentProxy(object, interceptor) {
get(target, property) {
if (property === 'revertProxiedAssignments') {
- return function() {
+ return function () {
for (const [property, value] of originalValues) {
object[property] = value;
}
diff --git a/packages/kbn-test/src/functional_test_runner/lib/mocha/decorate_mocha_ui.js b/packages/kbn-test/src/functional_test_runner/lib/mocha/decorate_mocha_ui.js
index 1cac852a7e713..5d3d8fe7d759b 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/mocha/decorate_mocha_ui.js
+++ b/packages/kbn-test/src/functional_test_runner/lib/mocha/decorate_mocha_ui.js
@@ -57,12 +57,12 @@ export function decorateMochaUi(lifecycle, context) {
throw new Error(`Unexpected arguments to ${name}(${argumentsList.join(', ')})`);
}
- argumentsList[1] = function() {
+ argumentsList[1] = function () {
before(async () => {
await lifecycle.beforeTestSuite.trigger(this);
});
- this.tags = tags => {
+ this.tags = (tags) => {
this._tags = [].concat(this._tags || [], tags);
};
diff --git a/packages/kbn-test/src/functional_test_runner/lib/mocha/filter_suites_by_tags.js b/packages/kbn-test/src/functional_test_runner/lib/mocha/filter_suites_by_tags.js
index 302d43fac3e61..f7aaabd5a4495 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/mocha/filter_suites_by_tags.js
+++ b/packages/kbn-test/src/functional_test_runner/lib/mocha/filter_suites_by_tags.js
@@ -30,7 +30,7 @@
export function filterSuitesByTags({ log, mocha, include, exclude }) {
mocha.excludedTests = [];
// collect all the tests from some suite, including it's children
- const collectTests = suite =>
+ const collectTests = (suite) =>
suite.suites.reduce((acc, s) => acc.concat(collectTests(s)), suite.tests);
// if include tags were provided, filter the tree once to
@@ -38,8 +38,10 @@ export function filterSuitesByTags({ log, mocha, include, exclude }) {
if (include.length) {
log.info('Only running suites (and their sub-suites) if they include the tag(s):', include);
- const isIncluded = suite => (!suite._tags ? false : suite._tags.some(t => include.includes(t)));
- const isChildIncluded = suite => suite.suites.some(s => isIncluded(s) || isChildIncluded(s));
+ const isIncluded = (suite) =>
+ !suite._tags ? false : suite._tags.some((t) => include.includes(t));
+ const isChildIncluded = (suite) =>
+ suite.suites.some((s) => isIncluded(s) || isChildIncluded(s));
(function recurse(parentSuite) {
const children = parentSuite.suites;
@@ -73,7 +75,7 @@ export function filterSuitesByTags({ log, mocha, include, exclude }) {
if (exclude.length) {
log.info('Filtering out any suites that include the tag(s):', exclude);
- const isNotExcluded = suite => !suite._tags || !suite._tags.some(t => exclude.includes(t));
+ const isNotExcluded = (suite) => !suite._tags || !suite._tags.some((t) => exclude.includes(t));
(function recurse(parentSuite) {
const children = parentSuite.suites;
diff --git a/packages/kbn-test/src/functional_test_runner/lib/mocha/filter_suites_by_tags.test.js b/packages/kbn-test/src/functional_test_runner/lib/mocha/filter_suites_by_tags.test.js
index 9901f62ae71cf..6ecfadfd25d6d 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/mocha/filter_suites_by_tags.test.js
+++ b/packages/kbn-test/src/functional_test_runner/lib/mocha/filter_suites_by_tags.test.js
@@ -26,21 +26,21 @@ import Test from 'mocha/lib/test';
import { filterSuitesByTags } from './filter_suites_by_tags';
function setup({ include, exclude }) {
- return new Promise(resolve => {
+ return new Promise((resolve) => {
const history = [];
const mocha = new Mocha({
reporter: class {
constructor(runner) {
- runner.on('hook', hook => {
+ runner.on('hook', (hook) => {
history.push(`hook: ${hook.fullTitle()}`);
});
- runner.on('pass', test => {
+ runner.on('pass', (test) => {
history.push(`test: ${test.fullTitle()}`);
});
- runner.on('suite', suite => {
+ runner.on('suite', (suite) => {
history.push(`suite: ${suite.fullTitle()}`);
});
}
diff --git a/packages/kbn-test/src/functional_test_runner/lib/mocha/load_test_files.js b/packages/kbn-test/src/functional_test_runner/lib/mocha/load_test_files.js
index 6ee65b1b7e394..5c23be6361866 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/mocha/load_test_files.js
+++ b/packages/kbn-test/src/functional_test_runner/lib/mocha/load_test_files.js
@@ -32,7 +32,7 @@ import { decorateMochaUi } from './decorate_mocha_ui';
* @return {undefined} - mutates mocha, no return value
*/
export const loadTestFiles = ({ mocha, log, lifecycle, providers, paths, updateBaselines }) => {
- const innerLoadTestFile = path => {
+ const innerLoadTestFile = (path) => {
if (typeof path !== 'string' || !isAbsolute(path)) {
throw new TypeError('loadTestFile() only accepts absolute paths');
}
diff --git a/packages/kbn-test/src/functional_test_runner/lib/mocha/reporter/reporter.js b/packages/kbn-test/src/functional_test_runner/lib/mocha/reporter/reporter.js
index 0e8c1bc121e15..90bea1c3aa293 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/mocha/reporter/reporter.js
+++ b/packages/kbn-test/src/functional_test_runner/lib/mocha/reporter/reporter.js
@@ -54,7 +54,7 @@ export function MochaReporterProvider({ getService }) {
if (config.get('junit.enabled') && config.get('junit.reportName')) {
setupJUnitReportGeneration(runner, {
reportName: config.get('junit.reportName'),
- getTestMetadata: t => failureMetadata.get(t),
+ getTestMetadata: (t) => failureMetadata.get(t),
});
}
}
@@ -76,7 +76,7 @@ export function MochaReporterProvider({ getService }) {
new ToolingLogTextWriter({
level: 'debug',
writeTo: {
- write: line => {
+ write: (line) => {
// if the current runnable is a beforeEach hook then
// `runner.suite` is set to the suite that defined the
// hook, rather than the suite executing, so instead we
@@ -104,7 +104,7 @@ export function MochaReporterProvider({ getService }) {
log.write('');
};
- onHookStart = hook => {
+ onHookStart = (hook) => {
log.write(`-> ${colors.suite(hook.title)}`);
log.indent(2);
};
@@ -113,7 +113,7 @@ export function MochaReporterProvider({ getService }) {
log.indent(-2);
};
- onSuiteStart = suite => {
+ onSuiteStart = (suite) => {
if (!suite.root) {
log.write('-: ' + colors.suite(suite.title));
}
@@ -127,28 +127,28 @@ export function MochaReporterProvider({ getService }) {
}
};
- onTestStart = test => {
+ onTestStart = (test) => {
log.write(`-> ${test.title}`);
log.indent(2);
};
- onTestEnd = test => {
+ onTestEnd = (test) => {
snapshotLogsForRunnable(test);
log.indent(-2);
};
- onPending = test => {
+ onPending = (test) => {
log.write('-> ' + colors.pending(test.title));
log.indent(2);
};
- onPass = test => {
+ onPass = (test) => {
const time = colors.speed(test.speed, ` (${ms(test.duration)})`);
const pass = colors.pass(`${symbols.ok} pass`);
log.write(`- ${pass} ${time} "${test.fullTitle()}"`);
};
- onFail = runnable => {
+ onFail = (runnable) => {
// NOTE: this is super gross
//
// - I started by trying to extract the Base.list() logic from mocha
@@ -173,8 +173,8 @@ export function MochaReporterProvider({ getService }) {
// drop the first two lines, (empty + test title)
.slice(2)
// move leading colors behind leading spaces
- .map(line => line.replace(/^((?:\[.+m)+)(\s+)/, '$2$1'))
- .map(line => ` ${line}`)
+ .map((line) => line.replace(/^((?:\[.+m)+)(\s+)/, '$2$1'))
+ .map((line) => ` ${line}`)
.join('\n')
);
diff --git a/packages/kbn-test/src/functional_test_runner/lib/mocha/run_tests.ts b/packages/kbn-test/src/functional_test_runner/lib/mocha/run_tests.ts
index 654f588fda858..a23a5fb1407a0 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/mocha/run_tests.ts
+++ b/packages/kbn-test/src/functional_test_runner/lib/mocha/run_tests.ts
@@ -39,7 +39,7 @@ export async function runTests(lifecycle: Lifecycle, mocha: Mocha) {
if (!runComplete) runner.abort();
});
- return new Promise(resolve => {
+ return new Promise((resolve) => {
const respond = () => resolve(runner.failures);
// if there are no tests, mocha.run() is sync
diff --git a/packages/kbn-test/src/functional_test_runner/lib/mocha/setup_mocha.js b/packages/kbn-test/src/functional_test_runner/lib/mocha/setup_mocha.js
index 61851cece0e8f..3ac7a50cd28ea 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/mocha/setup_mocha.js
+++ b/packages/kbn-test/src/functional_test_runner/lib/mocha/setup_mocha.js
@@ -42,7 +42,7 @@ export async function setupMocha(lifecycle, log, config, providers) {
});
// global beforeEach hook in root suite triggers before all others
- mocha.suite.beforeEach('global before each', async function() {
+ mocha.suite.beforeEach('global before each', async function () {
await lifecycle.beforeEachTest.trigger(this.currentTest);
});
@@ -62,15 +62,15 @@ export async function setupMocha(lifecycle, log, config, providers) {
filterSuitesByTags({
log,
mocha,
- include: config.get('suiteFiles.include').map(file => relative(REPO_ROOT, file)),
- exclude: config.get('suiteFiles.exclude').map(file => relative(REPO_ROOT, file)),
+ include: config.get('suiteFiles.include').map((file) => relative(REPO_ROOT, file)),
+ exclude: config.get('suiteFiles.exclude').map((file) => relative(REPO_ROOT, file)),
});
filterSuitesByTags({
log,
mocha,
- include: config.get('suiteTags.include').map(tag => tag.replace(/-\d+$/, '')),
- exclude: config.get('suiteTags.exclude').map(tag => tag.replace(/-\d+$/, '')),
+ include: config.get('suiteTags.include').map((tag) => tag.replace(/-\d+$/, '')),
+ exclude: config.get('suiteTags.exclude').map((tag) => tag.replace(/-\d+$/, '')),
});
return mocha;
diff --git a/packages/kbn-test/src/functional_test_runner/lib/providers/async_instance.ts b/packages/kbn-test/src/functional_test_runner/lib/providers/async_instance.ts
index 7bb1b2bc153c1..2d5644fbad290 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/providers/async_instance.ts
+++ b/packages/kbn-test/src/functional_test_runner/lib/providers/async_instance.ts
@@ -34,7 +34,7 @@ export const createAsyncInstance = (
): AsyncInstance => {
let instance: T | symbol = INITIALIZING;
- const initPromise = promiseForValue.then(v => (instance = v));
+ const initPromise = promiseForValue.then((v) => (instance = v));
const loadingTarget = {
init() {
return initPromise;
diff --git a/packages/kbn-test/src/functional_test_runner/lib/providers/provider_collection.ts b/packages/kbn-test/src/functional_test_runner/lib/providers/provider_collection.ts
index f9ad86be634fc..c58747e07dcf4 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/providers/provider_collection.ts
+++ b/packages/kbn-test/src/functional_test_runner/lib/providers/provider_collection.ts
@@ -37,7 +37,7 @@ export class ProviderCollection {
public getPageObjects = (names: string[]) => {
const pageObjects: Record = {};
- names.forEach(name => (pageObjects[name] = this.getPageObject(name)));
+ names.forEach((name) => (pageObjects[name] = this.getPageObject(name)));
return pageObjects;
};
@@ -78,7 +78,7 @@ export class ProviderCollection {
}
private findProvider(type: string, name: string) {
- return this.providers.find(p => p.type === type && p.name === name);
+ return this.providers.find((p) => p.type === type && p.name === name);
}
private getProvider(type: string, name: string) {
diff --git a/packages/kbn-test/src/functional_test_runner/lib/providers/read_provider_spec.ts b/packages/kbn-test/src/functional_test_runner/lib/providers/read_provider_spec.ts
index be8e25f102b09..a29b220bc603b 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/providers/read_provider_spec.ts
+++ b/packages/kbn-test/src/functional_test_runner/lib/providers/read_provider_spec.ts
@@ -21,7 +21,7 @@ export type Providers = ReturnType;
export type Provider = Providers extends Array ? X : unknown;
export function readProviderSpec(type: string, providers: Record any>) {
- return Object.keys(providers).map(name => {
+ return Object.keys(providers).map((name) => {
return {
type,
name,
diff --git a/packages/kbn-test/src/functional_test_runner/lib/providers/verbose_instance.ts b/packages/kbn-test/src/functional_test_runner/lib/providers/verbose_instance.ts
index 93a87f3496b54..1967e98306d42 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/providers/verbose_instance.ts
+++ b/packages/kbn-test/src/functional_test_runner/lib/providers/verbose_instance.ts
@@ -23,7 +23,7 @@ import { ToolingLog } from '@kbn/dev-utils';
function printArgs(args: any[]): string {
return args
- .map(arg => {
+ .map((arg) => {
if (typeof arg === 'string' || typeof arg === 'number' || arg instanceof Date) {
return inspect(arg);
}
@@ -42,7 +42,7 @@ export function createVerboseInstance(
name: string,
instance: { [k: string]: any; [i: number]: any }
) {
- if (!log.getWriters().some(l => (l as any).level.flags.verbose)) {
+ if (!log.getWriters().some((l) => (l as any).level.flags.verbose)) {
return instance;
}
@@ -54,7 +54,7 @@ export function createVerboseInstance(
return value;
}
- return function(this: any, ...args: any[]) {
+ return function (this: any, ...args: any[]) {
log.verbose(`${name}.${prop}(${printArgs(args)})`);
log.indent(2);
diff --git a/packages/kbn-test/src/functional_test_runner/lib/suite_tracker.test.ts b/packages/kbn-test/src/functional_test_runner/lib/suite_tracker.test.ts
index b6c2c0a6d511d..f879408bf2beb 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/suite_tracker.test.ts
+++ b/packages/kbn-test/src/functional_test_runner/lib/suite_tracker.test.ts
@@ -145,8 +145,8 @@ describe('SuiteTracker', () => {
const { suiteTracker } = await runLifecycleWithMocks([root, parent, withTests]);
const suites = suiteTracker.getAllFinishedSuites();
- const finishedRoot = suites.find(s => s.title === 'root');
- const finishedWithTests = suites.find(s => s.title !== 'root');
+ const finishedRoot = suites.find((s) => s.title === 'root');
+ const finishedWithTests = suites.find((s) => s.title !== 'root');
expect(finishedRoot).toBeTruthy();
expect(finishedRoot?.hasTests).toBeFalsy();
diff --git a/packages/kbn-test/src/functional_test_runner/lib/suite_tracker.ts b/packages/kbn-test/src/functional_test_runner/lib/suite_tracker.ts
index 8967251ea78de..b346be2d58dad 100644
--- a/packages/kbn-test/src/functional_test_runner/lib/suite_tracker.ts
+++ b/packages/kbn-test/src/functional_test_runner/lib/suite_tracker.ts
@@ -70,7 +70,7 @@ export class SuiteTracker {
const config = relative(REPO_ROOT, configPathAbsolute);
- lifecycle.beforeTestSuite.add(suite => {
+ lifecycle.beforeTestSuite.add((suite) => {
const tracked = this.getTracked(suite);
tracked.startTime = new Date();
});
@@ -92,7 +92,7 @@ export class SuiteTracker {
lifecycle.testFailure.add(handleFailure);
lifecycle.testHookFailure.add(handleFailure);
- lifecycle.afterTestSuite.add(suite => {
+ lifecycle.afterTestSuite.add((suite) => {
const tracked = this.getTracked(suite);
tracked.endTime = new Date();
diff --git a/packages/kbn-test/src/functional_tests/cli/run_tests/args.js b/packages/kbn-test/src/functional_tests/cli/run_tests/args.js
index 7d2414305de8e..94d510915d8e5 100644
--- a/packages/kbn-test/src/functional_tests/cli/run_tests/args.js
+++ b/packages/kbn-test/src/functional_tests/cli/run_tests/args.js
@@ -73,8 +73,8 @@ const options = {
export function displayHelp() {
const helpOptions = Object.keys(options)
- .filter(name => name !== '_')
- .map(name => {
+ .filter((name) => name !== '_')
+ .map((name) => {
const option = options[name];
return {
...option,
@@ -82,7 +82,7 @@ export function displayHelp() {
default: option.defaultHelp || '',
};
})
- .map(option => {
+ .map((option) => {
return `--${option.usage.padEnd(28)} ${option.desc} ${option.default}`;
})
.join(`\n `);
@@ -149,7 +149,7 @@ export function processOptions(userOptions, defaultConfigPaths) {
return {
...userOptions,
- configs: configs.map(c => resolve(c)),
+ configs: configs.map((c) => resolve(c)),
createLogger,
extraKbnOpts: userOptions._,
};
diff --git a/packages/kbn-test/src/functional_tests/cli/run_tests/cli.js b/packages/kbn-test/src/functional_tests/cli/run_tests/cli.js
index 27335739d290e..cf49fc77e479f 100644
--- a/packages/kbn-test/src/functional_tests/cli/run_tests/cli.js
+++ b/packages/kbn-test/src/functional_tests/cli/run_tests/cli.js
@@ -30,7 +30,7 @@ import { processOptions, displayHelp } from './args';
* if no config option is passed
*/
export async function runTestsCli(defaultConfigPaths) {
- await runCli(displayHelp, async userOptions => {
+ await runCli(displayHelp, async (userOptions) => {
const options = processOptions(userOptions, defaultConfigPaths);
await runTests(options);
});
diff --git a/packages/kbn-test/src/functional_tests/cli/start_servers/args.js b/packages/kbn-test/src/functional_tests/cli/start_servers/args.js
index c221ad42fcad1..e604e86de8b3a 100644
--- a/packages/kbn-test/src/functional_tests/cli/start_servers/args.js
+++ b/packages/kbn-test/src/functional_tests/cli/start_servers/args.js
@@ -45,8 +45,8 @@ const options = {
export function displayHelp() {
const helpOptions = Object.keys(options)
- .filter(name => name !== '_')
- .map(name => {
+ .filter((name) => name !== '_')
+ .map((name) => {
const option = options[name];
return {
...option,
@@ -54,7 +54,7 @@ export function displayHelp() {
default: option.defaultHelp || '',
};
})
- .map(option => {
+ .map((option) => {
return `--${option.usage.padEnd(30)} ${option.desc} ${option.default}`;
})
.join(`\n `);
diff --git a/packages/kbn-test/src/functional_tests/cli/start_servers/cli.js b/packages/kbn-test/src/functional_tests/cli/start_servers/cli.js
index 5716441798aa4..d4499ee76e313 100644
--- a/packages/kbn-test/src/functional_tests/cli/start_servers/cli.js
+++ b/packages/kbn-test/src/functional_tests/cli/start_servers/cli.js
@@ -27,7 +27,7 @@ import { processOptions, displayHelp } from './args';
* if no config option is passed
*/
export async function startServersCli(defaultConfigPath) {
- await runCli(displayHelp, async userOptions => {
+ await runCli(displayHelp, async (userOptions) => {
const options = processOptions(userOptions, defaultConfigPath);
await startServers(options);
});
diff --git a/packages/kbn-test/src/functional_tests/lib/run_cli.js b/packages/kbn-test/src/functional_tests/lib/run_cli.js
index 56f6f36f5388f..51a970e1a305d 100644
--- a/packages/kbn-test/src/functional_tests/lib/run_cli.js
+++ b/packages/kbn-test/src/functional_tests/lib/run_cli.js
@@ -53,12 +53,7 @@ export async function runCli(getHelpText, run) {
if (!(error instanceof CliError)) {
// first line in the stack trace is the message, skip it as we log it directly and color it red
if (error.stack) {
- console.log(
- error.stack
- .split('\n')
- .slice(1)
- .join('\n')
- );
+ console.log(error.stack.split('\n').slice(1).join('\n'));
} else {
console.log(' (no stack trace)');
}
diff --git a/packages/kbn-test/src/functional_tests/lib/run_cli.test.js b/packages/kbn-test/src/functional_tests/lib/run_cli.test.js
index 235f50f0d9dd7..959f965917530 100644
--- a/packages/kbn-test/src/functional_tests/lib/run_cli.test.js
+++ b/packages/kbn-test/src/functional_tests/lib/run_cli.test.js
@@ -25,7 +25,7 @@ const mockConsoleLog = jest.spyOn(console, 'log').mockImplementation(() => {});
const actualProcessArgv = process.argv;
-const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
+const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
beforeEach(() => {
process.argv = actualProcessArgv.slice(0, 2);
@@ -72,7 +72,7 @@ it('waits for promise returned from run function to resolve before resolving', a
let resolveMockRun;
const mockRun = jest.fn().mockImplementation(
() =>
- new Promise(resolve => {
+ new Promise((resolve) => {
resolveMockRun = resolve;
})
);
diff --git a/packages/kbn-test/src/functional_tests/lib/run_elasticsearch.js b/packages/kbn-test/src/functional_tests/lib/run_elasticsearch.js
index 5f58190078f0d..3d174791fffc1 100644
--- a/packages/kbn-test/src/functional_tests/lib/run_elasticsearch.js
+++ b/packages/kbn-test/src/functional_tests/lib/run_elasticsearch.js
@@ -63,7 +63,7 @@ export async function runElasticsearch({ config, options }) {
function getRelativeCertificateAuthorityPath(esConfig = []) {
const caConfig = esConfig.find(
- config => config.indexOf('--elasticsearch.ssl.certificateAuthorities') === 0
+ (config) => config.indexOf('--elasticsearch.ssl.certificateAuthorities') === 0
);
return caConfig ? caConfig.split('=')[1] : undefined;
}
diff --git a/packages/kbn-test/src/functional_tests/lib/run_kibana_server.js b/packages/kbn-test/src/functional_tests/lib/run_kibana_server.js
index a5744d6498801..fb9f8f7a52408 100644
--- a/packages/kbn-test/src/functional_tests/lib/run_kibana_server.js
+++ b/packages/kbn-test/src/functional_tests/lib/run_kibana_server.js
@@ -58,9 +58,9 @@ function collectCliArgs(config, { installDir, extraKbnOpts }) {
return pipe(
serverArgs,
- args => (installDir ? args.filter(a => a !== '--oss') : args),
- args => (installDir ? [...buildArgs, ...args] : [KIBANA_EXEC_PATH, ...sourceArgs, ...args]),
- args => args.concat(extraKbnOpts || [])
+ (args) => (installDir ? args.filter((a) => a !== '--oss') : args),
+ (args) => (installDir ? [...buildArgs, ...args] : [KIBANA_EXEC_PATH, ...sourceArgs, ...args]),
+ (args) => args.concat(extraKbnOpts || [])
);
}
@@ -79,7 +79,7 @@ function filterCliArgs(args) {
// the current val. If so, skip this val.
if (
!allowsDuplicate(val) &&
- findIndexFrom(args, ++ind, opt => opt.split('=')[0] === val.split('=')[0]) > -1
+ findIndexFrom(args, ++ind, (opt) => opt.split('=')[0] === val.split('=')[0]) > -1
) {
return acc;
}
@@ -112,7 +112,7 @@ function isBasePathSettingOverridden(args, val, ind) {
const basePathKeys = ['--no-base-path', '--server.basePath'];
if (basePathKeys.includes(key)) {
- if (findIndexFrom(args, ++ind, opt => basePathKeys.includes(opt.split('=')[0])) > -1) {
+ if (findIndexFrom(args, ++ind, (opt) => basePathKeys.includes(opt.split('=')[0])) > -1) {
return true;
}
}
diff --git a/packages/kbn-test/src/functional_tests/tasks.js b/packages/kbn-test/src/functional_tests/tasks.js
index 8645923a13d30..7d4fc84d47bda 100644
--- a/packages/kbn-test/src/functional_tests/tasks.js
+++ b/packages/kbn-test/src/functional_tests/tasks.js
@@ -34,7 +34,7 @@ import {
import { readConfigFile } from '../functional_test_runner/lib';
-const makeSuccessMessage = options => {
+const makeSuccessMessage = (options) => {
const installDirFlag = options.installDir ? ` --kibana-install-dir=${options.installDir}` : '';
return (
@@ -92,7 +92,7 @@ export async function runTests(options) {
continue;
}
- await withProcRunner(log, async procs => {
+ await withProcRunner(log, async (procs) => {
const config = await readConfigFile(log, configPath);
let es;
@@ -128,7 +128,7 @@ export async function startServers(options) {
log,
};
- await withProcRunner(log, async procs => {
+ await withProcRunner(log, async (procs) => {
const config = await readConfigFile(log, options.config);
const es = await runElasticsearch({ config, options: opts });
diff --git a/packages/kbn-test/src/mocha/__tests__/junit_report_generation.js b/packages/kbn-test/src/mocha/__tests__/junit_report_generation.js
index 6edd0a551ebd0..00a11432dd9e8 100644
--- a/packages/kbn-test/src/mocha/__tests__/junit_report_generation.js
+++ b/packages/kbn-test/src/mocha/__tests__/junit_report_generation.js
@@ -49,8 +49,8 @@ describe('dev/mocha/junit report generation', () => {
});
mocha.addFile(resolve(PROJECT_DIR, 'test.js'));
- await new Promise(resolve => mocha.run(resolve));
- const report = await fcb(cb =>
+ await new Promise((resolve) => mocha.run(resolve));
+ const report = await fcb((cb) =>
parseString(readFileSync(makeJunitReportPath(PROJECT_DIR, 'test')), cb)
);
diff --git a/packages/kbn-test/src/mocha/junit_report_generation.js b/packages/kbn-test/src/mocha/junit_report_generation.js
index b56741b48d367..7e39c32ee4db8 100644
--- a/packages/kbn-test/src/mocha/junit_report_generation.js
+++ b/packages/kbn-test/src/mocha/junit_report_generation.js
@@ -39,26 +39,26 @@ export function setupJUnitReportGeneration(runner, options = {}) {
const stats = {};
const results = [];
- const getDuration = node =>
+ const getDuration = (node) =>
node.startTime && node.endTime ? ((node.endTime - node.startTime) / 1000).toFixed(3) : null;
- const findAllTests = suite =>
+ const findAllTests = (suite) =>
suite.suites.reduce((acc, suite) => acc.concat(findAllTests(suite)), suite.tests);
- const setStartTime = node => {
+ const setStartTime = (node) => {
node.startTime = dateNow();
};
- const setEndTime = node => {
+ const setEndTime = (node) => {
node.endTime = dateNow();
};
- const getFullTitle = node => {
+ const getFullTitle = (node) => {
const parentTitle = node.parent && getFullTitle(node.parent);
return parentTitle ? `${parentTitle} ${node.title}` : node.title;
};
- const getPath = node => {
+ const getPath = (node) => {
if (node.file) {
return relative(rootDirectory, node.file);
}
@@ -75,7 +75,7 @@ export function setupJUnitReportGeneration(runner, options = {}) {
runner.on('hook', setStartTime);
runner.on('hook end', setEndTime);
runner.on('test', setStartTime);
- runner.on('pass', node => results.push({ node }));
+ runner.on('pass', (node) => results.push({ node }));
runner.on('pass', setEndTime);
runner.on('fail', (node, error) => results.push({ failed: true, error, node }));
runner.on('fail', setEndTime);
@@ -89,16 +89,16 @@ export function setupJUnitReportGeneration(runner, options = {}) {
}
// filter out just the failures
- const failures = results.filter(result => result.failed);
+ const failures = results.filter((result) => result.failed);
// any failure that isn't for a test is for a hook
- const failedHooks = failures.filter(result => !allTests.includes(result.node));
+ const failedHooks = failures.filter((result) => !allTests.includes(result.node));
// mocha doesn't emit 'pass' or 'fail' when it skips a test
// or a test is pending, so we find them ourselves
const skippedResults = allTests
- .filter(node => node.pending || !results.find(result => result.node === node))
- .map(node => ({ skipped: true, node }));
+ .filter((node) => node.pending || !results.find((result) => result.node === node))
+ .map((node) => ({ skipped: true, node }));
const builder = xmlBuilder.create(
'testsuites',
@@ -124,7 +124,7 @@ export function setupJUnitReportGeneration(runner, options = {}) {
});
}
- [...results, ...skippedResults].forEach(result => {
+ [...results, ...skippedResults].forEach((result) => {
const el = addTestcaseEl(result.node);
if (result.failed) {
diff --git a/packages/kbn-test/src/mocha/run_mocha_cli.js b/packages/kbn-test/src/mocha/run_mocha_cli.js
index 77f40aded1d7f..3c77fef963a76 100644
--- a/packages/kbn-test/src/mocha/run_mocha_cli.js
+++ b/packages/kbn-test/src/mocha/run_mocha_cli.js
@@ -85,7 +85,7 @@ export function runMochaCli() {
],
}
)
- .forEach(file => {
+ .forEach((file) => {
process.argv.push(file);
});
}
diff --git a/packages/kbn-ui-framework/Gruntfile.js b/packages/kbn-ui-framework/Gruntfile.js
index cf0c1643055eb..177fd1f153155 100644
--- a/packages/kbn-ui-framework/Gruntfile.js
+++ b/packages/kbn-ui-framework/Gruntfile.js
@@ -26,7 +26,7 @@ const debounce = require('lodash/function/debounce');
const platform = require('os').platform();
const isPlatformWindows = /^win/.test(platform);
-module.exports = function(grunt) {
+module.exports = function (grunt) {
grunt.initConfig({
clean: {
target: ['target'],
@@ -62,7 +62,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.registerTask('prodBuild', ['clean:target', 'copy:makeProdBuild', 'babel:prodBuild']);
- grunt.registerTask('docSiteBuild', function() {
+ grunt.registerTask('docSiteBuild', function () {
const done = this.async();
const serverCmd = {
@@ -94,17 +94,17 @@ module.exports = function(grunt) {
uiFrameworkServerBuild.then(done);
});
- grunt.registerTask('docSiteStart', function() {
+ grunt.registerTask('docSiteStart', function () {
const done = this.async();
Promise.all([uiFrameworkWatch(), uiFrameworkServerStart()]).then(done);
});
- grunt.registerTask('compileCssLight', function() {
+ grunt.registerTask('compileCssLight', function () {
const done = this.async();
uiFrameworkCompileLight().then(done);
});
- grunt.registerTask('compileCssDark', function() {
+ grunt.registerTask('compileCssDark', function () {
const done = this.async();
uiFrameworkCompileDark().then(done);
});
@@ -146,19 +146,19 @@ module.exports = function(grunt) {
const src = 'src/kui_light.scss';
const dest = 'dist/kui_light.css';
- return new Promise(resolve => {
+ return new Promise((resolve) => {
sass.render(
{
file: src,
},
- function(error, result) {
+ function (error, result) {
if (error) {
grunt.log.error(error);
}
postcss([postcssConfig])
.process(result.css, { from: src, to: dest })
- .then(result => {
+ .then((result) => {
grunt.file.write(dest, result.css);
if (result.map) {
@@ -176,19 +176,19 @@ module.exports = function(grunt) {
const src = 'src/kui_dark.scss';
const dest = 'dist/kui_dark.css';
- return new Promise(resolve => {
+ return new Promise((resolve) => {
sass.render(
{
file: src,
},
- function(error, result) {
+ function (error, result) {
if (error) {
grunt.log.error(error);
}
postcss([postcssConfig])
.process(result.css, { from: src, to: dest })
- .then(result => {
+ .then((result) => {
grunt.file.write(dest, result.css);
if (result.map) {
diff --git a/packages/kbn-ui-framework/doc_site/src/actions/example_nav_actions.js b/packages/kbn-ui-framework/doc_site/src/actions/example_nav_actions.js
index 205be7920aa60..1836d00af4ab3 100644
--- a/packages/kbn-ui-framework/doc_site/src/actions/example_nav_actions.js
+++ b/packages/kbn-ui-framework/doc_site/src/actions/example_nav_actions.js
@@ -25,7 +25,7 @@ export const registerSection = (id, name) => ({
name,
});
-export const unregisterSection = id => ({
+export const unregisterSection = (id) => ({
type: ActionTypes.UNREGISTER_SECTION,
id,
});
diff --git a/packages/kbn-ui-framework/doc_site/src/components/guide_code/guide_code.js b/packages/kbn-ui-framework/doc_site/src/components/guide_code/guide_code.js
index f5845becbe77f..41aeb74d24b6b 100644
--- a/packages/kbn-ui-framework/doc_site/src/components/guide_code/guide_code.js
+++ b/packages/kbn-ui-framework/doc_site/src/components/guide_code/guide_code.js
@@ -19,4 +19,4 @@
import React from 'react';
-export const GuideCode = props => {props.children}
;
+export const GuideCode = (props) => {props.children}
;
diff --git a/packages/kbn-ui-framework/doc_site/src/components/guide_code_viewer/guide_code_viewer.js b/packages/kbn-ui-framework/doc_site/src/components/guide_code_viewer/guide_code_viewer.js
index b1d2f8e031f7c..b387a89b7072c 100644
--- a/packages/kbn-ui-framework/doc_site/src/components/guide_code_viewer/guide_code_viewer.js
+++ b/packages/kbn-ui-framework/doc_site/src/components/guide_code_viewer/guide_code_viewer.js
@@ -65,7 +65,7 @@ export class GuideCodeViewer extends Component {
'is-code-viewer-open': this.props.isOpen,
});
- const codeSections = this.props.source.map(sourceObject =>
+ const codeSections = this.props.source.map((sourceObject) =>
this.renderSection(sourceObject.type, sourceObject.code)
);
diff --git a/packages/kbn-ui-framework/doc_site/src/components/guide_demo/guide_demo.js b/packages/kbn-ui-framework/doc_site/src/components/guide_demo/guide_demo.js
index 93470ac6de128..d968e014370f8 100644
--- a/packages/kbn-ui-framework/doc_site/src/components/guide_demo/guide_demo.js
+++ b/packages/kbn-ui-framework/doc_site/src/components/guide_demo/guide_demo.js
@@ -68,7 +68,7 @@ export class GuideDemo extends Component {
});
return (
- (this.content = c)} {...rest}>
+
(this.content = c)} {...rest}>
{children}
);
diff --git a/packages/kbn-ui-framework/doc_site/src/components/guide_link/guide_link.js b/packages/kbn-ui-framework/doc_site/src/components/guide_link/guide_link.js
index b49880e0e3bfa..62d1e3ac8bedd 100644
--- a/packages/kbn-ui-framework/doc_site/src/components/guide_link/guide_link.js
+++ b/packages/kbn-ui-framework/doc_site/src/components/guide_link/guide_link.js
@@ -19,7 +19,7 @@
import React from 'react';
-export const GuideLink = props => (
+export const GuideLink = (props) => (
{props.children}
diff --git a/packages/kbn-ui-framework/doc_site/src/components/guide_nav/guide_nav.js b/packages/kbn-ui-framework/doc_site/src/components/guide_nav/guide_nav.js
index f31a3b10eef4e..49225c96ba5e5 100644
--- a/packages/kbn-ui-framework/doc_site/src/components/guide_nav/guide_nav.js
+++ b/packages/kbn-ui-framework/doc_site/src/components/guide_nav/guide_nav.js
@@ -120,7 +120,7 @@ export class GuideNav extends Component {
});
const componentNavItems = this.props.components
- .filter(item => item.name.toLowerCase().indexOf(this.state.search.toLowerCase()) !== -1)
+ .filter((item) => item.name.toLowerCase().indexOf(this.state.search.toLowerCase()) !== -1)
.map((item, index) => {
const icon = item.hasReact ?
: undefined;
return (
@@ -135,7 +135,7 @@ export class GuideNav extends Component {
});
const sandboxNavItems = this.props.sandboxes
- .filter(item => item.name.toLowerCase().indexOf(this.state.search.toLowerCase()) !== -1)
+ .filter((item) => item.name.toLowerCase().indexOf(this.state.search.toLowerCase()) !== -1)
.map((item, index) => {
const icon = item.hasReact ?
: undefined;
return (
diff --git a/packages/kbn-ui-framework/doc_site/src/components/guide_page/guide_page_container.js b/packages/kbn-ui-framework/doc_site/src/components/guide_page/guide_page_container.js
index 5d8e6993abe4e..0a7442fce4723 100644
--- a/packages/kbn-ui-framework/doc_site/src/components/guide_page/guide_page_container.js
+++ b/packages/kbn-ui-framework/doc_site/src/components/guide_page/guide_page_container.js
@@ -21,7 +21,7 @@ import { connect } from 'react-redux';
import { getSections } from '../../store';
import { GuidePage } from './guide_page';
-const mapStateToProps = state => ({
+const mapStateToProps = (state) => ({
sections: getSections(state),
});
diff --git a/packages/kbn-ui-framework/doc_site/src/components/guide_page_side_nav/guide_page_side_nav.js b/packages/kbn-ui-framework/doc_site/src/components/guide_page_side_nav/guide_page_side_nav.js
index bd7dc0705c6d9..9aeca1b30e03d 100644
--- a/packages/kbn-ui-framework/doc_site/src/components/guide_page_side_nav/guide_page_side_nav.js
+++ b/packages/kbn-ui-framework/doc_site/src/components/guide_page_side_nav/guide_page_side_nav.js
@@ -20,7 +20,7 @@
import PropTypes from 'prop-types';
import React from 'react';
-export const GuidePageSideNav = props => {
+export const GuidePageSideNav = (props) => {
return (
{props.title}
diff --git a/packages/kbn-ui-framework/doc_site/src/components/guide_text/guide_text.js b/packages/kbn-ui-framework/doc_site/src/components/guide_text/guide_text.js
index 26c68dfe87951..820e4728da86d 100644
--- a/packages/kbn-ui-framework/doc_site/src/components/guide_text/guide_text.js
+++ b/packages/kbn-ui-framework/doc_site/src/components/guide_text/guide_text.js
@@ -19,4 +19,4 @@
import React from 'react';
-export const GuideText = props =>
{props.children}
;
+export const GuideText = (props) =>
{props.children}
;
diff --git a/packages/kbn-ui-framework/doc_site/src/index.js b/packages/kbn-ui-framework/doc_site/src/index.js
index 5473024ae93c9..f7f1df059a041 100644
--- a/packages/kbn-ui-framework/doc_site/src/index.js
+++ b/packages/kbn-ui-framework/doc_site/src/index.js
@@ -58,16 +58,16 @@ const routes = [
];
// Update document title with route name.
-const onRouteEnter = route => {
+const onRouteEnter = (route) => {
const leafRoute = route.routes[route.routes.length - 1];
document.title = leafRoute.name
? `Kibana UI Framework - ${leafRoute.name}`
: 'Kibana UI Framework';
};
-const syncTitleWithRoutes = routesList => {
+const syncTitleWithRoutes = (routesList) => {
if (!routesList) return;
- routesList.forEach(route => {
+ routesList.forEach((route) => {
route.onEnter = onRouteEnter; // eslint-disable-line no-param-reassign
if (route.indexRoute) {
// Index routes have a weird relationship with their "parent" routes,
diff --git a/packages/kbn-ui-framework/doc_site/src/services/routes/routes.js b/packages/kbn-ui-framework/doc_site/src/services/routes/routes.js
index 32912d5eb9c86..510a7fea7a026 100644
--- a/packages/kbn-ui-framework/doc_site/src/services/routes/routes.js
+++ b/packages/kbn-ui-framework/doc_site/src/services/routes/routes.js
@@ -159,14 +159,14 @@ export default {
return allRoutes;
},
getPreviousRoute: function getPreviousRoute(routeName) {
- const index = allRoutes.findIndex(item => {
+ const index = allRoutes.findIndex((item) => {
return item.name === routeName;
});
return index >= 0 ? allRoutes[index - 1] : undefined;
},
getNextRoute: function getNextRoute(routeName) {
- const index = allRoutes.findIndex(item => {
+ const index = allRoutes.findIndex((item) => {
return item.name === routeName;
});
diff --git a/packages/kbn-ui-framework/doc_site/src/services/string/slugify.js b/packages/kbn-ui-framework/doc_site/src/services/string/slugify.js
index f016857ff4414..2e0678f569774 100644
--- a/packages/kbn-ui-framework/doc_site/src/services/string/slugify.js
+++ b/packages/kbn-ui-framework/doc_site/src/services/string/slugify.js
@@ -32,7 +32,7 @@ function one(str) {
}
function each(items, src, dest) {
- return items.map(item => {
+ return items.map((item) => {
const _item = item;
_item[dest] = one(_item[src]);
return _item;
diff --git a/packages/kbn-ui-framework/doc_site/src/store/reducers/sections_reducer.js b/packages/kbn-ui-framework/doc_site/src/store/reducers/sections_reducer.js
index 6b61c009c5186..a86580903de68 100644
--- a/packages/kbn-ui-framework/doc_site/src/store/reducers/sections_reducer.js
+++ b/packages/kbn-ui-framework/doc_site/src/store/reducers/sections_reducer.js
@@ -40,7 +40,7 @@ export default function sectionsReducer(state = defaultState, action) {
case ActionTypes.UNREGISTER_SECTION: {
const sections = state.sections.slice();
- const index = sections.findIndex(section => section.id === action.id);
+ const index = sections.findIndex((section) => section.id === action.id);
sections.splice(index, 1);
return {
diff --git a/packages/kbn-ui-framework/doc_site/src/views/bar/bar_example.js b/packages/kbn-ui-framework/doc_site/src/views/bar/bar_example.js
index a71b2ff28ee65..9f2f1dec56055 100644
--- a/packages/kbn-ui-framework/doc_site/src/views/bar/bar_example.js
+++ b/packages/kbn-ui-framework/doc_site/src/views/bar/bar_example.js
@@ -36,7 +36,7 @@ import BarThreeSections from './bar_three_sections';
import barThreeSectionsSource from '!!raw-loader!./bar_three_sections';
const barThreeSectionsHtml = renderToHtml(BarThreeSections);
-export default props => (
+export default (props) => (
(
);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/form/form_example.js b/packages/kbn-ui-framework/doc_site/src/views/form/form_example.js
index 0717459151584..88edfc5242564 100644
--- a/packages/kbn-ui-framework/doc_site/src/views/form/form_example.js
+++ b/packages/kbn-ui-framework/doc_site/src/views/form/form_example.js
@@ -59,7 +59,7 @@ import CheckBox from './check_box';
import checkBoxSource from '!!raw-loader!./check_box';
const checkBoxHtml = renderToHtml(CheckBox);
-export default props => (
+export default (props) => (
- this.handleChange(event, 'value1')}>
+ this.handleChange(event, 'value1')}
+ >
@@ -44,7 +47,7 @@ class KuiSelectExample extends Component {
this.handleChange(event, 'value2')}
+ onChange={(event) => this.handleChange(event, 'value2')}
isDisabled
>
@@ -52,7 +55,7 @@ class KuiSelectExample extends Component {
this.handleChange(event, 'value3')}
+ onChange={(event) => this.handleChange(event, 'value3')}
isInvalid
>
@@ -60,7 +63,7 @@ class KuiSelectExample extends Component {
this.handleChange(event, 'value4')}
+ onChange={(event) => this.handleChange(event, 'value4')}
size="small"
>
@@ -68,7 +71,7 @@ class KuiSelectExample extends Component {
this.handleChange(event, 'value5')}
+ onChange={(event) => this.handleChange(event, 'value5')}
size="large"
>
diff --git a/packages/kbn-ui-framework/doc_site/src/views/form/text_area.js b/packages/kbn-ui-framework/doc_site/src/views/form/text_area.js
index b56051071a6da..0d4e876d996a2 100644
--- a/packages/kbn-ui-framework/doc_site/src/views/form/text_area.js
+++ b/packages/kbn-ui-framework/doc_site/src/views/form/text_area.js
@@ -40,38 +40,38 @@ class KuiTextAreaExample extends Component {
this.handleChange(event, 'value1')}
+ onChange={(event) => this.handleChange(event, 'value1')}
/>
this.handleChange(event, 'value2')}
+ onChange={(event) => this.handleChange(event, 'value2')}
/>
this.handleChange(event, 'value3')}
+ onChange={(event) => this.handleChange(event, 'value3')}
/>
this.handleChange(event, 'value4')}
+ onChange={(event) => this.handleChange(event, 'value4')}
/>
this.handleChange(event, 'value5')}
+ onChange={(event) => this.handleChange(event, 'value5')}
/>
this.handleChange(event, 'value6')}
+ onChange={(event) => this.handleChange(event, 'value6')}
/>
);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/form/text_area_non_resizable.js b/packages/kbn-ui-framework/doc_site/src/views/form/text_area_non_resizable.js
index aba16bae1269b..65c7fa765a359 100644
--- a/packages/kbn-ui-framework/doc_site/src/views/form/text_area_non_resizable.js
+++ b/packages/kbn-ui-framework/doc_site/src/views/form/text_area_non_resizable.js
@@ -33,7 +33,7 @@ class KuiTextAreaNonResizableExample extends Component {
return (
this.handleChange(event, 'value1')}
+ onChange={(event) => this.handleChange(event, 'value1')}
isNonResizable
/>
);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/form/text_input.js b/packages/kbn-ui-framework/doc_site/src/views/form/text_input.js
index a3cebcb07bf2b..5bb3fabe22fa5 100644
--- a/packages/kbn-ui-framework/doc_site/src/views/form/text_input.js
+++ b/packages/kbn-ui-framework/doc_site/src/views/form/text_input.js
@@ -40,39 +40,39 @@ class KuiTextInputExample extends Component {
this.handleChange(event, 'value1')}
+ onChange={(event) => this.handleChange(event, 'value1')}
/>
this.handleChange(event, 'value2')}
+ onChange={(event) => this.handleChange(event, 'value2')}
/>
this.handleChange(event, 'value3')}
+ onChange={(event) => this.handleChange(event, 'value3')}
/>
this.handleChange(event, 'value4')}
+ onChange={(event) => this.handleChange(event, 'value4')}
/>
this.handleChange(event, 'value5')}
+ onChange={(event) => this.handleChange(event, 'value5')}
/>
this.handleChange(event, 'value6')}
+ onChange={(event) => this.handleChange(event, 'value6')}
/>
);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/form_layout/form_layout_example.js b/packages/kbn-ui-framework/doc_site/src/views/form_layout/form_layout_example.js
index 9c76a8b3a1d3a..7b1a5d2785cac 100644
--- a/packages/kbn-ui-framework/doc_site/src/views/form_layout/form_layout_example.js
+++ b/packages/kbn-ui-framework/doc_site/src/views/form_layout/form_layout_example.js
@@ -28,7 +28,7 @@ import FieldGroup from './field_group';
import fieldGroupSource from '!!raw-loader!./field_group';
const fieldGroupHtml = renderToHtml(FieldGroup);
-export default props => (
+export default (props) => (
(
+export default (props) => (
(
+export default (props) => (
(
+export default (props) => (
(
+export default (props) => (
(
+export default (props) => (
(
+export default (props) => (
(
+export default (props) => (
item.title.toLowerCase(),
+ getValue: (item) => item.title.toLowerCase(),
isAscending: true,
},
{
name: 'description',
- getValue: item => item.description.toLowerCase(),
+ getValue: (item) => item.description.toLowerCase(),
isAscending: true,
},
],
@@ -70,7 +70,7 @@ export class FluidTable extends Component {
);
}
- onSort = prop => {
+ onSort = (prop) => {
this.sortableProperties.sortOn(prop);
this.setState({
@@ -79,7 +79,7 @@ export class FluidTable extends Component {
};
renderRows() {
- return this.items.map(item => (
+ return this.items.map((item) => (
{item.title}
diff --git a/packages/kbn-ui-framework/doc_site/src/views/table/listing_table.js b/packages/kbn-ui-framework/doc_site/src/views/table/listing_table.js
index fece33c16980a..38eaa7b396ef5 100644
--- a/packages/kbn-ui-framework/doc_site/src/views/table/listing_table.js
+++ b/packages/kbn-ui-framework/doc_site/src/views/table/listing_table.js
@@ -137,7 +137,7 @@ export class ListingTable extends Component {
];
}
- onItemSelectionChanged = selectedRowIds => {
+ onItemSelectionChanged = (selectedRowIds) => {
this.setState({ selectedRowIds });
};
diff --git a/packages/kbn-ui-framework/doc_site/src/views/table/table.js b/packages/kbn-ui-framework/doc_site/src/views/table/table.js
index 45f6e389e7234..0c55d1dc5ed51 100644
--- a/packages/kbn-ui-framework/doc_site/src/views/table/table.js
+++ b/packages/kbn-ui-framework/doc_site/src/views/table/table.js
@@ -85,12 +85,12 @@ export class Table extends Component {
[
{
name: 'title',
- getValue: item => item.title.toLowerCase(),
+ getValue: (item) => item.title.toLowerCase(),
isAscending: true,
},
{
name: 'status',
- getValue: item => item.status.toLowerCase(),
+ getValue: (item) => item.status.toLowerCase(),
isAscending: true,
},
],
@@ -98,7 +98,7 @@ export class Table extends Component {
);
}
- onSort = prop => {
+ onSort = (prop) => {
this.sortableProperties.sortOn(prop);
this.setState({
@@ -106,35 +106,35 @@ export class Table extends Component {
});
};
- toggleItem = item => {
- this.setState(previousState => {
+ toggleItem = (item) => {
+ this.setState((previousState) => {
const rowToSelectedStateMap = new Map(previousState.rowToSelectedStateMap);
rowToSelectedStateMap.set(item, !rowToSelectedStateMap.get(item));
return { rowToSelectedStateMap };
});
};
- isItemChecked = item => {
+ isItemChecked = (item) => {
return this.state.rowToSelectedStateMap.get(item);
};
- togglePopover = item => {
- this.setState(previousState => {
+ togglePopover = (item) => {
+ this.setState((previousState) => {
const rowToOpenActionsPopoverMap = new Map(previousState.rowToOpenActionsPopoverMap);
rowToOpenActionsPopoverMap.set(item, !rowToOpenActionsPopoverMap.get(item));
return { rowToOpenActionsPopoverMap };
});
};
- closePopover = item => {
- this.setState(previousState => {
+ closePopover = (item) => {
+ this.setState((previousState) => {
const rowToOpenActionsPopoverMap = new Map(previousState.rowToOpenActionsPopoverMap);
rowToOpenActionsPopoverMap.set(item, false);
return { rowToOpenActionsPopoverMap };
});
};
- isPopoverOpen = item => {
+ isPopoverOpen = (item) => {
return this.state.rowToOpenActionsPopoverMap.get(item);
};
@@ -146,7 +146,7 @@ export class Table extends Component {
renderRows() {
const rows = [];
- this.items.forEach(item => {
+ this.items.forEach((item) => {
const classes = classNames({
'kuiTableRowCell--wrap': item.isWrapped,
});
diff --git a/packages/kbn-ui-framework/doc_site/src/views/table/table_example.js b/packages/kbn-ui-framework/doc_site/src/views/table/table_example.js
index 9ed449ea9767b..07e328c4e5e83 100644
--- a/packages/kbn-ui-framework/doc_site/src/views/table/table_example.js
+++ b/packages/kbn-ui-framework/doc_site/src/views/table/table_example.js
@@ -52,7 +52,7 @@ import { ListingTableLoadingItems } from './listing_table_loading_items';
import listingTableLoadingItemsSource from '!!raw-loader!./listing_table_loading_items'; // eslint-disable-line import/default
const listingTableLoadingItemsHtml = renderToHtml(ListingTableLoadingItems);
-export default props => (
+export default (props) => (
{
+ onSelectedTabChanged = (id) => {
this.setState({
selectedTabId: id,
});
diff --git a/packages/kbn-ui-framework/doc_site/src/views/tabs/tabs_example.js b/packages/kbn-ui-framework/doc_site/src/views/tabs/tabs_example.js
index 0d3663167520e..125fd0fb53ae3 100644
--- a/packages/kbn-ui-framework/doc_site/src/views/tabs/tabs_example.js
+++ b/packages/kbn-ui-framework/doc_site/src/views/tabs/tabs_example.js
@@ -35,7 +35,7 @@ import Tabs from './tabs';
import tabsSource from '!!raw-loader!./tabs';
const tabsHtml = renderToHtml(Tabs);
-export default props => (
+export default (props) => (
(
+export default (props) => (
(
+export default (props) => (
(
+export default (props) => (
(
+export default (props) => (
diff --git a/packages/kbn-ui-framework/generator-kui/app/component.js b/packages/kbn-ui-framework/generator-kui/app/component.js
index 1cf03b89d54f7..bcb561f6fa729 100644
--- a/packages/kbn-ui-framework/generator-kui/app/component.js
+++ b/packages/kbn-ui-framework/generator-kui/app/component.js
@@ -39,7 +39,7 @@ module.exports = class extends Generator {
},
],
},
- ]).then(answers => {
+ ]).then((answers) => {
this.config = answers;
});
}
diff --git a/packages/kbn-ui-framework/generator-kui/app/documentation.js b/packages/kbn-ui-framework/generator-kui/app/documentation.js
index c2735f1ce978b..3cbc0263789c6 100644
--- a/packages/kbn-ui-framework/generator-kui/app/documentation.js
+++ b/packages/kbn-ui-framework/generator-kui/app/documentation.js
@@ -43,7 +43,7 @@ module.exports = class extends Generator {
},
],
},
- ]).then(answers => {
+ ]).then((answers) => {
this.config = answers;
});
}
diff --git a/packages/kbn-ui-framework/generator-kui/component/index.js b/packages/kbn-ui-framework/generator-kui/component/index.js
index 3abf84b7a2073..56c49fe6fa471 100644
--- a/packages/kbn-ui-framework/generator-kui/component/index.js
+++ b/packages/kbn-ui-framework/generator-kui/component/index.js
@@ -49,7 +49,7 @@ module.exports = class extends Generator {
type: 'confirm',
default: true,
},
- ]).then(answers => {
+ ]).then((answers) => {
this.config = answers;
if (!answers.name || !answers.name.trim()) {
@@ -62,7 +62,7 @@ module.exports = class extends Generator {
writing() {
const config = this.config;
- const writeComponent = isStatelessFunction => {
+ const writeComponent = (isStatelessFunction) => {
const componentName = utils.makeComponentName(config.name);
const cssClassName = utils.lowerCaseFirstLetter(componentName);
const fileName = config.name;
diff --git a/packages/kbn-ui-framework/generator-kui/documentation/index.js b/packages/kbn-ui-framework/generator-kui/documentation/index.js
index daaaf32c8fd22..03f8d5813b251 100644
--- a/packages/kbn-ui-framework/generator-kui/documentation/index.js
+++ b/packages/kbn-ui-framework/generator-kui/documentation/index.js
@@ -47,7 +47,7 @@ module.exports = class extends Generator {
name: 'folderName',
type: 'input',
store: true,
- default: answers => answers.name,
+ default: (answers) => answers.name,
});
prompts.push({
@@ -58,7 +58,7 @@ module.exports = class extends Generator {
});
}
- return this.prompt(prompts).then(answers => {
+ return this.prompt(prompts).then((answers) => {
this.config = answers;
});
}
diff --git a/packages/kbn-ui-framework/generator-kui/utils.js b/packages/kbn-ui-framework/generator-kui/utils.js
index c51393121777e..0f7b910451767 100644
--- a/packages/kbn-ui-framework/generator-kui/utils.js
+++ b/packages/kbn-ui-framework/generator-kui/utils.js
@@ -21,7 +21,7 @@ function makeComponentName(str, usePrefix = true) {
const words = str.split('_');
const componentName = words
- .map(function(word) {
+ .map(function (word) {
return upperCaseFirstLetter(word);
})
.join('');
@@ -30,13 +30,13 @@ function makeComponentName(str, usePrefix = true) {
}
function lowerCaseFirstLetter(str) {
- return str.replace(/\w\S*/g, function(txt) {
+ return str.replace(/\w\S*/g, function (txt) {
return txt.charAt(0).toLowerCase() + txt.substr(1);
});
}
function upperCaseFirstLetter(str) {
- return str.replace(/\w\S*/g, function(txt) {
+ return str.replace(/\w\S*/g, function (txt) {
return txt.charAt(0).toUpperCase() + txt.substr(1);
});
}
diff --git a/packages/kbn-ui-framework/src/components/button/button.js b/packages/kbn-ui-framework/src/components/button/button.js
index b18ca87a27b1e..e95b9209343ae 100644
--- a/packages/kbn-ui-framework/src/components/button/button.js
+++ b/packages/kbn-ui-framework/src/components/button/button.js
@@ -133,7 +133,7 @@ const KuiLinkButton = ({
children,
...rest
}) => {
- const onClick = e => {
+ const onClick = (e) => {
if (disabled) {
e.preventDefault();
}
diff --git a/packages/kbn-ui-framework/src/components/button/button.test.js b/packages/kbn-ui-framework/src/components/button/button.test.js
index d664ce85f9a37..db74308d9de8d 100644
--- a/packages/kbn-ui-framework/src/components/button/button.test.js
+++ b/packages/kbn-ui-framework/src/components/button/button.test.js
@@ -48,7 +48,7 @@ describe('KuiButton', () => {
describe('Props', () => {
describe('buttonType', () => {
- BUTTON_TYPES.forEach(buttonType => {
+ BUTTON_TYPES.forEach((buttonType) => {
describe(`${buttonType}`, () => {
test(`renders the ${buttonType} class`, () => {
const $button = render();
diff --git a/packages/kbn-ui-framework/src/components/button/button_group/button_group.js b/packages/kbn-ui-framework/src/components/button/button_group/button_group.js
index 49eaff03efd40..630d5598cab9c 100644
--- a/packages/kbn-ui-framework/src/components/button/button_group/button_group.js
+++ b/packages/kbn-ui-framework/src/components/button/button_group/button_group.js
@@ -22,7 +22,7 @@ import React from 'react';
import classNames from 'classnames';
-const KuiButtonGroup = props => {
+const KuiButtonGroup = (props) => {
const classes = classNames('kuiButtonGroup', {
'kuiButtonGroup--united': props.isUnited,
});
diff --git a/packages/kbn-ui-framework/src/components/button/button_icon/button_icon.js b/packages/kbn-ui-framework/src/components/button/button_icon/button_icon.js
index 736e349396b7e..256d7c4a1786e 100644
--- a/packages/kbn-ui-framework/src/components/button/button_icon/button_icon.js
+++ b/packages/kbn-ui-framework/src/components/button/button_icon/button_icon.js
@@ -24,7 +24,7 @@ import classNames from 'classnames';
const ICON_TYPES = ['create', 'delete', 'previous', 'next', 'loading', 'settings', 'menu'];
-const KuiButtonIcon = props => {
+const KuiButtonIcon = (props) => {
const typeToClassNameMap = {
create: 'fa-plus',
delete: 'fa-trash',
diff --git a/packages/kbn-ui-framework/src/components/button/button_icon/button_icon.test.js b/packages/kbn-ui-framework/src/components/button/button_icon/button_icon.test.js
index e270f26644393..553fef1432487 100644
--- a/packages/kbn-ui-framework/src/components/button/button_icon/button_icon.test.js
+++ b/packages/kbn-ui-framework/src/components/button/button_icon/button_icon.test.js
@@ -33,7 +33,7 @@ describe('KuiButtonIcon', () => {
describe('Props', () => {
describe('type', () => {
- ICON_TYPES.forEach(type => {
+ ICON_TYPES.forEach((type) => {
describe(`${type}`, () => {
test(`renders the ${type} class`, () => {
const $buttonIcon = render();
diff --git a/packages/kbn-ui-framework/src/components/button/link_button.test.js b/packages/kbn-ui-framework/src/components/button/link_button.test.js
index 4f77af3febf54..4489dc1a46d2a 100644
--- a/packages/kbn-ui-framework/src/components/button/link_button.test.js
+++ b/packages/kbn-ui-framework/src/components/button/link_button.test.js
@@ -49,7 +49,7 @@ describe('KuiLinkButton', () => {
describe('Props', () => {
describe('buttonType', () => {
- BUTTON_TYPES.forEach(buttonType => {
+ BUTTON_TYPES.forEach((buttonType) => {
describe(`${buttonType}`, () => {
test(`renders the ${buttonType} class`, () => {
const $button = render(
diff --git a/packages/kbn-ui-framework/src/components/button/submit_button.test.js b/packages/kbn-ui-framework/src/components/button/submit_button.test.js
index fc30523649c12..77ad9eb40c55f 100644
--- a/packages/kbn-ui-framework/src/components/button/submit_button.test.js
+++ b/packages/kbn-ui-framework/src/components/button/submit_button.test.js
@@ -47,7 +47,7 @@ describe('KuiSubmitButton', () => {
describe('Props', () => {
describe('buttonType', () => {
- BUTTON_TYPES.forEach(buttonType => {
+ BUTTON_TYPES.forEach((buttonType) => {
describe(`${buttonType}`, () => {
test(`renders the ${buttonType} class`, () => {
const $button = render();
diff --git a/packages/kbn-ui-framework/src/components/collapse_button/collapse_button.test.js b/packages/kbn-ui-framework/src/components/collapse_button/collapse_button.test.js
index f6245ef654bb9..8ce225038b8b7 100644
--- a/packages/kbn-ui-framework/src/components/collapse_button/collapse_button.test.js
+++ b/packages/kbn-ui-framework/src/components/collapse_button/collapse_button.test.js
@@ -27,7 +27,7 @@ import { DIRECTIONS, KuiCollapseButton } from './collapse_button';
describe('KuiCollapseButton', () => {
describe('Props', () => {
describe('direction', () => {
- DIRECTIONS.forEach(direction => {
+ DIRECTIONS.forEach((direction) => {
describe(`${direction}`, () => {
test(`renders the ${direction} class`, () => {
const component = ;
diff --git a/packages/kbn-ui-framework/src/components/form/select/select.test.js b/packages/kbn-ui-framework/src/components/form/select/select.test.js
index 81c1e4d9a0ff2..056bc88016d51 100644
--- a/packages/kbn-ui-framework/src/components/form/select/select.test.js
+++ b/packages/kbn-ui-framework/src/components/form/select/select.test.js
@@ -77,7 +77,7 @@ describe('KuiSelect', () => {
});
describe('size', () => {
- SELECT_SIZE.forEach(size => {
+ SELECT_SIZE.forEach((size) => {
test(`renders ${size}`, () => {
const component = {}} />;
diff --git a/packages/kbn-ui-framework/src/components/form/text_area/text_area.test.js b/packages/kbn-ui-framework/src/components/form/text_area/text_area.test.js
index eddb655094088..d87b7b76789de 100644
--- a/packages/kbn-ui-framework/src/components/form/text_area/text_area.test.js
+++ b/packages/kbn-ui-framework/src/components/form/text_area/text_area.test.js
@@ -87,7 +87,7 @@ describe('KuiTextArea', () => {
});
describe('size', () => {
- TEXTAREA_SIZE.forEach(size => {
+ TEXTAREA_SIZE.forEach((size) => {
test(`renders ${size}`, () => {
const component = {}} />;
diff --git a/packages/kbn-ui-framework/src/components/form/text_input/text_input.test.js b/packages/kbn-ui-framework/src/components/form/text_input/text_input.test.js
index 9ef3c420bba68..41d3726582fb5 100644
--- a/packages/kbn-ui-framework/src/components/form/text_input/text_input.test.js
+++ b/packages/kbn-ui-framework/src/components/form/text_input/text_input.test.js
@@ -89,7 +89,7 @@ describe('KuiTextInput', () => {
});
describe('size', () => {
- TEXTINPUT_SIZE.forEach(size => {
+ TEXTINPUT_SIZE.forEach((size) => {
test(`renders ${size}`, () => {
const component = {}} />;
diff --git a/packages/kbn-ui-framework/src/components/table/listing_table/listing_table.js b/packages/kbn-ui-framework/src/components/table/listing_table/listing_table.js
index 3478c159cbbb9..82b2afba7bc40 100644
--- a/packages/kbn-ui-framework/src/components/table/listing_table/listing_table.js
+++ b/packages/kbn-ui-framework/src/components/table/listing_table/listing_table.js
@@ -57,7 +57,7 @@ export function KuiListingTable({
if (areAllRowsSelected()) {
onItemSelectionChanged([]);
} else {
- onItemSelectionChanged(rows.map(row => row.id));
+ onItemSelectionChanged(rows.map((row) => row.id));
}
}
diff --git a/packages/kbn-ui-framework/src/components/table/listing_table/listing_table.test.js b/packages/kbn-ui-framework/src/components/table/listing_table/listing_table.test.js
index b47a1275d1565..2607caeba0dbb 100644
--- a/packages/kbn-ui-framework/src/components/table/listing_table/listing_table.test.js
+++ b/packages/kbn-ui-framework/src/components/table/listing_table/listing_table.test.js
@@ -22,7 +22,7 @@ import { mount, shallow } from 'enzyme';
import { requiredProps, takeMountedSnapshot } from '../../../test';
import { KuiListingTable } from './listing_table';
-const getProps = customProps => {
+const getProps = (customProps) => {
const defaultProps = {
header: ['Breed', 'Description'],
rows: [
@@ -59,20 +59,14 @@ test('renders KuiListingTable', () => {
test('selecting a row calls onItemSelectionChanged', () => {
const props = getProps();
const component = shallow();
- component
- .find('KuiListingTableRow')
- .at(1)
- .prop('onSelectionChanged')('1');
+ component.find('KuiListingTableRow').at(1).prop('onSelectionChanged')('1');
expect(props.onItemSelectionChanged).toHaveBeenCalledWith(['1']);
});
test('selectedRowIds is preserved when onItemSelectionChanged is called', () => {
const props = getProps({ selectedRowIds: ['3'] });
const component = shallow();
- component
- .find('KuiListingTableRow')
- .at(0)
- .prop('onSelectionChanged')('1');
+ component.find('KuiListingTableRow').at(0).prop('onSelectionChanged')('1');
expect(props.onItemSelectionChanged).toHaveBeenCalledWith(expect.arrayContaining(['1', '3']));
});
diff --git a/packages/kbn-ui-framework/src/components/typography/typography.test.js b/packages/kbn-ui-framework/src/components/typography/typography.test.js
index 7155483354e48..b341a2c442fb2 100644
--- a/packages/kbn-ui-framework/src/components/typography/typography.test.js
+++ b/packages/kbn-ui-framework/src/components/typography/typography.test.js
@@ -35,7 +35,7 @@ describe('KuiTitle', () => {
});
describe('renders size', () => {
- SIZES.forEach(size => {
+ SIZES.forEach((size) => {
test(size, () => {
const component = render(
diff --git a/packages/kbn-ui-framework/src/services/accessibility/html_id_generator.js b/packages/kbn-ui-framework/src/services/accessibility/html_id_generator.js
index 6537f0d157997..164910341f027 100644
--- a/packages/kbn-ui-framework/src/services/accessibility/html_id_generator.js
+++ b/packages/kbn-ui-framework/src/services/accessibility/html_id_generator.js
@@ -27,5 +27,5 @@ import uuid from 'uuid';
*/
export function htmlIdGenerator(idPrefix) {
const prefix = idPrefix || uuid.v1();
- return suffix => `${prefix}_${suffix || uuid.v1()}`;
+ return (suffix) => `${prefix}_${suffix || uuid.v1()}`;
}
diff --git a/packages/kbn-ui-framework/src/services/sort/sortable_properties.js b/packages/kbn-ui-framework/src/services/sort/sortable_properties.js
index 4b08b20b68cbf..6c445bf8b747b 100644
--- a/packages/kbn-ui-framework/src/services/sort/sortable_properties.js
+++ b/packages/kbn-ui-framework/src/services/sort/sortable_properties.js
@@ -73,7 +73,7 @@ export class SortableProperties {
* @returns {SortableProperty|undefined}
*/
getSortablePropertyByName(propertyName) {
- return this.sortableProperties.find(property => property.name === propertyName);
+ return this.sortableProperties.find((property) => property.name === propertyName);
}
/**
diff --git a/packages/kbn-ui-framework/src/services/sort/sortable_properties.test.js b/packages/kbn-ui-framework/src/services/sort/sortable_properties.test.js
index 223724edac8b8..0037787830ac2 100644
--- a/packages/kbn-ui-framework/src/services/sort/sortable_properties.test.js
+++ b/packages/kbn-ui-framework/src/services/sort/sortable_properties.test.js
@@ -22,19 +22,19 @@ import { SortableProperties } from './sortable_properties';
describe('SortProperties', () => {
const name = {
name: 'name',
- getValue: bird => bird.name,
+ getValue: (bird) => bird.name,
isAscending: true,
};
const size = {
name: 'size',
- getValue: bird => bird.size,
+ getValue: (bird) => bird.size,
isAscending: false,
};
const color = {
name: 'color',
- getValue: bird => bird.color,
+ getValue: (bird) => bird.color,
isAscending: true,
};
diff --git a/packages/kbn-ui-framework/src/test/take_mounted_snapshot.js b/packages/kbn-ui-framework/src/test/take_mounted_snapshot.js
index 4d87930d434b5..d4567ebb800fe 100644
--- a/packages/kbn-ui-framework/src/test/take_mounted_snapshot.js
+++ b/packages/kbn-ui-framework/src/test/take_mounted_snapshot.js
@@ -23,7 +23,7 @@
* containing both React components and HTML elements. This function removes the React components,
* leaving only HTML elements in the snapshot.
*/
-export const takeMountedSnapshot = mountedComponent => {
+export const takeMountedSnapshot = (mountedComponent) => {
const html = mountedComponent.html();
const template = document.createElement('template');
template.innerHTML = html; // eslint-disable-line no-unsanitized/property
diff --git a/packages/kbn-ui-shared-deps/public_path_loader.js b/packages/kbn-ui-shared-deps/public_path_loader.js
index 6b7a27c9ca52b..fceebd6d6b3a1 100644
--- a/packages/kbn-ui-shared-deps/public_path_loader.js
+++ b/packages/kbn-ui-shared-deps/public_path_loader.js
@@ -17,7 +17,7 @@
* under the License.
*/
-module.exports = function(source) {
+module.exports = function (source) {
const options = this.query;
return `__webpack_public_path__ = window.__kbnPublicPath__['${options.key}'];${source}`;
};
diff --git a/packages/kbn-ui-shared-deps/scripts/build.js b/packages/kbn-ui-shared-deps/scripts/build.js
index e45b3dbed1748..af4e3481e624d 100644
--- a/packages/kbn-ui-shared-deps/scripts/build.js
+++ b/packages/kbn-ui-shared-deps/scripts/build.js
@@ -38,7 +38,7 @@ run(
);
/** @param {webpack.Stats} stats */
- const onCompilationComplete = stats => {
+ const onCompilationComplete = (stats) => {
const took = Math.round((stats.endTime - stats.startTime) / 1000);
if (!stats.hasErrors() && !stats.hasWarnings()) {
@@ -55,7 +55,7 @@ run(
};
if (flags.watch) {
- compiler.hooks.done.tap('report on stats', stats => {
+ compiler.hooks.done.tap('report on stats', (stats) => {
try {
onCompilationComplete(stats);
} catch (error) {
@@ -72,7 +72,7 @@ run(
log.info('Running webpack compilation...');
});
- compiler.watch({}, error => {
+ compiler.watch({}, (error) => {
if (error) {
log.error('Fatal webpack error');
log.error(error);
diff --git a/packages/kbn-ui-shared-deps/webpack.config.js b/packages/kbn-ui-shared-deps/webpack.config.js
index 02987b8a19201..7295f2e88c530 100644
--- a/packages/kbn-ui-shared-deps/webpack.config.js
+++ b/packages/kbn-ui-shared-deps/webpack.config.js
@@ -55,7 +55,7 @@ exports.getWebpackConfig = ({ dev = false } = {}) => ({
path: UiSharedDeps.distDir,
filename: '[name].js',
sourceMapFilename: '[file].map',
- devtoolModuleFilenameTemplate: info =>
+ devtoolModuleFilenameTemplate: (info) =>
`kbn-ui-shared-deps/${Path.relative(REPO_ROOT, info.absoluteResourcePath)}`,
library: '__kbnSharedDeps__',
},
@@ -104,7 +104,7 @@ exports.getWebpackConfig = ({ dev = false } = {}) => ({
cacheGroups: {
'kbn-ui-shared-deps.@elastic': {
name: 'kbn-ui-shared-deps.@elastic',
- test: m => m.resource && m.resource.includes('@elastic'),
+ test: (m) => m.resource && m.resource.includes('@elastic'),
chunks: 'all',
enforce: true,
},
diff --git a/packages/kbn-utility-types/index.ts b/packages/kbn-utility-types/index.ts
index 657d9f547de66..9a8a81460f410 100644
--- a/packages/kbn-utility-types/index.ts
+++ b/packages/kbn-utility-types/index.ts
@@ -82,9 +82,9 @@ export type Values = T extends any[] ? T[number] : T extends object ? T[keyof
* type. This is necessary in the case of distinguishing one collection from
* another.
*/
-export type UnionToIntersection = (U extends any
-? (k: U) => void
-: never) extends (k: infer I) => void
+export type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (
+ k: infer I
+) => void
? I
: never;
diff --git a/scripts/es.js b/scripts/es.js
index 4f15cc11801e3..93f1d69350bac 100644
--- a/scripts/es.js
+++ b/scripts/es.js
@@ -32,7 +32,7 @@ kbnEs
'base-path': resolve(__dirname, '../.es'),
ssl: false,
})
- .catch(function(e) {
+ .catch(function (e) {
console.error(e);
process.exitCode = 1;
});
diff --git a/scripts/test_hardening.js b/scripts/test_hardening.js
index c0a20a9ff6cb4..0bc0d1c045ac0 100644
--- a/scripts/test_hardening.js
+++ b/scripts/test_hardening.js
@@ -28,10 +28,10 @@ program
.description(
'Run the tests in test/harden directory. If no files are provided, all files within the directory will be run.'
)
- .action(function(globs) {
+ .action(function (globs) {
if (globs.length === 0) globs.push(path.join('test', 'harden', '*'));
- globs.forEach(function(glob) {
- syncGlob(glob).forEach(function(filename) {
+ globs.forEach(function (glob) {
+ syncGlob(glob).forEach(function (filename) {
if (path.basename(filename)[0] === '_') return;
console.log(process.argv[0], filename);
execFileSync(process.argv[0], [filename], { stdio: 'inherit' });
diff --git a/src/apm.js b/src/apm.js
index e3f4d84d9b523..6c10539c6b7d3 100644
--- a/src/apm.js
+++ b/src/apm.js
@@ -85,7 +85,7 @@ function getConfig(serviceName) {
*/
const isKibanaDistributable = Boolean(build && build.distributable === true);
-module.exports = function(serviceName = name) {
+module.exports = function (serviceName = name) {
if (process.env.kbnWorkerType === 'optmzr') return;
const conf = getConfig(serviceName);
diff --git a/src/cli/cli.js b/src/cli/cli.js
index b6598520352a6..50a8d4c7f7f01 100644
--- a/src/cli/cli.js
+++ b/src/cli/cli.js
@@ -40,13 +40,13 @@ serveCommand(program);
program
.command('help ')
.description('Get the help for a specific command')
- .action(function(cmdName) {
+ .action(function (cmdName) {
const cmd = _.find(program.commands, { _name: cmdName });
if (!cmd) return program.error(`unknown command ${cmdName}`);
cmd.help();
});
-program.command('*', null, { noHelp: true }).action(function(cmd) {
+program.command('*', null, { noHelp: true }).action(function (cmd) {
program.error(`unknown command ${cmd}`);
});
diff --git a/src/cli/cluster/cluster_manager.test.ts b/src/cli/cluster/cluster_manager.test.ts
index 707778861fb59..66f68f815edac 100644
--- a/src/cli/cluster/cluster_manager.test.ts
+++ b/src/cli/cluster/cluster_manager.test.ts
@@ -153,7 +153,7 @@ describe('CLI cluster manager', () => {
const events: Array = [];
delayUntil().subscribe(
() => events.push('next'),
- error => events.push(error),
+ (error) => events.push(error),
() => events.push('complete')
);
diff --git a/src/cli/cluster/cluster_manager.ts b/src/cli/cluster/cluster_manager.ts
index 3b3e4d78320d2..fc94f8d585a02 100644
--- a/src/cli/cluster/cluster_manager.ts
+++ b/src/cli/cluster/cluster_manager.ts
@@ -37,7 +37,7 @@ process.env.kbnWorkerType = 'managr';
const firstAllTrue = (...sources: Array>) =>
Rx.combineLatest(...sources).pipe(
- filter(values => values.every(v => v === true)),
+ filter((values) => values.every((v) => v === true)),
take(1),
mapTo(undefined)
);
@@ -75,7 +75,7 @@ export class ClusterManager {
.pipe(
map(({ state }) => state.phase === 'success' || state.phase === 'issue'),
tap({
- error: error => {
+ error: (error) => {
this.log.bad('New platform optimizer error', error.stack);
process.exit(1);
},
@@ -139,9 +139,9 @@ export class ClusterManager {
.subscribe(this.optimizerReady$);
// broker messages between workers
- this.workers.forEach(worker => {
- worker.on('broadcast', msg => {
- this.workers.forEach(to => {
+ this.workers.forEach((worker) => {
+ worker.on('broadcast', (msg) => {
+ this.workers.forEach((to) => {
if (to !== worker && to.online) {
to.fork!.send(msg);
}
@@ -156,7 +156,7 @@ export class ClusterManager {
this.server.on('reloadLoggingConfigFromServerWorker', () => {
process.emit('message' as any, { reloadLoggingConfig: true } as any);
- this.workers.forEach(worker => {
+ this.workers.forEach((worker) => {
worker.fork!.send({ reloadLoggingConfig: true });
});
});
@@ -182,7 +182,7 @@ export class ClusterManager {
const extraPaths = [...pluginPaths, ...scanDirs];
const pluginInternalDirsIgnore = scanDirs
- .map(scanDir => resolve(scanDir, '*'))
+ .map((scanDir) => resolve(scanDir, '*'))
.concat(pluginPaths)
.reduce(
(acc, path) =>
@@ -212,10 +212,7 @@ export class ClusterManager {
shouldRedirectFromOldBasePath: (path: string) => {
// strip `s/{id}` prefix when checking for need to redirect
if (path.startsWith('s/')) {
- path = path
- .split('/')
- .slice(2)
- .join('/');
+ path = path.split('/').slice(2).join('/');
}
const isApp = path.startsWith('app/');
@@ -253,7 +250,7 @@ export class ClusterManager {
fromRoot('x-pack/legacy/server'),
fromRoot('config'),
...extraPaths,
- ].map(path => resolve(path))
+ ].map((path) => resolve(path))
)
);
diff --git a/src/cli/cluster/worker.ts b/src/cli/cluster/worker.ts
index c73d3edbf7df7..dc6e6d5676651 100644
--- a/src/cli/cluster/worker.ts
+++ b/src/cli/cluster/worker.ts
@@ -136,7 +136,7 @@ export class Worker extends EventEmitter {
this.processBinder.destroy();
// wait until the cluster reports this fork has exited, then resolve
- await new Promise(resolve => this.once('fork:exit', resolve));
+ await new Promise((resolve) => this.once('fork:exit', resolve));
}
}
@@ -179,7 +179,7 @@ export class Worker extends EventEmitter {
flushChangeBuffer() {
const files = _.unique(this.changes.splice(0));
const prefix = files.length > 1 ? '\n - ' : '';
- return files.reduce(function(list, file) {
+ return files.reduce(function (list, file) {
return `${list || ''}${prefix}"${file}"`;
}, '');
}
@@ -188,7 +188,7 @@ export class Worker extends EventEmitter {
if (this.fork) {
// once "exit" event is received with 0 status, start() is called again
this.shutdown();
- await new Promise(cb => this.once('online', cb));
+ await new Promise((cb) => this.once('online', cb));
return;
}
@@ -214,6 +214,6 @@ export class Worker extends EventEmitter {
this.processBinder.on('exit', () => this.shutdown());
// wait for the fork to report it is online before resolving
- await new Promise(cb => this.once('fork:online', cb));
+ await new Promise((cb) => this.once('fork:online', cb));
}
}
diff --git a/src/cli/command.js b/src/cli/command.js
index 6f083bb2a1fa2..f4781fcab1e20 100644
--- a/src/cli/command.js
+++ b/src/cli/command.js
@@ -23,7 +23,7 @@ import Chalk from 'chalk';
import help from './help';
import { Command } from 'commander';
-Command.prototype.error = function(err) {
+Command.prototype.error = function (err) {
if (err && err.message) err = err.message;
console.log(
@@ -37,7 +37,7 @@ ${help(this, ' ')}
process.exit(64); // eslint-disable-line no-process-exit
};
-Command.prototype.defaultHelp = function() {
+Command.prototype.defaultHelp = function () {
console.log(
`
${help(this, ' ')}
@@ -48,7 +48,7 @@ ${help(this, ' ')}
process.exit(64); // eslint-disable-line no-process-exit
};
-Command.prototype.unknownArgv = function(argv) {
+Command.prototype.unknownArgv = function (argv) {
if (argv) this.__unknownArgv = argv;
return this.__unknownArgv ? this.__unknownArgv.slice(0) : [];
};
@@ -57,11 +57,11 @@ Command.prototype.unknownArgv = function(argv) {
* setup the command to accept arbitrary configuration via the cli
* @return {[type]} [description]
*/
-Command.prototype.collectUnknownOptions = function() {
+Command.prototype.collectUnknownOptions = function () {
const title = `Extra ${this._name} options`;
this.allowUnknownOption();
- this.getUnknownOptions = function() {
+ this.getUnknownOptions = function () {
const opts = {};
const unknowns = this.unknownArgv();
@@ -95,17 +95,17 @@ Command.prototype.collectUnknownOptions = function() {
return this;
};
-Command.prototype.parseOptions = _.wrap(Command.prototype.parseOptions, function(parse, argv) {
+Command.prototype.parseOptions = _.wrap(Command.prototype.parseOptions, function (parse, argv) {
const opts = parse.call(this, argv);
this.unknownArgv(opts.unknown);
return opts;
});
-Command.prototype.action = _.wrap(Command.prototype.action, function(action, fn) {
- return action.call(this, function(...args) {
+Command.prototype.action = _.wrap(Command.prototype.action, function (action, fn) {
+ return action.call(this, function (...args) {
const ret = fn.apply(this, args);
if (ret && typeof ret.then === 'function') {
- ret.then(null, function(e) {
+ ret.then(null, function (e) {
console.log('FATAL CLI ERROR', e.stack);
process.exit(1);
});
diff --git a/src/cli/help.js b/src/cli/help.js
index a2dc638d2b6ee..656944d85b254 100644
--- a/src/cli/help.js
+++ b/src/cli/help.js
@@ -24,7 +24,7 @@ export default function help(command, spaces) {
return command.outputHelp();
}
- const defCmd = _.find(command.commands, function(cmd) {
+ const defCmd = _.find(command.commands, function (cmd) {
return cmd._name === 'serve';
});
@@ -53,12 +53,12 @@ function indent(str, n) {
function commandsSummary(program) {
const cmds = _.compact(
- program.commands.map(function(cmd) {
+ program.commands.map(function (cmd) {
const name = cmd._name;
if (name === '*') return;
const opts = cmd.options.length ? ' [options]' : '';
const args = cmd._args
- .map(function(arg) {
+ .map(function (arg) {
return humanReadableArgName(arg);
})
.join(' ');
@@ -67,11 +67,11 @@ function commandsSummary(program) {
})
);
- const cmdLColWidth = cmds.reduce(function(width, cmd) {
+ const cmdLColWidth = cmds.reduce(function (width, cmd) {
return Math.max(width, cmd[0].length);
}, 0);
- return cmds.reduce(function(help, cmd) {
+ return cmds.reduce(function (help, cmd) {
return `${help || ''}${_.padRight(cmd[0], cmdLColWidth)} ${cmd[1] || ''}\n`;
}, '');
}
diff --git a/src/cli/repl/index.js b/src/cli/repl/index.js
index 37a51b4d1ec9e..0b27fafcef84e 100644
--- a/src/cli/repl/index.js
+++ b/src/cli/repl/index.js
@@ -72,7 +72,7 @@ function prettyPrint(text, o, depth) {
// This lets us handle promises more gracefully than the default REPL,
// which doesn't show the results.
function promiseFriendlyWriter({ displayPrompt, getPrintDepth }) {
- return result => promisePrint(result, displayPrompt, getPrintDepth);
+ return (result) => promisePrint(result, displayPrompt, getPrintDepth);
}
function promisePrint(result, displayPrompt, getPrintDepth) {
@@ -83,8 +83,8 @@ function promisePrint(result, displayPrompt, getPrintDepth) {
Promise.resolve()
.then(() => console.log('Waiting for promise...'))
.then(() => result)
- .then(o => prettyPrint('Promise Resolved: \n', o, depth))
- .catch(err => prettyPrint('Promise Rejected: \n', err, depth))
+ .then((o) => prettyPrint('Promise Resolved: \n', o, depth))
+ .catch((err) => prettyPrint('Promise Rejected: \n', err, depth))
.then(displayPrompt);
return '';
}
diff --git a/src/cli/repl/repl.test.js b/src/cli/repl/repl.test.js
index 9abb43c338290..3a032d415e5f2 100644
--- a/src/cli/repl/repl.test.js
+++ b/src/cli/repl/repl.test.js
@@ -17,7 +17,7 @@
* under the License.
*/
-jest.mock('repl', () => ({ start: opts => ({ opts, context: {} }) }), { virtual: true });
+jest.mock('repl', () => ({ start: (opts) => ({ opts, context: {} }) }), { virtual: true });
describe('repl', () => {
const originalConsoleLog = console.log;
@@ -25,7 +25,7 @@ describe('repl', () => {
beforeEach(() => {
global.console.log = jest.fn();
- require('repl').start = opts => {
+ require('repl').start = (opts) => {
let resetHandler;
const replServer = {
opts,
@@ -188,7 +188,7 @@ describe('repl', () => {
async function waitForPrompt(replServer, fn) {
let resolveDone;
- const done = new Promise(resolve => (resolveDone = resolve));
+ const done = new Promise((resolve) => (resolveDone = resolve));
replServer.displayPrompt = () => {
resolveDone();
};
diff --git a/src/cli/serve/integration_tests/invalid_config.test.ts b/src/cli/serve/integration_tests/invalid_config.test.ts
index da6684fae8cef..fd6fa1bf192fc 100644
--- a/src/cli/serve/integration_tests/invalid_config.test.ts
+++ b/src/cli/serve/integration_tests/invalid_config.test.ts
@@ -29,10 +29,10 @@ interface LogEntry {
type: string;
}
-describe('cli invalid config support', function() {
+describe('cli invalid config support', function () {
it(
'exits with statusCode 64 and logs a single line when config is invalid',
- function() {
+ function () {
// Unused keys only throw once LegacyService starts, so disable migrations so that Core
// will finish the start lifecycle without a running Elasticsearch instance.
const { error, status, stdout } = spawnSync(
@@ -47,9 +47,9 @@ describe('cli invalid config support', function() {
.toString('utf8')
.split('\n')
.filter(Boolean)
- .map(line => JSON.parse(line) as LogEntry)
- .filter(line => line.tags.includes('fatal'))
- .map(obj => ({
+ .map((line) => JSON.parse(line) as LogEntry)
+ .filter((line) => line.tags.includes('fatal'))
+ .map((obj) => ({
...obj,
pid: '## PID ##',
'@timestamp': '## @timestamp ##',
diff --git a/src/cli/serve/integration_tests/reload_logging_config.test.ts b/src/cli/serve/integration_tests/reload_logging_config.test.ts
index 9ad8438c312a1..35391b9b58ecc 100644
--- a/src/cli/serve/integration_tests/reload_logging_config.test.ts
+++ b/src/cli/serve/integration_tests/reload_logging_config.test.ts
@@ -70,7 +70,7 @@ function watchFileUntil(path: string, matcher: RegExp, timeout: number) {
}
function containsJsonOnly(content: string[]) {
- return content.every(line => line.startsWith('{'));
+ return content.every((line) => line.startsWith('{'));
}
function createConfigManager(configPath: string) {
@@ -83,7 +83,7 @@ function createConfigManager(configPath: string) {
};
}
-describe('Server logging configuration', function() {
+describe('Server logging configuration', function () {
let child: undefined | Child.ChildProcess;
beforeEach(() => {
@@ -92,7 +92,7 @@ describe('Server logging configuration', function() {
afterEach(async () => {
if (child !== undefined) {
- const exitPromise = new Promise(resolve => child?.once('exit', resolve));
+ const exitPromise = new Promise((resolve) => child?.once('exit', resolve));
child.kill('SIGKILL');
await exitPromise;
}
@@ -110,7 +110,7 @@ describe('Server logging configuration', function() {
describe('legacy logging', () => {
it(
'should be reloadable via SIGHUP process signaling',
- async function() {
+ async function () {
const configFilePath = Path.resolve(tempDir, 'kibana.yml');
Fs.copyFileSync(legacyConfig, configFilePath);
@@ -123,17 +123,13 @@ describe('Server logging configuration', function() {
]);
const message$ = Rx.fromEvent(child.stdout, 'data').pipe(
- map(messages =>
- String(messages)
- .split('\n')
- .filter(Boolean)
- )
+ map((messages) => String(messages).split('\n').filter(Boolean))
);
await message$
.pipe(
// We know the sighup handler will be registered before this message logged
- filter(messages => messages.some(m => m.includes('setting up root'))),
+ filter((messages) => messages.some((m) => m.includes('setting up root'))),
take(1)
)
.toPromise();
@@ -141,7 +137,7 @@ describe('Server logging configuration', function() {
const lastMessage = await message$.pipe(take(1)).toPromise();
expect(containsJsonOnly(lastMessage)).toBe(true);
- createConfigManager(configFilePath).modify(oldConfig => {
+ createConfigManager(configFilePath).modify((oldConfig) => {
oldConfig.logging.json = false;
return oldConfig;
});
@@ -150,7 +146,7 @@ describe('Server logging configuration', function() {
await message$
.pipe(
- filter(messages => !containsJsonOnly(messages)),
+ filter((messages) => !containsJsonOnly(messages)),
take(1)
)
.toPromise();
@@ -160,7 +156,7 @@ describe('Server logging configuration', function() {
it(
'should recreate file handle on SIGHUP',
- async function() {
+ async function () {
const logPath = Path.resolve(tempDir, 'kibana.log');
const logPathArchived = Path.resolve(tempDir, 'kibana_archive.log');
@@ -188,24 +184,20 @@ describe('Server logging configuration', function() {
describe('platform logging', () => {
it(
'should be reloadable via SIGHUP process signaling',
- async function() {
+ async function () {
const configFilePath = Path.resolve(tempDir, 'kibana.yml');
Fs.copyFileSync(configFileLogConsole, configFilePath);
child = Child.spawn(process.execPath, [kibanaPath, '--oss', '--config', configFilePath]);
const message$ = Rx.fromEvent(child.stdout, 'data').pipe(
- map(messages =>
- String(messages)
- .split('\n')
- .filter(Boolean)
- )
+ map((messages) => String(messages).split('\n').filter(Boolean))
);
await message$
.pipe(
// We know the sighup handler will be registered before this message logged
- filter(messages => messages.some(m => m.includes('setting up root'))),
+ filter((messages) => messages.some((m) => m.includes('setting up root'))),
take(1)
)
.toPromise();
@@ -213,7 +205,7 @@ describe('Server logging configuration', function() {
const lastMessage = await message$.pipe(take(1)).toPromise();
expect(containsJsonOnly(lastMessage)).toBe(true);
- createConfigManager(configFilePath).modify(oldConfig => {
+ createConfigManager(configFilePath).modify((oldConfig) => {
oldConfig.logging.appenders.console.layout.kind = 'pattern';
return oldConfig;
});
@@ -221,7 +213,7 @@ describe('Server logging configuration', function() {
await message$
.pipe(
- filter(messages => !containsJsonOnly(messages)),
+ filter((messages) => !containsJsonOnly(messages)),
take(1)
)
.toPromise();
@@ -230,14 +222,14 @@ describe('Server logging configuration', function() {
);
it(
'should recreate file handle on SIGHUP',
- async function() {
+ async function () {
const configFilePath = Path.resolve(tempDir, 'kibana.yml');
Fs.copyFileSync(configFileLogFile, configFilePath);
const logPath = Path.resolve(tempDir, 'kibana.log');
const logPathArchived = Path.resolve(tempDir, 'kibana_archive.log');
- createConfigManager(configFilePath).modify(oldConfig => {
+ createConfigManager(configFilePath).modify((oldConfig) => {
oldConfig.logging.appenders.file.path = logPath;
return oldConfig;
});
diff --git a/src/cli/serve/read_keystore.js b/src/cli/serve/read_keystore.js
index c17091a11f5c1..cfe02735630f2 100644
--- a/src/cli/serve/read_keystore.js
+++ b/src/cli/serve/read_keystore.js
@@ -30,7 +30,7 @@ export function readKeystore(dataPath = getDataPath()) {
const keys = Object.keys(keystore.data);
const data = {};
- keys.forEach(key => {
+ keys.forEach((key) => {
set(data, key, keystore.data[key]);
});
diff --git a/src/cli/serve/serve.js b/src/cli/serve/serve.js
index ff6c51e215c3c..8bc65f3da7111 100644
--- a/src/cli/serve/serve.js
+++ b/src/cli/serve/serve.js
@@ -52,9 +52,9 @@ const CAN_REPL = canRequire(REPL_PATH);
const XPACK_DIR = resolve(__dirname, '../../../x-pack');
const XPACK_INSTALLED = canRequire(XPACK_DIR);
-const pathCollector = function() {
+const pathCollector = function () {
const paths = [];
- return function(path) {
+ return function (path) {
paths.push(resolve(process.cwd(), path));
return paths;
};
@@ -109,7 +109,7 @@ function applyConfigOverrides(rawConfig, opts, extraCliOptions) {
(customElasticsearchHosts.length > 0 && customElasticsearchHosts) || [
'https://localhost:9200',
]
- ).map(hostUrl => {
+ ).map((hostUrl) => {
const parsedUrl = url.parse(hostUrl);
if (parsedUrl.hostname !== 'localhost') {
throw new Error(
@@ -159,7 +159,7 @@ function applyConfigOverrides(rawConfig, opts, extraCliOptions) {
return rawConfig;
}
-export default function(program) {
+export default function (program) {
const command = program.command('serve');
command
@@ -223,7 +223,7 @@ export default function(program) {
.option('--no-dev-config', 'Prevents loading the kibana.dev.yml file in --dev mode');
}
- command.action(async function(opts) {
+ command.action(async function (opts) {
if (opts.dev && opts.devConfig !== false) {
try {
const kbnDevConfig = fromRoot('config/kibana.dev.yml');
@@ -262,7 +262,7 @@ export default function(program) {
isClusterModeSupported: CAN_CLUSTER,
isReplModeSupported: CAN_REPL,
},
- applyConfigOverrides: rawConfig => applyConfigOverrides(rawConfig, opts, unknownOptions),
+ applyConfigOverrides: (rawConfig) => applyConfigOverrides(rawConfig, opts, unknownOptions),
});
});
}
diff --git a/src/cli_keystore/add.test.js b/src/cli_keystore/add.test.js
index 72f15a5439ef0..320581b470c2b 100644
--- a/src/cli_keystore/add.test.js
+++ b/src/cli_keystore/add.test.js
@@ -23,14 +23,14 @@ const mockKeystoreData =
'Ry21UcAJki2qFUTj4TYuvhta3LId+RM5UX/dJ2468hQ==';
jest.mock('fs', () => ({
- readFileSync: jest.fn().mockImplementation(path => {
+ readFileSync: jest.fn().mockImplementation((path) => {
if (!path.includes('nonexistent')) {
return JSON.stringify(mockKeystoreData);
}
throw { code: 'ENOENT' };
}),
- existsSync: jest.fn().mockImplementation(path => {
+ existsSync: jest.fn().mockImplementation((path) => {
return !path.includes('nonexistent');
}),
writeFileSync: jest.fn(),
diff --git a/src/cli_keystore/cli_keystore.js b/src/cli_keystore/cli_keystore.js
index 7c90d88f7b0cd..e1561b343ef39 100644
--- a/src/cli_keystore/cli_keystore.js
+++ b/src/cli_keystore/cli_keystore.js
@@ -50,13 +50,13 @@ removeCli(program, keystore);
program
.command('help ')
.description('get the help for a specific command')
- .action(function(cmdName) {
+ .action(function (cmdName) {
const cmd = _.find(program.commands, { _name: cmdName });
if (!cmd) return program.error(`unknown command ${cmdName}`);
cmd.help();
});
-program.command('*', null, { noHelp: true }).action(function(cmd) {
+program.command('*', null, { noHelp: true }).action(function (cmd) {
program.error(`unknown command ${cmd}`);
});
diff --git a/src/cli_keystore/create.test.js b/src/cli_keystore/create.test.js
index 01355f51a0c55..33b5aa4bd07d8 100644
--- a/src/cli_keystore/create.test.js
+++ b/src/cli_keystore/create.test.js
@@ -23,14 +23,14 @@ const mockKeystoreData =
'Ry21UcAJki2qFUTj4TYuvhta3LId+RM5UX/dJ2468hQ==';
jest.mock('fs', () => ({
- readFileSync: jest.fn().mockImplementation(path => {
+ readFileSync: jest.fn().mockImplementation((path) => {
if (!path.includes('foo')) {
return JSON.stringify(mockKeystoreData);
}
throw { code: 'ENOENT' };
}),
- existsSync: jest.fn().mockImplementation(path => {
+ existsSync: jest.fn().mockImplementation((path) => {
return !path.includes('foo');
}),
writeFileSync: jest.fn(),
diff --git a/src/cli_keystore/list.test.js b/src/cli_keystore/list.test.js
index 3fb5014820865..857991b5ae3b9 100644
--- a/src/cli_keystore/list.test.js
+++ b/src/cli_keystore/list.test.js
@@ -23,14 +23,14 @@ const mockKeystoreData =
'Ry21UcAJki2qFUTj4TYuvhta3LId+RM5UX/dJ2468hQ==';
jest.mock('fs', () => ({
- readFileSync: jest.fn().mockImplementation(path => {
+ readFileSync: jest.fn().mockImplementation((path) => {
if (!path.includes('nonexistent')) {
return JSON.stringify(mockKeystoreData);
}
throw { code: 'ENOENT' };
}),
- existsSync: jest.fn().mockImplementation(path => {
+ existsSync: jest.fn().mockImplementation((path) => {
return !path.includes('nonexistent');
}),
}));
diff --git a/src/cli_plugin/cli.js b/src/cli_plugin/cli.js
index d1cdf983c0da4..da1068b54b4b5 100644
--- a/src/cli_plugin/cli.js
+++ b/src/cli_plugin/cli.js
@@ -43,13 +43,13 @@ removeCommand(program);
program
.command('help ')
.description('get the help for a specific command')
- .action(function(cmdName) {
+ .action(function (cmdName) {
const cmd = _.find(program.commands, { _name: cmdName });
if (!cmd) return program.error(`unknown command ${cmdName}`);
cmd.help();
});
-program.command('*', null, { noHelp: true }).action(function(cmd) {
+program.command('*', null, { noHelp: true }).action(function (cmd) {
program.error(`unknown command ${cmd}`);
});
diff --git a/src/cli_plugin/install/cleanup.js b/src/cli_plugin/install/cleanup.js
index eaa25962ef0e4..f31e028226c27 100644
--- a/src/cli_plugin/install/cleanup.js
+++ b/src/cli_plugin/install/cleanup.js
@@ -21,7 +21,7 @@ import del from 'del';
import fs from 'fs';
export function cleanPrevious(settings, logger) {
- return new Promise(function(resolve, reject) {
+ return new Promise(function (resolve, reject) {
try {
fs.statSync(settings.workingPath);
diff --git a/src/cli_plugin/install/cleanup.test.js b/src/cli_plugin/install/cleanup.test.js
index c6602636cb481..46089f61d5e83 100644
--- a/src/cli_plugin/install/cleanup.test.js
+++ b/src/cli_plugin/install/cleanup.test.js
@@ -24,32 +24,32 @@ import del from 'del';
import { cleanPrevious, cleanArtifacts } from './cleanup';
import Logger from '../lib/logger';
-describe('kibana cli', function() {
- describe('plugin installer', function() {
- describe('pluginCleaner', function() {
+describe('kibana cli', function () {
+ describe('plugin installer', function () {
+ describe('pluginCleaner', function () {
const settings = {
workingPath: 'dummy',
};
- describe('cleanPrevious', function() {
+ describe('cleanPrevious', function () {
let errorStub;
let logger;
- beforeEach(function() {
+ beforeEach(function () {
errorStub = sinon.stub();
logger = new Logger(settings);
sinon.stub(logger, 'log');
sinon.stub(logger, 'error');
});
- afterEach(function() {
+ afterEach(function () {
logger.log.restore();
logger.error.restore();
fs.statSync.restore();
del.sync.restore();
});
- it('should resolve if the working path does not exist', function() {
+ it('should resolve if the working path does not exist', function () {
sinon.stub(del, 'sync');
sinon.stub(fs, 'statSync').callsFake(() => {
const error = new Error('ENOENT');
@@ -59,75 +59,75 @@ describe('kibana cli', function() {
return cleanPrevious(settings, logger)
.catch(errorStub)
- .then(function() {
+ .then(function () {
expect(errorStub.called).toBe(false);
});
});
- it('should rethrow any exception except ENOENT from fs.statSync', function() {
+ it('should rethrow any exception except ENOENT from fs.statSync', function () {
sinon.stub(del, 'sync');
sinon.stub(fs, 'statSync').throws(new Error('An Unhandled Error'));
errorStub = sinon.stub();
return cleanPrevious(settings, logger)
.catch(errorStub)
- .then(function() {
+ .then(function () {
expect(errorStub.called).toBe(true);
});
});
- it('should log a message if there was a working directory', function() {
+ it('should log a message if there was a working directory', function () {
sinon.stub(del, 'sync');
sinon.stub(fs, 'statSync');
return cleanPrevious(settings, logger)
.catch(errorStub)
- .then(function() {
+ .then(function () {
expect(logger.log.calledWith('Found previous install attempt. Deleting...')).toBe(
true
);
});
});
- it('should rethrow any exception from del.sync', function() {
+ it('should rethrow any exception from del.sync', function () {
sinon.stub(fs, 'statSync');
sinon.stub(del, 'sync').throws(new Error('I am an error thrown by del'));
errorStub = sinon.stub();
return cleanPrevious(settings, logger)
.catch(errorStub)
- .then(function() {
+ .then(function () {
expect(errorStub.called).toBe(true);
});
});
- it('should resolve if the working path is deleted', function() {
+ it('should resolve if the working path is deleted', function () {
sinon.stub(del, 'sync');
sinon.stub(fs, 'statSync');
return cleanPrevious(settings, logger)
.catch(errorStub)
- .then(function() {
+ .then(function () {
expect(errorStub.called).toBe(false);
});
});
});
- describe('cleanArtifacts', function() {
- beforeEach(function() {});
+ describe('cleanArtifacts', function () {
+ beforeEach(function () {});
- afterEach(function() {
+ afterEach(function () {
del.sync.restore();
});
- it('should attempt to delete the working directory', function() {
+ it('should attempt to delete the working directory', function () {
sinon.stub(del, 'sync');
cleanArtifacts(settings);
expect(del.sync.calledWith(settings.workingPath)).toBe(true);
});
- it('should swallow any errors thrown by del.sync', function() {
+ it('should swallow any errors thrown by del.sync', function () {
sinon.stub(del, 'sync').throws(new Error('Something bad happened.'));
expect(() => cleanArtifacts(settings)).not.toThrow();
diff --git a/src/cli_plugin/install/download.js b/src/cli_plugin/install/download.js
index fc1fe8323520b..10d20367c1b7b 100644
--- a/src/cli_plugin/install/download.js
+++ b/src/cli_plugin/install/download.js
@@ -80,7 +80,7 @@ export function download(settings, logger) {
logger.log(`Attempting to transfer from ${sourceUrl}`);
- return _downloadSingle(settings, logger, sourceUrl).catch(err => {
+ return _downloadSingle(settings, logger, sourceUrl).catch((err) => {
const isUnsupportedProtocol = err instanceof UnsupportedProtocolError;
const isDownloadResourceNotFound = err.message === 'ENOTFOUND';
if (isUnsupportedProtocol || isDownloadResourceNotFound) {
diff --git a/src/cli_plugin/install/download.test.js b/src/cli_plugin/install/download.test.js
index ef924f28a65e7..93e5e414fed74 100644
--- a/src/cli_plugin/install/download.test.js
+++ b/src/cli_plugin/install/download.test.js
@@ -28,8 +28,8 @@ import { download, _downloadSingle, _getFilePath, _checkFilePathDeprecation } fr
import { join } from 'path';
import http from 'http';
-describe('kibana cli', function() {
- describe('plugin downloader', function() {
+describe('kibana cli', function () {
+ describe('plugin downloader', function () {
const testWorkingPath = join(__dirname, '.test.data.download');
const tempArchiveFilePath = join(testWorkingPath, 'archive.part');
@@ -57,46 +57,44 @@ describe('kibana cli', function() {
throw new Error('expected the promise to reject');
}
- beforeEach(function() {
+ beforeEach(function () {
sinon.stub(logger, 'log');
sinon.stub(logger, 'error');
del.sync(testWorkingPath);
Fs.mkdirSync(testWorkingPath, { recursive: true });
});
- afterEach(function() {
+ afterEach(function () {
logger.log.restore();
logger.error.restore();
del.sync(testWorkingPath);
});
- describe('_downloadSingle', function() {
- beforeEach(function() {});
+ describe('_downloadSingle', function () {
+ beforeEach(function () {});
- describe('http downloader', function() {
- it('should throw an ENOTFOUND error for a http ulr that returns 404', function() {
- nock('http://example.com')
- .get('/plugin.tar.gz')
- .reply(404);
+ describe('http downloader', function () {
+ it('should throw an ENOTFOUND error for a http ulr that returns 404', function () {
+ nock('http://example.com').get('/plugin.tar.gz').reply(404);
const sourceUrl = 'http://example.com/plugin.tar.gz';
- return _downloadSingle(settings, logger, sourceUrl).then(shouldReject, function(err) {
+ return _downloadSingle(settings, logger, sourceUrl).then(shouldReject, function (err) {
expect(err.message).toMatch(/ENOTFOUND/);
expectWorkingPathEmpty();
});
});
- it('should throw an UnsupportedProtocolError for an invalid url', function() {
+ it('should throw an UnsupportedProtocolError for an invalid url', function () {
const sourceUrl = 'i am an invalid url';
- return _downloadSingle(settings, logger, sourceUrl).then(shouldReject, function(err) {
+ return _downloadSingle(settings, logger, sourceUrl).then(shouldReject, function (err) {
expect(err).toBeInstanceOf(UnsupportedProtocolError);
expectWorkingPathEmpty();
});
});
- it('should download a file from a valid http url', function() {
+ it('should download a file from a valid http url', function () {
const filePath = join(__dirname, '__fixtures__/replies/banana.jpg');
nock('http://example.com')
@@ -109,40 +107,40 @@ describe('kibana cli', function() {
const sourceUrl = 'http://example.com/plugin.zip';
- return _downloadSingle(settings, logger, sourceUrl).then(function() {
+ return _downloadSingle(settings, logger, sourceUrl).then(function () {
expectWorkingPathNotEmpty();
});
});
});
- describe('local file downloader', function() {
- it('should throw an ENOTFOUND error for an invalid local file', function() {
+ describe('local file downloader', function () {
+ it('should throw an ENOTFOUND error for an invalid local file', function () {
const filePath = join(__dirname, '__fixtures__/replies/i-am-not-there.zip');
const sourceUrl = 'file://' + filePath.replace(/\\/g, '/');
- return _downloadSingle(settings, logger, sourceUrl).then(shouldReject, function(err) {
+ return _downloadSingle(settings, logger, sourceUrl).then(shouldReject, function (err) {
expect(err.message).toMatch(/ENOTFOUND/);
expectWorkingPathEmpty();
});
});
- it('should copy a valid local file', function() {
+ it('should copy a valid local file', function () {
const filePath = join(__dirname, '__fixtures__/replies/banana.jpg');
const sourceUrl = 'file://' + filePath.replace(/\\/g, '/');
- return _downloadSingle(settings, logger, sourceUrl).then(function() {
+ return _downloadSingle(settings, logger, sourceUrl).then(function () {
expectWorkingPathNotEmpty();
});
});
});
});
- describe('_getFilePath', function() {
- it('should decode paths', function() {
+ describe('_getFilePath', function () {
+ it('should decode paths', function () {
expect(_getFilePath('Test%20folder/file.zip')).toBe('Test folder/file.zip');
});
- it('should remove the leading slash from windows paths', function() {
+ it('should remove the leading slash from windows paths', function () {
const platform = Object.getOwnPropertyDescriptor(process, 'platform');
Object.defineProperty(process, 'platform', { value: 'win32' });
@@ -152,8 +150,8 @@ describe('kibana cli', function() {
});
});
- describe('Windows file:// deprecation', function() {
- it('should log a warning if a file:// path is used', function() {
+ describe('Windows file:// deprecation', function () {
+ it('should log a warning if a file:// path is used', function () {
const platform = Object.getOwnPropertyDescriptor(process, 'platform');
Object.defineProperty(process, 'platform', { value: 'win32' });
const logger = {
@@ -169,8 +167,8 @@ describe('kibana cli', function() {
});
});
- describe('download', function() {
- it('should loop through bad urls until it finds a good one.', function() {
+ describe('download', function () {
+ it('should loop through bad urls until it finds a good one.', function () {
const filePath = join(__dirname, '__fixtures__/replies/test_plugin.zip');
settings.urls = [
'http://example.com/badfile1.tar.gz',
@@ -190,7 +188,7 @@ describe('kibana cli', function() {
.get('/goodfile.tar.gz')
.replyWithFile(200, filePath);
- return download(settings, logger).then(function() {
+ return download(settings, logger).then(function () {
expect(logger.log.getCall(0).args[0]).toMatch(/badfile1.tar.gz/);
expect(logger.log.getCall(1).args[0]).toMatch(/badfile2.tar.gz/);
expect(logger.log.getCall(2).args[0]).toMatch(/I am a bad uri/);
@@ -199,7 +197,7 @@ describe('kibana cli', function() {
});
});
- it('should stop looping through urls when it finds a good one.', function() {
+ it('should stop looping through urls when it finds a good one.', function () {
const filePath = join(__dirname, '__fixtures__/replies/test_plugin.zip');
settings.urls = [
'http://example.com/badfile1.tar.gz',
@@ -221,7 +219,7 @@ describe('kibana cli', function() {
.get('/badfile3.tar.gz')
.reply(404);
- return download(settings, logger).then(function() {
+ return download(settings, logger).then(function () {
for (let i = 0; i < logger.log.callCount; i++) {
expect(logger.log.getCall(i).args[0]).not.toMatch(/badfile3.tar.gz/);
}
@@ -229,7 +227,7 @@ describe('kibana cli', function() {
});
});
- it("should throw an error when it doesn't find a good url.", function() {
+ it("should throw an error when it doesn't find a good url.", function () {
settings.urls = [
'http://example.com/badfile1.tar.gz',
'http://example.com/badfile2.tar.gz',
@@ -247,25 +245,25 @@ describe('kibana cli', function() {
.get('/badfile3.tar.gz')
.reply(404);
- return download(settings, logger).then(shouldReject, function(err) {
+ return download(settings, logger).then(shouldReject, function (err) {
expect(err.message).toMatch(/no valid url specified/i);
expectWorkingPathEmpty();
});
});
- afterAll(function() {
+ afterAll(function () {
nock.cleanAll();
});
});
- describe('proxy support', function() {
+ describe('proxy support', function () {
const proxyPort = 2626;
const proxyUrl = `http://localhost:${proxyPort}`;
let proxyHit = false;
let proxyConnectHit = false;
- const proxy = http.createServer(function(req, res) {
+ const proxy = http.createServer(function (req, res) {
proxyHit = true;
// Our test proxy simply returns an empty 200 response, since we only
// care about the download promise being resolved.
@@ -301,29 +299,29 @@ describe('kibana cli', function() {
.replyWithFile(200, join(__dirname, '__fixtures__/replies/test_plugin.zip'));
}
- beforeAll(function(done) {
+ beforeAll(function (done) {
proxy.listen(proxyPort, done);
});
- beforeEach(function() {
+ beforeEach(function () {
proxyHit = false;
proxyConnectHit = false;
});
- afterEach(function() {
+ afterEach(function () {
delete process.env.http_proxy;
delete process.env.https_proxy;
delete process.env.no_proxy;
});
- it('should use http_proxy env variable', function() {
+ it('should use http_proxy env variable', function () {
process.env.http_proxy = proxyUrl;
settings.urls = ['http://example.com/plugin.zip'];
return download(settings, logger).then(expectProxyHit);
});
- it('should use https_proxy for secure URLs', function() {
+ it('should use https_proxy for secure URLs', function () {
process.env.https_proxy = proxyUrl;
settings.urls = ['https://example.com/plugin.zip'];
@@ -340,7 +338,7 @@ describe('kibana cli', function() {
);
});
- it('should not use http_proxy for HTTPS urls', function() {
+ it('should not use http_proxy for HTTPS urls', function () {
process.env.http_proxy = proxyUrl;
settings.urls = ['https://example.com/plugin.zip'];
@@ -349,7 +347,7 @@ describe('kibana cli', function() {
return download(settings, logger).then(expectNoProxyHit);
});
- it('should not use https_proxy for HTTP urls', function() {
+ it('should not use https_proxy for HTTP urls', function () {
process.env.https_proxy = proxyUrl;
settings.urls = ['http://example.com/plugin.zip'];
@@ -358,7 +356,7 @@ describe('kibana cli', function() {
return download(settings, logger).then(expectNoProxyHit);
});
- it('should support domains in no_proxy', function() {
+ it('should support domains in no_proxy', function () {
process.env.http_proxy = proxyUrl;
process.env.no_proxy = 'foo.bar, example.com';
settings.urls = ['http://example.com/plugin.zip'];
@@ -368,7 +366,7 @@ describe('kibana cli', function() {
return download(settings, logger).then(expectNoProxyHit);
});
- it('should support subdomains in no_proxy', function() {
+ it('should support subdomains in no_proxy', function () {
process.env.http_proxy = proxyUrl;
process.env.no_proxy = 'foo.bar,plugins.example.com';
settings.urls = ['http://plugins.example.com/plugin.zip'];
@@ -378,7 +376,7 @@ describe('kibana cli', function() {
return download(settings, logger).then(expectNoProxyHit);
});
- it('should accept wildcard subdomains in no_proxy', function() {
+ it('should accept wildcard subdomains in no_proxy', function () {
process.env.http_proxy = proxyUrl;
process.env.no_proxy = 'foo.bar, .example.com';
settings.urls = ['http://plugins.example.com/plugin.zip'];
@@ -388,7 +386,7 @@ describe('kibana cli', function() {
return download(settings, logger).then(expectNoProxyHit);
});
- it('should support asterisk wildcard no_proxy syntax', function() {
+ it('should support asterisk wildcard no_proxy syntax', function () {
process.env.http_proxy = proxyUrl;
process.env.no_proxy = '*.example.com';
settings.urls = ['http://plugins.example.com/plugin.zip'];
@@ -398,7 +396,7 @@ describe('kibana cli', function() {
return download(settings, logger).then(expectNoProxyHit);
});
- it('should support implicit ports in no_proxy', function() {
+ it('should support implicit ports in no_proxy', function () {
process.env.https_proxy = proxyUrl;
process.env.no_proxy = 'example.com:443';
settings.urls = ['https://example.com/plugin.zip'];
@@ -408,7 +406,7 @@ describe('kibana cli', function() {
return download(settings, logger).then(expectNoProxyHit);
});
- afterAll(function(done) {
+ afterAll(function (done) {
proxy.close(done);
});
});
diff --git a/src/cli_plugin/install/downloaders/file.js b/src/cli_plugin/install/downloaders/file.js
index eee8ddb21d6dd..56f83b03d5a90 100644
--- a/src/cli_plugin/install/downloaders/file.js
+++ b/src/cli_plugin/install/downloaders/file.js
@@ -43,7 +43,7 @@ async function copyFile({ readStream, writeStream, progress }) {
writeStream.on('error', reject);
// report progress as we transfer
- readStream.on('data', chunk => {
+ readStream.on('data', (chunk) => {
progress.progress(chunk.length);
});
diff --git a/src/cli_plugin/install/downloaders/http.js b/src/cli_plugin/install/downloaders/http.js
index 88dcdabe70dfd..0fc01453f2b4c 100644
--- a/src/cli_plugin/install/downloaders/http.js
+++ b/src/cli_plugin/install/downloaders/http.js
@@ -76,7 +76,7 @@ function downloadResponse({ resp, targetPath, progress }) {
writeStream.on('error', reject);
// report progress as we download
- resp.on('data', chunk => {
+ resp.on('data', (chunk) => {
progress.progress(chunk.length);
});
diff --git a/src/cli_plugin/install/index.test.js b/src/cli_plugin/install/index.test.js
index 6a64a673bb93e..39352f52f20fd 100644
--- a/src/cli_plugin/install/index.test.js
+++ b/src/cli_plugin/install/index.test.js
@@ -20,25 +20,25 @@
import sinon from 'sinon';
import index from './index';
-describe('kibana cli', function() {
- describe('plugin installer', function() {
- describe('commander options', function() {
+describe('kibana cli', function () {
+ describe('plugin installer', function () {
+ describe('commander options', function () {
const program = {
- command: function() {
+ command: function () {
return program;
},
- description: function() {
+ description: function () {
return program;
},
- option: function() {
+ option: function () {
return program;
},
- action: function() {
+ action: function () {
return program;
},
};
- it('should define the command', function() {
+ it('should define the command', function () {
sinon.spy(program, 'command');
index(program);
@@ -47,7 +47,7 @@ describe('kibana cli', function() {
program.command.restore();
});
- it('should define the description', function() {
+ it('should define the description', function () {
sinon.spy(program, 'description');
index(program);
@@ -56,7 +56,7 @@ describe('kibana cli', function() {
program.description.restore();
});
- it('should define the command line options', function() {
+ it('should define the command line options', function () {
const spy = sinon.spy(program, 'option');
const options = [/-q/, /-s/, /-c/, /-t/, /-d/];
@@ -77,7 +77,7 @@ describe('kibana cli', function() {
expect(options).toHaveLength(0);
});
- it('should call the action function', function() {
+ it('should call the action function', function () {
sinon.spy(program, 'action');
index(program);
diff --git a/src/cli_plugin/install/kibana.test.js b/src/cli_plugin/install/kibana.test.js
index bbf364a755f8a..8c5dd00d09953 100644
--- a/src/cli_plugin/install/kibana.test.js
+++ b/src/cli_plugin/install/kibana.test.js
@@ -30,9 +30,9 @@ beforeEach(() => {
jest.clearAllMocks();
});
-describe('kibana cli', function() {
- describe('plugin installer', function() {
- describe('kibana', function() {
+describe('kibana cli', function () {
+ describe('plugin installer', function () {
+ describe('kibana', function () {
const testWorkingPath = join(__dirname, '.test.data.kibana');
const tempArchiveFilePath = join(testWorkingPath, 'archive.part');
const pluginDir = join(__dirname, 'plugins');
@@ -48,21 +48,21 @@ describe('kibana cli', function() {
const logger = new Logger(settings);
- describe('assertVersion', function() {
- beforeEach(function() {
+ describe('assertVersion', function () {
+ beforeEach(function () {
del.sync(testWorkingPath);
fs.mkdirSync(testWorkingPath, { recursive: true });
sinon.stub(logger, 'log');
sinon.stub(logger, 'error');
});
- afterEach(function() {
+ afterEach(function () {
logger.log.restore();
logger.error.restore();
del.sync(testWorkingPath);
});
- it('should succeed with exact match', function() {
+ it('should succeed with exact match', function () {
const settings = {
workingPath: testWorkingPath,
tempArchiveFile: tempArchiveFilePath,
@@ -76,60 +76,60 @@ describe('kibana cli', function() {
expect(() => assertVersion(settings)).not.toThrow();
});
- it('should throw an error if plugin is missing a kibana version.', function() {
+ it('should throw an error if plugin is missing a kibana version.', function () {
expect(() => assertVersion(settings)).toThrow(
/plugin package\.json is missing both a version property/i
);
});
- it('should throw an error if plugin kibanaVersion does not match kibana version', function() {
+ it('should throw an error if plugin kibanaVersion does not match kibana version', function () {
settings.plugins[0].kibanaVersion = '1.2.3.4';
expect(() => assertVersion(settings)).toThrow(/incompatible with Kibana/i);
});
- it('should not throw an error if plugin kibanaVersion matches kibana version', function() {
+ it('should not throw an error if plugin kibanaVersion matches kibana version', function () {
settings.plugins[0].kibanaVersion = '1.0.0';
expect(() => assertVersion(settings)).not.toThrow();
});
- it('should ignore version info after the dash in checks on valid version', function() {
+ it('should ignore version info after the dash in checks on valid version', function () {
settings.plugins[0].kibanaVersion = '1.0.0-foo-bar-version-1.2.3';
expect(() => assertVersion(settings)).not.toThrow();
});
- it('should ignore version info after the dash in checks on invalid version', function() {
+ it('should ignore version info after the dash in checks on invalid version', function () {
settings.plugins[0].kibanaVersion = '2.0.0-foo-bar-version-1.2.3';
expect(() => assertVersion(settings)).toThrow(/incompatible with Kibana/i);
});
});
- describe('existingInstall', function() {
+ describe('existingInstall', function () {
let processExitStub;
- beforeEach(function() {
+ beforeEach(function () {
processExitStub = sinon.stub(process, 'exit');
sinon.stub(logger, 'log');
sinon.stub(logger, 'error');
});
- afterEach(function() {
+ afterEach(function () {
processExitStub.restore();
logger.log.restore();
logger.error.restore();
});
- it('should throw an error if the plugin already exists.', function() {
+ it('should throw an error if the plugin already exists.', function () {
fs.statSync.mockImplementationOnce(() => true);
existingInstall(settings, logger);
expect(logger.error.firstCall.args[0]).toMatch(/already exists/);
expect(process.exit.called).toBe(true);
});
- it('should not throw an error if the plugin does not exist.', function() {
+ it('should not throw an error if the plugin does not exist.', function () {
fs.statSync.mockImplementationOnce(() => {
throw { code: 'ENOENT' };
});
diff --git a/src/cli_plugin/install/pack.test.js b/src/cli_plugin/install/pack.test.js
index efe310a4fed40..05a60107f80ff 100644
--- a/src/cli_plugin/install/pack.test.js
+++ b/src/cli_plugin/install/pack.test.js
@@ -27,8 +27,8 @@ import { extract, getPackData } from './pack';
import { _downloadSingle } from './download';
import { join } from 'path';
-describe('kibana cli', function() {
- describe('pack', function() {
+describe('kibana cli', function () {
+ describe('pack', function () {
let testNum = 0;
const workingPathRoot = join(__dirname, '.test.data.pack');
let testWorkingPath;
@@ -37,7 +37,7 @@ describe('kibana cli', function() {
let logger;
let settings;
- beforeEach(function() {
+ beforeEach(function () {
//These tests are dependent on the file system, and I had some inconsistent
//behavior with del.sync show up. Until these tests are re-written to not
//depend on the file system, I make sure that each test uses a different
@@ -60,7 +60,7 @@ describe('kibana cli', function() {
Fs.mkdirSync(testWorkingPath, { recursive: true });
});
- afterEach(function() {
+ afterEach(function () {
logger.log.restore();
logger.error.restore();
del.sync(workingPathRoot);
@@ -77,10 +77,10 @@ describe('kibana cli', function() {
throw new Error('expected the promise to reject');
}
- describe('extract', function() {
+ describe('extract', function () {
//Also only extracts the content from the kibana folder.
//Ignores the others.
- it('successfully extract a valid zip', function() {
+ it('successfully extract a valid zip', function () {
return copyReplyFile('test_plugin.zip')
.then(() => {
return getPackData(settings, logger);
@@ -104,8 +104,8 @@ describe('kibana cli', function() {
});
});
- describe('getPackData', function() {
- it('populate settings.plugins', function() {
+ describe('getPackData', function () {
+ it('populate settings.plugins', function () {
return copyReplyFile('test_plugin.zip')
.then(() => {
return getPackData(settings, logger);
@@ -118,7 +118,7 @@ describe('kibana cli', function() {
});
});
- it('populate settings.plugin.kibanaVersion', function() {
+ it('populate settings.plugin.kibanaVersion', function () {
//kibana.version is defined in this package.json and is different than plugin version
return copyReplyFile('test_plugin_different_version.zip')
.then(() => {
@@ -129,7 +129,7 @@ describe('kibana cli', function() {
});
});
- it('populate settings.plugin.kibanaVersion (default to plugin version)', function() {
+ it('populate settings.plugin.kibanaVersion (default to plugin version)', function () {
//kibana.version is not defined in this package.json, defaults to plugin version
return copyReplyFile('test_plugin.zip')
.then(() => {
@@ -140,7 +140,7 @@ describe('kibana cli', function() {
});
});
- it('populate settings.plugins with multiple plugins', function() {
+ it('populate settings.plugins with multiple plugins', function () {
return copyReplyFile('test_plugin_many.zip')
.then(() => {
return getPackData(settings, logger);
@@ -172,32 +172,32 @@ describe('kibana cli', function() {
});
});
- it('throw an error if there is no kibana plugin', function() {
+ it('throw an error if there is no kibana plugin', function () {
return copyReplyFile('test_plugin_no_kibana.zip')
.then(() => {
return getPackData(settings, logger);
})
- .then(shouldReject, err => {
+ .then(shouldReject, (err) => {
expect(err.message).toMatch(/No kibana plugins found in archive/i);
});
});
- it('throw an error with a corrupt zip', function() {
+ it('throw an error with a corrupt zip', function () {
return copyReplyFile('corrupt.zip')
.then(() => {
return getPackData(settings, logger);
})
- .then(shouldReject, err => {
+ .then(shouldReject, (err) => {
expect(err.message).toMatch(/error retrieving/i);
});
});
- it('throw an error if there an invalid plugin name', function() {
+ it('throw an error if there an invalid plugin name', function () {
return copyReplyFile('invalid_name.zip')
.then(() => {
return getPackData(settings, logger);
})
- .then(shouldReject, err => {
+ .then(shouldReject, (err) => {
expect(err.message).toMatch(/invalid plugin name/i);
});
});
diff --git a/src/cli_plugin/install/progress.test.js b/src/cli_plugin/install/progress.test.js
index 5430af75968bb..3b66e8b3dc86c 100644
--- a/src/cli_plugin/install/progress.test.js
+++ b/src/cli_plugin/install/progress.test.js
@@ -21,26 +21,26 @@ import sinon from 'sinon';
import Progress from './progress';
import Logger from '../lib/logger';
-describe('kibana cli', function() {
- describe('plugin installer', function() {
- describe('progressReporter', function() {
+describe('kibana cli', function () {
+ describe('plugin installer', function () {
+ describe('progressReporter', function () {
let logger;
let progress;
- beforeEach(function() {
+ beforeEach(function () {
logger = new Logger({ silent: false, quiet: false });
sinon.stub(logger, 'log');
sinon.stub(logger, 'error');
progress = new Progress(logger);
});
- afterEach(function() {
+ afterEach(function () {
logger.log.restore();
logger.error.restore();
});
- describe('handleData', function() {
- it('should show a max of 20 dots for full progress', function() {
+ describe('handleData', function () {
+ it('should show a max of 20 dots for full progress', function () {
progress.init(1000);
progress.progress(1000);
progress.complete();
@@ -70,7 +70,7 @@ describe('kibana cli', function() {
expect(logger.log.getCall(21).args[0]).toMatch(/complete/i);
});
- it('should show dot for each 5% of completion', function() {
+ it('should show dot for each 5% of completion', function () {
progress.init(1000);
expect(logger.log.callCount).toBe(1);
diff --git a/src/cli_plugin/install/rename.js b/src/cli_plugin/install/rename.js
index 92adb21368007..1e5d94d474375 100644
--- a/src/cli_plugin/install/rename.js
+++ b/src/cli_plugin/install/rename.js
@@ -21,7 +21,7 @@ import { rename } from 'fs';
import { delay } from 'lodash';
export function renamePlugin(workingPath, finalPath) {
- return new Promise(function(resolve, reject) {
+ return new Promise(function (resolve, reject) {
const start = Date.now();
const retryTime = 3000;
const retryDelay = 100;
diff --git a/src/cli_plugin/install/rename.test.js b/src/cli_plugin/install/rename.test.js
index c725a1218cbd2..40df75adc5efa 100644
--- a/src/cli_plugin/install/rename.test.js
+++ b/src/cli_plugin/install/rename.test.js
@@ -22,63 +22,63 @@ import fs from 'fs';
import { renamePlugin } from './rename';
-describe('plugin folder rename', function() {
+describe('plugin folder rename', function () {
let renameStub;
- beforeEach(function() {
+ beforeEach(function () {
renameStub = sinon.stub();
});
- afterEach(function() {
+ afterEach(function () {
fs.rename.restore();
});
- it('should rethrow any exceptions', function() {
+ it('should rethrow any exceptions', function () {
renameStub = sinon.stub(fs, 'rename').callsFake((from, to, cb) => {
cb({
code: 'error',
});
});
- return renamePlugin('/foo/bar', '/bar/foo').catch(function(err) {
+ return renamePlugin('/foo/bar', '/bar/foo').catch(function (err) {
expect(err.code).toBe('error');
expect(renameStub.callCount).toBe(1);
});
});
- it('should resolve if there are no errors', function() {
+ it('should resolve if there are no errors', function () {
renameStub = sinon.stub(fs, 'rename').callsFake((from, to, cb) => {
cb();
});
return renamePlugin('/foo/bar', '/bar/foo')
- .then(function() {
+ .then(function () {
expect(renameStub.callCount).toBe(1);
})
- .catch(function() {
+ .catch(function () {
throw new Error("We shouldn't have any errors");
});
});
- describe('Windows', function() {
+ describe('Windows', function () {
let platform;
- beforeEach(function() {
+ beforeEach(function () {
platform = Object.getOwnPropertyDescriptor(process, 'platform');
Object.defineProperty(process, 'platform', {
value: 'win32',
});
});
- afterEach(function() {
+ afterEach(function () {
Object.defineProperty(process, 'platform', platform);
});
- it('should retry on Windows EPERM errors for up to 3 seconds', function() {
+ it('should retry on Windows EPERM errors for up to 3 seconds', function () {
renameStub = sinon.stub(fs, 'rename').callsFake((from, to, cb) => {
cb({
code: 'EPERM',
});
});
- return renamePlugin('/foo/bar', '/bar/foo').catch(function(err) {
+ return renamePlugin('/foo/bar', '/bar/foo').catch(function (err) {
expect(err.code).toBe('EPERM');
expect(renameStub.callCount).toBeGreaterThan(1);
});
diff --git a/src/cli_plugin/install/settings.js b/src/cli_plugin/install/settings.js
index 1f924caddf1b7..40c845fc37a9e 100644
--- a/src/cli_plugin/install/settings.js
+++ b/src/cli_plugin/install/settings.js
@@ -56,7 +56,7 @@ export function parse(command, options, kbnPackage) {
settings.workingPath = resolve(settings.pluginDir, '.plugin.installing');
settings.tempArchiveFile = resolve(settings.workingPath, 'archive.part');
settings.tempPackageFile = resolve(settings.workingPath, 'package.json');
- settings.setPlugin = function(plugin) {
+ settings.setPlugin = function (plugin) {
settings.plugin = plugin;
settings.pluginPath = resolve(settings.pluginDir, settings.plugin.name);
};
diff --git a/src/cli_plugin/install/settings.test.js b/src/cli_plugin/install/settings.test.js
index 1f0aef4377b40..39ca07405ade2 100644
--- a/src/cli_plugin/install/settings.test.js
+++ b/src/cli_plugin/install/settings.test.js
@@ -21,23 +21,23 @@ import { fromRoot } from '../../core/server/utils';
import { resolve } from 'path';
import { parseMilliseconds, parse } from './settings';
-describe('kibana cli', function() {
- describe('plugin installer', function() {
- describe('command line option parsing', function() {
- describe('parseMilliseconds function', function() {
- it('should return 0 for an empty string', function() {
+describe('kibana cli', function () {
+ describe('plugin installer', function () {
+ describe('command line option parsing', function () {
+ describe('parseMilliseconds function', function () {
+ it('should return 0 for an empty string', function () {
const value = '';
const result = parseMilliseconds(value);
expect(result).toBe(0);
});
- it('should return 0 for a number with an invalid unit of measure', function() {
+ it('should return 0 for a number with an invalid unit of measure', function () {
const result = parseMilliseconds('1gigablasts');
expect(result).toBe(0);
});
- it('should assume a number with no unit of measure is specified as milliseconds', function() {
+ it('should assume a number with no unit of measure is specified as milliseconds', function () {
const result = parseMilliseconds(1);
expect(result).toBe(1);
@@ -45,53 +45,53 @@ describe('kibana cli', function() {
expect(result2).toBe(1);
});
- it('should interpret a number with "s" as the unit of measure as seconds', function() {
+ it('should interpret a number with "s" as the unit of measure as seconds', function () {
const result = parseMilliseconds('5s');
expect(result).toBe(5 * 1000);
});
- it('should interpret a number with "second" as the unit of measure as seconds', function() {
+ it('should interpret a number with "second" as the unit of measure as seconds', function () {
const result = parseMilliseconds('5second');
expect(result).toBe(5 * 1000);
});
- it('should interpret a number with "seconds" as the unit of measure as seconds', function() {
+ it('should interpret a number with "seconds" as the unit of measure as seconds', function () {
const result = parseMilliseconds('5seconds');
expect(result).toBe(5 * 1000);
});
- it('should interpret a number with "m" as the unit of measure as minutes', function() {
+ it('should interpret a number with "m" as the unit of measure as minutes', function () {
const result = parseMilliseconds('9m');
expect(result).toBe(9 * 1000 * 60);
});
- it('should interpret a number with "minute" as the unit of measure as minutes', function() {
+ it('should interpret a number with "minute" as the unit of measure as minutes', function () {
const result = parseMilliseconds('9minute');
expect(result).toBe(9 * 1000 * 60);
});
- it('should interpret a number with "minutes" as the unit of measure as minutes', function() {
+ it('should interpret a number with "minutes" as the unit of measure as minutes', function () {
const result = parseMilliseconds('9minutes');
expect(result).toBe(9 * 1000 * 60);
});
});
- describe('parse function', function() {
+ describe('parse function', function () {
const command = 'plugin name';
let options = {};
const kbnPackage = { version: 1234 };
- beforeEach(function() {
+ beforeEach(function () {
options = { pluginDir: fromRoot('plugins') };
});
- describe('timeout option', function() {
- it('should default to 0 (milliseconds)', function() {
+ describe('timeout option', function () {
+ it('should default to 0 (milliseconds)', function () {
const settings = parse(command, options, kbnPackage);
expect(settings.timeout).toBe(0);
});
- it('should set settings.timeout property', function() {
+ it('should set settings.timeout property', function () {
options.timeout = 1234;
const settings = parse(command, options, kbnPackage);
@@ -99,14 +99,14 @@ describe('kibana cli', function() {
});
});
- describe('quiet option', function() {
- it('should default to false', function() {
+ describe('quiet option', function () {
+ it('should default to false', function () {
const settings = parse(command, options, kbnPackage);
expect(settings.quiet).toBe(false);
});
- it('should set settings.quiet property to true', function() {
+ it('should set settings.quiet property to true', function () {
options.quiet = true;
const settings = parse(command, options, kbnPackage);
@@ -114,14 +114,14 @@ describe('kibana cli', function() {
});
});
- describe('silent option', function() {
- it('should default to false', function() {
+ describe('silent option', function () {
+ it('should default to false', function () {
const settings = parse(command, options, kbnPackage);
expect(settings.silent).toBe(false);
});
- it('should set settings.silent property to true', function() {
+ it('should set settings.silent property to true', function () {
options.silent = true;
const settings = parse(command, options, kbnPackage);
@@ -129,14 +129,14 @@ describe('kibana cli', function() {
});
});
- describe('config option', function() {
- it('should default to ZLS', function() {
+ describe('config option', function () {
+ it('should default to ZLS', function () {
const settings = parse(command, options, kbnPackage);
expect(settings.config).toBe('');
});
- it('should set settings.config property', function() {
+ it('should set settings.config property', function () {
options.config = 'foo bar baz';
const settings = parse(command, options, kbnPackage);
@@ -144,14 +144,14 @@ describe('kibana cli', function() {
});
});
- describe('pluginDir option', function() {
- it('should default to plugins', function() {
+ describe('pluginDir option', function () {
+ it('should default to plugins', function () {
const settings = parse(command, options, kbnPackage);
expect(settings.pluginDir).toBe(fromRoot('plugins'));
});
- it('should set settings.config property', function() {
+ it('should set settings.config property', function () {
options.pluginDir = 'foo bar baz';
const settings = parse(command, options, kbnPackage);
@@ -159,16 +159,16 @@ describe('kibana cli', function() {
});
});
- describe('command value', function() {
- it('should set settings.plugin property', function() {
+ describe('command value', function () {
+ it('should set settings.plugin property', function () {
const settings = parse(command, options, kbnPackage);
expect(settings.plugin).toBe(command);
});
});
- describe('urls collection', function() {
- it('should populate the settings.urls property', function() {
+ describe('urls collection', function () {
+ it('should populate the settings.urls property', function () {
const settings = parse(command, options, kbnPackage);
const expected = [
@@ -180,8 +180,8 @@ describe('kibana cli', function() {
});
});
- describe('workingPath value', function() {
- it('should set settings.workingPath property', function() {
+ describe('workingPath value', function () {
+ it('should set settings.workingPath property', function () {
options.pluginDir = 'foo/bar/baz';
const settings = parse(command, options, kbnPackage);
const expected = resolve('foo/bar/baz', '.plugin.installing');
@@ -190,8 +190,8 @@ describe('kibana cli', function() {
});
});
- describe('tempArchiveFile value', function() {
- it('should set settings.tempArchiveFile property', function() {
+ describe('tempArchiveFile value', function () {
+ it('should set settings.tempArchiveFile property', function () {
options.pluginDir = 'foo/bar/baz';
const settings = parse(command, options, kbnPackage);
const expected = resolve('foo/bar/baz', '.plugin.installing', 'archive.part');
@@ -200,8 +200,8 @@ describe('kibana cli', function() {
});
});
- describe('tempPackageFile value', function() {
- it('should set settings.tempPackageFile property', function() {
+ describe('tempPackageFile value', function () {
+ it('should set settings.tempPackageFile property', function () {
options.pluginDir = 'foo/bar/baz';
const settings = parse(command, options, kbnPackage);
const expected = resolve('foo/bar/baz', '.plugin.installing', 'package.json');
diff --git a/src/cli_plugin/install/zip.js b/src/cli_plugin/install/zip.js
index 03e6edb63b4ff..52eba2ea239a2 100644
--- a/src/cli_plugin/install/zip.js
+++ b/src/cli_plugin/install/zip.js
@@ -34,29 +34,29 @@ export function analyzeArchive(archive) {
const regExp = new RegExp('(kibana[\\\\/][^\\\\/]+)[\\\\/]package.json', 'i');
return new Promise((resolve, reject) => {
- yauzl.open(archive, { lazyEntries: true }, function(err, zipfile) {
+ yauzl.open(archive, { lazyEntries: true }, function (err, zipfile) {
if (err) {
return reject(err);
}
zipfile.readEntry();
- zipfile.on('entry', function(entry) {
+ zipfile.on('entry', function (entry) {
const match = entry.fileName.match(regExp);
if (!match) {
return zipfile.readEntry();
}
- zipfile.openReadStream(entry, function(err, readable) {
+ zipfile.openReadStream(entry, function (err, readable) {
const chunks = [];
if (err) {
return reject(err);
}
- readable.on('data', chunk => chunks.push(chunk));
+ readable.on('data', (chunk) => chunks.push(chunk));
- readable.on('end', function() {
+ readable.on('end', function () {
const contents = Buffer.concat(chunks).toString();
const pkg = JSON.parse(contents);
@@ -92,14 +92,14 @@ export function _isDirectory(filename) {
export function extractArchive(archive, targetDir, extractPath) {
return new Promise((resolve, reject) => {
- yauzl.open(archive, { lazyEntries: true }, function(err, zipfile) {
+ yauzl.open(archive, { lazyEntries: true }, function (err, zipfile) {
if (err) {
return reject(err);
}
zipfile.readEntry();
zipfile.on('close', resolve);
- zipfile.on('entry', function(entry) {
+ zipfile.on('entry', function (entry) {
let fileName = entry.fileName;
if (extractPath && fileName.startsWith(extractPath)) {
@@ -113,7 +113,7 @@ export function extractArchive(archive, targetDir, extractPath) {
}
if (_isDirectory(fileName)) {
- mkdir(fileName, { recursive: true }, function(err) {
+ mkdir(fileName, { recursive: true }, function (err) {
if (err) {
return reject(err);
}
@@ -122,13 +122,13 @@ export function extractArchive(archive, targetDir, extractPath) {
});
} else {
// file entry
- zipfile.openReadStream(entry, function(err, readStream) {
+ zipfile.openReadStream(entry, function (err, readStream) {
if (err) {
return reject(err);
}
// ensure parent directory exists
- mkdir(path.dirname(fileName), { recursive: true }, function(err) {
+ mkdir(path.dirname(fileName), { recursive: true }, function (err) {
if (err) {
return reject(err);
}
@@ -136,7 +136,7 @@ export function extractArchive(archive, targetDir, extractPath) {
readStream.pipe(
createWriteStream(fileName, { mode: entry.externalFileAttributes >>> 16 })
);
- readStream.on('end', function() {
+ readStream.on('end', function () {
zipfile.readEntry();
});
});
diff --git a/src/cli_plugin/install/zip.test.js b/src/cli_plugin/install/zip.test.js
index 8f75367ec8eb4..28367e9e24453 100644
--- a/src/cli_plugin/install/zip.test.js
+++ b/src/cli_plugin/install/zip.test.js
@@ -24,8 +24,8 @@ import glob from 'glob';
import fs from 'fs';
import { analyzeArchive, extractArchive, _isDirectory } from './zip';
-describe('kibana cli', function() {
- describe('zip', function() {
+describe('kibana cli', function () {
+ describe('zip', function () {
const repliesPath = path.resolve(__dirname, '__fixtures__', 'replies');
const archivePath = path.resolve(repliesPath, 'test_plugin.zip');
@@ -40,7 +40,7 @@ describe('kibana cli', function() {
del.sync(tempPath, { force: true });
});
- describe('analyzeArchive', function() {
+ describe('analyzeArchive', function () {
it('returns array of plugins', async () => {
const packages = await analyzeArchive(archivePath);
const plugin = packages[0];
diff --git a/src/cli_plugin/lib/log_warnings.js b/src/cli_plugin/lib/log_warnings.js
index 3adf0ba849c23..b4542acecb305 100644
--- a/src/cli_plugin/lib/log_warnings.js
+++ b/src/cli_plugin/lib/log_warnings.js
@@ -17,8 +17,8 @@
* under the License.
*/
-export default function(settings, logger) {
- process.on('warning', warning => {
+export default function (settings, logger) {
+ process.on('warning', (warning) => {
// deprecation warnings do no reflect a current problem for
// the user and therefor should be filtered out.
if (warning.name === 'DeprecationWarning') {
diff --git a/src/cli_plugin/lib/logger.test.js b/src/cli_plugin/lib/logger.test.js
index db8454f465b47..00cad1a9bbb11 100644
--- a/src/cli_plugin/lib/logger.test.js
+++ b/src/cli_plugin/lib/logger.test.js
@@ -20,21 +20,21 @@
import sinon from 'sinon';
import Logger from './logger';
-describe('kibana cli', function() {
- describe('plugin installer', function() {
- describe('logger', function() {
+describe('kibana cli', function () {
+ describe('plugin installer', function () {
+ describe('logger', function () {
let logger;
- describe('logger.log', function() {
- beforeEach(function() {
+ describe('logger.log', function () {
+ beforeEach(function () {
sinon.stub(process.stdout, 'write');
});
- afterEach(function() {
+ afterEach(function () {
process.stdout.write.restore();
});
- it('should log messages to the console and append a new line', function() {
+ it('should log messages to the console and append a new line', function () {
logger = new Logger({ silent: false, quiet: false });
const message = 'this is my message';
@@ -45,7 +45,7 @@ describe('kibana cli', function() {
expect(process.stdout.write.getCall(callCount - 1).args[0]).toBe('\n');
});
- it('should log messages to the console and append not append a new line', function() {
+ it('should log messages to the console and append not append a new line', function () {
logger = new Logger({ silent: false, quiet: false });
for (let i = 0; i < 10; i++) {
logger.log('.', true);
@@ -68,7 +68,7 @@ describe('kibana cli', function() {
expect(process.stdout.write.getCall(12).args[0]).toBe('\n');
});
- it('should not log any messages when quiet is set', function() {
+ it('should not log any messages when quiet is set', function () {
logger = new Logger({ silent: false, quiet: true });
const message = 'this is my message';
@@ -82,7 +82,7 @@ describe('kibana cli', function() {
expect(process.stdout.write.callCount).toBe(0);
});
- it('should not log any messages when silent is set', function() {
+ it('should not log any messages when silent is set', function () {
logger = new Logger({ silent: true, quiet: false });
const message = 'this is my message';
@@ -97,16 +97,16 @@ describe('kibana cli', function() {
});
});
- describe('logger.error', function() {
- beforeEach(function() {
+ describe('logger.error', function () {
+ beforeEach(function () {
sinon.stub(process.stderr, 'write');
});
- afterEach(function() {
+ afterEach(function () {
process.stderr.write.restore();
});
- it('should log error messages to the console and append a new line', function() {
+ it('should log error messages to the console and append a new line', function () {
logger = new Logger({ silent: false, quiet: false });
const message = 'this is my error';
@@ -114,7 +114,7 @@ describe('kibana cli', function() {
expect(process.stderr.write.calledWith(message + '\n')).toBe(true);
});
- it('should log error messages to the console when quiet is set', function() {
+ it('should log error messages to the console when quiet is set', function () {
logger = new Logger({ silent: false, quiet: true });
const message = 'this is my error';
@@ -122,7 +122,7 @@ describe('kibana cli', function() {
expect(process.stderr.write.calledWith(message + '\n')).toBe(true);
});
- it('should not log any error messages when silent is set', function() {
+ it('should not log any error messages when silent is set', function () {
logger = new Logger({ silent: true, quiet: false });
const message = 'this is my error';
diff --git a/src/cli_plugin/list/list.js b/src/cli_plugin/list/list.js
index d53e868b32e36..b34631e5dfd08 100644
--- a/src/cli_plugin/list/list.js
+++ b/src/cli_plugin/list/list.js
@@ -21,7 +21,7 @@ import { statSync, readdirSync, readFileSync } from 'fs';
import { join } from 'path';
export default function list(settings, logger) {
- readdirSync(settings.pluginDir).forEach(filename => {
+ readdirSync(settings.pluginDir).forEach((filename) => {
const stat = statSync(join(settings.pluginDir, filename));
if (stat.isDirectory() && filename[0] !== '.') {
diff --git a/src/cli_plugin/list/list.test.js b/src/cli_plugin/list/list.test.js
index c6480ca52b59a..071a253fa87fe 100644
--- a/src/cli_plugin/list/list.test.js
+++ b/src/cli_plugin/list/list.test.js
@@ -30,8 +30,8 @@ function createPlugin(name, version, pluginBaseDir) {
appendFileSync(join(pluginDir, 'package.json'), '{"version": "' + version + '"}');
}
-describe('kibana cli', function() {
- describe('plugin lister', function() {
+describe('kibana cli', function () {
+ describe('plugin lister', function () {
const pluginDir = join(__dirname, '.test.data.list');
let logger;
@@ -39,7 +39,7 @@ describe('kibana cli', function() {
pluginDir: pluginDir,
};
- beforeEach(function() {
+ beforeEach(function () {
logger = new Logger(settings);
sinon.stub(logger, 'log');
sinon.stub(logger, 'error');
@@ -47,13 +47,13 @@ describe('kibana cli', function() {
mkdirSync(pluginDir, { recursive: true });
});
- afterEach(function() {
+ afterEach(function () {
logger.log.restore();
logger.error.restore();
del.sync(pluginDir);
});
- it('list all of the folders in the plugin folder', function() {
+ it('list all of the folders in the plugin folder', function () {
createPlugin('plugin1', '5.0.0-alpha2', pluginDir);
createPlugin('plugin2', '3.2.1', pluginDir);
createPlugin('plugin3', '1.2.3', pluginDir);
@@ -65,7 +65,7 @@ describe('kibana cli', function() {
expect(logger.log.calledWith('plugin3@1.2.3')).toBe(true);
});
- it('ignore folders that start with a period', function() {
+ it('ignore folders that start with a period', function () {
createPlugin('.foo', '1.0.0', pluginDir);
createPlugin('plugin1', '5.0.0-alpha2', pluginDir);
createPlugin('plugin2', '3.2.1', pluginDir);
@@ -78,7 +78,7 @@ describe('kibana cli', function() {
expect(logger.log.calledWith('.bar@1.0.0')).toBe(false);
});
- it('list should only list folders', function() {
+ it('list should only list folders', function () {
createPlugin('plugin1', '1.0.0', pluginDir);
createPlugin('plugin2', '1.0.0', pluginDir);
createPlugin('plugin3', '1.0.0', pluginDir);
@@ -91,22 +91,22 @@ describe('kibana cli', function() {
expect(logger.log.calledWith('plugin3@1.0.0')).toBe(true);
});
- it('list should throw an exception if a plugin does not have a package.json', function() {
+ it('list should throw an exception if a plugin does not have a package.json', function () {
createPlugin('plugin1', '1.0.0', pluginDir);
mkdirSync(join(pluginDir, 'empty-plugin'), { recursive: true });
- expect(function() {
+ expect(function () {
list(settings, logger);
}).toThrowError('Unable to read package.json file for plugin empty-plugin');
});
- it('list should throw an exception if a plugin have an empty package.json', function() {
+ it('list should throw an exception if a plugin have an empty package.json', function () {
createPlugin('plugin1', '1.0.0', pluginDir);
const invalidPluginDir = join(pluginDir, 'invalid-plugin');
mkdirSync(invalidPluginDir, { recursive: true });
appendFileSync(join(invalidPluginDir, 'package.json'), '');
- expect(function() {
+ expect(function () {
list(settings, logger);
}).toThrowError('Unable to read package.json file for plugin invalid-plugin');
});
diff --git a/src/cli_plugin/list/settings.test.js b/src/cli_plugin/list/settings.test.js
index 144b5d8661527..85e6cb88e82fd 100644
--- a/src/cli_plugin/list/settings.test.js
+++ b/src/cli_plugin/list/settings.test.js
@@ -20,24 +20,24 @@
import { fromRoot } from '../../core/server/utils';
import { parse } from './settings';
-describe('kibana cli', function() {
- describe('plugin installer', function() {
- describe('command line option parsing', function() {
- describe('parse function', function() {
+describe('kibana cli', function () {
+ describe('plugin installer', function () {
+ describe('command line option parsing', function () {
+ describe('parse function', function () {
let command;
const options = {};
- beforeEach(function() {
+ beforeEach(function () {
command = { pluginDir: fromRoot('plugins') };
});
- describe('pluginDir option', function() {
- it('should default to plugins', function() {
+ describe('pluginDir option', function () {
+ it('should default to plugins', function () {
const settings = parse(command, options);
expect(settings.pluginDir).toBe(fromRoot('plugins'));
});
- it('should set settings.config property', function() {
+ it('should set settings.config property', function () {
command.pluginDir = 'foo bar baz';
const settings = parse(command, options);
diff --git a/src/cli_plugin/remove/remove.test.js b/src/cli_plugin/remove/remove.test.js
index 032a17abe209e..4bf061820aa05 100644
--- a/src/cli_plugin/remove/remove.test.js
+++ b/src/cli_plugin/remove/remove.test.js
@@ -25,15 +25,15 @@ import remove from './remove';
import { join } from 'path';
import { writeFileSync, existsSync, mkdirSync } from 'fs';
-describe('kibana cli', function() {
- describe('plugin remover', function() {
+describe('kibana cli', function () {
+ describe('plugin remover', function () {
const pluginDir = join(__dirname, '.test.data.remove');
let processExitStub;
let logger;
const settings = { pluginDir };
- beforeEach(function() {
+ beforeEach(function () {
processExitStub = sinon.stub(process, 'exit');
logger = new Logger(settings);
sinon.stub(logger, 'log');
@@ -42,14 +42,14 @@ describe('kibana cli', function() {
mkdirSync(pluginDir, { recursive: true });
});
- afterEach(function() {
+ afterEach(function () {
processExitStub.restore();
logger.log.restore();
logger.error.restore();
del.sync(pluginDir);
});
- it('throw an error if the plugin is not installed.', function() {
+ it('throw an error if the plugin is not installed.', function () {
settings.pluginPath = join(pluginDir, 'foo');
settings.plugin = 'foo';
@@ -58,7 +58,7 @@ describe('kibana cli', function() {
expect(process.exit.called).toBe(true);
});
- it('throw an error if the specified plugin is not a folder.', function() {
+ it('throw an error if the specified plugin is not a folder.', function () {
writeFileSync(join(pluginDir, 'foo'), 'This is a file, and not a folder.');
remove(settings, logger);
@@ -85,7 +85,7 @@ describe('kibana cli', function() {
);
});
- it('delete the specified folder.', function() {
+ it('delete the specified folder.', function () {
settings.pluginPath = join(pluginDir, 'foo');
mkdirSync(join(pluginDir, 'foo'), { recursive: true });
mkdirSync(join(pluginDir, 'bar'), { recursive: true });
diff --git a/src/cli_plugin/remove/settings.test.js b/src/cli_plugin/remove/settings.test.js
index 5bb4b30cfff09..b3110e1ff0499 100644
--- a/src/cli_plugin/remove/settings.test.js
+++ b/src/cli_plugin/remove/settings.test.js
@@ -20,25 +20,25 @@
import { fromRoot } from '../../core/server/utils';
import { parse } from './settings';
-describe('kibana cli', function() {
- describe('plugin installer', function() {
- describe('command line option parsing', function() {
- describe('parse function', function() {
+describe('kibana cli', function () {
+ describe('plugin installer', function () {
+ describe('command line option parsing', function () {
+ describe('parse function', function () {
const command = 'plugin name';
let options = {};
const kbnPackage = { version: 1234 };
- beforeEach(function() {
+ beforeEach(function () {
options = { pluginDir: fromRoot('plugins') };
});
- describe('quiet option', function() {
- it('should default to false', function() {
+ describe('quiet option', function () {
+ it('should default to false', function () {
const settings = parse(command, options, kbnPackage);
expect(settings.quiet).toBe(false);
});
- it('should set settings.quiet property to true', function() {
+ it('should set settings.quiet property to true', function () {
options.quiet = true;
const settings = parse(command, options, kbnPackage);
@@ -46,14 +46,14 @@ describe('kibana cli', function() {
});
});
- describe('silent option', function() {
- it('should default to false', function() {
+ describe('silent option', function () {
+ it('should default to false', function () {
const settings = parse(command, options, kbnPackage);
expect(settings.silent).toBe(false);
});
- it('should set settings.silent property to true', function() {
+ it('should set settings.silent property to true', function () {
options.silent = true;
const settings = parse(command, options, kbnPackage);
@@ -61,14 +61,14 @@ describe('kibana cli', function() {
});
});
- describe('config option', function() {
- it('should default to ZLS', function() {
+ describe('config option', function () {
+ it('should default to ZLS', function () {
const settings = parse(command, options, kbnPackage);
expect(settings.config).toBe('');
});
- it('should set settings.config property', function() {
+ it('should set settings.config property', function () {
options.config = 'foo bar baz';
const settings = parse(command, options, kbnPackage);
@@ -76,14 +76,14 @@ describe('kibana cli', function() {
});
});
- describe('pluginDir option', function() {
- it('should default to plugins', function() {
+ describe('pluginDir option', function () {
+ it('should default to plugins', function () {
const settings = parse(command, options, kbnPackage);
expect(settings.pluginDir).toBe(fromRoot('plugins'));
});
- it('should set settings.config property', function() {
+ it('should set settings.config property', function () {
options.pluginDir = 'foo bar baz';
const settings = parse(command, options, kbnPackage);
@@ -91,8 +91,8 @@ describe('kibana cli', function() {
});
});
- describe('command value', function() {
- it('should set settings.plugin property', function() {
+ describe('command value', function () {
+ it('should set settings.plugin property', function () {
const settings = parse(command, options, kbnPackage);
expect(settings.plugin).toBe(command);
diff --git a/src/core/public/application/application_leave.test.ts b/src/core/public/application/application_leave.test.ts
index e06183d8bb8d9..b560bbc0cbc25 100644
--- a/src/core/public/application/application_leave.test.ts
+++ b/src/core/public/application/application_leave.test.ts
@@ -31,16 +31,16 @@ describe('isConfirmAction', () => {
describe('getLeaveAction', () => {
it('returns the default action provided by the handler', () => {
- expect(getLeaveAction(actions => actions.default())).toEqual({
+ expect(getLeaveAction((actions) => actions.default())).toEqual({
type: AppLeaveActionType.default,
});
});
it('returns the confirm action provided by the handler', () => {
- expect(getLeaveAction(actions => actions.confirm('some message'))).toEqual({
+ expect(getLeaveAction((actions) => actions.confirm('some message'))).toEqual({
type: AppLeaveActionType.confirm,
text: 'some message',
});
- expect(getLeaveAction(actions => actions.confirm('another message', 'a title'))).toEqual({
+ expect(getLeaveAction((actions) => actions.confirm('another message', 'a title'))).toEqual({
type: AppLeaveActionType.confirm,
text: 'another message',
title: 'a title',
diff --git a/src/core/public/application/application_service.mock.ts b/src/core/public/application/application_service.mock.ts
index d2a827d381be5..e8d9e101bfa5a 100644
--- a/src/core/public/application/application_service.mock.ts
+++ b/src/core/public/application/application_service.mock.ts
@@ -64,7 +64,7 @@ const createInternalStartContractMock = (): jest.Mocked currentAppId$.next(appId)),
+ navigateToApp: jest.fn().mockImplementation((appId) => currentAppId$.next(appId)),
registerMountContext: jest.fn(),
};
};
diff --git a/src/core/public/application/application_service.test.ts b/src/core/public/application/application_service.test.ts
index 04ff844ffc150..81212b922bd2b 100644
--- a/src/core/public/application/application_service.test.ts
+++ b/src/core/public/application/application_service.test.ts
@@ -92,7 +92,7 @@ describe('#setup()', () => {
const setup = service.setup(setupDeps);
const pluginId = Symbol('plugin');
- const updater$ = new BehaviorSubject(app => ({}));
+ const updater$ = new BehaviorSubject((app) => ({}));
setup.register(pluginId, createApp({ id: 'app1', updater$ }));
setup.register(pluginId, createApp({ id: 'app2' }));
const { applications$ } = await service.start(startDeps);
@@ -116,7 +116,7 @@ describe('#setup()', () => {
})
);
- updater$.next(app => ({
+ updater$.next((app) => ({
status: AppStatus.inaccessible,
tooltip: 'App inaccessible due to reason',
defaultPath: 'foo/bar',
@@ -220,7 +220,7 @@ describe('#setup()', () => {
setup.register(pluginId, createApp({ id: 'app1' }));
setup.register(pluginId, createApp({ id: 'app2' }));
setup.registerAppUpdater(
- new BehaviorSubject(app => {
+ new BehaviorSubject((app) => {
if (app.id === 'app1') {
return {
status: AppStatus.inaccessible,
@@ -260,7 +260,7 @@ describe('#setup()', () => {
it(`properly combine with application's updater$`, async () => {
const setup = service.setup(setupDeps);
const pluginId = Symbol('plugin');
- const appStatusUpdater$ = new BehaviorSubject(app => ({
+ const appStatusUpdater$ = new BehaviorSubject((app) => ({
status: AppStatus.inaccessible,
navLinkStatus: AppNavLinkStatus.disabled,
}));
@@ -268,7 +268,7 @@ describe('#setup()', () => {
setup.register(pluginId, createApp({ id: 'app2' }));
setup.registerAppUpdater(
- new BehaviorSubject(app => {
+ new BehaviorSubject((app) => {
if (app.id === 'app1') {
return {
status: AppStatus.accessible,
@@ -311,7 +311,7 @@ describe('#setup()', () => {
const pluginId = Symbol('plugin');
setup.register(pluginId, createApp({ id: 'app1' }));
setup.registerAppUpdater(
- new BehaviorSubject(app => {
+ new BehaviorSubject((app) => {
return {
status: AppStatus.inaccessible,
navLinkStatus: AppNavLinkStatus.disabled,
@@ -319,7 +319,7 @@ describe('#setup()', () => {
})
);
setup.registerAppUpdater(
- new BehaviorSubject(app => {
+ new BehaviorSubject((app) => {
return {
status: AppStatus.accessible,
navLinkStatus: AppNavLinkStatus.default,
@@ -347,7 +347,7 @@ describe('#setup()', () => {
const pluginId = Symbol('plugin');
setup.register(pluginId, createApp({ id: 'app1' }));
- const statusUpdater = new BehaviorSubject(app => {
+ const statusUpdater = new BehaviorSubject((app) => {
return {
status: AppStatus.inaccessible,
navLinkStatus: AppNavLinkStatus.disabled,
@@ -357,7 +357,7 @@ describe('#setup()', () => {
const start = await service.start(startDeps);
let latestValue: ReadonlyMap = new Map();
- start.applications$.subscribe(apps => {
+ start.applications$.subscribe((apps) => {
latestValue = apps;
});
@@ -370,7 +370,7 @@ describe('#setup()', () => {
})
);
- statusUpdater.next(app => {
+ statusUpdater.next((app) => {
return {
status: AppStatus.accessible,
navLinkStatus: AppNavLinkStatus.hidden,
@@ -393,7 +393,7 @@ describe('#setup()', () => {
setup.registerLegacyApp(createLegacyApp({ id: 'app1' }));
setup.registerAppUpdater(
- new BehaviorSubject(app => {
+ new BehaviorSubject((app) => {
return {
status: AppStatus.inaccessible,
navLinkStatus: AppNavLinkStatus.hidden,
@@ -423,7 +423,7 @@ describe('#setup()', () => {
const pluginId = Symbol('plugin');
setup.register(pluginId, createApp({ id: 'app1' }));
- const updater = new BehaviorSubject(app => ({}));
+ const updater = new BehaviorSubject((app) => ({}));
setup.registerAppUpdater(updater);
const start = await service.start(startDeps);
@@ -431,17 +431,17 @@ describe('#setup()', () => {
expect(MockHistory.push).toHaveBeenCalledWith('/app/app1', undefined);
MockHistory.push.mockClear();
- updater.next(app => ({ defaultPath: 'default-path' }));
+ updater.next((app) => ({ defaultPath: 'default-path' }));
await start.navigateToApp('app1');
expect(MockHistory.push).toHaveBeenCalledWith('/app/app1/default-path', undefined);
MockHistory.push.mockClear();
- updater.next(app => ({ defaultPath: 'another-path' }));
+ updater.next((app) => ({ defaultPath: 'another-path' }));
await start.navigateToApp('app1');
expect(MockHistory.push).toHaveBeenCalledWith('/app/app1/another-path', undefined);
MockHistory.push.mockClear();
- updater.next(app => ({}));
+ updater.next((app) => ({}));
await start.navigateToApp('app1');
expect(MockHistory.push).toHaveBeenCalledWith('/app/app1', undefined);
MockHistory.push.mockClear();
@@ -816,11 +816,11 @@ describe('#start()', () => {
const history = createMemoryHistory();
setupDeps.history = history;
- const flushPromises = () => new Promise(resolve => setImmediate(resolve));
+ const flushPromises = () => new Promise((resolve) => setImmediate(resolve));
// Create an app and a promise that allows us to control when the app completes mounting
const createWaitingApp = (props: Partial): [App, () => void] => {
let finishMount: () => void;
- const mountPromise = new Promise(resolve => (finishMount = resolve));
+ const mountPromise = new Promise((resolve) => (finishMount = resolve));
const app = {
id: 'some-id',
title: 'some-title',
diff --git a/src/core/public/application/application_service.tsx b/src/core/public/application/application_service.tsx
index 6802c2363b9f8..c22904991161f 100644
--- a/src/core/public/application/application_service.tsx
+++ b/src/core/public/application/application_service.tsx
@@ -136,7 +136,7 @@ export class ApplicationService {
const registerStatusUpdater = (application: string, updater$: Observable) => {
const updaterId = Symbol();
- const subscription = updater$.subscribe(updater => {
+ const subscription = updater$.subscribe((updater) => {
const nextValue = new Map(this.statusUpdaters$.getValue());
nextValue.set(updaterId, {
application,
@@ -160,7 +160,7 @@ export class ApplicationService {
} else {
handler = app.mount;
}
- return async params => {
+ return async (params) => {
this.currentAppId$.next(app.id);
return handler(params);
};
@@ -201,7 +201,7 @@ export class ApplicationService {
legacy: false,
});
},
- registerLegacyApp: app => {
+ registerLegacyApp: (app) => {
const appRoute = `/app/${app.id.split(':')[0]}`;
if (this.registrationClosed) {
@@ -262,7 +262,7 @@ export class ApplicationService {
const applications$ = new BehaviorSubject(availableApps);
this.statusUpdaters$
.pipe(
- map(statusUpdaters => {
+ map((statusUpdaters) => {
return new Map(
[...availableApps].map(([id, app]) => [
id,
@@ -271,10 +271,10 @@ export class ApplicationService {
);
})
)
- .subscribe(apps => applications$.next(apps));
+ .subscribe((apps) => applications$.next(apps));
const applicationStatuses$ = applications$.pipe(
- map(apps => new Map([...apps.entries()].map(([id, app]) => [id, app.status!]))),
+ map((apps) => new Map([...apps.entries()].map(([id, app]) => [id, app.status!]))),
shareReplay(1)
);
@@ -282,7 +282,7 @@ export class ApplicationService {
applications$,
capabilities,
currentAppId$: this.currentAppId$.pipe(
- filter(appId => appId !== undefined),
+ filter((appId) => appId !== undefined),
distinctUntilChanged(),
takeUntil(this.stop$)
),
@@ -314,7 +314,7 @@ export class ApplicationService {
mounters={availableMounters}
appStatuses$={applicationStatuses$}
setAppLeaveHandler={this.setAppLeaveHandler}
- setIsMounting={isMounting => httpLoadingCount$.next(isMounting ? 1 : 0)}
+ setIsMounting={(isMounting) => httpLoadingCount$.next(isMounting ? 1 : 0)}
/>
);
},
@@ -360,14 +360,14 @@ export class ApplicationService {
this.stop$.next();
this.currentAppId$.complete();
this.statusUpdaters$.complete();
- this.subscriptions.forEach(sub => sub.unsubscribe());
+ this.subscriptions.forEach((sub) => sub.unsubscribe());
window.removeEventListener('beforeunload', this.onBeforeUnload);
}
}
const updateStatus = (app: T, statusUpdaters: AppUpdaterWrapper[]): T => {
let changes: Partial = {};
- statusUpdaters.forEach(wrapper => {
+ statusUpdaters.forEach((wrapper) => {
if (wrapper.application !== allApplicationsFilter && wrapper.application !== app.id) {
return;
}
diff --git a/src/core/public/application/integration_tests/application_service.test.tsx b/src/core/public/application/integration_tests/application_service.test.tsx
index e399fbc726977..89f90a9899dda 100644
--- a/src/core/public/application/integration_tests/application_service.test.tsx
+++ b/src/core/public/application/integration_tests/application_service.test.tsx
@@ -31,7 +31,7 @@ import { overlayServiceMock } from '../../overlays/overlay_service.mock';
import { AppMountParameters } from '../types';
import { ScopedHistory } from '../scoped_history';
-const flushPromises = () => new Promise(resolve => setImmediate(resolve));
+const flushPromises = () => new Promise((resolve) => setImmediate(resolve));
describe('ApplicationService', () => {
let setupDeps: MockLifecycle<'setup'>;
@@ -68,7 +68,7 @@ describe('ApplicationService', () => {
const { register } = service.setup(setupDeps);
let resolveMount: () => void;
- const promise = new Promise(resolve => {
+ const promise = new Promise((resolve) => {
resolveMount = resolve;
});
@@ -102,7 +102,7 @@ describe('ApplicationService', () => {
const { register } = service.setup(setupDeps);
let resolveMount: () => void;
- const promise = new Promise(resolve => {
+ const promise = new Promise((resolve) => {
resolveMount = resolve;
});
@@ -146,7 +146,7 @@ describe('ApplicationService', () => {
id: 'app1',
title: 'App1',
mount: ({ onAppLeave }: AppMountParameters) => {
- onAppLeave(actions => actions.default());
+ onAppLeave((actions) => actions.default());
return () => undefined;
},
});
@@ -178,7 +178,7 @@ describe('ApplicationService', () => {
id: 'app1',
title: 'App1',
mount: ({ onAppLeave }: AppMountParameters) => {
- onAppLeave(actions => actions.default());
+ onAppLeave((actions) => actions.default());
return () => undefined;
},
});
@@ -213,7 +213,7 @@ describe('ApplicationService', () => {
id: 'app1',
title: 'App1',
mount: ({ onAppLeave }: AppMountParameters) => {
- onAppLeave(actions => actions.confirm('confirmation-message', 'confirmation-title'));
+ onAppLeave((actions) => actions.confirm('confirmation-message', 'confirmation-title'));
return () => undefined;
},
});
@@ -252,7 +252,7 @@ describe('ApplicationService', () => {
id: 'app1',
title: 'App1',
mount: ({ onAppLeave }: AppMountParameters) => {
- onAppLeave(actions => actions.confirm('confirmation-message', 'confirmation-title'));
+ onAppLeave((actions) => actions.confirm('confirmation-message', 'confirmation-title'));
return () => undefined;
},
});
diff --git a/src/core/public/application/integration_tests/router.test.tsx b/src/core/public/application/integration_tests/router.test.tsx
index 9f379859dc34f..2827b93f6d17e 100644
--- a/src/core/public/application/integration_tests/router.test.tsx
+++ b/src/core/public/application/integration_tests/router.test.tsx
@@ -45,7 +45,7 @@ describe('AppRouter', () => {
const mountersToAppStatus$ = () => {
return new BehaviorSubject(
new Map(
- [...mounters.keys()].map(id => [
+ [...mounters.keys()].map((id) => [
id,
id.startsWith('disabled') ? AppStatus.inaccessible : AppStatus.accessible,
])
diff --git a/src/core/public/application/integration_tests/utils.tsx b/src/core/public/application/integration_tests/utils.tsx
index 6c1b81a26d63c..8590fb3c820ef 100644
--- a/src/core/public/application/integration_tests/utils.tsx
+++ b/src/core/public/application/integration_tests/utils.tsx
@@ -33,7 +33,7 @@ export const createRenderer = (element: ReactElement | null): Renderer => {
const dom: Dom = element && mount({element});
return () =>
- new Promise(async resolve => {
+ new Promise(async (resolve) => {
if (dom) {
await act(async () => {
dom.update();
diff --git a/src/core/public/application/scoped_history.test.ts b/src/core/public/application/scoped_history.test.ts
index a56cffef1e2f2..2b217e54228c2 100644
--- a/src/core/public/application/scoped_history.test.ts
+++ b/src/core/public/application/scoped_history.test.ts
@@ -217,7 +217,7 @@ describe('ScopedHistory', () => {
gh.push('/app/wow');
const h = new ScopedHistory(gh, '/app/wow');
const listenPaths: string[] = [];
- h.listen(l => listenPaths.push(l.pathname));
+ h.listen((l) => listenPaths.push(l.pathname));
h.push('/first-page');
h.push('/second-page');
h.push('/third-page');
@@ -237,7 +237,7 @@ describe('ScopedHistory', () => {
gh.push('/app/wow');
const h = new ScopedHistory(gh, '/app/wow');
const listenPaths: string[] = [];
- const unlisten = h.listen(l => listenPaths.push(l.pathname));
+ const unlisten = h.listen((l) => listenPaths.push(l.pathname));
h.push('/first-page');
unlisten();
h.push('/second-page');
@@ -252,7 +252,7 @@ describe('ScopedHistory', () => {
gh.push('/app/wow');
const h = new ScopedHistory(gh, '/app/wow');
const listenPaths: string[] = [];
- h.listen(l => listenPaths.push(l.pathname));
+ h.listen((l) => listenPaths.push(l.pathname));
h.push('/first-page');
gh.push('/app/other');
gh.push('/second-page');
diff --git a/src/core/public/application/scoped_history.ts b/src/core/public/application/scoped_history.ts
index 9fa8f0b7f8148..1a7fafa5d85c4 100644
--- a/src/core/public/application/scoped_history.ts
+++ b/src/core/public/application/scoped_history.ts
@@ -324,7 +324,7 @@ export class ScopedHistory
throw new Error(`Unrecognized history action: ${action}`);
}
- [...this.listeners].forEach(listener => {
+ [...this.listeners].forEach((listener) => {
listener(this.stripBasePath(location), action);
});
});
diff --git a/src/core/public/application/ui/app_container.test.tsx b/src/core/public/application/ui/app_container.test.tsx
index 5d573d47bd420..229354a014103 100644
--- a/src/core/public/application/ui/app_container.test.tsx
+++ b/src/core/public/application/ui/app_container.test.tsx
@@ -37,14 +37,14 @@ describe('AppContainer', () => {
});
const flushPromises = async () => {
- await new Promise(async resolve => {
+ await new Promise(async (resolve) => {
setImmediate(() => resolve());
});
};
const createResolver = (): [Promise, () => void] => {
let resolve: () => void | undefined;
- const promise = new Promise(r => {
+ const promise = new Promise((r) => {
resolve = r;
});
return [promise, resolve!];
diff --git a/src/core/public/application/ui/app_container.tsx b/src/core/public/application/ui/app_container.tsx
index 4317ede547202..332c31c64b6ba 100644
--- a/src/core/public/application/ui/app_container.tsx
+++ b/src/core/public/application/ui/app_container.tsx
@@ -83,7 +83,7 @@ export const AppContainer: FunctionComponent = ({
appBasePath: mounter.appBasePath,
history: createScopedHistory(appPath),
element: elementRef.current!,
- onAppLeave: handler => setAppLeaveHandler(appId, handler),
+ onAppLeave: (handler) => setAppLeaveHandler(appId, handler),
})) || null;
} catch (e) {
// TODO: add error UI
diff --git a/src/core/public/chrome/chrome_service.test.ts b/src/core/public/chrome/chrome_service.test.ts
index b5cf900d9c39f..0bc305ed9e28c 100644
--- a/src/core/public/chrome/chrome_service.test.ts
+++ b/src/core/public/chrome/chrome_service.test.ts
@@ -56,7 +56,7 @@ function defaultStartDeps(availableApps?: App[]) {
if (availableApps) {
deps.application.applications$ = new Rx.BehaviorSubject