kibana/packages
Vadim Kibana 08fbd9caae
[ES|QL] Correctly parse source nodes (#190941)
## Summary

Fixes `source` node parsing. Correctly handles cluster part and
unescapes the quoted index string part.

1. First removes the cluster string part.
2. Unquotes and unescapes the index string part (if it is quoted and
escaped).

Those two were not done before: the index patter string was unquoted as
a whole (with cluster part attached); and, the index string was not
unescaped.


### 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


### For maintainers

- [x] 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>
2024-08-22 15:35:14 +02:00
..
analytics/utils/analytics_collection_utils [EBT] Use analytics module (#189052) 2024-07-31 08:31:20 -05:00
cloud [ConnectionDetails] add aria-labels (#184243) 2024-05-29 07:13:20 -06:00
content-management Dashboard insights flyout with dashboard views (#187993) 2024-08-21 13:08:49 -05:00
core [SharedUX] Resolve Sass Mixed Declaration issues (#191033) 2024-08-21 19:20:54 -05:00
deeplinks chore(investigate): Add investigate-app plugin from poc (#188122) 2024-07-23 11:44:32 -04:00
default-nav Rename Management team name in codeowners file (#178626) 2024-03-18 15:46:31 +00:00
home Add explicit children types (#181257) 2024-04-29 16:56:41 +01:00
kbn-ace Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-actions-types [Response Ops][Rule Form V2] Prepare Rule Form V2 Action Form Dependencies (#186490) 2024-07-19 11:28:34 +10:00
kbn-alerting-types [Response Ops] Rule Specific Flapping - Create/Edit Rule Flyout Frontend Changes (#189341) 2024-08-21 19:55:00 -05:00
kbn-alerts-as-data-utils [Security Solution][Detections][BUG] Rule execution error when source document has a non-ECS compliant text field (#187630) (#187673) 2024-07-22 13:32:38 -05:00
kbn-alerts-grouping Add alert grouping functionality to the observability alerts page (#189958) 2024-08-22 12:20:24 +02:00
kbn-alerts-ui-shared [ResponseOps] Fix scss deprecation issue (#190948) 2024-08-22 08:22:34 +01:00
kbn-ambient-common-types
kbn-ambient-ftr-types [codeowners] add appex-qa for ftr-related packages (#155230) 2023-05-24 08:53:09 +02:00
kbn-ambient-storybook-types
kbn-ambient-ui-types
kbn-analytics [@kbn/analytics] Add readme (#188980) 2024-07-24 14:41:18 +02:00
kbn-apm-config-loader [Move @kbn/config-schema to server] @kbn/apm-config-loader (#189521) 2024-07-31 08:52:51 +02:00
kbn-apm-data-view [UX/Maps] Fixing APM data view id (#179257) 2024-03-28 12:14:32 +00:00
kbn-apm-synthtrace [Synthtrace] Support Unstructured Logs (#190864) 2024-08-21 13:35:44 +03:00
kbn-apm-synthtrace-client [Synthtrace] Custom logs with ECS fields (#190502) 2024-08-15 16:02:11 -05:00
kbn-apm-types [Infra] Move apm common types to a package (#189649) 2024-08-01 17:14:42 +02:00
kbn-apm-utils Update new codeowners for Obs team changes (#170182) 2023-11-08 14:30:17 +00:00
kbn-avc-banner [Security Solution][AVC banner] Hide AVC banner on January 1, 2025 (#187929) 2024-08-01 15:08:32 -05:00
kbn-axe-config Removing component exceptions from axe-core validation config (#145059) 2023-11-28 18:29:12 -05:00
kbn-babel-preset Update dependency core-js to ^3.37.1 (main) (#187034) 2024-06-27 12:24:33 -05:00
kbn-babel-register [kbn/babel-register] improve cache performance (#150261) 2023-02-06 19:50:42 -07:00
kbn-babel-transform [CI] Log error on fast-async-transform failure (#191012) 2024-08-21 13:59:33 -05:00
kbn-bazel-runner chore(NA): remove a small change to trigger risk-free backport (#160810) 2023-06-28 21:08:33 +01:00
kbn-bfetch-error @kbn/search-errors package (#171563) 2023-12-07 10:39:19 -07:00
kbn-calculate-auto feat(slo): add events chart (#170896) 2023-11-16 15:19:57 -05:00
kbn-calculate-width-from-char-count [Lens][Unified search] Auto expand comboboxes and popovers based on the content (#171573) 2023-11-28 13:13:43 +01:00
kbn-capture-oas-snapshot-cli [Stateful sidenav] Remove Launch Darkly feature flag (#189513) 2024-08-02 07:48:19 -05:00
kbn-cases-components [Cases] Version cases and comment domain and apis (#161954) 2023-07-26 06:09:10 -07:00
kbn-cell-actions [Security Solution] Optimize Cell Actions extra render (#186282) 2024-06-17 16:07:43 +02:00
kbn-chart-icons [Lens] Replace expression_gauge from Goal to Bullet (#177766) 2024-03-26 08:42:13 -07:00
kbn-check-mappings-update-cli [Fleet] Use multiple saved object type for agent and package policies with opt-in migration (#189387) 2024-08-14 17:22:01 -04:00
kbn-ci-stats-core
kbn-ci-stats-performance-metrics
kbn-ci-stats-reporter [Ops] Upgrade to axios 1.4 (#163732) 2023-08-22 11:47:48 +02:00
kbn-ci-stats-shipper-cli [ci-stats] move shipper to a package, validate limits in on-merge job (#149474) 2023-01-25 08:20:40 -07:00
kbn-cli-dev-mode Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-code-owners Add script to check test file code ownership (#173411) 2023-12-18 17:41:39 +01:00
kbn-coloring Add explicit children types (#181257) 2024-04-29 16:56:41 +01:00
kbn-config [Config] Fix handling of splittable subkeys when processing values (#190590) 2024-08-15 15:47:36 +02:00
kbn-config-mocks [Config Service] Ignore unknown config on Serverless (#187006) 2024-07-01 12:32:22 -05:00
kbn-config-schema [Response Ops][Alerting] Adding new value to warning reasons enum schema in rule saved object (#190743) 2024-08-21 10:17:29 -04:00
kbn-content-management-utils Minimize shared-common everywhere (#188606) 2024-07-29 12:47:46 -06:00
kbn-crypto [osquery] Setup E2E against Serverless ES, Kibana, Fleet server standalone and Elastic agents in Docker (#165415) 2023-09-29 03:33:06 -07:00
kbn-crypto-browser Add @kbn/crypto-browser to ui-shared-deps (#187740) 2024-07-09 17:56:58 +02:00
kbn-custom-icons [Logs Explorer] Add resource column with tooltip (#175287) 2024-01-26 02:36:36 -07:00
kbn-custom-integrations Minimize shared-common everywhere (#188606) 2024-07-29 12:47:46 -06:00
kbn-cypress-config Revert "Upgrade EUI to v88.3.0 (#166292)" 2023-09-18 18:37:13 -05:00
kbn-data-service Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-data-stream-adapter Bump @elastic/elasticsearch to 8.14.0 (reloaded) (#186848) 2024-06-26 08:29:15 -07:00
kbn-data-view-utils [ES|QL] Support counter fields (#186292) 2024-07-09 12:32:48 +02:00
kbn-datemath [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-dev-cli-errors
kbn-dev-cli-runner Context for tooling logs (#190766) 2024-08-21 20:47:29 +02:00
kbn-dev-proc-runner Use rxjs instead of rxjs/operators (#179553) 2024-04-02 11:41:33 -07:00
kbn-dev-utils [OAS] Capture and commit serverless bundle (#184915) 2024-06-10 03:48:10 -07:00
kbn-discover-utils [Discover][UnifiedDataTable] Copy selected rows as text (#189512) 2024-08-12 15:21:26 +02:00
kbn-doc-links [ES|QL] Adds a help menu popover (#190579) 2024-08-19 16:33:57 -05:00
kbn-docs-utils [Move @kbn/config-schema to server] @kbn/apm-config-loader (#189521) 2024-07-31 08:52:51 +02:00
kbn-dom-drag-drop Add explicit children types (#181257) 2024-04-29 16:56:41 +01:00
kbn-ebt-tools [StdPerf] Extending kibana:plugin_render_time with custom metrics (#189115) 2024-08-08 18:09:07 +02:00
kbn-elastic-agent-utils fix otel service detection (#180574) 2024-04-22 04:39:47 -07:00
kbn-es Changing load/dump in source files (#190641) 2024-08-21 07:29:36 -04:00
kbn-es-archiver Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-es-errors Implement elasticsearch.maxResponseSize config option (#186291) 2024-06-19 11:04:33 +02:00
kbn-es-query chore(NA): upgrade typescript into v5.1.6 (#186437) 2024-07-29 16:31:04 +01:00
kbn-es-types [ES|QL] Enabling the timepicker for indices without the @timestamp field (#184361) 2024-07-17 16:23:16 -07:00
kbn-eslint-config Changing load/dump in source files (#190641) 2024-08-21 07:29:36 -04:00
kbn-eslint-plugin-disable Clean up imports of ESLint types (#162436) 2023-07-25 10:09:55 +02:00
kbn-eslint-plugin-eslint Changing load/dump in source files (#190641) 2024-08-21 07:29:36 -04:00
kbn-eslint-plugin-i18n chore(NA): upgrade typescript into v5.1.6 (#186437) 2024-07-29 16:31:04 +01:00
kbn-eslint-plugin-imports [i18n][system upgrade] Upgrade Intl Packages from v2 to v6 (#179506) 2024-06-02 16:50:33 +03:00
kbn-eslint-plugin-telemetry chore(NA): upgrade typescript into v5.1.6 (#186437) 2024-07-29 16:31:04 +01:00
kbn-esql-ast [ES|QL] Correctly parse source nodes (#190941) 2024-08-22 15:35:14 +02:00
kbn-esql-utils [ES|QL] Adds the limit information to the editor footer (#190498) 2024-08-16 15:47:56 -05:00
kbn-esql-validation-autocomplete [ES|QL] Update function metadata (#190667) 2024-08-19 13:24:25 -05:00
kbn-event-annotation-common [SLOs] Annotations Initial phase (#184325) 2024-07-16 07:28:02 +02:00
kbn-event-annotation-components [Lens] Fix reference line width stale update (#184414) 2024-06-05 10:07:13 +02:00
kbn-expandable-flyout [Security Solutioin][Expandable flyout] Fix preview flashing when going back (#188703) 2024-07-20 01:47:18 +10:00
kbn-expect Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-failed-test-reporter-cli [CI] Display command on failure page (#186999) 2024-07-02 11:45:46 +02:00
kbn-field-types [ES|QL] Support counter fields (#186292) 2024-07-09 12:32:48 +02:00
kbn-field-utils [Discover] Don't truncate long field descriptions if user expanded them previously (#188841) 2024-07-24 08:52:13 +02:00
kbn-find-used-node-modules [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-flot-charts Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-formatters [Dataset quality] Implement Summary Panel (#175994) 2024-02-13 14:41:32 +02:00
kbn-ftr-common-functional-services [FTR] [deployment agnostic tests] move saml roles setup to kbn/es (#190489) 2024-08-15 15:52:02 +02:00
kbn-ftr-common-functional-ui-services Added disable-component-update flag (#189406) 2024-07-31 10:18:33 +02:00
kbn-ftr-screenshot-filename [codeowners] add appex-qa for ftr-related packages (#155230) 2023-05-24 08:53:09 +02:00
kbn-generate Remove kibana-design from the ultimate rule for scss files. (#157493) 2023-05-12 10:01:47 -05:00
kbn-generate-console-definitions Rename Management team name in codeowners file (#178626) 2024-03-18 15:46:31 +00:00
kbn-generate-csv Improve SearchSource SearchRequest type (#186862) 2024-07-23 11:28:38 -07:00
kbn-get-repo-files [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-grid-layout [Dashboard] New layout engine (#174132) 2024-08-15 17:51:43 -04:00
kbn-grouping [ResponseOps][Alerts] Implement platform alerts grouping components (#184635) 2024-07-08 19:23:49 +02:00
kbn-guided-onboarding Minimize shared-common everywhere (#188606) 2024-07-29 12:47:46 -06:00
kbn-handlebars Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-hapi-mocks Add httpVersion and protocol fields to KibanaRequest (#183725) 2024-05-21 04:17:44 -07:00
kbn-health-gateway-server [Kibana logging system] Add conditional evaluation based on level for logging APIs (#187225) 2024-07-08 23:53:02 +10:00
kbn-i18n [i18n] remove Object.freeze in initTranslations (#188813) 2024-07-23 09:57:32 +02:00
kbn-i18n-react [i18n][system upgrade] Upgrade Intl Packages from v2 to v6 (#179506) 2024-06-02 16:50:33 +03:00
kbn-import-locator [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-import-resolver Fix @kbn/import-resolver detection of nested node_modules (#162391) 2023-07-25 10:09:05 +02:00
kbn-interpreter Fix eslint rule for restricting certain lodash imports (#151023) 2023-02-16 08:35:09 -07:00
kbn-investigation-shared feat(rca): items management api (#190852) 2024-08-21 15:34:33 -05:00
kbn-io-ts-utils chore(investigate): Add investigate-app plugin from poc (#188122) 2024-07-23 11:44:32 -04:00
kbn-ipynb [Search] Renaming the search frontend group (#184565) 2024-06-03 13:14:49 -07:00
kbn-jest-serializers
kbn-journeys [journeys] Change page screeshots on steps (#188332) 2024-07-17 10:04:14 +02:00
kbn-json-ast [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-kibana-manifest-schema implement "plugin" package type (#149370) 2023-01-30 10:47:53 -07:00
kbn-language-documentation-popover [ES|QL] Increase discoverability (#188898) 2024-08-05 17:40:06 +02:00
kbn-lens-embeddable-utils [AI Assistant] Add to dashboard (#179329) 2024-07-09 09:31:54 +02:00
kbn-lens-formula-docs [Lens] Update time_range() function with an additional example (#179408) 2024-03-26 15:16:25 +01:00
kbn-lint-packages-cli [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-lint-ts-projects-cli [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-logging [Kibana logging system] Add conditional evaluation based on level for logging APIs (#187225) 2024-07-08 23:53:02 +10:00
kbn-logging-mocks [Kibana logging system] Add conditional evaluation based on level for logging APIs (#187225) 2024-07-08 23:53:02 +10:00
kbn-managed-content-badge [Dashboard] Interactive Managed Dashboard Popover vs badge (#189404) 2024-08-21 10:41:36 -05:00
kbn-managed-vscode-config Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-managed-vscode-config-cli Upgrade prettier dependencies (#188032) 2024-07-24 17:29:05 +01:00
kbn-management Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-mapbox-gl [maps] fix layer shows no data instead of error (#170084) 2023-11-06 17:00:15 -07:00
kbn-mock-idp-plugin Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-mock-idp-utils [mock-idp-plugin] add end-point to fetch roles from yml (#175439) 2024-01-26 13:37:16 -07:00
kbn-monaco [Console] Fix the end range of selected requests (#189747) 2024-08-20 14:16:00 +02:00
kbn-object-versioning [Content Management] Server side client (#175968) 2024-02-05 04:37:32 -07:00
kbn-openapi-bundler Changing load/dump in source files (#190641) 2024-08-21 07:29:36 -04:00
kbn-openapi-common Import zod from @kbn/zod and add an eslint rule (#190581) 2024-08-21 04:14:55 -05:00
kbn-openapi-generator Import zod from @kbn/zod and add an eslint rule (#190581) 2024-08-21 04:14:55 -05:00
kbn-optimizer [Search] Search assistant plugin setup (#190633) 2024-08-22 06:27:33 -05:00
kbn-optimizer-webpack-helpers
kbn-osquery-io-ts-types [EDR Workflows] Osquery Timeout (#169925) 2023-11-15 05:37:11 -07:00
kbn-panel-loader [Dashboard] UI Refresh (#178139) 2024-03-26 11:55:16 -07:00
kbn-peggy
kbn-peggy-loader
kbn-performance-testing-dataset-extractor [kbn-journeys] add synthtrace support (#178599) 2024-03-18 16:42:45 -07:00
kbn-picomatcher
kbn-plugin-check [Move @kbn/config-schema to server] @kbn/apm-config-loader (#189521) 2024-07-31 08:52:51 +02:00
kbn-plugin-generator @kbn/plugin-generator minor cleanup (#189059) 2024-07-26 09:39:31 +02:00
kbn-plugin-helpers [Move @kbn/config-schema to server] @kbn/optimizer (#189769) 2024-08-02 13:04:23 -05:00
kbn-profiling-utils Profiling: Add color for .NET (#181126) 2024-04-26 12:02:58 +02:00
kbn-react-field Add treeshake to react-field package (#184506) 2024-06-04 16:22:49 +02:00
kbn-react-hooks [Infra][Logs Explorer] Factor out shared custom hook into a package (#182336) 2024-05-06 16:17:39 +02:00
kbn-recently-accessed [TableListView] Dashboard listing recently viewed sorting (#187564) 2024-07-09 16:38:56 +02:00
kbn-repo-file-maps [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-repo-info Add build_date to kbn:api/status (#157905) 2023-05-25 10:21:47 -07:00
kbn-repo-linter chore(NA): upgrade typescript into v5.1.6 (#186437) 2024-07-29 16:31:04 +01:00
kbn-repo-packages Minimize shared-common everywhere (#188606) 2024-07-29 12:47:46 -06:00
kbn-repo-path
kbn-repo-source-classifier Minimize shared-common everywhere (#188606) 2024-07-29 12:47:46 -06:00
kbn-repo-source-classifier-cli [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-reporting [Embeddable Rebuild] [Saved Search] Migrate saved search embeddable to new embeddable framework (#180536) 2024-07-22 15:14:21 -06:00
kbn-resizable-layout Minimize shared-common everywhere (#188606) 2024-07-29 12:47:46 -06:00
kbn-rison
kbn-router-to-openapispec Import zod from @kbn/zod and add an eslint rule (#190581) 2024-08-21 04:14:55 -05:00
kbn-router-utils [Infra] Register kibana locator to link to infras asset details and inventory uis (#181749) 2024-05-13 18:05:33 +02:00
kbn-rrule [RAM] Remove third party RRule library, replace with own timezone-compliant lib (#152873) 2023-07-02 17:03:45 -04:00
kbn-rule-data-utils Upgrade prettier dependencies (#188032) 2024-07-24 17:29:05 +01:00
kbn-safer-lodash-set Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-saved-objects-settings [Content Management] Remove dep from content_management -> saved_object_finder (#155013) 2023-04-17 16:25:58 +02:00
kbn-search-api-panels fix: [ES Serverless home] home page 'Console' button looks like a link (#188518) 2024-08-05 04:11:15 -05:00
kbn-search-connectors [Search] Fix Jira connector DLS (#189781) 2024-08-02 05:48:05 -05:00
kbn-search-errors [search] Make ISearchOptions compatible with DataViewLazy (#183939) 2024-05-23 11:14:36 -07:00
kbn-search-index-documents Minimize shared-common everywhere (#188606) 2024-07-29 12:47:46 -06:00
kbn-search-response-warnings Minimize shared-common everywhere (#188606) 2024-07-29 12:47:46 -06:00
kbn-search-types [search] Make ISearchOptions compatible with DataViewLazy (#183939) 2024-05-23 11:14:36 -07:00
kbn-security-hardening Harden console functions (#171367) 2024-02-09 09:13:52 -05:00
kbn-securitysolution-autocomplete Upgrade EUI to v95.7.0 (#190346) 2024-08-14 12:35:08 -05:00
kbn-securitysolution-ecs Fix Alert exception flyout don't open for ESQL alerts (#184389) 2024-05-30 09:22:52 -07:00
kbn-securitysolution-endpoint-exceptions-common Import zod from @kbn/zod and add an eslint rule (#190581) 2024-08-21 04:14:55 -05:00
kbn-securitysolution-es-utils Import zod from @kbn/zod and add an eslint rule (#190581) 2024-08-21 04:14:55 -05:00
kbn-securitysolution-exception-list-components Upgrade EUI to v95.1.0 (#186324) 2024-06-21 09:10:58 -07:00
kbn-securitysolution-exceptions-common Import zod from @kbn/zod and add an eslint rule (#190581) 2024-08-21 04:14:55 -05:00
kbn-securitysolution-hook-utils flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-securitysolution-io-ts-alerting-types [Security Solution] Remove @ts-expect-error from v4.9.5 upgrade in Detection and Response areas (#179273) 2024-03-27 05:01:53 -07:00
kbn-securitysolution-io-ts-list-types [Security Solution] Add missing Exceptions API OpenAPI specifications (#185951) 2024-07-15 13:12:56 +02:00
kbn-securitysolution-io-ts-types flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-securitysolution-io-ts-utils flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-securitysolution-list-api Value lists modal window (#179339) 2024-04-15 19:45:52 +02:00
kbn-securitysolution-list-constants [Security Solution][Detection Engine] move lists to data stream (#162508) 2023-08-23 19:42:57 +01:00
kbn-securitysolution-list-hooks Value lists modal window (#179339) 2024-04-15 19:45:52 +02:00
kbn-securitysolution-list-utils [Bug][Security Solution][Endpoint Exceptions] Wildcard warning callout shows properly with OR condition (#188610) 2024-07-19 02:23:34 +10:00
kbn-securitysolution-lists-common Import zod from @kbn/zod and add an eslint rule (#190581) 2024-08-21 04:14:55 -05:00
kbn-securitysolution-rules [Security Solution][Detection Engine] adds ES|QL rule type to Security Detections rules (#165450) 2023-09-30 09:45:34 +01:00
kbn-securitysolution-t-grid Upgrade EUI to v86.0.0 (#163088) 2023-08-14 15:45:09 -05:00
kbn-securitysolution-utils [Security Solution] Use AST utils from @kbn/esql-ast for ES|QL rule type query parsing (#9282) (#189780) 2024-08-07 20:27:57 +02:00
kbn-server-http-tools Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-server-route-repository [kbn/server-route-repository] Add zod support (#190244) 2024-08-14 18:00:07 +02:00
kbn-server-route-repository-client [kbn/server-route-repository] Add createRepositoryClient function (#189764) 2024-08-09 16:45:01 +02:00
kbn-server-route-repository-utils [kbn/server-route-repository] Add zod support (#190244) 2024-08-14 18:00:07 +02:00
kbn-set-map [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-shared-svg [APM] Logs only service details view (#187221) 2024-07-04 14:20:49 +03:00
kbn-shared-ux-utility Minimize shared-common everywhere (#188606) 2024-07-29 12:47:46 -06:00
kbn-some-dev-log
kbn-sort-package-json
kbn-sort-predicates [Lens] Fix table sorting on time picker interval change (#182173) 2024-04-30 22:04:29 -07:00
kbn-spec-to-console Rename Management team name in codeowners file (#178626) 2024-03-18 15:46:31 +00:00
kbn-std Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-stdio-dev-helpers
kbn-storybook [Storybook][i18n] initialize i18n with english locale (#185033) 2024-06-07 12:44:37 -07:00
kbn-telemetry-tools chore(NA): upgrade typescript into v5.1.6 (#186437) 2024-07-29 16:31:04 +01:00
kbn-test [FTR] [deployment agnostic tests] move saml roles setup to kbn/es (#190489) 2024-08-15 15:52:02 +02:00
kbn-test-eui-helpers [Lens] Metric style options improvements (#186929) 2024-07-09 11:40:29 +02:00
kbn-test-jest-helpers [i18n][system upgrade] Upgrade Intl Packages from v2 to v6 (#179506) 2024-06-02 16:50:33 +03:00
kbn-test-subj-selector [FTR] add dataViews service (#180066) 2024-04-10 16:33:00 +02:00
kbn-text-based-editor [ES|QL] Adds the limit information to the editor footer (#190498) 2024-08-16 15:47:56 -05:00
kbn-timelion-grammar
kbn-timerange [Dataset quality] Degraded docs insights in flyout (#176912) 2024-02-22 11:20:47 +01:00
kbn-tinymath Remove eslint-plugin-prefer-object-spread dependency (#162439) 2023-07-25 10:04:44 +02:00
kbn-tooling-log Context for tooling logs (#190766) 2024-08-21 20:47:29 +02:00
kbn-triggers-actions-ui-types Upgrade prettier dependencies (#188032) 2024-07-24 17:29:05 +01:00
kbn-try-in-console [Search] update copy for try in console button, to Run in Console (#190412) 2024-08-13 16:19:59 -05:00
kbn-ts-projects [Synthetics/Uptime] Separate e2e tests by app (#152197) 2023-06-07 17:33:56 +02:00
kbn-ts-type-check-cli Fix typecheck foundations (#167060) 2023-09-25 16:28:56 -07:00
kbn-typed-react-router-config [APM] Add memoization to hooks consumed on service inventory page (#173973) 2024-01-12 09:57:03 -07:00
kbn-ui-actions-browser Redesign the "Add Panel" Experience (#183764) 2024-06-26 13:55:28 -07:00
kbn-ui-shared-deps-npm [Lens] [Unified Search] [Dashboards] [Maps] fuzzy search for field pickers and field lists (#186894) 2024-07-10 17:48:25 +02:00
kbn-ui-shared-deps-src [Lens] [Unified Search] [Dashboards] [Maps] fuzzy search for field pickers and field lists (#186894) 2024-07-10 17:48:25 +02:00
kbn-ui-theme Implement system option for theme:darkMode uiSetting (#173044) 2024-02-20 06:48:58 -07:00
kbn-unified-data-table [Discover] [Unified Data Table] Improve absolute column width handling (#190288) 2024-08-20 17:27:13 -03:00
kbn-unified-doc-viewer [OneDiscover][UnifiedDocViewer] Add dedicated column for Pinning/Unpinning rows (#190344) 2024-08-19 09:06:54 -05:00
kbn-unified-field-list Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-unsaved-changes-badge App menu bar tweaks (#189998) 2024-08-12 08:39:43 -07:00
kbn-unsaved-changes-prompt Minimize shared-common everywhere (#188606) 2024-07-29 12:47:46 -06:00
kbn-use-tracked-promise Update new codeowners for Obs team changes (#170182) 2023-11-08 14:30:17 +00:00
kbn-user-profile-components chore(NA): upgrade typescript into v5.1.6 (#186437) 2024-07-29 16:31:04 +01:00
kbn-utility-types chore(NA): upgrade typescript into v4.9.5 (#175178) 2024-02-25 01:23:57 +00:00
kbn-utility-types-jest [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-utils Upgrade Node.js to 20.11.1 (#177042) 2024-02-20 14:01:23 -06:00
kbn-validate-next-docs-cli [validate-next-docs] declare how github urls are determined 2023-02-10 10:54:20 -06:00
kbn-visualization-ui-components [Unified field list] debounce search (#187143) 2024-07-06 14:47:26 +02:00
kbn-visualization-utils [Unified field list] debounce search (#187143) 2024-07-06 14:47:26 +02:00
kbn-web-worker-stub
kbn-whereis-pkg-cli [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-xstate-utils [Logs+] Refactor state and URL persistence of Log Explorer (#170200) 2023-12-11 14:56:44 +01:00
kbn-yarn-lock-validator [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-zod [HTTP/OAS] zod support (#186190) 2024-07-20 01:53:32 +10:00
kbn-zod-helpers Import zod from @kbn/zod and add an eslint rule (#190581) 2024-08-21 04:14:55 -05:00
presentation Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
react Minimize shared-common everywhere (#188606) 2024-07-29 12:47:46 -06:00
response-ops/feature_flag_service Upgrade prettier dependencies (#188032) 2024-07-24 17:29:05 +01:00
serverless [Obs AI Assistant] Add settings to serverless allowlist (#190098) 2024-08-08 10:26:21 -04:00
shared-ux [SharedUX] Resolve Sass Mixed Declaration issues (#191033) 2024-08-21 19:20:54 -05:00
README.md

Kibana-related packages

This folder contains packages that are intended for use in Kibana and Kibana plugins.

tl;dr:

  • Don't publish to npm registry
  • Always use the @kbn namespace
  • Always set "private": true in package.json

Using these packages

We no longer publish these packages to the npm registry. Now, instead of specifying a version when including these packages, we rely on yarn workspaces, which sets up a symlink to the package.

For example if you want to use the @kbn/i18n package in Kibana itself, you can specify the dependency like this:

"@kbn/i18n": "1.0.0"

However, if you want to use this from a Kibana plugin, you need to use a link: dependency and account for the relative location of the Kibana repo, so it would instead be:

"@kbn/i18n": "link:../../kibana/packages/kbn-i18n"

then run yarn kbn bootstrap from the plugin directory.

Creating a new package

Run the following command from the root of the Kibana repo:

node scripts/generate package @kbn/<PACKAGE_NAME> --web --owner @elastic/<TEAM_NAME>

Unit tests for a package

Currently there is only one tool being used in order to test packages which is Jest. Below we will explain how it should be done.

Jest

A package should follow the pattern of having .test.js files as siblings of the source code files, and these run by Jest.

A package using the .test.js naming convention will have those tests automatically picked up by Jest and run by the unit test runner, currently mapped to the Kibana test script in the root package.json.

  • yarn test runs all unit tests.
  • yarn jest runs all Jest tests in Kibana.

In order for the plugin or package to use Jest, a jest.config.js file must be present in it's root. However, there are safeguards for this in CI should a test file be added without a corresponding config file.


Each package can also specify its own test script in the package's package.json, for cases where you'd prefer to run the tests from the local package directory.