{"action":"created","comment":{"url":"https://api.github.com/repos/emberjs/data/pulls/comments/24457293","id":24457293,"diff_hunk":"@@ -417,6 +417,10 @@ createdState.uncommitted.rollback = function(record) {\n   record.transitionTo('deleted.saved');\n };\n \n+createdState.uncommitted.pushedData = function(record) {\n+  record.transitionTo('loaded.saved');\n+};\n+","path":"packages/ember-data/lib/system/model/states.js","position":7,"original_position":7,"commit_id":"affd9f3f956fcadf9a3c7629bf4ffd05160aef10","original_commit_id":"affd9f3f956fcadf9a3c7629bf4ffd05160aef10","user":{"login":"bmac","id":54056,"avatar_url":"https://avatars.githubusercontent.com/u/54056?v=3","gravatar_id":"","url":"https://api.github.com/users/bmac","html_url":"https://github.com/bmac","followers_url":"https://api.github.com/users/bmac/followers","following_url":"https://api.github.com/users/bmac/following{/other_user}","gists_url":"https://api.github.com/users/bmac/gists{/gist_id}","starred_url":"https://api.github.com/users/bmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmac/subscriptions","organizations_url":"https://api.github.com/users/bmac/orgs","repos_url":"https://api.github.com/users/bmac/repos","events_url":"https://api.github.com/users/bmac/events{/privacy}","received_events_url":"https://api.github.com/users/bmac/received_events","type":"User","site_admin":false},"body":"Looks like inside `buildRecord` the newly created record is in the `root.loading` state so this code doesn't get hit.","created_at":"2015-02-10T22:27:02Z","updated_at":"2015-02-10T22:27:02Z","html_url":"https://github.com/emberjs/data/pull/2771#discussion_r24457293","pull_request_url":"https://api.github.com/repos/emberjs/data/pulls/2771","_links":{"self":{"href":"https://api.github.com/repos/emberjs/data/pulls/comments/24457293"},"html":{"href":"https://github.com/emberjs/data/pull/2771#discussion_r24457293"},"pull_request":{"href":"https://api.github.com/repos/emberjs/data/pulls/2771"}}},"pull_request":{"url":"https://api.github.com/repos/emberjs/data/pulls/2771","id":29041500,"html_url":"https://github.com/emberjs/data/pull/2771","diff_url":"https://github.com/emberjs/data/pull/2771.diff","patch_url":"https://github.com/emberjs/data/pull/2771.patch","issue_url":"https://api.github.com/repos/emberjs/data/issues/2771","number":2771,"state":"open","locked":false,"title":"Fix hasMany simultaneous adds and removes bug","user":{"login":"bmac","id":54056,"avatar_url":"https://avatars.githubusercontent.com/u/54056?v=3","gravatar_id":"","url":"https://api.github.com/users/bmac","html_url":"https://github.com/bmac","followers_url":"https://api.github.com/users/bmac/followers","following_url":"https://api.github.com/users/bmac/following{/other_user}","gists_url":"https://api.github.com/users/bmac/gists{/gist_id}","starred_url":"https://api.github.com/users/bmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmac/subscriptions","organizations_url":"https://api.github.com/users/bmac/orgs","repos_url":"https://api.github.com/users/bmac/repos","events_url":"https://api.github.com/users/bmac/events{/privacy}","received_events_url":"https://api.github.com/users/bmac/received_events","type":"User","site_admin":false},"body":"Includes @slindberg test case from #2759.\r\n\r\ncc @igorT ","created_at":"2015-02-10T20:27:21Z","updated_at":"2015-02-10T22:27:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45f4caa4209901d6b6342beef0c813977b4ffa5b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/emberjs/data/pulls/2771/commits","review_comments_url":"https://api.github.com/repos/emberjs/data/pulls/2771/comments","review_comment_url":"https://api.github.com/repos/emberjs/data/pulls/comments/{number}","comments_url":"https://api.github.com/repos/emberjs/data/issues/2771/comments","statuses_url":"https://api.github.com/repos/emberjs/data/statuses/affd9f3f956fcadf9a3c7629bf4ffd05160aef10","head":{"label":"bmac:bug-2759","ref":"bug-2759","sha":"affd9f3f956fcadf9a3c7629bf4ffd05160aef10","user":{"login":"bmac","id":54056,"avatar_url":"https://avatars.githubusercontent.com/u/54056?v=3","gravatar_id":"","url":"https://api.github.com/users/bmac","html_url":"https://github.com/bmac","followers_url":"https://api.github.com/users/bmac/followers","following_url":"https://api.github.com/users/bmac/following{/other_user}","gists_url":"https://api.github.com/users/bmac/gists{/gist_id}","starred_url":"https://api.github.com/users/bmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmac/subscriptions","organizations_url":"https://api.github.com/users/bmac/orgs","repos_url":"https://api.github.com/users/bmac/repos","events_url":"https://api.github.com/users/bmac/events{/privacy}","received_events_url":"https://api.github.com/users/bmac/received_events","type":"User","site_admin":false},"repo":{"id":14693289,"name":"data","full_name":"bmac/data","owner":{"login":"bmac","id":54056,"avatar_url":"https://avatars.githubusercontent.com/u/54056?v=3","gravatar_id":"","url":"https://api.github.com/users/bmac","html_url":"https://github.com/bmac","followers_url":"https://api.github.com/users/bmac/followers","following_url":"https://api.github.com/users/bmac/following{/other_user}","gists_url":"https://api.github.com/users/bmac/gists{/gist_id}","starred_url":"https://api.github.com/users/bmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmac/subscriptions","organizations_url":"https://api.github.com/users/bmac/orgs","repos_url":"https://api.github.com/users/bmac/repos","events_url":"https://api.github.com/users/bmac/events{/privacy}","received_events_url":"https://api.github.com/users/bmac/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bmac/data","description":"A data persistence library for Ember.js.","fork":true,"url":"https://api.github.com/repos/bmac/data","forks_url":"https://api.github.com/repos/bmac/data/forks","keys_url":"https://api.github.com/repos/bmac/data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bmac/data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bmac/data/teams","hooks_url":"https://api.github.com/repos/bmac/data/hooks","issue_events_url":"https://api.github.com/repos/bmac/data/issues/events{/number}","events_url":"https://api.github.com/repos/bmac/data/events","assignees_url":"https://api.github.com/repos/bmac/data/assignees{/user}","branches_url":"https://api.github.com/repos/bmac/data/branches{/branch}","tags_url":"https://api.github.com/repos/bmac/data/tags","blobs_url":"https://api.github.com/repos/bmac/data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bmac/data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bmac/data/git/refs{/sha}","trees_url":"https://api.github.com/repos/bmac/data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bmac/data/statuses/{sha}","languages_url":"https://api.github.com/repos/bmac/data/languages","stargazers_url":"https://api.github.com/repos/bmac/data/stargazers","contributors_url":"https://api.github.com/repos/bmac/data/contributors","subscribers_url":"https://api.github.com/repos/bmac/data/subscribers","subscription_url":"https://api.github.com/repos/bmac/data/subscription","commits_url":"https://api.github.com/repos/bmac/data/commits{/sha}","git_commits_url":"https://api.github.com/repos/bmac/data/git/commits{/sha}","comments_url":"https://api.github.com/repos/bmac/data/comments{/number}","issue_comment_url":"https://api.github.com/repos/bmac/data/issues/comments/{number}","contents_url":"https://api.github.com/repos/bmac/data/contents/{+path}","compare_url":"https://api.github.com/repos/bmac/data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bmac/data/merges","archive_url":"https://api.github.com/repos/bmac/data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bmac/data/downloads","issues_url":"https://api.github.com/repos/bmac/data/issues{/number}","pulls_url":"https://api.github.com/repos/bmac/data/pulls{/number}","milestones_url":"https://api.github.com/repos/bmac/data/milestones{/number}","notifications_url":"https://api.github.com/repos/bmac/data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bmac/data/labels{/name}","releases_url":"https://api.github.com/repos/bmac/data/releases{/id}","created_at":"2013-11-25T17:46:36Z","updated_at":"2015-01-26T04:03:31Z","pushed_at":"2015-02-10T20:12:58Z","git_url":"git://github.com/bmac/data.git","ssh_url":"git@github.com:bmac/data.git","clone_url":"https://github.com/bmac/data.git","svn_url":"https://github.com/bmac/data","homepage":"","size":8157,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"emberjs:master","ref":"master","sha":"82254b75b7e54e3ae294ae47c19ae6c6c36e3b6e","user":{"login":"emberjs","id":1253363,"avatar_url":"https://avatars.githubusercontent.com/u/1253363?v=3","gravatar_id":"","url":"https://api.github.com/users/emberjs","html_url":"https://github.com/emberjs","followers_url":"https://api.github.com/users/emberjs/followers","following_url":"https://api.github.com/users/emberjs/following{/other_user}","gists_url":"https://api.github.com/users/emberjs/gists{/gist_id}","starred_url":"https://api.github.com/users/emberjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emberjs/subscriptions","organizations_url":"https://api.github.com/users/emberjs/orgs","repos_url":"https://api.github.com/users/emberjs/repos","events_url":"https://api.github.com/users/emberjs/events{/privacy}","received_events_url":"https://api.github.com/users/emberjs/received_events","type":"Organization","site_admin":false},"repo":{"id":3016562,"name":"data","full_name":"emberjs/data","owner":{"login":"emberjs","id":1253363,"avatar_url":"https://avatars.githubusercontent.com/u/1253363?v=3","gravatar_id":"","url":"https://api.github.com/users/emberjs","html_url":"https://github.com/emberjs","followers_url":"https://api.github.com/users/emberjs/followers","following_url":"https://api.github.com/users/emberjs/following{/other_user}","gists_url":"https://api.github.com/users/emberjs/gists{/gist_id}","starred_url":"https://api.github.com/users/emberjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emberjs/subscriptions","organizations_url":"https://api.github.com/users/emberjs/orgs","repos_url":"https://api.github.com/users/emberjs/repos","events_url":"https://api.github.com/users/emberjs/events{/privacy}","received_events_url":"https://api.github.com/users/emberjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/emberjs/data","description":"A data persistence library for Ember.js.","fork":false,"url":"https://api.github.com/repos/emberjs/data","forks_url":"https://api.github.com/repos/emberjs/data/forks","keys_url":"https://api.github.com/repos/emberjs/data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emberjs/data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emberjs/data/teams","hooks_url":"https://api.github.com/repos/emberjs/data/hooks","issue_events_url":"https://api.github.com/repos/emberjs/data/issues/events{/number}","events_url":"https://api.github.com/repos/emberjs/data/events","assignees_url":"https://api.github.com/repos/emberjs/data/assignees{/user}","branches_url":"https://api.github.com/repos/emberjs/data/branches{/branch}","tags_url":"https://api.github.com/repos/emberjs/data/tags","blobs_url":"https://api.github.com/repos/emberjs/data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emberjs/data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emberjs/data/git/refs{/sha}","trees_url":"https://api.github.com/repos/emberjs/data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emberjs/data/statuses/{sha}","languages_url":"https://api.github.com/repos/emberjs/data/languages","stargazers_url":"https://api.github.com/repos/emberjs/data/stargazers","contributors_url":"https://api.github.com/repos/emberjs/data/contributors","subscribers_url":"https://api.github.com/repos/emberjs/data/subscribers","subscription_url":"https://api.github.com/repos/emberjs/data/subscription","commits_url":"https://api.github.com/repos/emberjs/data/commits{/sha}","git_commits_url":"https://api.github.com/repos/emberjs/data/git/commits{/sha}","comments_url":"https://api.github.com/repos/emberjs/data/comments{/number}","issue_comment_url":"https://api.github.com/repos/emberjs/data/issues/comments/{number}","contents_url":"https://api.github.com/repos/emberjs/data/contents/{+path}","compare_url":"https://api.github.com/repos/emberjs/data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emberjs/data/merges","archive_url":"https://api.github.com/repos/emberjs/data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emberjs/data/downloads","issues_url":"https://api.github.com/repos/emberjs/data/issues{/number}","pulls_url":"https://api.github.com/repos/emberjs/data/pulls{/number}","milestones_url":"https://api.github.com/repos/emberjs/data/milestones{/number}","notifications_url":"https://api.github.com/repos/emberjs/data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emberjs/data/labels{/name}","releases_url":"https://api.github.com/repos/emberjs/data/releases{/id}","created_at":"2011-12-20T01:50:40Z","updated_at":"2015-02-10T20:18:21Z","pushed_at":"2015-02-09T13:24:53Z","git_url":"git://github.com/emberjs/data.git","ssh_url":"git@github.com:emberjs/data.git","clone_url":"https://github.com/emberjs/data.git","svn_url":"https://github.com/emberjs/data","homepage":"","size":22429,"stargazers_count":2237,"watchers_count":2237,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":836,"mirror_url":null,"open_issues_count":243,"forks":836,"open_issues":243,"watchers":2237,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/emberjs/data/pulls/2771"},"html":{"href":"https://github.com/emberjs/data/pull/2771"},"issue":{"href":"https://api.github.com/repos/emberjs/data/issues/2771"},"comments":{"href":"https://api.github.com/repos/emberjs/data/issues/2771/comments"},"review_comments":{"href":"https://api.github.com/repos/emberjs/data/pulls/2771/comments"},"review_comment":{"href":"https://api.github.com/repos/emberjs/data/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/emberjs/data/pulls/2771/commits"},"statuses":{"href":"https://api.github.com/repos/emberjs/data/statuses/affd9f3f956fcadf9a3c7629bf4ffd05160aef10"}}}}