Multiple filters giving unexpected result
Say I have a data model similar to this:
I create some records and perform this query (note that
create!
is my own simple factory helper)
This is returning both user records. My understanding is that multiple Ash.Query.filter calls are combined with and
, so the first filter should constrain the results to 1 record at most. Is there anything I am doing wrong in the way my filters are defined?4 Replies
Here is the SQL generated, it seems like the id = user_1.id and id = user_2.id are incorrectly being combined with AND.
🤔 🤔 🤔
I feel like that can't be true because someone would have noticed 😆 but maybe this is that
Yep
I see the same thing
I'm fixing this immediately
fixed in 2.7.0
that was very embarrassing, sorry about that
Thank you for jumping on this, much appreciated! I'll verify it in my codebase now.
Works perfectly now 🥳
👍 excellent