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

[UsersManagement] Unsearchable disabled users by their email or name #1827

Open
akhanfir opened this issue Apr 1, 2024 · 3 comments
Open
Labels

Comments

@akhanfir
Copy link

akhanfir commented Apr 1, 2024

Steps to reproduce

Steps to reproduce the behavior:

  1. create usera with a First name different than his login

  2. from the users management list, Set usera as a disabled user

  3. Select disabled filter

  4. Search for usera by his name or his email

If applicable, add screenshots to help explain your problem.

Current behaviour

usera isn't displayed in the result list

Expected behavior

usera should be displayed in the result list

@srenault-meeds
Copy link
Collaborator

@akhanfir do you mean in the users management page?
cc @Jihed525

@Jihed525
Copy link
Contributor

Jihed525 commented Apr 2, 2024

exactly @srenault-meeds, is there a functional misunderstading ?

@srenault-meeds
Copy link
Collaborator

no no only to make sure as it was not precised in the description

akhanfir added a commit to Meeds-io/gatein-portal that referenced this issue Apr 19, 2024
…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.
akhanfir added a commit to Meeds-io/gatein-portal that referenced this issue Apr 19, 2024
…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.
akhanfir added a commit to Meeds-io/gatein-portal that referenced this issue Apr 19, 2024
…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.
akhanfir added a commit to Meeds-io/gatein-portal that referenced this issue Apr 19, 2024
…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.
@srenault-meeds srenault-meeds changed the title Unsearchable disabled users by their email or name [UsersManagement] Unsearchable disabled users by their email or name Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Waiting on
Development

No branches or pull requests

3 participants