Skip to content
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

[BUG] 🐛 Fix conflict when getting by mail a user with a similar mail #872

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

CChemin
Copy link
Contributor

@CChemin CChemin commented Nov 21, 2023

No description provided.

@CChemin CChemin force-pushed the fix-search-multiple-mails branch from 2ef2806 to dbe91e6 Compare November 21, 2023 15:11
Donatien26
Donatien26 previously approved these changes Dec 11, 2023
@CChemin CChemin force-pushed the fix-search-multiple-mails branch 2 times, most recently from f8f6360 to bbedfaa Compare December 12, 2023 08:52
@CChemin CChemin dismissed stale reviews from Donatien26 and clement-dufaure via 7dacfdf December 12, 2023 08:56
@CChemin CChemin force-pushed the fix-search-multiple-mails branch from bbedfaa to 7dacfdf Compare December 12, 2023 08:56
Copy link
Collaborator

@Ragatzino Ragatzino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice pr

@@ -366,11 +366,15 @@ public Optional<User> getUserByMail(String mail) {
logger.debug("Searching user with mail {}", mail);
User searchedUser = new User();
searchedUser.setMail(mail);
PageResult<User> users =
searchUsers(searchedUser, new PageableResult(2, 0, null), SearchType.OR.name());
List<User> users =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part got me confused at first, and it is better this way

@Ragatzino Ragatzino merged commit 9324971 into InseeFr:main Dec 12, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants