{"action":"created","comment":{"url":"https://api.github.com/repos/auvsi-suas/interop/pulls/comments/64161061","id":64161061,"diff_hunk":"@@ -0,0 +1,182 @@\n+/**\n+ * Controller for the Target Review page.\n+ */\n+\n+\n+\n+/**\n+ * Controller for the Target Review page.\n+ * @param {!angular.Window} $window The window service.\n+ * @param {!Object} Backend The backend service.\n+ * @final\n+ * @constructor\n+ * @struct\n+ * @ngInject\n+ */\n+TargetReviewCtrl = function($window, Backend) {\n+    /**\n+     * @private @const {!angular.Window} The window service.\n+     */\n+    this.window_ = $window;\n+\n+    /**\n+     * @private @const {!Object} The backend service.\n+     */\n+    this.backend_ = Backend;\n+\n+    /**\n+     * @private {?Object} The target under review.\n+     */\n+    this.target_ = null;\n+\n+    /**\n+     * @private {?Array<Object>} The target review details.\n+     */\n+    this.targetDetails_ = null;\n+};\n+\n+\n+/**\n+ * Gets the targets for review.\n+ * @return {?Array<Object>} The targets.\n+ * @export\n+ */\n+TargetReviewCtrl.prototype.getReviewTargets = function() {\n+    return this.backend_.reviewTargets;\n+};\n+\n+\n+/**\n+ * Gets the class for the target.\n+ * @param {!Object} target The target.\n+ * @return {string} The class.\n+ * @export\n+ */\n+TargetReviewCtrl.prototype.getTargetButtonClass = function(target) {\n+    var thumbnailClass;\n+    if (target.thumbnail_approved == null) {\n+        thumbnailClass = 'button';\n+    } else if (target.thumbnail_approved) {\n+        thumbnailClass = 'success button';\n+    } else {\n+        thumbnailClass = 'alert button';\n+    }\n+\n+    if (this.target_ && target.id == this.target_.id) {\n+        return thumbnailClass + ' disabled';\n+    } else {\n+        return thumbnailClass;\n+    }\n+};\n+\n+\n+/**\n+ * Sets the target under review.\n+ * @param {!Object} target The target to review.\n+ * @export\n+ */\n+TargetReviewCtrl.prototype.setReviewTarget = function(target) {","path":"server/auvsi_suas/static/auvsi_suas/pages/target-review/target-review-controller.js","position":78,"original_position":78,"commit_id":"64b5d4518c8e20f60b15fa9909ec6fff90d09a4d","original_commit_id":"64b5d4518c8e20f60b15fa9909ec6fff90d09a4d","user":{"login":"prattmic","id":1293187,"avatar_url":"https://avatars.githubusercontent.com/u/1293187?v=3","gravatar_id":"","url":"https://api.github.com/users/prattmic","html_url":"https://github.com/prattmic","followers_url":"https://api.github.com/users/prattmic/followers","following_url":"https://api.github.com/users/prattmic/following{/other_user}","gists_url":"https://api.github.com/users/prattmic/gists{/gist_id}","starred_url":"https://api.github.com/users/prattmic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prattmic/subscriptions","organizations_url":"https://api.github.com/users/prattmic/orgs","repos_url":"https://api.github.com/users/prattmic/repos","events_url":"https://api.github.com/users/prattmic/events{/privacy}","received_events_url":"https://api.github.com/users/prattmic/received_events","type":"User","site_admin":false},"body":"It isn't required, but we are going to want an easy way to verify if we are getting targets from all the different teams.","created_at":"2016-05-23T01:25:52Z","updated_at":"2016-05-23T01:25:52Z","html_url":"https://github.com/auvsi-suas/interop/pull/125#discussion_r64161061","pull_request_url":"https://api.github.com/repos/auvsi-suas/interop/pulls/125","_links":{"self":{"href":"https://api.github.com/repos/auvsi-suas/interop/pulls/comments/64161061"},"html":{"href":"https://github.com/auvsi-suas/interop/pull/125#discussion_r64161061"},"pull_request":{"href":"https://api.github.com/repos/auvsi-suas/interop/pulls/125"}}},"pull_request":{"url":"https://api.github.com/repos/auvsi-suas/interop/pulls/125","id":70852967,"html_url":"https://github.com/auvsi-suas/interop/pull/125","diff_url":"https://github.com/auvsi-suas/interop/pull/125.diff","patch_url":"https://github.com/auvsi-suas/interop/pull/125.patch","issue_url":"https://api.github.com/repos/auvsi-suas/interop/issues/125","number":125,"state":"open","locked":false,"title":"Add a frontend for target review.","user":{"login":"pmtischler","id":2326936,"avatar_url":"https://avatars.githubusercontent.com/u/2326936?v=3","gravatar_id":"","url":"https://api.github.com/users/pmtischler","html_url":"https://github.com/pmtischler","followers_url":"https://api.github.com/users/pmtischler/followers","following_url":"https://api.github.com/users/pmtischler/following{/other_user}","gists_url":"https://api.github.com/users/pmtischler/gists{/gist_id}","starred_url":"https://api.github.com/users/pmtischler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmtischler/subscriptions","organizations_url":"https://api.github.com/users/pmtischler/orgs","repos_url":"https://api.github.com/users/pmtischler/repos","events_url":"https://api.github.com/users/pmtischler/events{/privacy}","received_events_url":"https://api.github.com/users/pmtischler/received_events","type":"User","site_admin":false},"body":"Updates the backend review PUT to use the same field so it is directly\r\nupdatable by the Angular resource object.\r\n\r\nUpdates the menus for better organization of displays/tools. Updates the\r\nhelp message on the dashboard.\r\n\r\nAdds a new resource for target review requests. Adds a page to view\r\nand update targets under review.\r\n\r\nFixes #54 ","created_at":"2016-05-20T13:16:25Z","updated_at":"2016-05-23T01:25:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"14558c63e7d031b66086b7a32ab1978c301dc653","assignee":{"login":"prattmic","id":1293187,"avatar_url":"https://avatars.githubusercontent.com/u/1293187?v=3","gravatar_id":"","url":"https://api.github.com/users/prattmic","html_url":"https://github.com/prattmic","followers_url":"https://api.github.com/users/prattmic/followers","following_url":"https://api.github.com/users/prattmic/following{/other_user}","gists_url":"https://api.github.com/users/prattmic/gists{/gist_id}","starred_url":"https://api.github.com/users/prattmic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prattmic/subscriptions","organizations_url":"https://api.github.com/users/prattmic/orgs","repos_url":"https://api.github.com/users/prattmic/repos","events_url":"https://api.github.com/users/prattmic/events{/privacy}","received_events_url":"https://api.github.com/users/prattmic/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/auvsi-suas/interop/milestones/4","html_url":"https://github.com/auvsi-suas/interop/milestones/April%20-%20Judge%20Target%20Submissions","labels_url":"https://api.github.com/repos/auvsi-suas/interop/milestones/4/labels","id":1545546,"number":4,"title":"April - Judge Target Submissions","description":"","creator":{"login":"pmtischler","id":2326936,"avatar_url":"https://avatars.githubusercontent.com/u/2326936?v=3","gravatar_id":"","url":"https://api.github.com/users/pmtischler","html_url":"https://github.com/pmtischler","followers_url":"https://api.github.com/users/pmtischler/followers","following_url":"https://api.github.com/users/pmtischler/following{/other_user}","gists_url":"https://api.github.com/users/pmtischler/gists{/gist_id}","starred_url":"https://api.github.com/users/pmtischler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmtischler/subscriptions","organizations_url":"https://api.github.com/users/pmtischler/orgs","repos_url":"https://api.github.com/users/pmtischler/repos","events_url":"https://api.github.com/users/pmtischler/events{/privacy}","received_events_url":"https://api.github.com/users/pmtischler/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":34,"state":"open","created_at":"2016-01-27T02:58:33Z","updated_at":"2016-05-23T01:20:06Z","due_on":"2016-04-30T04:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/auvsi-suas/interop/pulls/125/commits","review_comments_url":"https://api.github.com/repos/auvsi-suas/interop/pulls/125/comments","review_comment_url":"https://api.github.com/repos/auvsi-suas/interop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/auvsi-suas/interop/issues/125/comments","statuses_url":"https://api.github.com/repos/auvsi-suas/interop/statuses/64b5d4518c8e20f60b15fa9909ec6fff90d09a4d","head":{"label":"auvsi-suas:target-review","ref":"target-review","sha":"64b5d4518c8e20f60b15fa9909ec6fff90d09a4d","user":{"login":"auvsi-suas","id":13365550,"avatar_url":"https://avatars.githubusercontent.com/u/13365550?v=3","gravatar_id":"","url":"https://api.github.com/users/auvsi-suas","html_url":"https://github.com/auvsi-suas","followers_url":"https://api.github.com/users/auvsi-suas/followers","following_url":"https://api.github.com/users/auvsi-suas/following{/other_user}","gists_url":"https://api.github.com/users/auvsi-suas/gists{/gist_id}","starred_url":"https://api.github.com/users/auvsi-suas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auvsi-suas/subscriptions","organizations_url":"https://api.github.com/users/auvsi-suas/orgs","repos_url":"https://api.github.com/users/auvsi-suas/repos","events_url":"https://api.github.com/users/auvsi-suas/events{/privacy}","received_events_url":"https://api.github.com/users/auvsi-suas/received_events","type":"Organization","site_admin":false},"repo":{"id":42521702,"name":"interop","full_name":"auvsi-suas/interop","owner":{"login":"auvsi-suas","id":13365550,"avatar_url":"https://avatars.githubusercontent.com/u/13365550?v=3","gravatar_id":"","url":"https://api.github.com/users/auvsi-suas","html_url":"https://github.com/auvsi-suas","followers_url":"https://api.github.com/users/auvsi-suas/followers","following_url":"https://api.github.com/users/auvsi-suas/following{/other_user}","gists_url":"https://api.github.com/users/auvsi-suas/gists{/gist_id}","starred_url":"https://api.github.com/users/auvsi-suas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auvsi-suas/subscriptions","organizations_url":"https://api.github.com/users/auvsi-suas/orgs","repos_url":"https://api.github.com/users/auvsi-suas/repos","events_url":"https://api.github.com/users/auvsi-suas/events{/privacy}","received_events_url":"https://api.github.com/users/auvsi-suas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/auvsi-suas/interop","description":"Interoperability System for the AUVSI SUAS Competition.","fork":false,"url":"https://api.github.com/repos/auvsi-suas/interop","forks_url":"https://api.github.com/repos/auvsi-suas/interop/forks","keys_url":"https://api.github.com/repos/auvsi-suas/interop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/auvsi-suas/interop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/auvsi-suas/interop/teams","hooks_url":"https://api.github.com/repos/auvsi-suas/interop/hooks","issue_events_url":"https://api.github.com/repos/auvsi-suas/interop/issues/events{/number}","events_url":"https://api.github.com/repos/auvsi-suas/interop/events","assignees_url":"https://api.github.com/repos/auvsi-suas/interop/assignees{/user}","branches_url":"https://api.github.com/repos/auvsi-suas/interop/branches{/branch}","tags_url":"https://api.github.com/repos/auvsi-suas/interop/tags","blobs_url":"https://api.github.com/repos/auvsi-suas/interop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/auvsi-suas/interop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/auvsi-suas/interop/git/refs{/sha}","trees_url":"https://api.github.com/repos/auvsi-suas/interop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/auvsi-suas/interop/statuses/{sha}","languages_url":"https://api.github.com/repos/auvsi-suas/interop/languages","stargazers_url":"https://api.github.com/repos/auvsi-suas/interop/stargazers","contributors_url":"https://api.github.com/repos/auvsi-suas/interop/contributors","subscribers_url":"https://api.github.com/repos/auvsi-suas/interop/subscribers","subscription_url":"https://api.github.com/repos/auvsi-suas/interop/subscription","commits_url":"https://api.github.com/repos/auvsi-suas/interop/commits{/sha}","git_commits_url":"https://api.github.com/repos/auvsi-suas/interop/git/commits{/sha}","comments_url":"https://api.github.com/repos/auvsi-suas/interop/comments{/number}","issue_comment_url":"https://api.github.com/repos/auvsi-suas/interop/issues/comments{/number}","contents_url":"https://api.github.com/repos/auvsi-suas/interop/contents/{+path}","compare_url":"https://api.github.com/repos/auvsi-suas/interop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/auvsi-suas/interop/merges","archive_url":"https://api.github.com/repos/auvsi-suas/interop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/auvsi-suas/interop/downloads","issues_url":"https://api.github.com/repos/auvsi-suas/interop/issues{/number}","pulls_url":"https://api.github.com/repos/auvsi-suas/interop/pulls{/number}","milestones_url":"https://api.github.com/repos/auvsi-suas/interop/milestones{/number}","notifications_url":"https://api.github.com/repos/auvsi-suas/interop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/auvsi-suas/interop/labels{/name}","releases_url":"https://api.github.com/repos/auvsi-suas/interop/releases{/id}","deployments_url":"https://api.github.com/repos/auvsi-suas/interop/deployments","created_at":"2015-09-15T13:38:54Z","updated_at":"2016-05-08T18:24:56Z","pushed_at":"2016-05-23T01:20:10Z","git_url":"git://github.com/auvsi-suas/interop.git","ssh_url":"git@github.com:auvsi-suas/interop.git","clone_url":"https://github.com/auvsi-suas/interop.git","svn_url":"https://github.com/auvsi-suas/interop","homepage":null,"size":49133,"stargazers_count":30,"watchers_count":30,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":12,"forks":18,"open_issues":12,"watchers":30,"default_branch":"master"}},"base":{"label":"auvsi-suas:master","ref":"master","sha":"96a7efeee8935b1607e3f244ababd199dbe3b6ba","user":{"login":"auvsi-suas","id":13365550,"avatar_url":"https://avatars.githubusercontent.com/u/13365550?v=3","gravatar_id":"","url":"https://api.github.com/users/auvsi-suas","html_url":"https://github.com/auvsi-suas","followers_url":"https://api.github.com/users/auvsi-suas/followers","following_url":"https://api.github.com/users/auvsi-suas/following{/other_user}","gists_url":"https://api.github.com/users/auvsi-suas/gists{/gist_id}","starred_url":"https://api.github.com/users/auvsi-suas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auvsi-suas/subscriptions","organizations_url":"https://api.github.com/users/auvsi-suas/orgs","repos_url":"https://api.github.com/users/auvsi-suas/repos","events_url":"https://api.github.com/users/auvsi-suas/events{/privacy}","received_events_url":"https://api.github.com/users/auvsi-suas/received_events","type":"Organization","site_admin":false},"repo":{"id":42521702,"name":"interop","full_name":"auvsi-suas/interop","owner":{"login":"auvsi-suas","id":13365550,"avatar_url":"https://avatars.githubusercontent.com/u/13365550?v=3","gravatar_id":"","url":"https://api.github.com/users/auvsi-suas","html_url":"https://github.com/auvsi-suas","followers_url":"https://api.github.com/users/auvsi-suas/followers","following_url":"https://api.github.com/users/auvsi-suas/following{/other_user}","gists_url":"https://api.github.com/users/auvsi-suas/gists{/gist_id}","starred_url":"https://api.github.com/users/auvsi-suas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auvsi-suas/subscriptions","organizations_url":"https://api.github.com/users/auvsi-suas/orgs","repos_url":"https://api.github.com/users/auvsi-suas/repos","events_url":"https://api.github.com/users/auvsi-suas/events{/privacy}","received_events_url":"https://api.github.com/users/auvsi-suas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/auvsi-suas/interop","description":"Interoperability System for the AUVSI SUAS Competition.","fork":false,"url":"https://api.github.com/repos/auvsi-suas/interop","forks_url":"https://api.github.com/repos/auvsi-suas/interop/forks","keys_url":"https://api.github.com/repos/auvsi-suas/interop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/auvsi-suas/interop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/auvsi-suas/interop/teams","hooks_url":"https://api.github.com/repos/auvsi-suas/interop/hooks","issue_events_url":"https://api.github.com/repos/auvsi-suas/interop/issues/events{/number}","events_url":"https://api.github.com/repos/auvsi-suas/interop/events","assignees_url":"https://api.github.com/repos/auvsi-suas/interop/assignees{/user}","branches_url":"https://api.github.com/repos/auvsi-suas/interop/branches{/branch}","tags_url":"https://api.github.com/repos/auvsi-suas/interop/tags","blobs_url":"https://api.github.com/repos/auvsi-suas/interop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/auvsi-suas/interop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/auvsi-suas/interop/git/refs{/sha}","trees_url":"https://api.github.com/repos/auvsi-suas/interop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/auvsi-suas/interop/statuses/{sha}","languages_url":"https://api.github.com/repos/auvsi-suas/interop/languages","stargazers_url":"https://api.github.com/repos/auvsi-suas/interop/stargazers","contributors_url":"https://api.github.com/repos/auvsi-suas/interop/contributors","subscribers_url":"https://api.github.com/repos/auvsi-suas/interop/subscribers","subscription_url":"https://api.github.com/repos/auvsi-suas/interop/subscription","commits_url":"https://api.github.com/repos/auvsi-suas/interop/commits{/sha}","git_commits_url":"https://api.github.com/repos/auvsi-suas/interop/git/commits{/sha}","comments_url":"https://api.github.com/repos/auvsi-suas/interop/comments{/number}","issue_comment_url":"https://api.github.com/repos/auvsi-suas/interop/issues/comments{/number}","contents_url":"https://api.github.com/repos/auvsi-suas/interop/contents/{+path}","compare_url":"https://api.github.com/repos/auvsi-suas/interop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/auvsi-suas/interop/merges","archive_url":"https://api.github.com/repos/auvsi-suas/interop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/auvsi-suas/interop/downloads","issues_url":"https://api.github.com/repos/auvsi-suas/interop/issues{/number}","pulls_url":"https://api.github.com/repos/auvsi-suas/interop/pulls{/number}","milestones_url":"https://api.github.com/repos/auvsi-suas/interop/milestones{/number}","notifications_url":"https://api.github.com/repos/auvsi-suas/interop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/auvsi-suas/interop/labels{/name}","releases_url":"https://api.github.com/repos/auvsi-suas/interop/releases{/id}","deployments_url":"https://api.github.com/repos/auvsi-suas/interop/deployments","created_at":"2015-09-15T13:38:54Z","updated_at":"2016-05-08T18:24:56Z","pushed_at":"2016-05-23T01:20:10Z","git_url":"git://github.com/auvsi-suas/interop.git","ssh_url":"git@github.com:auvsi-suas/interop.git","clone_url":"https://github.com/auvsi-suas/interop.git","svn_url":"https://github.com/auvsi-suas/interop","homepage":null,"size":49133,"stargazers_count":30,"watchers_count":30,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":12,"forks":18,"open_issues":12,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/auvsi-suas/interop/pulls/125"},"html":{"href":"https://github.com/auvsi-suas/interop/pull/125"},"issue":{"href":"https://api.github.com/repos/auvsi-suas/interop/issues/125"},"comments":{"href":"https://api.github.com/repos/auvsi-suas/interop/issues/125/comments"},"review_comments":{"href":"https://api.github.com/repos/auvsi-suas/interop/pulls/125/comments"},"review_comment":{"href":"https://api.github.com/repos/auvsi-suas/interop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/auvsi-suas/interop/pulls/125/commits"},"statuses":{"href":"https://api.github.com/repos/auvsi-suas/interop/statuses/64b5d4518c8e20f60b15fa9909ec6fff90d09a4d"}}}}
{"actor":{"display_login":"prattmic"}}