Skip to content

[AAP-42092] Use case-insensitive filters for all toolbar text searches#3122

Open
amasolov wants to merge 1 commit intoansible:develfrom
amasolov:fix/case-insensitive-user-search
Open

[AAP-42092] Use case-insensitive filters for all toolbar text searches#3122
amasolov wants to merge 1 commit intoansible:develfrom
amasolov:fix/case-insensitive-user-search

Conversation

@amasolov
Copy link
Copy Markdown

Summary

  • Switch all user-typed toolbar text filter lookups from __contains to __icontains across 13 files
  • Fixes case-sensitive search on the Users page (username, first name, last name, email) and all other toolbar text filters (role names, task names, authenticator mapping names)
  • Restores case-insensitive search behaviour matching AAP 2.4

Test plan

  • Navigate to Access > Users, search for a username in different case (e.g. uppercase when stored as lowercase). Verify the user is found.
  • Repeat for email, first name, and last name filters on the Users page.
  • Navigate to roles lists (AWX, EDA, Hub) and search for a role name in different case. Verify the role is found.
  • Navigate to Hub > Tasks and search for a task name in different case.

Closes #3121

Made with Cursor

Toolbar filter hooks used `__contains` lookups for user-typed text
fields (username, first_name, last_name, email, name, and
role_definition__name). On PostgreSQL the `__contains` lookup
produces a case-sensitive `LIKE`, so searching for "david.levene"
would not match "David.LeVene".

Switch all user-typed toolbar text filters to `__icontains` across
platform, AWX, EDA, and Hub views so that search is consistently
case-insensitive, restoring parity with the 2.4 platform.

Affected areas:
- Platform: users, organisation users, authenticator mappings
- AWX: roles, resource selection
- EDA: roles
- Hub: users, roles, tasks, resource selection
- Common: access/role assignment lists

Signed-off-by: Alexey Masolov <amasolov@redhat.com>
Made-with: Cursor
@vidyanambiar
Copy link
Copy Markdown
Member

/run-playwright

@aap-pde-ci-bot
Copy link
Copy Markdown
Collaborator

Currents dashboard

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.

Toolbar text filters are case-sensitive on PostgreSQL (__contains instead of __icontains)

3 participants