-
Notifications
You must be signed in to change notification settings - Fork 111
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: Better feedback when create-sibling-gitlab is called with non-existing path #6701
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6701 +/- ##
==========================================
- Coverage 91.14% 90.40% -0.74%
==========================================
Files 353 353
Lines 44485 45740 +1255
==========================================
+ Hits 40545 41351 +806
- Misses 3940 4389 +449
Continue to review full report at Codecov.
|
…isting path When create-sibling-gitlab receives a path to a non-existing or non-dataset location, it does not provide any feedback to the user about this (datalad#6700) This commit makes create-sibling-gitlab yield an impossible result whenever a provided path does not point to a subdataset Add a test case
Analysis results are not available for those commits View more on Code Climate. |
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.
Hm. This change looks to me as if the actual problem is subdatasets
that should yield an impossible
or error
result when passing such a path. Then here that result could just be yielded upwards. WDYT, @adswa? Do I miss something?
oh true, I haven't thought in that direction at all yet |
mhhh, looking into if paths is not None:
lgr.debug('Query subdatasets underneath paths: %s', paths) Making |
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.
Ah, you're right. Apologies. Approved then. :)
Thanks for the review and approval, @bpoldrack! Merging, since no-one has complained for a week :) |
When create-sibling-gitlab receives a path to a non-existing or non-dataset location, it does not provide any feedback to the user about this (#6700). This PR makes
create-sibling-gitlab
yield an impossible result whenever a provided path does not point to a subdataset:Changelog
💫 Enhancements and new features
create-sibling-gitlab
is called on non-existing subdatasets or paths it now returns an impossible result instead of no feedback at all