{"action":"created","comment":{"url":"https://api.github.com/repos/WSO2Telco/component-dep/pulls/comments/173904961","pull_request_review_id":103170995,"id":173904961,"diff_hunk":"@@ -3,142 +3,308 @@\n \n import com.wso2telco.core.dbutils.DbUtils;\n import com.wso2telco.core.dbutils.util.DataSourceNames;\n+import com.wso2telco.workflow.model.APISubscriptionDTO;\n import com.wso2telco.workflow.model.APISubscriptionStatusDTO;\n import com.wso2telco.workflow.model.ApplicationStatusDTO;\n import com.wso2telco.workflow.utils.WorkflowServiceException;\n \n import java.sql.Connection;\n import java.sql.PreparedStatement;\n import java.sql.ResultSet;\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+import org.apache.commons.logging.Log;\n+import org.apache.commons.logging.LogFactory;\n \n \n /**\n  * DAO layer for handling all db queries related to WorkflowHistoryService\n  */\n public class WorkflowHistoryDAO {\n \n-    //Constants of table column names\n-    private static final String OPERATOR_NAME = \"operator_name\";\n-    private static final String OPERATOR_APPROVAL = \"operator_approval\";\n-    private static final String API_NAME = \"api_name\";\n-\n-    public ApplicationStatusDTO getApplicationStatus(int appID) throws WorkflowServiceException {\n-        Connection conn = null;\n-        PreparedStatement ps = null;\n-        ResultSet rs = null;\n-        ApplicationStatusDTO app = new ApplicationStatusDTO();\n-\n-        try {\n-            conn = DbUtils.getDbConnection(DataSourceNames.WSO2TELCO_DEP_DB);\n-\n-            if (conn == null) {\n-                throw new WorkflowServiceException(\"Unable to get DB Connection!\");\n-            }\n-\n-            String depDB = DbUtils.getDbNames().get(DataSourceNames.WSO2TELCO_DEP_DB);\n-            String apimgtDB = DbUtils.getDbNames().get(DataSourceNames.WSO2AM_DB);\n-\n-            String sql = \"SELECT app.NAME AS 'app_name',\" +\n-                    \"       o.operatorname AS 'operator_name',\" +\n-                    \"       oa.isactive AS 'operator_approval',\" +\n-                    \"       app.application_status AS 'admin_approval' \" +\n-                    \"FROM \" + depDB + \".operators o,\" +\n-                    \"     \" + depDB + \".operatorapps oa,\" +\n-                    \"     \" + apimgtDB + \".am_application app \" +\n-                    \"WHERE oa.applicationid = app.application_id\" +\n-                    \"  AND oa.applicationid = ?\" +\n-                    \"  AND oa.operatorid = o.id\";\n-\n-            ps = conn.prepareStatement(sql);\n-            ps.setInt(1, appID);\n-            rs = ps.executeQuery();\n-\n-            while (rs.next()) {\n-                if (app.getName() == null) {\n-                    app.setName(rs.getString(\"app_name\"));\n-                }\n-                if (app.getStatus() == null) {\n-                    app.setStatus(rs.getString(\"admin_approval\"));\n-                }\n-\n-                app.addOperator(rs.getString(OPERATOR_NAME), rs.getString(OPERATOR_APPROVAL));\n-            }\n-\n-        } catch (Exception e) {\n-            throw new WorkflowServiceException(e);\n-        } finally {\n-            DbUtils.closeAllConnections(ps, conn, rs);\n-        }\n-\n-        return app;\n-    }\n-\n-    public ApplicationStatusDTO getSubscribedAPIs(int appID, ApplicationStatusDTO app) throws WorkflowServiceException {\n-        Connection conn = null;\n-        PreparedStatement ps = null;\n-        ResultSet rs = null;\n-        APISubscriptionStatusDTO subscription = null;\n-        String lastUsedAPI = \"\";\n-\n-        try {\n-            conn = DbUtils.getDbConnection(DataSourceNames.WSO2TELCO_DEP_DB);\n-\n-            if (conn == null) {\n-                throw new WorkflowServiceException(\"Unable to get DB Connection!\");\n-            }\n-\n-            String depDB = DbUtils.getDbNames().get(DataSourceNames.WSO2TELCO_DEP_DB);\n-            String apimgtDB = DbUtils.getDbNames().get(DataSourceNames.WSO2AM_DB);\n-\n-            String sql = \"SELECT api.api_name, \" +\n-                    \"       api.api_version, \" +\n-                    \"       sub.tier_id, \" +\n-                    \"       sub.sub_status AS 'admin_approval', \" +\n-                    \"       o.operatorname AS 'operator_name', \" +\n-                    \"       epa.isactive   AS 'operator_approval', \" +\n-                    \"       sub.updated_time \" +\n-                    \"FROM   \" + depDB + \".endpointapps epa, \" +\n-                    \" \" + depDB + \".operatorendpoints oep, \" +\n-                    \" \" + depDB + \".operators o, \" +\n-                    \" \" + apimgtDB + \".am_api api, \" +\n-                    \" \" + apimgtDB + \".am_subscription sub \" +\n-                    \"WHERE  epa.applicationid = ? \" +\n-                    \"       AND epa.endpointid = oep.id \" +\n-                    \"       AND o.id = oep.operatorid \" +\n-                    \"       AND oep.api = api.api_name \" +\n-                    \"       AND sub.api_id = api.api_id\" +\n-                    \"       AND sub.application_id = epa.applicationid \" +\n-                    \"ORDER BY api_name\";\n-\n-            ps = conn.prepareStatement(sql);\n-            ps.setInt(1, appID);\n-            rs = ps.executeQuery();\n-\n-            while (rs.next()) {\n-                if (!lastUsedAPI.equals(rs.getString(API_NAME))) {\n-                    subscription = new APISubscriptionStatusDTO();\n-                    subscription.setName(rs.getString(API_NAME));\n-                    subscription.setVersion(rs.getString(\"api_version\"));\n-                    subscription.setTier(rs.getString(\"tier_id\"));\n-                    subscription.setAdminApprovalStatus(rs.getString(\"admin_approval\"));\n-                    subscription.addOperator(rs.getString(OPERATOR_NAME), rs.getString(OPERATOR_APPROVAL));\n-                    subscription.setLastUpdated(rs.getDate(\"updated_time\").toString() + \" \" + rs.getTime(\"updated_time\"));\n-\n-                    lastUsedAPI = rs.getString(API_NAME);\n-                    app.addSubscription(subscription);\n-\n-                } else {\n-                    if (subscription != null) {\n-                        subscription.addOperator(rs.getString(OPERATOR_NAME), rs.getString(OPERATOR_APPROVAL));\n-                    }\n-                }\n-            }\n-\n-        } catch (Exception e) {\n-            throw new WorkflowServiceException(e);\n-        } finally {\n-            DbUtils.closeAllConnections(ps, conn, rs);\n-        }\n-        return app;\n-    }\n+\tprivate static final Log log = LogFactory.getLog(WorkflowHistoryDAO.class);\n+\t//Constants of table column names\n+\tprivate static final String OPERATOR_NAME = \"operator_name\";\n+\tprivate static final String OPERATOR_APPROVAL = \"operator_approval\";\n+\tprivate static final String API_NAME = \"api_name\";\n+\tprivate static final String API_ID = \"api_id\";\n+\n+\tpublic ApplicationStatusDTO getApplicationStatus(int appID) throws WorkflowServiceException {\n+\t\tConnection conn = null;\n+\t\tPreparedStatement ps = null;\n+\t\tResultSet rs = null;\n+\t\tApplicationStatusDTO app = new ApplicationStatusDTO();\n+\n+\t\ttry {\n+\t\t\tconn = DbUtils.getDbConnection(DataSourceNames.WSO2TELCO_DEP_DB);\n+\n+\t\t\tif (conn == null) {\n+\t\t\t\tthrow new WorkflowServiceException(\"Unable to get DB Connection!\");\n+\t\t\t}\n+\n+\t\t\tString depDB = DbUtils.getDbNames().get(DataSourceNames.WSO2TELCO_DEP_DB);\n+\t\t\tString apimgtDB = DbUtils.getDbNames().get(DataSourceNames.WSO2AM_DB);\n+\n+\t\t\tString sql = \"SELECT app.NAME AS 'app_name',\" +\n+\t\t\t\t\t\"       o.operatorname AS 'operator_name',\" +\n+\t\t\t\t\t\"       oa.isactive AS 'operator_approval',\" +\n+\t\t\t\t\t\"       app.application_status AS 'admin_approval' \" +\n+\t\t\t\t\t\"FROM \" + depDB + \".operators o,\" +\n+\t\t\t\t\t\"     \" + depDB + \".operatorapps oa,\" +\n+\t\t\t\t\t\"     \" + apimgtDB + \".am_application app \" +\n+\t\t\t\t\t\"WHERE oa.applicationid = app.application_id\" +\n+\t\t\t\t\t\"  AND oa.applicationid = ?\" +\n+\t\t\t\t\t\"  AND oa.operatorid = o.id\";\n+\n+\t\t\tps = conn.prepareStatement(sql);\n+\t\t\tps.setInt(1, appID);\n+\t\t\trs = ps.executeQuery();\n+\n+\t\t\twhile (rs.next()) {\n+\t\t\t\tif (app.getName() == null) {\n+\t\t\t\t\tapp.setName(rs.getString(\"app_name\"));\n+\t\t\t\t}\n+\t\t\t\tif (app.getStatus() == null) {\n+\t\t\t\t\tapp.setStatus(rs.getString(\"admin_approval\"));\n+\t\t\t\t}\n+\n+\t\t\t\tapp.addOperator(rs.getString(OPERATOR_NAME), rs.getString(OPERATOR_APPROVAL));\n+\t\t\t}\n+\n+\t\t} catch (Exception e) {\n+\t\t\tthrow new WorkflowServiceException(e);\n+\t\t} finally {\n+\t\t\tDbUtils.closeAllConnections(ps, conn, rs);\n+\t\t}\n+\n+\t\treturn app;\n+\t}\n+\n+\n+\tpublic ApplicationStatusDTO getSubscribedAPIs(int appID, ApplicationStatusDTO app) throws WorkflowServiceException {\n+\t\tConnection conn = null;\n+\t\tPreparedStatement ps = null;\n+\t\tResultSet rs = null;\n+\t\tAPISubscriptionStatusDTO subscription = null;\n+\t\tString lastUsedAPI = \"\";\n+\n+\t\ttry {\n+\t\t\tconn = DbUtils.getDbConnection(DataSourceNames.WSO2TELCO_DEP_DB);\n+\n+\t\t\tif (conn == null) {\n+\t\t\t\tthrow new WorkflowServiceException(\"Unable to get DB Connection!\");\n+\t\t\t}\n+\n+\t\t\tString depDB = DbUtils.getDbNames().get(DataSourceNames.WSO2TELCO_DEP_DB);\n+\t\t\tString apimgtDB = DbUtils.getDbNames().get(DataSourceNames.WSO2AM_DB);\n+\n+\t\t\tString sql = \"SELECT api.api_name, \" +\n+\t\t\t\t\t\"       api.api_version, \" +\n+\t\t\t\t\t\"       api.api_id, \" +\n+\t\t\t\t\t\"       sub.tier_id, \" +\n+\t\t\t\t\t\"       sub.sub_status AS 'admin_approval', \" +\n+\t\t\t\t\t\"       o.operatorname AS 'operator_name', \" +\n+\t\t\t\t\t\"       epa.isactive   AS 'operator_approval', \" +\n+\t\t\t\t\t\"       sub.updated_time \" +\n+\t\t\t\t\t\"FROM   \" + depDB + \".endpointapps epa, \" +\n+\t\t\t\t\t\" \" + depDB + \".operatorendpoints oep, \" +\n+\t\t\t\t\t\" \" + depDB + \".operators o, \" +\n+\t\t\t\t\t\" \" + apimgtDB + \".am_api api, \" +\n+\t\t\t\t\t\" \" + apimgtDB + \".am_subscription sub \" +\n+\t\t\t\t\t\"WHERE  epa.applicationid = ? \" +\n+\t\t\t\t\t\"       AND epa.endpointid = oep.id \" +\n+\t\t\t\t\t\"       AND o.id = oep.operatorid \" +\n+\t\t\t\t\t\"       AND oep.api = api.api_name \" +\n+\t\t\t\t\t\"       AND sub.api_id = api.api_id\" +\n+\t\t\t\t\t\"       AND sub.application_id = epa.applicationid \" +\n+\t\t\t\t\t\"ORDER BY api_name\";\n+\n+\t\t\tps = conn.prepareStatement(sql);\n+\t\t\tps.setInt(1, appID);\n+\t\t\trs = ps.executeQuery();\n+\n+\t\t\twhile (rs.next()) {\n+\t\t\t\tif (!lastUsedAPI.equals(rs.getString(API_NAME))) {\n+\t\t\t\t\tsubscription = new APISubscriptionStatusDTO();\n+\t\t\t\t\tsubscription.setName(rs.getString(API_NAME));\n+\t\t\t\t\tsubscription.setId(rs.getString(API_ID));\n+\t\t\t\t\tsubscription.setVersion(rs.getString(\"api_version\"));\n+\t\t\t\t\tsubscription.setTier(rs.getString(\"tier_id\"));\n+\t\t\t\t\tsubscription.setAdminApprovalStatus(rs.getString(\"admin_approval\"));\n+\t\t\t\t\tsubscription.addOperator(rs.getString(OPERATOR_NAME), rs.getString(OPERATOR_APPROVAL));\n+\t\t\t\t\tsubscription.setLastUpdated(rs.getDate(\"updated_time\").toString() + \" \" + rs.getTime(\"updated_time\"));\n+\t\t\t\t\tlastUsedAPI = rs.getString(API_NAME);\n+\t\t\t\t\tapp.addSubscription(subscription);\n+\t\t\t\t} else {\n+\t\t\t\t\tif (subscription != null) {\n+\t\t\t\t\t\tsubscription.addOperator(rs.getString(OPERATOR_NAME), rs.getString(OPERATOR_APPROVAL));\n+\t\t\t\t\t}\n+\t\t\t\t}\n+\t\t\t}\n+\n+\t\t} catch (Exception e) {\n+\t\t\tthrow new WorkflowServiceException(e);\n+\t\t} finally {\n+\t\t\tDbUtils.closeAllConnections(ps, conn, rs);\n+\t\t}\n+\t\treturn app;\n+\t}\n+\n+\tpublic List<APISubscriptionDTO> getSubscribedAPIsWithOperators(int appID,int opId,String apiid ,int start, int size) throws WorkflowServiceException {\n+\t\tConnection conn = null;\n+\t\tPreparedStatement ps = null;\n+\t\tResultSet rs = null;\n+\n+\t\tList<APISubscriptionDTO> subscriptions=new ArrayList<APISubscriptionDTO>();\n+\n+\t\ttry {\n+\t\t\tconn = DbUtils.getDbConnection(DataSourceNames.WSO2TELCO_DEP_DB);\n+\n+\t\t\tif (conn == null) {\n+\t\t\t\tthrow new WorkflowServiceException(\"Unable to get DB Connection!\");\n+\t\t\t}\n+\n+\t\t\tString depDB = DbUtils.getDbNames().get(DataSourceNames.WSO2TELCO_DEP_DB);\n+\t\t\tString apimgtDB = DbUtils.getDbNames().get(DataSourceNames.WSO2AM_DB);\n+\n+\t\t\tString sqlPredecessor =\"SELECT api.api_name, \" +\n+\t\t\t\t\t\"       api.api_version, \" +\n+\t\t\t\t\t\"       api.api_id, \" +\n+\t\t\t\t\t\"       sub.tier_id, \" +\n+\t\t\t\t\t\"       o.operatorname AS 'operator_name', \" +\n+\t\t\t\t\t\"       epa.isactive   AS 'operator_approval', \" +\n+\t\t\t\t\t\"       sub.updated_time \" +\n+\t\t\t\t\t\"FROM   \" + depDB + \".endpointapps epa, \" +\n+\t\t\t\t\t\" \" + depDB + \".operatorendpoints oep, \" +\n+\t\t\t\t\t\" \" + depDB + \".operators o, \" +\n+\t\t\t\t\t\" \" + apimgtDB + \".am_api api, \" +\n+\t\t\t\t\t\" \" + apimgtDB + \".am_subscription sub \" +\n+\t\t\t\t\t\"WHERE  epa.applicationid = ? \" +\n+\t\t\t\t\t\"       AND epa.endpointid = oep.id \" +\n+\t\t\t\t\t\"       AND o.id = oep.operatorid \" +\n+\t\t\t\t\t\"       AND oep.api = api.api_name \" +\n+\t\t\t\t\t\"       AND sub.api_id = api.api_id\" +\n+\t\t\t\t\t\"       AND sub.application_id = epa.applicationid \" +\n+\t\t\t\t\t\"       AND o.id = ? \";  \n+\n+\n+\t\t\tif(!apiid.equals(\"_ALL\")){\n+\t\t\t\tsqlPredecessor.concat(\"   AND api.api_id= ? \");\n+\t\t\t}\n+\t\t\tsqlPredecessor.concat(\"       AND oep.api = api.api_name \" +","path":"components/workflow/workflow-service/src/main/java/com/wso2telco/workflow/dao/WorkflowHistoryDAO.java","position":317,"original_position":317,"commit_id":"31f048a9a5ee0e7fad05126d5bbfba244cb415b9","original_commit_id":"31f048a9a5ee0e7fad05126d5bbfba244cb415b9","user":{"login":"TelcoGitHubBot","id":31726654,"avatar_url":"https://avatars1.githubusercontent.com/u/31726654?v=4","gravatar_id":"","url":"https://api.github.com/users/TelcoGitHubBot","html_url":"https://github.com/TelcoGitHubBot","followers_url":"https://api.github.com/users/TelcoGitHubBot/followers","following_url":"https://api.github.com/users/TelcoGitHubBot/following{/other_user}","gists_url":"https://api.github.com/users/TelcoGitHubBot/gists{/gist_id}","starred_url":"https://api.github.com/users/TelcoGitHubBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TelcoGitHubBot/subscriptions","organizations_url":"https://api.github.com/users/TelcoGitHubBot/orgs","repos_url":"https://api.github.com/users/TelcoGitHubBot/repos","events_url":"https://api.github.com/users/TelcoGitHubBot/events{/privacy}","received_events_url":"https://api.github.com/users/TelcoGitHubBot/received_events","type":"User","site_admin":false},"body":"![MAJOR](https://sonarsource.github.io/sonar-github/severity-major.png 'Severity: MAJOR') The return value of \"concat\" must be used. [![rule](https://sonarsource.github.io/sonar-github/rule.png)](http://ci.wso2telco.com:9000/coding_rules#rule_key=squid%3AS2201)\n","created_at":"2018-03-12T18:40:23Z","updated_at":"2018-03-12T18:40:23Z","html_url":"https://github.com/WSO2Telco/component-dep/pull/455#discussion_r173904961","pull_request_url":"https://api.github.com/repos/WSO2Telco/component-dep/pulls/455","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/WSO2Telco/component-dep/pulls/comments/173904961"},"html":{"href":"https://github.com/WSO2Telco/component-dep/pull/455#discussion_r173904961"},"pull_request":{"href":"https://api.github.com/repos/WSO2Telco/component-dep/pulls/455"}}},"pull_request":{"url":"https://api.github.com/repos/WSO2Telco/component-dep/pulls/455","id":170963928,"html_url":"https://github.com/WSO2Telco/component-dep/pull/455","diff_url":"https://github.com/WSO2Telco/component-dep/pull/455.diff","patch_url":"https://github.com/WSO2Telco/component-dep/pull/455.patch","issue_url":"https://api.github.com/repos/WSO2Telco/component-dep/issues/455","number":455,"state":"open","locked":false,"title":"changes related to DEPAM-377","user":{"login":"dilannm","id":22868490,"avatar_url":"https://avatars2.githubusercontent.com/u/22868490?v=4","gravatar_id":"","url":"https://api.github.com/users/dilannm","html_url":"https://github.com/dilannm","followers_url":"https://api.github.com/users/dilannm/followers","following_url":"https://api.github.com/users/dilannm/following{/other_user}","gists_url":"https://api.github.com/users/dilannm/gists{/gist_id}","starred_url":"https://api.github.com/users/dilannm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilannm/subscriptions","organizations_url":"https://api.github.com/users/dilannm/orgs","repos_url":"https://api.github.com/users/dilannm/repos","events_url":"https://api.github.com/users/dilannm/events{/privacy}","received_events_url":"https://api.github.com/users/dilannm/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-23T09:08:46Z","updated_at":"2018-03-12T18:40:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf686f04814b2de3a7f57ac3efc4ec806c540af5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/WSO2Telco/component-dep/pulls/455/commits","review_comments_url":"https://api.github.com/repos/WSO2Telco/component-dep/pulls/455/comments","review_comment_url":"https://api.github.com/repos/WSO2Telco/component-dep/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WSO2Telco/component-dep/issues/455/comments","statuses_url":"https://api.github.com/repos/WSO2Telco/component-dep/statuses/31f048a9a5ee0e7fad05126d5bbfba244cb415b9","head":{"label":"dilannm:master","ref":"master","sha":"31f048a9a5ee0e7fad05126d5bbfba244cb415b9","user":{"login":"dilannm","id":22868490,"avatar_url":"https://avatars2.githubusercontent.com/u/22868490?v=4","gravatar_id":"","url":"https://api.github.com/users/dilannm","html_url":"https://github.com/dilannm","followers_url":"https://api.github.com/users/dilannm/followers","following_url":"https://api.github.com/users/dilannm/following{/other_user}","gists_url":"https://api.github.com/users/dilannm/gists{/gist_id}","starred_url":"https://api.github.com/users/dilannm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilannm/subscriptions","organizations_url":"https://api.github.com/users/dilannm/orgs","repos_url":"https://api.github.com/users/dilannm/repos","events_url":"https://api.github.com/users/dilannm/events{/privacy}","received_events_url":"https://api.github.com/users/dilannm/received_events","type":"User","site_admin":false},"repo":{"id":122162717,"name":"component-dep","full_name":"dilannm/component-dep","owner":{"login":"dilannm","id":22868490,"avatar_url":"https://avatars2.githubusercontent.com/u/22868490?v=4","gravatar_id":"","url":"https://api.github.com/users/dilannm","html_url":"https://github.com/dilannm","followers_url":"https://api.github.com/users/dilannm/followers","following_url":"https://api.github.com/users/dilannm/following{/other_user}","gists_url":"https://api.github.com/users/dilannm/gists{/gist_id}","starred_url":"https://api.github.com/users/dilannm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilannm/subscriptions","organizations_url":"https://api.github.com/users/dilannm/orgs","repos_url":"https://api.github.com/users/dilannm/repos","events_url":"https://api.github.com/users/dilannm/events{/privacy}","received_events_url":"https://api.github.com/users/dilannm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dilannm/component-dep","description":null,"fork":true,"url":"https://api.github.com/repos/dilannm/component-dep","forks_url":"https://api.github.com/repos/dilannm/component-dep/forks","keys_url":"https://api.github.com/repos/dilannm/component-dep/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dilannm/component-dep/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dilannm/component-dep/teams","hooks_url":"https://api.github.com/repos/dilannm/component-dep/hooks","issue_events_url":"https://api.github.com/repos/dilannm/component-dep/issues/events{/number}","events_url":"https://api.github.com/repos/dilannm/component-dep/events","assignees_url":"https://api.github.com/repos/dilannm/component-dep/assignees{/user}","branches_url":"https://api.github.com/repos/dilannm/component-dep/branches{/branch}","tags_url":"https://api.github.com/repos/dilannm/component-dep/tags","blobs_url":"https://api.github.com/repos/dilannm/component-dep/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dilannm/component-dep/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dilannm/component-dep/git/refs{/sha}","trees_url":"https://api.github.com/repos/dilannm/component-dep/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dilannm/component-dep/statuses/{sha}","languages_url":"https://api.github.com/repos/dilannm/component-dep/languages","stargazers_url":"https://api.github.com/repos/dilannm/component-dep/stargazers","contributors_url":"https://api.github.com/repos/dilannm/component-dep/contributors","subscribers_url":"https://api.github.com/repos/dilannm/component-dep/subscribers","subscription_url":"https://api.github.com/repos/dilannm/component-dep/subscription","commits_url":"https://api.github.com/repos/dilannm/component-dep/commits{/sha}","git_commits_url":"https://api.github.com/repos/dilannm/component-dep/git/commits{/sha}","comments_url":"https://api.github.com/repos/dilannm/component-dep/comments{/number}","issue_comment_url":"https://api.github.com/repos/dilannm/component-dep/issues/comments{/number}","contents_url":"https://api.github.com/repos/dilannm/component-dep/contents/{+path}","compare_url":"https://api.github.com/repos/dilannm/component-dep/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dilannm/component-dep/merges","archive_url":"https://api.github.com/repos/dilannm/component-dep/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dilannm/component-dep/downloads","issues_url":"https://api.github.com/repos/dilannm/component-dep/issues{/number}","pulls_url":"https://api.github.com/repos/dilannm/component-dep/pulls{/number}","milestones_url":"https://api.github.com/repos/dilannm/component-dep/milestones{/number}","notifications_url":"https://api.github.com/repos/dilannm/component-dep/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dilannm/component-dep/labels{/name}","releases_url":"https://api.github.com/repos/dilannm/component-dep/releases{/id}","deployments_url":"https://api.github.com/repos/dilannm/component-dep/deployments","created_at":"2018-02-20T06:23:03Z","updated_at":"2018-02-20T06:23:14Z","pushed_at":"2018-03-12T16:48:58Z","git_url":"git://github.com/dilannm/component-dep.git","ssh_url":"git@github.com:dilannm/component-dep.git","clone_url":"https://github.com/dilannm/component-dep.git","svn_url":"https://github.com/dilannm/component-dep","homepage":null,"size":25376,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"WSO2Telco:master","ref":"master","sha":"b2a914f6ee657d685d860365c933209dbea5df1b","user":{"login":"WSO2Telco","id":15646154,"avatar_url":"https://avatars2.githubusercontent.com/u/15646154?v=4","gravatar_id":"","url":"https://api.github.com/users/WSO2Telco","html_url":"https://github.com/WSO2Telco","followers_url":"https://api.github.com/users/WSO2Telco/followers","following_url":"https://api.github.com/users/WSO2Telco/following{/other_user}","gists_url":"https://api.github.com/users/WSO2Telco/gists{/gist_id}","starred_url":"https://api.github.com/users/WSO2Telco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WSO2Telco/subscriptions","organizations_url":"https://api.github.com/users/WSO2Telco/orgs","repos_url":"https://api.github.com/users/WSO2Telco/repos","events_url":"https://api.github.com/users/WSO2Telco/events{/privacy}","received_events_url":"https://api.github.com/users/WSO2Telco/received_events","type":"Organization","site_admin":false},"repo":{"id":55405788,"name":"component-dep","full_name":"WSO2Telco/component-dep","owner":{"login":"WSO2Telco","id":15646154,"avatar_url":"https://avatars2.githubusercontent.com/u/15646154?v=4","gravatar_id":"","url":"https://api.github.com/users/WSO2Telco","html_url":"https://github.com/WSO2Telco","followers_url":"https://api.github.com/users/WSO2Telco/followers","following_url":"https://api.github.com/users/WSO2Telco/following{/other_user}","gists_url":"https://api.github.com/users/WSO2Telco/gists{/gist_id}","starred_url":"https://api.github.com/users/WSO2Telco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WSO2Telco/subscriptions","organizations_url":"https://api.github.com/users/WSO2Telco/orgs","repos_url":"https://api.github.com/users/WSO2Telco/repos","events_url":"https://api.github.com/users/WSO2Telco/events{/privacy}","received_events_url":"https://api.github.com/users/WSO2Telco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WSO2Telco/component-dep","description":null,"fork":false,"url":"https://api.github.com/repos/WSO2Telco/component-dep","forks_url":"https://api.github.com/repos/WSO2Telco/component-dep/forks","keys_url":"https://api.github.com/repos/WSO2Telco/component-dep/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WSO2Telco/component-dep/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WSO2Telco/component-dep/teams","hooks_url":"https://api.github.com/repos/WSO2Telco/component-dep/hooks","issue_events_url":"https://api.github.com/repos/WSO2Telco/component-dep/issues/events{/number}","events_url":"https://api.github.com/repos/WSO2Telco/component-dep/events","assignees_url":"https://api.github.com/repos/WSO2Telco/component-dep/assignees{/user}","branches_url":"https://api.github.com/repos/WSO2Telco/component-dep/branches{/branch}","tags_url":"https://api.github.com/repos/WSO2Telco/component-dep/tags","blobs_url":"https://api.github.com/repos/WSO2Telco/component-dep/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WSO2Telco/component-dep/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WSO2Telco/component-dep/git/refs{/sha}","trees_url":"https://api.github.com/repos/WSO2Telco/component-dep/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WSO2Telco/component-dep/statuses/{sha}","languages_url":"https://api.github.com/repos/WSO2Telco/component-dep/languages","stargazers_url":"https://api.github.com/repos/WSO2Telco/component-dep/stargazers","contributors_url":"https://api.github.com/repos/WSO2Telco/component-dep/contributors","subscribers_url":"https://api.github.com/repos/WSO2Telco/component-dep/subscribers","subscription_url":"https://api.github.com/repos/WSO2Telco/component-dep/subscription","commits_url":"https://api.github.com/repos/WSO2Telco/component-dep/commits{/sha}","git_commits_url":"https://api.github.com/repos/WSO2Telco/component-dep/git/commits{/sha}","comments_url":"https://api.github.com/repos/WSO2Telco/component-dep/comments{/number}","issue_comment_url":"https://api.github.com/repos/WSO2Telco/component-dep/issues/comments{/number}","contents_url":"https://api.github.com/repos/WSO2Telco/component-dep/contents/{+path}","compare_url":"https://api.github.com/repos/WSO2Telco/component-dep/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WSO2Telco/component-dep/merges","archive_url":"https://api.github.com/repos/WSO2Telco/component-dep/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WSO2Telco/component-dep/downloads","issues_url":"https://api.github.com/repos/WSO2Telco/component-dep/issues{/number}","pulls_url":"https://api.github.com/repos/WSO2Telco/component-dep/pulls{/number}","milestones_url":"https://api.github.com/repos/WSO2Telco/component-dep/milestones{/number}","notifications_url":"https://api.github.com/repos/WSO2Telco/component-dep/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WSO2Telco/component-dep/labels{/name}","releases_url":"https://api.github.com/repos/WSO2Telco/component-dep/releases{/id}","deployments_url":"https://api.github.com/repos/WSO2Telco/component-dep/deployments","created_at":"2016-04-04T11:26:05Z","updated_at":"2017-11-01T20:14:40Z","pushed_at":"2018-03-12T16:49:00Z","git_url":"git://github.com/WSO2Telco/component-dep.git","ssh_url":"git@github.com:WSO2Telco/component-dep.git","clone_url":"https://github.com/WSO2Telco/component-dep.git","svn_url":"https://github.com/WSO2Telco/component-dep","homepage":null,"size":25357,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":40,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WSO2Telco/component-dep/pulls/455"},"html":{"href":"https://github.com/WSO2Telco/component-dep/pull/455"},"issue":{"href":"https://api.github.com/repos/WSO2Telco/component-dep/issues/455"},"comments":{"href":"https://api.github.com/repos/WSO2Telco/component-dep/issues/455/comments"},"review_comments":{"href":"https://api.github.com/repos/WSO2Telco/component-dep/pulls/455/comments"},"review_comment":{"href":"https://api.github.com/repos/WSO2Telco/component-dep/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WSO2Telco/component-dep/pulls/455/commits"},"statuses":{"href":"https://api.github.com/repos/WSO2Telco/component-dep/statuses/31f048a9a5ee0e7fad05126d5bbfba244cb415b9"}},"author_association":"NONE"}}
{"actor":{"display_login":"TelcoGitHubBot"}}