Conversation
ekraffmiller
left a comment
There was a problem hiding this comment.
Looks good & works really nicely! just a couple of comments.
There was a problem hiding this comment.
This should use the DatasetRepository, rather than directly calling the jsDataverse function
There was a problem hiding this comment.
It would be good to have a FileUploadInput story that shows the file upload limit messages.
ekraffmiller
left a comment
There was a problem hiding this comment.
thanks for the updates, approved 👍
|
@jp-tosca Thanks for the QA and your feedback. I agree your suggestion makes sense here. |
|
@jp-tosca I think it's a good idea to show the error message from the API, but it's not a simple one line fix, since it has to go through some layers in the UI, so I think given our time frame is best to do that as a separate follow up issue. |
|
The last item we discussed regarding to this PR and will be added as an improvement is the missing button "done". |

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:
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.
The test coverage is not passing, but I solve it in other PR(Manage template)
Suggestions on how to test this:
curl -X PUT -d 'true' http://localhost:8080/api/admin/settings/:UseStorageQuotascurl -X PUT -H "X-Dataverse-key:$API_TOKEN" -d $SIZE_IN_BYTES $SERVER_URL/api/dataverses/$ID/storage/quotaDoes 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: