-
Notifications
You must be signed in to change notification settings - Fork 8
[Filter] Do not only allow string on multi select filter. #356
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
Conversation
@lukmzig Do you know if there is a reason why we only allow string on multiselect? |
hmmm I think it was just to have a better controller over that modifier itself. I we allow any values, then we also do not need https://github.com/pimcore/generic-data-index-bundle/blob/2.x/src/Model/Search/Modifier/Filter/FieldType/BooleanMultiSelectFilter.php right? Another option is to introduce NumberMultiselectFilter and allow integer and floats? Maybe we should discuss the approach here |
@lukmzig This should be considered as a bug? I would say it is an Improvement, since we now allow additional types. Introducing a NumberMultiSelectFilter would be unnecessary overhead, since the existing MultiSelectFilter already supports numbers. Otherwise, we’d also have to distinguish in Studio whether a value is a string or a number. WDYT? |
Alright, sounds good :) Could you add the validation for the types? |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
Changes in this pull request
Resolves pimcore/studio-backend-bundle#1409
Additional info