-
Notifications
You must be signed in to change notification settings - Fork 0
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
TSPS-357 Add admin endpoint to get a user's quota and update their quota #162
Changes from 1 commit
9bf2323
6b57c70
3a572f8
1852d28
27a9bdc
ce11586
b6d7199
0636274
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,7 +84,7 @@ public UserQuota updateQuotaConsumed(UserQuota userQuota, int newQuotaConsumed) | |
* @param newQuotaLimit - the new quota limit | ||
* @return - the updated user quota | ||
*/ | ||
public UserQuota updateQuotaLimit(UserQuota userQuota, int newQuotaLimit) { | ||
public UserQuota adminUpdateQuotaLimit(UserQuota userQuota, int newQuotaLimit) { | ||
if (newQuotaLimit < userQuota.getQuotaConsumed()) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so we would allow setting the newQuotaLimit to be equal to the user's current QuotaConsumed, thereby preventing any further activity, is that right? (sounds good to me) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. correct |
||
throw new InternalServerErrorException( | ||
String.format( | ||
|
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.
ah nice catch, thanks!