{"action":"closed","number":290,"pull_request":{"url":"https://api.github.com/repos/ParsePlatform/docs/pulls/290","id":54619746,"html_url":"https://github.com/ParsePlatform/docs/pull/290","diff_url":"https://github.com/ParsePlatform/docs/pull/290.diff","patch_url":"https://github.com/ParsePlatform/docs/pull/290.patch","issue_url":"https://api.github.com/repos/ParsePlatform/docs/issues/290","number":290,"state":"closed","locked":false,"title":"beforeSave does not update modified object","user":{"login":"electronicMe","id":6967195,"avatar_url":"https://avatars.githubusercontent.com/u/6967195?v=3","gravatar_id":"","url":"https://api.github.com/users/electronicMe","html_url":"https://github.com/electronicMe","followers_url":"https://api.github.com/users/electronicMe/followers","following_url":"https://api.github.com/users/electronicMe/following{/other_user}","gists_url":"https://api.github.com/users/electronicMe/gists{/gist_id}","starred_url":"https://api.github.com/users/electronicMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electronicMe/subscriptions","organizations_url":"https://api.github.com/users/electronicMe/orgs","repos_url":"https://api.github.com/users/electronicMe/repos","events_url":"https://api.github.com/users/electronicMe/events{/privacy}","received_events_url":"https://api.github.com/users/electronicMe/received_events","type":"User","site_admin":false},"body":"When modifying an object in the beforeSave trigger, it needs to be specified when calling response.success(). Otherwise parse does not notice that the object has been modefied.\r\nThis error occoured when running the cloud code local or on heroku (maybe it does not happen when running the code on the parse cloud code platform).\r\n\r\nWhen calling `response.success();`, the HTTP response looks like this (even if the object has been modified):\r\n```\r\n{\r\n    \"success\": true\r\n}\r\n```\r\n\r\nWhenn calling `response.success(request.object);`, the response looks something like this:\r\n```\r\n{\r\n    \"success\": {\r\n        ** the modified object here **\r\n    }\r\n}\r\n```\r\n\r\nWhen returning the modified object, parse will save the modified object.","created_at":"2015-12-27T16:05:10Z","updated_at":"2016-07-26T21:54:18Z","closed_at":"2016-07-26T21:54:18Z","merged_at":null,"merge_commit_sha":"b55a3b0b84683cc08c9e4e46643f612f48f8f0fa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ParsePlatform/docs/pulls/290/commits","review_comments_url":"https://api.github.com/repos/ParsePlatform/docs/pulls/290/comments","review_comment_url":"https://api.github.com/repos/ParsePlatform/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ParsePlatform/docs/issues/290/comments","statuses_url":"https://api.github.com/repos/ParsePlatform/docs/statuses/7ad5f9054d97f1a94bba374e24d32db0f22f2fb3","head":{"label":"electronicMe:master","ref":"master","sha":"7ad5f9054d97f1a94bba374e24d32db0f22f2fb3","user":{"login":"electronicMe","id":6967195,"avatar_url":"https://avatars.githubusercontent.com/u/6967195?v=3","gravatar_id":"","url":"https://api.github.com/users/electronicMe","html_url":"https://github.com/electronicMe","followers_url":"https://api.github.com/users/electronicMe/followers","following_url":"https://api.github.com/users/electronicMe/following{/other_user}","gists_url":"https://api.github.com/users/electronicMe/gists{/gist_id}","starred_url":"https://api.github.com/users/electronicMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electronicMe/subscriptions","organizations_url":"https://api.github.com/users/electronicMe/orgs","repos_url":"https://api.github.com/users/electronicMe/repos","events_url":"https://api.github.com/users/electronicMe/events{/privacy}","received_events_url":"https://api.github.com/users/electronicMe/received_events","type":"User","site_admin":false},"repo":{"id":48650618,"name":"Docs","full_name":"electronicMe/Docs","owner":{"login":"electronicMe","id":6967195,"avatar_url":"https://avatars.githubusercontent.com/u/6967195?v=3","gravatar_id":"","url":"https://api.github.com/users/electronicMe","html_url":"https://github.com/electronicMe","followers_url":"https://api.github.com/users/electronicMe/followers","following_url":"https://api.github.com/users/electronicMe/following{/other_user}","gists_url":"https://api.github.com/users/electronicMe/gists{/gist_id}","starred_url":"https://api.github.com/users/electronicMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electronicMe/subscriptions","organizations_url":"https://api.github.com/users/electronicMe/orgs","repos_url":"https://api.github.com/users/electronicMe/repos","events_url":"https://api.github.com/users/electronicMe/events{/privacy}","received_events_url":"https://api.github.com/users/electronicMe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/electronicMe/Docs","description":"These are the markdown sources for all the platform guides of Parse.","fork":true,"url":"https://api.github.com/repos/electronicMe/Docs","forks_url":"https://api.github.com/repos/electronicMe/Docs/forks","keys_url":"https://api.github.com/repos/electronicMe/Docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/electronicMe/Docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/electronicMe/Docs/teams","hooks_url":"https://api.github.com/repos/electronicMe/Docs/hooks","issue_events_url":"https://api.github.com/repos/electronicMe/Docs/issues/events{/number}","events_url":"https://api.github.com/repos/electronicMe/Docs/events","assignees_url":"https://api.github.com/repos/electronicMe/Docs/assignees{/user}","branches_url":"https://api.github.com/repos/electronicMe/Docs/branches{/branch}","tags_url":"https://api.github.com/repos/electronicMe/Docs/tags","blobs_url":"https://api.github.com/repos/electronicMe/Docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/electronicMe/Docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/electronicMe/Docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/electronicMe/Docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/electronicMe/Docs/statuses/{sha}","languages_url":"https://api.github.com/repos/electronicMe/Docs/languages","stargazers_url":"https://api.github.com/repos/electronicMe/Docs/stargazers","contributors_url":"https://api.github.com/repos/electronicMe/Docs/contributors","subscribers_url":"https://api.github.com/repos/electronicMe/Docs/subscribers","subscription_url":"https://api.github.com/repos/electronicMe/Docs/subscription","commits_url":"https://api.github.com/repos/electronicMe/Docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/electronicMe/Docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/electronicMe/Docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/electronicMe/Docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/electronicMe/Docs/contents/{+path}","compare_url":"https://api.github.com/repos/electronicMe/Docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/electronicMe/Docs/merges","archive_url":"https://api.github.com/repos/electronicMe/Docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/electronicMe/Docs/downloads","issues_url":"https://api.github.com/repos/electronicMe/Docs/issues{/number}","pulls_url":"https://api.github.com/repos/electronicMe/Docs/pulls{/number}","milestones_url":"https://api.github.com/repos/electronicMe/Docs/milestones{/number}","notifications_url":"https://api.github.com/repos/electronicMe/Docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/electronicMe/Docs/labels{/name}","releases_url":"https://api.github.com/repos/electronicMe/Docs/releases{/id}","deployments_url":"https://api.github.com/repos/electronicMe/Docs/deployments","created_at":"2015-12-27T15:49:18Z","updated_at":"2015-12-24T15:17:28Z","pushed_at":"2015-12-27T16:02:32Z","git_url":"git://github.com/electronicMe/Docs.git","ssh_url":"git@github.com:electronicMe/Docs.git","clone_url":"https://github.com/electronicMe/Docs.git","svn_url":"https://github.com/electronicMe/Docs","homepage":"https://parse.com/docs","size":2776,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ParsePlatform:master","ref":"master","sha":"6d976df19cbfa7f961a4d42b160d5808c8fe5b13","user":{"login":"ParsePlatform","id":1294580,"avatar_url":"https://avatars.githubusercontent.com/u/1294580?v=3","gravatar_id":"","url":"https://api.github.com/users/ParsePlatform","html_url":"https://github.com/ParsePlatform","followers_url":"https://api.github.com/users/ParsePlatform/followers","following_url":"https://api.github.com/users/ParsePlatform/following{/other_user}","gists_url":"https://api.github.com/users/ParsePlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/ParsePlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ParsePlatform/subscriptions","organizations_url":"https://api.github.com/users/ParsePlatform/orgs","repos_url":"https://api.github.com/users/ParsePlatform/repos","events_url":"https://api.github.com/users/ParsePlatform/events{/privacy}","received_events_url":"https://api.github.com/users/ParsePlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":31440605,"name":"docs","full_name":"ParsePlatform/docs","owner":{"login":"ParsePlatform","id":1294580,"avatar_url":"https://avatars.githubusercontent.com/u/1294580?v=3","gravatar_id":"","url":"https://api.github.com/users/ParsePlatform","html_url":"https://github.com/ParsePlatform","followers_url":"https://api.github.com/users/ParsePlatform/followers","following_url":"https://api.github.com/users/ParsePlatform/following{/other_user}","gists_url":"https://api.github.com/users/ParsePlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/ParsePlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ParsePlatform/subscriptions","organizations_url":"https://api.github.com/users/ParsePlatform/orgs","repos_url":"https://api.github.com/users/ParsePlatform/repos","events_url":"https://api.github.com/users/ParsePlatform/events{/privacy}","received_events_url":"https://api.github.com/users/ParsePlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ParsePlatform/docs","description":"These are the markdown sources for all the platform guides of Parse.","fork":false,"url":"https://api.github.com/repos/ParsePlatform/docs","forks_url":"https://api.github.com/repos/ParsePlatform/docs/forks","keys_url":"https://api.github.com/repos/ParsePlatform/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ParsePlatform/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ParsePlatform/docs/teams","hooks_url":"https://api.github.com/repos/ParsePlatform/docs/hooks","issue_events_url":"https://api.github.com/repos/ParsePlatform/docs/issues/events{/number}","events_url":"https://api.github.com/repos/ParsePlatform/docs/events","assignees_url":"https://api.github.com/repos/ParsePlatform/docs/assignees{/user}","branches_url":"https://api.github.com/repos/ParsePlatform/docs/branches{/branch}","tags_url":"https://api.github.com/repos/ParsePlatform/docs/tags","blobs_url":"https://api.github.com/repos/ParsePlatform/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ParsePlatform/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ParsePlatform/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ParsePlatform/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ParsePlatform/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/ParsePlatform/docs/languages","stargazers_url":"https://api.github.com/repos/ParsePlatform/docs/stargazers","contributors_url":"https://api.github.com/repos/ParsePlatform/docs/contributors","subscribers_url":"https://api.github.com/repos/ParsePlatform/docs/subscribers","subscription_url":"https://api.github.com/repos/ParsePlatform/docs/subscription","commits_url":"https://api.github.com/repos/ParsePlatform/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ParsePlatform/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ParsePlatform/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ParsePlatform/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ParsePlatform/docs/contents/{+path}","compare_url":"https://api.github.com/repos/ParsePlatform/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ParsePlatform/docs/merges","archive_url":"https://api.github.com/repos/ParsePlatform/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ParsePlatform/docs/downloads","issues_url":"https://api.github.com/repos/ParsePlatform/docs/issues{/number}","pulls_url":"https://api.github.com/repos/ParsePlatform/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/ParsePlatform/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/ParsePlatform/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ParsePlatform/docs/labels{/name}","releases_url":"https://api.github.com/repos/ParsePlatform/docs/releases{/id}","deployments_url":"https://api.github.com/repos/ParsePlatform/docs/deployments","created_at":"2015-02-27T21:47:46Z","updated_at":"2016-07-26T21:40:44Z","pushed_at":"2016-07-26T21:53:15Z","git_url":"git://github.com/ParsePlatform/docs.git","ssh_url":"git@github.com:ParsePlatform/docs.git","clone_url":"https://github.com/ParsePlatform/docs.git","svn_url":"https://github.com/ParsePlatform/docs","homepage":"https://parse.com/docs","size":8646,"stargazers_count":194,"watchers_count":194,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":287,"mirror_url":null,"open_issues_count":7,"forks":287,"open_issues":7,"watchers":194,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/ParsePlatform/docs/pulls/290"},"html":{"href":"https://github.com/ParsePlatform/docs/pull/290"},"issue":{"href":"https://api.github.com/repos/ParsePlatform/docs/issues/290"},"comments":{"href":"https://api.github.com/repos/ParsePlatform/docs/issues/290/comments"},"review_comments":{"href":"https://api.github.com/repos/ParsePlatform/docs/pulls/290/comments"},"review_comment":{"href":"https://api.github.com/repos/ParsePlatform/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ParsePlatform/docs/pulls/290/commits"},"statuses":{"href":"https://api.github.com/repos/ParsePlatform/docs/statuses/7ad5f9054d97f1a94bba374e24d32db0f22f2fb3"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":4,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"hramos"}}