-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
Save Method for Parse.Config #684
Conversation
Codecov Report
@@ Coverage Diff @@
## master #684 +/- ##
==========================================
+ Coverage 85.71% 85.77% +0.05%
==========================================
Files 48 48
Lines 3886 3902 +16
Branches 885 886 +1
==========================================
+ Hits 3331 3347 +16
Misses 555 555
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.
Thanks for the Pr, please address the changes and we’ll merge it!
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 remove the params options in save as it is of no use (the SDK will reject later when not using the master key).
Can you also add a test that ensures when calling save, the original values are not overridden on the server when not passed?
Not passed values can't be overriden during the |
src/__tests__/ParseConfig-test.js
Outdated
@@ -142,16 +142,6 @@ describe('ParseConfig', () => { | |||
}); | |||
}); | |||
|
|||
it('cant save a config object without masterkey', (done) => { | |||
ParseConfig.save({str: 'hello2','num':46}).then((config) => { | |||
expect(config).toBe(-1) |
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.
THis should still fail.
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.
Do I have to re-commit this test ?
I just wrote the guide doc, the API doc is missing |
What's missing here for merge ? |
Nothing, I just merged back master and was waiting for the CI to complete! Thanks! |
Allow to use
.save()
on Parse.Config when a masterKey is defined to avoid the use ofParse._request
#684save()
thenget()
strategy @flovilmart ?