You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For consistency, we can handle like and in by overriding Python's contains method. However, cases like ilike will likely require a custom function due to their specific behavior.
To maintain clarity and reduce complexity, we should standardize on either overriding default operators or using custom functions for all cases, rather than mixing the two approaches.
To maintain clarity and reduce complexity, we should standardize
I don't think standardizing is a way forward at this point. Experiment with different API methods and see what sticks best.
Other than using a freestanding function that wraps internal methods on the proxy types, I have no idea.
My mind is hung up on the fact that executing the lambda is required to parse its syntax, I'm gonna experiment further into the direction that eliminates that aspect. This doesn't explicitly solve how to implement the advanced operators, but will have some overlap.
test_filter_in_list: weerspiegelt de relatie incorrect. moet externe functie worden is_in() of dergelijke
BetterOdooApiWrapper/tests/test_filter_operations.py
Lines 29 to 33 in d29ac66
test_filter_ilike: kan worden vereenvoudigd tot "john" in x.name
BetterOdooApiWrapper/tests/test_filter_operations.py
Lines 35 to 38 in d29ac66
The text was updated successfully, but these errors were encountered: