-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add custom matchers to client side filters (#1922)
Before this PR, all values were matched in the same way: 1. value needs to be string or have string representation via getItemValue 2. positive match is returned if (lowercased) value contains (lowercased) filter value. After this PR, a custom algorithm can be provided using "matcher" property. Direct motivation is DateRange filter which stores filter values as ISO 8601 time intervals i.e. "2024-04-01/2024-05-01". Positive match (value is in the range) requires parsing to date objects. Reference-Url: https://en.wikipedia.org/wiki/ISO_8601#Time_intervals Reference-Url: #1913 Signed-off-by: Radoslaw Szwajkowski <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters