-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle composableFilterOption deserialization for legacy usage (#…
…718) | Q | A | ----------------- | ---------- | Bug fix? | yes | New feature? | no | BC breaks? | no | Need Doc update | no ## Describe your change One-string legacy filter deserialization behavior is fixed to handle parenthesis usage with multiple groups. Added more tests to cover possible usages. **PS:** This behavior is already fixed in other client libraries. This implementation is based on those PRs which are fixing the same issue. algolia/algoliasearch-client-java#771 algolia/algoliasearch-client-csharp#803 ## What problem is this fixing? When legacy one-string filters are used deserialization was not working as expected. Normally, it should work as below; ``` "color:green,color:yellow" => [["color:green"],["color:yellow"]] "(color:green,color:yellow),color:blue" => [["color:green","color:yellow"], ["color:blue"]] "(color:green,color:yellow)" => [["color:green","color:yellow"]] ```
- Loading branch information
1 parent
4099059
commit 301a2c5
Showing
6 changed files
with
97 additions
and
10 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