feat: self-management of additional storage quota#2286
Open
0einstein0 wants to merge 7 commits intomasterfrom
Open
feat: self-management of additional storage quota#22860einstein0 wants to merge 7 commits intomasterfrom
0einstein0 wants to merge 7 commits intomasterfrom
Conversation
10 tasks
fdcffc0 to
cc302cd
Compare
10 tasks
bd56529 to
ff8be5c
Compare
34ad904 to
1f75324
Compare
services: added user storage settings service storage: updated layout and ui fixes storage: added user settings and menu quota: updated values and storage settings view
This was deprecated in RDM records in August 2024 https://github.com/inveniosoftware/invenio-rdm-records/pull/1789/changes
attempted to use the # bytes directly, rather than rescaling, but it causes issues. In particular with having the direct user input where the user wants to type in GB rather than bytes fix: use correct values for quota usage fix: bug with setting quota for new draft fix: don't allow to decrease lower than used this should take into account all versions instead fix: numbers on the bars fix: add correct link fix: validate that user is allowed to increase quota fix: various UX and UI fixes * hide input section if you've run out of quota and present different message * hide the manage quota button if you aren't allowed to manage quota * improve responsiveness to different display sizes * disable Apply button if you haven't changed the quota chore: formatting
e106ca2 to
f5cb45d
Compare
* storage information now only calculated if the feature is enabled, and now lives in dedicated quotaIncrease object * update docstrings * add all translations * fix: account for user having their own quota * hide storage menu if feature not enabled * fix: account for all versions of a record for min quota value calculation
f5cb45d to
9dc429c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
❤️ Thank you for your contribution!
Description
Closes issues:
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Frontend
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: