{"action":"created","comment":{"url":"https://api.github.com/repos/groupbuddies/council/pulls/comments/33370611","id":33370611,"diff_hunk":"@@ -14,17 +14,29 @@\n       },\n       replace: true,\n       templateUrl: 'components/discussion_card/templates/discussion_card.html',\n-      controller: 'DiscussionCardCtrl as ctrl'\n+      controller: 'DiscussionCardCtrl as ctrl',\n+      bindToController: true\n     };\n   }\n \n-  function DiscussionCardCtrl($state) {\n+  function DiscussionCardCtrl($state, User) {\n     var ctrl = this;\n \n     ctrl.show = show;\n+    ctrl.commenters = commenters();\n+    ctrl.author = author();\n \n     function show(id) {\n       $state.go('discussions.show', { id: id });\n     }\n+\n+    function commenters() {\n+      var commenterIds = ctrl.discussion.commenter_ids;\n+      return User.findAllById(commenterIds);","path":"app/assets/javascripts/app/components/discussion_card/discussion_card.js","position":null,"original_position":24,"commit_id":"fade5307bbc3e6c522c4fd1b839b8058ca83938c","original_commit_id":"f1cb229587cffd04524bd373190ab88bc8279418","user":{"login":"bsonntag","id":6205451,"avatar_url":"https://avatars.githubusercontent.com/u/6205451?v=3","gravatar_id":"","url":"https://api.github.com/users/bsonntag","html_url":"https://github.com/bsonntag","followers_url":"https://api.github.com/users/bsonntag/followers","following_url":"https://api.github.com/users/bsonntag/following{/other_user}","gists_url":"https://api.github.com/users/bsonntag/gists{/gist_id}","starred_url":"https://api.github.com/users/bsonntag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsonntag/subscriptions","organizations_url":"https://api.github.com/users/bsonntag/orgs","repos_url":"https://api.github.com/users/bsonntag/repos","events_url":"https://api.github.com/users/bsonntag/events{/privacy}","received_events_url":"https://api.github.com/users/bsonntag/received_events","type":"User","site_admin":false},"body":"Right. Renamed it.","created_at":"2015-06-26T16:16:59Z","updated_at":"2015-06-26T16:16:59Z","html_url":"https://github.com/groupbuddies/council/pull/166#discussion_r33370611","pull_request_url":"https://api.github.com/repos/groupbuddies/council/pulls/166","_links":{"self":{"href":"https://api.github.com/repos/groupbuddies/council/pulls/comments/33370611"},"html":{"href":"https://github.com/groupbuddies/council/pull/166#discussion_r33370611"},"pull_request":{"href":"https://api.github.com/repos/groupbuddies/council/pulls/166"}}},"pull_request":{"url":"https://api.github.com/repos/groupbuddies/council/pulls/166","id":38573076,"html_url":"https://github.com/groupbuddies/council/pull/166","diff_url":"https://github.com/groupbuddies/council/pull/166.diff","patch_url":"https://github.com/groupbuddies/council/pull/166.patch","issue_url":"https://api.github.com/repos/groupbuddies/council/issues/166","number":166,"state":"open","locked":false,"title":"Add participants to discussion card.","user":{"login":"bsonntag","id":6205451,"avatar_url":"https://avatars.githubusercontent.com/u/6205451?v=3","gravatar_id":"","url":"https://api.github.com/users/bsonntag","html_url":"https://github.com/bsonntag","followers_url":"https://api.github.com/users/bsonntag/followers","following_url":"https://api.github.com/users/bsonntag/following{/other_user}","gists_url":"https://api.github.com/users/bsonntag/gists{/gist_id}","starred_url":"https://api.github.com/users/bsonntag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsonntag/subscriptions","organizations_url":"https://api.github.com/users/bsonntag/orgs","repos_url":"https://api.github.com/users/bsonntag/repos","events_url":"https://api.github.com/users/bsonntag/events{/privacy}","received_events_url":"https://api.github.com/users/bsonntag/received_events","type":"User","site_admin":false},"body":"This adds a discussion's participants to discussion cards.\r\nThe discussion's author will be displayed to the right of the card and the other participants will be to the left of the card.","created_at":"2015-06-25T17:37:48Z","updated_at":"2015-06-26T16:16:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73605761454c72682fa4cf0c64714719a9794ca1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/groupbuddies/council/pulls/166/commits","review_comments_url":"https://api.github.com/repos/groupbuddies/council/pulls/166/comments","review_comment_url":"https://api.github.com/repos/groupbuddies/council/pulls/comments{/number}","comments_url":"https://api.github.com/repos/groupbuddies/council/issues/166/comments","statuses_url":"https://api.github.com/repos/groupbuddies/council/statuses/fade5307bbc3e6c522c4fd1b839b8058ca83938c","head":{"label":"groupbuddies:bs-markers","ref":"bs-markers","sha":"fade5307bbc3e6c522c4fd1b839b8058ca83938c","user":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=3","gravatar_id":"","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"repo":{"id":27681807,"name":"council","full_name":"groupbuddies/council","owner":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=3","gravatar_id":"","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/groupbuddies/council","description":"","fork":false,"url":"https://api.github.com/repos/groupbuddies/council","forks_url":"https://api.github.com/repos/groupbuddies/council/forks","keys_url":"https://api.github.com/repos/groupbuddies/council/keys{/key_id}","collaborators_url":"https://api.github.com/repos/groupbuddies/council/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/groupbuddies/council/teams","hooks_url":"https://api.github.com/repos/groupbuddies/council/hooks","issue_events_url":"https://api.github.com/repos/groupbuddies/council/issues/events{/number}","events_url":"https://api.github.com/repos/groupbuddies/council/events","assignees_url":"https://api.github.com/repos/groupbuddies/council/assignees{/user}","branches_url":"https://api.github.com/repos/groupbuddies/council/branches{/branch}","tags_url":"https://api.github.com/repos/groupbuddies/council/tags","blobs_url":"https://api.github.com/repos/groupbuddies/council/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/groupbuddies/council/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/groupbuddies/council/git/refs{/sha}","trees_url":"https://api.github.com/repos/groupbuddies/council/git/trees{/sha}","statuses_url":"https://api.github.com/repos/groupbuddies/council/statuses/{sha}","languages_url":"https://api.github.com/repos/groupbuddies/council/languages","stargazers_url":"https://api.github.com/repos/groupbuddies/council/stargazers","contributors_url":"https://api.github.com/repos/groupbuddies/council/contributors","subscribers_url":"https://api.github.com/repos/groupbuddies/council/subscribers","subscription_url":"https://api.github.com/repos/groupbuddies/council/subscription","commits_url":"https://api.github.com/repos/groupbuddies/council/commits{/sha}","git_commits_url":"https://api.github.com/repos/groupbuddies/council/git/commits{/sha}","comments_url":"https://api.github.com/repos/groupbuddies/council/comments{/number}","issue_comment_url":"https://api.github.com/repos/groupbuddies/council/issues/comments{/number}","contents_url":"https://api.github.com/repos/groupbuddies/council/contents/{+path}","compare_url":"https://api.github.com/repos/groupbuddies/council/compare/{base}...{head}","merges_url":"https://api.github.com/repos/groupbuddies/council/merges","archive_url":"https://api.github.com/repos/groupbuddies/council/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/groupbuddies/council/downloads","issues_url":"https://api.github.com/repos/groupbuddies/council/issues{/number}","pulls_url":"https://api.github.com/repos/groupbuddies/council/pulls{/number}","milestones_url":"https://api.github.com/repos/groupbuddies/council/milestones{/number}","notifications_url":"https://api.github.com/repos/groupbuddies/council/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/groupbuddies/council/labels{/name}","releases_url":"https://api.github.com/repos/groupbuddies/council/releases{/id}","created_at":"2014-12-07T19:28:26Z","updated_at":"2015-04-28T14:17:44Z","pushed_at":"2015-06-26T16:16:31Z","git_url":"git://github.com/groupbuddies/council.git","ssh_url":"git@github.com:groupbuddies/council.git","clone_url":"https://github.com/groupbuddies/council.git","svn_url":"https://github.com/groupbuddies/council","homepage":"http://council.groupbuddies.com","size":7796,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":15,"forks":2,"open_issues":15,"watchers":0,"default_branch":"master"}},"base":{"label":"groupbuddies:master","ref":"master","sha":"362ad2704ad28964b66cd05fd471a7d5d103f68c","user":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=3","gravatar_id":"","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"repo":{"id":27681807,"name":"council","full_name":"groupbuddies/council","owner":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=3","gravatar_id":"","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/groupbuddies/council","description":"","fork":false,"url":"https://api.github.com/repos/groupbuddies/council","forks_url":"https://api.github.com/repos/groupbuddies/council/forks","keys_url":"https://api.github.com/repos/groupbuddies/council/keys{/key_id}","collaborators_url":"https://api.github.com/repos/groupbuddies/council/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/groupbuddies/council/teams","hooks_url":"https://api.github.com/repos/groupbuddies/council/hooks","issue_events_url":"https://api.github.com/repos/groupbuddies/council/issues/events{/number}","events_url":"https://api.github.com/repos/groupbuddies/council/events","assignees_url":"https://api.github.com/repos/groupbuddies/council/assignees{/user}","branches_url":"https://api.github.com/repos/groupbuddies/council/branches{/branch}","tags_url":"https://api.github.com/repos/groupbuddies/council/tags","blobs_url":"https://api.github.com/repos/groupbuddies/council/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/groupbuddies/council/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/groupbuddies/council/git/refs{/sha}","trees_url":"https://api.github.com/repos/groupbuddies/council/git/trees{/sha}","statuses_url":"https://api.github.com/repos/groupbuddies/council/statuses/{sha}","languages_url":"https://api.github.com/repos/groupbuddies/council/languages","stargazers_url":"https://api.github.com/repos/groupbuddies/council/stargazers","contributors_url":"https://api.github.com/repos/groupbuddies/council/contributors","subscribers_url":"https://api.github.com/repos/groupbuddies/council/subscribers","subscription_url":"https://api.github.com/repos/groupbuddies/council/subscription","commits_url":"https://api.github.com/repos/groupbuddies/council/commits{/sha}","git_commits_url":"https://api.github.com/repos/groupbuddies/council/git/commits{/sha}","comments_url":"https://api.github.com/repos/groupbuddies/council/comments{/number}","issue_comment_url":"https://api.github.com/repos/groupbuddies/council/issues/comments{/number}","contents_url":"https://api.github.com/repos/groupbuddies/council/contents/{+path}","compare_url":"https://api.github.com/repos/groupbuddies/council/compare/{base}...{head}","merges_url":"https://api.github.com/repos/groupbuddies/council/merges","archive_url":"https://api.github.com/repos/groupbuddies/council/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/groupbuddies/council/downloads","issues_url":"https://api.github.com/repos/groupbuddies/council/issues{/number}","pulls_url":"https://api.github.com/repos/groupbuddies/council/pulls{/number}","milestones_url":"https://api.github.com/repos/groupbuddies/council/milestones{/number}","notifications_url":"https://api.github.com/repos/groupbuddies/council/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/groupbuddies/council/labels{/name}","releases_url":"https://api.github.com/repos/groupbuddies/council/releases{/id}","created_at":"2014-12-07T19:28:26Z","updated_at":"2015-04-28T14:17:44Z","pushed_at":"2015-06-26T16:16:31Z","git_url":"git://github.com/groupbuddies/council.git","ssh_url":"git@github.com:groupbuddies/council.git","clone_url":"https://github.com/groupbuddies/council.git","svn_url":"https://github.com/groupbuddies/council","homepage":"http://council.groupbuddies.com","size":7796,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":15,"forks":2,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/groupbuddies/council/pulls/166"},"html":{"href":"https://github.com/groupbuddies/council/pull/166"},"issue":{"href":"https://api.github.com/repos/groupbuddies/council/issues/166"},"comments":{"href":"https://api.github.com/repos/groupbuddies/council/issues/166/comments"},"review_comments":{"href":"https://api.github.com/repos/groupbuddies/council/pulls/166/comments"},"review_comment":{"href":"https://api.github.com/repos/groupbuddies/council/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/groupbuddies/council/pulls/166/commits"},"statuses":{"href":"https://api.github.com/repos/groupbuddies/council/statuses/fade5307bbc3e6c522c4fd1b839b8058ca83938c"}}}}