Optimizes and adds some methods - #22
Merged
Merged
Conversation
JoJordens
commented
Apr 23, 2015
- improved errors
- buffered files
- new user methods
- improved find method
- support for session tokens
- new unit tests
Parse error object contains more information about what went wrong
Fall-through takes care of it, post and put have identical headers
If they worked on it they should be added as contributors, right? No idea if I got everyone
insertUser: create new users updateUser: update keys other than username and email
The 'find' method can now be used to find a single object as well as many objects with every combination of query constraints that Parse allows. findMany is now deprecated
Adds a method to retrieve content of one or more user objects. Retrieving user data is identical to "find" except for the url (granted '/1/classes/_User' works too but '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/1/users' is the proper way to do it). Previous getUser method is now replaced by loginUser.
Session tokens only work with the rest api key. While using the master key you can edit all data anyway.
Parse.test.js runs tests against the master key, while testRestApiKey.js runs tests against the rest api key to test sesstion tokens for users.
getUser and getFileByUser now redirect to their respective newer version while logging a warning message to the console. Also removes one console.log from Parse.test.js and adds one more contributor.
Leveton
added a commit
that referenced
this pull request
Apr 23, 2015
Optimizes and adds some methods
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.