-
Notifications
You must be signed in to change notification settings - Fork 120
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
Reduce the number of requests to the storage to retrieve the total number of users #1957
Conversation
@tolusha: does it depend on eclipse-che/che#4478 ? |
Yes, they both have the same reference issue. |
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.
Do you have results of CodenvyLicenseSuite.xml selenium tests executing?
return currentUsersNumber; | ||
} | ||
} catch (ServerException e) { | ||
LOG.error("Can't get total users number. License checking might be inconsistent.", e); |
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.
Actually, license checking is impossible in this case.
@@ -383,7 +388,7 @@ public void shouldRollbackTransactionWhenFailedToRemoveAnyOfEntries( | |||
|
|||
// Remove the user, all entries must be rolled back after fail | |||
try { | |||
userDao.remove(user2.getId()); | |||
userManager.remove(user2.getId()); | |||
fail("UserDao#remove had to throw exception"); |
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.
There is UserManager#remove method is called.
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.
gj
What does this PR do?
Caches the total number number of user.
Refreshes cache if the number has been changed based on fired events.
What issues does this PR fix or reference?
#1923
Changelog
Reduce the number of requests to the storage to retrieve the total number of users
Release Notes
not required
Docs PR
not required