{"action":"created","comment":{"url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls/comments/235863910","pull_request_review_id":177829378,"id":235863910,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTg2MzkxMA==","diff_hunk":"@@ -52,6 +52,27 @@\n         Unirest.post(contentSearchURL).headers(getUpdatedHeaders(headers)).body(body);\n     Future<HttpResponse<JsonNode>> response = RestUtil.executeAsync(request);\n \n+    return commonResponseMap(response);\n+  }\n+\n+  public static Future<Map<String, Object>> searchContent(\n+      String body, String queryString, Map<String, String> headers) throws Exception {\n+    if (StringUtils.isNotBlank(queryString)) {\n+      Unirest.clearDefaultHeaders();\n+      BaseRequest request =\n+          Unirest.post(contentSearchURL + queryString)\n+              .headers(getUpdatedHeaders(headers))\n+              .body(body);\n+      Future<HttpResponse<JsonNode>> response = RestUtil.executeAsync(request);\n+\n+      return commonResponseMap(response);\n+    } else {\n+      return searchContent(body, headers);\n+    }\n+  }\n+\n+  private static Future<Map<String, Object>> commonResponseMap(\n+      Future<HttpResponse<JsonNode>> response) throws Exception {","path":"actors/common/src/main/java/org/sunbird/learner/util/ContentSearchUtil.java","position":24,"original_position":24,"commit_id":"f2270fe6642e001eac2caac812a51487d84ed99e","original_commit_id":"f2270fe6642e001eac2caac812a51487d84ed99e","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [A method/constructor shouldnt explicitly throw java.lang.Exception](https://app.codacy.com/app/project-sunbird/sunbird-lms-mw/pullRequest?prid=2612526)","created_at":"2018-11-23T08:01:49Z","updated_at":"2018-11-23T08:01:50Z","html_url":"https://github.com/project-sunbird/sunbird-lms-mw/pull/261#discussion_r235863910","pull_request_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls/261","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls/comments/235863910"},"html":{"href":"https://github.com/project-sunbird/sunbird-lms-mw/pull/261#discussion_r235863910"},"pull_request":{"href":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls/261"}}},"pull_request":{"url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls/261","id":233121906,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMTIxOTA2","html_url":"https://github.com/project-sunbird/sunbird-lms-mw/pull/261","diff_url":"https://github.com/project-sunbird/sunbird-lms-mw/pull/261.diff","patch_url":"https://github.com/project-sunbird/sunbird-lms-mw/pull/261.patch","issue_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/issues/261","number":261,"state":"open","locked":false,"title":"Issue #SB-9147 feat: Page Assemble and ContentUtil change","user":{"login":"sudhirgiri2911","id":25292199,"node_id":"MDQ6VXNlcjI1MjkyMTk5","avatar_url":"https://avatars3.githubusercontent.com/u/25292199?v=4","gravatar_id":"","url":"https://api.github.com/users/sudhirgiri2911","html_url":"https://github.com/sudhirgiri2911","followers_url":"https://api.github.com/users/sudhirgiri2911/followers","following_url":"https://api.github.com/users/sudhirgiri2911/following{/other_user}","gists_url":"https://api.github.com/users/sudhirgiri2911/gists{/gist_id}","starred_url":"https://api.github.com/users/sudhirgiri2911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudhirgiri2911/subscriptions","organizations_url":"https://api.github.com/users/sudhirgiri2911/orgs","repos_url":"https://api.github.com/users/sudhirgiri2911/repos","events_url":"https://api.github.com/users/sudhirgiri2911/events{/privacy}","received_events_url":"https://api.github.com/users/sudhirgiri2911/received_events","type":"User","site_admin":false},"body":"Page Management Actor and Content Util","created_at":"2018-11-23T07:25:45Z","updated_at":"2018-11-23T08:01:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e89352dcb8b35e5e1e7de2275f209a5a7d9b625","assignee":{"login":"bvinayakumar","id":36028332,"node_id":"MDQ6VXNlcjM2MDI4MzMy","avatar_url":"https://avatars3.githubusercontent.com/u/36028332?v=4","gravatar_id":"","url":"https://api.github.com/users/bvinayakumar","html_url":"https://github.com/bvinayakumar","followers_url":"https://api.github.com/users/bvinayakumar/followers","following_url":"https://api.github.com/users/bvinayakumar/following{/other_user}","gists_url":"https://api.github.com/users/bvinayakumar/gists{/gist_id}","starred_url":"https://api.github.com/users/bvinayakumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvinayakumar/subscriptions","organizations_url":"https://api.github.com/users/bvinayakumar/orgs","repos_url":"https://api.github.com/users/bvinayakumar/repos","events_url":"https://api.github.com/users/bvinayakumar/events{/privacy}","received_events_url":"https://api.github.com/users/bvinayakumar/received_events","type":"User","site_admin":false},"assignees":[{"login":"bvinayakumar","id":36028332,"node_id":"MDQ6VXNlcjM2MDI4MzMy","avatar_url":"https://avatars3.githubusercontent.com/u/36028332?v=4","gravatar_id":"","url":"https://api.github.com/users/bvinayakumar","html_url":"https://github.com/bvinayakumar","followers_url":"https://api.github.com/users/bvinayakumar/followers","following_url":"https://api.github.com/users/bvinayakumar/following{/other_user}","gists_url":"https://api.github.com/users/bvinayakumar/gists{/gist_id}","starred_url":"https://api.github.com/users/bvinayakumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvinayakumar/subscriptions","organizations_url":"https://api.github.com/users/bvinayakumar/orgs","repos_url":"https://api.github.com/users/bvinayakumar/repos","events_url":"https://api.github.com/users/bvinayakumar/events{/privacy}","received_events_url":"https://api.github.com/users/bvinayakumar/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls/261/commits","review_comments_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls/261/comments","review_comment_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/issues/261/comments","statuses_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/statuses/f2270fe6642e001eac2caac812a51487d84ed99e","head":{"label":"project-sunbird:Jira8792","ref":"Jira8792","sha":"f2270fe6642e001eac2caac812a51487d84ed99e","user":{"login":"project-sunbird","id":26705730,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzA1NzMw","avatar_url":"https://avatars1.githubusercontent.com/u/26705730?v=4","gravatar_id":"","url":"https://api.github.com/users/project-sunbird","html_url":"https://github.com/project-sunbird","followers_url":"https://api.github.com/users/project-sunbird/followers","following_url":"https://api.github.com/users/project-sunbird/following{/other_user}","gists_url":"https://api.github.com/users/project-sunbird/gists{/gist_id}","starred_url":"https://api.github.com/users/project-sunbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/project-sunbird/subscriptions","organizations_url":"https://api.github.com/users/project-sunbird/orgs","repos_url":"https://api.github.com/users/project-sunbird/repos","events_url":"https://api.github.com/users/project-sunbird/events{/privacy}","received_events_url":"https://api.github.com/users/project-sunbird/received_events","type":"Organization","site_admin":false},"repo":{"id":96122408,"node_id":"MDEwOlJlcG9zaXRvcnk5NjEyMjQwOA==","name":"sunbird-lms-mw","full_name":"project-sunbird/sunbird-lms-mw","private":false,"owner":{"login":"project-sunbird","id":26705730,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzA1NzMw","avatar_url":"https://avatars1.githubusercontent.com/u/26705730?v=4","gravatar_id":"","url":"https://api.github.com/users/project-sunbird","html_url":"https://github.com/project-sunbird","followers_url":"https://api.github.com/users/project-sunbird/followers","following_url":"https://api.github.com/users/project-sunbird/following{/other_user}","gists_url":"https://api.github.com/users/project-sunbird/gists{/gist_id}","starred_url":"https://api.github.com/users/project-sunbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/project-sunbird/subscriptions","organizations_url":"https://api.github.com/users/project-sunbird/orgs","repos_url":"https://api.github.com/users/project-sunbird/repos","events_url":"https://api.github.com/users/project-sunbird/events{/privacy}","received_events_url":"https://api.github.com/users/project-sunbird/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/project-sunbird/sunbird-lms-mw","description":"Middleware components of Sunbird learning management system","fork":false,"url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw","forks_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/forks","keys_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/teams","hooks_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/hooks","issue_events_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/issues/events{/number}","events_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/events","assignees_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/assignees{/user}","branches_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/branches{/branch}","tags_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/tags","blobs_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/git/refs{/sha}","trees_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/statuses/{sha}","languages_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/languages","stargazers_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/stargazers","contributors_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/contributors","subscribers_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/subscribers","subscription_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/subscription","commits_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/commits{/sha}","git_commits_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/git/commits{/sha}","comments_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/comments{/number}","issue_comment_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/issues/comments{/number}","contents_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/contents/{+path}","compare_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/merges","archive_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/downloads","issues_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/issues{/number}","pulls_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls{/number}","milestones_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/milestones{/number}","notifications_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/labels{/name}","releases_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/releases{/id}","deployments_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/deployments","created_at":"2017-07-03T14:57:51Z","updated_at":"2018-10-16T09:00:55Z","pushed_at":"2018-11-23T07:54:01Z","git_url":"git://github.com/project-sunbird/sunbird-lms-mw.git","ssh_url":"git@github.com:project-sunbird/sunbird-lms-mw.git","clone_url":"https://github.com/project-sunbird/sunbird-lms-mw.git","svn_url":"https://github.com/project-sunbird/sunbird-lms-mw","homepage":null,"size":11946,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":11,"open_issues":15,"watchers":4,"default_branch":"master"}},"base":{"label":"project-sunbird:release-1.12","ref":"release-1.12","sha":"e008e9ecdc686a20938d4ebae4f4de9beb2d2acc","user":{"login":"project-sunbird","id":26705730,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzA1NzMw","avatar_url":"https://avatars1.githubusercontent.com/u/26705730?v=4","gravatar_id":"","url":"https://api.github.com/users/project-sunbird","html_url":"https://github.com/project-sunbird","followers_url":"https://api.github.com/users/project-sunbird/followers","following_url":"https://api.github.com/users/project-sunbird/following{/other_user}","gists_url":"https://api.github.com/users/project-sunbird/gists{/gist_id}","starred_url":"https://api.github.com/users/project-sunbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/project-sunbird/subscriptions","organizations_url":"https://api.github.com/users/project-sunbird/orgs","repos_url":"https://api.github.com/users/project-sunbird/repos","events_url":"https://api.github.com/users/project-sunbird/events{/privacy}","received_events_url":"https://api.github.com/users/project-sunbird/received_events","type":"Organization","site_admin":false},"repo":{"id":96122408,"node_id":"MDEwOlJlcG9zaXRvcnk5NjEyMjQwOA==","name":"sunbird-lms-mw","full_name":"project-sunbird/sunbird-lms-mw","private":false,"owner":{"login":"project-sunbird","id":26705730,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzA1NzMw","avatar_url":"https://avatars1.githubusercontent.com/u/26705730?v=4","gravatar_id":"","url":"https://api.github.com/users/project-sunbird","html_url":"https://github.com/project-sunbird","followers_url":"https://api.github.com/users/project-sunbird/followers","following_url":"https://api.github.com/users/project-sunbird/following{/other_user}","gists_url":"https://api.github.com/users/project-sunbird/gists{/gist_id}","starred_url":"https://api.github.com/users/project-sunbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/project-sunbird/subscriptions","organizations_url":"https://api.github.com/users/project-sunbird/orgs","repos_url":"https://api.github.com/users/project-sunbird/repos","events_url":"https://api.github.com/users/project-sunbird/events{/privacy}","received_events_url":"https://api.github.com/users/project-sunbird/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/project-sunbird/sunbird-lms-mw","description":"Middleware components of Sunbird learning management system","fork":false,"url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw","forks_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/forks","keys_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/teams","hooks_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/hooks","issue_events_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/issues/events{/number}","events_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/events","assignees_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/assignees{/user}","branches_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/branches{/branch}","tags_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/tags","blobs_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/git/refs{/sha}","trees_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/statuses/{sha}","languages_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/languages","stargazers_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/stargazers","contributors_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/contributors","subscribers_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/subscribers","subscription_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/subscription","commits_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/commits{/sha}","git_commits_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/git/commits{/sha}","comments_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/comments{/number}","issue_comment_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/issues/comments{/number}","contents_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/contents/{+path}","compare_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/merges","archive_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/downloads","issues_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/issues{/number}","pulls_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls{/number}","milestones_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/milestones{/number}","notifications_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/labels{/name}","releases_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/releases{/id}","deployments_url":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/deployments","created_at":"2017-07-03T14:57:51Z","updated_at":"2018-10-16T09:00:55Z","pushed_at":"2018-11-23T07:54:01Z","git_url":"git://github.com/project-sunbird/sunbird-lms-mw.git","ssh_url":"git@github.com:project-sunbird/sunbird-lms-mw.git","clone_url":"https://github.com/project-sunbird/sunbird-lms-mw.git","svn_url":"https://github.com/project-sunbird/sunbird-lms-mw","homepage":null,"size":11946,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":11,"open_issues":15,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls/261"},"html":{"href":"https://github.com/project-sunbird/sunbird-lms-mw/pull/261"},"issue":{"href":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/issues/261"},"comments":{"href":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/issues/261/comments"},"review_comments":{"href":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls/261/comments"},"review_comment":{"href":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/pulls/261/commits"},"statuses":{"href":"https://api.github.com/repos/project-sunbird/sunbird-lms-mw/statuses/f2270fe6642e001eac2caac812a51487d84ed99e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"codacy-bot"}}