-
Notifications
You must be signed in to change notification settings - Fork 238
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
N°7633 - Reloads the same user multiple times if it no longer exists #692
Conversation
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.
I do like these kind of optimisations, but I can't see what actually changed to achieve it. Could you point me to it?
good catch Co-authored-by: Thomas Casteleyn <thomas.casteleyn@super-visions.com>
good catch (again) Co-authored-by: Thomas Casteleyn <thomas.casteleyn@super-visions.com>
Co-authored-by: Thomas Casteleyn <thomas.casteleyn@super-visions.com>
|
||
public function testFindUser_internaluser() | ||
{ | ||
$sLogin = 'admin'.uniqid(); |
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.
Pourquoi introduire un aléa ? "FooLogin" (sans passer par une variable intermédiaire) serait plus clair.
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.
to avoid a colision with any other existing user with login "FooLogin". could happen with failed tests that missed the cleanup
Symptom
Same user is searched further times to display an object history with many caselogs (up to 300 searches observed by a customer). The cache management does not deal properly caselogs with author set with contact name (instead of login).
Fallback when unfound user is done on caselog display side...
Fix
Remember that a previous search failed to find a user by its contact name (UserRights::FindUser).