Repository navigation
fix(query): refuse keyed values in a having and()/or() group - #1096
Conversation
Validating group conditions directly skipped Filter's list-shape check, so an object of conditions passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Code review
The Having validator now rejects Walkthrough (2)
Reviewed Tip Comment |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|

What does this PR do?
Follow-up to #1095.
Havingnow validates the conditions of anand()/or()group itself, which skippedFilter's list-shape check, so a group whose conditions were given as an object ({"high": ..., "low": ...}) passed. It is now refused withOr query values must be a list, as a filter is.Found in review of the Rust port (appwrite/appwrite#16355), which gets the same fix.
Test Plan
QueryShapeHavingTestcase for a keyed logical group; fails without the fixQueryShapeDatabaseTestpass; PHPStan clean🤖 Generated with Claude Code
Summary by CodeRabbit