-
Notifications
You must be signed in to change notification settings - Fork 27
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
🐛 datcore-adapter (Pennsieve API): filter out deleted files #5254
Conversation
…ntication_popup Elisabettai traefik routes authentication popup
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5254 +/- ##
========================================
+ Coverage 57.3% 65.6% +8.3%
========================================
Files 538 561 +23
Lines 22563 27433 +4870
Branches 281 202 -79
========================================
+ Hits 12944 18018 +5074
+ Misses 9566 9365 -201
+ Partials 53 50 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
thx!
services/datcore-adapter/src/simcore_service_datcore_adapter/modules/pennsieve.py
Outdated
Show resolved
Hide resolved
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
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.
perfect! thanks!!
What do these changes do?
When querying dataset packages, e.g. with:
There might be deleted files in the response, e.g.:
Once we then try to get those files, a 404 error is raised.
At the moment, the Pennsieve API does not have a flag to exclude those files, so we need to filter them out on our end (this was confirmed by Pennsieve devs).
Related issue/s
Fixes ITISFoundation/osparc-issues#1231
(Original support request came via the oSPARC Support Google form, see details here https://z43.fogbugz.com/f/cases/192158)
How to test
Manually
Unit tests
Run tests with your API credentials and
--dataset=dddbce01-bae0-4e2b-85fd-dafb47182afa
Dev Checklist
DevOps Checklist
Not applicable (at least for this change). 😉