-
Notifications
You must be signed in to change notification settings - Fork 405
DOC: reflect the fact that get allows for non-DVC repositories #912
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
DOC: reflect the fact that get allows for non-DVC repositories #912
Conversation
869e1a8 to
baa96d2
Compare
This comment has been minimized.
This comment has been minimized.
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.
Please reflect the changes from https://github.com/iterative/dvc/pull/3097/files here 🙂
|
Hi @jorgeorpinel, I've reflected the usage, and looked for other instances of the output using Everything should be up to date. I've referred to "DVC or Git" repositories as "Git repositories or DVC repositories" if the sentence is introductory, and simply as "Git repositories" if the sentence is advanced. Makes sense to me to be less terse when introducing a topic than when giving details about it. |
4311f19 to
aa43068
Compare
|
Ok, so now when describing a Git or DVC repository, it's "Git/DVC repository". I've also found a place where I was including Git for no good reason (in the "data registries" use case, where a git repository without DVC should not be mentioned). |
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.
Commented on some of Ivan's reviews above, added my own below, and here are a couple more notes (several having to do with free find/replace text – context is very important in docs 🙂):
-
The paragraph explaining
url, starting in line 31 below, also needs updating. Currently:The
urlargument specifies the address of the Git repository containing the external project... -
The one about
pathin line 39+ also needs updating to something like:The
pathargument of this command is used to specify the location, within the source project or repository aturl...
Both checkboxes apply to both dvc get and dvc import.
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.
Thanks for trying to change throughout all docs @fabiosantoscode it was definitely the right thing to do, but there's still some unnecessary changes given the context. I've left another full review...
Ok, so now when describing a Git or DVC repository, it's "Git/DVC repository".
It has the right intention but it has some problems; It's a bit simplistic; We want to be able to use <abbr> around "DVC repository"; We want to emphasize DVC first; It's confusing: DVC repo is already a Git repo. Anyway, let's just use a full phrase like I mentioned in #912 (comment).
WARNING – RANT: ^ This is not your fault Fabian. I think the change of behavior has made
dvc getanddvc importkind of confusing in a new way. Why are we building a Git download wrapper? I know there were reasons but in retrospect this seems strange. Anyway, I will just have to review both command references again in a future PR. I'll open a separate issue for this...
Also:
- The one about path in line 39+ also needs updating to something like...
(See my previous #912 (review))
Still pending ^ (along with a few of the comments inside that review).
Getting there for sure.
Co-Authored-By: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
Co-Authored-By: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
|
Thanks for all the suggestions! I've replied below each change request, and to reply to the review comment itself: I've now fixed those two situations. I didn't use find and replace without reading around the sites, but should probably have spent more time reading. Also, just because you can edit: I didn't mark the conversations as resolved because that would obscure what I've replied to. This page is getting pretty confusing :) |
…org into feature/get-non-dvc
jorgeorpinel
left a comment
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.
Thanks again @fabiosantoscode, this is pretty much perfect now!
| Provides an easy way to reuse files or directories tracked in any <abbr>DVC | ||
| project</abbr> (e.g. datasets, intermediate results, ML models) or Git | ||
| repository (e.g. other files and directories), into the workspace. The | ||
| `dvc import` command downloads such a <abbr>data artifact</abbr> in a way that | ||
| it is tracked with DVC, so it can be updated when the data source changes. (See | ||
| `dvc update`.) |
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.
OK this is almost perfect actually, I'll just make some minor updates in a future PR.
p.s. from #912 (comment) :
If we need to write a second paragraph for the Git repo case that's one option, or making this one clear enough if possible... I would try to keep it as similar as possible (almost copy paste) of the latest intro paragraph in dvc get.
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.
Done in 44e7fca.
| > find the appropriate [remote storage](/doc/command-reference/remote) and | ||
| > download <abbr>data artifacts</abbr> from it. (It works like `wget`, but for | ||
| > DVC repositories.) In this case we use | ||
| > DVC or Git repositories.) In this case we use |
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.
I'll change this back to DVC repo and put <abbr> around it so the tooltip (which mentions DVC repos are Git repos) comes up.
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.
See 96232e0
Closes #911, and documents non-merged
dvc getfeature implemented in treeverse/dvc#3097