-
Notifications
You must be signed in to change notification settings - Fork 19
Storage Quota/Upload Limit Integration #921
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: develop
Are you sure you want to change the base?
Conversation
ekraffmiller
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 & works really nicely! just a couple of comments.
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.
This should use the DatasetRepository, rather than directly calling the jsDataverse function
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.
It would be good to have a FileUploadInput story that shows the file upload limit messages.
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.
Suggestions on how to test this:
PUT http://localhost:8000/api/v1/admin/settings/:UseStorageQuotasPUT 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: