Repository navigation
fix: Preserve sibling fields in afterSave and LiveQuery snapshots - #10910
charan-rathore wants to merge 1 commit into
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. |
Issue
Fixes #10908.
Approach
The SDK pops the pending operations before merging the fields returned by the database. Parse Server now captures the attribute estimate before calling the SDK so the merge retains sibling writes alongside the authoritative atomic-operation result.
Tasks
afterSave, the save response, and LiveQuery without anafterSavetrigger.Verification
On Maritime with MongoDB 8.0.4, the three targeted regression cases failed on the upstream base and passed with the patch. The complete
spec/CloudCode.spec.jsandspec/ParseLiveQuery.spec.jsrun reported 367 specs, zero failures, and one pending spec.