From 130acffcfe018a24f3e115e6e6afe58aadda5b83 Mon Sep 17 00:00:00 2001 From: Tomasz Kajtoch Date: Tue, 16 May 2023 23:40:09 +0200 Subject: [PATCH 1/4] Upgrade EUI to v80.0.0 --- package.json | 2 +- src/dev/license_checker/config.ts | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 93edc598c48aa..afd3a611dae9a 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "@elastic/datemath": "5.0.3", "@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.6.0-canary.3", "@elastic/ems-client": "8.4.0", - "@elastic/eui": "79.0.1", + "@elastic/eui": "80.0.0", "@elastic/filesaver": "1.1.2", "@elastic/node-crypto": "1.2.1", "@elastic/numeral": "^2.5.1", diff --git a/src/dev/license_checker/config.ts b/src/dev/license_checker/config.ts index 5783cc934f8f8..fd7f3328d864f 100644 --- a/src/dev/license_checker/config.ts +++ b/src/dev/license_checker/config.ts @@ -85,6 +85,6 @@ export const LICENSE_OVERRIDES = { 'jsts@1.6.2': ['Eclipse Distribution License - v 1.0'], // cf. https://github.com/bjornharrtell/jsts '@mapbox/jsonlint-lines-primitives@2.0.2': ['MIT'], // license in readme https://github.com/tmcw/jsonlint '@elastic/ems-client@8.4.0': ['Elastic License 2.0'], - '@elastic/eui@79.0.1': ['SSPL-1.0 OR Elastic License 2.0'], + '@elastic/eui@80.0.0': ['SSPL-1.0 OR Elastic License 2.0'], 'language-subtag-registry@0.3.21': ['CC-BY-4.0'], // retired ODC‑By license https://github.com/mattcg/language-subtag-registry }; diff --git a/yarn.lock b/yarn.lock index 3db1a66f3dc26..e3c65a6b4fdb7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1543,10 +1543,10 @@ resolved "https://registry.yarnpkg.com/@elastic/eslint-plugin-eui/-/eslint-plugin-eui-0.0.2.tgz#56b9ef03984a05cc213772ae3713ea8ef47b0314" integrity sha512-IoxURM5zraoQ7C8f+mJb9HYSENiZGgRVcG4tLQxE61yHNNRDXtGDWTZh8N1KIHcsqN1CEPETjuzBXkJYF/fDiQ== -"@elastic/eui@79.0.1": - version "79.0.1" - resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-79.0.1.tgz#bb723c961f438df41f5b92292b59c204cd795558" - integrity sha512-xCB8a2DaiAIg1qsFgegmXT5niKhL6LKqhD0fCc1ut+BZDPq4XvqagwOdmYRvP9IpYDcS6sP+F89JVF0kaQsXXw== +"@elastic/eui@80.0.0": + version "80.0.0" + resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-80.0.0.tgz#33e1df8a3f193fb6a7a4f7e52a3028983856ba3a" + integrity sha512-0xWizIQ/kH9N2n9zOficqXPdRbVxCpHez2ZErnvISAEOneJ6401usI7fILGKrrvR+uyiYnNybfaP3H8HcgDa+g== dependencies: "@types/chroma-js" "^2.0.0" "@types/lodash" "^4.14.160" From 3d60af6be80df77d0ce250b2eb970aac7c399f6a Mon Sep 17 00:00:00 2001 From: Tomasz Kajtoch Date: Wed, 17 May 2023 14:59:28 +0200 Subject: [PATCH 2/4] Update FieldComponent snapshots to address EuiComboBox disabled state change --- .../__snapshots__/index.test.tsx.snap | 64 ------------------- 1 file changed, 64 deletions(-) diff --git a/packages/kbn-securitysolution-autocomplete/src/field/__tests__/__snapshots__/index.test.tsx.snap b/packages/kbn-securitysolution-autocomplete/src/field/__tests__/__snapshots__/index.test.tsx.snap index d70949aaf3641..daa0fc69771ef 100644 --- a/packages/kbn-securitysolution-autocomplete/src/field/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/kbn-securitysolution-autocomplete/src/field/__tests__/__snapshots__/index.test.tsx.snap @@ -251,24 +251,6 @@ Object { /> -
- -
@@ -316,24 +298,6 @@ Object { /> -
- -
@@ -629,20 +593,6 @@ Object { class="euiLoadingSpinner emotion-euiLoadingSpinner-m" role="progressbar" /> - @@ -699,20 +649,6 @@ Object { class="euiLoadingSpinner emotion-euiLoadingSpinner-m" role="progressbar" /> - From 14c9ba75eb4adff88b33134fe832f8e71c2725b3 Mon Sep 17 00:00:00 2001 From: Tomasz Kajtoch Date: Wed, 17 May 2023 16:51:08 +0200 Subject: [PATCH 3/4] Fix read ML access tests using the invalid 'comboBoxToggleListButton' test subject --- x-pack/test/functional/services/ml/settings_calendar.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/test/functional/services/ml/settings_calendar.ts b/x-pack/test/functional/services/ml/settings_calendar.ts index 617deeaa0634e..87ffcd2f41b83 100644 --- a/x-pack/test/functional/services/ml/settings_calendar.ts +++ b/x-pack/test/functional/services/ml/settings_calendar.ts @@ -147,7 +147,7 @@ export function MachineLearningSettingsCalendarProvider( async assertJobSelectionEnabled(expectedValue: boolean) { const isEnabled = await testSubjects.isEnabled( - 'mlCalendarJobSelection > comboBoxToggleListButton' + 'mlCalendarJobSelection > comboBoxSearchInput' ); expect(isEnabled).to.eql( expectedValue, @@ -159,7 +159,7 @@ export function MachineLearningSettingsCalendarProvider( async assertJobGroupSelectionEnabled(expectedValue: boolean) { const isEnabled = await testSubjects.isEnabled( - 'mlCalendarJobGroupSelection > comboBoxToggleListButton' + 'mlCalendarJobGroupSelection > comboBoxSearchInput' ); expect(isEnabled).to.eql( expectedValue, From 91b1c13366698c4180586c2fcd78ebbb53aba120 Mon Sep 17 00:00:00 2001 From: Tomasz Kajtoch Date: Wed, 17 May 2023 19:01:16 +0200 Subject: [PATCH 4/4] Revert Fix maps location decimal degrees showing invalid state for decimal steps --- .../toolbar_overlay/set_view_control/decimal_degrees_form.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/x-pack/plugins/maps/public/connected_components/toolbar_overlay/set_view_control/decimal_degrees_form.tsx b/x-pack/plugins/maps/public/connected_components/toolbar_overlay/set_view_control/decimal_degrees_form.tsx index 16e03d4125b44..03b23e409b770 100644 --- a/x-pack/plugins/maps/public/connected_components/toolbar_overlay/set_view_control/decimal_degrees_form.tsx +++ b/x-pack/plugins/maps/public/connected_components/toolbar_overlay/set_view_control/decimal_degrees_form.tsx @@ -90,7 +90,6 @@ export class DecimalDegreesForm extends Component { onChange={this._onLatChange} isInvalid={isLatInvalid} data-test-subj="latitudeInput" - step="any" // Browsers will validate decimals as invalid otherwise /> @@ -108,7 +107,6 @@ export class DecimalDegreesForm extends Component { onChange={this._onLonChange} isInvalid={isLonInvalid} data-test-subj="longitudeInput" - step="any" // Browsers will validate decimals as invalid otherwise /> @@ -126,7 +124,6 @@ export class DecimalDegreesForm extends Component { onChange={this._onZoomChange} isInvalid={isZoomInvalid} data-test-subj="zoomInput" - step="any" // Browsers will validate decimals as invalid otherwise />