Commit graph

84 commits

Author SHA1 Message Date
Gerard Soldevila
6a6d3d61ca
[8.x] SKA: Update broken references and URLs (#206836) (#208479)
# Backport

This will backport the following commits from `main` to `8.x`:
- [SKA: Update broken references and URLs
(#206836)](https://github.com/elastic/kibana/pull/206836)

<!--- Backport version: 9.6.4 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2025-01-28T03:32:48Z","message":"SKA:
Update broken references and URLs (#206836)\n\n## Summary\r\n\r\nUpdates
a number of broken file references and broken
links.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Alejandro Fernández Haro
<afharo@gmail.com>","sha":"fb26c1c683453faa7f8218df094f90d9ad070a23","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Feature:ExpressionLanguage","release_note:skip","Team:Fleet","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","Team:obs-ux-management"],"title":"SKA:
Update broken references and
URLs","number":206836,"url":"https://github.com/elastic/kibana/pull/206836","mergeCommit":{"message":"SKA:
Update broken references and URLs (#206836)\n\n## Summary\r\n\r\nUpdates
a number of broken file references and broken
links.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Alejandro Fernández Haro
<afharo@gmail.com>","sha":"fb26c1c683453faa7f8218df094f90d9ad070a23"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206836","number":206836,"mergeCommit":{"message":"SKA:
Update broken references and URLs (#206836)\n\n## Summary\r\n\r\nUpdates
a number of broken file references and broken
links.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Alejandro Fernández Haro
<afharo@gmail.com>","sha":"fb26c1c683453faa7f8218df094f90d9ad070a23"}}]}]
BACKPORT-->
2025-01-28 10:09:09 +01:00
Gerard Soldevila
fddd6d0217
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-visualizations (#202754) (#205974)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Move modules owned by
`@elastic/kibana-visualizations`
(#202754)](https://github.com/elastic/kibana/pull/202754)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2025-01-08T11:19:24Z","message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/kibana-visualizations` (#202754)\n\n## Summary\r\n\r\nThis PR
aims at relocating some of the Kibana modules (plugins and\r\npackages)
into a new folder structure, according to the _Sustainable\r\nKibana
Architecture_ initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you
to:\r\n> * Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> * This PR has been
auto-generated.\r\n> * Any manual contributions will be lost if the
'relocate' script is\r\nre-run.\r\n> * Try to obtain the missing reviews
/ approvals before applying manual\r\nfixes, and/or keep your changes in
a .patch / git stash.\r\n> * Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\nAre you trying to rebase this PR to solve
merge conflicts? Please follow\r\nthe steps
describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n####
29 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/charts-plugin` |
`src/platform/plugins/shared/charts` |\r\n| `@kbn/data-plugin` |
`src/platform/plugins/shared/data` |\r\n|
`@kbn/event-annotation-listing-plugin`
|\r\n`src/platform/plugins/private/event_annotation_listing` |\r\n|
`@kbn/event-annotation-plugin`
|\r\n`src/platform/plugins/private/event_annotation` |\r\n|
`@kbn/expression-gauge-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_gauge`
|\r\n| `@kbn/expression-heatmap-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_heatmap`
|\r\n| `@kbn/expression-legacy-metric-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_legacy_metric`\r\n|\r\n|
`@kbn/expression-metric-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_metric`
|\r\n| `@kbn/expression-partition-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_partition_vis`\r\n|\r\n|
`@kbn/expression-tagcloud-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_tagcloud`
|\r\n| `@kbn/expression-xy-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_xy`
|\r\n| `@kbn/expressions-plugin` |
`src/platform/plugins/shared/expressions`\r\n|\r\n| `@kbn/graph-plugin`
| `x-pack/platform/plugins/private/graph` |\r\n| `@kbn/lens-plugin` |
`x-pack/platform/plugins/shared/lens` |\r\n|
`@kbn/unified-search-plugin`
|\r\n`src/platform/plugins/shared/unified_search` |\r\n|
`@kbn/url-forwarding-plugin`
|\r\n`src/platform/plugins/private/url_forwarding` |\r\n|
`@kbn/vis-default-editor-plugin`
|\r\n`src/platform/plugins/private/vis_default_editor` |\r\n|
`@kbn/vis-type-gauge-plugin`
|\r\n`src/platform/plugins/private/vis_types/gauge` |\r\n|
`@kbn/vis-type-heatmap-plugin`
|\r\n`src/platform/plugins/private/vis_types/heatmap` |\r\n|
`@kbn/vis-type-metric-plugin`
|\r\n`src/platform/plugins/private/vis_types/metric` |\r\n|
`@kbn/vis-type-pie-plugin`
|\r\n`src/platform/plugins/private/vis_types/pie` |\r\n|
`@kbn/vis-type-table-plugin`
|\r\n`src/platform/plugins/private/vis_types/table` |\r\n|
`@kbn/vis-type-tagcloud-plugin`
|\r\n`src/platform/plugins/private/vis_types/tagcloud` |\r\n|
`@kbn/vis-type-timelion-plugin`
|\r\n`src/platform/plugins/private/vis_types/timelion` |\r\n|
`@kbn/vis-type-timeseries-plugin`
|\r\n`src/platform/plugins/shared/vis_types/timeseries` |\r\n|
`@kbn/vis-type-vega-plugin`
|\r\n`src/platform/plugins/private/vis_types/vega` |\r\n|
`@kbn/vis-type-vislib-plugin`
|\r\n`src/platform/plugins/private/vis_types/vislib` |\r\n|
`@kbn/vis-type-xy-plugin`
|\r\n`src/platform/plugins/private/vis_types/xy` |\r\n|
`@kbn/visualizations-plugin`
|\r\n`src/platform/plugins/shared/visualizations`
|\r\n\r\n\r\n\r\n\r\n#### 18 packages(s) are going to be
relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n|
`@kbn/calculate-width-from-char-count`
|\r\n`src/platform/packages/shared/kbn-calculate-width-from-char-count`
|\r\n| `@kbn/chart-expressions-common`
|\r\n`src/platform/packages/shared/chart-expressions-common` |\r\n|
`@kbn/chart-icons` | `src/platform/packages/shared/kbn-chart-icons`
|\r\n| `@kbn/coloring` | `src/platform/packages/shared/kbn-coloring`
|\r\n| `@kbn/data-service` |
`src/platform/packages/shared/kbn-data-service`\r\n|\r\n|
`@kbn/dom-drag-drop`
|\r\n`src/platform/packages/shared/kbn-dom-drag-drop` |\r\n|
`@kbn/event-annotation-common`
|\r\n`src/platform/packages/shared/kbn-event-annotation-common` |\r\n|
`@kbn/event-annotation-components`
|\r\n`src/platform/packages/shared/kbn-event-annotation-components`
|\r\n| `@kbn/interpreter` |
`src/platform/packages/shared/kbn-interpreter` |\r\n|
`@kbn/lens-formula-docs`
|\r\n`src/platform/packages/private/kbn-lens-formula-docs` |\r\n|
`@kbn/managed-content-badge`
|\r\n`src/platform/packages/private/kbn-managed-content-badge` |\r\n|
`@kbn/random-sampling`
|\r\n`x-pack/platform/packages/private/kbn-random-sampling` |\r\n|
`@kbn/sort-predicates`
|\r\n`src/platform/packages/shared/kbn-sort-predicates` |\r\n|
`@kbn/timelion-grammar`
|\r\n`src/platform/packages/private/kbn-timelion-grammar` |\r\n|
`@kbn/tinymath` | `src/platform/packages/private/kbn-tinymath` |\r\n|
`@kbn/transpose-utils`
|\r\n`src/platform/packages/private/kbn-transpose-utils` |\r\n|
`@kbn/visualization-ui-components`
|\r\n`src/platform/packages/shared/kbn-visualization-ui-components`
|\r\n| `@kbn/visualization-utils`
|\r\n`src/platform/packages/shared/kbn-visualization-utils`
|\r\n\r\n\r\n<details >\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.eslintignore\r\n./.eslintrc.js\r\n./.github/paths-labeller.yml\r\n./.i18nrc.json\r\n./docs/developer/architecture/core/elasticsearch-service.asciidoc\r\n./docs/developer/architecture/development-visualize-index.asciidoc\r\n./docs/developer/best-practices/index.asciidoc\r\n./docs/developer/plugin-list.asciidoc\r\n./examples/search_examples/public/plugin.ts\r\n./package.json\r\n./packages/kbn-docs-utils/src/build_api_declarations/extract_import_refs.test.ts\r\n./packages/kbn-docs-utils/src/utils.ts\r\n./packages/kbn-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts\r\n./packages/kbn-repo-source-classifier/src/repo_source_classifier.ts\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/build/tasks/package_json/find_used_dependencies.ts\r\n./src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js\r\n./src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt\r\n./src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js\r\n./src/dev/code_coverage/ingest_coverage/integration_tests/mocks/jest-combined/bulk-data.json\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/private/kbn-lens-formula-docs/jest.config.js\r\n./src/platform/packages/private/kbn-managed-content-badge/jest.config.js\r\n./src/platform/packages/private/kbn-repo-packages/package-map.json\r\n./src/platform/packages/private/kbn-tinymath/README.md\r\n./src/platform/packages/private/kbn-tinymath/jest.config.js\r\n./src/platform/packages/private/kbn-transpose-utils/jest.config.js\r\n./src/platform/packages/shared/chart-expressions-common/jest.config.js\r\n./src/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js\r\n./src/platform/packages/shared/kbn-chart-icons/jest.config.js\r\n./src/platform/packages/shared/kbn-coloring/jest.config.js\r\n./src/platform/packages/shared/kbn-data-service/jest.config.js\r\n./src/platform/packages/shared/kbn-dom-drag-drop/jest.config.js\r\n./src/platform/packages/shared/kbn-event-annotation-common/jest.config.js\r\n./src/platform/packages/shared/kbn-event-annotation-components/jest.config.js\r\n./src/platform/packages/shared/kbn-interpreter/jest.config.js\r\n./src/platform/packages/shared/kbn-sort-predicates/jest.config.js\r\n./src/platform/packages/shared/kbn-visualization-ui-components/jest.config.js\r\n./src/platform/packages/shared/kbn-visualization-utils/jest.config.js\r\n./src/platform/plugins/private/event_annotation/jest.config.js\r\n./src/platform/plugins/private/event_annotation_listing/jest.config.js\r\n./src/platform/plugins/private/url_forwarding/jest.config.js\r\n./src/platform/plugins/private/vis_default_editor/jest.config.js\r\n./src/platform/plugins/private/vis_types/gauge/jest.config.js\r\n./src/platform/plugins/private/vis_types/heatmap/jest.config.js\r\n./src/platform/plugins/private/vis_types/metric/jest.config.js\r\n./src/platform/plugins/private/vis_types/pie/jest.config.js\r\n./src/platform/plugins/private/vis_types/table/jest.config.js\r\n./src/platform/plugins/private/vis_types/tagcloud/jest.config.js\r\n./src/platform/plugins/private/vis_types/timelion/jest.config.js\r\n./src/platform/plugins/private/vis_types/vega/jest.config.js\r\n./src/platform/plugins/private/vis_types/vislib/jest.config.js\r\n./src/platform/plugins/private/vis_types/xy/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js\r\n./src/platform/plugins/shared/charts/jest.config.js\r\n./src/platform/plugins/shared/custom_integrations/jest.config.js\r\n./src/platform/plugins/shared/data/jest.config.js\r\n./src/platform/plugins/shared/expressions/README.asciidoc\r\n./src/platform/plugins/shared/expressions/jest.config.js\r\n./src/platform/plugins/shared/unified_search/jest.config.js\r\n./src/platform/plugins/shared/vis_types/timeseries/jest.config.js\r\n./src/platform/plugins/shared/visualizations/jest.config.js\r\n./src/plugins/vis_types/timeseries/public/application/components/aggs/math.js\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/private/kbn-random-sampling/jest.config.js\r\n./x-pack/platform/packages/private/ml/date_utils/src/date_utils.ts\r\n./x-pack/platform/plugins/private/graph/README.md\r\n./x-pack/platform/plugins/private/graph/jest.config.js\r\n./x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/index.ts\r\n./x-pack/platform/plugins/private/watcher/public/legacy/time_buckets.js\r\n./x-pack/platform/plugins/shared/cases/public/components/markdown_editor/use_plugins.ts\r\n./x-pack/platform/plugins/shared/lens/jest.config.js\r\n./x-pack/platform/plugins/shared/lens/readme.md\r\n./x-pack/platform/plugins/shared/lens/server/embeddable/make_lens_embeddable_factory.ts\r\n./x-pack/platform/plugins/shared/lens/server/migrations/saved_object_migrations.ts\r\n./x-pack/platform/plugins/shared/lens/tsconfig.type_check.json\r\n./x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js\r\n./x-pack/platform/plugins/shared/ml/public/application/services/field_format_service.ts\r\n./x-pack/platform/plugins/shared/ml/public/application/util/chart_utils.js\r\n./x-pack/solutions/observability/plugins/observability/common/utils/get_inspect_response.ts\r\n./x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/autocomplete/index.mock.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-list-utils/src/helpers/index.ts\r\n./x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.ts\r\n./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/constants.ts\r\n./x-pack/solutions/security/plugins/timelines/public/hooks/use_app_toasts.ts\r\n./yarn.lock\r\n.github/CODEOWNERS\r\n```\r\n\r\n</details><details
>\r\n<summary>Updated relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/private/kbn-lens-formula-docs/jest.config.js:12\r\nsrc/platform/packages/private/kbn-lens-formula-docs/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-managed-content-badge/jest.config.js:12\r\nsrc/platform/packages/private/kbn-managed-content-badge/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-timelion-grammar/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-tinymath/jest.config.js:12\r\nsrc/platform/packages/private/kbn-tinymath/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-transpose-utils/jest.config.js:12\r\nsrc/platform/packages/private/kbn-transpose-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/chart-expressions-common/jest.config.js:12\r\nsrc/platform/packages/shared/chart-expressions-common/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-calculate-width-from-char-count/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-chart-icons/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-chart-icons/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-coloring/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-coloring/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-data-service/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-data-service/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-dom-drag-drop/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-dom-drag-drop/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-event-annotation-common/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-event-annotation-common/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-event-annotation-components/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-event-annotation-components/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-interpreter/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-interpreter/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-sort-predicates/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-sort-predicates/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-visualization-ui-components/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-visualization-ui-components/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-visualization-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-visualization-utils/tsconfig.json:2\r\nsrc/platform/plugins/private/event_annotation/jest.config.js:12\r\nsrc/platform/plugins/private/event_annotation/tsconfig.json:2\r\nsrc/platform/plugins/private/event_annotation_listing/jest.config.js:12\r\nsrc/platform/plugins/private/event_annotation_listing/tsconfig.json:2\r\nsrc/platform/plugins/private/url_forwarding/jest.config.js:12\r\nsrc/platform/plugins/private/url_forwarding/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_default_editor/README.md:8\r\nsrc/platform/plugins/private/vis_default_editor/jest.config.js:12\r\nsrc/platform/plugins/private/vis_default_editor/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/gauge/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/gauge/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/heatmap/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/heatmap/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/metric/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/metric/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/pie/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/pie/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/table/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/table/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/tagcloud/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/tagcloud/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/timelion/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/timelion/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/vega/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/vega/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/vislib/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/vislib/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/xy/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/xy/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_gauge/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_heatmap/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook/main.js:17\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/.storybook/main.js:17\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_partition_vis/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_tagcloud/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_xy/tsconfig.json:2\r\nsrc/platform/plugins/shared/charts/jest.config.js:12\r\nsrc/platform/plugins/shared/charts/tsconfig.json:2\r\nsrc/platform/plugins/shared/data/jest.config.js:12\r\nsrc/platform/plugins/shared/data/tsconfig.json:13\r\nsrc/platform/plugins/shared/data/tsconfig.json:2\r\nsrc/platform/plugins/shared/expressions/jest.config.js:12\r\nsrc/platform/plugins/shared/expressions/tsconfig.json:2\r\nsrc/platform/plugins/shared/unified_search/jest.config.js:12\r\nsrc/platform/plugins/shared/unified_search/tsconfig.json:2\r\nsrc/platform/plugins/shared/vis_types/timeseries/jest.config.js:12\r\nsrc/platform/plugins/shared/vis_types/timeseries/tsconfig.json:11\r\nsrc/platform/plugins/shared/vis_types/timeseries/tsconfig.json:2\r\nsrc/platform/plugins/shared/visualizations/jest.config.js:12\r\nsrc/platform/plugins/shared/visualizations/tsconfig.json:2\r\nsrc/platform/plugins/shared/visualizations/tsconfig.json:6\r\nx-pack/platform/packages/private/kbn-random-sampling/jest.config.js:10\r\nx-pack/platform/packages/private/kbn-random-sampling/tsconfig.json:2\r\nx-pack/platform/plugins/private/graph/jest.config.js:10\r\nx-pack/platform/plugins/private/graph/tsconfig.json:13\r\nx-pack/platform/plugins/private/graph/tsconfig.json:3\r\nx-pack/platform/plugins/shared/lens/jest.config.js:10\r\nx-pack/platform/plugins/shared/lens/tsconfig.json:2\r\nx-pack/platform/plugins/shared/lens/tsconfig.json:6\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a382d35dd28ae43053d28bcc74778118a92b9540","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Team:Visualizations","release_note:skip","v9.0.0","backport:prev-minor","plugin
groups"],"number":202754,"url":"https://github.com/elastic/kibana/pull/202754","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/kibana-visualizations` (#202754)\n\n## Summary\r\n\r\nThis PR
aims at relocating some of the Kibana modules (plugins and\r\npackages)
into a new folder structure, according to the _Sustainable\r\nKibana
Architecture_ initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you
to:\r\n> * Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> * This PR has been
auto-generated.\r\n> * Any manual contributions will be lost if the
'relocate' script is\r\nre-run.\r\n> * Try to obtain the missing reviews
/ approvals before applying manual\r\nfixes, and/or keep your changes in
a .patch / git stash.\r\n> * Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\nAre you trying to rebase this PR to solve
merge conflicts? Please follow\r\nthe steps
describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n####
29 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/charts-plugin` |
`src/platform/plugins/shared/charts` |\r\n| `@kbn/data-plugin` |
`src/platform/plugins/shared/data` |\r\n|
`@kbn/event-annotation-listing-plugin`
|\r\n`src/platform/plugins/private/event_annotation_listing` |\r\n|
`@kbn/event-annotation-plugin`
|\r\n`src/platform/plugins/private/event_annotation` |\r\n|
`@kbn/expression-gauge-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_gauge`
|\r\n| `@kbn/expression-heatmap-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_heatmap`
|\r\n| `@kbn/expression-legacy-metric-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_legacy_metric`\r\n|\r\n|
`@kbn/expression-metric-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_metric`
|\r\n| `@kbn/expression-partition-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_partition_vis`\r\n|\r\n|
`@kbn/expression-tagcloud-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_tagcloud`
|\r\n| `@kbn/expression-xy-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_xy`
|\r\n| `@kbn/expressions-plugin` |
`src/platform/plugins/shared/expressions`\r\n|\r\n| `@kbn/graph-plugin`
| `x-pack/platform/plugins/private/graph` |\r\n| `@kbn/lens-plugin` |
`x-pack/platform/plugins/shared/lens` |\r\n|
`@kbn/unified-search-plugin`
|\r\n`src/platform/plugins/shared/unified_search` |\r\n|
`@kbn/url-forwarding-plugin`
|\r\n`src/platform/plugins/private/url_forwarding` |\r\n|
`@kbn/vis-default-editor-plugin`
|\r\n`src/platform/plugins/private/vis_default_editor` |\r\n|
`@kbn/vis-type-gauge-plugin`
|\r\n`src/platform/plugins/private/vis_types/gauge` |\r\n|
`@kbn/vis-type-heatmap-plugin`
|\r\n`src/platform/plugins/private/vis_types/heatmap` |\r\n|
`@kbn/vis-type-metric-plugin`
|\r\n`src/platform/plugins/private/vis_types/metric` |\r\n|
`@kbn/vis-type-pie-plugin`
|\r\n`src/platform/plugins/private/vis_types/pie` |\r\n|
`@kbn/vis-type-table-plugin`
|\r\n`src/platform/plugins/private/vis_types/table` |\r\n|
`@kbn/vis-type-tagcloud-plugin`
|\r\n`src/platform/plugins/private/vis_types/tagcloud` |\r\n|
`@kbn/vis-type-timelion-plugin`
|\r\n`src/platform/plugins/private/vis_types/timelion` |\r\n|
`@kbn/vis-type-timeseries-plugin`
|\r\n`src/platform/plugins/shared/vis_types/timeseries` |\r\n|
`@kbn/vis-type-vega-plugin`
|\r\n`src/platform/plugins/private/vis_types/vega` |\r\n|
`@kbn/vis-type-vislib-plugin`
|\r\n`src/platform/plugins/private/vis_types/vislib` |\r\n|
`@kbn/vis-type-xy-plugin`
|\r\n`src/platform/plugins/private/vis_types/xy` |\r\n|
`@kbn/visualizations-plugin`
|\r\n`src/platform/plugins/shared/visualizations`
|\r\n\r\n\r\n\r\n\r\n#### 18 packages(s) are going to be
relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n|
`@kbn/calculate-width-from-char-count`
|\r\n`src/platform/packages/shared/kbn-calculate-width-from-char-count`
|\r\n| `@kbn/chart-expressions-common`
|\r\n`src/platform/packages/shared/chart-expressions-common` |\r\n|
`@kbn/chart-icons` | `src/platform/packages/shared/kbn-chart-icons`
|\r\n| `@kbn/coloring` | `src/platform/packages/shared/kbn-coloring`
|\r\n| `@kbn/data-service` |
`src/platform/packages/shared/kbn-data-service`\r\n|\r\n|
`@kbn/dom-drag-drop`
|\r\n`src/platform/packages/shared/kbn-dom-drag-drop` |\r\n|
`@kbn/event-annotation-common`
|\r\n`src/platform/packages/shared/kbn-event-annotation-common` |\r\n|
`@kbn/event-annotation-components`
|\r\n`src/platform/packages/shared/kbn-event-annotation-components`
|\r\n| `@kbn/interpreter` |
`src/platform/packages/shared/kbn-interpreter` |\r\n|
`@kbn/lens-formula-docs`
|\r\n`src/platform/packages/private/kbn-lens-formula-docs` |\r\n|
`@kbn/managed-content-badge`
|\r\n`src/platform/packages/private/kbn-managed-content-badge` |\r\n|
`@kbn/random-sampling`
|\r\n`x-pack/platform/packages/private/kbn-random-sampling` |\r\n|
`@kbn/sort-predicates`
|\r\n`src/platform/packages/shared/kbn-sort-predicates` |\r\n|
`@kbn/timelion-grammar`
|\r\n`src/platform/packages/private/kbn-timelion-grammar` |\r\n|
`@kbn/tinymath` | `src/platform/packages/private/kbn-tinymath` |\r\n|
`@kbn/transpose-utils`
|\r\n`src/platform/packages/private/kbn-transpose-utils` |\r\n|
`@kbn/visualization-ui-components`
|\r\n`src/platform/packages/shared/kbn-visualization-ui-components`
|\r\n| `@kbn/visualization-utils`
|\r\n`src/platform/packages/shared/kbn-visualization-utils`
|\r\n\r\n\r\n<details >\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.eslintignore\r\n./.eslintrc.js\r\n./.github/paths-labeller.yml\r\n./.i18nrc.json\r\n./docs/developer/architecture/core/elasticsearch-service.asciidoc\r\n./docs/developer/architecture/development-visualize-index.asciidoc\r\n./docs/developer/best-practices/index.asciidoc\r\n./docs/developer/plugin-list.asciidoc\r\n./examples/search_examples/public/plugin.ts\r\n./package.json\r\n./packages/kbn-docs-utils/src/build_api_declarations/extract_import_refs.test.ts\r\n./packages/kbn-docs-utils/src/utils.ts\r\n./packages/kbn-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts\r\n./packages/kbn-repo-source-classifier/src/repo_source_classifier.ts\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/build/tasks/package_json/find_used_dependencies.ts\r\n./src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js\r\n./src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt\r\n./src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js\r\n./src/dev/code_coverage/ingest_coverage/integration_tests/mocks/jest-combined/bulk-data.json\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/private/kbn-lens-formula-docs/jest.config.js\r\n./src/platform/packages/private/kbn-managed-content-badge/jest.config.js\r\n./src/platform/packages/private/kbn-repo-packages/package-map.json\r\n./src/platform/packages/private/kbn-tinymath/README.md\r\n./src/platform/packages/private/kbn-tinymath/jest.config.js\r\n./src/platform/packages/private/kbn-transpose-utils/jest.config.js\r\n./src/platform/packages/shared/chart-expressions-common/jest.config.js\r\n./src/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js\r\n./src/platform/packages/shared/kbn-chart-icons/jest.config.js\r\n./src/platform/packages/shared/kbn-coloring/jest.config.js\r\n./src/platform/packages/shared/kbn-data-service/jest.config.js\r\n./src/platform/packages/shared/kbn-dom-drag-drop/jest.config.js\r\n./src/platform/packages/shared/kbn-event-annotation-common/jest.config.js\r\n./src/platform/packages/shared/kbn-event-annotation-components/jest.config.js\r\n./src/platform/packages/shared/kbn-interpreter/jest.config.js\r\n./src/platform/packages/shared/kbn-sort-predicates/jest.config.js\r\n./src/platform/packages/shared/kbn-visualization-ui-components/jest.config.js\r\n./src/platform/packages/shared/kbn-visualization-utils/jest.config.js\r\n./src/platform/plugins/private/event_annotation/jest.config.js\r\n./src/platform/plugins/private/event_annotation_listing/jest.config.js\r\n./src/platform/plugins/private/url_forwarding/jest.config.js\r\n./src/platform/plugins/private/vis_default_editor/jest.config.js\r\n./src/platform/plugins/private/vis_types/gauge/jest.config.js\r\n./src/platform/plugins/private/vis_types/heatmap/jest.config.js\r\n./src/platform/plugins/private/vis_types/metric/jest.config.js\r\n./src/platform/plugins/private/vis_types/pie/jest.config.js\r\n./src/platform/plugins/private/vis_types/table/jest.config.js\r\n./src/platform/plugins/private/vis_types/tagcloud/jest.config.js\r\n./src/platform/plugins/private/vis_types/timelion/jest.config.js\r\n./src/platform/plugins/private/vis_types/vega/jest.config.js\r\n./src/platform/plugins/private/vis_types/vislib/jest.config.js\r\n./src/platform/plugins/private/vis_types/xy/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js\r\n./src/platform/plugins/shared/charts/jest.config.js\r\n./src/platform/plugins/shared/custom_integrations/jest.config.js\r\n./src/platform/plugins/shared/data/jest.config.js\r\n./src/platform/plugins/shared/expressions/README.asciidoc\r\n./src/platform/plugins/shared/expressions/jest.config.js\r\n./src/platform/plugins/shared/unified_search/jest.config.js\r\n./src/platform/plugins/shared/vis_types/timeseries/jest.config.js\r\n./src/platform/plugins/shared/visualizations/jest.config.js\r\n./src/plugins/vis_types/timeseries/public/application/components/aggs/math.js\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/private/kbn-random-sampling/jest.config.js\r\n./x-pack/platform/packages/private/ml/date_utils/src/date_utils.ts\r\n./x-pack/platform/plugins/private/graph/README.md\r\n./x-pack/platform/plugins/private/graph/jest.config.js\r\n./x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/index.ts\r\n./x-pack/platform/plugins/private/watcher/public/legacy/time_buckets.js\r\n./x-pack/platform/plugins/shared/cases/public/components/markdown_editor/use_plugins.ts\r\n./x-pack/platform/plugins/shared/lens/jest.config.js\r\n./x-pack/platform/plugins/shared/lens/readme.md\r\n./x-pack/platform/plugins/shared/lens/server/embeddable/make_lens_embeddable_factory.ts\r\n./x-pack/platform/plugins/shared/lens/server/migrations/saved_object_migrations.ts\r\n./x-pack/platform/plugins/shared/lens/tsconfig.type_check.json\r\n./x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js\r\n./x-pack/platform/plugins/shared/ml/public/application/services/field_format_service.ts\r\n./x-pack/platform/plugins/shared/ml/public/application/util/chart_utils.js\r\n./x-pack/solutions/observability/plugins/observability/common/utils/get_inspect_response.ts\r\n./x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/autocomplete/index.mock.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-list-utils/src/helpers/index.ts\r\n./x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.ts\r\n./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/constants.ts\r\n./x-pack/solutions/security/plugins/timelines/public/hooks/use_app_toasts.ts\r\n./yarn.lock\r\n.github/CODEOWNERS\r\n```\r\n\r\n</details><details
>\r\n<summary>Updated relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/private/kbn-lens-formula-docs/jest.config.js:12\r\nsrc/platform/packages/private/kbn-lens-formula-docs/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-managed-content-badge/jest.config.js:12\r\nsrc/platform/packages/private/kbn-managed-content-badge/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-timelion-grammar/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-tinymath/jest.config.js:12\r\nsrc/platform/packages/private/kbn-tinymath/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-transpose-utils/jest.config.js:12\r\nsrc/platform/packages/private/kbn-transpose-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/chart-expressions-common/jest.config.js:12\r\nsrc/platform/packages/shared/chart-expressions-common/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-calculate-width-from-char-count/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-chart-icons/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-chart-icons/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-coloring/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-coloring/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-data-service/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-data-service/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-dom-drag-drop/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-dom-drag-drop/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-event-annotation-common/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-event-annotation-common/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-event-annotation-components/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-event-annotation-components/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-interpreter/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-interpreter/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-sort-predicates/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-sort-predicates/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-visualization-ui-components/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-visualization-ui-components/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-visualization-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-visualization-utils/tsconfig.json:2\r\nsrc/platform/plugins/private/event_annotation/jest.config.js:12\r\nsrc/platform/plugins/private/event_annotation/tsconfig.json:2\r\nsrc/platform/plugins/private/event_annotation_listing/jest.config.js:12\r\nsrc/platform/plugins/private/event_annotation_listing/tsconfig.json:2\r\nsrc/platform/plugins/private/url_forwarding/jest.config.js:12\r\nsrc/platform/plugins/private/url_forwarding/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_default_editor/README.md:8\r\nsrc/platform/plugins/private/vis_default_editor/jest.config.js:12\r\nsrc/platform/plugins/private/vis_default_editor/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/gauge/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/gauge/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/heatmap/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/heatmap/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/metric/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/metric/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/pie/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/pie/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/table/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/table/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/tagcloud/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/tagcloud/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/timelion/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/timelion/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/vega/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/vega/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/vislib/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/vislib/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/xy/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/xy/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_gauge/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_heatmap/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook/main.js:17\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/.storybook/main.js:17\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_partition_vis/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_tagcloud/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_xy/tsconfig.json:2\r\nsrc/platform/plugins/shared/charts/jest.config.js:12\r\nsrc/platform/plugins/shared/charts/tsconfig.json:2\r\nsrc/platform/plugins/shared/data/jest.config.js:12\r\nsrc/platform/plugins/shared/data/tsconfig.json:13\r\nsrc/platform/plugins/shared/data/tsconfig.json:2\r\nsrc/platform/plugins/shared/expressions/jest.config.js:12\r\nsrc/platform/plugins/shared/expressions/tsconfig.json:2\r\nsrc/platform/plugins/shared/unified_search/jest.config.js:12\r\nsrc/platform/plugins/shared/unified_search/tsconfig.json:2\r\nsrc/platform/plugins/shared/vis_types/timeseries/jest.config.js:12\r\nsrc/platform/plugins/shared/vis_types/timeseries/tsconfig.json:11\r\nsrc/platform/plugins/shared/vis_types/timeseries/tsconfig.json:2\r\nsrc/platform/plugins/shared/visualizations/jest.config.js:12\r\nsrc/platform/plugins/shared/visualizations/tsconfig.json:2\r\nsrc/platform/plugins/shared/visualizations/tsconfig.json:6\r\nx-pack/platform/packages/private/kbn-random-sampling/jest.config.js:10\r\nx-pack/platform/packages/private/kbn-random-sampling/tsconfig.json:2\r\nx-pack/platform/plugins/private/graph/jest.config.js:10\r\nx-pack/platform/plugins/private/graph/tsconfig.json:13\r\nx-pack/platform/plugins/private/graph/tsconfig.json:3\r\nx-pack/platform/plugins/shared/lens/jest.config.js:10\r\nx-pack/platform/plugins/shared/lens/tsconfig.json:2\r\nx-pack/platform/plugins/shared/lens/tsconfig.json:6\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a382d35dd28ae43053d28bcc74778118a92b9540"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202754","number":202754,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/kibana-visualizations` (#202754)\n\n## Summary\r\n\r\nThis PR
aims at relocating some of the Kibana modules (plugins and\r\npackages)
into a new folder structure, according to the _Sustainable\r\nKibana
Architecture_ initiative.\r\n\r\n> [!IMPORTANT]\r\n> * We kindly ask you
to:\r\n> * Manually fix the errors in the error section below (if there
are\r\nany).\r\n> * Search for the `packages[\\/\\\\]` and
`plugins[\\/\\\\]` patterns in the\r\nsource code (Babel and Eslint
config files), and update them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> * This PR has been
auto-generated.\r\n> * Any manual contributions will be lost if the
'relocate' script is\r\nre-run.\r\n> * Try to obtain the missing reviews
/ approvals before applying manual\r\nfixes, and/or keep your changes in
a .patch / git stash.\r\n> * Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\nAre you trying to rebase this PR to solve
merge conflicts? Please follow\r\nthe steps
describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n####
29 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/charts-plugin` |
`src/platform/plugins/shared/charts` |\r\n| `@kbn/data-plugin` |
`src/platform/plugins/shared/data` |\r\n|
`@kbn/event-annotation-listing-plugin`
|\r\n`src/platform/plugins/private/event_annotation_listing` |\r\n|
`@kbn/event-annotation-plugin`
|\r\n`src/platform/plugins/private/event_annotation` |\r\n|
`@kbn/expression-gauge-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_gauge`
|\r\n| `@kbn/expression-heatmap-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_heatmap`
|\r\n| `@kbn/expression-legacy-metric-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_legacy_metric`\r\n|\r\n|
`@kbn/expression-metric-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_metric`
|\r\n| `@kbn/expression-partition-vis-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_partition_vis`\r\n|\r\n|
`@kbn/expression-tagcloud-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_tagcloud`
|\r\n| `@kbn/expression-xy-plugin`
|\r\n`src/platform/plugins/shared/chart_expressions/expression_xy`
|\r\n| `@kbn/expressions-plugin` |
`src/platform/plugins/shared/expressions`\r\n|\r\n| `@kbn/graph-plugin`
| `x-pack/platform/plugins/private/graph` |\r\n| `@kbn/lens-plugin` |
`x-pack/platform/plugins/shared/lens` |\r\n|
`@kbn/unified-search-plugin`
|\r\n`src/platform/plugins/shared/unified_search` |\r\n|
`@kbn/url-forwarding-plugin`
|\r\n`src/platform/plugins/private/url_forwarding` |\r\n|
`@kbn/vis-default-editor-plugin`
|\r\n`src/platform/plugins/private/vis_default_editor` |\r\n|
`@kbn/vis-type-gauge-plugin`
|\r\n`src/platform/plugins/private/vis_types/gauge` |\r\n|
`@kbn/vis-type-heatmap-plugin`
|\r\n`src/platform/plugins/private/vis_types/heatmap` |\r\n|
`@kbn/vis-type-metric-plugin`
|\r\n`src/platform/plugins/private/vis_types/metric` |\r\n|
`@kbn/vis-type-pie-plugin`
|\r\n`src/platform/plugins/private/vis_types/pie` |\r\n|
`@kbn/vis-type-table-plugin`
|\r\n`src/platform/plugins/private/vis_types/table` |\r\n|
`@kbn/vis-type-tagcloud-plugin`
|\r\n`src/platform/plugins/private/vis_types/tagcloud` |\r\n|
`@kbn/vis-type-timelion-plugin`
|\r\n`src/platform/plugins/private/vis_types/timelion` |\r\n|
`@kbn/vis-type-timeseries-plugin`
|\r\n`src/platform/plugins/shared/vis_types/timeseries` |\r\n|
`@kbn/vis-type-vega-plugin`
|\r\n`src/platform/plugins/private/vis_types/vega` |\r\n|
`@kbn/vis-type-vislib-plugin`
|\r\n`src/platform/plugins/private/vis_types/vislib` |\r\n|
`@kbn/vis-type-xy-plugin`
|\r\n`src/platform/plugins/private/vis_types/xy` |\r\n|
`@kbn/visualizations-plugin`
|\r\n`src/platform/plugins/shared/visualizations`
|\r\n\r\n\r\n\r\n\r\n#### 18 packages(s) are going to be
relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n|
`@kbn/calculate-width-from-char-count`
|\r\n`src/platform/packages/shared/kbn-calculate-width-from-char-count`
|\r\n| `@kbn/chart-expressions-common`
|\r\n`src/platform/packages/shared/chart-expressions-common` |\r\n|
`@kbn/chart-icons` | `src/platform/packages/shared/kbn-chart-icons`
|\r\n| `@kbn/coloring` | `src/platform/packages/shared/kbn-coloring`
|\r\n| `@kbn/data-service` |
`src/platform/packages/shared/kbn-data-service`\r\n|\r\n|
`@kbn/dom-drag-drop`
|\r\n`src/platform/packages/shared/kbn-dom-drag-drop` |\r\n|
`@kbn/event-annotation-common`
|\r\n`src/platform/packages/shared/kbn-event-annotation-common` |\r\n|
`@kbn/event-annotation-components`
|\r\n`src/platform/packages/shared/kbn-event-annotation-components`
|\r\n| `@kbn/interpreter` |
`src/platform/packages/shared/kbn-interpreter` |\r\n|
`@kbn/lens-formula-docs`
|\r\n`src/platform/packages/private/kbn-lens-formula-docs` |\r\n|
`@kbn/managed-content-badge`
|\r\n`src/platform/packages/private/kbn-managed-content-badge` |\r\n|
`@kbn/random-sampling`
|\r\n`x-pack/platform/packages/private/kbn-random-sampling` |\r\n|
`@kbn/sort-predicates`
|\r\n`src/platform/packages/shared/kbn-sort-predicates` |\r\n|
`@kbn/timelion-grammar`
|\r\n`src/platform/packages/private/kbn-timelion-grammar` |\r\n|
`@kbn/tinymath` | `src/platform/packages/private/kbn-tinymath` |\r\n|
`@kbn/transpose-utils`
|\r\n`src/platform/packages/private/kbn-transpose-utils` |\r\n|
`@kbn/visualization-ui-components`
|\r\n`src/platform/packages/shared/kbn-visualization-ui-components`
|\r\n| `@kbn/visualization-utils`
|\r\n`src/platform/packages/shared/kbn-visualization-utils`
|\r\n\r\n\r\n<details >\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.eslintignore\r\n./.eslintrc.js\r\n./.github/paths-labeller.yml\r\n./.i18nrc.json\r\n./docs/developer/architecture/core/elasticsearch-service.asciidoc\r\n./docs/developer/architecture/development-visualize-index.asciidoc\r\n./docs/developer/best-practices/index.asciidoc\r\n./docs/developer/plugin-list.asciidoc\r\n./examples/search_examples/public/plugin.ts\r\n./package.json\r\n./packages/kbn-docs-utils/src/build_api_declarations/extract_import_refs.test.ts\r\n./packages/kbn-docs-utils/src/utils.ts\r\n./packages/kbn-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts\r\n./packages/kbn-repo-source-classifier/src/repo_source_classifier.ts\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/build/tasks/package_json/find_used_dependencies.ts\r\n./src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js\r\n./src/dev/code_coverage/ingest_coverage/__tests__/mocks/team_assign_mock.txt\r\n./src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js\r\n./src/dev/code_coverage/ingest_coverage/integration_tests/mocks/jest-combined/bulk-data.json\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/private/kbn-lens-formula-docs/jest.config.js\r\n./src/platform/packages/private/kbn-managed-content-badge/jest.config.js\r\n./src/platform/packages/private/kbn-repo-packages/package-map.json\r\n./src/platform/packages/private/kbn-tinymath/README.md\r\n./src/platform/packages/private/kbn-tinymath/jest.config.js\r\n./src/platform/packages/private/kbn-transpose-utils/jest.config.js\r\n./src/platform/packages/shared/chart-expressions-common/jest.config.js\r\n./src/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js\r\n./src/platform/packages/shared/kbn-chart-icons/jest.config.js\r\n./src/platform/packages/shared/kbn-coloring/jest.config.js\r\n./src/platform/packages/shared/kbn-data-service/jest.config.js\r\n./src/platform/packages/shared/kbn-dom-drag-drop/jest.config.js\r\n./src/platform/packages/shared/kbn-event-annotation-common/jest.config.js\r\n./src/platform/packages/shared/kbn-event-annotation-components/jest.config.js\r\n./src/platform/packages/shared/kbn-interpreter/jest.config.js\r\n./src/platform/packages/shared/kbn-sort-predicates/jest.config.js\r\n./src/platform/packages/shared/kbn-visualization-ui-components/jest.config.js\r\n./src/platform/packages/shared/kbn-visualization-utils/jest.config.js\r\n./src/platform/plugins/private/event_annotation/jest.config.js\r\n./src/platform/plugins/private/event_annotation_listing/jest.config.js\r\n./src/platform/plugins/private/url_forwarding/jest.config.js\r\n./src/platform/plugins/private/vis_default_editor/jest.config.js\r\n./src/platform/plugins/private/vis_types/gauge/jest.config.js\r\n./src/platform/plugins/private/vis_types/heatmap/jest.config.js\r\n./src/platform/plugins/private/vis_types/metric/jest.config.js\r\n./src/platform/plugins/private/vis_types/pie/jest.config.js\r\n./src/platform/plugins/private/vis_types/table/jest.config.js\r\n./src/platform/plugins/private/vis_types/tagcloud/jest.config.js\r\n./src/platform/plugins/private/vis_types/timelion/jest.config.js\r\n./src/platform/plugins/private/vis_types/vega/jest.config.js\r\n./src/platform/plugins/private/vis_types/vislib/jest.config.js\r\n./src/platform/plugins/private/vis_types/xy/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js\r\n./src/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js\r\n./src/platform/plugins/shared/charts/jest.config.js\r\n./src/platform/plugins/shared/custom_integrations/jest.config.js\r\n./src/platform/plugins/shared/data/jest.config.js\r\n./src/platform/plugins/shared/expressions/README.asciidoc\r\n./src/platform/plugins/shared/expressions/jest.config.js\r\n./src/platform/plugins/shared/unified_search/jest.config.js\r\n./src/platform/plugins/shared/vis_types/timeseries/jest.config.js\r\n./src/platform/plugins/shared/visualizations/jest.config.js\r\n./src/plugins/vis_types/timeseries/public/application/components/aggs/math.js\r\n./tsconfig.base.json\r\n./tsconfig.base.type_check.json\r\n./tsconfig.refs.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/private/kbn-random-sampling/jest.config.js\r\n./x-pack/platform/packages/private/ml/date_utils/src/date_utils.ts\r\n./x-pack/platform/plugins/private/graph/README.md\r\n./x-pack/platform/plugins/private/graph/jest.config.js\r\n./x-pack/platform/plugins/private/graph/public/components/venn_diagram/vennjs/index.ts\r\n./x-pack/platform/plugins/private/watcher/public/legacy/time_buckets.js\r\n./x-pack/platform/plugins/shared/cases/public/components/markdown_editor/use_plugins.ts\r\n./x-pack/platform/plugins/shared/lens/jest.config.js\r\n./x-pack/platform/plugins/shared/lens/readme.md\r\n./x-pack/platform/plugins/shared/lens/server/embeddable/make_lens_embeddable_factory.ts\r\n./x-pack/platform/plugins/shared/lens/server/migrations/saved_object_migrations.ts\r\n./x-pack/platform/plugins/shared/lens/tsconfig.type_check.json\r\n./x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/explorer_charts_container.js\r\n./x-pack/platform/plugins/shared/ml/public/application/services/field_format_service.ts\r\n./x-pack/platform/plugins/shared/ml/public/application/util/chart_utils.js\r\n./x-pack/solutions/observability/plugins/observability/common/utils/get_inspect_response.ts\r\n./x-pack/solutions/observability/plugins/observability_shared/common/utils/get_inspect_response.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/autocomplete/index.mock.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts\r\n./x-pack/solutions/security/packages/kbn-securitysolution-list-utils/src/helpers/index.ts\r\n./x-pack/solutions/security/plugins/security_solution/public/common/hooks/use_app_toasts.ts\r\n./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/constants.ts\r\n./x-pack/solutions/security/plugins/timelines/public/hooks/use_app_toasts.ts\r\n./yarn.lock\r\n.github/CODEOWNERS\r\n```\r\n\r\n</details><details
>\r\n<summary>Updated relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/private/kbn-lens-formula-docs/jest.config.js:12\r\nsrc/platform/packages/private/kbn-lens-formula-docs/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-managed-content-badge/jest.config.js:12\r\nsrc/platform/packages/private/kbn-managed-content-badge/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-timelion-grammar/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-tinymath/jest.config.js:12\r\nsrc/platform/packages/private/kbn-tinymath/tsconfig.json:2\r\nsrc/platform/packages/private/kbn-transpose-utils/jest.config.js:12\r\nsrc/platform/packages/private/kbn-transpose-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/chart-expressions-common/jest.config.js:12\r\nsrc/platform/packages/shared/chart-expressions-common/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-calculate-width-from-char-count/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-calculate-width-from-char-count/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-chart-icons/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-chart-icons/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-coloring/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-coloring/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-data-service/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-data-service/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-dom-drag-drop/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-dom-drag-drop/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-event-annotation-common/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-event-annotation-common/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-event-annotation-components/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-event-annotation-components/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-interpreter/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-interpreter/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-sort-predicates/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-sort-predicates/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-visualization-ui-components/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-visualization-ui-components/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-visualization-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-visualization-utils/tsconfig.json:2\r\nsrc/platform/plugins/private/event_annotation/jest.config.js:12\r\nsrc/platform/plugins/private/event_annotation/tsconfig.json:2\r\nsrc/platform/plugins/private/event_annotation_listing/jest.config.js:12\r\nsrc/platform/plugins/private/event_annotation_listing/tsconfig.json:2\r\nsrc/platform/plugins/private/url_forwarding/jest.config.js:12\r\nsrc/platform/plugins/private/url_forwarding/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_default_editor/README.md:8\r\nsrc/platform/plugins/private/vis_default_editor/jest.config.js:12\r\nsrc/platform/plugins/private/vis_default_editor/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/gauge/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/gauge/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/heatmap/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/heatmap/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/metric/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/metric/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/pie/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/pie/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/table/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/table/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/tagcloud/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/tagcloud/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/timelion/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/timelion/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/vega/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/vega/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/vislib/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/vislib/tsconfig.json:2\r\nsrc/platform/plugins/private/vis_types/xy/jest.config.js:12\r\nsrc/platform/plugins/private/vis_types/xy/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_gauge/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_gauge/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_heatmap/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_heatmap/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/.storybook/main.js:17\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_legacy_metric/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/.storybook/main.js:17\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_metric/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_partition_vis/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_partition_vis/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_tagcloud/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_tagcloud/tsconfig.json:2\r\nsrc/platform/plugins/shared/chart_expressions/expression_xy/jest.config.js:12\r\nsrc/platform/plugins/shared/chart_expressions/expression_xy/tsconfig.json:2\r\nsrc/platform/plugins/shared/charts/jest.config.js:12\r\nsrc/platform/plugins/shared/charts/tsconfig.json:2\r\nsrc/platform/plugins/shared/data/jest.config.js:12\r\nsrc/platform/plugins/shared/data/tsconfig.json:13\r\nsrc/platform/plugins/shared/data/tsconfig.json:2\r\nsrc/platform/plugins/shared/expressions/jest.config.js:12\r\nsrc/platform/plugins/shared/expressions/tsconfig.json:2\r\nsrc/platform/plugins/shared/unified_search/jest.config.js:12\r\nsrc/platform/plugins/shared/unified_search/tsconfig.json:2\r\nsrc/platform/plugins/shared/vis_types/timeseries/jest.config.js:12\r\nsrc/platform/plugins/shared/vis_types/timeseries/tsconfig.json:11\r\nsrc/platform/plugins/shared/vis_types/timeseries/tsconfig.json:2\r\nsrc/platform/plugins/shared/visualizations/jest.config.js:12\r\nsrc/platform/plugins/shared/visualizations/tsconfig.json:2\r\nsrc/platform/plugins/shared/visualizations/tsconfig.json:6\r\nx-pack/platform/packages/private/kbn-random-sampling/jest.config.js:10\r\nx-pack/platform/packages/private/kbn-random-sampling/tsconfig.json:2\r\nx-pack/platform/plugins/private/graph/jest.config.js:10\r\nx-pack/platform/plugins/private/graph/tsconfig.json:13\r\nx-pack/platform/plugins/private/graph/tsconfig.json:3\r\nx-pack/platform/plugins/shared/lens/jest.config.js:10\r\nx-pack/platform/plugins/shared/lens/tsconfig.json:2\r\nx-pack/platform/plugins/shared/lens/tsconfig.json:6\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a382d35dd28ae43053d28bcc74778118a92b9540"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-13 10:53:37 +00:00
Kibana Machine
6e12acb428
[8.x] Preparation for High Contrast Mode, Analytics Experience domains (#202608) (#204120)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Preparation for High Contrast Mode, Analytics Experience domains
(#202608)](https://github.com/elastic/kibana/pull/202608)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Tim
Sullivan","email":"tsullivan@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-12-12T19:16:07Z","message":"Preparation
for High Contrast Mode, Analytics Experience domains (#202608)\n\n##
Summary\r\n\r\n**Reviewers: Please test the code paths affected by this
PR. See the\r\n\"Risks\" section below.**\r\n\r\nPart of work for
enabling \"high contrast mode\" in Kibana.
See\r\nhttps://github.com/elastic/kibana/issues/176219.\r\n\r\n**Background:**\r\nKibana
will soon have a user profile setting to allow users to enable\r\n\"high
contrast mode.\" This setting will activate a flag
with\r\n`<EuiProvider>` that causes EUI components to render with
higher\r\ncontrast visual elements. Consumer plugins and packages need
to be\r\nupdated selected places where `<EuiProvider>` is wrapped, to
pass the\r\n`UserProfileService` service dependency from the CoreStart
contract.\r\n\r\n**NOTE:** **EUI currently does not yet support the
high-contrast mode\r\nflag**, but support for that is expected to come
in around 2 weeks.\r\nThese first PRs are simply preparing the code by
wiring up the\r\n`UserProvideService`.\r\n\r\n### Checklist\r\n\r\nCheck
the PR satisfies following conditions. \r\n\r\nReviewers should verify
this PR satisfies this list as well.\r\n\r\n- [X] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [X] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n###
Risks\r\n\r\nDoes this PR introduce any risks? For example, consider
risks like hard\r\nto test bugs, performance regression, potential of
data loss.\r\n\r\nDescribe the risk, its severity, and mitigation for
each identified\r\nrisk. Invite stakeholders and evaluate how to proceed
before merging.\r\n\r\n- [ ] [medium/high] The implementor of this
change did not manually test\r\nthe affected code paths and relied on
type-checking and functional tests\r\nto drive the changes. Code owners
for this PR need to manually test the\r\naffected code paths.\r\n- [ ]
[medium] The `UserProfileService` dependency comes from the\r\nCoreStart
contract. If acquiring the service causes synchronous code to\r\nbecome
asynchronous, check for race conditions or errors in rendering\r\nReact
components. Code owners for this PR need to manually test
the\r\naffected code paths.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"99aa884fa08beafd801588c0b38194ec03039008","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Presentation","Team:Visualizations","release_note:skip","v9.0.0","Team:DataDiscovery","backport:prev-minor","v8.18.0"],"title":"Preparation
for High Contrast Mode, Analytics Experience
domains","number":202608,"url":"https://github.com/elastic/kibana/pull/202608","mergeCommit":{"message":"Preparation
for High Contrast Mode, Analytics Experience domains (#202608)\n\n##
Summary\r\n\r\n**Reviewers: Please test the code paths affected by this
PR. See the\r\n\"Risks\" section below.**\r\n\r\nPart of work for
enabling \"high contrast mode\" in Kibana.
See\r\nhttps://github.com/elastic/kibana/issues/176219.\r\n\r\n**Background:**\r\nKibana
will soon have a user profile setting to allow users to enable\r\n\"high
contrast mode.\" This setting will activate a flag
with\r\n`<EuiProvider>` that causes EUI components to render with
higher\r\ncontrast visual elements. Consumer plugins and packages need
to be\r\nupdated selected places where `<EuiProvider>` is wrapped, to
pass the\r\n`UserProfileService` service dependency from the CoreStart
contract.\r\n\r\n**NOTE:** **EUI currently does not yet support the
high-contrast mode\r\nflag**, but support for that is expected to come
in around 2 weeks.\r\nThese first PRs are simply preparing the code by
wiring up the\r\n`UserProvideService`.\r\n\r\n### Checklist\r\n\r\nCheck
the PR satisfies following conditions. \r\n\r\nReviewers should verify
this PR satisfies this list as well.\r\n\r\n- [X] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [X] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n###
Risks\r\n\r\nDoes this PR introduce any risks? For example, consider
risks like hard\r\nto test bugs, performance regression, potential of
data loss.\r\n\r\nDescribe the risk, its severity, and mitigation for
each identified\r\nrisk. Invite stakeholders and evaluate how to proceed
before merging.\r\n\r\n- [ ] [medium/high] The implementor of this
change did not manually test\r\nthe affected code paths and relied on
type-checking and functional tests\r\nto drive the changes. Code owners
for this PR need to manually test the\r\naffected code paths.\r\n- [ ]
[medium] The `UserProfileService` dependency comes from the\r\nCoreStart
contract. If acquiring the service causes synchronous code to\r\nbecome
asynchronous, check for race conditions or errors in rendering\r\nReact
components. Code owners for this PR need to manually test
the\r\naffected code paths.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"99aa884fa08beafd801588c0b38194ec03039008"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202608","number":202608,"mergeCommit":{"message":"Preparation
for High Contrast Mode, Analytics Experience domains (#202608)\n\n##
Summary\r\n\r\n**Reviewers: Please test the code paths affected by this
PR. See the\r\n\"Risks\" section below.**\r\n\r\nPart of work for
enabling \"high contrast mode\" in Kibana.
See\r\nhttps://github.com/elastic/kibana/issues/176219.\r\n\r\n**Background:**\r\nKibana
will soon have a user profile setting to allow users to enable\r\n\"high
contrast mode.\" This setting will activate a flag
with\r\n`<EuiProvider>` that causes EUI components to render with
higher\r\ncontrast visual elements. Consumer plugins and packages need
to be\r\nupdated selected places where `<EuiProvider>` is wrapped, to
pass the\r\n`UserProfileService` service dependency from the CoreStart
contract.\r\n\r\n**NOTE:** **EUI currently does not yet support the
high-contrast mode\r\nflag**, but support for that is expected to come
in around 2 weeks.\r\nThese first PRs are simply preparing the code by
wiring up the\r\n`UserProvideService`.\r\n\r\n### Checklist\r\n\r\nCheck
the PR satisfies following conditions. \r\n\r\nReviewers should verify
this PR satisfies this list as well.\r\n\r\n- [X] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [X] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n###
Risks\r\n\r\nDoes this PR introduce any risks? For example, consider
risks like hard\r\nto test bugs, performance regression, potential of
data loss.\r\n\r\nDescribe the risk, its severity, and mitigation for
each identified\r\nrisk. Invite stakeholders and evaluate how to proceed
before merging.\r\n\r\n- [ ] [medium/high] The implementor of this
change did not manually test\r\nthe affected code paths and relied on
type-checking and functional tests\r\nto drive the changes. Code owners
for this PR need to manually test the\r\naffected code paths.\r\n- [ ]
[medium] The `UserProfileService` dependency comes from the\r\nCoreStart
contract. If acquiring the service causes synchronous code to\r\nbecome
asynchronous, check for race conditions or errors in rendering\r\nReact
components. Code owners for this PR need to manually test
the\r\naffected code paths.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"99aa884fa08beafd801588c0b38194ec03039008"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
2024-12-12 15:08:55 -06:00
Gerard Soldevila
58c8aff91c
[8.x] Sustainable Kibana Architecture: Categorise straightforward packages (#199630) (#201340)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Categorise `straightforward`
packages (#199630)](https://github.com/elastic/kibana/pull/199630)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-11-22T09:33:25Z","message":"Sustainable
Kibana Architecture: Categorise `straightforward` packages
(#199630)\n\n## Summary\r\n\r\nThis PR is part of the Kibana Sustainable
Architecture effort.\r\n\r\nThe goal is to start categorising Kibana
packages into _generic\r\nplatform_ (`group: \"platform\"`) vs
_solution-specific_.\r\n\r\n```\r\ngroup?: 'search' | 'security' |
'observability' | 'platform'\r\nvisibility?: 'private' |
'shared'\r\n```\r\nUncategorised modules are considered to be `group:
'common', visibility:\r\n'shared'` by default.\r\n\r\nWe want to prevent
code from solution A to depend on code from solution\r\nB.\r\nThus, the
rules are pretty simple:\r\n\r\n* Modules can only depend on:\r\n *
Modules in the same group\r\n * OR modules with 'shared' visibility\r\n*
Modules in `'observability', 'security', 'search'` groups
are\r\nmandatorily `visibility: \"private\"`.\r\n\r\nLong term, the goal
is to re-organise packages into dedicated
folders,\r\ne.g.:\r\n\r\n```\r\nx-pack/platform/plugins/private\r\nx-pack/observability/packages\r\n```\r\n\r\nFor
this first wave, we have categorised packages that
seem\r\n\"straightforward\":\r\n* Any packages that have:\r\n * at least
one dependant module\r\n * all dependants belong to the same group\r\n*
Categorise all Core packages:\r\n * `@kbn/core-...-internal` =>
_platform/private_\r\n * everything else => _platform/shared_\r\n*
Categorise as _platform/shared_ those packages that:\r\n * Have at least
one dependant in the _platform_ group.\r\n * Don't have any `devOnly:
true` dependants.\r\n\r\n### What we ask from you, as CODEOWNERS of the
_package manifests_, is\r\nthat you confirm that the categorisation is
correct:\r\n\r\n* `group: \"platform\", visibility: \"private\"` if it's
a package that\r\nshould only be used from platform code, not from any
solution code. It\r\nwill be loaded systematically in all serverless
flavors, but solution\r\nplugins and packages won't be able to `import`
from it.\r\n* `group: \"platform\", visibility: \"shared\"` if it's a
package that can\r\nbe consumed by both platform and solutions code. It
will be loaded\r\nsystematically in all serverless flavors, and anybody
can import / use\r\ncode from it.\r\n* `group: \"observability\" |
\"security\" | \"search\", visibility:\r\n\"private\"` if it's a package
that is intented to be used exclusively\r\nfrom a given solution. It
won't be accessible nor loaded from other\r\nsolutions nor platform
code.\r\n\r\nPlease refer
to\r\n[#kibana-sustainable-architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nfor
any related questions.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b24fdf5d3f6b7454a4edcedb8141b82f571e1d74","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services"],"number":199630,"url":"https://github.com/elastic/kibana/pull/199630","mergeCommit":{"message":"Sustainable
Kibana Architecture: Categorise `straightforward` packages
(#199630)\n\n## Summary\r\n\r\nThis PR is part of the Kibana Sustainable
Architecture effort.\r\n\r\nThe goal is to start categorising Kibana
packages into _generic\r\nplatform_ (`group: \"platform\"`) vs
_solution-specific_.\r\n\r\n```\r\ngroup?: 'search' | 'security' |
'observability' | 'platform'\r\nvisibility?: 'private' |
'shared'\r\n```\r\nUncategorised modules are considered to be `group:
'common', visibility:\r\n'shared'` by default.\r\n\r\nWe want to prevent
code from solution A to depend on code from solution\r\nB.\r\nThus, the
rules are pretty simple:\r\n\r\n* Modules can only depend on:\r\n *
Modules in the same group\r\n * OR modules with 'shared' visibility\r\n*
Modules in `'observability', 'security', 'search'` groups
are\r\nmandatorily `visibility: \"private\"`.\r\n\r\nLong term, the goal
is to re-organise packages into dedicated
folders,\r\ne.g.:\r\n\r\n```\r\nx-pack/platform/plugins/private\r\nx-pack/observability/packages\r\n```\r\n\r\nFor
this first wave, we have categorised packages that
seem\r\n\"straightforward\":\r\n* Any packages that have:\r\n * at least
one dependant module\r\n * all dependants belong to the same group\r\n*
Categorise all Core packages:\r\n * `@kbn/core-...-internal` =>
_platform/private_\r\n * everything else => _platform/shared_\r\n*
Categorise as _platform/shared_ those packages that:\r\n * Have at least
one dependant in the _platform_ group.\r\n * Don't have any `devOnly:
true` dependants.\r\n\r\n### What we ask from you, as CODEOWNERS of the
_package manifests_, is\r\nthat you confirm that the categorisation is
correct:\r\n\r\n* `group: \"platform\", visibility: \"private\"` if it's
a package that\r\nshould only be used from platform code, not from any
solution code. It\r\nwill be loaded systematically in all serverless
flavors, but solution\r\nplugins and packages won't be able to `import`
from it.\r\n* `group: \"platform\", visibility: \"shared\"` if it's a
package that can\r\nbe consumed by both platform and solutions code. It
will be loaded\r\nsystematically in all serverless flavors, and anybody
can import / use\r\ncode from it.\r\n* `group: \"observability\" |
\"security\" | \"search\", visibility:\r\n\"private\"` if it's a package
that is intented to be used exclusively\r\nfrom a given solution. It
won't be accessible nor loaded from other\r\nsolutions nor platform
code.\r\n\r\nPlease refer
to\r\n[#kibana-sustainable-architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nfor
any related questions.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b24fdf5d3f6b7454a4edcedb8141b82f571e1d74"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199630","number":199630,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Categorise `straightforward` packages
(#199630)\n\n## Summary\r\n\r\nThis PR is part of the Kibana Sustainable
Architecture effort.\r\n\r\nThe goal is to start categorising Kibana
packages into _generic\r\nplatform_ (`group: \"platform\"`) vs
_solution-specific_.\r\n\r\n```\r\ngroup?: 'search' | 'security' |
'observability' | 'platform'\r\nvisibility?: 'private' |
'shared'\r\n```\r\nUncategorised modules are considered to be `group:
'common', visibility:\r\n'shared'` by default.\r\n\r\nWe want to prevent
code from solution A to depend on code from solution\r\nB.\r\nThus, the
rules are pretty simple:\r\n\r\n* Modules can only depend on:\r\n *
Modules in the same group\r\n * OR modules with 'shared' visibility\r\n*
Modules in `'observability', 'security', 'search'` groups
are\r\nmandatorily `visibility: \"private\"`.\r\n\r\nLong term, the goal
is to re-organise packages into dedicated
folders,\r\ne.g.:\r\n\r\n```\r\nx-pack/platform/plugins/private\r\nx-pack/observability/packages\r\n```\r\n\r\nFor
this first wave, we have categorised packages that
seem\r\n\"straightforward\":\r\n* Any packages that have:\r\n * at least
one dependant module\r\n * all dependants belong to the same group\r\n*
Categorise all Core packages:\r\n * `@kbn/core-...-internal` =>
_platform/private_\r\n * everything else => _platform/shared_\r\n*
Categorise as _platform/shared_ those packages that:\r\n * Have at least
one dependant in the _platform_ group.\r\n * Don't have any `devOnly:
true` dependants.\r\n\r\n### What we ask from you, as CODEOWNERS of the
_package manifests_, is\r\nthat you confirm that the categorisation is
correct:\r\n\r\n* `group: \"platform\", visibility: \"private\"` if it's
a package that\r\nshould only be used from platform code, not from any
solution code. It\r\nwill be loaded systematically in all serverless
flavors, but solution\r\nplugins and packages won't be able to `import`
from it.\r\n* `group: \"platform\", visibility: \"shared\"` if it's a
package that can\r\nbe consumed by both platform and solutions code. It
will be loaded\r\nsystematically in all serverless flavors, and anybody
can import / use\r\ncode from it.\r\n* `group: \"observability\" |
\"security\" | \"search\", visibility:\r\n\"private\"` if it's a package
that is intented to be used exclusively\r\nfrom a given solution. It
won't be accessible nor loaded from other\r\nsolutions nor platform
code.\r\n\r\nPlease refer
to\r\n[#kibana-sustainable-architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nfor
any related questions.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b24fdf5d3f6b7454a4edcedb8141b82f571e1d74"}}]}]
BACKPORT-->
2024-11-22 09:47:23 -06:00
Anton Dosov
240c4ff15b
[react@18] More breaking type fixes (should be the last pr) (#192266)
## Summary

Part of https://github.com/elastic/kibana/issues/138222

in @types/react@18 types
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56210. This PR
addresses a bunch of remaining fixes **(hopefully the last mass ping PR
like this)** The most common are:


### 1 Objects are no longer considered a valid ReactNode

In types@17 the ReactNode typing was too soft, it allowed objects and
functions being passed as ReactNode, e.g.

```
let obj: React.ReactNode = {};
let func: React.ReactNode = () => {};
```

This was by mistake, and this PR mutes most of such cases by simply
casting to a `string` or `ReactNode`.
In some cases, it is worth to follow up and address the raised issues in
a better way (see in comments)


```diff

function MyComponent() {

const error: string | Error = 'Error'

return (
  <div>
-   {error}
+   {error as string}
  </div>
)

}

```


Most common problems are related to rendering errors, where it could be
`string | Error` object rendered directly as a ReactNode. Most often it
is related to alerting framework:

```
export interface RuleFormParamsErrors {
  [key: string]: string | string[] | RuleFormParamsErrors;
}
```

Not sure if there is a better fix then casting, surely not short-term. 

### 2 More `useCallback` implicit any fixes

Follow up to https://github.com/elastic/kibana/pull/191659

### 3 `EuiSelect` doesn't have a placeholder prop 

In a couple of places, the `placeholder` prop was removed. This is
because react types were updated and `placeholder` was removed from the
base HTML element, so it highlighted places where `placeholder` prop was
redundant
2024-09-12 13:54:18 +02:00
Luke Elmers
b6287708f6
Adds AGPL 3.0 license (#192025)
Updates files outside of x-pack to be triple-licensed under Elastic
License 2.0, AGPL 3.0, or SSPL 1.0.
2024-09-06 19:02:41 -06:00
Tim Sullivan
73e72b0f5e
[EuiProvider] Fix Data-Discover code (#183874)
## Summary

Fixes needed for getting CI to pass when EUI throws an error if
attempting to render a component without the EuiProvider in the render
tree.

## Detailed description
In https://github.com/elastic/kibana/pull/180819, I will deliver a
change that will cause EUI components to throw an error if the
EuiProvider context is missing. This PR comes in as part of the final
work to get all functional tests passing in an environment where EUI
will throw the error. The tied to the ["Fix 'dark mode' inconsistencies
in Kibana" Epic](https://github.com/elastic/kibana-team/issues/805) has
so far been in preparation for this.

**Reviewers: Please interact with critical paths through the UI
components touched in this PR, ESPECIALLY in terms of testing dark mode
and i18n.**

<img width="1107" alt="image"
src="c0d2ce08-ac35-45a7-8192-0b2256fceb0e">

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
2024-05-22 09:57:26 -07:00
Stratoula Kalafateli
807da63c61
[ES|QL] Fetch the query columns utils (#182338)
## Summary

Revives this https://github.com/elastic/kibana/pull/181969

To do so, I had to create a new package `search-types` and move the
types I need there.

The Discovery team can take it from here.

Note: It also does a cleanup on the types I move, some of them were
declared twice.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-05-06 10:51:40 +02:00
Alejandro Fernández Haro
593d391172
Add @typescript-eslint/no-floating-promises (#181456)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@elastic.co>
Co-authored-by: Patrick Mueller <patrick.mueller@elastic.co>
2024-05-01 08:41:31 -07:00
Patryk Kopyciński
0780c19322
Add explicit children types (#181257)
## Summary

Prep work for React@18 bump

tl;dr In React@18 `React.FC` doesn't contain `children` anymore, so in
order to make the bump easier I have decided to split the effort in
multiple faces and hopefully this will make it easier for everyone

This PR focuses only on adding explicit `children` declaration either by
using `React.PropsWithChildren` type or by adding `children:
React.ReactNode` to the existing props types

https://github.com/DefinitelyTyped/DefinitelyTyped/issues/46691

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Sergi Massaneda <sergi.massaneda@gmail.com>
Co-authored-by: Marco Vettorello <marco.vettorello@elastic.co>
Co-authored-by: James Gowdy <jgowdy@elastic.co>
2024-04-29 16:56:41 +01:00
Tim Sullivan
bc87224b41
[Discover] Remove usage of deprecated React rendering utilities (#181623)
## Summary

Partially addresses https://github.com/elastic/kibana-team/issues/805

These changes come up from searching in the code and finding where
certain kinds of deprecated AppEx-SharedUX modules are imported.
**Reviewers: Please interact with critical paths through the UI
components touched in this PR, ESPECIALLY in terms of testing dark mode
and i18n.**

This focuses on code within **Discover**. Due to related type-safety
needs there are also some minor changes in the **Data** plugin.

<img width="1196" alt="image"
src="7f8d3707-94f0-4746-8dd5-dd858ce027f9">

Note: this also makes inclusion of `i18n` and `analytics` dependencies
consistent. Analytics is an optional dependency for the SharedUX
modules, which wrap `KibanaErrorBoundaryProvider` and is designed to
capture telemetry about errors that are caught in the error boundary.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Julia Rechkunova <julia.rechkunova@gmail.com>
2024-04-26 11:48:06 -07:00
Alejandro Fernández Haro
1c1e20afdb
Use rxjs instead of rxjs/operators (#179553) 2024-04-02 11:41:33 -07:00
Sébastien Loix
9db8d2558c
[Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
Alejandro Fernández Haro
fd09c26d15
async-import plugins in the server side (#170856)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-15 00:55:56 -07:00
Eyo O. Eyo
f27427b949
Removes duplicated RedirectAppLinks component (#170304)
## Summary

This PR removes the [duplicated RedirectAppLinks
component](https://github.com/elastic/kibana/blob/v8.10.4/src/plugins/kibana_react/public/app_links/redirect_app_link.tsx)
which has been marked as deprecated since
74a00fad20.

All references to the previous import declaration from
`@kbn/kibana-react-plugin/public` have been replaced with
`@kbn/shared-ux-link-redirect-app`, this change ensures that the current
app behaviour is preserved, and changes to match the expectation of the
new component have been applied where necessary.

Changes relating to the new `RedirectAppLinks` component; 
- The component does not accept a `className` anymore as it is not a
presentational component despite it being used as one previously,
there's change to make accommodation for how it had been used.
- The component introduces a`data-test-subj` attribute with the value
`kbnRedirectAppLink` on the dom node that wraps it's children.


### Checklist

<!--
Delete any items that are not applicable to this PR.

~- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)~
-->
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

<!--
~- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard
accessibility](https://webaim.org/techniques/keyboard/))~
~- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))~
~- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~
~- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))~
~- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)~


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces&mdash;unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes&mdash;Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-13 10:17:13 +01:00
Nathan Reese
b5aa375255
[search source] consolidate warnings logic in kbn-search-response-warnings package (#168531)
prerequisite for https://github.com/elastic/kibana/issues/167906

PR consolidates all warnings logic into kbn-search-response-warnings
package

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-10-22 19:12:41 -06:00
Cee Chen
770881430d
Upgrade EUI to v89.0.0 (#168396)
`v88.5.4``v89.0.0`

---

## [`89.0.0`](https://github.com/elastic/eui/tree/v89.0.0)

- Added new `pushAnimation` prop to push `EuiFlyout`s, which enables a
slide in animation ([#7239](https://github.com/elastic/eui/pull/7239))
- Updated `EuiComboBox` to use `EuiInputPopover` under the hood
([#7246](https://github.com/elastic/eui/pull/7246))
- Added `inputPopoverProps` to `EuiComboBox`, which allows customizing
the underlying popover
([#7246](https://github.com/elastic/eui/pull/7246))
- Added a new beta `EuiTextBlockTruncate` component for multi-line
truncation ([#7250](https://github.com/elastic/eui/pull/7250))
- Updated `EuiBasicTable` and `EuiInMemoryTable` to support multi-line
truncation. This can be set via `truncateText.lines` in the `columns`
prop. ([#7254](https://github.com/elastic/eui/pull/7254))

**Bug fixes**

- Fixed `EuiFlexGroup` and `EuiFlexGrid`'s `m` gutter size
([#7251](https://github.com/elastic/eui/pull/7251))
- Fixed focus trap rerender issues in `EuiFlyout` with memoization
([#7259](https://github.com/elastic/eui/pull/7259))
- Fixed a visual bug with `EuiContextMenu`'s animation between panels
([#7268](https://github.com/elastic/eui/pull/7268))

**Breaking changes**

- EUI's global body font-size now respects the `font.defaultUnits`
token. This means that the global font size will use the `rem` unit by
default, instead of `px`.
([#7182](https://github.com/elastic/eui/pull/7182))
- Removed exported `accessibleClickKeys`, `comboBoxKeys`, and
`cascadingMenuKeys` services. Use the generic `keys` service instead
([#7256](https://github.com/elastic/eui/pull/7256))
- Removed `EuiColorStops` due to low usage
([#7262](https://github.com/elastic/eui/pull/7262))
- Removed `EuiSuggest`. We recommend using `EuiSelectable` or
`EuiComboBox` instead
([#7263](https://github.com/elastic/eui/pull/7263))
- Removed `euiHeaderAffordForFixed` Sass mixin, and `$euiHeaderHeight`
and `$euiHeaderHeightCompensation` Sass variables. Use the CSS variable
`--var(euiFixedHeadersOffset, 0)` instead.
([#7264](https://github.com/elastic/eui/pull/7264))

**Accessibility**

- When using `rem` or `em` font units, EUI now respects, instead of
ignoring, browser default font sizes set by end users.
([#7182](https://github.com/elastic/eui/pull/7182))
2023-10-11 14:36:52 -05:00
Nathan Reese
b5bcf69022
[search source] remove is_partial check (#164506)
Closes https://github.com/elastic/kibana/issues/164893

### Background

"is partial" has 2 meanings
1) Results are incomplete because search is still running
2) Search is finished. Results are incomplete because there are shard
failures (either in local or remote clusters)

[async
search](https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html)
defines 2 flags.
1) `is_running`: Whether the search is still being executed or it has
completed
2) `is_partial`: When the query is no longer running, indicates whether
the search failed or was successfully completed on all shards. While the
query is being executed, is_partial is always set to true
**note**: there is a bug in async search where requests to only local
clusters return `is_partial:false` when there are shard errors on the
local cluster. See
https://github.com/elastic/elasticsearch/issues/98725. This should be
resolved in 8.11

Kibana's existing search implementation does not align with
Elasticsearch's `is_running` and `is_partial` flags. Kibana defines "is
partial" as definition "1)". Elasticsearch async search defines "is
partial" as definition "2)".

This PR aligns Kibana's usage of "is partial" with Elasticsearch's
definition. This required the following changes
1) `isErrorResponse` renamed to `isAbortedResponse`. Method no longer
returns true when `!response.isRunning && !!response.isPartial`. Kibana
handles results with incomplete data. **Note** removed export of
`isErrorResponse` from data plugin since its use outside of data plugin
does not make sense.
2) Replace `isPartialResponse` with `isRunningResponse`. This aligns
Kibana's definition with Elasticsearch async search flags.
3) Remove `isCompleteResponse`. The word "complete" is ambiguous. Does
it mean the search is finished (no longer running)? Or does it mean the
search has all results and there are no shard failures?

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jatin Kathuria <jatin.kathuria@elastic.co>
Co-authored-by: Patryk Kopyciński <contact@patrykkopycinski.com>
2023-10-02 13:25:08 -06:00
Nathan Reese
f3b280f6ee
refactor search source warnings to return a single warning for 'is_partial' results (#165512)
Closes https://github.com/elastic/kibana/issues/164905

This PR replaces individual shard failure and timeout warnings with a
single "incomplete data" warning. This work is required for
https://github.com/elastic/kibana/issues/163381

<img width="500" alt="Screen Shot 2023-09-06 at 9 35 52 AM"
src="77e62792-c1f1-4780-b4f2-3aca24e4691b">

<img width="500" alt="Screen Shot 2023-09-06 at 9 36 00 AM"
src="56f37db1-2b4a-484b-9244-66b352d82dc1">

<img width="500" alt="Screen Shot 2023-09-06 at 9 36 07 AM"
src="4a777963-6e88-4736-9d63-99a2843ebdbb">

### Test instructions
* Install flights and web logs sample data
* Create data view kibana_sample_data*. **Set time field to timestamp**
* open discover and select kibana_sample_data* data view
* Add filter with custom DSL
    ```
    {
      "error_query": {
        "indices": [
          {
            "error_type": "exception",
            "message": "local shard failure message 123",
            "name": "kibana_sample_data_logs",
            "shard_ids": [
              0
            ]
          }
        ]
      }
    }
    ```

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Julia Rechkunova <julia.rechkunova@gmail.com>
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2023-09-14 08:55:53 -06:00
Nathan Reese
0113eb74c8
remove unneeded usages of isErrorResponse (#164609)
`data.search` uses
[poll_search](https://github.com/elastic/kibana/blob/main/src/plugins/data/common/search/poll_search.ts)
to fetch data. `poll_search` checks for `isErrorResponse` and throws
when`isErrorResponse` is true. **Note** `searchSource.search` uses
`data.search` to perform searches.

```javascript
   return from(search()).pipe(
      expand(() => {
        const elapsedTime = Date.now() - startTime;
        return timer(getPollInterval(elapsedTime)).pipe(switchMap(search));
      }),
      tap((response) => {
        if (isErrorResponse(response)) {
          throw response ? new Error('Received partial response') : new AbortError();
        }
      }),
      takeWhile<Response>(isPartialResponse, true),
      takeUntil<Response>(aborted$)
    );
```

Subscribers to `data.search` and `searchSource.search` do not need to
check for `isErrorResponse` in `next`. `poll_search` has already thrown
then the response is `isErrorResponse` so these checks are dead code
blocks that are never executed.

This PR removes these dead code blocks. Breaking this change out of
https://github.com/elastic/kibana/pull/164506 so that it can be reviewed
in isolated.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-28 11:40:26 -06:00
Julia Rechkunova
148f9d757f
[Discover] Replace deprecated page components (#162836)
- Closes https://github.com/elastic/kibana/issues/161426

## Summary

This PR updates usage of Eui page components for the following plugins.
Also took this opportunity to make these pages a little nicer.

### src/plugins/data_view_management

Before:
<img width="600" alt="Screenshot 2023-07-31 at 20 09 28"
src="5b52d31d-b759-40f9-8a8e-d428f6431f45">

After:
<img width="600" alt="Screenshot 2023-07-31 at 20 09 37"
src="dfd738d9-fa19-41d2-a55e-6157d9f2310a">


### examples/search_examples

Before:
<img width="600" alt="Screenshot 2023-07-31 at 17 41 03"
src="cc739f2d-bbaa-4cae-80d8-27599170a40a">

After:
<img width="600" alt="Screenshot 2023-07-31 at 18 01 47"
src="ab596aae-f9b4-48f0-8401-a507f4814624">

Before:
<img width="600" alt="Screenshot 2023-07-31 at 20 30 19"
src="40327fdd-7161-4d65-86ff-ff38455477fb">

After:
<img width="600" alt="Screenshot 2023-07-31 at 20 30 39"
src="8455c09f-6d84-4ad1-9e25-f8555a4f40db">

Before:
<img width="600" alt="Screenshot 2023-07-31 at 18 20 47"
src="68b05f4a-fcc0-4051-92b4-88a34bd22fb6">

After:
<img width="600" alt="Screenshot 2023-07-31 at 18 44 32"
src="1fd00e7e-3663-470f-927a-b7d7a0fe6c20">

### examples/partial_results_example

Before:
<img width="600" alt="Screenshot 2023-07-31 at 17 29 32"
src="589a2d93-c42a-4948-b805-0447e96f8ae4">

After:
<img width="600" alt="Screenshot 2023-07-31 at 17 31 52"
src="22df2b40-a9ec-4e11-b4dc-19da86c73059">

### examples/field_formats_example

Before:
<img width="600" alt="Screenshot 2023-07-31 at 17 27 44"
src="d3fa1fc3-e3e2-4f69-87e5-7187f8d3b000">

After:
<img width="600" alt="Screenshot 2023-07-31 at 17 27 56"
src="5633dba4-85ed-4767-bc8c-dee0c4da8798">

### examples/data_view_field_editor_example

Before:
<img width="600" alt="Screenshot 2023-07-31 at 17 33 15"
src="0be36a57-aef3-4679-ac77-9d5073b72fc2">

After:
<img width="600" alt="Screenshot 2023-07-31 at 17 37 34"
src="e43b0a1d-12fe-4d06-90b0-63cbc36e5ac2">


### Checklist

- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
2023-08-02 20:08:17 +02:00
Patryk Kopyciński
a1d02824f1
[shared-ux-router] Add Router and Routes components (#159834)
## Summary

Why?

To simplify the process of migration to react-router@6.
https://github.com/remix-run/react-router/discussions/8753

What problems exactly it solves?

- In my previous PR I added `CompatRouter`
https://github.com/elastic/kibana/pull/159173, which caused changes in
~50 files and pinged 15 Teams. And this is just meant to be a temporary
change, so when we're done with the migration I would have to revert
these changes and engage everyone to review the PR again. And it is just
a single step in the migration strategy. So to make our lives easier I
think it would be better to have a common place where we do import our
router components because it will allow us to surface some extra logic
in single place instead of going through the whole source code again.

- `react-router@6` doesn't support a custom `Route` component, so that
means our custom `Route` component that we're using almost everywhere
today, will need to be replaced by a different solution. I have decided
to add `Routes` component, which will be responsible for rendering the
proper component (`react-router@6` renamed `Switch` to `Routes`, so I
have named this component to align with the dictionary of the new
router) and also is going to add the logic that today is done in `Route`
(moving logic to `Routes` will be done in the follow-up PR, here I just
wanted to focus on using the common router components to make the review
process easier)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-06-23 10:02:06 -05:00
Patryk Kopyciński
09577fa0af
Add react-router-dom-v5-compat (#159173)
## Summary

Prep work for bumping react-router to v6
Following https://github.com/remix-run/react-router/discussions/8753

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-06-14 05:13:15 -07:00
Davis McPhee
11a80ce559
[Search Sessions] Fix flaky partial results test in search examples (#155816)
## Summary

Unskip and fix flaky partial results test in search examples plugin.

Flaky test runner x100:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2172.

Fixes #116038.

### Checklist

- [ ] ~Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)~
- [ ]
~[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] ~Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard
accessibility](https://webaim.org/techniques/keyboard/))~
- [ ] ~Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))~
- [ ] ~If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~
- [ ] ~This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))~
- [ ] ~This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)~

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2023-04-27 20:27:59 -03:00
Jason Stoltzfus
c339ca8394
Upgraded EUI to v76.0.0 (#152506)
👋 Hi all - the biggest breaking change of this PR is around two icon
type changes/renames.

1. ⚠️ **The  `alert` icon is now named `warning`**
- <img width="103" alt=""
src="https://user-images.githubusercontent.com/549407/223561599-8913e88c-676f-47cd-aaed-81b64783bd81.png"
align="middle">
- This change should have been automatically converted on your behalf by
the EUI team, **but if for some reason** we missed making this
conversion in this PR and your icon(s) are now broken, please ping us or
let us know in this PR (or fix yourself after this PR merges).
- In some cases, teams were using this icon for error messages,
alongside the `danger` color. In those cases, we opinionatedly changed
those icon usages to the new `error` icon instead of using the old
alert/warning icon.

2. 🛑 **The `crossInACircleFilled` icon has been removed, and a new
`error` icon added**
- <img width="84" alt=""
src="https://user-images.githubusercontent.com/549407/223561892-4406bdf6-1a55-49ac-85ad-3a11eb7c090d.png"
align="middle">
- The conversion for this breaking change was not straightforward. This
was the path we used to determine what to change `crossInACircleFilled`
usages to:
- If the icon was associated with errors or error messages, we changed
it to the new `error` icon.
- If a "delete" action was associated with this icon, we changed it to
the `trash` icon instead.
- If a "clear" action was associated with this icon, we changed it to
just the `cross` icon, or in some cases `minusInCircleFilled` (if used
alongside `plusInCircleFilled`).
- Again, if we made a mistake during this conversion or missed your
plugin, please feel free to ping us.

## Summary

`eui@75.1.2`  `eui@76.0.2`

## [`76.0.2`](https://github.com/elastic/eui/tree/v76.0.2)

**Bug fixes**

- Added a legacy `alert` alias for the `warning` `EuiIcon` type
([#6640](https://github.com/elastic/eui/pull/6640))

## [`76.0.1`](https://github.com/elastic/eui/tree/v76.0.1)

**Bug fixes**

- Fixed broken icons on all `isInvalid` form controls
([#6629](https://github.com/elastic/eui/pull/6629))

## [`76.0.0`](https://github.com/elastic/eui/tree/v76.0.0)

- Added `pivot` glyph to `EuiIcon`
([#6605](https://github.com/elastic/eui/pull/6605))
- Added the `displayHeaderCellProps` API to `EuiDataGrid`'s columns,
which allows passing custom props directly to column header cells
([#6609](https://github.com/elastic/eui/pull/6609))
- Added the new `headerCellProps`/`footerCellProps` APIs to
`EuiDataGrid`'s control columns, which allows passing custom props
directly to control column header or footer cells
([#6609](https://github.com/elastic/eui/pull/6609))
- Added a new `footerCellRender` API to `EuiDataGrid`'s control columns,
which allows completely customizing control column rendering (previously
rendered an empty cell)
([#6609](https://github.com/elastic/eui/pull/6609))
- Updated the styling of nested ordered lists in `EuiText` to align with
GitHub's list style, which is a popular format used in Markdown or MDX
formatting ([#6615](https://github.com/elastic/eui/pull/6615))
- Added a margin-bottom property exclusively to the direct child `ul`
and `ol` elements of the `EuiText` component
([#6615](https://github.com/elastic/eui/pull/6615))
- Fix issue with badges appearing within an `EuiBadgeGroup`, where the
CSS rule to override the `margin-inline-start` was not being applied
correctly due to the order of appearance in the CSS rules
([#6618](https://github.com/elastic/eui/pull/6618))

**Bug fixes**

- Fixed `EuiDataGrid` footer control columns rendering with cell
expansion popovers when they should not have been
([#6609](https://github.com/elastic/eui/pull/6609))
- Fixed an `EuiSkipLink` bug where main content loading in
progressively/dynamically after the skip link rendered was not being
correctly focused ([#6613](https://github.com/elastic/eui/pull/6613))

**Breaking changes**

- Renamed `EuiIcon`'s `alert` to `warning`
([#6608](https://github.com/elastic/eui/pull/6608))
- Removed `EuiIcon`'s `crossInACircleFilled` in favor of `error`
([#6608](https://github.com/elastic/eui/pull/6608))

---------

Co-authored-by: Davey Holler <daveyholler@hey.com>
Co-authored-by: Constance Chen <constance.chen@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jon <jon@elastic.co>
2023-03-14 14:27:40 -05:00
Rachel Shen
50a4fc4916
[Shared UX] Adoption of Shared UX Route component (#150357)
## Summary

This PR removes all imports of Route from react-router-dom and
'@kbn/kibana-react-plugin/public' and instead imports Route from
@kbn/shared-ux-router.

### Context
Based on
https://github.com/elastic/kibana/issues/132629#issue-1243243678 This PR
executes steps 2 - 4:

> 2. To make the transition easier, we want to re-export other
react-router-dom exports alongside the modified' Route'.
> 3. Solutions should start using that Route component in place of the
one from react-router-dom. I.e. replace all occurrences of import { ...
} from 'react-router-dom' with import { ... } from
'@kbn/shared-ux-router'.
> 4. All manual calls to useExecutionContext are not needed anymore and
should be removed.

### Future PR

Looks like this might be getting worked on in:
https://github.com/elastic/kibana/pull/145863 (thanks!)

> Introduce an ESlint rule that ensures that react-router-dom is not
used directly in Kibana and that imports go through the new
@kbn/shared-ux-router package.

This is tangentially accomplished through
https://github.com/elastic/kibana/pull/150340 but only addresses using
Route through @kbn/kibana-react-plugin/public'


### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2023-02-14 19:25:04 +00:00
Spencer
1b85815402
[packages] migrate all plugins to packages (#148130)
Fixes https://github.com/elastic/kibana/issues/149344

This PR migrates all plugins to packages automatically. It does this
using `node scripts/lint_packages` to automatically migrate
`kibana.json` files to `kibana.jsonc` files. By doing this automatically
we can simplify many build and testing procedures to only support
packages, and not both "packages" and "synthetic packages" (basically
pointers to plugins).

The majority of changes are in operations related code, so we'll be
having operations review this before marking it ready for review. The
vast majority of the code owners are simply pinged because we deleted
all `kibana.json` files and replaced them with `kibana.jsonc` files, so
we plan on leaving the PR ready-for-review for about 24 hours before
merging (after feature freeze), assuming we don't have any blockers
(especially from @elastic/kibana-core since there are a few core
specific changes, though the majority were handled in #149370).

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-02-08 21:06:50 -06:00
Tiago Costa
e38350f7f9
chore(NA): upgrades uuid to v9.0.0 (#149135)
This PR upgrades uuid into its latest version `9.0.0`.
The previous default used version `v4` was kept where it was previously
used and places using `v1` or `v5` are still using it.

In this latest version they removed the deep import feature and as we
are not using tree shaking it increased our bundles by a significant
size. As such, I've moved this dependency into the `ui-shared-deps-npm`
bundle.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-19 19:48:07 +00:00
Spencer
afb09ccf8a
Transpile packages on demand, validate all TS projects (#146212)
## Dearest Reviewers 👋 

I've been working on this branch with @mistic and @tylersmalley and
we're really confident in these changes. Additionally, this changes code
in nearly every package in the repo so we don't plan to wait for reviews
to get in before merging this. If you'd like to have a concern
addressed, please feel free to leave a review, but assuming that nobody
raises a blocker in the next 24 hours we plan to merge this EOD pacific
tomorrow, 12/22.

We'll be paying close attention to any issues this causes after merging
and work on getting those fixed ASAP. 🚀

---

The operations team is not confident that we'll have the time to achieve
what we originally set out to accomplish by moving to Bazel with the
time and resources we have available. We have also bought ourselves some
headroom with improvements to babel-register, optimizer caching, and
typescript project structure.

In order to make sure we deliver packages as quickly as possible (many
teams really want them), with a usable and familiar developer
experience, this PR removes Bazel for building packages in favor of
using the same JIT transpilation we use for plugins.

Additionally, packages now use `kbn_references` (again, just copying the
dx from plugins to packages).

Because of the complex relationships between packages/plugins and in
order to prepare ourselves for automatic dependency detection tools we
plan to use in the future, this PR also introduces a "TS Project Linter"
which will validate that every tsconfig.json file meets a few
requirements:

1. the chain of base config files extended by each config includes
`tsconfig.base.json` and not `tsconfig.json`
1. the `include` config is used, and not `files`
2. the `exclude` config includes `target/**/*`
3. the `outDir` compiler option is specified as `target/types`
1. none of these compiler options are specified: `declaration`,
`declarationMap`, `emitDeclarationOnly`, `skipLibCheck`, `target`,
`paths`

4. all references to other packages/plugins use their pkg id, ie:
	
	```js
    // valid
    {
      "kbn_references": ["@kbn/core"]
    }
    // not valid
    {
      "kbn_references": [{ "path": "../../../src/core/tsconfig.json" }]
    }
    ```

5. only packages/plugins which are imported somewhere in the ts code are
listed in `kbn_references`

This linter is not only validating all of the tsconfig.json files, but
it also will fix these config files to deal with just about any
violation that can be produced. Just run `node scripts/ts_project_linter
--fix` locally to apply these fixes, or let CI take care of
automatically fixing things and pushing the changes to your PR.

> **Example:** [`64e93e5`
(#146212)](64e93e5806)
When I merged main into my PR it included a change which removed the
`@kbn/core-injected-metadata-browser` package. After resolving the
conflicts I missed a few tsconfig files which included references to the
now removed package. The TS Project Linter identified that these
references were removed from the code and pushed a change to the PR to
remove them from the tsconfig.json files.

## No bazel? Does that mean no packages??
Nope! We're still doing packages but we're pretty sure now that we won't
be using Bazel to accomplish the 'distributed caching' and 'change-based
tasks' portions of the packages project.

This PR actually makes packages much easier to work with and will be
followed up with the bundling benefits described by the original
packages RFC. Then we'll work on documentation and advocacy for using
packages for any and all new code.

We're pretty confident that implementing distributed caching and
change-based tasks will be necessary in the future, but because of
recent improvements in the repo we think we can live without them for
**at least** a year.

## Wait, there are still BUILD.bazel files in the repo
Yes, there are still three webpack bundles which are built by Bazel: the
`@kbn/ui-shared-deps-npm` DLL, `@kbn/ui-shared-deps-src` externals, and
the `@kbn/monaco` workers. These three webpack bundles are still created
during bootstrap and remotely cached using bazel. The next phase of this
project is to figure out how to get the package bundling features
described in the RFC with the current optimizer, and we expect these
bundles to go away then. Until then any package that is used in those
three bundles still needs to have a BUILD.bazel file so that they can be
referenced by the remaining webpack builds.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-12-22 19:00:29 -06:00
spalger
52f2b33a07
[auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
Tim Sullivan
95c3893e28
[Search] Re-enable test on example search app (#139961)
* [Search] Unskip ex-flaky example app test

* comment out flaky test code

* use es.transport.request to downsample the test index

* uncomment blocked test code

* remove browser refresh in beforeEach

* fix ts
2022-09-09 10:25:36 -07:00
Constance
98f73d674a
Upgrade EUI to v63.0.6 - updates to new EuiPageTemplate and deprecates old page components (#139524)
* Update all usages of EuiPageTemplate to EuiPageTemplate_Deprecated

* EuiPageContent_Deprecated as EuiPageContent

* EuiPageContentBody_Deprecated as EuiPageContentBody

* EuiPageContentHeader_Deprecated as EuiPageContentHeader

* EuiPageContentHeaderSection_Deprecated as EuiPageContentHeaderSection

* EuiPageSideBar_Deprecated as EuiPageSideBar

* EuiPageContent__Deprecated to EuiPageContent_Deprecated

* Fix rogue semi-colons

* WIP: NoDataConfigPage & NoDataPage converted to new template

- `withSolutionNav` not yet handled

* WIP: KibanaPageTemplateInner converted to use new template

- Pushes existing `pageHeader` prompts onto created EuiPageTemplate.PageHeader
- Uses `isEmptyState` to push `pageHeader` props to EuiPageTemplate.EmptyPrompt instead (if `children` are not supplied)

* WIP: `withSolutionNav` now renders the sidebar content properly

- Collapsing isn’t working (minWidth isn’t updating)

* Fixing stickiness of sidebar

* [Security] Fixed SecuritySolutionTemplateWrapper’s usage

- Moved `bottomBar` to EuiPageTemplate.BottomBar (now contained in just the page contents)
- Change EuiPanel children wrapper with EuiPageTemplate.Section

* [O11y] Wrap `children` with EuiPageTemplate.Section

* Fix getting_started usage

* WIP: Fixing types

* Removing `template` pass through

* Set EUI to 63.0.0

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* More import fixes

* Sidebar component update

* Expand `KibanaPageTemplate` to all namespaced EUI counterparts

- Updated `docs/tutorials` mdx page
- Fixed SolutionNav prop types

* Updated the tutorial mdx page

* [Stack Management] Updated app layout to new template

- Some temporary props applied for BWC until all other pages can be converted
- Converted `API Keys` page’s layout (and especially prompt usags) to new paradigm

* Fix circular dep

* Fix new circular dependency

- copying and pasting types from KibanaPageTemplateProps, but ah well

* [Security Solution] Remove `template` prop - no longer a prop on Kibana/EuiPageTemplate

* [O11y] Allow customizing EuiPageTemplate.Section wrapper

- converts pageBodyProps
- fixes non-centered loading template

* [Enterprise Search] Update page templates

- fix layouts by auto-wrapping an EuiPageSection for padding, while adding a `customPageSections` prop for more custom sections/layouts

- re-center 404 errors

- update tests

* Update KibanaPageTemplate tests

* Update snapshots

* Fix FTR test with removed EUI classNames

* Fix FTR tests with changed kbn classNames

* Update failing dashboard snapshots

- drop shadow changed slightly in EUI

* Fix failing Security Cypress test

* [O11y] Fix Inventory page using deprecated CSS hooks

* [O11y][Uptime] Fix missing bottom bars

- Modifies ObservabilityPageTemplate to accept a `bottomBar` prop (a la the old EuiPageTemplate behavior)

NOTE: This opinionated page layout structure is starting to feel like it could be potentially limiting / have all the same pitfalls the previous EuiPageTemplate did. If so, consider something closer to the Enterprise Search page template conversion (`customPageSections`).

- Misc cleanup: Use `KibanaPageTemplate` over `EuiPageTemplate`

* [O11y] Fix route template typing

- Since theObservabilityPageTemplate is using the new Eui/KibanaPageTemplate, its child templates and types need to be updated accordingly

* Fix broken minWidth behavior

- was an EUI issue that required a patch release
+ update snapshots

* [Security Solution] Type fixes, restore empty state

- Fix empty state logic removed in a previous commit
- bogarts KibanaPageTemplate's `isEmptyState` prop instead of using `template="noData"`

- extend template wrappers to past ...rest to underlying Kibana/EuiPageTemplate

+ replace EuiPageTemplate with KibanaPageTemplate for consistency

* Fix failing synthetics selector

* Grab EUI v63.0.6

- for deprecation tags and section tag support

* Fix Kibana Overview plugin layout

- needs to use KibanaPageTemplate.Section to get padding back

- use `bottomBorder` prop over horizontal rules

- restore previous page color via panelled=false

* Convert Home plugin to new KibanaPageTemplate

- use KibanaPageTemplate.Section instead to preserve page width/paddings

- use `bottomBorder` instead of `EuiHorizontalRule`

- NOTE: This causes margins to decrease slightly from xxl to xl (largest padding available for EuiPageSection) - this can be restored by CSS overrides if desired

- update CSS to preserve previous looks, + convert to logical properties

* [O11y] Fix non-centered empty/loading states

* [O11y] Restore subdued background on various empty state prompts

* [O11y] Fix all instances of views that require a scrollable full-height child

+ restore comment for inventory view

* [O11y][ux] Fix broken sidebar

- The entire app was missing a wrapping EuiProvider, and as such breakpoint utils were not working, and the sidebar was missing

+ misc cleanup
  - remove unnecessary fragment
  - remove role="main" attr - now that EuiPageTemplate sets a `main` tag, they'll conflict
  - add isEmptyState to center loading component

* [APM Cypress tests] harden flaky test

* [APM Cypress tests] Fix failing Cypress test, again

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-07 15:35:23 -05:00
Tim Sullivan
160058a8c1
[search/public] expose showWarnings(inspector) method on search service (#138342)
* add showWarning to search service

* add comments

* add unit tests

* test foo

* cleanup

* add s to property name in test

* comments for api items

* use the warnings when calling showWarnings

* change showWarning to just show a single warning

* put handleWarnings on the request adapter

* comment

* simplify 1

* fix lens unit test

* remove underscoring for unused variables

* revert inspector changes, extract the response warnings in the search service

* fix bug

* remove console.log

* re-apply typescript fixes to app test code

* declutter

* add test, improve comments

* fix some unexported public api items

* include rawResponse in the warning structure

* fix lint

* tweak clean up example app

* SearchResponseWarnings and SearchResponseWarningNotification

* fix export bug

* not include shardStats if there are no warnings

* Update src/plugins/data/common/search/types.ts

* simplify SearchResponseWarnings interface

* remove array copying

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* comments for api_docs

* simplify per feedback

* Pass callback to handleResponse in showWarnings

* export more public types

* update example to make possible to show shard failure

* pr cleanup

* eslint fix

* allow example app to not show default warnings

* move extractWarning and related types to inspector plugin

* wip functional test of example app

* fix test references

* finish functional test

* relocate extractWarnings back to search/fetch

* fix test

* remove need for isTimeout, isShardFailure

* ts fix

* improve test

* Change showWarnings to accept the RequestAdapter

* use showWarnings in vis_types/timeseries

* more tests

* use handle_warning name

* fix ts

* add reason field to SearchResponseWarning

* fix component snapshot

* update comments

* test cleanup

* fix test

* ensure notification appears only once

* fix and cleanup

* fix ts

* fix response.json bug

* use top-level type, and lower-level reason.type

* cleanup

* fix shard failure warning in tsvb per feedback

cc @flash1293

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2022-08-31 11:22:24 -07:00
Pierre Gayvallet
383d8fab58
Move client-side application service to packages (#139502)
* deletes unused utils file

* just some fix while I see it

* creating empty packages

* moving all the things

* package build success

* start fixing usages

* fix the scoped history type issue

* export internal utils

* add default for mock

* fix test import

* fix external import

* start fixing external usages

* more usages

* more usages

* more usages

* More usages

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* fix integration test imports

* fix more test types

* remove public/utils from the core bundle

* trying to import from the package

* updating README's

* remove unused test types from mock package

* cleanup test types

* use import type

* add author to packages

* more import type

* remove dead path from some config

* remove src/core/utils/index.ts (and pray)

* update tsdoc

* fix new file usage

* fix paths

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-30 10:08:44 -07:00
Christiane (Tina) Heiligers
44738f2439
Migrates search example mountReactNode to kibana-react toMountPoint (#137633)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-01 07:52:20 -07:00
Anton Dosov
a8095ce11a
Remove deprecated es-query re-imports from data plugin (#134600) 2022-06-21 04:09:44 -07:00
Pierre Gayvallet
a02c00b8a3
Change ContextContainer to lazily initialize providers (#129896)
* Change ContextContainer to lazily initialize providers

* Introduce CustomRequestHandlerContext, start adapting usages

* adapt IContextProvider's return type

* start fixing violations

* fixing violations - 2

* adapt home routes

* fix remaining core violation

* fix violations on core tests

* fixing more violations

* fixing more violations

* update generated doc...

* fix more violations

* adapt remaining RequestHandlerContext

* fix more violations

* fix non-async method

* more fixes

* fix another await in non async method

* add yet another missing async

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* add yet yet another missing async

* update fleet's endpoints

* fix telemetry endpoints

* fix event_log endpoints

* fix some security unit tests

* adapt canvas routes

* adapt alerting routes

* adapt more so_tagging routes

* fix data_enhanced routes

* fix license_management routes

* fix file_upload routes

* fix index_management routes

* fix lists routes

* fix snapshot_restore routes

* fix rule_registry routes

* fix ingest_pipelines routes

* fix remote_clusters routes

* fix index_lifecycle_management routes

* improve and fix the lazy implementation

* fix triggers_actions_ui endpoints

* start fixing unit tests

* fix cases routes

* fix transform routes

* fix upgrade_assistant routes

* fix uptime route wrapper

* fix uptime route wrapper bis

* update osquery routes

* update cross_cluster_replication routes

* fix some ML routes / wrappers

* adapt maps routes

* adapt rollup routes

* fix some canvas unit tests

* fix more canvas unit tests

* fix observability wrapper

* fix (?) infra type hell

* start fixing monitoring

* fix a few test plugins

* woups

* fix yet more violations

* fixing UA  tests

* fix logstash handlers

* fix fleet unit tests

* lint?

* one more batch

* update security_solution endpoints

* start fixing security_solution mocks

* start fixing security_solution tests

* fix more security_solution tests

* fix more security_solution tests

* just one more

* fix last (?) security_solution tests

* fix timelion javascript file

* fix more test plugins

* fix transforms context type

* fix ml context type

* fix context tests

* fix securitySolution withEndpointAuthz tests

* fix features unit tests

* fix actions unit tests

* fix imports

* fix duplicate import

* fix some merge problems

* fix new usage

* fix new test

* introduces context.resolve

* down the rabbit hole again

* start fixing test type failures

* more test type failures fixes

* move import comment back to correct place

* more test type failures fixes, bis

* use context.resolve for security solution rules routes

* fix new violations due to master merge

* remove comment

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-04-22 13:15:58 +02:00
spalger
3730dd0779 fix all violations 2022-04-16 01:37:30 -05:00
Alejandro Fernández Haro
9d5aca591b
Upgrade RxJS to 7 (#129087)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-04-12 12:40:55 -07:00
Nodir Latipov
3e2761d981
[Unified search] Create unified search plugin (#127651)
* [Unified search] Create unified search plugin

* add unified_search into USES_STYLED_COMPONENTS

* fix JEST group 4

* update limits for data plugin

* fix: remove unifiedSearch plugin from x-pack/plugins/file_upload

* feat: updated .github/CODEOWNERS and set @elastic/kibana-app-services as a code owner

* apply PR comments

* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'

* feat: moved filter bar, apply filters folders and apply filter action from Data plugin to unified search plugin

* fix Checks

* fix Checks

* fix Linting and Default CI Group #16

* fix Checks

* fix Checks

* fix Linting (with types)

* fix show FILTER_BAR

* fix Jest Tests

* feat replece indexPatternsContranct in setIndexPatterns to DataViewsContract

* feat: removed unnecessary interface in unified search

* fix Checks

* fix Checks

* fix Jest Tests, Checks

* fix Checks

* resolve comments

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-05 12:23:31 +05:00
Anton Dosov
0421f868ea
[Search] SQL search strategy (#127859) 2022-03-24 14:37:11 +01:00
Anton Dosov
2fa5a87a5f
Update example plugins to stop using deprecated APIs (#121547) 2021-12-20 14:43:16 +01:00
Anton Dosov
b8a7370156
[Search] Add cancelation logic to search example (#118176) 2021-11-30 12:35:07 +01:00
Anton Dosov
8468061908
[Search] unskip tests of example plugin (#119604) 2021-11-25 10:16:32 +01:00
Tiago Costa
9d662b77be
chore(NA): splits types from code on @kbn/i18n (#119256)
* chore(NA): auto creation of the package.json for the new types pkg rule

* chore(NA): first alpha api extractor working version

* chore(NA): support kbn-analytics

* chore(NA): correctly read tsconfig files and deps from ts_config rule

* chore(NA): layed out pkg_npm_types tree artifact custom rule

* chore(NA): missing todos

* chore(NA): node modules link mapping

* chore(NA): fully working pkg_npm_types rule

* chore(NA): fix changes on new packages using elastic datemath pkgs

* docs(NA): remove todo

* docs(NA): last todo text correction

* chore(NA): removed commented lines

* fix(NA): include missing package version

* chore(NA): include license keys

* chore(NA): change mock types package into private

* chore(NA): disable validator on ts_project rule

* chore(NA): use the wrapper for ts_project

* commit using @elastic.co

* chore(NA): commit using @elastic.co

* chore(NA): split types from code on @kbn/i18n

* chore(NA): update yarn.lock file

* chore(NA): split @kbn/i18n and @kbn/i18n-react

* chore(NA): missing import fix

* chore(NA): fix jest project configs

* chore(NA): change imports on kbn i18n

* chore(NA): change imports on kbn i18n

* chore(NA): correct loader imports

* chore(NA): missnig i18nLoader export key

* chore(NA): fix type exports

* chore(NA): export type only

* chore(NA): export type only

* fix(NA): type exports

* chore(NA): missing @Kbn/i18n/react imports

* chore(NA): missing skip path for kbn-i18n-react

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-24 17:18:03 +00:00
Spencer
4385ac4d83
[eslint] enable type-specific lint rules (#114184)
* [eslint] enable type-specific lint rules

* autofix violations

* duplicate eslint-disable to new export statement

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-03 16:56:17 -06:00
Tyler Smalley
c4815d319e
Updates Github link references from master to main (#116789)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-29 09:53:08 -07:00
Lukas Olson
eb74b86ca4
[data.search.session] Use locators instead of URL generators (#115681)
* [data.search.session] Use locators instead of URL generators

* Add migration

* Fix/update tests

* Fix types

* Fix test setup

* Update docs

* Fix version :)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 12:30:11 -07:00
Tyler Smalley
4681a80317
[DX] Upgrade prettier to v2.4.0 (#112359)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-19 22:34:30 -07:00
Lukas Olson
6a39dc1880
[data.search] Handle warnings inside of headers (#103744)
* [data.search] Handle warnings inside of headers

* Update docs

* Add tests

* Remove isWarningResponse

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 21:06:19 -07:00