-
Notifications
You must be signed in to change notification settings - Fork 45
User quota is updated to GB from Bytes #1749
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
Conversation
|
Hello, |
|
I deployed the changes on my local PC and everything seems to be working fine. The conversion went fine, without resetting custom quotas, changing quota worked correctly, created new users shows the updated quota display in GB instead of bytes, and it's not possible to submit something if the quota is over the limit already |
Manual interventionReset User Quota from Bytes to GBUsing django shell docker compose exec django ./manage.py shell_plusfrom profiles.quota import reset_all_users_quota_to_gb
reset_all_users_quota_to_gb() |
This is correct
Yes because I converted the existing quota in GiB to GB. If you want everyone to have 15 GB maybe we can run a script to convert all 16 to 15. |
|
OK, I merge this pull request and add a TODO note in the manual intervention to think about this 16 --> 15 GB conversion. |
* show server error instead of fronend parsing error * show back button in edit only. Show help in create only * do not allow special chars in usernames * Enable/Disable competition forum (codalab#1774) * forum enable/disable functionality added * new forum_enabled field added to competition dump data * Email in lowercase (codalab#1769) * on signup email stored in lower case letters. Whitelist emails conveted to lowercased * whitespace removed * convert email to lowercased during login * latest competition fields added to dump (codalab#1786) Co-authored-by: Adrien Pavão <adrien.pavao@gmail.com> * User quota is updated to GB from Bytes (codalab#1749) * user assigned quota will now be in GB instead of bytes * unused counter removed * File Sizes cleanup (codalab#1752) * sizes Kib to Bytes, size formatting functions cleanup * space between size and unit, removed factor multiplication from size calcualtion * file_size to bytes in SubmissionDetail * added missing migration * migration conflict resolved * reseting file sizes task removed * Resource interface: quota unit is now GB instead of B * Create CODE_OF_CONDUCT.md * Added log rolling to limit log size to 5GB for now, can be changed * Maintenance mode option added in Caddyfile, used by creating a maintenance.on file in the maintenance_mode/ directory (codalab#1799) * Maintenance mode option added in Caddyfile, used by creating a maintenance.on file in the maintenance_mode/ directory * Add offline.png * Fixed image not loading --------- Co-authored-by: Obada Haddad <obada.haddad@lisn.fr> Co-authored-by: didayolo <adrien.pavao@gmail.com> * Update version.json for release 1.18.0 * Add remove button for cancelled submissions (codalab#1808) * Add remove button for cancelled submissions * Allow remove of cancelled submissions * Update compute_worker.py * Add permissions check for bulk download * flake8 fix * Add hide_score_output option (codalab#1838) * Add hide_score_output option * Update test * Add the options for v1 bundles * Make more generic tests (v1, v2) * version update workflow removed * Add hide_prediction_output feature * Calendar lock fixed, additional check added for start and end date * Simplify code * Version bump * Removed time and updated date to today --------- Co-authored-by: Ihsan Ullah <ihsan2131@gmail.com> Co-authored-by: Adrien Pavão <adrien.pavao@gmail.com> Co-authored-by: Obada Haddad <obada.haddad@lisn.fr> Co-authored-by: Obada Haddad-Soussac <11889208+ObadaS@users.noreply.github.com> Co-authored-by: GitHub Actions <actions@github.com>


@Didayolo @ObadaS
Description
User quota was configured in bytes. Now I have changed it to GB so that it is readable. After deployment, all users quota should be updated from bytes to GB.
This documentation here shows how you can do that. I have reorganized the wiki page to gather quota related admin procedures at one place hereManual intervention
Reset User Quota from Bytes to GB
Using django shell
Issues this PR resolves
A checklist for hand testing
Checklist