Admin User search hides results by default
Summary
When using the Admin Users search to search for an email address or username the results will not show banned/blocked users. If no state filter is applied it should show all users regardless of state.
Steps to reproduce
- Search by email or username for a banned/blocked user without using state filters.
Example Project
What is the current bug behavior?
No search results are returned for users that are known to be in the system in a banned/blocked state.
What is the expected correct behavior?
Search results should include all users regardless of state if no state filter is applied.
Relevant logs and/or screenshots
CleanShot 2024-05-14 at 13.22.31.mp4
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: \`sudo gitlab-rake gitlab:env:info\`) (For installations from source run and paste the output of: \`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production\`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:check SANITIZE=true`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true`) (we will only investigate if the tests are passing)
Possible fixes
Edited by Austin Regnery