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

search: fix number facets behavior #550

Merged
merged 1 commit into from
May 22, 2023

Conversation

zannkukai
Copy link
Contributor

Behavior to know if a facet is selected or not are based on query string argument; the value of a query string argument is always a "string". But For an aggregation/facet with only numeric values, all checks failed because we compared "string" versus "number". To fix this, we add the ".toString()" (available for all native datatype) method into the
required functions.

Behavior to know if a facet is selected or not are based on query string
argument; the value of a query string argument is always a "string". But
For an aggregation/facet with only numeric values, all checks failed
because we compared "string" versus "number". To fix this, we add the
".toString()" (available for all native datatype) method into the
 required functions.

Co-authored-by: Renaud Michotte <renaud.michotte@gmail.com>
@zannkukai zannkukai self-assigned this May 15, 2023
@zannkukai zannkukai requested review from Garfield-fr and jma May 15, 2023 08:29
@zannkukai zannkukai merged commit be03fde into rero:staging May 22, 2023
@zannkukai zannkukai deleted the zan-fix-number-facet branch May 22, 2023 08:01
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.

3 participants