Commit graph

2040 commits

Author SHA1 Message Date
Nick Peihl
118321fff9
[Maps] Support custom icons in maps (#113144)
Adds support for users to upload their own SVG icons for styling geo_points or clusters in Elastic Maps.

Because Elastic Maps uses WebGL, dynamic styling requires rendering SVG icons as monochromatic PNGs using a Signed Distance Function algorithm. As a result, highly detailed designs and any color definitions in SVGs uploaded to Maps are not retained. Monochromatic SVG icons work best.

Custom icons are appended to the map saved object and are not accessible in other maps. Using the custom icon in another map requires creating a copy of the existing map or uploading the icon to the new map. Custom icons can be added, edited, or deleted in Map Settings. Custom icons can also be added from within the Icon select menu.
2022-03-29 21:17:55 -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
Spencer
40ba9bf53b
[axe-config] extract module to it's own package (#128815) 2022-03-29 15:12:14 -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
renovate[bot]
bde0262191
Update babel (main) (#128572)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: spalger <spencer@elastic.co>
2022-03-29 14:01:55 -06:00
Spencer
92d65484a5
[plugin-discovery] move logic to a package (#128684) 2022-03-29 13:19:58 -06:00
Thomas Watson
7cb72014aa
Bump @elastic/request-crypto from v2.0.0 to v2.0.1 (#128710) 2022-03-29 11:08:21 +02:00
Yulia Čech
bef90a5866
Jest axe a11y testing (#127185)
* [A11y] Added axe testing to testBed to be used in jest tests (CITs)

* [A11y] Refactored axe helpers to be outside of testBed for better separation of concerns. Also added tests for indices tab in Index Management.

* [A11y] Switched `axe_helpers` to use a Kibana wide axe config and rules that are now in kbn-test package

* [A11y] Switched `axe_helpers` to use a Kibana wide axe config and rules that are now in kbn-test package

* [A11y] Completed a11y tests in Index Management Indices tab. Also refactored http requests helper file.

* Removed import comment

* Reverted yarn.lock change

* Correct yarn.lock changes

* [IM] Updated the branch after merging main

* [IM] Reverted unrelated ResponseError interface changes

* [IM] Fixed eslint issue with kbn/test import
2022-03-29 10:44:11 +02:00
Joe Portner
e67a782919
lodash-es 4.17.15 -> 4.17.21 (#128668) 2022-03-28 13:46:12 -07:00
renovate[bot]
31fffac394
Update dependency vega to ^5.22.1 (#128571)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-28 14:28:47 +03: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
renovate[bot]
fa90f5d5a8
Update dependency ms-chromium-edge-driver to ^0.5.1 (#128492)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-24 13:41:52 -04:00
Mikhail Shustov
2789f945f5
Bump nodejs APM agent version to 3.31 (#128459)
* use apm with #2618

* bump to 3.31
2022-03-24 04:16:52 -07:00
Thomas Watson
36c614ab0b
Bump minimist from v1.2.5 to v1.2.6 (#128348) 2022-03-23 07:16:42 -05:00
renovate[bot]
d8a1827b44
Update dependency node-forge to ^1.3.0 (#128112) 2022-03-22 11:20:04 -04:00
Thomas Watson
de02c2da65
Upgrade Node.js from v16.13.2 to v16.14.2 (#128123) 2022-03-21 07:30:00 -05:00
Spencer
583de26396
[yarn] remove jest-when which introduced surprise native module deps (#128027) 2022-03-18 10:11:49 -07:00
Spencer
4b4ac1b213
[npm] upgrade synthetics so we can get a prebuild of sharp (#128029) 2022-03-17 18:53:28 -07:00
Tiago Costa
8d70bec340
chore(NA): upgrade ibazel into v0.16.2 with M1 binaries (#127934)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-17 15:34:35 -07: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
Alexey Antonov
c93f0eb748
Update dependency vega to ^5.22.0 (main) (#127652)
* Update dependency vega to ^5.22.0 (main)

Closes: #127556

* add alias for vega

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-16 22:21:04 +05:00
renovate[bot]
ffebaed8ee
Update dependency @elastic/charts to v45 (main) (#126729)
* Fix chart breaking changes in Heatmap and small stylistic fixes
* Ping every team with non EUI themed chart
* Update charts to 45.0.1
* Updated donut chart snapshot
* Fix swimlane functional tests
* Fix new swimlane height and test x offset
* Add link to EUI theme README.md

Co-authored-by: Marco Vettorello <marco.vettorello@elastic.co>
2022-03-16 11:47:37 -04:00
renovate[bot]
43244dcc1e
Update dependency elastic-apm-node to ^3.30.0 (#127552)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-14 15:43:29 -04: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
renovate[bot]
b7660c2c17
Update dependency @types/node-forge to ^1.0.1 (#127473)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-14 13:30:07 +01:00
Tiago Costa
8cd75df196
chore(NA): upgrade typescript-eslint packages to v5.14.0 (#127275)
* chore(NA): upgrade typescript-eslint packages to v5.14.0

* chore(NA): ignore required quotes

* Update packages/elastic-eslint-config-kibana/typescript.js

Co-authored-by: Spencer <email@spalger.com>

* chore(NA): remove old lint disable comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Spencer <spencer@elastic.co>
Co-authored-by: Spencer <email@spalger.com>
2022-03-10 22:44:06 +00:00
Spencer
cdeea9f0e0
[kbn/bazel-packages] rename (#127350) 2022-03-09 15:10:56 -07:00
Joe Portner
b76370d830
Bump dependencies (#127238) 2022-03-09 00:24:54 -07:00
Spencer
ad0eb60772
[kbn/generate] add basic package generator (#127095) 2022-03-08 18:04:45 -07:00
renovate[bot]
0410d1f196
Update dependency chromedriver to v99 (#127079)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2022-03-08 16:12:22 -05:00
Spencer
192309fc27
Typescript upgrade to 4.6.2 (#126935) 2022-03-08 10:21:38 -06:00
renovate[bot]
015be5f40a
Update babel (main) (#126871)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Spencer <spencer@elastic.co>
2022-03-08 09:29:34 -05:00
Paulo Henrique
e397dabe62
[Security Solution] Session View Plugin (#124575)
Co-authored-by: mitodrummer <karlgodard@elastic.co>
Co-authored-by: Jan Monschke <janmonschke@fastmail.com>
Co-authored-by: Paulo Henrique <paulo.scape@gmail.com>
Co-authored-by: Jack <zizhou.wang@elastic.co>
Co-authored-by: Karl Godard <karl.godard@elastic.co>
Co-authored-by: Jiawei Wu <jiawei.wu@cmd.com>
Co-authored-by: Jiawei Wu <74562234+JiaweiWu@users.noreply.github.com>
Co-authored-by: Ricky Ang <ricky.ang@cmd.com>
Co-authored-by: Rickyanto Ang <rickyangwyn@gmail.com>
Co-authored-by: Jack <wang.zizhou@outlook.com>
Co-authored-by: Maxwell Borden <maxwellborden@gmail.com>
Co-authored-by: Maxwell Borden <Tacklebox@users.noreply.github.com>
2022-03-04 13:54:37 -03: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
Pierre Gayvallet
97adf28a72
[main] update ES client version to 8.2.0-canary1 (#126430)
* [main] update ES client version to 8.2.0-canary1

* fix type errors - batch 1

* fix more type errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-03 15:15:35 +01:00
renovate[bot]
8e7a7925f2
Update dependency chromedriver to ^98.0.1 (main) (#126724)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-02 22:25:57 -05:00
renovate[bot]
513a08ea39
Update ftr (#124559)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-01 12:44:08 -07:00
Søren Louv-Jansen
4155f166f3
Bump backport to 7.3.0 (#126149) 2022-02-25 01:01:20 +01:00
Mikhail Shustov
0393f3f261
[main] update ES client version (#126129)
* update renovate bot settings

* update es client to 8.1-canary3

* specify type explicitly when pass a serialized object

* attempt 1 in fleet.specify type explicitly when pass a serialized object

* fix the first batch of ts errors

* fix more violations

* fix unit test

* fix more violations 2

* fix more violations 3

* fix more violations 4

* review comments

Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-24 16:45:18 -07:00
renovate[bot]
bf89f3d0d3
Update dependency core-js to ^3.21.1 (main) (#126299)
* Update dependency core-js to ^3.21.1

* dedupe

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2022-02-24 17:57:57 -05:00
Joe Portner
afa95577fb
Collapse url-parse dependencies (#126301) 2022-02-24 06:55:54 +01: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
Robert Oskamp
b7db60a250
FTR support mocha dry run (#125915)
This PR adds support for the mocha CLI flag `--dry-run` in our functional test execution.
2022-02-23 11:34:04 +01:00
Joe Portner
fea3f7b264
prismjs 1.25.0 -> 1.27.0 (#126186) 2022-02-22 13:33:44 -07:00
Jean-Louis Leysens
1bf8e9c493
[Screenshotting] PDF generation in a worker_thread (#124787)
* taking of PoC of worker_thread implementation

* initial version of pdf generation working, restored from PoC and using TS in worker

* remove duplicated consts

* update legacy pdf generation to also use updated PdfMaker api

* remove unnecessary tracker methods

* refactor name

* updated pdfmaker integration test to use new api

* added some tests for the pdfworker out of memory condition

* added missing memory leak files

* update pdf/common exports, fix types and add a comment explaining the heap size setting

* update v1 generate pdf code given new shared code and types

* update v2 generate pdf code given new shared code and types

* added shared util to get errors from screenshot results

* edited comment

* remove duplicated file license

* use shared assetPath constant

* separate setting of old and young heap regions

* revert refactor to shared extract messages for this pr

* revert use of optional chaining for this pr

* rename file "pdf_generate_errors" to "pdfmaker_errors"

* rather use Buffer.concat and remove concat-stream, also transfer ownwership of underlying ArrayBuffer rather than copying it

* remove non-existent import

* comment

* clarify comment

* remove explicit dependency on concat-stream

* refactor to use a single long-lived worker thread for PDF generation

* refactor for slightly more robust error handling and removal of the on error event listener

* go back to a new Worker per generation request

* added README about worker_threads findings for PDF buffer generation

* remove unnecessary i18n

* ensure worker is cleaned up before generating a new PDF

* remove unused import

* fix pdf generation in release builds

* ensure that the error messages from the worker is recorded on the resulting Report object for users to see

* organize imports

* clarify comment

* skip leaky worker test

* remove TODO

* updated comment

* do not use parentPort for comms with the worker

* actually send the message on the worker message port

* test if jest integration works with skipped test commented out? :doubt:

* test if jest integration works with skipped test commented out? :doubt: part ii

* revert test commits

* revert import and fix comment type

* [revert] comment out entire pdfmaker test file

* Revert "[revert] comment out entire pdfmaker test file"

This reverts commit e6256f1f5b.

* [revert] remove worker code

* Revert "[revert] remove worker code"

This reverts commit caf67a88b8.

* leave worker memory unset

* Revert "leave worker memory unset"

This reverts commit 0638a7af53.

* try moving only the worker dependencies out for bundling and do not bundle the entire worker file

* update comment

* added code to prevent worker thread from ever exiting with 1

* added some comments

* skip crashing worker test for now

* try skipping PdfMaker integration tests entirely

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-22 09:46:30 +01:00
Joe Portner
623c7f8b53
Bump packages (#126119)
* url-parse 1.5.3 -> 1.5.9
* follow-redirects 1.y.z -> 1.14.9
2022-02-22 00:05:58 -07:00
Aleh Zasypkin
847c1eba57
Upgrade markdown-it dependency (10.0.012.3.2). (#125526) 2022-02-21 15:48:15 +01:00