kibana/packages
Kibana Machine c589f7437e
[8.3] Removes perlGuide from doc link service (#148803) (#148813)
# Backport

This will backport the following commits from `main` to `8.3`:
- [Removes perlGuide from doc link service
(#148803)](https://github.com/elastic/kibana/pull/148803)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"István Zoltán
Szabó","email":"szabosteve@gmail.com"},"sourceCommit":{"committedDate":"2023-01-12T15:13:14Z","message":"Removes
perlGuide from doc link service
(#148803)","sha":"a82e62f0cd29497a8dbbb5f2f7eff07ed14fbf2e","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:skip","docs","v8.0.2","v8.1.4","v8.2.4","v8.3.4","v8.4.4","v8.7.0","v8.6.1","v8.5.4"],"number":148803,"url":"https://github.com/elastic/kibana/pull/148803","mergeCommit":{"message":"Removes
perlGuide from doc link service
(#148803)","sha":"a82e62f0cd29497a8dbbb5f2f7eff07ed14fbf2e"}},"sourceBranch":"main","suggestedTargetBranches":["8.0","8.1","8.2","8.3","8.4","8.6","8.5"],"targetPullRequestStates":[{"branch":"8.0","label":"v8.0.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.1","label":"v8.1.4","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.2","label":"v8.2.4","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.3","label":"v8.3.4","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.4","label":"v8.4.4","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/148803","number":148803,"mergeCommit":{"message":"Removes
perlGuide from doc link service
(#148803)","sha":"a82e62f0cd29497a8dbbb5f2f7eff07ed14fbf2e"}},{"branch":"8.6","label":"v8.6.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.5","label":"v8.5.4","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: István Zoltán Szabó <szabosteve@gmail.com>
2023-01-13 13:18:49 +00:00
..
analytics [FullStory] Demote the deployment information to setVars instead of setUserVars (#132837) (#133312) 2022-06-01 16:55:38 +00:00
elastic-apm-synthtrace [8.3] [APM] Fix apm e2e tests (#133941) (#134049) 2022-06-09 16:18:06 -07:00
elastic-safer-lodash-set Move contribution declarations to the bottom of LICENSE files (#133502) (#133537) 2022-06-03 09:16:14 -07:00
kbn-ace Use target_web to ensure browser compatibility (#130874) 2022-05-05 21:20:51 +02:00
kbn-aiops-utils [ML] Explain log rate spikes: Move API stream demos to Kibana examples. (#132590) 2022-05-24 16:59:31 +02:00
kbn-alerts [core] remove root index.ts file (#137001) (#137012) 2022-07-22 16:19:16 -07:00
kbn-ambient-storybook-types docs(NA): adding @kbn/ambient-storybook-types into ops docs (#132483) 2022-05-19 00:51:07 +01:00
kbn-ambient-ui-types docs(NA): adding @kbn/ambient-ui-types into ops docs (#132482) 2022-05-18 15:24:19 -07:00
kbn-analytics fix all violations 2022-04-16 01:37:30 -05:00
kbn-apm-config-loader [type-summarizer] enable @kbn/analytics, @kbn/apm-config-loader and @kbn/apm-utils (#128206) 2022-03-22 16:28:49 -06:00
kbn-apm-utils [type-summarizer] enable @kbn/analytics, @kbn/apm-config-loader and @kbn/apm-utils (#128206) 2022-03-22 16:28:49 -06:00
kbn-axe-config [axe-config] extract module to it's own package (#128815) 2022-03-29 15:12:14 -07:00
kbn-babel-plugin-synthetic-packages docs(NA): adds @kbn/babel-plugin-synthentic-packages into ops devdocs (#132512) 2022-05-19 19:28:05 -07:00
kbn-babel-preset Initialize ops documentation section (#132262) 2022-05-17 15:22:38 -05:00
kbn-bazel-packages chore(NA): adds support for bazel packages to live anywhere (#130833) 2022-05-06 00:38:42 +01:00
kbn-bazel-runner [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-ci-stats-core [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-ci-stats-reporter [8.3] [ci-stats] ship buildkiteJobId with metrics and support backfilling (#137123) (#137143) 2022-07-25 21:45:07 -07:00
kbn-cli-dev-mode [Synthetics] Re-enable synthetics e2e tests (#133100) (#133158) 2022-05-30 09:47:34 -07:00
kbn-coloring [Step 3] Cleanup charts plugin (#130132) 2022-04-19 11:47:37 +05:00
kbn-config expose docLinks from ConfigDeprecationContext (#132424) 2022-05-20 11:51:04 +02:00
kbn-config-schema fix all violations 2022-04-16 01:37:30 -05:00
kbn-crypto [ts] enable sourcemaps in summarized types of @kbn/crypto (#126410) 2022-03-04 08:02:02 -06:00
kbn-datemath fix all violations 2022-04-16 01:37:30 -05:00
kbn-dev-cli-errors [@kbn/dev-utils] break out more pieces (#132292) 2022-05-17 11:19:20 -05:00
kbn-dev-cli-runner [@kbn/dev-utils] break out more pieces (#132292) 2022-05-17 11:19:20 -05:00
kbn-dev-proc-runner [@kbn/dev-utils] break out more pieces (#132292) 2022-05-17 11:19:20 -05:00
kbn-dev-utils [@kbn/dev-utils] break out more pieces (#132292) 2022-05-17 11:19:20 -05:00
kbn-doc-links [8.3] Removes perlGuide from doc link service (#148803) (#148813) 2023-01-13 13:18:49 +00:00
kbn-docs-utils [@kbn/dev-utils] break out more pieces (#132292) 2022-05-17 11:19:20 -05:00
kbn-es [8.3] Update simple-git 1.116.0 -> 3.10.0 (#137232) (#137603) 2022-08-02 09:08:17 -04:00
kbn-es-archiver esArchiver datastream support (#132853) (#135139) 2022-06-24 09:29:41 -07:00
kbn-es-query [Unified Search] Fix "Edit as Query DSL" breaks when pasting in entire query DSL (#131906) 2022-05-24 15:22:32 +05:00
kbn-eslint-config [inspector/expressions] remove root-level redirect to common (#136999) (#136997) (#137103) 2022-07-25 11:10:25 -07:00
kbn-eslint-plugin-eslint [eslint/module_migration] add exact option (#137000) (#137011) 2022-07-22 16:09:02 -07:00
kbn-eslint-plugin-imports Initialize ops documentation section (#132262) 2022-05-17 15:22:38 -05:00
kbn-expect Initialize ops documentation section (#132262) 2022-05-17 15:22:38 -05:00
kbn-field-types Adds match_only_text to ES_FIELD_TYPES (#133690) (#133787) 2022-06-07 09:32:58 -07:00
kbn-find-used-node-modules [plugins] use module ids to import across plugins 2022-04-16 01:19:05 -05:00
kbn-flot-charts Tweak Canvas plot renderer (#126862) 2022-03-04 10:00:03 -05:00
kbn-generate [@kbn/dev-utils] break out more pieces (#132292) 2022-05-17 11:19:20 -05:00
kbn-handlebars Move contribution declarations to the bottom of LICENSE files (#133502) (#133537) 2022-06-03 09:16:14 -07:00
kbn-i18n fix all violations 2022-04-16 01:37:30 -05:00
kbn-i18n-react [eslint] add rule for auto-fixing unused imports (#131772) 2022-05-11 11:16:48 -05:00
kbn-import-resolver chore(NA): adds support for bazel packages to live anywhere (#130833) 2022-05-06 00:38:42 +01:00
kbn-interpreter Use target_web to ensure browser compatibility (#130874) 2022-05-05 21:20:51 +02:00
kbn-io-ts-utils Use target_web to ensure browser compatibility (#130874) 2022-05-05 21:20:51 +02:00
kbn-jest-serializers Initialize ops documentation section (#132262) 2022-05-17 15:22:38 -05:00
kbn-kibana-json-schema [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-logging [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-logging-mocks [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-mapbox-gl Use target_web to ensure browser compatibility (#130874) 2022-05-05 21:20:51 +02:00
kbn-monaco [eslint] ensure that all imports are resolvable (#129002) 2022-04-04 15:37:06 -04:00
kbn-optimizer [ci-stats] track size of shareable runtime (#133770) (#133954) 2022-06-08 14:02:51 -07:00
kbn-optimizer-webpack-helpers [ci-stats] track size of shareable runtime (#133770) (#133954) 2022-06-08 14:02:51 -07:00
kbn-performance-testing-dataset-extractor [@kbn/dev-utils] break out more pieces (#132292) 2022-05-17 11:19:20 -05:00
kbn-plugin-discovery [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-plugin-generator [@kbn/dev-utils] break out more pieces (#132292) 2022-05-17 11:19:20 -05:00
kbn-plugin-helpers [@kbn/dev-utils] break out more pieces (#132292) 2022-05-17 11:19:20 -05:00
kbn-pm [8.3] Update ejs 3.1.6 -> 3.1.8 (#137229) (#137579) 2022-07-29 06:53:44 -07:00
kbn-react-field [SecuritySolution][Detections] Adds UI for new Rule Fields: Related Integrations, Required Fields, and Setup (#131475) 2022-05-23 22:10:36 +02:00
kbn-rule-data-utils Use target_web to ensure browser compatibility (#130874) 2022-05-05 21:20:51 +02:00
kbn-securitysolution-autocomplete [core] remove root index.ts file (#137001) (#137012) 2022-07-22 16:19:16 -07:00
kbn-securitysolution-es-utils [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-securitysolution-hook-utils Refactor use_observable to update state with useReducer (#132703) 2022-05-24 09:57:45 +02:00
kbn-securitysolution-io-ts-alerting-types [Response Ops] Renaming Alert to Rule (#129136) 2022-04-04 07:32:32 -04:00
kbn-securitysolution-io-ts-list-types fix all violations 2022-04-16 01:37:30 -05:00
kbn-securitysolution-io-ts-types fix all violations 2022-04-16 01:37:30 -05:00
kbn-securitysolution-io-ts-utils chore(NA): upgrades bazel rules nodejs to v5 (#129522) 2022-04-08 20:42:37 +01:00
kbn-securitysolution-list-api Set filter to undefined when it's empty on findExceptionLists method (#128455) 2022-03-29 12:44:31 +02:00
kbn-securitysolution-list-constants [Security Solution] add blocklist list (#126390) 2022-03-01 09:46:13 -06:00
kbn-securitysolution-list-hooks Bump @testing-library (#128659) 2022-04-06 21:11:33 +02:00
kbn-securitysolution-list-utils [Security Solution][Exceptions] - Fixes exception builder bug that includes matches operator (#136340) (#136652) 2022-07-19 09:21:57 -07:00
kbn-securitysolution-rules Use target_web to ensure browser compatibility (#130874) 2022-05-05 21:20:51 +02:00
kbn-securitysolution-t-grid [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-securitysolution-utils Use target_web to ensure browser compatibility (#130874) 2022-05-05 21:20:51 +02:00
kbn-server-http-tools [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-server-route-repository Use target_web to ensure browser compatibility (#130874) 2022-05-05 21:20:51 +02:00
kbn-shared-ux-components [No Data] Allow access to the app if there are user created data views (#134068) (#134264) 2022-06-13 12:54:10 -07:00
kbn-shared-ux-services [SharedUX] Minor changes to NoDataViews components (#132032) 2022-05-16 17:56:11 +02:00
kbn-shared-ux-storybook [Shared UX] Redirect App Link to package (#131575) 2022-05-09 18:53:11 +02:00
kbn-shared-ux-utility [sharedUX] Move to Package-based Architecture (#127546) 2022-03-16 17:13:58 -04:00
kbn-sort-package-json [jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
kbn-spec-to-console fix all violations 2022-04-16 01:37:30 -05:00
kbn-std Upgrade RxJS to 7 (#129087) 2022-04-12 12:40:55 -07:00
kbn-stdio-dev-helpers [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
kbn-storybook Bump @storybook@6.4.22 (#129787) 2022-05-19 12:03:10 +02:00
kbn-synthetic-package-map [plugins] use module ids to import across plugins 2022-04-16 01:19:05 -05:00
kbn-telemetry-tools [checks] disable spinners in CI to cut-down on log sizes (#136341) (#136365) 2022-07-13 22:41:58 -07:00
kbn-test Bump undici sub-dependency from v5.5.1 to v5.8.2 (#138877) (#139297) 2022-08-23 08:16:25 -07:00
kbn-test-jest-helpers Remove broadcast-channel dependency from security plugin (#132427) 2022-05-19 13:48:42 -04:00
kbn-test-subj-selector docs(NA): adds @kbn/test-subj-selector into ops devdocs (#132505) 2022-05-20 02:30:01 +01:00
kbn-timelion-grammar [eslint] ensure that all imports are resolvable (#129002) 2022-04-04 15:37:06 -04:00
kbn-tinymath fix all violations 2022-04-16 01:37:30 -05:00
kbn-tooling-log Initialize ops documentation section (#132262) 2022-05-17 15:22:38 -05:00
kbn-type-summarizer Initialize ops documentation section (#132262) 2022-05-17 15:22:38 -05:00
kbn-typed-react-router-config [APM] Improve error message for route matching (#126455) 2022-03-01 14:49:27 +01:00
kbn-ui-framework chore(NA): use internal pkg_npm on @kbn/ui-framework (#121922) 2021-12-23 02:53:36 +00:00
kbn-ui-shared-deps-npm Move node-libs-browser to ui-shared-deps-npm (#130877) 2022-04-26 20:27:30 +02:00
kbn-ui-shared-deps-src chore(NA): upgrades bazel rules nodejs to v5 (#129522) 2022-04-08 20:42:37 +01:00
kbn-ui-theme [bazel] avoid a little boilerplate in packages (#126309) 2022-02-24 12:43:12 -06:00
kbn-utility-types [8.3] chore(NA): remove @kbn/utility-types/jest subpackage (#133448) (#133571) 2022-06-03 14:35:40 -07:00
kbn-utility-types-jest [8.3] chore(NA): remove @kbn/utility-types/jest subpackage (#133448) (#133571) 2022-06-03 14:35:40 -07:00
kbn-utils fix all violations 2022-04-16 01:37:30 -05:00
shared-ux fix(NA): dependencies for @kbn/shared-ux-prompt-no-data-views on Windows (#132743) 2022-05-23 21:42:18 +01:00
BUILD.bazel [ci-stats] track size of shareable runtime (#133770) (#133954) 2022-06-08 14:02:51 -07:00
README.md Remove grunt (#111882) 2021-09-16 15:24:42 -04: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"

How all of this works is described in more detail in the @kbn/pm docs.

Creating a new package

Create a new sub-folder. The name of the folder should mirror the name in the package's package.json. E.g. if the name is @kbn/i18n the folder name should be kbn-i18n.

All new packages should use the @kbn namespace, and should be marked with "private": true.

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.