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

exp save: update --help #8729

Merged
merged 1 commit into from
Dec 29, 2022
Merged

exp save: update --help #8729

merged 1 commit into from
Dec 29, 2022

Conversation

dtrifiro
Copy link
Contributor

  • fix --help for exp save --force
  • fix --help for exp pull --force

@@ -68,7 +68,7 @@ def add_parser(experiments_subparsers, parent_parser):
"-f",
"--force",
action="store_true",
help="Replace local experiment already exists.",
help="Replace local experiment if it already exists.",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This could also be plural?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(same for exp push)

@codecov
Copy link

codecov bot commented Dec 23, 2022

Codecov Report

Base: 93.50% // Head: 93.50% // No change to project coverage 👍

Coverage data is based on head (0f8f495) compared to base (9e6f44b).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8729   +/-   ##
=======================================
  Coverage   93.50%   93.50%           
=======================================
  Files         457      457           
  Lines       36203    36203           
  Branches     5244     5244           
=======================================
  Hits        33850    33850           
  Misses       1845     1845           
  Partials      508      508           
Impacted Files Coverage Δ
dvc/commands/experiments/pull.py 90.90% <ø> (ø)
dvc/commands/experiments/save.py 82.14% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -49,7 +49,7 @@ def add_parser(experiments_subparsers, parent_parser):
"--force",
action="store_true",
default=False,
help="Save even if hash value for dependencies/outputs changed.",
help="Replace experiment if it already exists",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
help="Replace experiment if it already exists",
help="Replace experiment if it already exists.",

Copy link
Contributor

Choose a reason for hiding this comment

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

What about mentioning that "save also errors out if nothing changed in the workspace, --force overrides this" (from iterative/dvc.org#4200 (comment))?

We can have that in the docs only if you want to keep this short.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd prefer to keep short, Just in the docs is fine I guess.

jorgeorpinel added a commit to iterative/dvc.org that referenced this pull request Dec 23, 2022
@jorgeorpinel
Copy link
Contributor

Note that I updated the docs around this in iterative/dvc.org@0a08f16 (PTAL).

@dtrifiro dtrifiro merged commit 109288e into iterative:main Dec 29, 2022
@jorgeorpinel jorgeorpinel added ui user interface / interaction A: cli Related to the CLI labels Jan 12, 2023
dberenbaum added a commit to iterative/dvc.org that referenced this pull request Feb 27, 2023
* start: `exp save`-related clarifications

Per #4166 (review)

* guide: `exp save`-related updates

Per #4166 (review)

* ref: `exp save`-related improvements

Per #4166 (review)

* ref: copy edits

* ref: improve value prop for `exp save/run`

Per #4200 (review)

* ref: update `exp push/pull -f`

Per iterative/dvc#8729

* ref: update `exp save -f`

Per #4200 (review)

* Update content/docs/command-reference/exp/run.md

* Update content/docs/command-reference/exp/save.md

* Update content/docs/user-guide/experiment-management/experiments-overview.md

* Restyled by prettier (#4213)

Co-authored-by: Restyled.io <commits@restyled.io>

* Update content/docs/command-reference/exp/pull.md

* Update content/docs/command-reference/exp/push.md

* Update content/docs/command-reference/exp/save.md

* Update content/docs/start/experiment-management/experiments.md

* Restyled by prettier (#4337)

Co-authored-by: Restyled.io <commits@restyled.io>

---------

Co-authored-by: daniele <36171005+dtrifiro@users.noreply.github.com>
Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Dave Berenbaum <dave@iterative.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: cli Related to the CLI ui user interface / interaction
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants