opted-eu / wp3inventory

WP3 Inventory
https://meteor.opted.eu/
GNU General Public License v3.0
2 stars 2 forks source link

Facet Query Filter: coercion of datetime type has wrong logic #217

Closed mrwunderbar666 closed 1 year ago

mrwunderbar666 commented 1 year ago

This bug is not covered by the unit tests, because there are no query checks for facets of type datetime.

Should be fixed by changing the order of coercion. Also add a unit test to cover this case.

https://github.com/opted-eu/wp3inventory/blob/432d0f47591e66b98a5116cab0cb36246c39eec7/flaskinventory/flaskdgraph/dgraph_types.py#L161

mrwunderbar666 commented 1 year ago

see #224