Aggregates still not working correctly
I have a few custom aggregates that have a filter on them that don't seem to work anymore.
generates sql that doesn't include the filter at all
This had worked before, but I'm assuming with the changes made to aggregates was broken
9 Replies
Can I see
query.aggregates
after you’ve added the aggregate?and you're on the latest versions of everything?
as of 2 days ago?

Will look into this today
Well
the reason for this is because there is no
filter
option to Ash.Query.aggregate
🙂
there is a query
option
We had some bad examples doing this in the AshPostgres
tests, although the docs do show the query
option
nope, they don't
the function docs do, but the examples in the docs use filter
😢
fixed, will be updated on the next deployfilter used to work hahaa
so use query, or use filter
use
query
I think it might have been the change to the options list version of aggregate
that used to be the positional query
argument
but now its opts
?
Honestly, I don't know. We'll clean it up in 3.0, sorry it got you🙂
all good, bug finder kernel!