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

Feature/add support for an in filter operator to grid helper #115

Conversation

mfedak-notebooksbillger
Copy link
Contributor

Changes in this pull request

Add support for an 'in' filter operator when filtering numerical fields in the grid.

Additional info

At Notebooksbilliger we had a need to filter a column in the grid with multiple values. We have created our own bundle to achieve this but we did have to modify some core code. We are currently changing this core file using a composer patch but would love to see this extra operator check included in future.

Example: https://beta.im.ge/i/in-filter-numeric-columns.FM5r79

(Is related to pimcore/pimcore#15315)

@aryaantony92
Copy link
Contributor

aryaantony92 commented Aug 1, 2023

To be merged after pimcore/pimcore:v1.1.0 is released

@mfedak-notebooksbillger
Copy link
Contributor Author

To be merged after pimcore/pimcore:v1.1.0 is released

After pimcore/pimcore:v11.1.0

@aryaantony92
Copy link
Contributor

aryaantony92 commented Sep 18, 2023

@mfedak-notebooksbillger Looks Good. But could you please refactor the code in override.js such that we don't need to take care of the existing options like gt,lt,eq etc. Like we do for Quantity Value using the inheritance here

getGridColumnFilter: function (field) {

Ext.define('Ext.grid.filters.filter.QuantityValue', {

@aryaantony92
Copy link
Contributor

@mfedak-notebooksbillger Thank you for the PR. We will focus on the refactoring #115 (comment) in a follow up PR.

@aryaantony92 aryaantony92 merged commit 82aa7a8 into pimcore:1.x Sep 19, 2023
7 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants