Conversation
7c03f6c to
5c52173
Compare
There was a problem hiding this comment.
If this parameter isn't being used anymore, the functional tests appear to be still providing it, should we consider removing it there?
https://github.com/elastic/kibana/blob/master/test/functional/apps/visualize/_line_chart.js#L65
https://github.com/elastic/kibana/blob/master/test/functional/apps/visualize/_line_chart.js#L95
5c52173 to
2c35bfc
Compare
|
LGTM |
|
I would rather not remove the parameter from that method signature. But instead add the usage of it like this; from; to; And change any existing calls to getLineChartData to pass in The reason is that I have this modification in the private repo for integration testing where I make calls to get the line chart data for specific items using other attributes of the circles like this; Right now this code isn't shared between the projects but it should be. I know it's not something we need in the existing Kibana tests as they stand right now. But the current line chart test is very simple with only a single line and this change allows us to test more complex charts. In fact other chart types should probably get a change like this too. |
do not hardcode css-snippet
2c35bfc to
56c130a
Compare
|
thanks @LeeDr. I reintroduced that change. |
--------- **Commit 1:** remove unused vars do not hardcode css-snippet * Original sha: 56c130a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-05T15:47:05Z
--------- **Commit 1:** remove unused vars do not hardcode css-snippet * Original sha: 56c130a * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-05T15:47:05Z
|
@thomasneirynck did you run the Selenium tests locally? I think you may have copy/pasted something wrong. There shouldn't be backticks here; |
|
@LeeDr I used the ES6 template literal syntax for this (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals). It's shorthand to avoid the string concatenation. |
|
@thomasneirynck Cool. I learned something new! I thought it was a copy of the markdown syntax I used to indicate that as code! But now I see how it works. |
[backport] PR #8558 to 5.x - Remove unused vars
[backport] PR #8558 to 5.0 - Remove unused vars
[backport] PR elastic#8558 to 5.x - Remove unused vars Former-commit-id: ec2f4a4
`101.3.0` ⏩ `101.4.0` [Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams) ## Changes This PR only updates tests and snapshots related to changes on EUI side: - updated `aria-current="true"` to `aria-current="page"` - updated icon usage `userAvatar` to `user` ## Package updates ### `@elastic/eui` #### [`v101.4.0`](https://github.com/elastic/eui/releases/v101.4.0) - Spread `labelProps` to the `label` element in `EuiCheckableCard` ([#8586](elastic/eui#8586)) - Add `controls`, `flask`, `comment`, and `readOnly` glyphs to `EuiIcon` ([#8580](elastic/eui#8580)) - Refactored `EuiExpression`, `EuiFacetGroup`, `EuiFacetButton`, `EuiFilterGroup`, `EuiHeader`, `EuiImage` and `EuiListGroup` to memoize their internal Emotion styles ([#8565](elastic/eui#8565)) - Updated global `border.radius.medium` token value for default `Borealis` theme to `4px` ([#8563](elastic/eui#8563)) - Updated `EuiProvider` to build themes including `highContrastMode` ([#8558](elastic/eui#8558)) **Accessibility** - Removed the `aria-label` attribute from the `ul` element in `EuiPagination` to avoid duplicate screen reader output ([#8597](elastic/eui#8597)) - Set a more specific `aria-current="page"` on list items in `EuiPagination` ([#8597](elastic/eui#8597)) - Added `aria-modal` to `EuiFlyout` with `type="overlay"` ([#8591](elastic/eui#8591)) **Dependency updates** - Updated `@elastic/prismjs-esql` to v1.1.0 ([#8587](elastic/eui#8587)) ### `@elastic/eui-theme-borealis@0.2.0` - Updated component tokens to use `computed` values to ensure correct inheritance from theme overrides ([#8558](elastic/eui#8558)) - Added `overrides.HCM` to `euiThemeBorealis` to support theme internal overrides ([#8558](elastic/eui#8558)) - Updated `border.radius.medium` token value to `4px` ([#8563](elastic/eui#8563)) ### `@elastic/eui-theme-common@0.2.0` - Added support for theme `overrides` as optional part of `EuiThemeShape` ([#8558](elastic/eui#8558)) - Updated `getComputed` to support high contrast mode overrides defined on `overrides.HCM` ([#8558](elastic/eui#8558)) --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
`101.3.0` ⏩ `101.4.0` [Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams) ## Changes This PR only updates tests and snapshots related to changes on EUI side: - updated `aria-current="true"` to `aria-current="page"` - updated icon usage `userAvatar` to `user` ## Package updates ### `@elastic/eui` #### [`v101.4.0`](https://github.com/elastic/eui/releases/v101.4.0) - Spread `labelProps` to the `label` element in `EuiCheckableCard` ([elastic#8586](elastic/eui#8586)) - Add `controls`, `flask`, `comment`, and `readOnly` glyphs to `EuiIcon` ([elastic#8580](elastic/eui#8580)) - Refactored `EuiExpression`, `EuiFacetGroup`, `EuiFacetButton`, `EuiFilterGroup`, `EuiHeader`, `EuiImage` and `EuiListGroup` to memoize their internal Emotion styles ([elastic#8565](elastic/eui#8565)) - Updated global `border.radius.medium` token value for default `Borealis` theme to `4px` ([elastic#8563](elastic/eui#8563)) - Updated `EuiProvider` to build themes including `highContrastMode` ([elastic#8558](elastic/eui#8558)) **Accessibility** - Removed the `aria-label` attribute from the `ul` element in `EuiPagination` to avoid duplicate screen reader output ([elastic#8597](elastic/eui#8597)) - Set a more specific `aria-current="page"` on list items in `EuiPagination` ([elastic#8597](elastic/eui#8597)) - Added `aria-modal` to `EuiFlyout` with `type="overlay"` ([elastic#8591](elastic/eui#8591)) **Dependency updates** - Updated `@elastic/prismjs-esql` to v1.1.0 ([elastic#8587](elastic/eui#8587)) ### `@elastic/eui-theme-borealis@0.2.0` - Updated component tokens to use `computed` values to ensure correct inheritance from theme overrides ([elastic#8558](elastic/eui#8558)) - Added `overrides.HCM` to `euiThemeBorealis` to support theme internal overrides ([elastic#8558](elastic/eui#8558)) - Updated `border.radius.medium` token value to `4px` ([elastic#8563](elastic/eui#8563)) ### `@elastic/eui-theme-common@0.2.0` - Added support for theme `overrides` as optional part of `EuiThemeShape` ([elastic#8558](elastic/eui#8558)) - Updated `getComputed` to support high contrast mode overrides defined on `overrides.HCM` ([elastic#8558](elastic/eui#8558)) --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit d2d2765) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/explore/components/paginated_table/__snapshots__/index.test.tsx.snap # x-pack/solutions/security/plugins/security_solution/public/explore/components/paginated_table/index.test.tsx # x-pack/solutions/security/plugins/security_solution/public/explore/hosts/components/uncommon_process_table/__snapshots__/index.test.tsx.snap # x-pack/solutions/security/plugins/security_solution/public/explore/network/components/network_dns_table/__snapshots__/index.test.tsx.snap # x-pack/solutions/security/plugins/security_solution/public/explore/network/components/network_http_table/__snapshots__/index.test.tsx.snap # x-pack/solutions/security/plugins/security_solution/public/explore/network/components/network_top_countries_table/__snapshots__/index.test.tsx.snap # x-pack/solutions/security/plugins/security_solution/public/explore/network/components/network_top_n_flow_table/__snapshots__/index.test.tsx.snap # x-pack/solutions/security/plugins/security_solution/public/explore/network/components/tls_table/__snapshots__/index.test.tsx.snap # x-pack/solutions/security/plugins/security_solution/public/explore/network/components/users_table/__snapshots__/index.test.tsx.snap
`101.3.0` ⏩ `101.4.0` [Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams) >[!IMPORTANT] This PR is a direct sibling to this [upgrade PR](#218778) to `main`. The difference is that it adds a standalone EUI package with the previous "Amsterdam" theme. Apart from the theme difference, **there are no further changes added**. ## Changes This PR only updates tests and snapshots related to changes on EUI side: - updated `aria-current="true"` to `aria-current="page"` - updated icon usage `userAvatar` to `user` ## Package updates ### `@elastic/eui` #### [`v101.4.0`](https://github.com/elastic/eui/releases/v101.4.0) - Spread `labelProps` to the `label` element in `EuiCheckableCard` ([#8586](elastic/eui#8586)) - Add `controls`, `flask`, `comment`, and `readOnly` glyphs to `EuiIcon` ([#8580](elastic/eui#8580)) - Refactored `EuiExpression`, `EuiFacetGroup`, `EuiFacetButton`, `EuiFilterGroup`, `EuiHeader`, `EuiImage` and `EuiListGroup` to memoize their internal Emotion styles ([#8565](elastic/eui#8565)) - Updated global `border.radius.medium` token value for default `Borealis` theme to `4px` ([#8563](elastic/eui#8563)) - Updated `EuiProvider` to build themes including `highContrastMode` ([#8558](elastic/eui#8558)) **Accessibility** - Removed the `aria-label` attribute from the `ul` element in `EuiPagination` to avoid duplicate screen reader output ([#8597](elastic/eui#8597)) - Set a more specific `aria-current="page"` on list items in `EuiPagination` ([#8597](elastic/eui#8597)) - Added `aria-modal` to `EuiFlyout` with `type="overlay"` ([#8591](elastic/eui#8591)) **Dependency updates** - Updated `@elastic/prismjs-esql` to v1.1.0 ([#8587](elastic/eui#8587)) ### `@elastic/eui-theme-borealis@0.2.0` - Updated component tokens to use `computed` values to ensure correct inheritance from theme overrides ([#8558](elastic/eui#8558)) - Added `overrides.HCM` to `euiThemeBorealis` to support theme internal overrides ([#8558](elastic/eui#8558)) - Updated `border.radius.medium` token value to `4px` ([#8563](elastic/eui#8563)) ### `@elastic/eui-theme-common@0.2.0` - Added support for theme `overrides` as optional part of `EuiThemeShape` ([#8558](elastic/eui#8558)) - Updated `getComputed` to support high contrast mode overrides defined on `overrides.HCM` ([#8558](elastic/eui#8558))
# Backport This will backport the following commits from `main` to `9.0`: - [Upgrade EUI to v101.4.0 (#218778)](#218778) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Lene Gadewoll","email":"lene.gadewoll@elastic.co"},"sourceCommit":{"committedDate":"2025-04-24T13:54:52Z","message":"Upgrade EUI to v101.4.0 (#218778)\n\n`101.3.0` ⏩ `101.4.0`\n\n[Questions? Please see our Kibana upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n## Changes\n\nThis PR only updates tests and snapshots related to changes on EUI side:\n- updated `aria-current=\"true\"` to `aria-current=\"page\"`\n- updated icon usage `userAvatar` to `user`\n\n## Package updates\n\n### `@elastic/eui`\n\n#### [`v101.4.0`](https://github.com/elastic/eui/releases/v101.4.0)\n\n- Spread `labelProps` to the `label` element in `EuiCheckableCard`\n([#8586](https://github.com/elastic/eui/pull/8586))\n- Add `controls`, `flask`, `comment`, and `readOnly` glyphs to `EuiIcon`\n([#8580](https://github.com/elastic/eui/pull/8580))\n- Refactored `EuiExpression`, `EuiFacetGroup`, `EuiFacetButton`,\n`EuiFilterGroup`, `EuiHeader`, `EuiImage` and `EuiListGroup` to memoize\ntheir internal Emotion styles\n([#8565](https://github.com/elastic/eui/pull/8565))\n- Updated global `border.radius.medium` token value for default\n`Borealis` theme to `4px`\n([#8563](https://github.com/elastic/eui/pull/8563))\n- Updated `EuiProvider` to build themes including `highContrastMode`\n([#8558](https://github.com/elastic/eui/pull/8558))\n\n**Accessibility**\n\n- Removed the `aria-label` attribute from the `ul` element in\n`EuiPagination` to avoid duplicate screen reader output\n([#8597](https://github.com/elastic/eui/pull/8597))\n- Set a more specific `aria-current=\"page\"` on list items in\n`EuiPagination` ([#8597](https://github.com/elastic/eui/pull/8597))\n- Added `aria-modal` to `EuiFlyout` with `type=\"overlay\"`\n([#8591](https://github.com/elastic/eui/pull/8591))\n\n**Dependency updates**\n\n- Updated `@elastic/prismjs-esql` to v1.1.0\n([#8587](https://github.com/elastic/eui/pull/8587))\n\n### `@elastic/eui-theme-borealis@0.2.0`\n\n- Updated component tokens to use `computed` values to ensure correct\ninheritance from theme overrides\n([#8558](https://github.com/elastic/eui/pull/8558))\n- Added `overrides.HCM` to `euiThemeBorealis` to support theme internal\noverrides ([#8558](https://github.com/elastic/eui/pull/8558))\n- Updated `border.radius.medium` token value to `4px`\n([#8563](https://github.com/elastic/eui/pull/8563))\n\n### `@elastic/eui-theme-common@0.2.0`\n\n- Added support for theme `overrides` as optional part of\n`EuiThemeShape` ([#8558](https://github.com/elastic/eui/pull/8558))\n- Updated `getComputed` to support high contrast mode overrides defined\non `overrides.HCM` ([#8558](https://github.com/elastic/eui/pull/8558))\n\n---------\n\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"d2d27658f36040752ee7747bddb9d17030823352","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","EUI","backport:prev-minor","v9.1.0"],"title":"Upgrade EUI to v101.4.0","number":218778,"url":"https://github.com/elastic/kibana/pull/218778","mergeCommit":{"message":"Upgrade EUI to v101.4.0 (#218778)\n\n`101.3.0` ⏩ `101.4.0`\n\n[Questions? Please see our Kibana upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n## Changes\n\nThis PR only updates tests and snapshots related to changes on EUI side:\n- updated `aria-current=\"true\"` to `aria-current=\"page\"`\n- updated icon usage `userAvatar` to `user`\n\n## Package updates\n\n### `@elastic/eui`\n\n#### [`v101.4.0`](https://github.com/elastic/eui/releases/v101.4.0)\n\n- Spread `labelProps` to the `label` element in `EuiCheckableCard`\n([#8586](https://github.com/elastic/eui/pull/8586))\n- Add `controls`, `flask`, `comment`, and `readOnly` glyphs to `EuiIcon`\n([#8580](https://github.com/elastic/eui/pull/8580))\n- Refactored `EuiExpression`, `EuiFacetGroup`, `EuiFacetButton`,\n`EuiFilterGroup`, `EuiHeader`, `EuiImage` and `EuiListGroup` to memoize\ntheir internal Emotion styles\n([#8565](https://github.com/elastic/eui/pull/8565))\n- Updated global `border.radius.medium` token value for default\n`Borealis` theme to `4px`\n([#8563](https://github.com/elastic/eui/pull/8563))\n- Updated `EuiProvider` to build themes including `highContrastMode`\n([#8558](https://github.com/elastic/eui/pull/8558))\n\n**Accessibility**\n\n- Removed the `aria-label` attribute from the `ul` element in\n`EuiPagination` to avoid duplicate screen reader output\n([#8597](https://github.com/elastic/eui/pull/8597))\n- Set a more specific `aria-current=\"page\"` on list items in\n`EuiPagination` ([#8597](https://github.com/elastic/eui/pull/8597))\n- Added `aria-modal` to `EuiFlyout` with `type=\"overlay\"`\n([#8591](https://github.com/elastic/eui/pull/8591))\n\n**Dependency updates**\n\n- Updated `@elastic/prismjs-esql` to v1.1.0\n([#8587](https://github.com/elastic/eui/pull/8587))\n\n### `@elastic/eui-theme-borealis@0.2.0`\n\n- Updated component tokens to use `computed` values to ensure correct\ninheritance from theme overrides\n([#8558](https://github.com/elastic/eui/pull/8558))\n- Added `overrides.HCM` to `euiThemeBorealis` to support theme internal\noverrides ([#8558](https://github.com/elastic/eui/pull/8558))\n- Updated `border.radius.medium` token value to `4px`\n([#8563](https://github.com/elastic/eui/pull/8563))\n\n### `@elastic/eui-theme-common@0.2.0`\n\n- Added support for theme `overrides` as optional part of\n`EuiThemeShape` ([#8558](https://github.com/elastic/eui/pull/8558))\n- Updated `getComputed` to support high contrast mode overrides defined\non `overrides.HCM` ([#8558](https://github.com/elastic/eui/pull/8558))\n\n---------\n\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"d2d27658f36040752ee7747bddb9d17030823352"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/218778","number":218778,"mergeCommit":{"message":"Upgrade EUI to v101.4.0 (#218778)\n\n`101.3.0` ⏩ `101.4.0`\n\n[Questions? Please see our Kibana upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n## Changes\n\nThis PR only updates tests and snapshots related to changes on EUI side:\n- updated `aria-current=\"true\"` to `aria-current=\"page\"`\n- updated icon usage `userAvatar` to `user`\n\n## Package updates\n\n### `@elastic/eui`\n\n#### [`v101.4.0`](https://github.com/elastic/eui/releases/v101.4.0)\n\n- Spread `labelProps` to the `label` element in `EuiCheckableCard`\n([#8586](https://github.com/elastic/eui/pull/8586))\n- Add `controls`, `flask`, `comment`, and `readOnly` glyphs to `EuiIcon`\n([#8580](https://github.com/elastic/eui/pull/8580))\n- Refactored `EuiExpression`, `EuiFacetGroup`, `EuiFacetButton`,\n`EuiFilterGroup`, `EuiHeader`, `EuiImage` and `EuiListGroup` to memoize\ntheir internal Emotion styles\n([#8565](https://github.com/elastic/eui/pull/8565))\n- Updated global `border.radius.medium` token value for default\n`Borealis` theme to `4px`\n([#8563](https://github.com/elastic/eui/pull/8563))\n- Updated `EuiProvider` to build themes including `highContrastMode`\n([#8558](https://github.com/elastic/eui/pull/8558))\n\n**Accessibility**\n\n- Removed the `aria-label` attribute from the `ul` element in\n`EuiPagination` to avoid duplicate screen reader output\n([#8597](https://github.com/elastic/eui/pull/8597))\n- Set a more specific `aria-current=\"page\"` on list items in\n`EuiPagination` ([#8597](https://github.com/elastic/eui/pull/8597))\n- Added `aria-modal` to `EuiFlyout` with `type=\"overlay\"`\n([#8591](https://github.com/elastic/eui/pull/8591))\n\n**Dependency updates**\n\n- Updated `@elastic/prismjs-esql` to v1.1.0\n([#8587](https://github.com/elastic/eui/pull/8587))\n\n### `@elastic/eui-theme-borealis@0.2.0`\n\n- Updated component tokens to use `computed` values to ensure correct\ninheritance from theme overrides\n([#8558](https://github.com/elastic/eui/pull/8558))\n- Added `overrides.HCM` to `euiThemeBorealis` to support theme internal\noverrides ([#8558](https://github.com/elastic/eui/pull/8558))\n- Updated `border.radius.medium` token value to `4px`\n([#8563](https://github.com/elastic/eui/pull/8563))\n\n### `@elastic/eui-theme-common@0.2.0`\n\n- Added support for theme `overrides` as optional part of\n`EuiThemeShape` ([#8558](https://github.com/elastic/eui/pull/8558))\n- Updated `getComputed` to support high contrast mode overrides defined\non `overrides.HCM` ([#8558](https://github.com/elastic/eui/pull/8558))\n\n---------\n\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"d2d27658f36040752ee7747bddb9d17030823352"}}]}] BACKPORT-->
`101.3.0` ⏩ `101.4.0` [Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams) ## Changes This PR only updates tests and snapshots related to changes on EUI side: - updated `aria-current="true"` to `aria-current="page"` - updated icon usage `userAvatar` to `user` ## Package updates ### `@elastic/eui` #### [`v101.4.0`](https://github.com/elastic/eui/releases/v101.4.0) - Spread `labelProps` to the `label` element in `EuiCheckableCard` ([elastic#8586](elastic/eui#8586)) - Add `controls`, `flask`, `comment`, and `readOnly` glyphs to `EuiIcon` ([elastic#8580](elastic/eui#8580)) - Refactored `EuiExpression`, `EuiFacetGroup`, `EuiFacetButton`, `EuiFilterGroup`, `EuiHeader`, `EuiImage` and `EuiListGroup` to memoize their internal Emotion styles ([elastic#8565](elastic/eui#8565)) - Updated global `border.radius.medium` token value for default `Borealis` theme to `4px` ([elastic#8563](elastic/eui#8563)) - Updated `EuiProvider` to build themes including `highContrastMode` ([elastic#8558](elastic/eui#8558)) **Accessibility** - Removed the `aria-label` attribute from the `ul` element in `EuiPagination` to avoid duplicate screen reader output ([elastic#8597](elastic/eui#8597)) - Set a more specific `aria-current="page"` on list items in `EuiPagination` ([elastic#8597](elastic/eui#8597)) - Added `aria-modal` to `EuiFlyout` with `type="overlay"` ([elastic#8591](elastic/eui#8591)) **Dependency updates** - Updated `@elastic/prismjs-esql` to v1.1.0 ([elastic#8587](elastic/eui#8587)) ### `@elastic/eui-theme-borealis@0.2.0` - Updated component tokens to use `computed` values to ensure correct inheritance from theme overrides ([elastic#8558](elastic/eui#8558)) - Added `overrides.HCM` to `euiThemeBorealis` to support theme internal overrides ([elastic#8558](elastic/eui#8558)) - Updated `border.radius.medium` token value to `4px` ([elastic#8563](elastic/eui#8563)) ### `@elastic/eui-theme-common@0.2.0` - Added support for theme `overrides` as optional part of `EuiThemeShape` ([elastic#8558](elastic/eui#8558)) - Updated `getComputed` to support high contrast mode overrides defined on `overrides.HCM` ([elastic#8558](elastic/eui#8558)) --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
fix #8533. cleanup test code.