-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Saving pointer saves whole object #6049
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
Comments
It is probably a bug in the Parse Dashboard. It seems like a corner case of this bug that was recently addressed: parse-community/parse-dashboard#1223 I will take a look on this. |
This PR should fix it: parse-community/parse-dashboard#1291 |
I have found just one issue.
|
@douglasmuraoka thanks for reporting. It should not save the attribute. So I pushed one more commit to the PR in which we do not show invalid pointers anymore after commiting a change. Can you please take a look again? |
Issue Description
Saving a
User
pointer in an array saves the whole object.Possibly related to #691.
Steps to reproduce
Pointer
but asObject
containing all fields, e.g.Pointer
has been replaced byObject
in DBNotes:
This does not happen right after starting the server. It seems that the user needs to be cached or something. For me it happens when I do it in a class that contains a relation field where the user is added and I first add the user to an array there. The issue then occurs in every other class as well. I haven't quite nailed down the pattern yet.
The class where it occurs has no beforeSave / afterSave hook.
This actually seems to be a Parse Dashboard issue rather than a Parse Server issue.
Expected Results
Pointer value should be added to array as is.
Actual Outcome
The whole object is added to the array.
Environment Setup
Server
Database
Logs/Trace
(none)
The text was updated successfully, but these errors were encountered: