{"action":"created","comment":{"url":"https://api.github.com/repos/TEAMMATES/repo/pulls/comments/32911509","id":32911509,"diff_hunk":"@@ -0,0 +1,75 @@\n+package teammates.ui.template;\n+\n+import teammates.common.util.Const;\n+import teammates.common.util.Sanitizer;\n+import teammates.common.util.Url;\n+\n+public class InstructorStudentListAjaxStudentData {\n+\n+    private String studentName;\n+    private String studentEmail;\n+    private String toggleDeleteConfirmationParams;\n+    private String photoUrl;\n+    private String courseStudentDetailsLink;\n+    private String courseStudentEditLink;\n+    private String courseStudentDeleteLink;\n+    private String courseStudentRecordsLink;\n+\n+    public InstructorStudentListAjaxStudentData(String googleId, String studentName, String studentEmail,\n+                                                String course, String photoUrl) {\n+        this.studentName = Sanitizer.sanitizeForHtml(studentName);\n+        this.studentEmail = Sanitizer.sanitizeForHtml(studentEmail);\n+        this.toggleDeleteConfirmationParams = \"'\" + Sanitizer.sanitizeForJs(course) + \"','\"\n+                                            + Sanitizer.sanitizeForJs(studentName) + \"'\";\n+        this.photoUrl = photoUrl;\n+        this.courseStudentDetailsLink = furnishLinkWithCourseEmailAndUserId(Const.ActionURIs.INSTRUCTOR_COURSE_STUDENT_DETAILS_PAGE,\n+                                                                            course, studentEmail, googleId);\n+        this.courseStudentEditLink = furnishLinkWithCourseEmailAndUserId(Const.ActionURIs.INSTRUCTOR_COURSE_STUDENT_DETAILS_EDIT,\n+                                                                         course, studentEmail, googleId);\n+        this.courseStudentDeleteLink = furnishLinkWithCourseEmailAndUserId(Const.ActionURIs.INSTRUCTOR_COURSE_STUDENT_DELETE,\n+                                                                           course, studentEmail, googleId);\n+        this.courseStudentRecordsLink = furnishLinkWithCourseEmailAndUserId(Const.ActionURIs.INSTRUCTOR_STUDENT_RECORDS_PAGE,\n+                                                                            course, studentEmail, googleId);\n+    }\n+\n+    private String furnishLinkWithCourseEmailAndUserId(String link, String course, String studentEmail,\n+                                                       String googleId) {\n+        link = Url.addParamToUrl(link, Const.ParamsNames.COURSE_ID, course);\n+        link = Url.addParamToUrl(link, Const.ParamsNames.STUDENT_EMAIL, studentEmail);\n+        link = Url.addParamToUrl(link, Const.ParamsNames.USER_ID, googleId);\n+        return link.replace(\"%40\", \"@\");","path":"src/main/java/teammates/ui/template/InstructorStudentListAjaxStudentData.java","position":40,"original_position":40,"commit_id":"4a4a96e411e0f3737ffc93d4072642da6a338cf2","original_commit_id":"4a4a96e411e0f3737ffc93d4072642da6a338cf2","user":{"login":"yj-soh","id":8586080,"avatar_url":"https://avatars.githubusercontent.com/u/8586080?v=3","gravatar_id":"","url":"https://api.github.com/users/yj-soh","html_url":"https://github.com/yj-soh","followers_url":"https://api.github.com/users/yj-soh/followers","following_url":"https://api.github.com/users/yj-soh/following{/other_user}","gists_url":"https://api.github.com/users/yj-soh/gists{/gist_id}","starred_url":"https://api.github.com/users/yj-soh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yj-soh/subscriptions","organizations_url":"https://api.github.com/users/yj-soh/orgs","repos_url":"https://api.github.com/users/yj-soh/repos","events_url":"https://api.github.com/users/yj-soh/events{/privacy}","received_events_url":"https://api.github.com/users/yj-soh/received_events","type":"User","site_admin":false},"body":"Why does it require this replacement when the original didn't?","created_at":"2015-06-22T07:55:14Z","updated_at":"2015-06-22T07:55:14Z","html_url":"https://github.com/TEAMMATES/repo/pull/3781#discussion_r32911509","pull_request_url":"https://api.github.com/repos/TEAMMATES/repo/pulls/3781","_links":{"self":{"href":"https://api.github.com/repos/TEAMMATES/repo/pulls/comments/32911509"},"html":{"href":"https://github.com/TEAMMATES/repo/pull/3781#discussion_r32911509"},"pull_request":{"href":"https://api.github.com/repos/TEAMMATES/repo/pulls/3781"}}},"pull_request":{"url":"https://api.github.com/repos/TEAMMATES/repo/pulls/3781","id":38082174,"html_url":"https://github.com/TEAMMATES/repo/pull/3781","diff_url":"https://github.com/TEAMMATES/repo/pull/3781.diff","patch_url":"https://github.com/TEAMMATES/repo/pull/3781.patch","issue_url":"https://api.github.com/repos/TEAMMATES/repo/issues/3781","number":3781,"state":"open","locked":false,"title":"JSTL - InstructorStudentListAjax","user":{"login":"wkurniawan07","id":7261051,"avatar_url":"https://avatars.githubusercontent.com/u/7261051?v=3","gravatar_id":"","url":"https://api.github.com/users/wkurniawan07","html_url":"https://github.com/wkurniawan07","followers_url":"https://api.github.com/users/wkurniawan07/followers","following_url":"https://api.github.com/users/wkurniawan07/following{/other_user}","gists_url":"https://api.github.com/users/wkurniawan07/gists{/gist_id}","starred_url":"https://api.github.com/users/wkurniawan07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkurniawan07/subscriptions","organizations_url":"https://api.github.com/users/wkurniawan07/orgs","repos_url":"https://api.github.com/users/wkurniawan07/repos","events_url":"https://api.github.com/users/wkurniawan07/events{/privacy}","received_events_url":"https://api.github.com/users/wkurniawan07/received_events","type":"User","site_admin":false},"body":"Left with PageData test. Also, when #3779 is done, I'll update this PR to re-use the Tooltip defined in Const.","created_at":"2015-06-19T07:11:24Z","updated_at":"2015-06-22T07:55:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c3d60f3791d5a81d95b4697664b645cb5ff7b57","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TEAMMATES/repo/pulls/3781/commits","review_comments_url":"https://api.github.com/repos/TEAMMATES/repo/pulls/3781/comments","review_comment_url":"https://api.github.com/repos/TEAMMATES/repo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TEAMMATES/repo/issues/3781/comments","statuses_url":"https://api.github.com/repos/TEAMMATES/repo/statuses/4a4a96e411e0f3737ffc93d4072642da6a338cf2","head":{"label":"TEAMMATES:JSTL-ISListAjax","ref":"JSTL-ISListAjax","sha":"4a4a96e411e0f3737ffc93d4072642da6a338cf2","user":{"login":"TEAMMATES","id":7374810,"avatar_url":"https://avatars.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":"repo","full_name":"TEAMMATES/repo","owner":{"login":"TEAMMATES","id":7374810,"avatar_url":"https://avatars.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/repo","description":"This is the project website for the TEAMMATES feedback management tool for education","fork":false,"url":"https://api.github.com/repos/TEAMMATES/repo","forks_url":"https://api.github.com/repos/TEAMMATES/repo/forks","keys_url":"https://api.github.com/repos/TEAMMATES/repo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TEAMMATES/repo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TEAMMATES/repo/teams","hooks_url":"https://api.github.com/repos/TEAMMATES/repo/hooks","issue_events_url":"https://api.github.com/repos/TEAMMATES/repo/issues/events{/number}","events_url":"https://api.github.com/repos/TEAMMATES/repo/events","assignees_url":"https://api.github.com/repos/TEAMMATES/repo/assignees{/user}","branches_url":"https://api.github.com/repos/TEAMMATES/repo/branches{/branch}","tags_url":"https://api.github.com/repos/TEAMMATES/repo/tags","blobs_url":"https://api.github.com/repos/TEAMMATES/repo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TEAMMATES/repo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TEAMMATES/repo/git/refs{/sha}","trees_url":"https://api.github.com/repos/TEAMMATES/repo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TEAMMATES/repo/statuses/{sha}","languages_url":"https://api.github.com/repos/TEAMMATES/repo/languages","stargazers_url":"https://api.github.com/repos/TEAMMATES/repo/stargazers","contributors_url":"https://api.github.com/repos/TEAMMATES/repo/contributors","subscribers_url":"https://api.github.com/repos/TEAMMATES/repo/subscribers","subscription_url":"https://api.github.com/repos/TEAMMATES/repo/subscription","commits_url":"https://api.github.com/repos/TEAMMATES/repo/commits{/sha}","git_commits_url":"https://api.github.com/repos/TEAMMATES/repo/git/commits{/sha}","comments_url":"https://api.github.com/repos/TEAMMATES/repo/comments{/number}","issue_comment_url":"https://api.github.com/repos/TEAMMATES/repo/issues/comments{/number}","contents_url":"https://api.github.com/repos/TEAMMATES/repo/contents/{+path}","compare_url":"https://api.github.com/repos/TEAMMATES/repo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TEAMMATES/repo/merges","archive_url":"https://api.github.com/repos/TEAMMATES/repo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TEAMMATES/repo/downloads","issues_url":"https://api.github.com/repos/TEAMMATES/repo/issues{/number}","pulls_url":"https://api.github.com/repos/TEAMMATES/repo/pulls{/number}","milestones_url":"https://api.github.com/repos/TEAMMATES/repo/milestones{/number}","notifications_url":"https://api.github.com/repos/TEAMMATES/repo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TEAMMATES/repo/labels{/name}","releases_url":"https://api.github.com/repos/TEAMMATES/repo/releases{/id}","created_at":"2014-05-02T07:43:00Z","updated_at":"2015-06-14T23:15:10Z","pushed_at":"2015-06-22T07:40:07Z","git_url":"git://github.com/TEAMMATES/repo.git","ssh_url":"git@github.com:TEAMMATES/repo.git","clone_url":"https://github.com/TEAMMATES/repo.git","svn_url":"https://github.com/TEAMMATES/repo","homepage":"http://teammatesv4.appspot.com/","size":150962,"stargazers_count":44,"watchers_count":44,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":125,"mirror_url":null,"open_issues_count":448,"forks":125,"open_issues":448,"watchers":44,"default_branch":"master"}},"base":{"label":"TEAMMATES:JSTL-Dev","ref":"JSTL-Dev","sha":"cb2dcd3ca0faba47a301280e728d735fe53b44c8","user":{"login":"TEAMMATES","id":7374810,"avatar_url":"https://avatars.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":"repo","full_name":"TEAMMATES/repo","owner":{"login":"TEAMMATES","id":7374810,"avatar_url":"https://avatars.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/repo","description":"This is the project website for the TEAMMATES feedback management tool for education","fork":false,"url":"https://api.github.com/repos/TEAMMATES/repo","forks_url":"https://api.github.com/repos/TEAMMATES/repo/forks","keys_url":"https://api.github.com/repos/TEAMMATES/repo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TEAMMATES/repo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TEAMMATES/repo/teams","hooks_url":"https://api.github.com/repos/TEAMMATES/repo/hooks","issue_events_url":"https://api.github.com/repos/TEAMMATES/repo/issues/events{/number}","events_url":"https://api.github.com/repos/TEAMMATES/repo/events","assignees_url":"https://api.github.com/repos/TEAMMATES/repo/assignees{/user}","branches_url":"https://api.github.com/repos/TEAMMATES/repo/branches{/branch}","tags_url":"https://api.github.com/repos/TEAMMATES/repo/tags","blobs_url":"https://api.github.com/repos/TEAMMATES/repo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TEAMMATES/repo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TEAMMATES/repo/git/refs{/sha}","trees_url":"https://api.github.com/repos/TEAMMATES/repo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TEAMMATES/repo/statuses/{sha}","languages_url":"https://api.github.com/repos/TEAMMATES/repo/languages","stargazers_url":"https://api.github.com/repos/TEAMMATES/repo/stargazers","contributors_url":"https://api.github.com/repos/TEAMMATES/repo/contributors","subscribers_url":"https://api.github.com/repos/TEAMMATES/repo/subscribers","subscription_url":"https://api.github.com/repos/TEAMMATES/repo/subscription","commits_url":"https://api.github.com/repos/TEAMMATES/repo/commits{/sha}","git_commits_url":"https://api.github.com/repos/TEAMMATES/repo/git/commits{/sha}","comments_url":"https://api.github.com/repos/TEAMMATES/repo/comments{/number}","issue_comment_url":"https://api.github.com/repos/TEAMMATES/repo/issues/comments{/number}","contents_url":"https://api.github.com/repos/TEAMMATES/repo/contents/{+path}","compare_url":"https://api.github.com/repos/TEAMMATES/repo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TEAMMATES/repo/merges","archive_url":"https://api.github.com/repos/TEAMMATES/repo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TEAMMATES/repo/downloads","issues_url":"https://api.github.com/repos/TEAMMATES/repo/issues{/number}","pulls_url":"https://api.github.com/repos/TEAMMATES/repo/pulls{/number}","milestones_url":"https://api.github.com/repos/TEAMMATES/repo/milestones{/number}","notifications_url":"https://api.github.com/repos/TEAMMATES/repo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TEAMMATES/repo/labels{/name}","releases_url":"https://api.github.com/repos/TEAMMATES/repo/releases{/id}","created_at":"2014-05-02T07:43:00Z","updated_at":"2015-06-14T23:15:10Z","pushed_at":"2015-06-22T07:40:07Z","git_url":"git://github.com/TEAMMATES/repo.git","ssh_url":"git@github.com:TEAMMATES/repo.git","clone_url":"https://github.com/TEAMMATES/repo.git","svn_url":"https://github.com/TEAMMATES/repo","homepage":"http://teammatesv4.appspot.com/","size":150962,"stargazers_count":44,"watchers_count":44,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":125,"mirror_url":null,"open_issues_count":448,"forks":125,"open_issues":448,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TEAMMATES/repo/pulls/3781"},"html":{"href":"https://github.com/TEAMMATES/repo/pull/3781"},"issue":{"href":"https://api.github.com/repos/TEAMMATES/repo/issues/3781"},"comments":{"href":"https://api.github.com/repos/TEAMMATES/repo/issues/3781/comments"},"review_comments":{"href":"https://api.github.com/repos/TEAMMATES/repo/pulls/3781/comments"},"review_comment":{"href":"https://api.github.com/repos/TEAMMATES/repo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TEAMMATES/repo/pulls/3781/commits"},"statuses":{"href":"https://api.github.com/repos/TEAMMATES/repo/statuses/4a4a96e411e0f3737ffc93d4072642da6a338cf2"}}}}