-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Fixed a bug affecting updates to nested pointers #7392
Fixed a bug affecting updates to nested pointers #7392
Conversation
Also created unit tests
Codecov Report
@@ Coverage Diff @@
## master #7392 +/- ##
=======================================
Coverage 93.91% 93.91%
=======================================
Files 181 181
Lines 13209 13210 +1
=======================================
+ Hits 12405 12406 +1
Misses 804 804
Continue to review full report at Codecov.
|
Thanks for the PR. It looks that the tests are not passing for Postgres. Could you please take a look? |
The new test fails on PostgreSQL, likely because the issue remains. Unfortunately, our use case does not involve PostgreSQL so we have limited motivation to fix the PostgreSQL adapter. Perhaps we can mark the new test as pending on PostgreSQL? |
…stgre The issue is not fixed yet Use cont instead of var
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.
Agree; MongoDB is clearly the more important adapter, updating it should not be held back by another adapter. |
🎉 This change has been released in version 5.0.0-beta.1 |
🎉 This change has been released in version 5.0.0 |
Also created unit tests
New Pull Request Checklist
Issue Description
Updates to nested pointers don't work
Related issue: #7391
Approach
MongoTransform avoids prefixing nested keys with _p_, even if they contain the "__type: Pointer" field.
transformQueryKeyValue invokes transformInteriorAtom if the key is nested (contains a dot)
TODOs before merging