-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: simplify the arguments for the
setRanges()
method in numeric …
…and date facets (#4042) Refactor date and numeric facet controllers to use `DateRangeRequest` and `NumericRangeRequest` instead of `*FacetValue` types. The current `setRanges` method requires unnecessary parameters from the implementers, such as `isAutoSelected`, `isSuggested`, `moreValuesAvailable`, and `numberOfResults`. This update changes the method's type so that users only need to provide the necessary parameters: `start`, `end`, `state`, and `endInclusive`.⚠️ BREAKINGish CHANGE⚠️ [KIT-3226](https://coveord.atlassian.net/browse/KIT-3226). [KIT-3226]: https://coveord.atlassian.net/browse/KIT-3226?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Olivier Lamothe <[email protected]> Co-authored-by: GitHub Actions Bot <> Co-authored-by: Frederic Beaudoin <[email protected]> Co-authored-by: Louis Bompart <[email protected]> Co-authored-by: Felix Perron-Brault <[email protected]>
- Loading branch information
1 parent
ea5c9b1
commit 20c0978
Showing
7 changed files
with
28 additions
and
26 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
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
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
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