-
Notifications
You must be signed in to change notification settings - Fork 345
[ENG-8186] Storage allocation for draft registrations #11186
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: feature/pbs-25-13
Are you sure you want to change the base?
[ENG-8186] Storage allocation for draft registrations #11186
Conversation
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.
A little more involved than I was expecting, but it looks like it should work. One question: does the draft registration inherit the custom storage allocation value from the node that it's being registered from? If not, it probably should.
Actually it's just two new fields in Regarding inheritance, no, it doesn't inherit limits from its node. It has been 5 GB for all registrations all this time regardless of custom storage limits of their node, so maybe we missed it in the ticket requirements. Should we do that now or it's better to ask product team about it? |
Since we're using the same fields that the node uses, rather than having a completely different setup for draft registrations, I personally think it makes sense to inherit the custom storage limits from the node. Please check with Product to see if they agree. |
Got the answer: |
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.
Overall, looks good. Just one question about an edge case.
Admins can't set negative storage limits for draft registrations and nodes Also I noticed another bug. If admins enter float limits (for nodes/draft registrations), admin templates display only the integer part of limits but these limits are saved correctly. Should I create a ticket in JIRA for it or spend some time on editing templates? |
SHOULD BE MERGED AFTER
ENG-8048
WHICH CONTAINS ADDONS FIX THAT IMPACTS DISK USAGE CALCULATIONS IN ARCHIVERPurpose
Admins should be able to configure storage limits for individual draft registrations
Changes
Updated draft registration admin page, added one field to DraftRegistration model, take into account draft registration storage limits when archive registration
Updated an email template to insert draft registration storage limit
Notes:
Ticket
https://openscience.atlassian.net/browse/ENG-8186?atlOrigin=eyJpIjoiYzM0ODM1ZWRhOWMzNGY0OGFiNzZkMWM2M2FkN2JmOTQiLCJwIjoiaiJ9