{"action":"created","comment":{"url":"https://api.github.com/repos/incuna/incuna-groups/pulls/comments/42988612","id":42988612,"diff_hunk":"@@ -161,6 +161,20 @@ def delete_state(self):\n     def is_deleted(self):\n         return self.state == self.STATE_DELETED\n \n+    def subscribers(self):","path":"groups/models.py","position":4,"original_position":4,"commit_id":"7a755dc342b30f4082e0ad9c9007a90dbb18c6ef","original_commit_id":"08869a316963acb24bcc36f55f5f3873c04c9079","user":{"login":"Ian-Foote","id":1843202,"avatar_url":"https://avatars.githubusercontent.com/u/1843202?v=3","gravatar_id":"","url":"https://api.github.com/users/Ian-Foote","html_url":"https://github.com/Ian-Foote","followers_url":"https://api.github.com/users/Ian-Foote/followers","following_url":"https://api.github.com/users/Ian-Foote/following{/other_user}","gists_url":"https://api.github.com/users/Ian-Foote/gists{/gist_id}","starred_url":"https://api.github.com/users/Ian-Foote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ian-Foote/subscriptions","organizations_url":"https://api.github.com/users/Ian-Foote/orgs","repos_url":"https://api.github.com/users/Ian-Foote/repos","events_url":"https://api.github.com/users/Ian-Foote/events{/privacy}","received_events_url":"https://api.github.com/users/Ian-Foote/received_events","type":"User","site_admin":false},"body":"Views have a tendency to be a dumping ground of code. In this case the method only needs to know information stored on the `BaseComment` model - the view shouldn't need to be aware of these implementation details.","created_at":"2015-10-26T12:52:13Z","updated_at":"2015-10-26T12:52:13Z","html_url":"https://github.com/incuna/incuna-groups/pull/22#discussion_r42988612","pull_request_url":"https://api.github.com/repos/incuna/incuna-groups/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/incuna/incuna-groups/pulls/comments/42988612"},"html":{"href":"https://github.com/incuna/incuna-groups/pull/22#discussion_r42988612"},"pull_request":{"href":"https://api.github.com/repos/incuna/incuna-groups/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/incuna/incuna-groups/pulls/22","id":48725372,"html_url":"https://github.com/incuna/incuna-groups/pull/22","diff_url":"https://github.com/incuna/incuna-groups/pull/22.diff","patch_url":"https://github.com/incuna/incuna-groups/pull/22.patch","issue_url":"https://api.github.com/repos/incuna/incuna-groups/issues/22","number":22,"state":"open","locked":false,"title":"Move users_to_notify method to BaseComment","user":{"login":"Ian-Foote","id":1843202,"avatar_url":"https://avatars.githubusercontent.com/u/1843202?v=3","gravatar_id":"","url":"https://api.github.com/users/Ian-Foote","html_url":"https://github.com/Ian-Foote","followers_url":"https://api.github.com/users/Ian-Foote/followers","following_url":"https://api.github.com/users/Ian-Foote/following{/other_user}","gists_url":"https://api.github.com/users/Ian-Foote/gists{/gist_id}","starred_url":"https://api.github.com/users/Ian-Foote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ian-Foote/subscriptions","organizations_url":"https://api.github.com/users/Ian-Foote/orgs","repos_url":"https://api.github.com/users/Ian-Foote/repos","events_url":"https://api.github.com/users/Ian-Foote/events{/privacy}","received_events_url":"https://api.github.com/users/Ian-Foote/received_events","type":"User","site_admin":false},"body":"Add BaseComment.subscribers method to find all users who should\nbe notified of an update.","created_at":"2015-10-26T11:01:45Z","updated_at":"2015-10-26T12:52:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0bada3db14ad8badd208d20ed873fcafbe29727","assignee":{"login":"Ian-Foote","id":1843202,"avatar_url":"https://avatars.githubusercontent.com/u/1843202?v=3","gravatar_id":"","url":"https://api.github.com/users/Ian-Foote","html_url":"https://github.com/Ian-Foote","followers_url":"https://api.github.com/users/Ian-Foote/followers","following_url":"https://api.github.com/users/Ian-Foote/following{/other_user}","gists_url":"https://api.github.com/users/Ian-Foote/gists{/gist_id}","starred_url":"https://api.github.com/users/Ian-Foote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ian-Foote/subscriptions","organizations_url":"https://api.github.com/users/Ian-Foote/orgs","repos_url":"https://api.github.com/users/Ian-Foote/repos","events_url":"https://api.github.com/users/Ian-Foote/events{/privacy}","received_events_url":"https://api.github.com/users/Ian-Foote/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/incuna/incuna-groups/pulls/22/commits","review_comments_url":"https://api.github.com/repos/incuna/incuna-groups/pulls/22/comments","review_comment_url":"https://api.github.com/repos/incuna/incuna-groups/pulls/comments{/number}","comments_url":"https://api.github.com/repos/incuna/incuna-groups/issues/22/comments","statuses_url":"https://api.github.com/repos/incuna/incuna-groups/statuses/7a755dc342b30f4082e0ad9c9007a90dbb18c6ef","head":{"label":"incuna:refactor-subscriber-emails","ref":"refactor-subscriber-emails","sha":"7a755dc342b30f4082e0ad9c9007a90dbb18c6ef","user":{"login":"incuna","id":55510,"avatar_url":"https://avatars.githubusercontent.com/u/55510?v=3","gravatar_id":"","url":"https://api.github.com/users/incuna","html_url":"https://github.com/incuna","followers_url":"https://api.github.com/users/incuna/followers","following_url":"https://api.github.com/users/incuna/following{/other_user}","gists_url":"https://api.github.com/users/incuna/gists{/gist_id}","starred_url":"https://api.github.com/users/incuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incuna/subscriptions","organizations_url":"https://api.github.com/users/incuna/orgs","repos_url":"https://api.github.com/users/incuna/repos","events_url":"https://api.github.com/users/incuna/events{/privacy}","received_events_url":"https://api.github.com/users/incuna/received_events","type":"Organization","site_admin":false},"repo":{"id":32940766,"name":"incuna-groups","full_name":"incuna/incuna-groups","owner":{"login":"incuna","id":55510,"avatar_url":"https://avatars.githubusercontent.com/u/55510?v=3","gravatar_id":"","url":"https://api.github.com/users/incuna","html_url":"https://github.com/incuna","followers_url":"https://api.github.com/users/incuna/followers","following_url":"https://api.github.com/users/incuna/following{/other_user}","gists_url":"https://api.github.com/users/incuna/gists{/gist_id}","starred_url":"https://api.github.com/users/incuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incuna/subscriptions","organizations_url":"https://api.github.com/users/incuna/orgs","repos_url":"https://api.github.com/users/incuna/repos","events_url":"https://api.github.com/users/incuna/events{/privacy}","received_events_url":"https://api.github.com/users/incuna/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/incuna/incuna-groups","description":"","fork":false,"url":"https://api.github.com/repos/incuna/incuna-groups","forks_url":"https://api.github.com/repos/incuna/incuna-groups/forks","keys_url":"https://api.github.com/repos/incuna/incuna-groups/keys{/key_id}","collaborators_url":"https://api.github.com/repos/incuna/incuna-groups/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/incuna/incuna-groups/teams","hooks_url":"https://api.github.com/repos/incuna/incuna-groups/hooks","issue_events_url":"https://api.github.com/repos/incuna/incuna-groups/issues/events{/number}","events_url":"https://api.github.com/repos/incuna/incuna-groups/events","assignees_url":"https://api.github.com/repos/incuna/incuna-groups/assignees{/user}","branches_url":"https://api.github.com/repos/incuna/incuna-groups/branches{/branch}","tags_url":"https://api.github.com/repos/incuna/incuna-groups/tags","blobs_url":"https://api.github.com/repos/incuna/incuna-groups/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/incuna/incuna-groups/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/incuna/incuna-groups/git/refs{/sha}","trees_url":"https://api.github.com/repos/incuna/incuna-groups/git/trees{/sha}","statuses_url":"https://api.github.com/repos/incuna/incuna-groups/statuses/{sha}","languages_url":"https://api.github.com/repos/incuna/incuna-groups/languages","stargazers_url":"https://api.github.com/repos/incuna/incuna-groups/stargazers","contributors_url":"https://api.github.com/repos/incuna/incuna-groups/contributors","subscribers_url":"https://api.github.com/repos/incuna/incuna-groups/subscribers","subscription_url":"https://api.github.com/repos/incuna/incuna-groups/subscription","commits_url":"https://api.github.com/repos/incuna/incuna-groups/commits{/sha}","git_commits_url":"https://api.github.com/repos/incuna/incuna-groups/git/commits{/sha}","comments_url":"https://api.github.com/repos/incuna/incuna-groups/comments{/number}","issue_comment_url":"https://api.github.com/repos/incuna/incuna-groups/issues/comments{/number}","contents_url":"https://api.github.com/repos/incuna/incuna-groups/contents/{+path}","compare_url":"https://api.github.com/repos/incuna/incuna-groups/compare/{base}...{head}","merges_url":"https://api.github.com/repos/incuna/incuna-groups/merges","archive_url":"https://api.github.com/repos/incuna/incuna-groups/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/incuna/incuna-groups/downloads","issues_url":"https://api.github.com/repos/incuna/incuna-groups/issues{/number}","pulls_url":"https://api.github.com/repos/incuna/incuna-groups/pulls{/number}","milestones_url":"https://api.github.com/repos/incuna/incuna-groups/milestones{/number}","notifications_url":"https://api.github.com/repos/incuna/incuna-groups/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/incuna/incuna-groups/labels{/name}","releases_url":"https://api.github.com/repos/incuna/incuna-groups/releases{/id}","created_at":"2015-03-26T17:02:36Z","updated_at":"2015-04-20T10:16:35Z","pushed_at":"2015-10-26T11:46:05Z","git_url":"git://github.com/incuna/incuna-groups.git","ssh_url":"git@github.com:incuna/incuna-groups.git","clone_url":"https://github.com/incuna/incuna-groups.git","svn_url":"https://github.com/incuna/incuna-groups","homepage":null,"size":572,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"incuna:master","ref":"master","sha":"981ebcd3da62b321372f5d85da8ab46be3a6b842","user":{"login":"incuna","id":55510,"avatar_url":"https://avatars.githubusercontent.com/u/55510?v=3","gravatar_id":"","url":"https://api.github.com/users/incuna","html_url":"https://github.com/incuna","followers_url":"https://api.github.com/users/incuna/followers","following_url":"https://api.github.com/users/incuna/following{/other_user}","gists_url":"https://api.github.com/users/incuna/gists{/gist_id}","starred_url":"https://api.github.com/users/incuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incuna/subscriptions","organizations_url":"https://api.github.com/users/incuna/orgs","repos_url":"https://api.github.com/users/incuna/repos","events_url":"https://api.github.com/users/incuna/events{/privacy}","received_events_url":"https://api.github.com/users/incuna/received_events","type":"Organization","site_admin":false},"repo":{"id":32940766,"name":"incuna-groups","full_name":"incuna/incuna-groups","owner":{"login":"incuna","id":55510,"avatar_url":"https://avatars.githubusercontent.com/u/55510?v=3","gravatar_id":"","url":"https://api.github.com/users/incuna","html_url":"https://github.com/incuna","followers_url":"https://api.github.com/users/incuna/followers","following_url":"https://api.github.com/users/incuna/following{/other_user}","gists_url":"https://api.github.com/users/incuna/gists{/gist_id}","starred_url":"https://api.github.com/users/incuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incuna/subscriptions","organizations_url":"https://api.github.com/users/incuna/orgs","repos_url":"https://api.github.com/users/incuna/repos","events_url":"https://api.github.com/users/incuna/events{/privacy}","received_events_url":"https://api.github.com/users/incuna/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/incuna/incuna-groups","description":"","fork":false,"url":"https://api.github.com/repos/incuna/incuna-groups","forks_url":"https://api.github.com/repos/incuna/incuna-groups/forks","keys_url":"https://api.github.com/repos/incuna/incuna-groups/keys{/key_id}","collaborators_url":"https://api.github.com/repos/incuna/incuna-groups/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/incuna/incuna-groups/teams","hooks_url":"https://api.github.com/repos/incuna/incuna-groups/hooks","issue_events_url":"https://api.github.com/repos/incuna/incuna-groups/issues/events{/number}","events_url":"https://api.github.com/repos/incuna/incuna-groups/events","assignees_url":"https://api.github.com/repos/incuna/incuna-groups/assignees{/user}","branches_url":"https://api.github.com/repos/incuna/incuna-groups/branches{/branch}","tags_url":"https://api.github.com/repos/incuna/incuna-groups/tags","blobs_url":"https://api.github.com/repos/incuna/incuna-groups/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/incuna/incuna-groups/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/incuna/incuna-groups/git/refs{/sha}","trees_url":"https://api.github.com/repos/incuna/incuna-groups/git/trees{/sha}","statuses_url":"https://api.github.com/repos/incuna/incuna-groups/statuses/{sha}","languages_url":"https://api.github.com/repos/incuna/incuna-groups/languages","stargazers_url":"https://api.github.com/repos/incuna/incuna-groups/stargazers","contributors_url":"https://api.github.com/repos/incuna/incuna-groups/contributors","subscribers_url":"https://api.github.com/repos/incuna/incuna-groups/subscribers","subscription_url":"https://api.github.com/repos/incuna/incuna-groups/subscription","commits_url":"https://api.github.com/repos/incuna/incuna-groups/commits{/sha}","git_commits_url":"https://api.github.com/repos/incuna/incuna-groups/git/commits{/sha}","comments_url":"https://api.github.com/repos/incuna/incuna-groups/comments{/number}","issue_comment_url":"https://api.github.com/repos/incuna/incuna-groups/issues/comments{/number}","contents_url":"https://api.github.com/repos/incuna/incuna-groups/contents/{+path}","compare_url":"https://api.github.com/repos/incuna/incuna-groups/compare/{base}...{head}","merges_url":"https://api.github.com/repos/incuna/incuna-groups/merges","archive_url":"https://api.github.com/repos/incuna/incuna-groups/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/incuna/incuna-groups/downloads","issues_url":"https://api.github.com/repos/incuna/incuna-groups/issues{/number}","pulls_url":"https://api.github.com/repos/incuna/incuna-groups/pulls{/number}","milestones_url":"https://api.github.com/repos/incuna/incuna-groups/milestones{/number}","notifications_url":"https://api.github.com/repos/incuna/incuna-groups/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/incuna/incuna-groups/labels{/name}","releases_url":"https://api.github.com/repos/incuna/incuna-groups/releases{/id}","created_at":"2015-03-26T17:02:36Z","updated_at":"2015-04-20T10:16:35Z","pushed_at":"2015-10-26T11:46:05Z","git_url":"git://github.com/incuna/incuna-groups.git","ssh_url":"git@github.com:incuna/incuna-groups.git","clone_url":"https://github.com/incuna/incuna-groups.git","svn_url":"https://github.com/incuna/incuna-groups","homepage":null,"size":572,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/incuna/incuna-groups/pulls/22"},"html":{"href":"https://github.com/incuna/incuna-groups/pull/22"},"issue":{"href":"https://api.github.com/repos/incuna/incuna-groups/issues/22"},"comments":{"href":"https://api.github.com/repos/incuna/incuna-groups/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/incuna/incuna-groups/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/incuna/incuna-groups/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/incuna/incuna-groups/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/incuna/incuna-groups/statuses/7a755dc342b30f4082e0ad9c9007a90dbb18c6ef"}}}}