{"action":"created","comment":{"url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/pulls/comments/71827506","id":71827506,"diff_hunk":"@@ -74,13 +74,9 @@ function decorate(app) {\n    */\n   function completeTask(id) {\n     // TODO : add userId to Completed\n-    return Completed.create({}).then(completed => {\n-      Task.findById(id).then(task => {\n-        return task.addCompleted(completed);\n-      }).then(what => {\n-        io.emit('complete task', what);\n-      });\n-    })\n+    return Task.findById(id).then(task => task.complete()).then(task => {","path":"server/alphadeltaninerniner.service.js","position":11,"original_position":11,"commit_id":"950771c5ec38f6b2ec3922cbbd1e0aa0b6e820f1","original_commit_id":"950771c5ec38f6b2ec3922cbbd1e0aa0b6e820f1","user":{"login":"Dane456","id":10985108,"avatar_url":"https://avatars.githubusercontent.com/u/10985108?v=3","gravatar_id":"","url":"https://api.github.com/users/Dane456","html_url":"https://github.com/Dane456","followers_url":"https://api.github.com/users/Dane456/followers","following_url":"https://api.github.com/users/Dane456/following{/other_user}","gists_url":"https://api.github.com/users/Dane456/gists{/gist_id}","starred_url":"https://api.github.com/users/Dane456/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dane456/subscriptions","organizations_url":"https://api.github.com/users/Dane456/orgs","repos_url":"https://api.github.com/users/Dane456/repos","events_url":"https://api.github.com/users/Dane456/events{/privacy}","received_events_url":"https://api.github.com/users/Dane456/received_events","type":"User","site_admin":false},"body":"perhaps separate .then statements with newlines for readability","created_at":"2016-07-22T05:07:17Z","updated_at":"2016-07-22T05:07:17Z","html_url":"https://github.com/Ubiquitous-Marmosets/Rumi/pull/34#discussion_r71827506","pull_request_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/pulls/comments/71827506"},"html":{"href":"https://github.com/Ubiquitous-Marmosets/Rumi/pull/34#discussion_r71827506"},"pull_request":{"href":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/pulls/34","id":78424111,"html_url":"https://github.com/Ubiquitous-Marmosets/Rumi/pull/34","diff_url":"https://github.com/Ubiquitous-Marmosets/Rumi/pull/34.diff","patch_url":"https://github.com/Ubiquitous-Marmosets/Rumi/pull/34.patch","issue_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/issues/34","number":34,"state":"open","locked":false,"title":"Feature/complete task","user":{"login":"icasperzen","id":1240035,"avatar_url":"https://avatars.githubusercontent.com/u/1240035?v=3","gravatar_id":"","url":"https://api.github.com/users/icasperzen","html_url":"https://github.com/icasperzen","followers_url":"https://api.github.com/users/icasperzen/followers","following_url":"https://api.github.com/users/icasperzen/following{/other_user}","gists_url":"https://api.github.com/users/icasperzen/gists{/gist_id}","starred_url":"https://api.github.com/users/icasperzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icasperzen/subscriptions","organizations_url":"https://api.github.com/users/icasperzen/orgs","repos_url":"https://api.github.com/users/icasperzen/repos","events_url":"https://api.github.com/users/icasperzen/events{/privacy}","received_events_url":"https://api.github.com/users/icasperzen/received_events","type":"User","site_admin":false},"body":"closes #31 \r\n\r\nNew abstraction for completing task instances.\r\nInvoking it will 1) create a new Completed and bind it, and 2) update the `dueBy` field.","created_at":"2016-07-22T04:50:43Z","updated_at":"2016-07-22T05:07:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a0ae254a974858b27804aec8b9d0bbce18ed5e9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/pulls/34/commits","review_comments_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/pulls/34/comments","review_comment_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/issues/34/comments","statuses_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/statuses/950771c5ec38f6b2ec3922cbbd1e0aa0b6e820f1","head":{"label":"icasperzen:feature/complete-task","ref":"feature/complete-task","sha":"950771c5ec38f6b2ec3922cbbd1e0aa0b6e820f1","user":{"login":"icasperzen","id":1240035,"avatar_url":"https://avatars.githubusercontent.com/u/1240035?v=3","gravatar_id":"","url":"https://api.github.com/users/icasperzen","html_url":"https://github.com/icasperzen","followers_url":"https://api.github.com/users/icasperzen/followers","following_url":"https://api.github.com/users/icasperzen/following{/other_user}","gists_url":"https://api.github.com/users/icasperzen/gists{/gist_id}","starred_url":"https://api.github.com/users/icasperzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icasperzen/subscriptions","organizations_url":"https://api.github.com/users/icasperzen/orgs","repos_url":"https://api.github.com/users/icasperzen/repos","events_url":"https://api.github.com/users/icasperzen/events{/privacy}","received_events_url":"https://api.github.com/users/icasperzen/received_events","type":"User","site_admin":false},"repo":{"id":63283712,"name":"Rumi","full_name":"icasperzen/Rumi","owner":{"login":"icasperzen","id":1240035,"avatar_url":"https://avatars.githubusercontent.com/u/1240035?v=3","gravatar_id":"","url":"https://api.github.com/users/icasperzen","html_url":"https://github.com/icasperzen","followers_url":"https://api.github.com/users/icasperzen/followers","following_url":"https://api.github.com/users/icasperzen/following{/other_user}","gists_url":"https://api.github.com/users/icasperzen/gists{/gist_id}","starred_url":"https://api.github.com/users/icasperzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icasperzen/subscriptions","organizations_url":"https://api.github.com/users/icasperzen/orgs","repos_url":"https://api.github.com/users/icasperzen/repos","events_url":"https://api.github.com/users/icasperzen/events{/privacy}","received_events_url":"https://api.github.com/users/icasperzen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/icasperzen/Rumi","description":null,"fork":true,"url":"https://api.github.com/repos/icasperzen/Rumi","forks_url":"https://api.github.com/repos/icasperzen/Rumi/forks","keys_url":"https://api.github.com/repos/icasperzen/Rumi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/icasperzen/Rumi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/icasperzen/Rumi/teams","hooks_url":"https://api.github.com/repos/icasperzen/Rumi/hooks","issue_events_url":"https://api.github.com/repos/icasperzen/Rumi/issues/events{/number}","events_url":"https://api.github.com/repos/icasperzen/Rumi/events","assignees_url":"https://api.github.com/repos/icasperzen/Rumi/assignees{/user}","branches_url":"https://api.github.com/repos/icasperzen/Rumi/branches{/branch}","tags_url":"https://api.github.com/repos/icasperzen/Rumi/tags","blobs_url":"https://api.github.com/repos/icasperzen/Rumi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/icasperzen/Rumi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/icasperzen/Rumi/git/refs{/sha}","trees_url":"https://api.github.com/repos/icasperzen/Rumi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/icasperzen/Rumi/statuses/{sha}","languages_url":"https://api.github.com/repos/icasperzen/Rumi/languages","stargazers_url":"https://api.github.com/repos/icasperzen/Rumi/stargazers","contributors_url":"https://api.github.com/repos/icasperzen/Rumi/contributors","subscribers_url":"https://api.github.com/repos/icasperzen/Rumi/subscribers","subscription_url":"https://api.github.com/repos/icasperzen/Rumi/subscription","commits_url":"https://api.github.com/repos/icasperzen/Rumi/commits{/sha}","git_commits_url":"https://api.github.com/repos/icasperzen/Rumi/git/commits{/sha}","comments_url":"https://api.github.com/repos/icasperzen/Rumi/comments{/number}","issue_comment_url":"https://api.github.com/repos/icasperzen/Rumi/issues/comments{/number}","contents_url":"https://api.github.com/repos/icasperzen/Rumi/contents/{+path}","compare_url":"https://api.github.com/repos/icasperzen/Rumi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/icasperzen/Rumi/merges","archive_url":"https://api.github.com/repos/icasperzen/Rumi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/icasperzen/Rumi/downloads","issues_url":"https://api.github.com/repos/icasperzen/Rumi/issues{/number}","pulls_url":"https://api.github.com/repos/icasperzen/Rumi/pulls{/number}","milestones_url":"https://api.github.com/repos/icasperzen/Rumi/milestones{/number}","notifications_url":"https://api.github.com/repos/icasperzen/Rumi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/icasperzen/Rumi/labels{/name}","releases_url":"https://api.github.com/repos/icasperzen/Rumi/releases{/id}","deployments_url":"https://api.github.com/repos/icasperzen/Rumi/deployments","created_at":"2016-07-13T22:26:32Z","updated_at":"2016-07-14T18:23:34Z","pushed_at":"2016-07-22T04:57:10Z","git_url":"git://github.com/icasperzen/Rumi.git","ssh_url":"git@github.com:icasperzen/Rumi.git","clone_url":"https://github.com/icasperzen/Rumi.git","svn_url":"https://github.com/icasperzen/Rumi","homepage":null,"size":193,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"Ubiquitous-Marmosets:master","ref":"master","sha":"a974f9d06cfec369ef4839e69df0211a48e7163d","user":{"login":"Ubiquitous-Marmosets","id":20447741,"avatar_url":"https://avatars.githubusercontent.com/u/20447741?v=3","gravatar_id":"","url":"https://api.github.com/users/Ubiquitous-Marmosets","html_url":"https://github.com/Ubiquitous-Marmosets","followers_url":"https://api.github.com/users/Ubiquitous-Marmosets/followers","following_url":"https://api.github.com/users/Ubiquitous-Marmosets/following{/other_user}","gists_url":"https://api.github.com/users/Ubiquitous-Marmosets/gists{/gist_id}","starred_url":"https://api.github.com/users/Ubiquitous-Marmosets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ubiquitous-Marmosets/subscriptions","organizations_url":"https://api.github.com/users/Ubiquitous-Marmosets/orgs","repos_url":"https://api.github.com/users/Ubiquitous-Marmosets/repos","events_url":"https://api.github.com/users/Ubiquitous-Marmosets/events{/privacy}","received_events_url":"https://api.github.com/users/Ubiquitous-Marmosets/received_events","type":"Organization","site_admin":false},"repo":{"id":63283248,"name":"Rumi","full_name":"Ubiquitous-Marmosets/Rumi","owner":{"login":"Ubiquitous-Marmosets","id":20447741,"avatar_url":"https://avatars.githubusercontent.com/u/20447741?v=3","gravatar_id":"","url":"https://api.github.com/users/Ubiquitous-Marmosets","html_url":"https://github.com/Ubiquitous-Marmosets","followers_url":"https://api.github.com/users/Ubiquitous-Marmosets/followers","following_url":"https://api.github.com/users/Ubiquitous-Marmosets/following{/other_user}","gists_url":"https://api.github.com/users/Ubiquitous-Marmosets/gists{/gist_id}","starred_url":"https://api.github.com/users/Ubiquitous-Marmosets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ubiquitous-Marmosets/subscriptions","organizations_url":"https://api.github.com/users/Ubiquitous-Marmosets/orgs","repos_url":"https://api.github.com/users/Ubiquitous-Marmosets/repos","events_url":"https://api.github.com/users/Ubiquitous-Marmosets/events{/privacy}","received_events_url":"https://api.github.com/users/Ubiquitous-Marmosets/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ubiquitous-Marmosets/Rumi","description":null,"fork":false,"url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi","forks_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/forks","keys_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/teams","hooks_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/hooks","issue_events_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/issues/events{/number}","events_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/events","assignees_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/assignees{/user}","branches_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/branches{/branch}","tags_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/tags","blobs_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/statuses/{sha}","languages_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/languages","stargazers_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/stargazers","contributors_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/contributors","subscribers_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/subscribers","subscription_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/subscription","commits_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/contents/{+path}","compare_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/merges","archive_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/downloads","issues_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/issues{/number}","pulls_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/pulls{/number}","milestones_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/milestones{/number}","notifications_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/labels{/name}","releases_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/releases{/id}","deployments_url":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/deployments","created_at":"2016-07-13T22:16:36Z","updated_at":"2016-07-14T19:08:20Z","pushed_at":"2016-07-22T04:57:11Z","git_url":"git://github.com/Ubiquitous-Marmosets/Rumi.git","ssh_url":"git@github.com:Ubiquitous-Marmosets/Rumi.git","clone_url":"https://github.com/Ubiquitous-Marmosets/Rumi.git","svn_url":"https://github.com/Ubiquitous-Marmosets/Rumi","homepage":null,"size":193,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/pulls/34"},"html":{"href":"https://github.com/Ubiquitous-Marmosets/Rumi/pull/34"},"issue":{"href":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/issues/34"},"comments":{"href":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/Ubiquitous-Marmosets/Rumi/statuses/950771c5ec38f6b2ec3922cbbd1e0aa0b6e820f1"}}}}
{"actor":{"display_login":"Dane456"}}