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

fix: Unsearchable disabled users by their email or name - EXO-69348 - Meeds-io/meeds#1827 . #858

Merged
merged 1 commit into from Apr 19, 2024

Conversation

akhanfir
Copy link
Contributor

@akhanfir akhanfir commented Apr 1, 2024

Before this change, when set user as a disabled user, select disabled filter and search for usera by his name or his email, user isn't displayed in the result list. To fix this problem, first apply the search by email and then change in the search query the conditions apply in the WHERE line, they are based on the fields email and username must be both like the search term but with this change will be based on one of the two fields either being like this term and this change will only be applied if the search done by the keyword and the user status is disabled.
After this change, user is displayed in the result list.

@akhanfir akhanfir enabled auto-merge April 1, 2024 08:45
@akhanfir akhanfir requested a review from mkrout April 1, 2024 08:45
@akhanfir akhanfir changed the title fix: Unsearchable disabled users by their email or name - EXO-69348. fix: Unsearchable disabled users by their email or name - EXO-69348 - Meeds-io/meeds#1827 . Apr 1, 2024
@akhanfir akhanfir removed the request for review from mkrout April 1, 2024 09:39
@Jihed525 Jihed525 requested a review from mkrout April 1, 2024 12:09
Copy link
Member

@rdenarie rdenarie left a comment

Choose a reason for hiding this comment

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

Hello,
Can you complete the commit message explaining how you fix the problem ?
While Reading the modifications, I'm not able to understand your fix

…eeds-io/meeds#1827 .

Before this change, when set user as a disabled user, select disabled filter and search for usera by his name or his email, user isn't displayed in the result list. To fix this problem, first apply the search by email and then change in the search query the conditions apply in the WHERE line, they are based on the fields email and username must be both like the search term but with this change will be based on one of the two fields either being like this term and this change will only be applied if the search done by the keyword and the user status is disabled.
After this change, user is displayed in the result list.
Copy link

sonarcloud bot commented Apr 19, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)
5 New Critical Issues (required ≤ 0)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@akhanfir akhanfir merged commit 3e0c585 into feature/maintenance Apr 19, 2024
4 of 5 checks passed
@akhanfir akhanfir deleted the TASK-69348 branch April 19, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants