-
Notifications
You must be signed in to change notification settings - Fork 12
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
Does this library support filtering on nested associations tables (joined tables fields)? #10
Comments
Sure, look at readme examples. |
I have tried something like this as outlined in the readme examples:
But it is not working at all. I am using Phoenix 1.3 and suspect that this might be due to the newly introduced contexts. |
Could you please provide a full example or simple test that could help to reproduce issue? Because this example works fine for me. |
I have properties belonging to users. A property has a user_id field referencing it to a user. I tried to do users_name_cont but nothing happens. |
Did you expect that ex_sieve detect relation and make join instead of you? It doesn't work that way, you should make explicit join before apply ex_sieve filters. |
Actually, this functionality only works one level deep, and it would be immensely useful to filter on arbitrary nested fields. Right now, one can only do filters like
... however things get messy after this as the
Any help appreciated, especially by @albertored who did changes here recently. Thanks! |
Hi @ekarak, as soon as I find some free time I will take a look at it |
@ekarak I think I have something working, in the next days I will clean up the code a little bit a push it |
Thats great, thanks @albertored ! |
@ekarak I have just pushed a branch with the new feature, if you want you can give it a try |
thank you @albertored ! Will test asap |
This works beautifully! I want to test it a bit more (mainly to check for edge cases). @valyukov can you take a look as well? |
No description provided.
The text was updated successfully, but these errors were encountered: