-
-
Notifications
You must be signed in to change notification settings - Fork 596
Allow fromJSON to set keys to dirty #1295
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1295 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 59 59
Lines 5792 5794 +2
Branches 1301 1302 +1
=========================================
+ Hits 5792 5794 +2
Continue to review full report at Codecov.
|
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.
Nice! I remember this being an issue a while ago.
Why is it I cannot find the changes in the latest version |
@ChinaeduPascal This may be just a TypeScript issue. I suggest you look into the SDK code and whether the feature has been removed again. The tests in |
@mtrezza You are right. The @types/parse definitions are not up-to-date. That's why I won't see the changes. |
Currently, there is no way to save fields to a Parse.Object using
fromJSON
, asdirtyKeys
doesn't get set.This can be confusing as at first glance, you would expect the keys to be set as they are defined. However, after the object is fetched, the keys will be null.
This PR allows a 3rd parameter to
fromJSON
, where you can specify whether the keys should be set to dirty.Properly closes #161 and #482