From e6c2163de1292993a373f1dc606698e44720a2f2 Mon Sep 17 00:00:00 2001 From: Marco Vettorello Date: Fri, 16 Apr 2021 00:50:36 +0200 Subject: [PATCH] Update dependency @elastic/charts to v28.2.0 (master) (#97005) (#97319) * Update dependency @elastic/charts to v28.2.0 Co-authored-by: Renovate Bot Co-authored-by: nickofthyme Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Marco Vettorello Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot Co-authored-by: nickofthyme Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- package.json | 2 +- .../render_function.test.tsx | 11 ++++- .../pie_visualization/render_helpers.test.ts | 40 +++++++++++++++++-- yarn.lock | 8 ++-- 4 files changed, 51 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index b87421ece77f1b..54b3d41d7cb624 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "dependencies": { "@elastic/apm-rum": "^5.6.1", "@elastic/apm-rum-react": "^1.2.5", - "@elastic/charts": "28.0.1", + "@elastic/charts": "28.2.0", "@elastic/datemath": "link:bazel-bin/packages/elastic-datemath/npm_module", "@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@7.13.0-canary.1", "@elastic/ems-client": "7.12.0", diff --git a/x-pack/plugins/lens/public/pie_visualization/render_function.test.tsx b/x-pack/plugins/lens/public/pie_visualization/render_function.test.tsx index e18878ea064ef9..4dcd9772b61b40 100644 --- a/x-pack/plugins/lens/public/pie_visualization/render_function.test.tsx +++ b/x-pack/plugins/lens/public/pie_visualization/render_function.test.tsx @@ -217,7 +217,16 @@ describe('PieVisualization component', () => { const component = shallow(); component.find(Settings).first().prop('onElementClick')!([ [ - [{ groupByRollup: 6, value: 6, depth: 1, path: [], sortIndex: 1 }], + [ + { + groupByRollup: 6, + value: 6, + depth: 1, + path: [], + sortIndex: 1, + smAccessorValue: '', + }, + ], {} as SeriesIdentifier, ], ]); diff --git a/x-pack/plugins/lens/public/pie_visualization/render_helpers.test.ts b/x-pack/plugins/lens/public/pie_visualization/render_helpers.test.ts index 6e40b07af67133..6ea8610384e479 100644 --- a/x-pack/plugins/lens/public/pie_visualization/render_helpers.test.ts +++ b/x-pack/plugins/lens/public/pie_visualization/render_helpers.test.ts @@ -66,7 +66,16 @@ describe('render helpers', () => { }; expect( getFilterContext( - [{ groupByRollup: 'Test', value: 100, depth: 1, path: [], sortIndex: 1 }], + [ + { + groupByRollup: 'Test', + value: 100, + depth: 1, + path: [], + sortIndex: 1, + smAccessorValue: '', + }, + ], ['a'], table ) @@ -98,7 +107,16 @@ describe('render helpers', () => { }; expect( getFilterContext( - [{ groupByRollup: 'Test', value: 100, depth: 1, path: [], sortIndex: 1 }], + [ + { + groupByRollup: 'Test', + value: 100, + depth: 1, + path: [], + sortIndex: 1, + smAccessorValue: '', + }, + ], ['a', 'b'], table ) @@ -131,8 +149,22 @@ describe('render helpers', () => { expect( getFilterContext( [ - { groupByRollup: 'Test', value: 100, depth: 1, path: [], sortIndex: 1 }, - { groupByRollup: 'Two', value: 5, depth: 1, path: [], sortIndex: 1 }, + { + groupByRollup: 'Test', + value: 100, + depth: 1, + path: [], + sortIndex: 1, + smAccessorValue: '', + }, + { + groupByRollup: 'Two', + value: 5, + depth: 1, + path: [], + sortIndex: 1, + smAccessorValue: '', + }, ], ['a', 'b'], table diff --git a/yarn.lock b/yarn.lock index 016cf64b9a0cb4..dfe118d14a55f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1359,10 +1359,10 @@ dependencies: object-hash "^1.3.0" -"@elastic/charts@28.0.1": - version "28.0.1" - resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-28.0.1.tgz#615f393dc620304fb6cdbc3f6eaf2d6c53e39236" - integrity sha512-uuo7mWTYU4/rdg1a7hxRnNJz7Zjt/u18YwNV4D2SPvBqCDsNxtdRpiF+nLWFDIvBGoAFIGmHIv3cn88Y9dKqdg== +"@elastic/charts@28.2.0": + version "28.2.0" + resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-28.2.0.tgz#3de65668242ed680f3acd72e2befb01a530c01c2" + integrity sha512-18fhbqnb7/5OrpgcoWcnZAfG9O7isRBAkjt2c+ycZoaTsSmPpSRAIlMxAMt36ZXxA7yaSwUVeI28uuKqb1odZg== dependencies: "@popperjs/core" "^2.4.0" chroma-js "^2.1.0"