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

feat(planter filter): include partial matches in results #165

Conversation

Mloweedgar
Copy link
Contributor

@Mloweedgar Mloweedgar commented Sep 23, 2021

Description

Extending filter to work with parts of the string when filtering planters by first name, last name, email or phone number. the filter has been made case insensitive and can find anything within a supplied string (eg. LIKE '%gmail.co%' )
in order to find planters easily

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

  • Bugfix

Issue

What is the current behavior?

When filtering string fields in the Planters filter (First Name, Last Name, Email, Phone Number) only exact matches are returned in the results.

see #151 and #162 for more details

What is the new behavior?

When filtering string fields in the Planters filter (First Name, Last Name, Email, Phone Number) partial matches as well as exact matches are returned in the results. see image below
filter_includes_partial_results

Breaking change

Does this PR introduce a breaking change?

  • No

@Mloweedgar Mloweedgar marked this pull request as ready for review September 23, 2021 19:59
Copy link
Collaborator

@nmcharlton nmcharlton left a comment

Choose a reason for hiding this comment

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

Beautifully done. I'm delighted to see this level of rigour.

@nmcharlton nmcharlton merged commit 90d493e into Greenstand:master Sep 24, 2021
@Mloweedgar Mloweedgar deleted the feature/include_planter_filter_partial_matches branch September 25, 2021 18:15
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.

Extending filter to work with parts of the string Planter filter: Include partial matches in results
2 participants