Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(highlighter): clip path unique id #490

Merged

Conversation

markov00
Copy link
Member

@markov00 markov00 commented Dec 9, 2019

Summary

This PR fix the issue of having multiple id with the same value for the highlighter clip path. This commit add the unique chartId to the clipPath id.

fix #489

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

  • [ ] Any consumer-facing exports were added to src/index.ts (and stories only import from ../src except for test data & storybook)
  • [ ] This was checked for cross-browser compatibility, including a check against IE11
  • [ ] Proper documentation or storybook story was added for features that require explanation or tutorials
  • Unit tests were updated or added to match the most common scenarios
  • Each commit follows the convention

To uniquely identify the clipPath for the highlighter in a multi-chart page, this commit add the
chartId to the clipPath id

fix elastic#489
@markov00 markov00 added the bug Something isn't working label Dec 9, 2019
@markov00 markov00 changed the title Fix highlighter clip path on multi-chart fix(highlighter): clip path unique id Dec 9, 2019
@codecov-io
Copy link

codecov-io commented Dec 9, 2019

Codecov Report

Merging #490 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #490      +/-   ##
==========================================
+ Coverage   83.82%   83.83%   +0.01%     
==========================================
  Files         158      169      +11     
  Lines        4723     4875     +152     
  Branches      961      979      +18     
==========================================
+ Hits         3959     4087     +128     
- Misses        749      772      +23     
- Partials       15       16       +1
Impacted Files Coverage Δ
.../chart_types/xy_chart/renderer/dom/highlighter.tsx 82.14% <100%> (+0.66%) ⬆️
src/mocks/series/series.ts 81.96% <0%> (ø)
src/mocks/specs/specs.ts 76.74% <0%> (ø)
src/mocks/scale/index.ts 100% <0%> (ø)
src/mocks/index.ts 100% <0%> (ø)
src/mocks/series/index.ts 100% <0%> (ø)
src/mocks/series/seriesIdentifiers.ts 93.33% <0%> (ø)
src/mocks/scale/scale.ts 87.5% <0%> (ø)
src/mocks/utils.ts 100% <0%> (ø)
src/mocks/series/utils.ts 88.88% <0%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f74017...f7b7332. Read the comment docs.

Copy link
Contributor

@monfera monfera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Looks great and does what the PR says, indeed these things need to be globally unique on the page, and the chartId is unique due to using uuid

@markov00 markov00 merged commit dc93624 into elastic:master Dec 12, 2019
@markov00 markov00 deleted the 2019-12-09_fix_highlighter_multichart branch December 12, 2019 10:08
markov00 pushed a commit that referenced this pull request Dec 12, 2019
## [15.0.4](v15.0.3...v15.0.4) (2019-12-12)

### Bug Fixes

* **highlighter:** clip path unique id ([#490](#490)) ([dc93624](dc93624)), closes [#489](#489)
@markov00
Copy link
Member Author

🎉 This PR is included in version 15.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Dec 12, 2019
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Issue released publicly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Highlighter clip path interference with multiple instances
3 participants