Commit graph

1228 commits

Author SHA1 Message Date
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
Jonathan Budzenski
bcdb0b2f33
[build] Only use buildx if cross compiling (#128560)
* [build] Only use buildx if cross compiling

* reuse variable

* fix conditional
2022-04-07 10:04:01 -07:00
Tre
401ad52735
[QA][Code Coverage] Drop dead shell scripts, update docs (#129565)
While searching the ingestion system
for any [upcoming deprecations](https://github.com/elastic/kibana/pull/129087), I
noticed these scripts are no longer used.
2022-04-07 17:03: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
Jonathan Budzenski
730245e6de
[build] Update artifact checksums to sha512, properly format file (#129485)
* [build] Update artifact checksums to sha512, properly format file

This updates the checksum algorithm from sha1 to sha512 to be consistent
with the checksums shared on our downloads page.  It also formats the
file to include the file name after the checksum so we can perform
validation via the `shasum` cli.

* basename

* formatting
2022-04-05 09:28:55 -07:00
Spencer
2ad2a4c271
[eslint] ensure that all imports are resolvable (#129002) 2022-04-04 15:37:06 -04:00
Jonathan Budzenski
4182523a2e
[build] Add flag for using a local Kibana artifact in the Docker context (#129375)
* [build] Add flag for using a local Kibana artifact in the Docker context

Currently Docker contexts always install a Kibana distribution from  an
http endpoint.  These endpoints are only available after a release has
been published, making pre-release testing difficult.

This adds a flag to use a local Kibana artifact, with the intention of
verifying the Docker contexts with release artifacts prior to publishing
the release.

* fix types
2022-04-04 13:15:01 -05:00
Tiago Costa
2cdcb39198
fix(NA): comparasion on building allowed list of deps for production build (#128803)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-01 19:50:27 +01:00
Constance
6a44f1f725
Upgrade EUI to v53.0.1 (#128825)
* Upgrade EUI to v53.0.1

* Update i18n EUI mappings with new super date picker tokens

* Update deprecated prettyDuration usage

* Fix misc tests/type updates caused by EuiSuperDatePicker i18n release

- Fix mock typeof: this changed because the exported EuiSuperDatePicker is no longer a class, but a functional component wrapper around a class

- CI test: update now-capitalized datepicker select copy

- Jest tests: update snapshots, find()s (`Memo()` selector change is due to the exported EuiSuperDatePicker change)

* [kibana-app-services feedback] use renderToString

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-31 16:47:09 -07:00
Constance
2688cb21f9
Upgrade EUI to v52.2.0 (#128841)
* Updgraded EUI packages in package.json and src/dev/license_checker/config.js

* Resolved Jest test failures for Jest test suites 1 and 2. Updated snapshots, and updated equality conditions for specific test cases

* Resolve Jest test cases for Jest test suite 3. Updated snapshots for required tests

* Resolved failing Jest test cases in Jest suite 3. Updated tests checking for strict text equality to account for text coming from the EuiScreenReaderOnly component. Also updated tests to account for EuiIcon text that is now rendered when the icon is imported from .testenv (PR 5709 - https://github.com/elastic/eui/pull/5709/).

* type fixes

* eui to 52.2.0

* Resolved test cases for Jest test suites 1 and 2. Updated required snapshots.
Updated tests using getAllByLabelText and getByLabelText to getAllByText and getByText respectively as the former have been deprecated

* Updated Jest tests for Jest test suites 5 and 6. Updated required snapshots. Updated instances of getByLabelText and getAllByLabelText to getByText and getAllByText as the former are now deprecated.

* Updated Jest tests for Jest test suite 7. Updated required snapshots.

* Completed test case revisions for Jest test suites 1, 3, 6, 7, and 8. Updated required snapshots. Updated various tests to account for text rendering of the EuiIcon text.

* removed unused test utils

* use .contains for euiicon content

* storyshots updates

* linting

* Fix failing a11y violations tests

* Fix Jest failures caused by #eui/5709

- these changes should be reverted if we opt to revert the above PR

Co-authored-by: Bree Hall <briannajdhall@gmail.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
2022-03-29 20:44:44 -07:00
Tyler Smalley
f782f8bf33 Revert "Upgrade EUI to v52.2.0 (#128313)"
This reverts commit dccd8290bb.
2022-03-29 14:52:15 -07:00
Bree Hall
dccd8290bb
Upgrade EUI to v52.2.0 (#128313)
* Updgraded EUI packages in package.json and src/dev/license_checker/config.js

* Resolved Jest test failures for Jest test suites 1 and 2. Updated snapshots, and updated equality conditions for specific test cases

* Resolve Jest test cases for Jest test suite 3. Updated snapshots for required tests

* type fixes

* Resolved failing Jest test cases in Jest suite 3. Updated tests checking for strict text equality to account for text coming from the EuiScreenReaderOnly component. Also updated tests to account for EuiIcon text that is now rendered when the icon is imported from .testenv (PR 5709 - https://github.com/elastic/eui/pull/5709/).

* eui to 52.2.0

* Resolved test cases for Jest test suites 1 and 2. Updated required snapshots.
Updated tests using getAllByLabelText and getByLabelText to getAllByText and getByText respectively as the former have been deprecated

* Updated Jest tests for Jest test suites 5 and 6. Updated required snapshots. Updated instances of getByLabelText and getAllByLabelText to getByText and getAllByText as the former are now deprecated.

* Updated Jest tests for Jest test suite 7. Updated required snapshots.

* Completed test case revisions for Jest test suites 1, 3, 6, 7, and 8. Updated required snapshots. Updated various tests to account for text rendering of the EuiIcon text.

* eui back to v52.2.0

* removed unused test utils

* use .contains for euiicon content

* storyshots updates

* linting

Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
2022-03-29 13:39:45 -07:00
Spencer
92d65484a5
[plugin-discovery] move logic to a package (#128684) 2022-03-29 13:19:58 -06:00
Ersin Erdal
c9aad65b67
[Alerting] Remove defaultRuleTaskTimeout and set ruleType specific timeout from kibana.yml (#128294)
Read ruleTaskTimeout from kibana.yml
2022-03-28 08:36:30 +02:00
Jorge Sanz
52315e3ec9
[Maps] Update to EMS 8.2 (#128525)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-25 10:01:14 +01:00
Jonathan Budzenski
5b4642b365
[build] Cross compile docker images (#128272)
* [build] Cross compile docker images

* typo

* debug

* Revert "[build] Cross compile docker images"

This reverts commit 621780eb1d.

* revert

* support docker-cross-compile flag

* fix types/tests

* fix more tests

* download cloud dependencies based on cross compile flag

* fix array

* fix more tests
2022-03-23 14:06:40 -07:00
Patrick Mueller
b028cf97ed
[ResponseOps][task manager] log event loop delay for tasks when over configured limit (#126300)
resolves https://github.com/elastic/kibana/issues/124366

Adds new task manager configuration keys.

- `xpack.task_manager.event_loop_delay.monitor` - whether to monitor
  event loop delay or not; added in case this specific monitoring
  causes other issues and we'd want to disable it.  We don't know
  of any cases where we'd need this today

- `xpack.task_manager.event_loop_delay.warn_threshold` - the number
  of milliseconds of event loop delay before logging a warning

This code uses the `perf_hooks.monitorEventLoopDelay()` API[1] to collect
the event loop delay while a task is running.

[1] https://nodejs.org/api/perf_hooks.html#perf_hooksmonitoreventloopdelayoptions

When a significant event loop delay is encountered, it's very likely
that other tasks running at the same time will be affected, and so
will also end up having a long event loop delay value, and warnings
will be logged on those.  Over time, though, tasks which have consistently
long event loop delays will outnumber those unfortunate peer tasks, and
be obvious from the volume in the logs.

To make it a bit easier to find these when viewing Kibana logs in Discover,
tags are added to the logged messages to make it easier to find them.  One
tag is `event-loop-blocked`, second is the task type, and the third is a string 
consisting of the task type and task id.
2022-03-23 10:28:43 -04:00
Ying Mao
0b1425b974
[Alerting] Warn by default when rule schedule interval is set below the minimum configured. (#127498)
* Changing structure of minimumScheduleInterval config

* Updating rules client logic to follow enforce flag

* Updating UI to use enforce value

* Updating config key in functional tests

* Fixes

* Fixes

* Updating help text

* Wording suggestsion from PR review

* Log warning instead of throwing an error if rule has default interval less than minimum

* Updating default interval to be minimum if minimum is greater than hardcoded default

* Fixing checks

* Fixing tests

* Fixing tests

* Fixing config

* Fixing checks

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-21 18:55:30 -04:00
Jonathan Budzenski
484d23ce48
[build] Remove unused files (#127901)
* Remove unused files from distribution

* cleanup

* Remove unused files

* Remove markdown source files

* fix
2022-03-18 15:03:02 -07:00
Ersin Erdal
45c4e7dac1
[Alerting] Limit the executable actions per Rule execution (#128079) 2022-03-18 21:19:26 +01:00
Brian Seeders
242c5fd63f
Revert "[Alerting] Limit the executable actions per Rule execution (#126902)"
This reverts commit 31099bc68f.
2022-03-18 10:20:18 -04:00
Ersin Erdal
31099bc68f
[Alerting] Limit the executable actions per Rule execution (#126902)
* [Alerting] Circuit breaker. Limit the executable actions per Rule execution.
2022-03-18 13:51:24 +01:00
Jean-Louis Leysens
0e7be44140
[Screenshotting] Move PDF generation code to screenshotting (#127463)
* wip: just move pdf (reporting plugin) -> pdf_maker (screenshotting plugin)

* refactor paths for the jest integration tests

* move assets folder

* updated assets file

* use the screenshotting error in screenshotting

* fix worker imports

* first iteration of updated screenshotting options

* whole lotta wip, but got pdf maker set up in screenshot observable

* looks like we were not passing through renderErrors?

* some more minor refactors

* cleaned up APM tracker for screenshotting pngsToPdf

* big restructure of initial approach: rather place formats outside of the screenshotting functionality

* remove unused imports

* updated reporting core to work with new screenshotting functions

* fixed some more types issues in core

* done printable pdf v1

* refactored pdf v2

* removed layout from screenshot result

* we need to check that only supported layout ids are passed to screenshotting from reporting for a given format

* fix types and an import issue

* fix tsconfig mistakenly changed

* remove unused import

* added jest.integration.config.js

* update snapshots

* update snapshots part ii

* update jest test

* safe handling of layout objects on jobs

* update screenshotting mocks and make access layout safer

* updated docs for new exported types, refactored to single getScreenshots per conversation with Dokolin

* update report API usage and fix tests after refactor

* added new type file for formats

* make format optional and default to PNG at type level too

* make format required again, update docs and use const type

* update casing check to point to new file location

* fix type error

* update i18n IDs to match plugin namespace

* remove * export

* appease the linting gods

* just use the getScreenshots method

* update jest.integration.test.js path

* move pageCount to metrics

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-17 14:56:27 +01:00
Greg Thompson
854da93770
Upgrade EUI to v51.1.0 (#126926)
* eui to v50.0.0

* i18n tokens

* Deprecate EuiDataGrid's `popoverContents` prop for `renderCellPopover`

* [optional ML refactor] Use `renderCellValue.isDetails` to customize numeric popover content instead of `renderCellPopover`

 - since no especially custom popover rendering is occuring, just conditional content

* onChangeItemsPerPage update

* storyshots updates

* snapshot updates

* snapshot updates

* snapshot updates

* snapshot updates

* EuiComboBox listbox -> combobox

* remove invalid combobox aria attr

* Revert "onChangeItemsPerPage update"

This reverts commit 127c9e5840.

* eui to v51.0.0

* WIP: schema

* WIP: schema

* EuiSelectable API changes

* WIP: schema

* hidePerPageOptions -> showPerpageOptions

* WIP: schema

* hidePerPageOptions -> showPerpageOptions

* WIP: schema

* breadcrumbs type

* clean up

* snapshot updates

* Fix E2E datagrid cell filter action test

- This changed in 50.0.0 because of https://github.com/elastic/eui/pull/5681

- `await testSubjects.click('filterForButton')` applies to both the cell action button icon and the cell popover button
- The test was trying to click the cell action button icon and not the popover button, which closed the popover and caused nothing to actually get clicked

- the solution I went with was to simply avoid opening the cell popover but instead click the cell action icon directly

* WIP: selectable search

* clean up

* eui to v51.1.0

* i18n tokens

* resolve SharedRenderCellElementProps.schema optionality

* i18n, snapshot updates

* shapshot update

* consolidate url-parse

Co-authored-by: Constance Chen <constance.chen@elastic.co>
2022-03-16 15:39:15 -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
Tre
1ab04243a5
[QA][Code Coverage] Drop dead code (#127057)
* [QA][Code Coverage] Drop dead code

We've some code no longer used,
that was used when code coverage was
orchestrated in Jenkins.

Since we use Buildkite instead,
we can drop this code.

* Updated the docs to reflect we
no longer use Jenkins and use
Buildkite instead.

* Updated doc per review and dropped the bit about 4 indexes,
since we no longer need the other R & D job.
2022-03-15 11:57:09 +00:00
Spencer
9871111cf6
[bazel] validate packages/BUILD.bazel in CI (#127241) 2022-03-14 21:34:28 -05:00
Jonathan Budzenski
53d745625e
[build] Include x-pack example plugins when using example-plugins flag (#126931)
* Revert "Revert "[build] Include x-pack example plugins when using example-plugins flag (#120697)" (#125729)"

This reverts commit 7b4c34e418.

* skip alerting_example

* link to issue
2022-03-14 13:21:18 -05:00
Nick Peihl
865539befd
[Maps] Use Elastic Maps Service 8.1 (#126379)
* Use Elastic Maps Service 8.1

* Update license override for ems-client
2022-03-14 09:58:09 -07:00
Spencer
ad0eb60772
[kbn/generate] add basic package generator (#127095) 2022-03-08 18:04:45 -07:00
Jonathan Budzenski
7923667067
[build] Up compression quality (#127064)
* [build] Up compression quality

* update snapshot
2022-03-08 17:34:04 -06: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
Spencer
c509fda3fb
[yarn] download prebuilt artifacts for re2 and node-sass from custom mirrors (#126820)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-03 15:22:10 -06:00
Scotty Bollinger
a1c1cf5f0b
[Enterprise Search] Rename top-level plugin to "Overview" in prep for new "Content" plugin (#126738) 2022-03-03 08:33:20 -08:00
Spencer
4f2321d34c
[ToolingLog] remove some manual indent management (#126636)
* [ToolingLog] remove some manual indent management

* improve log message

* [dev/build] write the newline after a failed step

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-03 08:15:46 -07:00
Kyle Pollich
31261df6ad
[Fleet] Add functional tests for bundled packages (#126595)
* Add first pass functional tests for bundled packages

* Address PR feedback + fix TS errors

* Move docker wait hook

* Move setupFleetAndAgents call in test

* Try disabling bundled tests to debug CI

* Fix failing jest tests

* Fix type errors

* Fix type errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-02 12:23:25 -05:00
Spencer
614139b8e5
[bazel] avoid a little boilerplate in packages (#126309)
* [bazel] avoid a little boilerplate for @types packages

* [bazel/ts] stop building sourcemaps since they're ignored
2022-02-24 12:43:12 -06:00
Bree Hall
6bf8a9c709
Upgrade EUI to v48.1.1 (#125023)
* Upgraded the version of EUI to 47.0.0 and react-beautiful-dnd (an EUI dependancy) to 13.1.0

* Update i18n mappings with required changes

* Fix all data grid types/tests missing the new `colIndex` prop passed by renderCellValue and cellActions

* Fix cellActions closePopover type to indicate conditionality (only passed when popover is open)

* Fix more datagrid colIndex errors

- pass more missing `colIndex`s

- pass RowAction colIndex, because it's inheriting types from EUI

- omit colIndex from the leading controls column renderer, because it doesn't need them

* Improve StatefulCell typing

- pass colIndex (which fixes EUI type match issue)
- DRY out ariaColIndex logic
- rename ariaRowindex passed to StatefulCell to rowIndex

* Updated i18n_eui_mapping tests to add euiSelectable.searchResults to the tokensToSkip array

* Fix failing ML datagrid FTR test

- `visibleRowIndex` is not a prop passed back by `popoverContents` (see `EuiDataGridCellValueElementProps`), but `rowIndex` is

* Revert attempted ML type change

- in actuality this is an EUI typing issue, children is a ReactElement, not a ReactNode. However we'll shortly be deprecationg popoverContents, so this isn't worth fixing right now

* Update test files to include up to date snapshots of code samples

* Updated a test snapshots to match the latest version of code samples

* Upgraded the version of EUI from 47.0.0 to 48.0.0 in package.json and license_checker config files

* Update the required i18n translation mapping file with additions and changes from EUI version 48.0.0

* Updated three security screen accessibility tests to check for the aria-checked attribute instead of the aria-selected attribute as part of an accessibility update to aria made in EUI PR 5581

* Updated two unit cases to that are responsible for checking strict equality of strings. These unit tests were for the EuiSelectable and EuiFilterGroup components. Both of these components contain and utilize EuiScreenReaderOnly which provides text that is used for screen readers, but can still be viewed and queried in the DOM. These tests have been updated with the EuiScreenReaderOnly text in mind.

* Code clean up and added a missing internationalization token

* Ran yarn kbn bootstrap to update the yarn lock file

* Fix failing ML FTR test
- EuiSelectable now relies on aria-checked to indicate selected state, per W3 spec

* Fix failing functional tests that click the datagrid cell expand button

.euiDataGridRowCell__expandButtonIcon was deprecated in favor of a shared .euiDataGridRowCell__actionButtonIcon class, but the expand action is always the last one

* Upgrade to 48.1.1

* Switch to data-test-subj for datagrid cell expansion selectors

* Switch to new `data-test-selected` attribute over `aria-checked`

* Update snapshots/Jest tests to account for EuiSelectable use in EuiFilter

Co-authored-by: Constance Chen <constance.chen@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-23 17:01:40 -05:00
Spencer
1a1a191eb7
[jest] add *_node presets (#126192) 2022-02-23 09:36:30 -06:00
Josh Dover
6192b858c6
[Fleet] Update bundled packages for 8.1.0 release (#126138)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dominique Clarke <dominiquedclarke@gmail.com>
2022-02-22 13:06:35 -07:00
Kyle Pollich
4c20ea7252
[Fleet] Add retries + improve logging for bundled package build task (#125959)
* Add retries + improve logging for bundled package build task

* Update snapshots

* Remove unused imports in bundle task

* Address PR feedback

* Replace throw w/ reject

* Add explicit returns
2022-02-17 15:53:04 -05:00
Jonathan Budzenski
7b4c34e418
Revert "[build] Include x-pack example plugins when using example-plugins flag (#120697)" (#125729)
This reverts commit 3a4c6030b9.
2022-02-15 16:40:09 -06:00
Jonathan Budzenski
16f3eb352c
[ci] Verify docker contexts (#122897)
* [ci] Verify docker contexts

* bootstrap

* debug

* mkdir target

* change subdomain if snapshot

* move to separate pipeline

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-15 13:46:42 -06:00
Clint Andrew Hall
21cef490f3
[kibana_react] Enable Storybook for all of kibana_react (#125589)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-15 09:25:20 -06:00
Tyler Smalley
435b772786
[ci] Splits Jest integration tests (#125454) 2022-02-14 17:12:42 +01:00
Jonathan Budzenski
be1be06522
[build] Improve error message for dependencies in cloud docker image build (#124890)
* [build] Improve error message for dependencies in cloud docker image build

* cleanup
2022-02-07 17:11:17 -06:00
Dzmitry Lemechko
f121c545cf
Collect code coverage for server side (#124277)
* [code coverage] collect coverage on server side

* fix script

* copy server coverage to functional

* [code coverage] run all e2e and api tests

* enable all configs for coverage, fix reportDir

* [code coverage] use KIBANA_DIR var

* create target/kibana-coverage/functional if not exist

* remove empty lines and unused code

* adjust include/exclude filters

* exclude more test-related paths

* Update functional nyc config

* Update server nyc config

* exclude more dirs

* exclude stub/
2022-02-07 17:17:48 +01:00
Yaroslav Kuznietsov
d9aa72c7f8
[PieVis] Lens adaptation. (#122420)
* Added config for mosaic/pie/donut/treemap/waffle.

* Added sortPredicate functionality for waffle/mosaic/treemap/pie/donut

* Added Donut handling.

* Refactored get_color.

* Merged color computation for lens and vis_types.

* Added isFlatLegend support.

* Added showValuesInLegend for waffle and fixed tests.

* Removed not used position, which is equivalent to labels.show = false.

* legendDisplay added.

* Added migrations for pieVis addLegend argument.

* Added startFromSecondLargestSlice and support of correct formatters.

* Updated docs.

* Added functionality for truncate.

* Added unit tests for pie and partial for donut/waffle.

* Addressed issue with label truncation by default.

* Addressed issue with formatters.

* Added tests for accessor.test.ts

* Added support of formatter by meta data from columns at splitChartAccessors.

* Added tests for filterOutConfig.

* Added tests for getFormatters.

* Added tests for getAvailableFormatter.

* Added tests for getFormatter.

* Added tests for get_split_dimension_accessor.

* Add is legend scenario.

* Added tests for legend.

* Replaced sortPredicate, relying on the internal terms params, with the mosaic one.

* Fixed pie snapshot and added new snapshot for treemap.

* Added snapshots for mosaicVis.

* Added snapshot to waffleVis.

* Updated unit tests for *_vis_function's.

* Added storybook.

* Added snapshots for partition vis component.

* Added expression error on providing both, splitColumn && splitRow.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-04 20:14:34 +02:00
Ahmad Bamieh
fcac5d60fe
refresh cache on unencrypted telemetry request (#124253) 2022-02-02 07:12:07 -07:00
Kyle Pollich
68466226b3
[Fleet] Support bundling packages as zip archives with Kibana source (#122297)
* Support installing bundled packages during Fleet setup

* Fix failing API integration test

* Sort packages in test

* Move get bundled packages + add tests

* Fix mock installPackage type

* Don't attempt to install already-installed bundled packageS

* Use unique installation status for bundled packages

* Fix failing tests

* Fix type error

* Fix logic for latest value

* Remove bundled packages from test since they no longer come back from list endpoint

* Change assertion for empty preconfiguration update request

* Add all bundled packages + refactor install to use Promise.allSettled

* Fix name comparison again

* Rework approach to use preferred source at install-time instead

* Add helper script + update bundled packages + allow updates for upload path

* Fix failing test

* Address code review + add additional tests for update cases

* Fix type error

* Remove configOverride concept for now

* Fix another type error 🙃

* Add build step for bundling fleet packages

* Fix unused import in build step

* Keep bundled_packages directory in place to prevent setup failures

* Remove gitkeep + make bundled package directory lookup fault tolerant

* Update gitignore

* Add doc comment + use build.resolvePath

* Add --use-snapshot-registry CLI flag

* Update snapshots

* Rename arg to use-snapshot-epr

* Don't fail the build on failure to bundled packages

* Update all checksums + don't attempt download multiple times

* Skip checksum process for bundled packages for now

* mkdirp destination directory to fix tests

* Revert build_distributables file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-01 14:29:34 -05:00