Skip to content

Conversation

@ChengShi-1
Copy link
Contributor

@ChengShi-1 ChengShi-1 commented Feb 9, 2026

What this PR does / why we need it:

Show storage/file quotas on the Upload Files page

Which issue(s) this PR closes:

Special notes for your reviewer:

  • Test coverage did not meet the 95% threshold. I’ve addressed the coverage issue in the Manage Template PR and will recheck this once that PR is merged. Since I already added some tests in this PR, I’m leaving it as-is for now, feel free to ignore the test failure and proceed with the review if you’d like.

  • package.json should be updated to alpha

  • I expect the upload limits will have more fields, but for now, it shows Storage Quota only

  • When the file exceeds the storage quota, it would raise an error. It has been implemented before.

image

Suggestions on how to test this:

  • You may need to enable the setting and set upload limit through API first, to let the storage quota enable.
  • PUT http://localhost:8000/api/v1/admin/settings/:UseStorageQuotas
  • PUT http://localhost:8000/api/datasets/:persistentId/storage/quota?persistentId={...}

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Yes, a screenshot above

Is there a release notes or changelog update needed for this change?:

Yes, changelog should be updated

Additional documentation:

@ChengShi-1 ChengShi-1 added the Size: 3 A percentage of a sprint. 2.1 hours. label Feb 9, 2026
@ChengShi-1 ChengShi-1 moved this to Ready for Review ⏩ in IQSS Dataverse Project Feb 9, 2026
@ChengShi-1 ChengShi-1 marked this pull request as ready for review February 9, 2026 17:54
@coveralls
Copy link

Coverage Status

coverage: 98.063% (+0.7%) from 97.339%
when pulling 19017c5 on StorageQuota
into 24bdb22 on develop.

@ChengShi-1 ChengShi-1 added the FY26 Sprint 16 FY26 Sprint 16 (2026-01-28 - 2026-02-11) label Feb 9, 2026
@ekraffmiller ekraffmiller self-assigned this Feb 10, 2026
@ekraffmiller ekraffmiller moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Feb 10, 2026
@cmbz cmbz added the FY26 Sprint 17 FY26 Sprint 17 (2026-02-11 - 2026-02-25) label Feb 11, 2026
Copy link
Contributor

@ekraffmiller ekraffmiller 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 & works really nicely! just a couple of comments.

Copy link
Contributor

Choose a reason for hiding this comment

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

This should use the DatasetRepository, rather than directly calling the jsDataverse function

Copy link
Contributor

Choose a reason for hiding this comment

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

It would be good to have a FileUploadInput story that shows the file upload limit messages.

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

Labels

FY26 Sprint 16 FY26 Sprint 16 (2026-01-28 - 2026-02-11) FY26 Sprint 17 FY26 Sprint 17 (2026-02-11 - 2026-02-25) GREI Re-arch GREI re-architecture-related Project: HDV SPA Rollout Size: 3 A percentage of a sprint. 2.1 hours. SPA

Projects

Status: In Review 🔎

Development

Successfully merging this pull request may close these issues.

Feature Request: Show storage/file quotas on the Upload Files page; disable Files to Add button when limits reached

4 participants