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

Check if URL matches the API URL so we do not hardcode wrong "False" for is_api #1318

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

yarikoptic
Copy link
Member

I have spotted odd log msg while preparing example for #1317 (comment):

❯ dandi download --download dandiset.yaml DANDI:000026
2023-08-10 09:41:54,008 [ WARNING] Request to https://api.dandiarchive.org/api failed (404 Client Error: Not Found for url: https://api.dandiarchive.org/api/api/info/)
2023-08-10 09:41:54,008 [ WARNING] Using hard-coded URLs
...

which was apparently due to our assumption that provided URL (here from DANDI: identifiers.org redirect) is not API URL. I have not looked deeper into that logic, but rather just fixed checking for known instances in case if URL does match a known API end point.

@yarikoptic yarikoptic added the patch Increment the patch version when merged label Aug 10, 2023
@yarikoptic
Copy link
Member Author

I just now merged typing fixes PR #1316 , typing errors here seems to be of that PR fixes kind, so unrelated to this PR

@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (71bd0fe) 88.82% compared to head (11eac91) 88.82%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1318   +/-   ##
=======================================
  Coverage   88.82%   88.82%           
=======================================
  Files          76       76           
  Lines       10191    10194    +3     
=======================================
+ Hits         9052     9055    +3     
  Misses       1139     1139           
Flag Coverage Δ
unittests 88.82% <100.00%> (+<0.01%) ⬆️

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

Files Changed Coverage Δ
dandi/utils.py 83.60% <100.00%> (+0.13%) ⬆️

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

@yarikoptic yarikoptic merged commit aad09af into master Aug 10, 2023
@yarikoptic yarikoptic deleted the bf-api branch August 10, 2023 15:45
@github-actions
Copy link

🚀 PR was released in 0.56.0 🚀

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.

1 participant