{"action":"created","comment":{"url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/comments/126121064","pull_request_review_id":48576413,"id":126121064,"diff_hunk":"@@ -181,13 +181,17 @@ public String getQuestionResultStatisticsHtml(\n         Map<String, List<Integer>> recipientRanksExcludingSelf = getRecipientRanksExcludingSelf(responses, question);\n         String fragmentTemplateToUse = \"\";\n         String templateToUse = \"\";\n+        Map<String, Integer> recipientSelfRanks = new HashMap<>();\n+\n         if (shouldSelfBeExcludedFromRankings(question)) {\n             fragmentTemplateToUse = FormTemplates.RANK_RESULT_STATS_RECIPIENTFRAGMENT_EXCLUDING_SELF_RESPONSE;\n             templateToUse = FormTemplates.RANK_RESULT_RECIPIENT_STATS_EXCLUDING_SELF_RESPONSE;\n+            recipientSelfRanks = generateSelfRankForEachRecipient(responses);\n         } else {\n             fragmentTemplateToUse = FormTemplates.RANK_RESULT_STATS_RECIPIENTFRAGMENT;\n             templateToUse = FormTemplates.RANK_RESULT_RECIPIENT_STATS;\n         }\n+","path":"src/main/java/teammates/common/datatransfer/questions/FeedbackRankRecipientsQuestionDetails.java","position":14,"original_position":14,"commit_id":"7beab71d0e6656952e17756346a639eebc98f94d","original_commit_id":"7beab71d0e6656952e17756346a639eebc98f94d","user":{"login":"leeyimin","id":6365864,"avatar_url":"https://avatars0.githubusercontent.com/u/6365864?v=3","gravatar_id":"","url":"https://api.github.com/users/leeyimin","html_url":"https://github.com/leeyimin","followers_url":"https://api.github.com/users/leeyimin/followers","following_url":"https://api.github.com/users/leeyimin/following{/other_user}","gists_url":"https://api.github.com/users/leeyimin/gists{/gist_id}","starred_url":"https://api.github.com/users/leeyimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeyimin/subscriptions","organizations_url":"https://api.github.com/users/leeyimin/orgs","repos_url":"https://api.github.com/users/leeyimin/repos","events_url":"https://api.github.com/users/leeyimin/events{/privacy}","received_events_url":"https://api.github.com/users/leeyimin/received_events","type":"User","site_admin":false},"body":"Revert this line?","created_at":"2017-07-07T10:55:45Z","updated_at":"2017-07-07T10:56:02Z","html_url":"https://github.com/TEAMMATES/teammates/pull/7607#discussion_r126121064","pull_request_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/7607","_links":{"self":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/comments/126121064"},"html":{"href":"https://github.com/TEAMMATES/teammates/pull/7607#discussion_r126121064"},"pull_request":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/7607"}}},"pull_request":{"url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/7607","id":127413369,"html_url":"https://github.com/TEAMMATES/teammates/pull/7607","diff_url":"https://github.com/TEAMMATES/teammates/pull/7607.diff","patch_url":"https://github.com/TEAMMATES/teammates/pull/7607.patch","issue_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/7607","number":7607,"state":"open","locked":false,"title":"Instructor: view results: 'rank' questions: indicate self rating #7278","user":{"login":"VamsiSangam","id":11662001,"avatar_url":"https://avatars0.githubusercontent.com/u/11662001?v=3","gravatar_id":"","url":"https://api.github.com/users/VamsiSangam","html_url":"https://github.com/VamsiSangam","followers_url":"https://api.github.com/users/VamsiSangam/followers","following_url":"https://api.github.com/users/VamsiSangam/following{/other_user}","gists_url":"https://api.github.com/users/VamsiSangam/gists{/gist_id}","starred_url":"https://api.github.com/users/VamsiSangam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VamsiSangam/subscriptions","organizations_url":"https://api.github.com/users/VamsiSangam/orgs","repos_url":"https://api.github.com/users/VamsiSangam/repos","events_url":"https://api.github.com/users/VamsiSangam/events{/privacy}","received_events_url":"https://api.github.com/users/VamsiSangam/received_events","type":"User","site_admin":false},"body":"Fixes #7278 \r\n\r\n**Outline of Solution**\r\n\r\n- Made API changes to display self rating.\r\n- Current UI -\r\n\r\n![capture](https://user-images.githubusercontent.com/11662001/27528868-05dd2bca-5a70-11e7-9c5e-f4650b06d57c.JPG)\r\n","created_at":"2017-06-26T07:35:25Z","updated_at":"2017-07-07T10:56:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe63f76ffd900ddfd5409405246407432a33e68e","assignee":{"login":"leeyimin","id":6365864,"avatar_url":"https://avatars0.githubusercontent.com/u/6365864?v=3","gravatar_id":"","url":"https://api.github.com/users/leeyimin","html_url":"https://github.com/leeyimin","followers_url":"https://api.github.com/users/leeyimin/followers","following_url":"https://api.github.com/users/leeyimin/following{/other_user}","gists_url":"https://api.github.com/users/leeyimin/gists{/gist_id}","starred_url":"https://api.github.com/users/leeyimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeyimin/subscriptions","organizations_url":"https://api.github.com/users/leeyimin/orgs","repos_url":"https://api.github.com/users/leeyimin/repos","events_url":"https://api.github.com/users/leeyimin/events{/privacy}","received_events_url":"https://api.github.com/users/leeyimin/received_events","type":"User","site_admin":false},"assignees":[{"login":"leeyimin","id":6365864,"avatar_url":"https://avatars0.githubusercontent.com/u/6365864?v=3","gravatar_id":"","url":"https://api.github.com/users/leeyimin","html_url":"https://github.com/leeyimin","followers_url":"https://api.github.com/users/leeyimin/followers","following_url":"https://api.github.com/users/leeyimin/following{/other_user}","gists_url":"https://api.github.com/users/leeyimin/gists{/gist_id}","starred_url":"https://api.github.com/users/leeyimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeyimin/subscriptions","organizations_url":"https://api.github.com/users/leeyimin/orgs","repos_url":"https://api.github.com/users/leeyimin/repos","events_url":"https://api.github.com/users/leeyimin/events{/privacy}","received_events_url":"https://api.github.com/users/leeyimin/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/7607/commits","review_comments_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/7607/comments","review_comment_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/7607/comments","statuses_url":"https://api.github.com/repos/TEAMMATES/teammates/statuses/7beab71d0e6656952e17756346a639eebc98f94d","head":{"label":"VamsiSangam:7278-rank-question-include-self-rating","ref":"7278-rank-question-include-self-rating","sha":"7beab71d0e6656952e17756346a639eebc98f94d","user":{"login":"VamsiSangam","id":11662001,"avatar_url":"https://avatars0.githubusercontent.com/u/11662001?v=3","gravatar_id":"","url":"https://api.github.com/users/VamsiSangam","html_url":"https://github.com/VamsiSangam","followers_url":"https://api.github.com/users/VamsiSangam/followers","following_url":"https://api.github.com/users/VamsiSangam/following{/other_user}","gists_url":"https://api.github.com/users/VamsiSangam/gists{/gist_id}","starred_url":"https://api.github.com/users/VamsiSangam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VamsiSangam/subscriptions","organizations_url":"https://api.github.com/users/VamsiSangam/orgs","repos_url":"https://api.github.com/users/VamsiSangam/repos","events_url":"https://api.github.com/users/VamsiSangam/events{/privacy}","received_events_url":"https://api.github.com/users/VamsiSangam/received_events","type":"User","site_admin":false},"repo":{"id":82473004,"name":"teammates","full_name":"VamsiSangam/teammates","owner":{"login":"VamsiSangam","id":11662001,"avatar_url":"https://avatars0.githubusercontent.com/u/11662001?v=3","gravatar_id":"","url":"https://api.github.com/users/VamsiSangam","html_url":"https://github.com/VamsiSangam","followers_url":"https://api.github.com/users/VamsiSangam/followers","following_url":"https://api.github.com/users/VamsiSangam/following{/other_user}","gists_url":"https://api.github.com/users/VamsiSangam/gists{/gist_id}","starred_url":"https://api.github.com/users/VamsiSangam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VamsiSangam/subscriptions","organizations_url":"https://api.github.com/users/VamsiSangam/orgs","repos_url":"https://api.github.com/users/VamsiSangam/repos","events_url":"https://api.github.com/users/VamsiSangam/events{/privacy}","received_events_url":"https://api.github.com/users/VamsiSangam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VamsiSangam/teammates","description":"This is the project website for the TEAMMATES feedback management tool for education","fork":true,"url":"https://api.github.com/repos/VamsiSangam/teammates","forks_url":"https://api.github.com/repos/VamsiSangam/teammates/forks","keys_url":"https://api.github.com/repos/VamsiSangam/teammates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VamsiSangam/teammates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VamsiSangam/teammates/teams","hooks_url":"https://api.github.com/repos/VamsiSangam/teammates/hooks","issue_events_url":"https://api.github.com/repos/VamsiSangam/teammates/issues/events{/number}","events_url":"https://api.github.com/repos/VamsiSangam/teammates/events","assignees_url":"https://api.github.com/repos/VamsiSangam/teammates/assignees{/user}","branches_url":"https://api.github.com/repos/VamsiSangam/teammates/branches{/branch}","tags_url":"https://api.github.com/repos/VamsiSangam/teammates/tags","blobs_url":"https://api.github.com/repos/VamsiSangam/teammates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VamsiSangam/teammates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VamsiSangam/teammates/git/refs{/sha}","trees_url":"https://api.github.com/repos/VamsiSangam/teammates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VamsiSangam/teammates/statuses/{sha}","languages_url":"https://api.github.com/repos/VamsiSangam/teammates/languages","stargazers_url":"https://api.github.com/repos/VamsiSangam/teammates/stargazers","contributors_url":"https://api.github.com/repos/VamsiSangam/teammates/contributors","subscribers_url":"https://api.github.com/repos/VamsiSangam/teammates/subscribers","subscription_url":"https://api.github.com/repos/VamsiSangam/teammates/subscription","commits_url":"https://api.github.com/repos/VamsiSangam/teammates/commits{/sha}","git_commits_url":"https://api.github.com/repos/VamsiSangam/teammates/git/commits{/sha}","comments_url":"https://api.github.com/repos/VamsiSangam/teammates/comments{/number}","issue_comment_url":"https://api.github.com/repos/VamsiSangam/teammates/issues/comments{/number}","contents_url":"https://api.github.com/repos/VamsiSangam/teammates/contents/{+path}","compare_url":"https://api.github.com/repos/VamsiSangam/teammates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VamsiSangam/teammates/merges","archive_url":"https://api.github.com/repos/VamsiSangam/teammates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VamsiSangam/teammates/downloads","issues_url":"https://api.github.com/repos/VamsiSangam/teammates/issues{/number}","pulls_url":"https://api.github.com/repos/VamsiSangam/teammates/pulls{/number}","milestones_url":"https://api.github.com/repos/VamsiSangam/teammates/milestones{/number}","notifications_url":"https://api.github.com/repos/VamsiSangam/teammates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VamsiSangam/teammates/labels{/name}","releases_url":"https://api.github.com/repos/VamsiSangam/teammates/releases{/id}","deployments_url":"https://api.github.com/repos/VamsiSangam/teammates/deployments","created_at":"2017-02-19T16:33:41Z","updated_at":"2017-02-19T16:33:48Z","pushed_at":"2017-07-07T10:27:48Z","git_url":"git://github.com/VamsiSangam/teammates.git","ssh_url":"git@github.com:VamsiSangam/teammates.git","clone_url":"https://github.com/VamsiSangam/teammates.git","svn_url":"https://github.com/VamsiSangam/teammates","homepage":"http://teammatesv4.appspot.com/","size":188086,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"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":"TEAMMATES:master","ref":"master","sha":"53dd7f1d7503d7aa164f2ef9dd7251e2fcbebab7","user":{"login":"TEAMMATES","id":7374810,"avatar_url":"https://avatars1.githubusercontent.com/u/7374810?v=3","gravatar_id":"","url":"https://api.github.com/users/TEAMMATES","html_url":"https://github.com/TEAMMATES","followers_url":"https://api.github.com/users/TEAMMATES/followers","following_url":"https://api.github.com/users/TEAMMATES/following{/other_user}","gists_url":"https://api.github.com/users/TEAMMATES/gists{/gist_id}","starred_url":"https://api.github.com/users/TEAMMATES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TEAMMATES/subscriptions","organizations_url":"https://api.github.com/users/TEAMMATES/orgs","repos_url":"https://api.github.com/users/TEAMMATES/repos","events_url":"https://api.github.com/users/TEAMMATES/events{/privacy}","received_events_url":"https://api.github.com/users/TEAMMATES/received_events","type":"Organization","site_admin":false},"repo":{"id":19369035,"name":"teammates","full_name":"TEAMMATES/teammates","owner":{"login":"TEAMMATES","id":7374810,"avatar_url":"https://avatars1.githubusercontent.com/u/7374810?v=3","gravatar_id":"","url":"https://api.github.com/users/TEAMMATES","html_url":"https://github.com/TEAMMATES","followers_url":"https://api.github.com/users/TEAMMATES/followers","following_url":"https://api.github.com/users/TEAMMATES/following{/other_user}","gists_url":"https://api.github.com/users/TEAMMATES/gists{/gist_id}","starred_url":"https://api.github.com/users/TEAMMATES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TEAMMATES/subscriptions","organizations_url":"https://api.github.com/users/TEAMMATES/orgs","repos_url":"https://api.github.com/users/TEAMMATES/repos","events_url":"https://api.github.com/users/TEAMMATES/events{/privacy}","received_events_url":"https://api.github.com/users/TEAMMATES/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TEAMMATES/teammates","description":"This is the project website for the TEAMMATES feedback management tool for education","fork":false,"url":"https://api.github.com/repos/TEAMMATES/teammates","forks_url":"https://api.github.com/repos/TEAMMATES/teammates/forks","keys_url":"https://api.github.com/repos/TEAMMATES/teammates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TEAMMATES/teammates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TEAMMATES/teammates/teams","hooks_url":"https://api.github.com/repos/TEAMMATES/teammates/hooks","issue_events_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/events{/number}","events_url":"https://api.github.com/repos/TEAMMATES/teammates/events","assignees_url":"https://api.github.com/repos/TEAMMATES/teammates/assignees{/user}","branches_url":"https://api.github.com/repos/TEAMMATES/teammates/branches{/branch}","tags_url":"https://api.github.com/repos/TEAMMATES/teammates/tags","blobs_url":"https://api.github.com/repos/TEAMMATES/teammates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TEAMMATES/teammates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TEAMMATES/teammates/git/refs{/sha}","trees_url":"https://api.github.com/repos/TEAMMATES/teammates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TEAMMATES/teammates/statuses/{sha}","languages_url":"https://api.github.com/repos/TEAMMATES/teammates/languages","stargazers_url":"https://api.github.com/repos/TEAMMATES/teammates/stargazers","contributors_url":"https://api.github.com/repos/TEAMMATES/teammates/contributors","subscribers_url":"https://api.github.com/repos/TEAMMATES/teammates/subscribers","subscription_url":"https://api.github.com/repos/TEAMMATES/teammates/subscription","commits_url":"https://api.github.com/repos/TEAMMATES/teammates/commits{/sha}","git_commits_url":"https://api.github.com/repos/TEAMMATES/teammates/git/commits{/sha}","comments_url":"https://api.github.com/repos/TEAMMATES/teammates/comments{/number}","issue_comment_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/comments{/number}","contents_url":"https://api.github.com/repos/TEAMMATES/teammates/contents/{+path}","compare_url":"https://api.github.com/repos/TEAMMATES/teammates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TEAMMATES/teammates/merges","archive_url":"https://api.github.com/repos/TEAMMATES/teammates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TEAMMATES/teammates/downloads","issues_url":"https://api.github.com/repos/TEAMMATES/teammates/issues{/number}","pulls_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls{/number}","milestones_url":"https://api.github.com/repos/TEAMMATES/teammates/milestones{/number}","notifications_url":"https://api.github.com/repos/TEAMMATES/teammates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TEAMMATES/teammates/labels{/name}","releases_url":"https://api.github.com/repos/TEAMMATES/teammates/releases{/id}","deployments_url":"https://api.github.com/repos/TEAMMATES/teammates/deployments","created_at":"2014-05-02T07:43:00Z","updated_at":"2017-07-05T18:55:26Z","pushed_at":"2017-07-07T10:27:50Z","git_url":"git://github.com/TEAMMATES/teammates.git","ssh_url":"git@github.com:TEAMMATES/teammates.git","clone_url":"https://github.com/TEAMMATES/teammates.git","svn_url":"https://github.com/TEAMMATES/teammates","homepage":"https://teammatesv4.appspot.com/","size":188771,"stargazers_count":369,"watchers_count":369,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":850,"mirror_url":null,"open_issues_count":284,"forks":850,"open_issues":284,"watchers":369,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/7607"},"html":{"href":"https://github.com/TEAMMATES/teammates/pull/7607"},"issue":{"href":"https://api.github.com/repos/TEAMMATES/teammates/issues/7607"},"comments":{"href":"https://api.github.com/repos/TEAMMATES/teammates/issues/7607/comments"},"review_comments":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/7607/comments"},"review_comment":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/7607/commits"},"statuses":{"href":"https://api.github.com/repos/TEAMMATES/teammates/statuses/7beab71d0e6656952e17756346a639eebc98f94d"}}}}
{"actor":{"display_login":"leeyimin"}}