Skip to content

Conversation

@andrewbrazzatti
Copy link
Contributor

@andrewbrazzatti andrewbrazzatti commented Nov 23, 2025

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.

@codecov
Copy link

codecov bot commented Nov 24, 2025

Codecov Report

❌ Patch coverage is 4.16667% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.46%. Comparing base (a7bebc7) to head (224cdc1).

Files with missing lines Patch % Lines
typescript/api/services/FigshareService.ts 4.16% 23 Missing ⚠️
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              
Flag Coverage Δ
backend-bruno 39.46% <4.16%> (-0.02%) ⬇️
backend-mocha 44.53% <4.16%> (-0.02%) ⬇️
frontend-app-config 97.87% <ø> (ø)
frontend-core-lib 53.78% <ø> (ø)
frontend-dashboard 73.98% <ø> (ø)
frontend-deleted-records 86.59% <ø> (ø)
frontend-export 100.00% <ø> (ø)
frontend-local-auth 100.00% <ø> (ø)
frontend-manage-roles 63.33% <ø> (ø)
frontend-manage-users 59.81% <ø> (ø)
frontend-report 95.06% <ø> (ø)

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andrewbrazzatti andrewbrazzatti changed the title Fix: Implement pagination for article file list retrieval in Figshare Fix: Implement pagination for article file list retrieval in Figshare Service Nov 24, 2025
@andrewbrazzatti andrewbrazzatti marked this pull request as ready for review November 24, 2025 03:04
Copy link
Contributor

@cofiem cofiem left a 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.

axiosResponses = [];
service = new FigshareService();
// Set required properties that are private in TS but accessible at runtime
(service as any).baseURL = 'https://api.figshare.test';
Copy link
Contributor

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';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more to update

@cofiem
Copy link
Contributor

cofiem commented Nov 24, 2025

A couple of urls to update, then this looks good to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants