{"action":"created","comment":{"url":"https://api.github.com/repos/apid/apid/pulls/comments/140395139","pull_request_review_id":64463552,"id":140395139,"diff_hunk":"@@ -18,13 +18,33 @@\n \n cd /demo\n \n-if [ -z \"$CLOUD_IP\" ];  then\n-  echo \"No replace\"\n-else\n-  sed -i \"s/localhost/${CLOUD_IP}/\" apid_config.yaml\n-fi\n+BASE_DB_PATH=\"/demo/data/sqlite/common/base\"\n+DATA_DB_PATH=\"/demo/data/sqlite/common/1:1:\"\n+\n+mkdir -p $BASE_DB_PATH\n+mkdir -p $DATA_DB_PATH\n+\n+#cat init_base_db.sql | sqlite3 ${BASE_DB_PATH}/sqlite3\n+#cat init_data_db.sql | sqlite3 ${DATA_DB_PATH}/sqlite3\n+mv base_sqlite3 ${BASE_DB_PATH}/sqlite3\n+mv data_sqlite3 ${DATA_DB_PATH}/sqlite3\n+CREATE_INDEX='CREATE INDEX app_company_id on KMS_APP (company_id);\n+CREATE INDEX kms_app_id on KMS_APP_CREDENTIAL (app_id);\n+CREATE INDEX app_developer_id on KMS_APP (developer_id);\n+CREATE INDEX kms_id on KMS_APP_CREDENTIAL (id);\n+CREATE INDEX kms_tenant_id on KMS_APP_CREDENTIAL (tenant_id);\n+CREATE INDEX mp_appcred_id on KMS_APP_CREDENTIAL_APIPRODUCT_MAPPER (appcred_id);\n+CREATE INDEX mp_app_id on KMS_APP_CREDENTIAL_APIPRODUCT_MAPPER (app_id);\n+CREATE INDEX mp_apiprdt_id on KMS_APP_CREDENTIAL_APIPRODUCT_MAPPER (apiprdt_id);\n+CREATE INDEX org_tenant_id on KMS_ORGANIZATION (tenant_id);\n+CREATE INDEX org_name on KMS_ORGANIZATION (name);\n+CREATE INDEX ap_id on KMS_API_PRODUCT (id);\n+CREATE INDEX ap_tenant_id on KMS_API_PRODUCT (tenant_id);'\n+echo ${CREATE_INDEX} | sqlite3 ${DATA_DB_PATH}/sqlite3\n+echo \"APID table:\"\n+echo \"select * from APID;\" | sqlite3 ${BASE_DB_PATH}/sqlite3\n \n echo \"----- Apid config being loaded -----\"\n cat apid_config.yaml\n echo \"--------- End apid config ----------\"\n-./apid -clean\n+./apid","path":"load-test/startServices.sh","position":39,"original_position":39,"commit_id":"3a238d9c836b631a5c3bd3aa892178bd5647e363","original_commit_id":"3a238d9c836b631a5c3bd3aa892178bd5647e363","user":{"login":"sramamoorthy73","id":19826239,"avatar_url":"https://avatars1.githubusercontent.com/u/19826239?v=4","gravatar_id":"","url":"https://api.github.com/users/sramamoorthy73","html_url":"https://github.com/sramamoorthy73","followers_url":"https://api.github.com/users/sramamoorthy73/followers","following_url":"https://api.github.com/users/sramamoorthy73/following{/other_user}","gists_url":"https://api.github.com/users/sramamoorthy73/gists{/gist_id}","starred_url":"https://api.github.com/users/sramamoorthy73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sramamoorthy73/subscriptions","organizations_url":"https://api.github.com/users/sramamoorthy73/orgs","repos_url":"https://api.github.com/users/sramamoorthy73/repos","events_url":"https://api.github.com/users/sramamoorthy73/events{/privacy}","received_events_url":"https://api.github.com/users/sramamoorthy73/received_events","type":"User","site_admin":false},"body":"Why did you remove clean? Is it because it will be clean anyway?","created_at":"2017-09-22T01:21:47Z","updated_at":"2017-09-22T01:21:52Z","html_url":"https://github.com/apid/apid/pull/24#discussion_r140395139","pull_request_url":"https://api.github.com/repos/apid/apid/pulls/24","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/apid/apid/pulls/comments/140395139"},"html":{"href":"https://github.com/apid/apid/pull/24#discussion_r140395139"},"pull_request":{"href":"https://api.github.com/repos/apid/apid/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/apid/apid/pulls/24","id":142413531,"html_url":"https://github.com/apid/apid/pull/24","diff_url":"https://github.com/apid/apid/pull/24.diff","patch_url":"https://github.com/apid/apid/pull/24.patch","issue_url":"https://api.github.com/repos/apid/apid/issues/24","number":24,"state":"open","locked":false,"title":"WIP: Artillery Load Test for APID","user":{"login":"haomingzhang","id":20307551,"avatar_url":"https://avatars1.githubusercontent.com/u/20307551?v=4","gravatar_id":"","url":"https://api.github.com/users/haomingzhang","html_url":"https://github.com/haomingzhang","followers_url":"https://api.github.com/users/haomingzhang/followers","following_url":"https://api.github.com/users/haomingzhang/following{/other_user}","gists_url":"https://api.github.com/users/haomingzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/haomingzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haomingzhang/subscriptions","organizations_url":"https://api.github.com/users/haomingzhang/orgs","repos_url":"https://api.github.com/users/haomingzhang/repos","events_url":"https://api.github.com/users/haomingzhang/events{/privacy}","received_events_url":"https://api.github.com/users/haomingzhang/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-21T18:28:38Z","updated_at":"2017-09-22T01:21:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15ef0571d03b4241fe4e529c27758d4b7bda30a6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"rajanishgj","id":1052580,"avatar_url":"https://avatars3.githubusercontent.com/u/1052580?v=4","gravatar_id":"","url":"https://api.github.com/users/rajanishgj","html_url":"https://github.com/rajanishgj","followers_url":"https://api.github.com/users/rajanishgj/followers","following_url":"https://api.github.com/users/rajanishgj/following{/other_user}","gists_url":"https://api.github.com/users/rajanishgj/gists{/gist_id}","starred_url":"https://api.github.com/users/rajanishgj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajanishgj/subscriptions","organizations_url":"https://api.github.com/users/rajanishgj/orgs","repos_url":"https://api.github.com/users/rajanishgj/repos","events_url":"https://api.github.com/users/rajanishgj/events{/privacy}","received_events_url":"https://api.github.com/users/rajanishgj/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/apid/apid/pulls/24/commits","review_comments_url":"https://api.github.com/repos/apid/apid/pulls/24/comments","review_comment_url":"https://api.github.com/repos/apid/apid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apid/apid/issues/24/comments","statuses_url":"https://api.github.com/repos/apid/apid/statuses/3a238d9c836b631a5c3bd3aa892178bd5647e363","head":{"label":"apid:haomingtemp","ref":"haomingtemp","sha":"3a238d9c836b631a5c3bd3aa892178bd5647e363","user":{"login":"apid","id":28640266,"avatar_url":"https://avatars1.githubusercontent.com/u/28640266?v=4","gravatar_id":"","url":"https://api.github.com/users/apid","html_url":"https://github.com/apid","followers_url":"https://api.github.com/users/apid/followers","following_url":"https://api.github.com/users/apid/following{/other_user}","gists_url":"https://api.github.com/users/apid/gists{/gist_id}","starred_url":"https://api.github.com/users/apid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apid/subscriptions","organizations_url":"https://api.github.com/users/apid/orgs","repos_url":"https://api.github.com/users/apid/repos","events_url":"https://api.github.com/users/apid/events{/privacy}","received_events_url":"https://api.github.com/users/apid/received_events","type":"Organization","site_admin":false},"repo":{"id":68337464,"name":"apid","full_name":"apid/apid","owner":{"login":"apid","id":28640266,"avatar_url":"https://avatars1.githubusercontent.com/u/28640266?v=4","gravatar_id":"","url":"https://api.github.com/users/apid","html_url":"https://github.com/apid","followers_url":"https://api.github.com/users/apid/followers","following_url":"https://api.github.com/users/apid/following{/other_user}","gists_url":"https://api.github.com/users/apid/gists{/gist_id}","starred_url":"https://api.github.com/users/apid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apid/subscriptions","organizations_url":"https://api.github.com/users/apid/orgs","repos_url":"https://api.github.com/users/apid/repos","events_url":"https://api.github.com/users/apid/events{/privacy}","received_events_url":"https://api.github.com/users/apid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apid/apid","description":"A service container for API publishing.","fork":false,"url":"https://api.github.com/repos/apid/apid","forks_url":"https://api.github.com/repos/apid/apid/forks","keys_url":"https://api.github.com/repos/apid/apid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apid/apid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apid/apid/teams","hooks_url":"https://api.github.com/repos/apid/apid/hooks","issue_events_url":"https://api.github.com/repos/apid/apid/issues/events{/number}","events_url":"https://api.github.com/repos/apid/apid/events","assignees_url":"https://api.github.com/repos/apid/apid/assignees{/user}","branches_url":"https://api.github.com/repos/apid/apid/branches{/branch}","tags_url":"https://api.github.com/repos/apid/apid/tags","blobs_url":"https://api.github.com/repos/apid/apid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apid/apid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apid/apid/git/refs{/sha}","trees_url":"https://api.github.com/repos/apid/apid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apid/apid/statuses/{sha}","languages_url":"https://api.github.com/repos/apid/apid/languages","stargazers_url":"https://api.github.com/repos/apid/apid/stargazers","contributors_url":"https://api.github.com/repos/apid/apid/contributors","subscribers_url":"https://api.github.com/repos/apid/apid/subscribers","subscription_url":"https://api.github.com/repos/apid/apid/subscription","commits_url":"https://api.github.com/repos/apid/apid/commits{/sha}","git_commits_url":"https://api.github.com/repos/apid/apid/git/commits{/sha}","comments_url":"https://api.github.com/repos/apid/apid/comments{/number}","issue_comment_url":"https://api.github.com/repos/apid/apid/issues/comments{/number}","contents_url":"https://api.github.com/repos/apid/apid/contents/{+path}","compare_url":"https://api.github.com/repos/apid/apid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apid/apid/merges","archive_url":"https://api.github.com/repos/apid/apid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apid/apid/downloads","issues_url":"https://api.github.com/repos/apid/apid/issues{/number}","pulls_url":"https://api.github.com/repos/apid/apid/pulls{/number}","milestones_url":"https://api.github.com/repos/apid/apid/milestones{/number}","notifications_url":"https://api.github.com/repos/apid/apid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apid/apid/labels{/name}","releases_url":"https://api.github.com/repos/apid/apid/releases{/id}","deployments_url":"https://api.github.com/repos/apid/apid/deployments","created_at":"2016-09-15T22:50:29Z","updated_at":"2017-09-20T22:18:44Z","pushed_at":"2017-09-21T18:28:39Z","git_url":"git://github.com/apid/apid.git","ssh_url":"git@github.com:apid/apid.git","clone_url":"https://github.com/apid/apid.git","svn_url":"https://github.com/apid/apid","homepage":null,"size":33542,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"apid:master","ref":"master","sha":"adfbf9347cfcd4d35fb80cb37cac3944779952d5","user":{"login":"apid","id":28640266,"avatar_url":"https://avatars1.githubusercontent.com/u/28640266?v=4","gravatar_id":"","url":"https://api.github.com/users/apid","html_url":"https://github.com/apid","followers_url":"https://api.github.com/users/apid/followers","following_url":"https://api.github.com/users/apid/following{/other_user}","gists_url":"https://api.github.com/users/apid/gists{/gist_id}","starred_url":"https://api.github.com/users/apid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apid/subscriptions","organizations_url":"https://api.github.com/users/apid/orgs","repos_url":"https://api.github.com/users/apid/repos","events_url":"https://api.github.com/users/apid/events{/privacy}","received_events_url":"https://api.github.com/users/apid/received_events","type":"Organization","site_admin":false},"repo":{"id":68337464,"name":"apid","full_name":"apid/apid","owner":{"login":"apid","id":28640266,"avatar_url":"https://avatars1.githubusercontent.com/u/28640266?v=4","gravatar_id":"","url":"https://api.github.com/users/apid","html_url":"https://github.com/apid","followers_url":"https://api.github.com/users/apid/followers","following_url":"https://api.github.com/users/apid/following{/other_user}","gists_url":"https://api.github.com/users/apid/gists{/gist_id}","starred_url":"https://api.github.com/users/apid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apid/subscriptions","organizations_url":"https://api.github.com/users/apid/orgs","repos_url":"https://api.github.com/users/apid/repos","events_url":"https://api.github.com/users/apid/events{/privacy}","received_events_url":"https://api.github.com/users/apid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apid/apid","description":"A service container for API publishing.","fork":false,"url":"https://api.github.com/repos/apid/apid","forks_url":"https://api.github.com/repos/apid/apid/forks","keys_url":"https://api.github.com/repos/apid/apid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apid/apid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apid/apid/teams","hooks_url":"https://api.github.com/repos/apid/apid/hooks","issue_events_url":"https://api.github.com/repos/apid/apid/issues/events{/number}","events_url":"https://api.github.com/repos/apid/apid/events","assignees_url":"https://api.github.com/repos/apid/apid/assignees{/user}","branches_url":"https://api.github.com/repos/apid/apid/branches{/branch}","tags_url":"https://api.github.com/repos/apid/apid/tags","blobs_url":"https://api.github.com/repos/apid/apid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apid/apid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apid/apid/git/refs{/sha}","trees_url":"https://api.github.com/repos/apid/apid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apid/apid/statuses/{sha}","languages_url":"https://api.github.com/repos/apid/apid/languages","stargazers_url":"https://api.github.com/repos/apid/apid/stargazers","contributors_url":"https://api.github.com/repos/apid/apid/contributors","subscribers_url":"https://api.github.com/repos/apid/apid/subscribers","subscription_url":"https://api.github.com/repos/apid/apid/subscription","commits_url":"https://api.github.com/repos/apid/apid/commits{/sha}","git_commits_url":"https://api.github.com/repos/apid/apid/git/commits{/sha}","comments_url":"https://api.github.com/repos/apid/apid/comments{/number}","issue_comment_url":"https://api.github.com/repos/apid/apid/issues/comments{/number}","contents_url":"https://api.github.com/repos/apid/apid/contents/{+path}","compare_url":"https://api.github.com/repos/apid/apid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apid/apid/merges","archive_url":"https://api.github.com/repos/apid/apid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apid/apid/downloads","issues_url":"https://api.github.com/repos/apid/apid/issues{/number}","pulls_url":"https://api.github.com/repos/apid/apid/pulls{/number}","milestones_url":"https://api.github.com/repos/apid/apid/milestones{/number}","notifications_url":"https://api.github.com/repos/apid/apid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apid/apid/labels{/name}","releases_url":"https://api.github.com/repos/apid/apid/releases{/id}","deployments_url":"https://api.github.com/repos/apid/apid/deployments","created_at":"2016-09-15T22:50:29Z","updated_at":"2017-09-20T22:18:44Z","pushed_at":"2017-09-21T18:28:39Z","git_url":"git://github.com/apid/apid.git","ssh_url":"git@github.com:apid/apid.git","clone_url":"https://github.com/apid/apid.git","svn_url":"https://github.com/apid/apid","homepage":null,"size":33542,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apid/apid/pulls/24"},"html":{"href":"https://github.com/apid/apid/pull/24"},"issue":{"href":"https://api.github.com/repos/apid/apid/issues/24"},"comments":{"href":"https://api.github.com/repos/apid/apid/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/apid/apid/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/apid/apid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apid/apid/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/apid/apid/statuses/3a238d9c836b631a5c3bd3aa892178bd5647e363"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"sramamoorthy73"}}