{"action":"created","comment":{"url":"https://api.github.com/repos/dssg/tyra/pulls/comments/157875260","pull_request_review_id":84588624,"id":157875260,"diff_hunk":"@@ -11,8 +11,6 @@\n import os\n from config import db_dict\n \n-# Default DB\n-app.config['DB_NAME'] = \"cmpd\"","path":"webapp/controller.py","position":14,"original_position":14,"commit_id":"a83226c231cad200cce4766319ae9f8cd7a067e4","original_commit_id":"a83226c231cad200cce4766319ae9f8cd7a067e4","user":{"login":"jesteria","id":530998,"avatar_url":"https://avatars0.githubusercontent.com/u/530998?v=4","gravatar_id":"","url":"https://api.github.com/users/jesteria","html_url":"https://github.com/jesteria","followers_url":"https://api.github.com/users/jesteria/followers","following_url":"https://api.github.com/users/jesteria/following{/other_user}","gists_url":"https://api.github.com/users/jesteria/gists{/gist_id}","starred_url":"https://api.github.com/users/jesteria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesteria/subscriptions","organizations_url":"https://api.github.com/users/jesteria/orgs","repos_url":"https://api.github.com/users/jesteria/repos","events_url":"https://api.github.com/users/jesteria/events{/privacy}","received_events_url":"https://api.github.com/users/jesteria/received_events","type":"User","site_admin":false},"body":"Do we need to set/get a default database in the session?","created_at":"2017-12-19T21:08:03Z","updated_at":"2017-12-19T21:11:11Z","html_url":"https://github.com/dssg/tyra/pull/100#discussion_r157875260","pull_request_url":"https://api.github.com/repos/dssg/tyra/pulls/100","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/dssg/tyra/pulls/comments/157875260"},"html":{"href":"https://github.com/dssg/tyra/pull/100#discussion_r157875260"},"pull_request":{"href":"https://api.github.com/repos/dssg/tyra/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/dssg/tyra/pulls/100","id":158149639,"html_url":"https://github.com/dssg/tyra/pull/100","diff_url":"https://github.com/dssg/tyra/pull/100.diff","patch_url":"https://github.com/dssg/tyra/pull/100.patch","issue_url":"https://api.github.com/repos/dssg/tyra/issues/100","number":100,"state":"open","locked":false,"title":"Db connection issue","user":{"login":"tweddielin","id":9650575,"avatar_url":"https://avatars1.githubusercontent.com/u/9650575?v=4","gravatar_id":"","url":"https://api.github.com/users/tweddielin","html_url":"https://github.com/tweddielin","followers_url":"https://api.github.com/users/tweddielin/followers","following_url":"https://api.github.com/users/tweddielin/following{/other_user}","gists_url":"https://api.github.com/users/tweddielin/gists{/gist_id}","starred_url":"https://api.github.com/users/tweddielin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tweddielin/subscriptions","organizations_url":"https://api.github.com/users/tweddielin/orgs","repos_url":"https://api.github.com/users/tweddielin/repos","events_url":"https://api.github.com/users/tweddielin/events{/privacy}","received_events_url":"https://api.github.com/users/tweddielin/received_events","type":"User","site_admin":false},"body":"- Solve previous DB connection switch issue by using `app.config['SQLALCHEMY_DATABASE_URI']` and `app.config['SQLALCHEMY_BINDS']`\r\n- Refactor query.py based on the change\r\n\r\n","created_at":"2017-12-13T17:00:56Z","updated_at":"2017-12-19T21:11:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0c330a5537479182a9710e72a7439897dc346c3","assignee":{"login":"thcrock","id":1649545,"avatar_url":"https://avatars2.githubusercontent.com/u/1649545?v=4","gravatar_id":"","url":"https://api.github.com/users/thcrock","html_url":"https://github.com/thcrock","followers_url":"https://api.github.com/users/thcrock/followers","following_url":"https://api.github.com/users/thcrock/following{/other_user}","gists_url":"https://api.github.com/users/thcrock/gists{/gist_id}","starred_url":"https://api.github.com/users/thcrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thcrock/subscriptions","organizations_url":"https://api.github.com/users/thcrock/orgs","repos_url":"https://api.github.com/users/thcrock/repos","events_url":"https://api.github.com/users/thcrock/events{/privacy}","received_events_url":"https://api.github.com/users/thcrock/received_events","type":"User","site_admin":false},"assignees":[{"login":"thcrock","id":1649545,"avatar_url":"https://avatars2.githubusercontent.com/u/1649545?v=4","gravatar_id":"","url":"https://api.github.com/users/thcrock","html_url":"https://github.com/thcrock","followers_url":"https://api.github.com/users/thcrock/followers","following_url":"https://api.github.com/users/thcrock/following{/other_user}","gists_url":"https://api.github.com/users/thcrock/gists{/gist_id}","starred_url":"https://api.github.com/users/thcrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thcrock/subscriptions","organizations_url":"https://api.github.com/users/thcrock/orgs","repos_url":"https://api.github.com/users/thcrock/repos","events_url":"https://api.github.com/users/thcrock/events{/privacy}","received_events_url":"https://api.github.com/users/thcrock/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/dssg/tyra/pulls/100/commits","review_comments_url":"https://api.github.com/repos/dssg/tyra/pulls/100/comments","review_comment_url":"https://api.github.com/repos/dssg/tyra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dssg/tyra/issues/100/comments","statuses_url":"https://api.github.com/repos/dssg/tyra/statuses/a83226c231cad200cce4766319ae9f8cd7a067e4","head":{"label":"dssg:db_connection_issue","ref":"db_connection_issue","sha":"a83226c231cad200cce4766319ae9f8cd7a067e4","user":{"login":"dssg","id":3827384,"avatar_url":"https://avatars1.githubusercontent.com/u/3827384?v=4","gravatar_id":"","url":"https://api.github.com/users/dssg","html_url":"https://github.com/dssg","followers_url":"https://api.github.com/users/dssg/followers","following_url":"https://api.github.com/users/dssg/following{/other_user}","gists_url":"https://api.github.com/users/dssg/gists{/gist_id}","starred_url":"https://api.github.com/users/dssg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dssg/subscriptions","organizations_url":"https://api.github.com/users/dssg/orgs","repos_url":"https://api.github.com/users/dssg/repos","events_url":"https://api.github.com/users/dssg/events{/privacy}","received_events_url":"https://api.github.com/users/dssg/received_events","type":"Organization","site_admin":false},"repo":{"id":75334747,"name":"tyra","full_name":"dssg/tyra","owner":{"login":"dssg","id":3827384,"avatar_url":"https://avatars1.githubusercontent.com/u/3827384?v=4","gravatar_id":"","url":"https://api.github.com/users/dssg","html_url":"https://github.com/dssg","followers_url":"https://api.github.com/users/dssg/followers","following_url":"https://api.github.com/users/dssg/following{/other_user}","gists_url":"https://api.github.com/users/dssg/gists{/gist_id}","starred_url":"https://api.github.com/users/dssg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dssg/subscriptions","organizations_url":"https://api.github.com/users/dssg/orgs","repos_url":"https://api.github.com/users/dssg/repos","events_url":"https://api.github.com/users/dssg/events{/privacy}","received_events_url":"https://api.github.com/users/dssg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dssg/tyra","description":"Prediction model evaluation","fork":false,"url":"https://api.github.com/repos/dssg/tyra","forks_url":"https://api.github.com/repos/dssg/tyra/forks","keys_url":"https://api.github.com/repos/dssg/tyra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dssg/tyra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dssg/tyra/teams","hooks_url":"https://api.github.com/repos/dssg/tyra/hooks","issue_events_url":"https://api.github.com/repos/dssg/tyra/issues/events{/number}","events_url":"https://api.github.com/repos/dssg/tyra/events","assignees_url":"https://api.github.com/repos/dssg/tyra/assignees{/user}","branches_url":"https://api.github.com/repos/dssg/tyra/branches{/branch}","tags_url":"https://api.github.com/repos/dssg/tyra/tags","blobs_url":"https://api.github.com/repos/dssg/tyra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dssg/tyra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dssg/tyra/git/refs{/sha}","trees_url":"https://api.github.com/repos/dssg/tyra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dssg/tyra/statuses/{sha}","languages_url":"https://api.github.com/repos/dssg/tyra/languages","stargazers_url":"https://api.github.com/repos/dssg/tyra/stargazers","contributors_url":"https://api.github.com/repos/dssg/tyra/contributors","subscribers_url":"https://api.github.com/repos/dssg/tyra/subscribers","subscription_url":"https://api.github.com/repos/dssg/tyra/subscription","commits_url":"https://api.github.com/repos/dssg/tyra/commits{/sha}","git_commits_url":"https://api.github.com/repos/dssg/tyra/git/commits{/sha}","comments_url":"https://api.github.com/repos/dssg/tyra/comments{/number}","issue_comment_url":"https://api.github.com/repos/dssg/tyra/issues/comments{/number}","contents_url":"https://api.github.com/repos/dssg/tyra/contents/{+path}","compare_url":"https://api.github.com/repos/dssg/tyra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dssg/tyra/merges","archive_url":"https://api.github.com/repos/dssg/tyra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dssg/tyra/downloads","issues_url":"https://api.github.com/repos/dssg/tyra/issues{/number}","pulls_url":"https://api.github.com/repos/dssg/tyra/pulls{/number}","milestones_url":"https://api.github.com/repos/dssg/tyra/milestones{/number}","notifications_url":"https://api.github.com/repos/dssg/tyra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dssg/tyra/labels{/name}","releases_url":"https://api.github.com/repos/dssg/tyra/releases{/id}","deployments_url":"https://api.github.com/repos/dssg/tyra/deployments","created_at":"2016-12-01T21:33:22Z","updated_at":"2017-09-07T20:13:50Z","pushed_at":"2017-12-14T21:46:21Z","git_url":"git://github.com/dssg/tyra.git","ssh_url":"git@github.com:dssg/tyra.git","clone_url":"https://github.com/dssg/tyra.git","svn_url":"https://github.com/dssg/tyra","homepage":null,"size":11964,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":31,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":31,"watchers":2,"default_branch":"master"}},"base":{"label":"dssg:master","ref":"master","sha":"c1921de0a6bb8e1c510bee095856272617745ece","user":{"login":"dssg","id":3827384,"avatar_url":"https://avatars1.githubusercontent.com/u/3827384?v=4","gravatar_id":"","url":"https://api.github.com/users/dssg","html_url":"https://github.com/dssg","followers_url":"https://api.github.com/users/dssg/followers","following_url":"https://api.github.com/users/dssg/following{/other_user}","gists_url":"https://api.github.com/users/dssg/gists{/gist_id}","starred_url":"https://api.github.com/users/dssg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dssg/subscriptions","organizations_url":"https://api.github.com/users/dssg/orgs","repos_url":"https://api.github.com/users/dssg/repos","events_url":"https://api.github.com/users/dssg/events{/privacy}","received_events_url":"https://api.github.com/users/dssg/received_events","type":"Organization","site_admin":false},"repo":{"id":75334747,"name":"tyra","full_name":"dssg/tyra","owner":{"login":"dssg","id":3827384,"avatar_url":"https://avatars1.githubusercontent.com/u/3827384?v=4","gravatar_id":"","url":"https://api.github.com/users/dssg","html_url":"https://github.com/dssg","followers_url":"https://api.github.com/users/dssg/followers","following_url":"https://api.github.com/users/dssg/following{/other_user}","gists_url":"https://api.github.com/users/dssg/gists{/gist_id}","starred_url":"https://api.github.com/users/dssg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dssg/subscriptions","organizations_url":"https://api.github.com/users/dssg/orgs","repos_url":"https://api.github.com/users/dssg/repos","events_url":"https://api.github.com/users/dssg/events{/privacy}","received_events_url":"https://api.github.com/users/dssg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dssg/tyra","description":"Prediction model evaluation","fork":false,"url":"https://api.github.com/repos/dssg/tyra","forks_url":"https://api.github.com/repos/dssg/tyra/forks","keys_url":"https://api.github.com/repos/dssg/tyra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dssg/tyra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dssg/tyra/teams","hooks_url":"https://api.github.com/repos/dssg/tyra/hooks","issue_events_url":"https://api.github.com/repos/dssg/tyra/issues/events{/number}","events_url":"https://api.github.com/repos/dssg/tyra/events","assignees_url":"https://api.github.com/repos/dssg/tyra/assignees{/user}","branches_url":"https://api.github.com/repos/dssg/tyra/branches{/branch}","tags_url":"https://api.github.com/repos/dssg/tyra/tags","blobs_url":"https://api.github.com/repos/dssg/tyra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dssg/tyra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dssg/tyra/git/refs{/sha}","trees_url":"https://api.github.com/repos/dssg/tyra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dssg/tyra/statuses/{sha}","languages_url":"https://api.github.com/repos/dssg/tyra/languages","stargazers_url":"https://api.github.com/repos/dssg/tyra/stargazers","contributors_url":"https://api.github.com/repos/dssg/tyra/contributors","subscribers_url":"https://api.github.com/repos/dssg/tyra/subscribers","subscription_url":"https://api.github.com/repos/dssg/tyra/subscription","commits_url":"https://api.github.com/repos/dssg/tyra/commits{/sha}","git_commits_url":"https://api.github.com/repos/dssg/tyra/git/commits{/sha}","comments_url":"https://api.github.com/repos/dssg/tyra/comments{/number}","issue_comment_url":"https://api.github.com/repos/dssg/tyra/issues/comments{/number}","contents_url":"https://api.github.com/repos/dssg/tyra/contents/{+path}","compare_url":"https://api.github.com/repos/dssg/tyra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dssg/tyra/merges","archive_url":"https://api.github.com/repos/dssg/tyra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dssg/tyra/downloads","issues_url":"https://api.github.com/repos/dssg/tyra/issues{/number}","pulls_url":"https://api.github.com/repos/dssg/tyra/pulls{/number}","milestones_url":"https://api.github.com/repos/dssg/tyra/milestones{/number}","notifications_url":"https://api.github.com/repos/dssg/tyra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dssg/tyra/labels{/name}","releases_url":"https://api.github.com/repos/dssg/tyra/releases{/id}","deployments_url":"https://api.github.com/repos/dssg/tyra/deployments","created_at":"2016-12-01T21:33:22Z","updated_at":"2017-09-07T20:13:50Z","pushed_at":"2017-12-14T21:46:21Z","git_url":"git://github.com/dssg/tyra.git","ssh_url":"git@github.com:dssg/tyra.git","clone_url":"https://github.com/dssg/tyra.git","svn_url":"https://github.com/dssg/tyra","homepage":null,"size":11964,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":31,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":31,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dssg/tyra/pulls/100"},"html":{"href":"https://github.com/dssg/tyra/pull/100"},"issue":{"href":"https://api.github.com/repos/dssg/tyra/issues/100"},"comments":{"href":"https://api.github.com/repos/dssg/tyra/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/dssg/tyra/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/dssg/tyra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dssg/tyra/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/dssg/tyra/statuses/a83226c231cad200cce4766319ae9f8cd7a067e4"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"jesteria"}}