Skip to content

Conversation

@mattseddon
Copy link
Contributor

@mattseddon mattseddon commented Sep 28, 2022

Follow up from #2452

I tried a lot of things to make this a general solution.

  1. Updating the encoding in the correct place makes it impossible to turn the legend back on for zoomed-in plots.
  2. Regex-based solutions are risky as they could update the spec in unexpected ways.
  3. Considered sending two versions of the template along with the details on how to fill it to the webview but I believe that is overkill because we are fixing an edge case.

I ended up going with a specific solution to patch the template only for shapes. I think this is good enough to get us started and to the next iteration from the DVC team.

Screenshot

Screen Shot 2022-09-28 at 7 01 26 pm

If users run into this issue then we can revisit but I think this is good enough for this iteration. I do not envisage many people needing/seeing shapes.

@mattseddon mattseddon added the bug Something isn't working label Sep 28, 2022
@mattseddon mattseddon self-assigned this Sep 28, 2022
@mattseddon
Copy link
Contributor Author

Note: Should be able to test this with 2.28.0 of DVC.

disable: false
disable: false,
symbolFillColor: 'transparent',
symbolStrokeColor: 'grey'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

[F] Moved these as per the ask in #2452. Thought that the approach that I was going to take was going to be significantly different to this one.

@mattseddon mattseddon marked this pull request as ready for review September 28, 2022 10:47
@mattseddon
Copy link
Contributor Author

Closes #1757

Copy link
Contributor

@julieg18 julieg18 left a comment

Choose a reason for hiding this comment

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

Great work!

@mattseddon mattseddon enabled auto-merge (squash) September 28, 2022 20:41
@mattseddon mattseddon disabled auto-merge September 28, 2022 20:41
@mattseddon mattseddon enabled auto-merge (squash) September 28, 2022 20:42
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit cb9b020 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.9%.

View more on Code Climate.

@mattseddon mattseddon merged commit b24f2db into main Sep 28, 2022
@mattseddon mattseddon deleted the patch-shape-in-on-hover branch September 28, 2022 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants