{"action":"closed","number":581,"pull_request":{"url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/581","id":65584449,"html_url":"https://github.com/GFDRR/thinkhazard/pull/581","diff_url":"https://github.com/GFDRR/thinkhazard/pull/581.diff","patch_url":"https://github.com/GFDRR/thinkhazard/pull/581.patch","issue_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues/581","number":581,"state":"closed","locked":false,"title":"alembic fix","user":{"login":"pgiraud","id":319774,"avatar_url":"https://avatars.githubusercontent.com/u/319774?v=3","gravatar_id":"","url":"https://api.github.com/users/pgiraud","html_url":"https://github.com/pgiraud","followers_url":"https://api.github.com/users/pgiraud/followers","following_url":"https://api.github.com/users/pgiraud/following{/other_user}","gists_url":"https://api.github.com/users/pgiraud/gists{/gist_id}","starred_url":"https://api.github.com/users/pgiraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgiraud/subscriptions","organizations_url":"https://api.github.com/users/pgiraud/orgs","repos_url":"https://api.github.com/users/pgiraud/repos","events_url":"https://api.github.com/users/pgiraud/events{/privacy}","received_events_url":"https://api.github.com/users/pgiraud/received_events","type":"User","site_admin":false},"body":"With this pull request I address the following issue.\r\n\r\nWhen instances are not specific, integrator usually don't set the database url in `local.ini` since the default values are already correct and don't need to be overwritten.\r\nIn this case, the `alembic.ini` was taken into account. This raised two problems:\r\n - race condition of config reading made so the admin database was taken into account for both admin and public applications,\r\n - the urls in `alembic.ini` were not correctly set.","created_at":"2016-04-07T07:21:28Z","updated_at":"2016-04-07T07:29:09Z","closed_at":"2016-04-07T07:29:09Z","merged_at":"2016-04-07T07:29:09Z","merge_commit_sha":"e6bb467e58f4dc36906bad058b23fe61dd2cdc1a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/581/commits","review_comments_url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/581/comments","review_comment_url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues/581/comments","statuses_url":"https://api.github.com/repos/GFDRR/thinkhazard/statuses/90a4e94e90b9871f566544a3dccbc81dba65ab8f","head":{"label":"GFDRR:pgiraud_alembic","ref":"pgiraud_alembic","sha":"90a4e94e90b9871f566544a3dccbc81dba65ab8f","user":{"login":"GFDRR","id":708300,"avatar_url":"https://avatars.githubusercontent.com/u/708300?v=3","gravatar_id":"","url":"https://api.github.com/users/GFDRR","html_url":"https://github.com/GFDRR","followers_url":"https://api.github.com/users/GFDRR/followers","following_url":"https://api.github.com/users/GFDRR/following{/other_user}","gists_url":"https://api.github.com/users/GFDRR/gists{/gist_id}","starred_url":"https://api.github.com/users/GFDRR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GFDRR/subscriptions","organizations_url":"https://api.github.com/users/GFDRR/orgs","repos_url":"https://api.github.com/users/GFDRR/repos","events_url":"https://api.github.com/users/GFDRR/events{/privacy}","received_events_url":"https://api.github.com/users/GFDRR/received_events","type":"Organization","site_admin":false},"repo":{"id":29915977,"name":"thinkhazard","full_name":"GFDRR/thinkhazard","owner":{"login":"GFDRR","id":708300,"avatar_url":"https://avatars.githubusercontent.com/u/708300?v=3","gravatar_id":"","url":"https://api.github.com/users/GFDRR","html_url":"https://github.com/GFDRR","followers_url":"https://api.github.com/users/GFDRR/followers","following_url":"https://api.github.com/users/GFDRR/following{/other_user}","gists_url":"https://api.github.com/users/GFDRR/gists{/gist_id}","starred_url":"https://api.github.com/users/GFDRR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GFDRR/subscriptions","organizations_url":"https://api.github.com/users/GFDRR/orgs","repos_url":"https://api.github.com/users/GFDRR/repos","events_url":"https://api.github.com/users/GFDRR/events{/privacy}","received_events_url":"https://api.github.com/users/GFDRR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GFDRR/thinkhazard","description":"Think Hazard: Overcome Risk","fork":false,"url":"https://api.github.com/repos/GFDRR/thinkhazard","forks_url":"https://api.github.com/repos/GFDRR/thinkhazard/forks","keys_url":"https://api.github.com/repos/GFDRR/thinkhazard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GFDRR/thinkhazard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GFDRR/thinkhazard/teams","hooks_url":"https://api.github.com/repos/GFDRR/thinkhazard/hooks","issue_events_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues/events{/number}","events_url":"https://api.github.com/repos/GFDRR/thinkhazard/events","assignees_url":"https://api.github.com/repos/GFDRR/thinkhazard/assignees{/user}","branches_url":"https://api.github.com/repos/GFDRR/thinkhazard/branches{/branch}","tags_url":"https://api.github.com/repos/GFDRR/thinkhazard/tags","blobs_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/refs{/sha}","trees_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GFDRR/thinkhazard/statuses/{sha}","languages_url":"https://api.github.com/repos/GFDRR/thinkhazard/languages","stargazers_url":"https://api.github.com/repos/GFDRR/thinkhazard/stargazers","contributors_url":"https://api.github.com/repos/GFDRR/thinkhazard/contributors","subscribers_url":"https://api.github.com/repos/GFDRR/thinkhazard/subscribers","subscription_url":"https://api.github.com/repos/GFDRR/thinkhazard/subscription","commits_url":"https://api.github.com/repos/GFDRR/thinkhazard/commits{/sha}","git_commits_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/commits{/sha}","comments_url":"https://api.github.com/repos/GFDRR/thinkhazard/comments{/number}","issue_comment_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues/comments{/number}","contents_url":"https://api.github.com/repos/GFDRR/thinkhazard/contents/{+path}","compare_url":"https://api.github.com/repos/GFDRR/thinkhazard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GFDRR/thinkhazard/merges","archive_url":"https://api.github.com/repos/GFDRR/thinkhazard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GFDRR/thinkhazard/downloads","issues_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues{/number}","pulls_url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls{/number}","milestones_url":"https://api.github.com/repos/GFDRR/thinkhazard/milestones{/number}","notifications_url":"https://api.github.com/repos/GFDRR/thinkhazard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GFDRR/thinkhazard/labels{/name}","releases_url":"https://api.github.com/repos/GFDRR/thinkhazard/releases{/id}","deployments_url":"https://api.github.com/repos/GFDRR/thinkhazard/deployments","created_at":"2015-01-27T13:46:42Z","updated_at":"2016-02-19T15:49:57Z","pushed_at":"2016-04-07T07:29:09Z","git_url":"git://github.com/GFDRR/thinkhazard.git","ssh_url":"git@github.com:GFDRR/thinkhazard.git","clone_url":"https://github.com/GFDRR/thinkhazard.git","svn_url":"https://github.com/GFDRR/thinkhazard","homepage":"","size":5021,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":31,"forks":5,"open_issues":31,"watchers":4,"default_branch":"master"}},"base":{"label":"GFDRR:master","ref":"master","sha":"a19a7b4b621b7183cbf127b5f8f65dd97ba7f5f0","user":{"login":"GFDRR","id":708300,"avatar_url":"https://avatars.githubusercontent.com/u/708300?v=3","gravatar_id":"","url":"https://api.github.com/users/GFDRR","html_url":"https://github.com/GFDRR","followers_url":"https://api.github.com/users/GFDRR/followers","following_url":"https://api.github.com/users/GFDRR/following{/other_user}","gists_url":"https://api.github.com/users/GFDRR/gists{/gist_id}","starred_url":"https://api.github.com/users/GFDRR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GFDRR/subscriptions","organizations_url":"https://api.github.com/users/GFDRR/orgs","repos_url":"https://api.github.com/users/GFDRR/repos","events_url":"https://api.github.com/users/GFDRR/events{/privacy}","received_events_url":"https://api.github.com/users/GFDRR/received_events","type":"Organization","site_admin":false},"repo":{"id":29915977,"name":"thinkhazard","full_name":"GFDRR/thinkhazard","owner":{"login":"GFDRR","id":708300,"avatar_url":"https://avatars.githubusercontent.com/u/708300?v=3","gravatar_id":"","url":"https://api.github.com/users/GFDRR","html_url":"https://github.com/GFDRR","followers_url":"https://api.github.com/users/GFDRR/followers","following_url":"https://api.github.com/users/GFDRR/following{/other_user}","gists_url":"https://api.github.com/users/GFDRR/gists{/gist_id}","starred_url":"https://api.github.com/users/GFDRR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GFDRR/subscriptions","organizations_url":"https://api.github.com/users/GFDRR/orgs","repos_url":"https://api.github.com/users/GFDRR/repos","events_url":"https://api.github.com/users/GFDRR/events{/privacy}","received_events_url":"https://api.github.com/users/GFDRR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GFDRR/thinkhazard","description":"Think Hazard: Overcome Risk","fork":false,"url":"https://api.github.com/repos/GFDRR/thinkhazard","forks_url":"https://api.github.com/repos/GFDRR/thinkhazard/forks","keys_url":"https://api.github.com/repos/GFDRR/thinkhazard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GFDRR/thinkhazard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GFDRR/thinkhazard/teams","hooks_url":"https://api.github.com/repos/GFDRR/thinkhazard/hooks","issue_events_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues/events{/number}","events_url":"https://api.github.com/repos/GFDRR/thinkhazard/events","assignees_url":"https://api.github.com/repos/GFDRR/thinkhazard/assignees{/user}","branches_url":"https://api.github.com/repos/GFDRR/thinkhazard/branches{/branch}","tags_url":"https://api.github.com/repos/GFDRR/thinkhazard/tags","blobs_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/refs{/sha}","trees_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GFDRR/thinkhazard/statuses/{sha}","languages_url":"https://api.github.com/repos/GFDRR/thinkhazard/languages","stargazers_url":"https://api.github.com/repos/GFDRR/thinkhazard/stargazers","contributors_url":"https://api.github.com/repos/GFDRR/thinkhazard/contributors","subscribers_url":"https://api.github.com/repos/GFDRR/thinkhazard/subscribers","subscription_url":"https://api.github.com/repos/GFDRR/thinkhazard/subscription","commits_url":"https://api.github.com/repos/GFDRR/thinkhazard/commits{/sha}","git_commits_url":"https://api.github.com/repos/GFDRR/thinkhazard/git/commits{/sha}","comments_url":"https://api.github.com/repos/GFDRR/thinkhazard/comments{/number}","issue_comment_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues/comments{/number}","contents_url":"https://api.github.com/repos/GFDRR/thinkhazard/contents/{+path}","compare_url":"https://api.github.com/repos/GFDRR/thinkhazard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GFDRR/thinkhazard/merges","archive_url":"https://api.github.com/repos/GFDRR/thinkhazard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GFDRR/thinkhazard/downloads","issues_url":"https://api.github.com/repos/GFDRR/thinkhazard/issues{/number}","pulls_url":"https://api.github.com/repos/GFDRR/thinkhazard/pulls{/number}","milestones_url":"https://api.github.com/repos/GFDRR/thinkhazard/milestones{/number}","notifications_url":"https://api.github.com/repos/GFDRR/thinkhazard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GFDRR/thinkhazard/labels{/name}","releases_url":"https://api.github.com/repos/GFDRR/thinkhazard/releases{/id}","deployments_url":"https://api.github.com/repos/GFDRR/thinkhazard/deployments","created_at":"2015-01-27T13:46:42Z","updated_at":"2016-02-19T15:49:57Z","pushed_at":"2016-04-07T07:29:09Z","git_url":"git://github.com/GFDRR/thinkhazard.git","ssh_url":"git@github.com:GFDRR/thinkhazard.git","clone_url":"https://github.com/GFDRR/thinkhazard.git","svn_url":"https://github.com/GFDRR/thinkhazard","homepage":"","size":5021,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":31,"forks":5,"open_issues":31,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/581"},"html":{"href":"https://github.com/GFDRR/thinkhazard/pull/581"},"issue":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/issues/581"},"comments":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/issues/581/comments"},"review_comments":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/581/comments"},"review_comment":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/pulls/581/commits"},"statuses":{"href":"https://api.github.com/repos/GFDRR/thinkhazard/statuses/90a4e94e90b9871f566544a3dccbc81dba65ab8f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"pgiraud","id":319774,"avatar_url":"https://avatars.githubusercontent.com/u/319774?v=3","gravatar_id":"","url":"https://api.github.com/users/pgiraud","html_url":"https://github.com/pgiraud","followers_url":"https://api.github.com/users/pgiraud/followers","following_url":"https://api.github.com/users/pgiraud/following{/other_user}","gists_url":"https://api.github.com/users/pgiraud/gists{/gist_id}","starred_url":"https://api.github.com/users/pgiraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgiraud/subscriptions","organizations_url":"https://api.github.com/users/pgiraud/orgs","repos_url":"https://api.github.com/users/pgiraud/repos","events_url":"https://api.github.com/users/pgiraud/events{/privacy}","received_events_url":"https://api.github.com/users/pgiraud/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":6,"deletions":8,"changed_files":2}}