{"action":"created","comment":{"url":"https://api.github.com/repos/fxbox/calendar/pulls/comments/70589937","id":70589937,"diff_hunk":"@@ -74,29 +74,45 @@ export default class Reminders extends React.Component {\n   onReminder(evt) {\n     const reminder = evt.result;\n \n-    const reminders = this.state.reminders;\n-    reminders.push({\n-      id: reminders.length,\n-      recipients: reminder.users,\n-      content: reminder.action,\n-      datetime: reminder.time,\n-    });\n-\n-    this.setState({ reminders });\n-\n+    // @todo Nice to have: optimistic update.\n     this.server.reminders\n       .set({\n         recipients: reminder.users,\n         action: reminder.action,\n         due: Number(reminder.time),\n       })\n+      .then((reminder) => {","path":"app/js/views/reminders.jsx","position":52,"original_position":21,"commit_id":"1341b5e283719359aa23526ab2777581550020ce","original_commit_id":"17bb8bc25647e7907b63d13843d3828a9b7dfc15","user":{"login":"gmarty","id":333865,"avatar_url":"https://avatars.githubusercontent.com/u/333865?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarty","html_url":"https://github.com/gmarty","followers_url":"https://api.github.com/users/gmarty/followers","following_url":"https://api.github.com/users/gmarty/following{/other_user}","gists_url":"https://api.github.com/users/gmarty/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarty/subscriptions","organizations_url":"https://api.github.com/users/gmarty/orgs","repos_url":"https://api.github.com/users/gmarty/repos","events_url":"https://api.github.com/users/gmarty/events{/privacy}","received_events_url":"https://api.github.com/users/gmarty/received_events","type":"User","site_admin":false},"body":"Yep exactly. I just need to find a way to hold a reference to the newly created element and inject its ID later when we receive it from the server.","created_at":"2016-07-13T09:10:50Z","updated_at":"2016-07-13T09:10:50Z","html_url":"https://github.com/fxbox/calendar/pull/29#discussion_r70589937","pull_request_url":"https://api.github.com/repos/fxbox/calendar/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/fxbox/calendar/pulls/comments/70589937"},"html":{"href":"https://github.com/fxbox/calendar/pull/29#discussion_r70589937"},"pull_request":{"href":"https://api.github.com/repos/fxbox/calendar/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/fxbox/calendar/pulls/29","id":76946612,"html_url":"https://github.com/fxbox/calendar/pull/29","diff_url":"https://github.com/fxbox/calendar/pull/29.diff","patch_url":"https://github.com/fxbox/calendar/pull/29.patch","issue_url":"https://api.github.com/repos/fxbox/calendar/issues/29","number":29,"state":"open","locked":false,"title":"Add a delete button. r=samgiles","user":{"login":"gmarty","id":333865,"avatar_url":"https://avatars.githubusercontent.com/u/333865?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarty","html_url":"https://github.com/gmarty","followers_url":"https://api.github.com/users/gmarty/followers","following_url":"https://api.github.com/users/gmarty/following{/other_user}","gists_url":"https://api.github.com/users/gmarty/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarty/subscriptions","organizations_url":"https://api.github.com/users/gmarty/orgs","repos_url":"https://api.github.com/users/gmarty/repos","events_url":"https://api.github.com/users/gmarty/events{/privacy}","received_events_url":"https://api.github.com/users/gmarty/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-11T12:40:36Z","updated_at":"2016-07-13T09:10:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7d2e0ad625936fd1f7ce99846cb407a091a3f0b8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fxbox/calendar/pulls/29/commits","review_comments_url":"https://api.github.com/repos/fxbox/calendar/pulls/29/comments","review_comment_url":"https://api.github.com/repos/fxbox/calendar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fxbox/calendar/issues/29/comments","statuses_url":"https://api.github.com/repos/fxbox/calendar/statuses/1341b5e283719359aa23526ab2777581550020ce","head":{"label":"gmarty:del","ref":"del","sha":"1341b5e283719359aa23526ab2777581550020ce","user":{"login":"gmarty","id":333865,"avatar_url":"https://avatars.githubusercontent.com/u/333865?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarty","html_url":"https://github.com/gmarty","followers_url":"https://api.github.com/users/gmarty/followers","following_url":"https://api.github.com/users/gmarty/following{/other_user}","gists_url":"https://api.github.com/users/gmarty/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarty/subscriptions","organizations_url":"https://api.github.com/users/gmarty/orgs","repos_url":"https://api.github.com/users/gmarty/repos","events_url":"https://api.github.com/users/gmarty/events{/privacy}","received_events_url":"https://api.github.com/users/gmarty/received_events","type":"User","site_admin":false},"repo":{"id":61630644,"name":"calendar","full_name":"gmarty/calendar","owner":{"login":"gmarty","id":333865,"avatar_url":"https://avatars.githubusercontent.com/u/333865?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarty","html_url":"https://github.com/gmarty","followers_url":"https://api.github.com/users/gmarty/followers","following_url":"https://api.github.com/users/gmarty/following{/other_user}","gists_url":"https://api.github.com/users/gmarty/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarty/subscriptions","organizations_url":"https://api.github.com/users/gmarty/orgs","repos_url":"https://api.github.com/users/gmarty/repos","events_url":"https://api.github.com/users/gmarty/events{/privacy}","received_events_url":"https://api.github.com/users/gmarty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gmarty/calendar","description":"","fork":true,"url":"https://api.github.com/repos/gmarty/calendar","forks_url":"https://api.github.com/repos/gmarty/calendar/forks","keys_url":"https://api.github.com/repos/gmarty/calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gmarty/calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gmarty/calendar/teams","hooks_url":"https://api.github.com/repos/gmarty/calendar/hooks","issue_events_url":"https://api.github.com/repos/gmarty/calendar/issues/events{/number}","events_url":"https://api.github.com/repos/gmarty/calendar/events","assignees_url":"https://api.github.com/repos/gmarty/calendar/assignees{/user}","branches_url":"https://api.github.com/repos/gmarty/calendar/branches{/branch}","tags_url":"https://api.github.com/repos/gmarty/calendar/tags","blobs_url":"https://api.github.com/repos/gmarty/calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gmarty/calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gmarty/calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/gmarty/calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gmarty/calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/gmarty/calendar/languages","stargazers_url":"https://api.github.com/repos/gmarty/calendar/stargazers","contributors_url":"https://api.github.com/repos/gmarty/calendar/contributors","subscribers_url":"https://api.github.com/repos/gmarty/calendar/subscribers","subscription_url":"https://api.github.com/repos/gmarty/calendar/subscription","commits_url":"https://api.github.com/repos/gmarty/calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/gmarty/calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/gmarty/calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/gmarty/calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/gmarty/calendar/contents/{+path}","compare_url":"https://api.github.com/repos/gmarty/calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gmarty/calendar/merges","archive_url":"https://api.github.com/repos/gmarty/calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gmarty/calendar/downloads","issues_url":"https://api.github.com/repos/gmarty/calendar/issues{/number}","pulls_url":"https://api.github.com/repos/gmarty/calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/gmarty/calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/gmarty/calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gmarty/calendar/labels{/name}","releases_url":"https://api.github.com/repos/gmarty/calendar/releases{/id}","deployments_url":"https://api.github.com/repos/gmarty/calendar/deployments","created_at":"2016-06-21T12:04:00Z","updated_at":"2016-06-21T12:04:02Z","pushed_at":"2016-07-13T09:08:37Z","git_url":"git://github.com/gmarty/calendar.git","ssh_url":"git@github.com:gmarty/calendar.git","clone_url":"https://github.com/gmarty/calendar.git","svn_url":"https://github.com/gmarty/calendar","homepage":null,"size":2769,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fxbox:master","ref":"master","sha":"550026645b2ee3b8b294e381207857580a50f6ef","user":{"login":"fxbox","id":17052474,"avatar_url":"https://avatars.githubusercontent.com/u/17052474?v=3","gravatar_id":"","url":"https://api.github.com/users/fxbox","html_url":"https://github.com/fxbox","followers_url":"https://api.github.com/users/fxbox/followers","following_url":"https://api.github.com/users/fxbox/following{/other_user}","gists_url":"https://api.github.com/users/fxbox/gists{/gist_id}","starred_url":"https://api.github.com/users/fxbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxbox/subscriptions","organizations_url":"https://api.github.com/users/fxbox/orgs","repos_url":"https://api.github.com/users/fxbox/repos","events_url":"https://api.github.com/users/fxbox/events{/privacy}","received_events_url":"https://api.github.com/users/fxbox/received_events","type":"Organization","site_admin":false},"repo":{"id":61548154,"name":"calendar","full_name":"fxbox/calendar","owner":{"login":"fxbox","id":17052474,"avatar_url":"https://avatars.githubusercontent.com/u/17052474?v=3","gravatar_id":"","url":"https://api.github.com/users/fxbox","html_url":"https://github.com/fxbox","followers_url":"https://api.github.com/users/fxbox/followers","following_url":"https://api.github.com/users/fxbox/following{/other_user}","gists_url":"https://api.github.com/users/fxbox/gists{/gist_id}","starred_url":"https://api.github.com/users/fxbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxbox/subscriptions","organizations_url":"https://api.github.com/users/fxbox/orgs","repos_url":"https://api.github.com/users/fxbox/repos","events_url":"https://api.github.com/users/fxbox/events{/privacy}","received_events_url":"https://api.github.com/users/fxbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fxbox/calendar","description":":calendar: A calendar/reminder thing I guess.","fork":false,"url":"https://api.github.com/repos/fxbox/calendar","forks_url":"https://api.github.com/repos/fxbox/calendar/forks","keys_url":"https://api.github.com/repos/fxbox/calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fxbox/calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fxbox/calendar/teams","hooks_url":"https://api.github.com/repos/fxbox/calendar/hooks","issue_events_url":"https://api.github.com/repos/fxbox/calendar/issues/events{/number}","events_url":"https://api.github.com/repos/fxbox/calendar/events","assignees_url":"https://api.github.com/repos/fxbox/calendar/assignees{/user}","branches_url":"https://api.github.com/repos/fxbox/calendar/branches{/branch}","tags_url":"https://api.github.com/repos/fxbox/calendar/tags","blobs_url":"https://api.github.com/repos/fxbox/calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fxbox/calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fxbox/calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/fxbox/calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fxbox/calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/fxbox/calendar/languages","stargazers_url":"https://api.github.com/repos/fxbox/calendar/stargazers","contributors_url":"https://api.github.com/repos/fxbox/calendar/contributors","subscribers_url":"https://api.github.com/repos/fxbox/calendar/subscribers","subscription_url":"https://api.github.com/repos/fxbox/calendar/subscription","commits_url":"https://api.github.com/repos/fxbox/calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/fxbox/calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/fxbox/calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/fxbox/calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/fxbox/calendar/contents/{+path}","compare_url":"https://api.github.com/repos/fxbox/calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fxbox/calendar/merges","archive_url":"https://api.github.com/repos/fxbox/calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fxbox/calendar/downloads","issues_url":"https://api.github.com/repos/fxbox/calendar/issues{/number}","pulls_url":"https://api.github.com/repos/fxbox/calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/fxbox/calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/fxbox/calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fxbox/calendar/labels{/name}","releases_url":"https://api.github.com/repos/fxbox/calendar/releases{/id}","deployments_url":"https://api.github.com/repos/fxbox/calendar/deployments","created_at":"2016-06-20T13:03:37Z","updated_at":"2016-07-01T16:45:48Z","pushed_at":"2016-07-13T09:08:38Z","git_url":"git://github.com/fxbox/calendar.git","ssh_url":"git@github.com:fxbox/calendar.git","clone_url":"https://github.com/fxbox/calendar.git","svn_url":"https://github.com/fxbox/calendar","homepage":"https://fxbox.github.io/calendar/","size":2495,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":6,"forks":3,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fxbox/calendar/pulls/29"},"html":{"href":"https://github.com/fxbox/calendar/pull/29"},"issue":{"href":"https://api.github.com/repos/fxbox/calendar/issues/29"},"comments":{"href":"https://api.github.com/repos/fxbox/calendar/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/fxbox/calendar/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/fxbox/calendar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fxbox/calendar/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/fxbox/calendar/statuses/1341b5e283719359aa23526ab2777581550020ce"}}}}
{"actor":{"display_login":"gmarty"}}