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

[Object grid] Quantity value filter #5211

Merged

Conversation

BlackbitDevs
Copy link
Contributor

@BlackbitDevs BlackbitDevs commented Nov 7, 2019

This PR adds the grid column filter for quantity value fields. It supports selecting a unit and also converts the value to be compared to compatible units, e.g. when you filter for "< 10 cm" it also finds objects which have "50 mm" in the quantity value field (given those units have been set to be convertable).

@BlackbitDevs BlackbitDevs marked this pull request as ready for review December 21, 2019 21:04
@weisswurstkanone weisswurstkanone self-assigned this Jan 10, 2020
@weisswurstkanone
Copy link
Contributor

$value in not an array if you open the filter but leave the unit combo empty. This will result in an error.

image

Apart from that, awesome stuff 👍

@BlackbitDevs
Copy link
Contributor Author

BlackbitDevs commented Jan 14, 2020

Thanks @weisswurstkanone - nice to hear that all those evenings were worth it.

Fixed the mentioned bug.
And now the default unit gets preselected (if set).

Looking forward to your review. When this PR is merged I will start implementing the even more important relation filter (#699)...

@weisswurstkanone
Copy link
Contributor

Excellent! Thanks a lot!

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