Skip to content
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

Let the iOS SDK handle Delete ops when sent from the server #928

Merged
merged 1 commit into from
Jun 19, 2017

Conversation

flovilmart
Copy link
Contributor

Related to: parse-community/parse-server#1946
Original Issue: parse-community/parse-server#1840

In a nutshell:

When performing an unset in Cloud Code the client SDKs need to perform a fetch in order the synchronize their state which is redundant and can possibly break the SoC.

On parse.com, the bug is present, and the deleted key is not part of the response. No way to know what really happened on cloud code.

In parse-server, the server responds with a Delete op on the key.
When serializing the JSON response, undefined keys are stripped out of the generated string.
We could have replaced with null but that would also require updates on both SDK's to properly handle nulls. and we don't really love NSNull on iOS do we?

@flovilmart flovilmart force-pushed the parse-server-1840 branch from badda10 to b36714a Compare May 29, 2016 17:35
@nlutsenko nlutsenko self-assigned this May 29, 2016
@flovilmart
Copy link
Contributor Author

@nlutsenko any news on that?

@ghost ghost added the CLA Signed label Jul 12, 2016
@ShawnBaek
Copy link
Contributor

@flovilmart Thanks for contribute this repos. Anyway What's going on? @nlutsenko any update?

@flovilmart flovilmart merged commit fc6bad7 into parse-community:master Jun 19, 2017
@flovilmart flovilmart deleted the parse-server-1840 branch June 19, 2017 01:26
tkhoa87 added a commit to notabasement/Parse-SDK-iOS-OSX that referenced this pull request Jun 30, 2017
* ParsePlatform/master:
  ⚡️ Release 1.15.0 (parse-community#1153)
  ⚡ Release 1.14.5 (parse-community#1152)
  Add withinPolygon to Query (parse-community#1150)
  Use getter instead accessing instance variable (parse-community#1026)
  Makes PFEncoder and PFDecoder public for LiveQuery (parse-community#1149)
  Let the iOS SDK handle Delete ops when sent from the server (parse-community#928)
  Outputing offending bundle in assert message. (parse-community#1000)
  Update documentation links (parse-community#1102)
  Swift 3 (parse-community#1145)
  Allowing to re-save installation if LDS is enabled (parse-community#1125)
  Removed or replaced the broken links in the README (parse-community#1141)
  update pod spec homepage (parse-community#1135)
  Update podspec link
  Update links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants