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 for improving user search. #3407

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

johnpinto1
Copy link
Contributor

@johnpinto1 johnpinto1 commented Apr 10, 2024

Currently Searches of users using search "firstname_<empty_spaces>_surname" will only get valid matches if the <empty_spaces> is a single empty space.

Change:
The search term string is squished to remove extra empty spaces. As a
result search terms like "Jill Bloggs" (one space between) and "Jill Bloggs" (more than one space between) will both return the same results.

Reference:
https://api.rubyonrails.org/classes/String.html#method-i-squish

@johnpinto1
Copy link
Contributor Author

johnpinto1 commented Apr 10, 2024

Will rebase with development once @benjaminfaure has released v4.2. That should fix test failures.

@johnpinto1 johnpinto1 force-pushed the fix-for-improving-user-search branch from 6808847 to ec8f36b Compare April 10, 2024 15:59
Currently Searches of users using search "firstname_<empty_spaces>_surname"
will only get valid matches if the _<empty_spaces>_ is a single empty space.

Change:
The search term string is squished to remove extra empty spaces. As a
result search terms like "Jill Bloggs" (one space between) and "Jill    Bloggs" (more than one space between) will both return the same results.
@johnpinto1 johnpinto1 force-pushed the fix-for-improving-user-search branch from ec8f36b to 4e6995e Compare April 16, 2024 12:03
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.

None yet

1 participant