Commit graph

1958 commits

Author SHA1 Message Date
Jonathan Budzenski
5913fc3588
Bump chromedriver to 102 (#134058) (#134103) 2022-06-09 14:04:29 -07:00
Tiago Costa
c168791d24
[8.2] chore(NA): remove @kbn/utility-types/jest subpackage (#133448) (#133572)
* 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/public/chrome/chrome_service.mock.ts
#	src/core/server/core_context.mock.ts
#	src/core/server/mocks.ts
#	src/plugins/data/common/search/expressions/kibana_context.test.ts
#	src/plugins/data/common/search/search_source/mocks.ts
#	src/plugins/data/common/search/search_source/search_source.test.ts
#	src/plugins/data/public/search/collectors/create_usage_collector.test.ts
#	src/plugins/data/public/search/expressions/esaggs.test.ts
#	src/plugins/data/public/search/search_interceptor/search_interceptor.test.ts
#	src/plugins/data/public/search/search_service.test.ts
#	src/plugins/data/server/autocomplete/terms_agg.test.ts
#	src/plugins/data/server/search/expressions/esaggs.test.ts
#	src/plugins/data/server/search/search_service.test.ts
#	src/plugins/data/server/search/search_source/mocks.ts
#	src/plugins/data_view_management/server/routes/preview_scripted_field.test.ts
#	src/plugins/data_views/server/routes/has_data_views.test.ts
#	src/plugins/home/server/services/sample_data/sample_data_registry.test.ts
#	x-pack/plugins/cloud_security_posture/server/plugin.test.ts
#	x-pack/plugins/data_enhanced/public/search/sessions_mgmt/lib/api.test.ts
#	x-pack/plugins/security/server/routes/api_keys/create.test.ts
#	x-pack/plugins/security/server/routes/api_keys/enabled.test.ts
#	x-pack/plugins/security/server/routes/authentication/common.test.ts
#	x-pack/plugins/security/server/routes/authentication/saml.test.ts
#	x-pack/plugins/security/server/routes/authorization/spaces/share_saved_object_permissions.test.ts
#	x-pack/plugins/security/server/routes/deprecations/kibana_user_role.test.ts
#	x-pack/plugins/security/server/routes/index.mock.ts
#	x-pack/plugins/security/server/routes/users/change_password.test.ts
#	x-pack/plugins/security_solution/server/lib/detection_engine/routes/__mocks__/request_context.ts

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-03 16:18:37 -07:00
Tiago Costa
cbc64a6379
[8.2] chore(NA): rename @elastic/eslint-config-kibana as @kbn/eslint-config (#132278) (#132285)
* chore(NA): rename @elastic/eslint-config-kibana as @kbn/eslint-config (#132278)

(cherry picked from commit dea9159c5d)

# Conflicts:
#	package.json
#	packages/BUILD.bazel
#	yarn.lock

* chore(NA): add removed kbn-eslint-import-resolver-kibana
2022-05-16 14:49:35 -07:00
Kibana Machine
0825756775
Bump d3-color v3.0.1 to v3.1.0 (#131925) (#131941)
(cherry picked from commit 4b768030e4)

Co-authored-by: Thomas Watson <watson@elastic.co>
2022-05-10 09:33:18 -07:00
Kibana Machine
f536ca0bda
[8.2] Bump version caniuse-lite (#131430) (#131432)
(cherry picked from commit 2843d25218)

Co-authored-by: Baturalp Gurdin <9674241+suchcodemuchwow@users.noreply.github.com>
2022-05-03 12:37:43 -05:00
Kibana Machine
4948314f2c
Update dependency @types/selenium-webdriver to ^4.0.19 (#131018) (#131078)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
(cherry picked from commit 73706d1867)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-04-27 09:28:52 -07:00
Kibana Machine
34a0cf9de7
Bump hapi packages (#130672) (#130686)
(cherry picked from commit b3538f8345)

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2022-04-20 09:05:13 -07:00
Constance
e682c029d4
Upgrade EUI to v53.0.2 (#130404) 2022-04-15 12:14:42 -07:00
Kibana Machine
2f310d87c0
chore(NA): downgrades rules nodejs into v4.7.0 (#130347) (#130354)
* chore(NA): downgrade rules nodejs into v4.0.0

* chore(NA): include windows patch

* chore(NA): polish downgrade code

* chore(NA): include yarn.lock

(cherry picked from commit 0b2da10a7d)

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2022-04-14 21:39:51 -07:00
Kibana Machine
21eb404d9a
chore(NA): upgrades rules_node_js to v5.4.0 (#130051) (#130070)
* chore(NA): upgrades rules_node_js to v5.4.0

* chore(NA): include expunge on bootstrap --force-install

(cherry picked from commit fb761dca4c)

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2022-04-12 18:10:24 -07:00
Tiago Costa
86bb11dfb3
chore(NA): upgrades bazel rules nodejs to v5 (#129522) (#129852)
* 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

(cherry picked from commit eb0ef19583)

# Conflicts:
#	.github/CODEOWNERS
#	packages/kbn-eslint-plugin-imports/src/integration_tests/resolve_kibana_import.test.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-08 16:30:53 -07:00
Kibana Machine
c5e953a757
Bump another dependency (#129833) (#129838)
(cherry picked from commit 3d163ec011)

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2022-04-07 20:19:53 -07:00
Kibana Machine
ab67204d05
moment 2.28.0 -> 2.29.2 (#129814) (#129830)
(cherry picked from commit 699c17afec)

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2022-04-07 18:12:41 -07:00
Kibana Machine
9a02be474a
Update @elastic/elasticsearch to v8.2.0-canary.2 (#128633) (#129287)
* Update @elastic/elasticsearch to v8.2.0-canary.2

* fix core violation

* add optional properties to our type

* update generated doc

* add another ts-ignore

* remove unused ts-expect-error

* add ts-expect-error for type typo

* add ts-expect-error infra code

* fix more errors

(cherry picked from commit 158c6170ae)

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@elastic.co>
2022-04-04 02:36:14 -07:00
Dzmitry Lemechko
519b530815
Update dependency chromedriver to v100 (#129176) (#129206)
(cherry picked from commit b70b69f3ea)
2022-04-01 08:35:32 -07:00
Kibana Machine
97e837e8a9
Consolidate ieee754 dependency (#129159) (#129162)
(cherry picked from commit 308c3f1fa3)

Co-authored-by: Thomas Watson <watson@elastic.co>
2022-04-01 02:11:31 -07:00
Kibana Machine
5bdb075673
Upgrade EUI to v53.0.1 (#128825) (#129150)
* 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>
(cherry picked from commit 6a44f1f725)

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2022-03-31 18:35:27 -07:00
Nick Partridge
676e5f19a6
Update dependency @elastic/charts to v45.1.1 (main) (#128870) (#128988)
* Update elastic-charts to 45.1.0

* fix snapshot testing

* Update to 45.1.1

* Merged core-js@^3.8.3 into resolved 3.21.1

(cherry picked from commit b41e83c2f7)

Co-authored-by: Marco Vettorello <marco.vettorello@elastic.co>
2022-03-30 15:41:53 -07:00
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