-
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 diff
: duplicate revisions not returned
#7265
Comments
What is the situation that is causing you to need to pass duplicate revisions? Also, why is deduplication the behavior you expect? This seems like it could be surprising and confusing if someone passes multiple identifiers not realizing they resolve to the same revision. |
A couple of examples of things that I ran into are branch and HEAD for the previous commit and checkpoint tip and HEAD when the HEAD is being moved around in a checkpoint experiment. It seems like this doesn't happen with
You are correct, I got that wrong. Passing back all of the revisions would be the least surprising thing to do. |
Would this behavior work for vscode needs? |
Yep |
I've just run into this again whilst testing an apply experiment workflow. After applying an experiment to the workspace I get:
Where |
@mattseddon Is it the same as above? It seems like the original issue was about duplicate refs that pointing to the same commit. From the error |
I saw it as duplicate because I assumed that when you checkout the commit into the workspace it changes the ref for That was the entirety of the error message. The default behaviour is that when you call |
Can you reproduce this consistently with any experiment ref or was it a one-time thing? I'm able to |
Looks like you are right @dberenbaum I cannot recreate. We can use the full hash it may actually simplify the code. We will still need to return the short-sha whenever we show it in a toast popup. |
Closing this as not required for the next iteration of plots. |
Bug Report
Description
If I give plots diff two revisions that are actually the same (e.g
f123def
andHEAD
when that commit is theHEAD
or simplyf123def
&f123def
) then neither are returned with the output.Reproduce
A mixture of duplicate and non-duplicate entries will return the output only for non-duplicates:
output for HEAD only
Expected
Duplicate revs return a single consolidated entry for that revision with a consistent identifier (should probably always be the short sha but unsure).
Environment information
Output of
dvc doctor
:Additional Information (if any): Please let me know if you need any further background on this. Thank you
The text was updated successfully, but these errors were encountered: