Skip to content

Conversation

vthibault
Copy link

This add some new features to the search input :

  • cumulative filtering
  • term excluding using the '-' character

Cumulative filtering

Every spaces in the text field is considered as a "AND" operator.
Typing request user will match action types that contain at the same time "request" and "user" :

Action type
REQUEST_ADD_USER
REQUEST_REMOVE_USER
🚫 REQUEST_CONTACT
🚫 CONTACT_USER

Excluding terms

Every words starting with a "-" is considered as a term to exclude.
Typing request user -add will match action types that contain at the same time "request" and "user", but does not contain "add" :

Action type
🚫 REQUEST_ADD_USER
REQUEST_REMOVE_USER
REQUEST_FETCH_USER
REQUEST_USER

Additional notes

It's a breaking change in this cases :

  • If you want to match action that contain spaces.
  • If you want to match action that start with -.

This add some new features to action filtering : cumulative filtering and term excluding using the '-' character
@vthibault vthibault changed the title Extends search filters to add cumulative terms and excluding terms Extends search filters to add cumulative terms and terms exclusion Feb 11, 2020
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.

1 participant