-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
fix: Objects wrongly getting converted to Array #2206
Conversation
Thanks for opening this pull request! |
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.
Looks good, just needs some clean up.
@@ -2187,4 +2187,37 @@ describe('Parse Object', () => { | |||
Parse.allowCustomObjectId = false; | |||
}); | |||
}); | |||
|
|||
fit('returns correct field values', async () => { |
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.
Can you remove fit
, clean up the test and add any additional values you can think of?
Also can you add a unit test to ensure the internals still work this change to JSONArray.
https://github.com/parse-community/Parse-SDK-JS/blob/alpha/src/__tests__/ObjectStateMutations-test.js#L316
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.
Please keep fit
until you have added and uncommented all the values from #2201 and the test passes.
I don't believe this fixes the issue, see #2198 (comment). There is a fundamental question we need to solve. Let's keep discussing it in the issue thread there. |
done the cleanup |
Superseded by #2201; thanks for the help in the investigation @mkmandar123 |
Pull Request
Closes: #2198
Approach
Issue demo