-
Notifications
You must be signed in to change notification settings - Fork 45
Merge develop into master #1759
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
Merged
Conversation
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
Update version.json for release 1.17.0
* Updated release-version PR title to distinguish from other PRs * Update release-version-update.yml
… featured sectio renamed to recent
Competition pages are now clickable without any active phase
Home page competitions updates
Competition results api fixed
Task list pagination issues resolved
Double approve/deny partipant
Exclude soft-deleted submissions from leaderboard
Show server error instead of fronend parsing/JSON error
* forum enable/disable functionality added * new forum_enabled field added to competition dump data
Competition Create form UI updates
Do not allow special chars in usernames
* on signup email stored in lower case letters. Whitelist emails conveted to lowercased * whitespace removed * convert email to lowercased during login
Co-authored-by: Adrien Pavão <adrien.pavao@gmail.com>
* user assigned quota will now be in GB instead of bytes * unused counter removed
* 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
Collaborator
|
@Didayolo docker compose exec django ./manage.py shell_plusfrom profiles.models import User
users = User.objects.all()
for user in users:
# Reset quota to 15 if quota is between 15 and 20
# Do not reset quota for special users like adrien
if user.quota > 15 and user.quota < 20:
user.quota = 15
user.save() |
Member
Author
Tested on test server and it works fine |
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.
Test
Deployed at https://codabench-test.lri.fr/
Manual intervention
WARNING: we may need to prevent users to use the platform during this deployment.
Start maintenance mode:
1. Django migration (#1774, #1752)
docker compose exec django ./manage.py migrate2. Reset User Quota from Bytes to GB (#1749)
docker compose exec django ./manage.py shell_plus3. Important for file sizes cleanup (#1752)
We have some critical changes here so before deployment we should run the following 3 blocks of code to get the last ids of
Data,SubmissionandSubmissionDetailThen, in the shell_plus:
After we have the latest ids, we should deploy and run the 3 blocks of code below to fix the sizes i.e. to convert all kib to bytes to make everything consistent. For new files uploaded after the deployment, the sizes will be saved in bytes automatically that is why we need to run the following code for older files only.
Then, do not forget to stop maintenance mode:
Changes