Skip to content

Strip read only fields from serialized beforeSave responses #1964

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

Merged

Conversation

TylerBrock
Copy link
Contributor

@TylerBrock TylerBrock commented May 31, 2016

This fixes #1949 and makes parse-server behave like api.parse.com with regards to how response objects for beforeSave hooks are handled.

@TylerBrock TylerBrock force-pushed the strip-read-only-beforesave branch from f37450d to 830bd55 Compare May 31, 2016 23:19
@TylerBrock TylerBrock force-pushed the strip-read-only-beforesave branch from 830bd55 to f212f33 Compare May 31, 2016 23:23
@TylerBrock TylerBrock force-pushed the strip-read-only-beforesave branch from f212f33 to 86f2808 Compare May 31, 2016 23:23
@codecov-io
Copy link

codecov-io commented May 31, 2016

Current coverage is 91.90%

Merging #1964 into master will increase coverage by <.01%

  1. 2 files (not in diff) in src were modified. more
    • Misses -2
    • Hits +2
  2. File ...s/HooksController.js was modified. more
    • Misses -2
    • Partials 0
    • Hits +2
@@             master      #1964   diff @@
==========================================
  Files            91         91          
  Lines          6397       6399     +2   
  Methods        1094       1094          
  Messages          0          0          
  Branches       1342       1342          
==========================================
+ Hits           5875       5881     +6   
+ Misses          522        518     -4   
  Partials          0          0          

Powered by Codecov. Last updated by 5176efb...657c6c0

@ghost
Copy link

ghost commented May 31, 2016

@TylerBrock updated the pull request.

@drew-gross drew-gross merged commit 04172ed into parse-community:master Jun 1, 2016
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.

Updating object without updatedAt returns error that field is of wrong type
3 participants