-
Notifications
You must be signed in to change notification settings - Fork 824
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
FIX Use OR conjuctive in filterAny aggregate queries #10778
FIX Use OR conjuctive in filterAny aggregate queries #10778
Conversation
5d11357
to
25a4488
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't done a full review of this, as it seems likely that a lot will need to change to account for not making the API breaking changes.
25a4488
to
505e661
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two things that don't fit in code comments:
Which branch to target
This is a bug fix so arguably should target 4.13
or 5.0
- I'm guessing you're targetting 5
because of the API change?
I'm on the fence so I'll raise the question but not ask for one or the other.
How did it used to work?
I can't find anything in this PR that points at how the original HAVING
clause was built.... it might just be that I missed it, but I'm a little worried that this solution is just side-stepping whatever the original mechanism was, which might mean we're left with dead code.
One of the ACs is:
I'm not sure either, though it's also not really relevant? Somewhere else in the ORM a HAVING clause was chosen to be used, which may seem a little weird though it's fine since it still does what it needs to. Changing the HAVING clause to a WHERE clause is out of scope for this bugfix PR. Also probably no point in doing so. |
Good point on the AC, I forgot about that - I'll need to make more of an effort to remember to check that more frequently while reviewing lest I review out of context 😅
I'm not saying we should change from |
I'm confused - the |
505e661
to
3ded149
Compare
As per discussion IRL - the old mechanism is still in use for other purposes so no change needed for that. |
3ded149
to
3b9254b
Compare
3b9254b
to
696fe79
Compare
Issue #10744