-
Notifications
You must be signed in to change notification settings - Fork 16
Fix: Implement pagination for article file list retrieval in Figshare Service #3526
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
base: master
Are you sure you want to change the base?
Conversation
…y and set user to root for mocha service
…mint/redbox-portal into bugfix/figshare-pagination-issue
…e 'master' branch
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3526 +/- ##
==========================================
- Coverage 48.48% 48.46% -0.02%
==========================================
Files 184 184
Lines 10891 10897 +6
Branches 1657 1660 +3
==========================================
+ Hits 5280 5281 +1
- Misses 5380 5385 +5
Partials 231 231
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
cofiem
left a comment
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.
Looks good! A few changes and questions.
…s for edge scenarios
…shareService tests
| axiosResponses = []; | ||
| service = new FigshareService(); | ||
| // Set required properties that are private in TS but accessible at runtime | ||
| (service as any).baseURL = 'https://api.figshare.test'; |
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.
.localhost is good - please update this url too.
|
|
||
| beforeEach(() => { | ||
| service = new FigshareService(); | ||
| (service as any).baseURL = 'https://api.figshare.test'; |
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.
One more to update
|
A couple of urls to update, then this looks good to merge. |
Fixes issue in Figshare integration where records with more than 10 data attachments fail due to the default page size on the Figshare API and lacking a pagination implementation in our integration code.