{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/carbon-appmgt/pulls/comments/40631926","id":40631926,"diff_hunk":"@@ -4342,28 +4339,26 @@ public void addURLTemplates(int apiId, WebApp api, Connection connection) throws\n \t\tPreparedStatement prepStmt = null;\n \t\tPreparedStatement statementToAddPolicyMappings = null;\n \n-\t\tString query =\n-\t\t\t\t\"INSERT INTO APM_APP_URL_MAPPING (APP_ID,HTTP_METHOD,URL_PATTERN,POLICY_GRP_ID) VALUES (?,?,?,?)\";\n-\n-\t\tif (log.isDebugEnabled()) {\n-\t\t\tlog.debug(\"Inserting Application's URL Mappings and Entitlement policy partial mappings\");\n-\t\t}\n+        String query = \"INSERT INTO APM_APP_URL_MAPPING (APP_ID, HTTP_METHOD, URL_PATTERN, POLICY_GRP_ID) \" +\n+                \"VALUES (?,?,?,?)\";\n \n+        if (log.isDebugEnabled()) {\n+            log.debug(\"Inserting Application's URL Mappings and Entitlement policy partial mappings against AppId -\"\n+                    + apiId);\n+        }\n \n \t\ttry {\n \t\t\tprepStmt = connection.prepareStatement(query);\n \t\t\tIterator<URITemplate> uriTemplateIterator = api.getUriTemplates().iterator();\n-\t\t\tURITemplate uriTemplate;\n-\t\t\t//JSONArray policyPartialIdList = (JSONArray) JSONValue.parse(api.getPolicyPartials());\n+\n \t\t\twhile (uriTemplateIterator.hasNext()) {\n-\t\t\t\turiTemplate = uriTemplateIterator.next();\n+                URITemplate uriTemplate = uriTemplateIterator.next();","path":"components/appmgt/org.wso2.carbon.appmgt.impl/src/main/java/org/wso2/carbon/appmgt/impl/dao/AppMDAO.java","position":189,"original_position":189,"commit_id":"2fc0a22574f61b8f40991514908f728cbaeb1c71","original_commit_id":"2fc0a22574f61b8f40991514908f728cbaeb1c71","user":{"login":"rushmin","id":1607954,"avatar_url":"https://avatars.githubusercontent.com/u/1607954?v=3","gravatar_id":"","url":"https://api.github.com/users/rushmin","html_url":"https://github.com/rushmin","followers_url":"https://api.github.com/users/rushmin/followers","following_url":"https://api.github.com/users/rushmin/following{/other_user}","gists_url":"https://api.github.com/users/rushmin/gists{/gist_id}","starred_url":"https://api.github.com/users/rushmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rushmin/subscriptions","organizations_url":"https://api.github.com/users/rushmin/orgs","repos_url":"https://api.github.com/users/rushmin/repos","events_url":"https://api.github.com/users/rushmin/events{/privacy}","received_events_url":"https://api.github.com/users/rushmin/received_events","type":"User","site_admin":false},"body":"Formatting issue.","created_at":"2015-09-29T03:33:09Z","updated_at":"2015-09-29T03:33:09Z","html_url":"https://github.com/wso2/carbon-appmgt/pull/76#discussion_r40631926","pull_request_url":"https://api.github.com/repos/wso2/carbon-appmgt/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-appmgt/pulls/comments/40631926"},"html":{"href":"https://github.com/wso2/carbon-appmgt/pull/76#discussion_r40631926"},"pull_request":{"href":"https://api.github.com/repos/wso2/carbon-appmgt/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/carbon-appmgt/pulls/76","id":37900559,"html_url":"https://github.com/wso2/carbon-appmgt/pull/76","diff_url":"https://github.com/wso2/carbon-appmgt/pull/76.diff","patch_url":"https://github.com/wso2/carbon-appmgt/pull/76.patch","issue_url":"https://api.github.com/repos/wso2/carbon-appmgt/issues/76","number":76,"state":"closed","locked":false,"title":"Changes after review","user":{"login":"lahiru823","id":9651862,"avatar_url":"https://avatars.githubusercontent.com/u/9651862?v=3","gravatar_id":"","url":"https://api.github.com/users/lahiru823","html_url":"https://github.com/lahiru823","followers_url":"https://api.github.com/users/lahiru823/followers","following_url":"https://api.github.com/users/lahiru823/following{/other_user}","gists_url":"https://api.github.com/users/lahiru823/gists{/gist_id}","starred_url":"https://api.github.com/users/lahiru823/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lahiru823/subscriptions","organizations_url":"https://api.github.com/users/lahiru823/orgs","repos_url":"https://api.github.com/users/lahiru823/repos","events_url":"https://api.github.com/users/lahiru823/events{/privacy}","received_events_url":"https://api.github.com/users/lahiru823/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-17T13:32:25Z","updated_at":"2015-09-29T03:33:09Z","closed_at":"2015-06-18T06:21:34Z","merged_at":"2015-06-18T06:21:34Z","merge_commit_sha":"02cf9210c9cac31a30a4fb2c237c4d3bfa08d65a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/carbon-appmgt/pulls/76/commits","review_comments_url":"https://api.github.com/repos/wso2/carbon-appmgt/pulls/76/comments","review_comment_url":"https://api.github.com/repos/wso2/carbon-appmgt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/carbon-appmgt/issues/76/comments","statuses_url":"https://api.github.com/repos/wso2/carbon-appmgt/statuses/2fc0a22574f61b8f40991514908f728cbaeb1c71","head":{"label":"lahiru823:master","ref":"master","sha":"2fc0a22574f61b8f40991514908f728cbaeb1c71","user":{"login":"lahiru823","id":9651862,"avatar_url":"https://avatars.githubusercontent.com/u/9651862?v=3","gravatar_id":"","url":"https://api.github.com/users/lahiru823","html_url":"https://github.com/lahiru823","followers_url":"https://api.github.com/users/lahiru823/followers","following_url":"https://api.github.com/users/lahiru823/following{/other_user}","gists_url":"https://api.github.com/users/lahiru823/gists{/gist_id}","starred_url":"https://api.github.com/users/lahiru823/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lahiru823/subscriptions","organizations_url":"https://api.github.com/users/lahiru823/orgs","repos_url":"https://api.github.com/users/lahiru823/repos","events_url":"https://api.github.com/users/lahiru823/events{/privacy}","received_events_url":"https://api.github.com/users/lahiru823/received_events","type":"User","site_admin":false},"repo":{"id":31067360,"name":"carbon-appmgt","full_name":"lahiru823/carbon-appmgt","owner":{"login":"lahiru823","id":9651862,"avatar_url":"https://avatars.githubusercontent.com/u/9651862?v=3","gravatar_id":"","url":"https://api.github.com/users/lahiru823","html_url":"https://github.com/lahiru823","followers_url":"https://api.github.com/users/lahiru823/followers","following_url":"https://api.github.com/users/lahiru823/following{/other_user}","gists_url":"https://api.github.com/users/lahiru823/gists{/gist_id}","starred_url":"https://api.github.com/users/lahiru823/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lahiru823/subscriptions","organizations_url":"https://api.github.com/users/lahiru823/orgs","repos_url":"https://api.github.com/users/lahiru823/repos","events_url":"https://api.github.com/users/lahiru823/events{/privacy}","received_events_url":"https://api.github.com/users/lahiru823/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lahiru823/carbon-appmgt","description":"","fork":true,"url":"https://api.github.com/repos/lahiru823/carbon-appmgt","forks_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/forks","keys_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/teams","hooks_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/hooks","issue_events_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/issues/events{/number}","events_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/events","assignees_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/assignees{/user}","branches_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/branches{/branch}","tags_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/tags","blobs_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/git/refs{/sha}","trees_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/statuses/{sha}","languages_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/languages","stargazers_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/stargazers","contributors_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/contributors","subscribers_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/subscribers","subscription_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/subscription","commits_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/commits{/sha}","git_commits_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/git/commits{/sha}","comments_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/comments{/number}","issue_comment_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/issues/comments{/number}","contents_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/contents/{+path}","compare_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/merges","archive_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/downloads","issues_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/issues{/number}","pulls_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/pulls{/number}","milestones_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/milestones{/number}","notifications_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/labels{/name}","releases_url":"https://api.github.com/repos/lahiru823/carbon-appmgt/releases{/id}","created_at":"2015-02-20T14:05:39Z","updated_at":"2015-06-08T06:01:02Z","pushed_at":"2015-07-28T12:05:03Z","git_url":"git://github.com/lahiru823/carbon-appmgt.git","ssh_url":"git@github.com:lahiru823/carbon-appmgt.git","clone_url":"https://github.com/lahiru823/carbon-appmgt.git","svn_url":"https://github.com/lahiru823/carbon-appmgt","homepage":null,"size":19564,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"wso2:master","ref":"master","sha":"5ef03f38e5af107ce9553a96518678265f082bf8","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":17201753,"name":"carbon-appmgt","full_name":"wso2/carbon-appmgt","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/carbon-appmgt","description":"","fork":false,"url":"https://api.github.com/repos/wso2/carbon-appmgt","forks_url":"https://api.github.com/repos/wso2/carbon-appmgt/forks","keys_url":"https://api.github.com/repos/wso2/carbon-appmgt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/carbon-appmgt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/carbon-appmgt/teams","hooks_url":"https://api.github.com/repos/wso2/carbon-appmgt/hooks","issue_events_url":"https://api.github.com/repos/wso2/carbon-appmgt/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/carbon-appmgt/events","assignees_url":"https://api.github.com/repos/wso2/carbon-appmgt/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/carbon-appmgt/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/carbon-appmgt/tags","blobs_url":"https://api.github.com/repos/wso2/carbon-appmgt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/carbon-appmgt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/carbon-appmgt/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/carbon-appmgt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/carbon-appmgt/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/carbon-appmgt/languages","stargazers_url":"https://api.github.com/repos/wso2/carbon-appmgt/stargazers","contributors_url":"https://api.github.com/repos/wso2/carbon-appmgt/contributors","subscribers_url":"https://api.github.com/repos/wso2/carbon-appmgt/subscribers","subscription_url":"https://api.github.com/repos/wso2/carbon-appmgt/subscription","commits_url":"https://api.github.com/repos/wso2/carbon-appmgt/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/carbon-appmgt/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/carbon-appmgt/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/carbon-appmgt/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/carbon-appmgt/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/carbon-appmgt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/carbon-appmgt/merges","archive_url":"https://api.github.com/repos/wso2/carbon-appmgt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/carbon-appmgt/downloads","issues_url":"https://api.github.com/repos/wso2/carbon-appmgt/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/carbon-appmgt/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/carbon-appmgt/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/carbon-appmgt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/carbon-appmgt/labels{/name}","releases_url":"https://api.github.com/repos/wso2/carbon-appmgt/releases{/id}","created_at":"2014-02-26T06:47:05Z","updated_at":"2015-08-04T00:53:18Z","pushed_at":"2015-09-25T13:11:55Z","git_url":"git://github.com/wso2/carbon-appmgt.git","ssh_url":"git@github.com:wso2/carbon-appmgt.git","clone_url":"https://github.com/wso2/carbon-appmgt.git","svn_url":"https://github.com/wso2/carbon-appmgt","homepage":null,"size":29490,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":2,"forks":18,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-appmgt/pulls/76"},"html":{"href":"https://github.com/wso2/carbon-appmgt/pull/76"},"issue":{"href":"https://api.github.com/repos/wso2/carbon-appmgt/issues/76"},"comments":{"href":"https://api.github.com/repos/wso2/carbon-appmgt/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/carbon-appmgt/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/carbon-appmgt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/carbon-appmgt/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/carbon-appmgt/statuses/2fc0a22574f61b8f40991514908f728cbaeb1c71"}}}}