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

Support filtering by multiple selected values #3027

Closed

Conversation

prusswan
Copy link

Currently the only way to filter by multiple selection (using IN operator) is to use enums, so I made a quick hack to get it to work with general integer columns. I can expand this further if there is more interest.

@prusswan prusswan force-pushed the multiple-selection-filtering branch from b327906 to d6e3866 Compare May 29, 2018 15:48
@mshibuya
Copy link
Member

Motivation is unclear, why you need this feature and how to use?

@prusswan
Copy link
Author

prusswan commented Jul 2, 2018

@mshibuya This is to allow filtering using multiple values similar to build_statement_for_enum. Right now if multiple values are passed in for the same integer column, the filtering will work like "AND" (a == 8 AND a == 7). If the column is enum, then it works like "OR" (a == 8 OR a == 7)

@mshibuya
Copy link
Member

mshibuya commented Jun 9, 2019

Change in ra.filter-box.js and main_helper.rb looks unrelated to the topic of PR, please separate them if you still need this feature.

@mshibuya mshibuya closed this Jun 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants