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

ENH: delete - allow to specify --force in CLI #1001

Merged
merged 3 commits into from
May 5, 2022
Merged

Conversation

yarikoptic
Copy link
Member

internal implementation already had that option, so we just needed
to pass it through

Closes #993

internal implementation already had that option, so we just needed
to pass it through

Closes #993
@yarikoptic yarikoptic requested a review from jwodder May 5, 2022 13:00
@yarikoptic yarikoptic added the patch Increment the patch version when merged label May 5, 2022
@codecov
Copy link

codecov bot commented May 5, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.48%. Comparing base (7b99468) to head (a9370c9).
Report is 1145 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1001       +/-   ##
===========================================
+ Coverage   64.85%   87.48%   +22.63%     
===========================================
  Files          64       64               
  Lines        8109     8110        +1     
===========================================
+ Hits         5259     7095     +1836     
+ Misses       2850     1015     -1835     
Flag Coverage Δ
unittests 87.48% <100.00%> (+22.63%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

dandi/cli/cmd_delete.py Show resolved Hide resolved
dandi/cli/cmd_delete.py Outdated Show resolved Hide resolved
resources are instead simply silently ignored.
resources are instead simply silently ignored

.. option:: --force
Copy link
Member

Choose a reason for hiding this comment

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

Please place this before --instance so that the options are in alphabetical order.

Copy link
Member Author

Choose a reason for hiding this comment

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

oh -- didn't know that there is such convention. So ATM we have 3 orders -- one in delete python API, another in click interface (debug options go last), and then yet another in docs (sorted alphabetically). IMHO that is suboptimal since again becomes a surprise while switching between interfaces and documentation. But for now, for consistency, moved it up as requested (force pushed doc changing commit).

yarikoptic and others added 2 commits May 5, 2022 10:58
Co-authored-by: John T. Wodder II <jwodder@users.noreply.github.com>
@yarikoptic yarikoptic merged commit cca19df into master May 5, 2022
@yarikoptic yarikoptic deleted the enh-delete-force branch May 5, 2022 18:18
@github-actions
Copy link

github-actions bot commented May 9, 2022

🚀 PR was released in 0.39.6 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

non-interactive delete
3 participants