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

Support DANDI:<ID>/draft and stop using identifiers.org for any of the DANDI: URIs #1066

Merged
merged 3 commits into from
Jul 18, 2022

Conversation

yarikoptic
Copy link
Member

Closes #1065

If we are to support DANDI:<ID>/draft which cannot go through the identifiers.org, I saw no reason to go through identifiers.org for any DANDI:<ID> since that, if anything, could only introduce inconsistency.

I have left also initial version which creates a dedicated rule for /draft version in a separate commit "just in case".

@satra -- please review to agree that there would be no reason to go through identifiers.org

@jwodder -- please review for code changes etc

@yarikoptic yarikoptic requested review from jwodder and satra July 15, 2022 22:26
@yarikoptic yarikoptic added the patch Increment the patch version when merged label Jul 15, 2022
dandi/dandiarchive.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 15, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.38%. Comparing base (045e9ff) to head (49e1d13).
Report is 1013 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1066   +/-   ##
=======================================
  Coverage   88.38%   88.38%           
=======================================
  Files          72       72           
  Lines        9261     9265    +4     
=======================================
+ Hits         8185     8189    +4     
  Misses       1076     1076           
Flag Coverage Δ
unittests 88.38% <100.00%> (+<0.01%) ⬆️

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.

@jwodder
Copy link
Member

jwodder commented Jul 15, 2022

@yarikoptic This PR should also include an update to docs/source/ref/urls.rst.

There is no point to go through identifiers.org for DANDI:ID if we are not
to go for DANDI:ID/draft.  Hence - just parse into the "dandi" instance
and for that lower case it after matching in the group.  I do not think
that should have negative effect
@yarikoptic
Copy link
Member Author

@yarikoptic This PR should also include an update to docs/source/ref/urls.rst.

thanks! adjusted in 49e1d13

@yarikoptic yarikoptic merged commit 97fe900 into master Jul 18, 2022
@yarikoptic yarikoptic deleted the bf-dandi-draft branch July 18, 2022 14:41
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

download etc: support DANDI:<dandiset id>/draft
3 participants