Skip to content
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

Rewrite and update of dvc config command ref. #331

Merged
merged 16 commits into from
May 15, 2019
Merged

Rewrite and update of dvc config command ref. #331

merged 16 commits into from
May 15, 2019

Conversation

jorgeorpinel
Copy link
Contributor

No description provided.

- Makes it easier to read and understand;
- Puts it into the new command-ref structure (e.g. `dvc fecth`)
- Reorganizes and reformats the paragaphs
@jorgeorpinel jorgeorpinel changed the title WIP: Rewrite of dvc config in prep. for new dvc cache... docs WIP: Rewrite of dvc config ref. in prep. for new dvc cache... docs May 13, 2019

### core

This is the main section with the general settings:
Copy link
Member

Choose a reason for hiding this comment

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

let's double check. I'm pretty sure that we now have a whole bunch of new options.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's tons of config sections listed in https://github.com/iterative/dvc/blob/7ceaf88c54c90d53e64c1af2fa78b5b9bd4667a0/dvc/config.py#L139-L274 but I don't know what they do. I'll ask on Discord.

Copy link
Contributor Author

@jorgeorpinel jorgeorpinel May 15, 2019

Choose a reason for hiding this comment

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

Added all core and cache options but still not finished with all the other sections. Will lyk

Copy link
Member

@shcheklein shcheklein left a comment

Choose a reason for hiding this comment

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

Looks great! A few minor comment. I'm thinking if we should split it into a few files - the same as we did for remote, for example? File looks to complicated to navigate already.

@jorgeorpinel jorgeorpinel changed the title WIP: Rewrite of dvc config ref. in prep. for new dvc cache... docs Rewrite of dvc config ref (in prep for new dvc cache docs) May 15, 2019
- Reorders te ### remote section under ### core;
- Breaks up some long paragraphs;
- Adds recommendation to use `cache.protected` for hardlink or symlink `cache.type`;
- Adds propper > Note in `cache.protected` paragraph;
- Fixes md errors in `cache.xxx` descriptions
@jorgeorpinel
Copy link
Contributor Author

jorgeorpinel commented May 15, 2019

The idea of splitting up the doc definitely makes sense although it's not like dvc remote in that there's no sub-commands, just different Configuration sections. So I'm not sure, you can navigate pretty easily with the right-hand side CONTENTS widget links I think.

But lmk @shcheklein and I'll create an issue to split it up after this round is done (so I can get this one done and focus on other priorities for now). Thanks

@jorgeorpinel jorgeorpinel changed the title Rewrite of dvc config ref (in prep for new dvc cache docs) Rewrite and update of dvc config command ref. May 15, 2019
- Exapanded on it in the `dvc config` cmd ref;
- Clarified and added notes about it in the refs od `dvc checkout` and `dvc pull`
instead of "workinf directory" or "working space" were it makes most sense to standardize
@jorgeorpinel
Copy link
Contributor Author

@shcheklein I think this PR is ready for merge, please review.

I also opened a new issue regarding splitting up this cmd ref: #340

Copy link
Member

@shcheklein shcheklein left a comment

Choose a reason for hiding this comment

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

just a few minor comments

@shcheklein shcheklein merged commit 6af4053 into iterative:master May 15, 2019
efiop pushed a commit to iterative/dvc that referenced this pull request May 24, 2019
…essage (#2003)

* Document dvc.scm.git::Git::_get_diff_trees and shorten commit hashes in dvc.scm.git::Git::get_diff_trees

* diff: Changes to dvc.scm.git so `dvc diff` outputs short SHAs

- Docstring for Git class constructor
- Renames self.git for self.repo throughout module (involves several test changes)
- Better doc and logical refactor in Git._get_diff_trees
- `dvc diff` now outputs short SHA strings (Git._get_diff_trees) - hard coded to 7 length str
  (involves some test changes in tests/func/test_diff.py)

For #1902

* Undoes "Renames self.git for self.repo throughout module" introduced in 3d2dc83.

* autocomplete: Brings scripts/completion/dvc.zsh up-to-date

- Reorganizes commands in alphabetical order;
- Updates the command dscriptions according to their current usage (-h) output;
- Adds comments for MISSING command entries

* Update scripts/completion/dvc.zsh

Co-Authored-By: Ruslan Kuprieiev <[email protected]>

* Update scripts/completion/dvc.zsh

Co-Authored-By: Ruslan Kuprieiev <[email protected]>

* Update scripts/completion/dvc.zsh

Co-Authored-By: Ruslan Kuprieiev <[email protected]>

* Update scripts/completion/dvc.zsh

Co-Authored-By: Ruslan Kuprieiev <[email protected]>

* autocomplete: Adds missing commands to Zsh script

* cache: updates slow link type warning message (and test)

in accordance with iterative/dvc.org#331

* Fixes accidental docstring rewrap

per #2003 (comment)

* Actually fixes accidental docstring rewrap...

per #2003 (review)

* Really fixes accidental docstring rewrap this time...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants