Only count markers that are part of the selected range when hovering a marker in the marker chart.#5004
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5004 +/- ##
=======================================
Coverage 88.46% 88.46%
=======================================
Files 304 304
Lines 27317 27329 +12
Branches 7377 7378 +1
=======================================
+ Hits 24165 24177 +12
Misses 2930 2930
Partials 222 222 ☔ View full report in Codecov by Sentry. |
julienw
left a comment
There was a problem hiding this comment.
I'm not super happy about this duplication, but let's do that...
I wanted to ask you about improving the tests, but I see there's no existing test for the marker chart when a preview selection is active 😱. If you want to add one I'd be glad but I won't make you do one.
|
Thanks for the review!
I'm not super happy about the duplication either. I initially wanted to make a shared method returning timeAtViewportLeft and timeAtViewportRightPlusMargin, but then I realized some of the intermediary variables are used for the other caller, so I wouldn't actually win much. |
…a marker in the marker chart.
1a18805 to
b61dd9f
Compare
Fixes a bug in the implementation of #4892.
Steps to reproduce: