kibana/packages
Drew Tate a325234c5b
[8.14] [ES|QL] Add date_diff (#182513) (#182718)
# Backport

This will backport the following commits from `main` to `8.14`:
- [[ES|QL] Add `date_diff`
(#182513)](https://github.com/elastic/kibana/pull/182513)

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

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

<!--BACKPORT [{"author":{"name":"Drew
Tate","email":"drew.tate@elastic.co"},"sourceCommit":{"committedDate":"2024-05-03T14:29:36Z","message":"[ES|QL]
Add `date_diff` (#182513)\n\n## Summary\r\n\r\nAdds validation and
autocomplete support
for\r\n[`date_diff`](https://www.elastic.co/guide/en/elasticsearch/reference/8.14/esql-functions-operators.html#esql-date_diff).\r\nWhew
— just me or does this get trickier every time? 😅\r\n\r\n## First
param\r\n\r\n### We only suggest the main time unit options\r\n\r\n<img
width=\"910\" alt=\"Screenshot 2024-05-02 at 1 19
32 PM\"\r\nsrc=\"ecf7f602-0934-4f2c-8c38-df7cdbd9da28\">\r\n\r\n\r\n###
But the validator accepts all the options including
abbreviations\r\n\r\n<img width=\"897\" alt=\"Screenshot 2024-05-02 at 1
42
19 PM\"\r\nsrc=\"7a523a8e-a1a4-4abc-b318-a2d2a0ddf11c\">\r\n\r\n###
But still warns if it's a totally funky value\r\n\r\n<img width=\"782\"
alt=\"Screenshot 2024-05-02 at 1 19
17 PM\"\r\nsrc=\"ff8955d9-e7a2-4e7a-b64c-aad2ba2aee0e\">\r\n\r\n###
And it does accept string fields\r\n\r\n<img width=\"918\"
alt=\"Screenshot 2024-05-02 at 1 39
57 PM\"\r\nsrc=\"b76a4343-a88a-44e0-8324-54cad4d3b53d\">\r\n\r\n##
Second and third params\r\n\r\n### We suggest date-based fields and
functions\r\n \r\n<img width=\"955\" alt=\"Screenshot 2024-05-02 at 1 51
14 PM\"\r\nsrc=\"39927314-b93e-4289-9d14-aecbaab644d9\">\r\n\r\n###
But date strings are also 👍 because of auto-casting\r\n\r\n<img
width=\"844\" alt=\"Screenshot 2024-05-02 at 1 51
47 PM\"\r\nsrc=\"1d826fa4-5604-453f-95fe-a03612a9c4cf\">\r\n\r\n###
But string fields are 👎 \r\n\r\n<img width=\"872\" alt=\"Screenshot
2024-05-02 at 1 52
13 PM\"\r\nsrc=\"4f7f3220-ccd3-4592-b034-579a31f0c88c\">\r\n\r\n\r\n\r\n##
Checklist\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","sha":"df0949469a4a4142692204153b69b728b6969ce5","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:prev-minor","Feature:ES|QL","v8.14.0","Team:ESQL","v8.15.0"],"number":182513,"url":"https://github.com/elastic/kibana/pull/182513","mergeCommit":{"message":"[ES|QL]
Add `date_diff` (#182513)\n\n## Summary\r\n\r\nAdds validation and
autocomplete support
for\r\n[`date_diff`](https://www.elastic.co/guide/en/elasticsearch/reference/8.14/esql-functions-operators.html#esql-date_diff).\r\nWhew
— just me or does this get trickier every time? 😅\r\n\r\n## First
param\r\n\r\n### We only suggest the main time unit options\r\n\r\n<img
width=\"910\" alt=\"Screenshot 2024-05-02 at 1 19
32 PM\"\r\nsrc=\"ecf7f602-0934-4f2c-8c38-df7cdbd9da28\">\r\n\r\n\r\n###
But the validator accepts all the options including
abbreviations\r\n\r\n<img width=\"897\" alt=\"Screenshot 2024-05-02 at 1
42
19 PM\"\r\nsrc=\"7a523a8e-a1a4-4abc-b318-a2d2a0ddf11c\">\r\n\r\n###
But still warns if it's a totally funky value\r\n\r\n<img width=\"782\"
alt=\"Screenshot 2024-05-02 at 1 19
17 PM\"\r\nsrc=\"ff8955d9-e7a2-4e7a-b64c-aad2ba2aee0e\">\r\n\r\n###
And it does accept string fields\r\n\r\n<img width=\"918\"
alt=\"Screenshot 2024-05-02 at 1 39
57 PM\"\r\nsrc=\"b76a4343-a88a-44e0-8324-54cad4d3b53d\">\r\n\r\n##
Second and third params\r\n\r\n### We suggest date-based fields and
functions\r\n \r\n<img width=\"955\" alt=\"Screenshot 2024-05-02 at 1 51
14 PM\"\r\nsrc=\"39927314-b93e-4289-9d14-aecbaab644d9\">\r\n\r\n###
But date strings are also 👍 because of auto-casting\r\n\r\n<img
width=\"844\" alt=\"Screenshot 2024-05-02 at 1 51
47 PM\"\r\nsrc=\"1d826fa4-5604-453f-95fe-a03612a9c4cf\">\r\n\r\n###
But string fields are 👎 \r\n\r\n<img width=\"872\" alt=\"Screenshot
2024-05-02 at 1 52
13 PM\"\r\nsrc=\"4f7f3220-ccd3-4592-b034-579a31f0c88c\">\r\n\r\n\r\n\r\n##
Checklist\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","sha":"df0949469a4a4142692204153b69b728b6969ce5"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","labelRegex":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/182513","number":182513,"mergeCommit":{"message":"[ES|QL]
Add `date_diff` (#182513)\n\n## Summary\r\n\r\nAdds validation and
autocomplete support
for\r\n[`date_diff`](https://www.elastic.co/guide/en/elasticsearch/reference/8.14/esql-functions-operators.html#esql-date_diff).\r\nWhew
— just me or does this get trickier every time? 😅\r\n\r\n## First
param\r\n\r\n### We only suggest the main time unit options\r\n\r\n<img
width=\"910\" alt=\"Screenshot 2024-05-02 at 1 19
32 PM\"\r\nsrc=\"ecf7f602-0934-4f2c-8c38-df7cdbd9da28\">\r\n\r\n\r\n###
But the validator accepts all the options including
abbreviations\r\n\r\n<img width=\"897\" alt=\"Screenshot 2024-05-02 at 1
42
19 PM\"\r\nsrc=\"7a523a8e-a1a4-4abc-b318-a2d2a0ddf11c\">\r\n\r\n###
But still warns if it's a totally funky value\r\n\r\n<img width=\"782\"
alt=\"Screenshot 2024-05-02 at 1 19
17 PM\"\r\nsrc=\"ff8955d9-e7a2-4e7a-b64c-aad2ba2aee0e\">\r\n\r\n###
And it does accept string fields\r\n\r\n<img width=\"918\"
alt=\"Screenshot 2024-05-02 at 1 39
57 PM\"\r\nsrc=\"b76a4343-a88a-44e0-8324-54cad4d3b53d\">\r\n\r\n##
Second and third params\r\n\r\n### We suggest date-based fields and
functions\r\n \r\n<img width=\"955\" alt=\"Screenshot 2024-05-02 at 1 51
14 PM\"\r\nsrc=\"39927314-b93e-4289-9d14-aecbaab644d9\">\r\n\r\n###
But date strings are also 👍 because of auto-casting\r\n\r\n<img
width=\"844\" alt=\"Screenshot 2024-05-02 at 1 51
47 PM\"\r\nsrc=\"1d826fa4-5604-453f-95fe-a03612a9c4cf\">\r\n\r\n###
But string fields are 👎 \r\n\r\n<img width=\"872\" alt=\"Screenshot
2024-05-02 at 1 52
13 PM\"\r\nsrc=\"4f7f3220-ccd3-4592-b034-579a31f0c88c\">\r\n\r\n\r\n\r\n##
Checklist\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","sha":"df0949469a4a4142692204153b69b728b6969ce5"}}]}]
BACKPORT-->
2024-05-07 07:36:02 +02:00
..
analytics Use rxjs instead of rxjs/operators (#179553) 2024-04-02 11:41:33 -07:00
cloud [Cloud] Rename "Endpoints" to "Connection details" (#171982) 2023-11-27 15:58:42 +00:00
content-management [Managed content] Relax delete restrictions (#179113) 2024-03-25 16:48:46 -05:00
core [8.14] [HTTP/OAS] Lazy response schemas (#181622) (#181949) 2024-04-29 03:43:33 -07:00
deeplinks [8.14] [Serverless] Playground in Serverless (#181474) (#181988) 2024-04-29 08:23:17 -07:00
default-nav Rename Management team name in codeowners file (#178626) 2024-03-18 15:46:31 +00:00
home Fix how sample data test install state is determined in test (#178529) 2024-03-12 12:16:13 -07:00
kbn-ace Rename Management team name in codeowners file (#178626) 2024-03-18 15:46:31 +00:00
kbn-actions-types [RAM][Maintenance Window] Maintenance window scoped query frontend changes (#171949) 2023-12-04 15:18:33 -08:00
kbn-alerting-types [RAM] Add fields table to rule details page alert flyout (#172830) 2024-01-08 16:52:04 +01:00
kbn-alerts-as-data-utils [ObsAssistant] Add Insights component to alerts details (#178330) 2024-04-04 03:35:37 -07:00
kbn-alerts-ui-shared [8.14] [MGMTEX] Fix rules order in create rule modal (#181743) (#181830) 2024-04-26 06:34:28 -07:00
kbn-ambient-common-types Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
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 Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-ambient-ui-types Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-analytics flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-apm-config-loader Revert "deepmerge in merging apm-configuration (#179048)" (#180005) 2024-04-04 13:02:48 -07:00
kbn-apm-data-view [UX/Maps] Fixing APM data view id (#179257) 2024-03-28 12:14:32 +00:00
kbn-apm-synthtrace [8.14] [Infra][APM] Fix uptime links display condition in Infra and APM (#181425) (#181973) 2024-04-29 08:16:46 -07:00
kbn-apm-synthtrace-client [8.14] [Infra][APM] Fix uptime links display condition in Infra and APM (#181425) (#181973) 2024-04-29 08:16:46 -07:00
kbn-apm-utils Update new codeowners for Obs team changes (#170182) 2023-11-08 14:30:17 +00:00
kbn-axe-config Removing component exceptions from axe-core validation config (#145059) 2023-11-28 18:29:12 -05:00
kbn-babel-preset Enable TS decorators (#178873) 2024-03-20 12:02:41 +01:00
kbn-babel-register [kbn/babel-register] improve cache performance (#150261) 2023-02-06 19:50:42 -07:00
kbn-babel-transform [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06: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-cases-components [Cases] Version cases and comment domain and apis (#161954) 2023-07-26 06:09:10 -07:00
kbn-cell-actions [8.14] [SecuritySolution] Add &quot;exist filter&quot; when value count is filtered in Lens cell action (#181151) (#181534) 2024-04-24 04:06:58 -07: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 [SLO] Implement federated views (#178050) 2024-04-16 09:15:51 -04:00
kbn-ci-stats-core Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-ci-stats-performance-metrics Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
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 Use rxjs instead of rxjs/operators (#179553) 2024-04-02 11:41:33 -07:00
kbn-code-owners Add script to check test file code ownership (#173411) 2023-12-18 17:41:39 +01:00
kbn-coloring [Lens][color mapping] hide single color picker in loop mode (#176564) 2024-02-09 15:26:30 +01:00
kbn-config Minimize use of cliArgs.serverless (#179925) 2024-04-03 07:27:34 -07:00
kbn-config-mocks [On-Week] Hot update of APM/EBT labels (#157093) 2023-08-31 14:36:20 +02:00
kbn-config-schema [8.14] [HTTP/OAS] Lazy response schemas (#181622) (#181949) 2024-04-29 03:43:33 -07:00
kbn-content-management-utils Migrate visualization, annotation, graph to saved_object_content_storage (#168520) 2023-10-13 21:57:26 -05: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 flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-custom-icons [Logs Explorer] Add resource column with tooltip (#175287) 2024-01-26 02:36:36 -07:00
kbn-custom-integrations flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-cypress-config Revert "Upgrade EUI to v88.3.0 (#166292)" 2023-09-18 18:37:13 -05:00
kbn-data-service [UnifiedFieldList] Convert from a plugin into a package (#158718) 2023-06-23 14:28:12 +02:00
kbn-data-stream-adapter [DataStreamAdapter] Remove alerts-as-data package dependency (#178127) 2024-03-06 17:51:17 +01:00
kbn-data-view-utils [data views / ES|QL] Set type on esql related data views (#172622) 2024-02-07 11:27:25 -06:00
kbn-datemath [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-dev-cli-errors Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-dev-cli-runner [Ops] Snapshot saved object migrations (#167983) 2023-10-11 09:47:15 +02:00
kbn-dev-proc-runner Use rxjs instead of rxjs/operators (#179553) 2024-04-02 11:41:33 -07:00
kbn-dev-utils Use rxjs instead of rxjs/operators (#179553) 2024-04-02 11:41:33 -07:00
kbn-discover-utils [8.14] [ES|QL] Rename the setting to a more generic one and move to the general section (#182074) (#182252) 2024-05-01 11:16:48 -05:00
kbn-doc-links [8.14] Add ECS version metadata to doc link service (#182192) (#182316) 2024-05-01 17:43:08 -07:00
kbn-docs-utils [dx] Dependency check script for plugins (#171483) 2024-01-17 17:19:41 -05:00
kbn-dom-drag-drop [kbn-dnd-package] Divide draggable and droppable (#177282) 2024-03-21 14:30:14 +01:00
kbn-ebt-tools Add log entry and telemetry info about time Kibana waits for ES during startup (#180765) 2024-04-16 00:46:06 -07:00
kbn-elastic-agent-utils [8.14] fix otel service detection (#180574) (#181298) 2024-04-22 06:10:29 -07:00
kbn-es [Detection Engine][FTR] Audit DE exceptions tests (#179706) 2024-04-02 14:53:08 -07:00
kbn-es-archiver [ES Archiver][Load Action] Add perf option override to cli (#175781) 2024-02-02 14:24:04 +00:00
kbn-es-errors Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-es-query [ES|QL] Bypass no data views screen (#174316) 2024-02-05 15:09:27 +01:00
kbn-es-types [Obs AI Assistant] Remove APM functions, add changes function (#179729) 2024-04-15 08:22:41 -07:00
kbn-eslint-config [8.14] [ES|QL] unskip autocomplete tests (#182273) (#182381) 2024-05-03 13:32:30 -07:00
kbn-eslint-plugin-disable Clean up imports of ESLint types (#162436) 2023-07-25 10:09:55 +02:00
kbn-eslint-plugin-eslint Harden console functions (#171367) 2024-02-09 09:13:52 -05:00
kbn-eslint-plugin-i18n [ESLint i18n] Add FormattedMessage start with the right ID (#180048) 2024-04-05 18:17:01 +02:00
kbn-eslint-plugin-imports [Obs AI Assistant] Use Mocha & Synthtrace (#173993) 2023-12-28 16:13:24 +01:00
kbn-eslint-plugin-telemetry [Moving] Move Observability App folders into /x-pack/observability_solution (#177437) 2024-02-24 13:49:54 +01:00
kbn-esql-ast [8.14] [ES|QL] Retrieve the indices from AST parsing (#181271) (#181794) 2024-04-26 00:21:10 -07:00
kbn-esql-utils [8.14] [ES|QL] Rename the setting to a more generic one and move to the general section (#182074) (#182252) 2024-05-01 11:16:48 -05:00
kbn-esql-validation-autocomplete [8.14] [ES|QL] Add date_diff (#182513) (#182718) 2024-05-07 07:36:02 +02:00
kbn-event-annotation-common [shared-ux] no-data analytics page package code cleanup (#172416) 2023-12-04 13:07:59 -07:00
kbn-event-annotation-components [Lens] fix when a field is selected in the field picker, the user cannot delete it entirely (#180178) 2024-04-12 09:50:28 +02:00
kbn-expandable-flyout [Security Solution] - use expandable flyout in timeline (#177087) 2024-03-25 10:47:23 +01:00
kbn-expect [codeowners] add appex-qa for ftr-related packages (#155230) 2023-05-24 08:53:09 +02:00
kbn-failed-test-reporter-cli [8.14] [failed-test-reporter] Include pipeline in comment (#182576) (#182667) 2024-05-06 06:30:22 -07:00
kbn-field-types [ES|QL] Fixes the mapping of ES fields (#176665) 2024-02-12 17:18:33 +02:00
kbn-field-utils Add semantic_text to index mapping (#179575) 2024-04-04 09:03:10 -07:00
kbn-find-used-node-modules [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-flot-charts Fix useless regex escapes (#150043) 2023-02-07 09:58:47 -07:00
kbn-formatters [Dataset quality] Implement Summary Panel (#175994) 2024-02-13 14:41:32 +02:00
kbn-ftr-common-functional-services [kbn-ftr-common-functional-services] extend retry service (#178660) 2024-03-19 16:32:59 +01:00
kbn-ftr-common-functional-ui-services [FTR] Update getAttribute method return (#179715) 2024-04-10 10:28:03 -07: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 [ES|QL] Runs the _query requests with the version (#180248) 2024-04-09 17:39:08 +02:00
kbn-get-repo-files [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-guided-onboarding [Onboarding] Remove usage of deprecated React rendering utilities (#180515) 2024-04-15 10:26:54 -07:00
kbn-handlebars Adding check to escape pushes to output in kbn-handlebars (#175490) 2024-01-29 12:02:20 -05:00
kbn-hapi-mocks [HTTP] Allow for internal requests to also specify special query param elasticInternalOrigin (#163796) 2023-08-21 11:55:33 +02:00
kbn-health-gateway-server Add http.payloadTimeout config option (#177309) 2024-02-22 12:33:49 +01:00
kbn-i18n [Lens] Move formula docs into separate package (#173770) 2024-01-02 16:02:46 +02:00
kbn-i18n-react Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06: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-io-ts-utils chore(NA): upgrade typescript into v4.9.5 (#175178) 2024-02-25 01:23:57 +00:00
kbn-ipynb [Search] Introduced Notebooks view for console (#180400) 2024-04-15 11:10:28 -05:00
kbn-jest-serializers Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-journeys [kbn-journeys] wait for charts inside located div (#179360) 2024-03-26 11:07:14 +01: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] Query history design feedback (#180579) 2024-04-14 09:45:32 +02:00
kbn-lens-embeddable-utils [Infra][Lens] Remove fields list from the ad-hoc data view object in lens attributes (#179916) 2024-04-04 12:23:39 +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 replace kbn/ecs with official npm package holding ecs schema (#176128) 2024-02-13 22:03:30 +01:00
kbn-logging-mocks Limit download concurrency for files within Kibana (#168601) 2023-10-30 12:28:11 +01:00
kbn-managed-content-badge [Lens] Prevent overwriting managed content from editor (#175062) 2024-01-24 09:06:05 -06:00
kbn-managed-vscode-config Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-managed-vscode-config-cli Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-management [8.14] [ES|QL] Rename the setting to a more generic one and move to the general section (#182074) (#182252) 2024-05-01 11:16:48 -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 [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07: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 [8.14] [ES|QL] Retrieve the indices from AST parsing (#181271) (#181794) 2024-04-26 00:21:10 -07:00
kbn-object-versioning [Content Management] Server side client (#175968) 2024-02-05 04:37:32 -07:00
kbn-openapi-bundler [Security Solution] OpenAPI docs bundler (#171526) 2023-11-29 14:07:31 +01:00
kbn-openapi-generator [Security Solution] Implement API client code generation for integrational tests (#179074) 2024-03-28 13:32:47 +01:00
kbn-optimizer [Share Modal Redesign] Reporting Refactor Modals (#180009) 2024-04-16 15:01:44 -07:00
kbn-optimizer-webpack-helpers Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
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 Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-peggy-loader Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-performance-testing-dataset-extractor [kbn-journeys] add synthtrace support (#178599) 2024-03-18 16:42:45 -07:00
kbn-picomatcher Implement package linter (#148496) 2023-01-09 16:49:29 -07:00
kbn-plugin-check [dx] Dependency check script for plugins (#171483) 2024-01-17 17:19:41 -05:00
kbn-plugin-generator [8.14] fix(NA): do not change default encoding when using vfs to copy files (#181174) (#181189) 2024-04-18 18:42:55 +01:00
kbn-plugin-helpers [8.14] fix(NA): do not change default encoding when using vfs to copy files (#181174) (#181189) 2024-04-18 18:42:55 +01:00
kbn-profiling-utils [8.14] Profiling: Add color for .NET (#181126) (#182326) 2024-05-02 07:23:05 -07:00
kbn-react-field Add semantic_text to index mapping (#179575) 2024-04-04 09:03:10 -07: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 Implement package linter (#148496) 2023-01-09 16:49:29 -07:00
kbn-repo-packages [Core plugin system] Add dynamic contract resolving (#167113) 2023-10-24 02:32:09 -07:00
kbn-repo-path [packages] prevent and remove basename collisions for js/ts code (#148835) 2023-01-12 12:29:30 -07:00
kbn-repo-source-classifier chore(NA): rename journeys folder into journeys_e2e inside x-pack/performance to correctly classify journey e2e files (#178340) 2024-03-14 21:15:57 +00:00
kbn-repo-source-classifier-cli [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-reporting [Share Modal Redesign] Reporting Refactor Modals (#180009) 2024-04-16 15:01:44 -07:00
kbn-resizable-layout [ResizableLayout] Remove onResizeEnd stable callback workaround (#176030) 2024-02-01 09:46:26 -04:00
kbn-rison [Security Solution] Global query string functionality improvements (#147218) 2023-01-05 18:02:12 +01:00
kbn-router-to-openapispec [8.14] [HTTP/OAS] Lazy response schemas (#181622) (#181949) 2024-04-29 03:43:33 -07:00
kbn-router-utils [Dataset quality] Add Flyout Integration Actions (#179401) 2024-04-02 14:39:51 +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 [OBS-UX-MNGMT] Warn users when change index pattern while rules utilise it. (#180310) 2024-04-16 13:30:32 +02:00
kbn-safer-lodash-set Fix eslint rule for restricting certain lodash imports (#151023) 2023-02-16 08:35:09 -07: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 [Search] Make most plugins optional instead of required (#180394) 2024-04-12 11:38:45 +02:00
kbn-search-connectors [8.14] Populate service type for deleted connectors (#181614) (#182544) 2024-05-03 01:26:03 -07:00
kbn-search-errors [lens] show 'View details' UI action to open clusters inspector tab when request fails (#172971) 2023-12-20 15:12:54 -07:00
kbn-search-index-documents [Search] Typography fixes to get consistency within Web Crawlers and Connectors sections (#175554) 2024-01-26 11:14:07 +01:00
kbn-search-response-warnings replace kbn-es-types.ClusterDetails with estypes.ClusterDetails (#171369) 2024-03-14 09:27:54 -06:00
kbn-security-hardening Harden console functions (#171367) 2024-02-09 09:13:52 -05:00
kbn-securitysolution-autocomplete [Security Solution][Admin][Event Filters] Wildcard warning with IS operator for event filters creation/editing (#178440) 2024-04-16 09:59:02 -07:00
kbn-securitysolution-ecs flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-securitysolution-es-utils [Security Solution] Remove privileges that are not available in serverless from read privileges route (#178580) 2024-03-14 10:29:45 -07:00
kbn-securitysolution-exception-list-components Value lists modal window (#179339) 2024-04-15 19:45:52 +02:00
kbn-securitysolution-grouping [Response Ops] [Alerts table] Cell context alert table performance (#180016) 2024-04-16 19:00:11 +02: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 Value lists modal window (#179339) 2024-04-15 19:45:52 +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 flag packages without side effects (#173351) 2023-12-19 02:46:39 -07: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][Admin][Event Filters] Wildcard warning with IS operator for event filters creation/editing (#178440) 2024-04-16 09:59:02 -07:00
kbn-server-http-tools Add http.payloadTimeout config option (#177309) 2024-02-22 12:33:49 +01:00
kbn-server-route-repository [8.14] Use internal formatErrors (#181065) (#181600) 2024-04-24 10:18:51 -07:00
kbn-set-map [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-shared-svg Update new codeowners for Obs team changes (#170182) 2023-11-08 14:30:17 +00:00
kbn-shared-ux-utility [Shared UX] Extract dynamic utility for lazy loading only (#175422) 2024-01-29 10:56:21 +01:00
kbn-some-dev-log Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-sort-package-json [sort-package-json] always ensure 2-space indent is used 2023-01-10 10:39:48 -07:00
kbn-sort-predicates [8.14] [Lens] Fix table sorting on time picker interval change (#182173) (#182216) 2024-04-30 23:26:43 -07:00
kbn-spec-to-console Rename Management team name in codeowners file (#178626) 2024-03-18 15:46:31 +00:00
kbn-std Use rxjs instead of rxjs/operators (#179553) 2024-04-02 11:41:33 -07:00
kbn-stdio-dev-helpers Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-storybook [8.14] Fix storybook config (#182283) (#182293) 2024-05-01 13:57:13 -07:00
kbn-telemetry-tools chore(NA): upgrade typescript into v4.9.5 (#175178) 2024-02-25 01:23:57 +00:00
kbn-test [Synthetics] Monitor CRUD's public api's (#169928) 2024-04-12 15:10:11 -04:00
kbn-test-eui-helpers [Lens] legend popover style changes (#180354) 2024-04-10 18:28:58 +02:00
kbn-test-jest-helpers [8.14] [a11y] Remove jext-axe and supporting code from kibana (#180694) (#181747) 2024-04-25 11:14:50 -07:00
kbn-test-subj-selector [FTR] add dataViews service (#180066) 2024-04-10 16:33:00 +02:00
kbn-text-based-editor [8.14] [ES|QL] Small changes before GA (#181653) (#181879) 2024-04-26 10:02:17 -07:00
kbn-timelion-grammar Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
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 Use rxjs instead of rxjs/operators (#179553) 2024-04-02 11:41:33 -07:00
kbn-triggers-actions-ui-types [RAM][Maintenance Window] Maintenance window scoped query frontend changes (#171949) 2023-12-04 15:18:33 -08: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 decouple url drilldown action from Embeddable framework (#175930) 2024-02-05 09:33:41 -07:00
kbn-ui-shared-deps-npm Use rxjs instead of rxjs/operators (#179553) 2024-04-02 11:41:33 -07:00
kbn-ui-shared-deps-src [8.14] [ES|QL] Retrieve the indices from AST parsing (#181271) (#181794) 2024-04-26 00:21:10 -07:00
kbn-ui-theme Implement system option for theme:darkMode uiSetting (#173044) 2024-02-20 06:48:58 -07:00
kbn-unified-data-table [8.14] fix: [Security &gt; Discover][KEYBOARD]: Discover data grid cells must show a visible focus halo (#181598) (#181905) 2024-04-26 11:48:28 -07:00
kbn-unified-doc-viewer [ES|QL][UnifiedFieldList] Support field stats for ES|QL query (#178433) 2024-03-22 05:30:04 -07:00
kbn-unified-field-list [8.14] [ES|QL] Fixes comments bugs in Discover and Data Visualizer (#181283) (#181373) 2024-04-23 01:00:55 -07:00
kbn-unsaved-changes-badge Upgrade EUI to v91.0.0 (with backports) (#170716) 2023-12-18 11:15:15 -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 [User Profile] Clean up specific usage of deprecated toMountPoint utility (#180003) 2024-04-04 07:03:48 -07: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 [Lens] fix when a field is selected in the field picker, the user cannot delete it entirely (#180178) 2024-04-12 09:50:28 +02:00
kbn-visualization-utils [Discover] Allow to store the configured ES|QL visualization v3 (#175227) 2024-04-08 16:04:52 +02:00
kbn-web-worker-stub Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
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-helpers flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
presentation [8.14] [Embeddable Rebuild] [Embeddable Rebuild] Provide &#x60;executionContext&#x60; as part of the Dashboard parent API (#180904) (#181458) 2024-04-23 09:43:45 -07:00
react Consolidate shared ux team dev docs (#172966) 2023-12-11 15:20:23 +01:00
serverless [APM][Serverless] Fix missing settings key (#179910) 2024-04-03 17:04:55 +01:00
shared-ux [8.14] Fix markdown table borders to be visible (#180454) (#182501) 2024-05-02 13:06:34 -07:00
solution-nav [8.14] [Security Solution] Fix assistant settings availability for non-superuser role (#182322) (#182528) 2024-05-02 16:03:57 -07:00
README.md create @kbn/ui-actions-browser package (#149202) 2023-01-19 18:28:07 +01:00

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.