Skip to content

EnsureRemoteName and uplift parameter validation in create-sibling-webdav #577

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

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

mih
Copy link
Member

@mih mih commented Dec 17, 2023

This is the streamlined version of #324

Closes #193

Also adds tests for `EnsureRemoteName`.

A sister class `EnsureSiblingName` is also provided.
It does the exact same thing, but calls a "remote" a
"sibling. Matter of taste.

Closes datalad#193
Use `EnsureRemoteName` for sibling and storage sibling parameters.

Now immediately checks for conflicting remote name, when
`existing='error'` and not going recursive. In this case,
the command would error later, and in a more expensive way.

Now this situation is caught during command validation, and
reported properly, and jointly with others.
Copy link

codecov bot commented Dec 17, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (2138efe) 92.58% compared to head (990895c) 92.55%.

Files Patch % Lines
datalad_next/commands/create_sibling_webdav.py 88.23% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #577      +/-   ##
==========================================
- Coverage   92.58%   92.55%   -0.03%     
==========================================
  Files         145      145              
  Lines       10499    10570      +71     
  Branches     1563     1579      +16     
==========================================
+ Hits         9720     9783      +63     
- Misses        606      614       +8     
  Partials      173      173              

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

@mih mih merged commit c387a92 into datalad:main Dec 18, 2023
@mih mih deleted the ern branch December 18, 2023 06:10
@mih mih added this to the 1.1 milestone Jan 19, 2024
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.

Provide EnsureRemoteName
2 participants