{"action":"created","comment":{"url":"https://api.github.com/repos/ox-it/wl-turnitin/pulls/comments/54079093","id":54079093,"diff_hunk":"@@ -1747,6 +2205,104 @@ public void checkForReportsBulk() {\n \t\t\t\t//dao.update(currentItem);\n \t\t\t}\n \n+\t\t\tSite s = null;\n+\t\t\ttry {\n+\t\t\t\ts = siteService.getSite(currentItem.getSiteId());\n+\t\t\t}\n+\t\t\tcatch (IdUnusedException iue) {\n+\t\t\t\tlog.warn(\"checkForReportsBulk: Site \" + currentItem.getSiteId() + \" not found!\" + iue.getMessage());\n+\t\t\t\tlong l = currentItem.getRetryCount().longValue();\n+\t\t\t\tl++;\n+\t\t\t\tcurrentItem.setRetryCount(Long.valueOf(l));\n+\t\t\t\tcurrentItem.setNextRetryTime(this.getNextRetryTime(Long.valueOf(l)));\n+\t\t\t\tcurrentItem.setLastError(\"Site not found\");\n+\t\t\t\tdao.update(currentItem);\n+\t\t\t\tcontinue;\n+\t\t\t}\n+\t\t\t//////////////////////////////  NEW LTI INTEGRATION  ///////////////////////////////\n+\t\t\tif(siteAdvisor.siteCanUseLTIReviewService(s)){\t\t\t\n+\t\t\t\tlog.debug(\"getReviewScore using the LTI integration\");\t\t\t\n+\t\t\t\t\n+\t\t\t\tMap<String,String> ltiProps = new HashMap<String,String> ();\t\t\t\t\t\t\n+\t\t\t\tMap instructorInfo = turnitinConn.getInstructorInfo(currentItem.getSiteId());\n+\t\t\t\tltiProps.put(\"roles\", \"Instructor\");\n+\t\t\t\tltiProps.put(\"user_id\", (String) instructorInfo.get(\"uid\"));\n+\t\t\t\tltiProps.put(\"lis_person_contact_email_primary\", (String) instructorInfo.get(\"uem\"));","path":"contentreview-impl/impl/src/java/org/sakaiproject/contentreview/impl/turnitin/TurnitinReviewServiceImpl.java","position":711,"original_position":711,"commit_id":"f5e6c220acc304e1520cb9b96afa4356bae1dbdb","original_commit_id":"f5e6c220acc304e1520cb9b96afa4356bae1dbdb","user":{"login":"buckett","id":5921,"avatar_url":"https://avatars.githubusercontent.com/u/5921?v=3","gravatar_id":"","url":"https://api.github.com/users/buckett","html_url":"https://github.com/buckett","followers_url":"https://api.github.com/users/buckett/followers","following_url":"https://api.github.com/users/buckett/following{/other_user}","gists_url":"https://api.github.com/users/buckett/gists{/gist_id}","starred_url":"https://api.github.com/users/buckett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buckett/subscriptions","organizations_url":"https://api.github.com/users/buckett/orgs","repos_url":"https://api.github.com/users/buckett/repos","events_url":"https://api.github.com/users/buckett/events{/privacy}","received_events_url":"https://api.github.com/users/buckett/received_events","type":"User","site_admin":false},"body":"It's on line 1073","created_at":"2016-02-25T10:59:38Z","updated_at":"2016-02-25T10:59:38Z","html_url":"https://github.com/ox-it/wl-turnitin/pull/12#discussion_r54079093","pull_request_url":"https://api.github.com/repos/ox-it/wl-turnitin/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/ox-it/wl-turnitin/pulls/comments/54079093"},"html":{"href":"https://github.com/ox-it/wl-turnitin/pull/12#discussion_r54079093"},"pull_request":{"href":"https://api.github.com/repos/ox-it/wl-turnitin/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/ox-it/wl-turnitin/pulls/12","id":51997577,"html_url":"https://github.com/ox-it/wl-turnitin/pull/12","diff_url":"https://github.com/ox-it/wl-turnitin/pull/12.diff","patch_url":"https://github.com/ox-it/wl-turnitin/pull/12.patch","issue_url":"https://api.github.com/repos/ox-it/wl-turnitin/issues/12","number":12,"state":"open","locked":false,"title":"Turnitin LTI","user":{"login":"buckett","id":5921,"avatar_url":"https://avatars.githubusercontent.com/u/5921?v=3","gravatar_id":"","url":"https://api.github.com/users/buckett","html_url":"https://github.com/buckett","followers_url":"https://api.github.com/users/buckett/followers","following_url":"https://api.github.com/users/buckett/following{/other_user}","gists_url":"https://api.github.com/users/buckett/gists{/gist_id}","starred_url":"https://api.github.com/users/buckett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buckett/subscriptions","organizations_url":"https://api.github.com/users/buckett/orgs","repos_url":"https://api.github.com/users/buckett/repos","events_url":"https://api.github.com/users/buckett/events{/privacy}","received_events_url":"https://api.github.com/users/buckett/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-27T14:00:56Z","updated_at":"2016-02-25T10:59:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"494b9273f9477b51fe1a5f81fe3405e552237436","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ox-it/wl-turnitin/pulls/12/commits","review_comments_url":"https://api.github.com/repos/ox-it/wl-turnitin/pulls/12/comments","review_comment_url":"https://api.github.com/repos/ox-it/wl-turnitin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ox-it/wl-turnitin/issues/12/comments","statuses_url":"https://api.github.com/repos/ox-it/wl-turnitin/statuses/f5e6c220acc304e1520cb9b96afa4356bae1dbdb","head":{"label":"ox-it:turnitin","ref":"turnitin","sha":"f5e6c220acc304e1520cb9b96afa4356bae1dbdb","user":{"login":"ox-it","id":351950,"avatar_url":"https://avatars.githubusercontent.com/u/351950?v=3","gravatar_id":"","url":"https://api.github.com/users/ox-it","html_url":"https://github.com/ox-it","followers_url":"https://api.github.com/users/ox-it/followers","following_url":"https://api.github.com/users/ox-it/following{/other_user}","gists_url":"https://api.github.com/users/ox-it/gists{/gist_id}","starred_url":"https://api.github.com/users/ox-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ox-it/subscriptions","organizations_url":"https://api.github.com/users/ox-it/orgs","repos_url":"https://api.github.com/users/ox-it/repos","events_url":"https://api.github.com/users/ox-it/events{/privacy}","received_events_url":"https://api.github.com/users/ox-it/received_events","type":"Organization","site_admin":false},"repo":{"id":6059265,"name":"wl-turnitin","full_name":"ox-it/wl-turnitin","owner":{"login":"ox-it","id":351950,"avatar_url":"https://avatars.githubusercontent.com/u/351950?v=3","gravatar_id":"","url":"https://api.github.com/users/ox-it","html_url":"https://github.com/ox-it","followers_url":"https://api.github.com/users/ox-it/followers","following_url":"https://api.github.com/users/ox-it/following{/other_user}","gists_url":"https://api.github.com/users/ox-it/gists{/gist_id}","starred_url":"https://api.github.com/users/ox-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ox-it/subscriptions","organizations_url":"https://api.github.com/users/ox-it/orgs","repos_url":"https://api.github.com/users/ox-it/repos","events_url":"https://api.github.com/users/ox-it/events{/privacy}","received_events_url":"https://api.github.com/users/ox-it/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ox-it/wl-turnitin","description":null,"fork":false,"url":"https://api.github.com/repos/ox-it/wl-turnitin","forks_url":"https://api.github.com/repos/ox-it/wl-turnitin/forks","keys_url":"https://api.github.com/repos/ox-it/wl-turnitin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ox-it/wl-turnitin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ox-it/wl-turnitin/teams","hooks_url":"https://api.github.com/repos/ox-it/wl-turnitin/hooks","issue_events_url":"https://api.github.com/repos/ox-it/wl-turnitin/issues/events{/number}","events_url":"https://api.github.com/repos/ox-it/wl-turnitin/events","assignees_url":"https://api.github.com/repos/ox-it/wl-turnitin/assignees{/user}","branches_url":"https://api.github.com/repos/ox-it/wl-turnitin/branches{/branch}","tags_url":"https://api.github.com/repos/ox-it/wl-turnitin/tags","blobs_url":"https://api.github.com/repos/ox-it/wl-turnitin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ox-it/wl-turnitin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ox-it/wl-turnitin/git/refs{/sha}","trees_url":"https://api.github.com/repos/ox-it/wl-turnitin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ox-it/wl-turnitin/statuses/{sha}","languages_url":"https://api.github.com/repos/ox-it/wl-turnitin/languages","stargazers_url":"https://api.github.com/repos/ox-it/wl-turnitin/stargazers","contributors_url":"https://api.github.com/repos/ox-it/wl-turnitin/contributors","subscribers_url":"https://api.github.com/repos/ox-it/wl-turnitin/subscribers","subscription_url":"https://api.github.com/repos/ox-it/wl-turnitin/subscription","commits_url":"https://api.github.com/repos/ox-it/wl-turnitin/commits{/sha}","git_commits_url":"https://api.github.com/repos/ox-it/wl-turnitin/git/commits{/sha}","comments_url":"https://api.github.com/repos/ox-it/wl-turnitin/comments{/number}","issue_comment_url":"https://api.github.com/repos/ox-it/wl-turnitin/issues/comments{/number}","contents_url":"https://api.github.com/repos/ox-it/wl-turnitin/contents/{+path}","compare_url":"https://api.github.com/repos/ox-it/wl-turnitin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ox-it/wl-turnitin/merges","archive_url":"https://api.github.com/repos/ox-it/wl-turnitin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ox-it/wl-turnitin/downloads","issues_url":"https://api.github.com/repos/ox-it/wl-turnitin/issues{/number}","pulls_url":"https://api.github.com/repos/ox-it/wl-turnitin/pulls{/number}","milestones_url":"https://api.github.com/repos/ox-it/wl-turnitin/milestones{/number}","notifications_url":"https://api.github.com/repos/ox-it/wl-turnitin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ox-it/wl-turnitin/labels{/name}","releases_url":"https://api.github.com/repos/ox-it/wl-turnitin/releases{/id}","deployments_url":"https://api.github.com/repos/ox-it/wl-turnitin/deployments","created_at":"2012-10-03T11:46:53Z","updated_at":"2015-03-05T15:37:36Z","pushed_at":"2016-02-24T08:47:03Z","git_url":"git://github.com/ox-it/wl-turnitin.git","ssh_url":"git@github.com:ox-it/wl-turnitin.git","clone_url":"https://github.com/ox-it/wl-turnitin.git","svn_url":"https://github.com/ox-it/wl-turnitin","homepage":null,"size":896,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ox-it:master","ref":"master","sha":"8bc6b63822bc00c44875f5edbd70ca3ab3a62889","user":{"login":"ox-it","id":351950,"avatar_url":"https://avatars.githubusercontent.com/u/351950?v=3","gravatar_id":"","url":"https://api.github.com/users/ox-it","html_url":"https://github.com/ox-it","followers_url":"https://api.github.com/users/ox-it/followers","following_url":"https://api.github.com/users/ox-it/following{/other_user}","gists_url":"https://api.github.com/users/ox-it/gists{/gist_id}","starred_url":"https://api.github.com/users/ox-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ox-it/subscriptions","organizations_url":"https://api.github.com/users/ox-it/orgs","repos_url":"https://api.github.com/users/ox-it/repos","events_url":"https://api.github.com/users/ox-it/events{/privacy}","received_events_url":"https://api.github.com/users/ox-it/received_events","type":"Organization","site_admin":false},"repo":{"id":6059265,"name":"wl-turnitin","full_name":"ox-it/wl-turnitin","owner":{"login":"ox-it","id":351950,"avatar_url":"https://avatars.githubusercontent.com/u/351950?v=3","gravatar_id":"","url":"https://api.github.com/users/ox-it","html_url":"https://github.com/ox-it","followers_url":"https://api.github.com/users/ox-it/followers","following_url":"https://api.github.com/users/ox-it/following{/other_user}","gists_url":"https://api.github.com/users/ox-it/gists{/gist_id}","starred_url":"https://api.github.com/users/ox-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ox-it/subscriptions","organizations_url":"https://api.github.com/users/ox-it/orgs","repos_url":"https://api.github.com/users/ox-it/repos","events_url":"https://api.github.com/users/ox-it/events{/privacy}","received_events_url":"https://api.github.com/users/ox-it/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ox-it/wl-turnitin","description":null,"fork":false,"url":"https://api.github.com/repos/ox-it/wl-turnitin","forks_url":"https://api.github.com/repos/ox-it/wl-turnitin/forks","keys_url":"https://api.github.com/repos/ox-it/wl-turnitin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ox-it/wl-turnitin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ox-it/wl-turnitin/teams","hooks_url":"https://api.github.com/repos/ox-it/wl-turnitin/hooks","issue_events_url":"https://api.github.com/repos/ox-it/wl-turnitin/issues/events{/number}","events_url":"https://api.github.com/repos/ox-it/wl-turnitin/events","assignees_url":"https://api.github.com/repos/ox-it/wl-turnitin/assignees{/user}","branches_url":"https://api.github.com/repos/ox-it/wl-turnitin/branches{/branch}","tags_url":"https://api.github.com/repos/ox-it/wl-turnitin/tags","blobs_url":"https://api.github.com/repos/ox-it/wl-turnitin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ox-it/wl-turnitin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ox-it/wl-turnitin/git/refs{/sha}","trees_url":"https://api.github.com/repos/ox-it/wl-turnitin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ox-it/wl-turnitin/statuses/{sha}","languages_url":"https://api.github.com/repos/ox-it/wl-turnitin/languages","stargazers_url":"https://api.github.com/repos/ox-it/wl-turnitin/stargazers","contributors_url":"https://api.github.com/repos/ox-it/wl-turnitin/contributors","subscribers_url":"https://api.github.com/repos/ox-it/wl-turnitin/subscribers","subscription_url":"https://api.github.com/repos/ox-it/wl-turnitin/subscription","commits_url":"https://api.github.com/repos/ox-it/wl-turnitin/commits{/sha}","git_commits_url":"https://api.github.com/repos/ox-it/wl-turnitin/git/commits{/sha}","comments_url":"https://api.github.com/repos/ox-it/wl-turnitin/comments{/number}","issue_comment_url":"https://api.github.com/repos/ox-it/wl-turnitin/issues/comments{/number}","contents_url":"https://api.github.com/repos/ox-it/wl-turnitin/contents/{+path}","compare_url":"https://api.github.com/repos/ox-it/wl-turnitin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ox-it/wl-turnitin/merges","archive_url":"https://api.github.com/repos/ox-it/wl-turnitin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ox-it/wl-turnitin/downloads","issues_url":"https://api.github.com/repos/ox-it/wl-turnitin/issues{/number}","pulls_url":"https://api.github.com/repos/ox-it/wl-turnitin/pulls{/number}","milestones_url":"https://api.github.com/repos/ox-it/wl-turnitin/milestones{/number}","notifications_url":"https://api.github.com/repos/ox-it/wl-turnitin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ox-it/wl-turnitin/labels{/name}","releases_url":"https://api.github.com/repos/ox-it/wl-turnitin/releases{/id}","deployments_url":"https://api.github.com/repos/ox-it/wl-turnitin/deployments","created_at":"2012-10-03T11:46:53Z","updated_at":"2015-03-05T15:37:36Z","pushed_at":"2016-02-24T08:47:03Z","git_url":"git://github.com/ox-it/wl-turnitin.git","ssh_url":"git@github.com:ox-it/wl-turnitin.git","clone_url":"https://github.com/ox-it/wl-turnitin.git","svn_url":"https://github.com/ox-it/wl-turnitin","homepage":null,"size":896,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ox-it/wl-turnitin/pulls/12"},"html":{"href":"https://github.com/ox-it/wl-turnitin/pull/12"},"issue":{"href":"https://api.github.com/repos/ox-it/wl-turnitin/issues/12"},"comments":{"href":"https://api.github.com/repos/ox-it/wl-turnitin/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/ox-it/wl-turnitin/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/ox-it/wl-turnitin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ox-it/wl-turnitin/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/ox-it/wl-turnitin/statuses/f5e6c220acc304e1520cb9b96afa4356bae1dbdb"}}}}