-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
plots
: standardise across DVC/Studio/VS Code
#9931
Conversation
@@ -274,11 +274,9 @@ def flat_datapoints(self, revision): # noqa: C901, PLR0912 | |||
_update_all( | |||
datapoints, | |||
update_dict={ | |||
VERSION_FIELD: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[F] The reason for having this inside of a nested dict was because we wanted to get rid of the data before it showed up in a tooltip. However, none of the tooltips from the updated templates will show any of this data. It is therefore safe to remove.
Codecov ReportAll modified and coverable lines are covered by tests β
Additional details and impacted files@@ Coverage Diff @@
## main #9931 +/- ##
=======================================
Coverage 90.35% 90.35%
=======================================
Files 496 496
Lines 37754 37737 -17
Branches 5490 5485 -5
=======================================
- Hits 34113 34099 -14
+ Misses 2980 2978 -2
+ Partials 661 660 -1 β View full report in Codecov by Sentry. |
plots
: Standardise/consolidate plots data across productsplots
: standardise/consolidate plots data across products
What I can recall from #9019 and iterative/dvc-render#119 is:
|
Thanks @dberenbaum. All good information. For 1. IIUC this only happened for the HTML output and not in Studio/VS Code. Is that correct? |
Not sure I follow. If I use a custom template and that template includes the field |
19a9c51
to
e24b0ec
Compare
e24b0ec
to
1eab66d
Compare
60111ac
to
c63b19a
Compare
e89bf32
to
9ca524d
Compare
9ca524d
to
c2eebeb
Compare
c2eebeb
to
4d94338
Compare
plots
: standardise/consolidate plots data across productsplots
: standardise across DVC/Studio/VS Code
42a542b
to
1d367d0
Compare
7ea741e
to
17155a1
Compare
@mattseddon Where did we land on breaking changes for custom templates? Are there known use cases that will or won't work with old custom templates? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattseddon This one looks nice! Good to see that all that added code in dvc-render at least made dvc a bit cleaner π (and I assume made VS Code and Studio much cleaner). Once dvc-render is released and we update the pinned version here, I'll approve.
I feel like we've verbally agreed on this a few times but there is at least one reference in #9940 here: #9940 (comment)
With that said custom templates should not completely break, but they may not render as expected because we will no longer be injecting values into them with VS Code or Studio. |
17155a1
to
69cc821
Compare
We have definitely agreed before. I just couldn't remember exactly what we agreed, so thanks for the refresher. Do you think there's anything helpful to document about migrating old custom templates? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattseddon I'm approving to unblock you, but please make sure not to forget the version bump.
e140da0
to
c3dbd03
Compare
β¦nitions as strings)
c3dbd03
to
984860b
Compare
β I have followed the Contributing to DVC checklist.
π If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
Thank you for the contribution - we'll try to review it as soon as possible. π
Related to #9940
This PR contains changes to accept the version of
dvc-render
created by iterative/dvc-render#142. See that PR for a detailed description of the overall change.Docs:
plots
: standardise across DVC/Studio/VS CodeΒ dvc.org#4978Downstream: