fix: Restore direct equalTo pointer queries#524
fix: Restore direct equalTo pointer queries#524gut-puncture wants to merge 1 commit intoparse-community:masterfrom
Conversation
|
🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review. Tip
Note Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect. Caution Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. Our CI and AI review are safeguards, not development tools. If many issues are flagged, rethink your development approach. Invest more effort in planning and design rather than using review cycles to fix low-quality code. |
📝 WalkthroughWalkthrough
ChangesParseObject Direct Encoding and Multi-Condition Support
🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 6 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
c053008 to
b1b0b5c
Compare
|
I will reformat the title to use the proper commit message syntax. |
|
Ready for review. This PR is intentionally scoped to #516: it adds a regression test for the direct pointer query shape and keeps combined same-key constraints using operator maps. |
Fixes #516.
This keeps the existing
$eqbehavior for scalar equality and combined same-key constraints, but restores direct pointer equality forequalTo()when the value is aParseObjectand it is the only constraint on that key. That matches the REST query shape needed for pointer-in-array and relation membership checks such as_Role.users.I also added focused coverage for direct pointer encoding and for preserving other same-key constraints when a pointer equality already exists.
Verification:
git diff --checkSummary by CodeRabbit