diff: update docs according to the new patch#953
Conversation
|
@jorgeorpinel @MrOutis I'll take this over and get it done. @jorgeorpinel please, focus on the existing backlog. |
|
Thanks Ivan. I just want to post the link to the original PR: treeverse/dvc/pull/3229 Also, there will probably be some conflicts here or in #933, depending on which one is merged first.
|
|
Someone on Discord just noticed this doc is outdated. Should we bump the priority up a little? I can take it if needed. |
|
@jorgeorpinel I'm on it. let's get api done (i'll try to review it soon), and then switch to updating get started and other new stuff. |
|
The next iteration will be done after we get more clarify on how it should actually behave in certain cases - see treeverse/dvc#3386 and treeverse/dvc#3385 . Also, I would like to reconsider the way we do examples (with all these expandable sections). It's time to utilize Katacoda or other online services. For each example there should be a link to go and try online (which includes the instruction on how it was setup in the first place). This way we can decouple and simplify examples we write. |
| of the output produced. See the details and example below. | ||
|
|
||
| `dvc diff` does not have an effect when the repository is not tracked by Git, | ||
| for example when `dvc init` was used with the `--no-scm` option. |
There was a problem hiding this comment.
dvc diffdoes not have an effect... whendvc initwas used with the--no-scmoption
Somewhat unrelated but actually, I checked and this isn't correct. You can create a git repo, then a dvc init --no-scm in it, dvc add a data file, commit (A); change and dvc add the data file again, commit (B), and dvc diff HEAD^ will work.
Is this buggy behavior? If not, we just need to rewrite the paragraph above to something more correct.
There was a problem hiding this comment.
it feels more or less correct to me - the main thing here is when the repository is not tracked by Git. In your example it is tracked by Git, right? unless I'm missing something.
There was a problem hiding this comment.
Yes it's tracked by Git, but I initialized the DVC project with dvc init --no-scm. The paragraph above reads ...`dvc diff` does not have an effect... for example when `dvc init` was used with the `--no-scm` option but it does have an effect, as long as there is a Git repo underneath. Maybe just remove the part about --no-scm in the paragraph?
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
There was a problem hiding this comment.
It's fine, I still don't see a problem. It's intuitively clear what does it mean, even if implementation is not 100% correct and allows to have a mix of Git and --no-scm.
There was a problem hiding this comment.
Hmmm OK but just removing that last incorrect statement wouldn't hurt either.
This comment has been minimized.
This comment has been minimized.
|
Oh and from treeverse/dvc#3229 the only thing that's not reflected in the cmd ref is "Allow running dvc diff when there's no cache available." but not sure it's worth mentioning in docs. |
yes, it'll be a separate PR for sure! We need to merge it sooner.
it's not that large, we just need to start doing this step by step. I'll create a separate section on Katacoda to define structure and create examples for |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
For the record, created a few tickets regarding the cache-less behavior. To be honest both look like a bug for me - treeverse/dvc#3392 and treeverse/dvc#3391 |
| of the output produced. See the details and example below. | ||
|
|
||
| `dvc diff` does not have an effect when the repository is not tracked by Git, | ||
| for example when `dvc init` was used with the `--no-scm` option. |
There was a problem hiding this comment.
Yes it's tracked by Git, but I initialized the DVC project with dvc init --no-scm. The paragraph above reads ...`dvc diff` does not have an effect... for example when `dvc init` was used with the `--no-scm` option but it does have an effect, as long as there is a Git repo underneath. Maybe just remove the part about --no-scm in the paragraph?
TODO for this PR: