Skip to content

Conversation

@landreev
Copy link
Contributor

@landreev landreev commented Nov 18, 2025

What this PR does / why we need it:

This was made based on the experience with setting up collection quotas at HDV. It disables the "Upload a Folder", DropBox and Globus upload buttons on the upload page when the quotas are maxed out (in addition to disabling the standard upload). To be clear, an attempt to upload anything via webloader, etc. is not going to work once the quota is reached; but there is no point in showing these options as available either. The remaining quota display is made more prominent - in red - as well.

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer:

Suggestions on how to test this:

Upload a few files in a dataset. Enable storage quotas, and configure a storage quota on the parent collection such that it is smaller than the storage size of the test dataset. With this build deployed, this should block all the upload buttons on the Add Files page. (you'll need an S3 volume w/ direct upload enabled to see the webloader/"Upload a Folder" button; you'll need a Globus volume to see the "Upload with Globus" button, etc.)
The "Storage quota: 0 bytes remaining" should be displayed in red on the Add Files page.

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

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

Additional documentation:

… the rollout of collection

quotas at HDV. It disables the "Upload a Folder", DropBox and Globus upload buttons on the upload
page when the quotas are maxed out (in addition to disabling the standard upload). To be clear,
an attempt to upload anything via webloader, etc. is not going to work once the quota is reached; but
there is no point in showing these options as available either.
The remaining quota is made more prominent - in red - as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants