-
-
Notifications
You must be signed in to change notification settings - Fork 596
fix: Handle increment on nested fields deep level #1301
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 #1301 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 60 60
Lines 5823 5837 +14
Branches 1306 1312 +6
=========================================
+ Hits 5823 5837 +14
Continue to review full report at Codecov.
|
@sadortun thanks for the PR. Could you please add a test case? |
…sing undefined object
@davimacedo Here you go ! Merry Christmas :) ! Please ensure you check/test for other possible side effects :) I'm new to the wonderful world of |
@sadortun Can you add an integration test in I wrote a test and it fails. I think this is what you were trying to fix no? If not write a test that closely represent this issue. The Contribution Guide will show you how to run integration test and make sure to run
|
@dplewis thanks for the hint, I'll look at it! |
@sadortun The following tests pass with your fix.
The failing test I posted is a separate issue, its failing because serverData doesn't exist when you increment. This is caused by: https://github.com/sadortun/Parse-SDK-JS/blob/patch-1/src/ParseObject.js#L744 To fix you need to remove that and do an update on the server side. For your fix, can you add the passing test I posted and we can merge this in. We can do a separate issue for the bug I found. |
Thanks @dplewis ill get back to you later today or early tomorow |
Hi @dplewis Took some time, but i'm back ! I added the test. Also FYI, seems like I should also probably add/exclude your failing test from #1301 (comment) to ensure it's documented and get fixed :) Let me know! |
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.
LGTM! I'm going to open a PR for that other issue I pointed out.
Also FYI, seems like mustache is required but not in devDependencies
I don't know what that is.
Awesome! Any idea when this (and the other PR) will be available in a release ? Thanks a lot you guys are awesome! |
Thanks we try to do a release every 2 weeks. You can use the master branch if you need it. https://github.com/parse-community/Parse-SDK-JS#want-to-ride-the-bleeding-edge |
Fix #1299