Kibana Machine
1206b0d512
[ci-stats] track size of shareable runtime ( #133770 ) ( #133954 )
...
* [ci-stats] track size of sharable runtime
* report more than just the total size of the bundle
* put all sharable runtime metrics in a group
* fix entryName find fn
* remove unused import
* update outdated snapshot
* use runtime const and fix misspellings
* remove errant empty comment
(cherry picked from commit 9f78abfbe7
)
Co-authored-by: Spencer <spencer@elastic.co>
2022-06-08 14:02:51 -07:00
Tiago Costa
f1e292f62b
[8.3] chore(NA): remove @kbn/utility-types/jest subpackage ( #133448 ) ( #133571 )
...
* chore(NA): remove @kbn/utility-types/jest subpackage (#133448 )
* chore(NA): remove @kbn/utility-types/jest subpackage
* chore(NA): include migration rule for import path
* chore(NA): remove double import
* chore(NA): creating a new package
* chore(NA): remove jest mentions from @kbn/utility-types
* docs(NA): complete new readme file
* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'
* chore(NA): remove expect error comment
* chore(NA): merge and solve problems with merge on latest upstream
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 3a6cc6e747
)
# Conflicts:
# src/core/server/core_context.mock.ts
# src/plugins/data/common/search/search_source/search_source.test.ts
* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-03 14:35:40 -07:00
Walter Rafelsberger
c968e508f6
[ML] Explain log rate spikes: Move API stream demos to Kibana examples. ( #132590 )
...
This creates a response_stream plugin in the Kibana /examples section. The plugin demonstrates API endpoints that can stream data chunks with a single request with gzip/compression support. gzip-streams get decompressed natively by browsers. The plugin demonstrates two use cases to get started: Streaming a raw string as well as a more complex example that streams Redux-like actions to the client which update React state via useReducer().
2022-05-24 16:59:31 +02:00
Thomas Watson
dc9f2732a1
Add csp.disableUnsafeEval config option to remove the unsafe-eval CSP ( #124484 )
...
Adds a new experimental Kibana setting called `csp.disableUnsafeEval` which will default to `false`. When set to `true`, it will remove `unsafe-eval` from our CSP.
Also introduces a new module called `@kbn/handlebars` which is a replacement for the official `handlebars` module used in the frontend. This new module is necessary in order to avoid calling `eval`/`new Function` from within `handlebars` which is not allowed once `unsafe-eval` is removed from our CSP.
The `@kbn/handlebars` module is simply an extension of the main `handlebars` module which adds a new compile function called `compileAST` (as an alternative to the regular `compile` function). This new function will not use code-generation from strings to compile the template but will instead generate an AST and return a render function with the same API as the function returned by the regular `compile` function.
This is a little bit slower method, but since this is only meant to be used client-side, the slowdown should not be an issue.
The following limitations exists when using `@kbn/handlebars`:
The Inline partials handlebars template feature is not supported.
Only the following compile options will be supported:
- `knownHelpers`
- `knownHelpersOnly`
- `strict`
- `assumeObjects`
- `noEscape`
- `data`
Only the following runtime options will be supported:
- `helpers`
- `blockParams`
- `data`
Closes #36311
2022-05-23 11:01:56 -07:00
Clint Andrew Hall
b2008488ba
[Shared UX] Move No Data Views to package ( #131996 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-19 23:17:14 +02:00
Spencer
f3d69b8197
[@kbn/dev-utils] break out more pieces ( #132292 )
...
* [@kbn/dev-utils] break out more pieces
* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-17 11:19:20 -05:00
Tiago Costa
dea9159c5d
chore(NA): rename @elastic/eslint-config-kibana as @kbn/eslint-config ( #132278 )
2022-05-16 13:02:02 -07:00
Clint Andrew Hall
f7a2fb38d3
[Shared UX] Create Analytics No Data Page package ( #131686 )
...
* [Shared UX] Create Analytics No Data Page package
* Revise
* Add docs and tests
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-09 14:44:07 -07:00
Clint Andrew Hall
0b65d5b7e2
[Shared UX] Solution Avatar to package ( #131579 )
...
* [Shared UX] Solution Avatar to package
* Fix imports
* Fix snapshots
2022-05-09 14:29:55 -04:00
Clint Andrew Hall
5bdad23a7e
[Shared UX] Redirect App Link to package ( #131575 )
...
* [Shared UX] Redirect App Link to package
* Fix types
2022-05-09 18:53:11 +02:00
Dzmitry Lemechko
7f62a784df
[packages] add kbn-performance-testing-dataset-extractor ( #131631 )
2022-05-06 04:11:51 +02:00
Alejandro Fernández Haro
7226982759
[EBT] Add Elastic V3 Shippers ( #130696 )
...
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-04 09:22:34 -07:00
Spencer
0b37272c8e
[jest] automatically determine run order (attempt 2) ( #131091 )
2022-04-27 11:18:15 -07:00
spalger
f149a17871
Revert "[jest] automatically determine run order ( #130857 )"
...
This reverts commit 1a05ce5cab
.
2022-04-27 11:38:19 -05:00
Spencer
1a05ce5cab
[jest] automatically determine run order ( #130857 )
2022-04-27 11:10:47 -05:00
Spencer
473781ad06
add kibana.json json-schema for VSCode users ( #130625 )
...
* add kibana.json json-schema for VSCode users
* make kibanaVersion description more clear
2022-04-20 08:25:41 -07:00
Alejandro Fernández Haro
fbc8a7176b
[EBT] Split @elastic/analytics
package ( #130574 )
...
Co-authored-by: Spencer <spencer@elastic.co>
2022-04-20 15:45:37 +02:00
Spencer
9ed9c02bae
[kbn/pm] reduce responsibilities ( #130592 )
...
* [kbn/pm] reduce responsibilities
* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'
* [CI] Auto-commit changed files from 'yarn kbn run build -i @kbn/pm'
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-04-19 20:43:01 -05:00
Spencer
2a78f350e1
break out parts of @kbn/dev-utils ( #130509 )
...
* break out parts of @kbn/dev-utils
* autofix imports and kbn/pm dist
* update readme for @kbn/stdio-dev-helpers
* finish renames
2022-04-19 12:24:58 -05:00
spalger
bd8171c13e
[plugins] use module ids to import across plugins
2022-04-16 01:19:05 -05:00
Clint Andrew Hall
e47bf4b205
[Shared UX] Adopt multi-package strategy - ExitFullScreenButton ( #130355 )
...
* [Shared UX] Adopt multi-package strategy - ExitFullScreenButton
* Fixing checks errors
* Fix i18n
* Remove SharedUX deps from Maps
Co-authored-by: Spencer <spencer@elastic.co>
2022-04-15 19:12:46 -05:00
Tiago Costa
eb0ef19583
chore(NA): upgrades bazel rules nodejs to v5 ( #129522 )
...
* chore(NA): upgrade bazel into v5
* chore(NA): initial work to upgrade to rules v5
* chore(NA): remove @elastic/datemath jest unit test for eslint plugin imports
* chore(NA): removed packager tsc_wrapped added my mistake
2022-04-08 20:42:37 +01:00
Alexey Antonov
ac50a30eb6
[Step 1] Move CustomizablePalette from Lens into @kbn/coloring package ( #129291 )
...
* [Step 1] Move Coloring into Shared-ux-Components
* Fix Joe's comments
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-07 14:49:36 +05:00
Clint Andrew Hall
d92b7feeff
[typescript] Create Ambient Types package ( #129368 )
...
* WIP
* tweak @kbn/ambient-ui-types for special usecase
* remove @types/ for ambient-ui-types, the package is a types package
* Split types; remove duplicate types in packages
* Adjust README
* Update CODEOWNERS
* Addressing feedback
* Move to tsconfig.base.json
* Fix missing types array in kbn/field-types
* Addressing errors
* Return declaration
* move storybook types to storybook specific package
* add codeowner for new package
Co-authored-by: spalger <spencer@elastic.co>
2022-04-06 19:21:24 -05:00
Alejandro Fernández Haro
fcf862220b
Create @elastic/analytics
package ( #128407 )
...
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-04-05 08:21:57 -07:00
Spencer
2ad2a4c271
[eslint] ensure that all imports are resolvable ( #129002 )
2022-04-04 15:37:06 -04:00
Spencer
40ba9bf53b
[axe-config] extract module to it's own package ( #128815 )
2022-03-29 15:12:14 -07:00
Spencer
92d65484a5
[plugin-discovery] move logic to a package ( #128684 )
2022-03-29 13:19:58 -06:00
Clint Andrew Hall
71af73c18b
[sharedUX] Move to Package-based Architecture ( #127546 )
...
* [shared-ux][packages] 1. Create Services Package
* Address review feedback
* [shared-ux][packages] 2. Create Storybook Package (#127548 )
* [shared-ux][packages] 2. Create Storybook Package
* [shared-ux][packages] 3. Create Utility Package (#127549 )
* [shared-ux][packages] 3. Create Utility Package
* [shared-ux][packages] 4. Create Components Package (#127551 )
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Merging
* Adding docs
* A few fixes
* Fix TS types
* Fix TS types
* Fix i18n
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-16 17:13:58 -04:00
Spencer
9871111cf6
[bazel] validate packages/BUILD.bazel in CI ( #127241 )
2022-03-14 21:34:28 -05:00
Spencer
cdeea9f0e0
[kbn/bazel-packages] rename ( #127350 )
2022-03-09 15:10:56 -07:00
Spencer
ad0eb60772
[kbn/generate] add basic package generator ( #127095 )
2022-03-08 18:04:45 -07:00
Spencer
eb68e95acd
[ts] enable sourcemaps in summarized types of @kbn/crypto ( #126410 )
...
* [ts] enable sourcemaps in summarized types of @kbn/crypto
* update snapshots
* remove unnecessary exports of @kbn/type-summarizer package
* remove tsc from the build process
* use `@kbn/type-summarizer` to summarize its own types
* add tests for interface and function
* switch to export type where necessary
* ignore __tmp__ in global jest preset
* ignore __tmp__ globally
* remove `@kbn/crypto` types path
2022-03-04 08:02:02 -06:00
Tiago Costa
1af9629c58
chore(NA): splits types from code on @kbn/typed-react-router-config ( #124944 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-08 20:58:01 +00:00
Tiago Costa
a926a57e03
chore(NA): splits types from code on @kbn/logging ( #124688 )
...
* chore(NA): splits types from code on @kbn/test
* chore(NA): create new @kbn/test-jest-helpers
* chore(NA): move wrong files into @kbn/test
* chore(NA): remove @kbn/test/jest references
* chore(NA): splits types from code on @kbn/logging
* chore(NA): import type from new @kbn/logging-mocks pkg
* chore(NA): missing deps on bazel build files
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-07 13:46:50 +00:00
Tiago Costa
a5b4b822ce
chore(NA): splits types from code on @kbn/test ( #124469 )
...
* chore(NA): splits types from code on @kbn/test
* chore(NA): create new @kbn/test-jest-helpers
* chore(NA): move wrong files into @kbn/test
* chore(NA): remove @kbn/test/jest references
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-04 03:27:39 +00:00
Tiago Costa
b08b2c9ef8
chore(NA): splits types from code on @kbn/storybook ( #124199 )
...
* chore(NA): splits types from code on @kbn/storybook
* chore(NA): correct export syntax
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-02 02:00:18 +00:00
Pierre Gayvallet
b4e53f44c3
Create server-side docLinks service ( #123818 )
...
* extract docLinks service to a package
* adapt unit tests for docLinks service
* initial server-side docLinks implementation
* add server-side service mock
* fix internal mocks
* update generated doc
* add unit tests for server-side service
* adapt server mocks
* update links due to rebase
* add base tests for new package
* update links from merge
* set kibana-docs team as owners for new package
* split concrete and type import
* update tsdoc
* update links due to merge
* update generated doc
2022-02-01 10:37:15 +01:00
Tiago Costa
735948de4d
chore(NA): splits types from code on @kbn/io-ts-utils ( #123431 )
...
* chore(NA): splits types from code on @kbn/io-ts-utils
* chore(NA): missing import keys
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-21 00:17:38 +00:00
Tiago Costa
356861d23b
chore(NA): splits types from code on @kbn/ui-shared-deps-src ( #123313 )
...
* chore(NA): splits types from code on @kbn/ui-shared-deps-src
* chore(NA): break flot-charts into another package
* chore(NA): skip failing tests
* chore(NA): remove skip and add correct value
* chore(NA): fix new ui-theme import
* chore(NA): adding fleet cloned test
* chore(NA): remove cloned test
* chore(NA): remove added typo
2022-01-20 22:04:19 +00:00
Tiago Costa
a6d21cc715
chore(NA): splits types from code on @kbn/ui-shared-deps-npm ( #122788 )
2022-01-13 02:23:18 +00:00
Tiago Costa
9127318d29
chore(NA): splits types from code on @elastic/safer-lodash-set ( #122697 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-12 19:10:36 +00:00
Tiago Costa
64468b7a3e
chore(NA): splits types from code on @kbn/utils ( #121924 )
2021-12-23 03:18:10 +00:00
Tiago Costa
c3c9195c26
chore(NA): splits types from code on @kbn/utility-types ( #121923 )
2021-12-23 02:55:13 +00:00
Tiago Costa
0ed61981b7
chore(NA): splits types from code on @kbn/telemetry-tools ( #121829 )
2021-12-22 09:09:29 -07:00
Tiago Costa
e1a86bac32
chore(NA): splits types from code on @kbn/std ( #121815 )
2021-12-22 09:45:10 +01:00
Tiago Costa
dc79fa8243
chore(NA): splits types from code on @kbn/server-route-repository ( #121810 )
...
* chore(NA): splits types from code on @kbn/server-route-repository
* chore(NA): expose missing type
2021-12-22 03:20:43 +00:00
Tiago Costa
f7a0afc5e1
chore(NA): splits types from code on @kbn/server-http-tools ( #121807 )
2021-12-22 02:37:29 +00:00
Tiago Costa
0a75d426b9
chore(NA): splits types from code on @kbn/securitysolution-io-ts-utils ( #121677 )
...
* chore(NA): splits types from code on @kbn/securitysolution-io-ts-utils
* chore(NA): fix package.json
* chore(NA): merge and solve conflicts with main
* chore(NA): remove any from types
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-21 17:24:58 -07:00
Tiago Costa
769efcdd2a
chore(NA): splits types from code on @kbn/securitysolution-list-utils ( #121689 )
...
* chore(NA): splits types from code on @kbn/securitysolution-list-utils
* chore(NA): add todos to remove later
2021-12-21 20:38:34 +00:00