-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reana-admin: fix setting default quota limits
This commit fixes a bug in the reana-admin CLI command ``quota-set-default-limits`` that prevented admins from retroactively setting a default quota limit for all existing users who do not have a custom quota limit set. Specifically, the bug was caused by the fact that the code assumed that all users who do not have a custom quota limit set have a quota limit of ``null``. This assumption is incorrect because when there is no default global quota limit set, each user's initial quota limit is set to zero, not ``null``. Note that any previously set user limits, either via old defaults or via custom settings, will be kept during the upgrade, and won't be automatically updated to match the new default limit value. Closes #625
- Loading branch information
1 parent
a339846
commit 7e84d56
Showing
4 changed files
with
87 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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