{"action":"created","comment":{"url":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls/comments/32355003","id":32355003,"diff_hunk":"@@ -4,6 +4,11 @@ set -ev\n /bin/env_parse ${SERVER_CONFIG}.j2\n \n exec su socrata -c '/usr/bin/java \\","path":"docker/ship.d/run","position":3,"original_position":3,"commit_id":"e5cfbb22991b52057850e100fda05a2a6a0acde5","original_commit_id":"e5cfbb22991b52057850e100fda05a2a6a0acde5","user":{"login":"sokrahta","id":9438863,"avatar_url":"https://avatars.githubusercontent.com/u/9438863?v=3","gravatar_id":"","url":"https://api.github.com/users/sokrahta","html_url":"https://github.com/sokrahta","followers_url":"https://api.github.com/users/sokrahta/followers","following_url":"https://api.github.com/users/sokrahta/following{/other_user}","gists_url":"https://api.github.com/users/sokrahta/gists{/gist_id}","starred_url":"https://api.github.com/users/sokrahta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokrahta/subscriptions","organizations_url":"https://api.github.com/users/sokrahta/orgs","repos_url":"https://api.github.com/users/sokrahta/repos","events_url":"https://api.github.com/users/sokrahta/events{/privacy}","received_events_url":"https://api.github.com/users/sokrahta/received_events","type":"User","site_admin":false},"body":"yes it runs migration process first, then continues on to the main process","created_at":"2015-06-12T21:06:22Z","updated_at":"2015-06-12T21:06:22Z","html_url":"https://github.com/socrata-platform/soda-fountain/pull/116#discussion_r32355003","pull_request_url":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls/116","_links":{"self":{"href":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls/comments/32355003"},"html":{"href":"https://github.com/socrata-platform/soda-fountain/pull/116#discussion_r32355003"},"pull_request":{"href":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls/116"}}},"pull_request":{"url":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls/116","id":37602241,"html_url":"https://github.com/socrata-platform/soda-fountain/pull/116","diff_url":"https://github.com/socrata-platform/soda-fountain/pull/116.diff","patch_url":"https://github.com/socrata-platform/soda-fountain/pull/116.patch","issue_url":"https://api.github.com/repos/socrata-platform/soda-fountain/issues/116","number":116,"state":"open","locked":false,"title":"Run metasoda migrations when the container starts.","user":{"login":"urmilan","id":6767006,"avatar_url":"https://avatars.githubusercontent.com/u/6767006?v=3","gravatar_id":"","url":"https://api.github.com/users/urmilan","html_url":"https://github.com/urmilan","followers_url":"https://api.github.com/users/urmilan/followers","following_url":"https://api.github.com/users/urmilan/following{/other_user}","gists_url":"https://api.github.com/users/urmilan/gists{/gist_id}","starred_url":"https://api.github.com/users/urmilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urmilan/subscriptions","organizations_url":"https://api.github.com/users/urmilan/orgs","repos_url":"https://api.github.com/users/urmilan/repos","events_url":"https://api.github.com/users/urmilan/events{/privacy}","received_events_url":"https://api.github.com/users/urmilan/received_events","type":"User","site_admin":false},"body":"Most of our migrations are ideally run _before_ a new version of a service is running. In some cases, not running the migrations beforehand can lead to outages. \r\n\r\nIt's not uncommon that we forget to run migrations at the appropriate time to each environment; this change makes sure that never happens. \r\n\r\nThe upshot of this is that if we have a migration that needs to be run *after* changes to the service, we'd need to deploy the service code change and the migration in 2 separate steps.","created_at":"2015-06-12T20:41:41Z","updated_at":"2015-06-12T21:06:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc09d2f363c222345e266f48916a9785c6245e25","assignee":{"login":"sokrahta","id":9438863,"avatar_url":"https://avatars.githubusercontent.com/u/9438863?v=3","gravatar_id":"","url":"https://api.github.com/users/sokrahta","html_url":"https://github.com/sokrahta","followers_url":"https://api.github.com/users/sokrahta/followers","following_url":"https://api.github.com/users/sokrahta/following{/other_user}","gists_url":"https://api.github.com/users/sokrahta/gists{/gist_id}","starred_url":"https://api.github.com/users/sokrahta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokrahta/subscriptions","organizations_url":"https://api.github.com/users/sokrahta/orgs","repos_url":"https://api.github.com/users/sokrahta/repos","events_url":"https://api.github.com/users/sokrahta/events{/privacy}","received_events_url":"https://api.github.com/users/sokrahta/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls/116/commits","review_comments_url":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls/116/comments","review_comment_url":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls/comments{/number}","comments_url":"https://api.github.com/repos/socrata-platform/soda-fountain/issues/116/comments","statuses_url":"https://api.github.com/repos/socrata-platform/soda-fountain/statuses/e5cfbb22991b52057850e100fda05a2a6a0acde5","head":{"label":"socrata-platform:urmilan/migrate-on-startup","ref":"urmilan/migrate-on-startup","sha":"e5cfbb22991b52057850e100fda05a2a6a0acde5","user":{"login":"socrata-platform","id":12076358,"avatar_url":"https://avatars.githubusercontent.com/u/12076358?v=3","gravatar_id":"","url":"https://api.github.com/users/socrata-platform","html_url":"https://github.com/socrata-platform","followers_url":"https://api.github.com/users/socrata-platform/followers","following_url":"https://api.github.com/users/socrata-platform/following{/other_user}","gists_url":"https://api.github.com/users/socrata-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/socrata-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socrata-platform/subscriptions","organizations_url":"https://api.github.com/users/socrata-platform/orgs","repos_url":"https://api.github.com/users/socrata-platform/repos","events_url":"https://api.github.com/users/socrata-platform/events{/privacy}","received_events_url":"https://api.github.com/users/socrata-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":9224525,"name":"soda-fountain","full_name":"socrata-platform/soda-fountain","owner":{"login":"socrata-platform","id":12076358,"avatar_url":"https://avatars.githubusercontent.com/u/12076358?v=3","gravatar_id":"","url":"https://api.github.com/users/socrata-platform","html_url":"https://github.com/socrata-platform","followers_url":"https://api.github.com/users/socrata-platform/followers","following_url":"https://api.github.com/users/socrata-platform/following{/other_user}","gists_url":"https://api.github.com/users/socrata-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/socrata-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socrata-platform/subscriptions","organizations_url":"https://api.github.com/users/socrata-platform/orgs","repos_url":"https://api.github.com/users/socrata-platform/repos","events_url":"https://api.github.com/users/socrata-platform/events{/privacy}","received_events_url":"https://api.github.com/users/socrata-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/socrata-platform/soda-fountain","description":"Server for the Socrata Open Data API","fork":false,"url":"https://api.github.com/repos/socrata-platform/soda-fountain","forks_url":"https://api.github.com/repos/socrata-platform/soda-fountain/forks","keys_url":"https://api.github.com/repos/socrata-platform/soda-fountain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/socrata-platform/soda-fountain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/socrata-platform/soda-fountain/teams","hooks_url":"https://api.github.com/repos/socrata-platform/soda-fountain/hooks","issue_events_url":"https://api.github.com/repos/socrata-platform/soda-fountain/issues/events{/number}","events_url":"https://api.github.com/repos/socrata-platform/soda-fountain/events","assignees_url":"https://api.github.com/repos/socrata-platform/soda-fountain/assignees{/user}","branches_url":"https://api.github.com/repos/socrata-platform/soda-fountain/branches{/branch}","tags_url":"https://api.github.com/repos/socrata-platform/soda-fountain/tags","blobs_url":"https://api.github.com/repos/socrata-platform/soda-fountain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/socrata-platform/soda-fountain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/socrata-platform/soda-fountain/git/refs{/sha}","trees_url":"https://api.github.com/repos/socrata-platform/soda-fountain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/socrata-platform/soda-fountain/statuses/{sha}","languages_url":"https://api.github.com/repos/socrata-platform/soda-fountain/languages","stargazers_url":"https://api.github.com/repos/socrata-platform/soda-fountain/stargazers","contributors_url":"https://api.github.com/repos/socrata-platform/soda-fountain/contributors","subscribers_url":"https://api.github.com/repos/socrata-platform/soda-fountain/subscribers","subscription_url":"https://api.github.com/repos/socrata-platform/soda-fountain/subscription","commits_url":"https://api.github.com/repos/socrata-platform/soda-fountain/commits{/sha}","git_commits_url":"https://api.github.com/repos/socrata-platform/soda-fountain/git/commits{/sha}","comments_url":"https://api.github.com/repos/socrata-platform/soda-fountain/comments{/number}","issue_comment_url":"https://api.github.com/repos/socrata-platform/soda-fountain/issues/comments{/number}","contents_url":"https://api.github.com/repos/socrata-platform/soda-fountain/contents/{+path}","compare_url":"https://api.github.com/repos/socrata-platform/soda-fountain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/socrata-platform/soda-fountain/merges","archive_url":"https://api.github.com/repos/socrata-platform/soda-fountain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/socrata-platform/soda-fountain/downloads","issues_url":"https://api.github.com/repos/socrata-platform/soda-fountain/issues{/number}","pulls_url":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls{/number}","milestones_url":"https://api.github.com/repos/socrata-platform/soda-fountain/milestones{/number}","notifications_url":"https://api.github.com/repos/socrata-platform/soda-fountain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/socrata-platform/soda-fountain/labels{/name}","releases_url":"https://api.github.com/repos/socrata-platform/soda-fountain/releases{/id}","created_at":"2013-04-04T18:13:02Z","updated_at":"2015-05-21T11:52:11Z","pushed_at":"2015-06-12T20:41:41Z","git_url":"git://github.com/socrata-platform/soda-fountain.git","ssh_url":"git@github.com:socrata-platform/soda-fountain.git","clone_url":"https://github.com/socrata-platform/soda-fountain.git","svn_url":"https://github.com/socrata-platform/soda-fountain","homepage":null,"size":3594,"stargazers_count":9,"watchers_count":9,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":9,"default_branch":"master"}},"base":{"label":"socrata-platform:master","ref":"master","sha":"587330ce1f8f69092bec9c998e80bb6b0b56907f","user":{"login":"socrata-platform","id":12076358,"avatar_url":"https://avatars.githubusercontent.com/u/12076358?v=3","gravatar_id":"","url":"https://api.github.com/users/socrata-platform","html_url":"https://github.com/socrata-platform","followers_url":"https://api.github.com/users/socrata-platform/followers","following_url":"https://api.github.com/users/socrata-platform/following{/other_user}","gists_url":"https://api.github.com/users/socrata-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/socrata-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socrata-platform/subscriptions","organizations_url":"https://api.github.com/users/socrata-platform/orgs","repos_url":"https://api.github.com/users/socrata-platform/repos","events_url":"https://api.github.com/users/socrata-platform/events{/privacy}","received_events_url":"https://api.github.com/users/socrata-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":9224525,"name":"soda-fountain","full_name":"socrata-platform/soda-fountain","owner":{"login":"socrata-platform","id":12076358,"avatar_url":"https://avatars.githubusercontent.com/u/12076358?v=3","gravatar_id":"","url":"https://api.github.com/users/socrata-platform","html_url":"https://github.com/socrata-platform","followers_url":"https://api.github.com/users/socrata-platform/followers","following_url":"https://api.github.com/users/socrata-platform/following{/other_user}","gists_url":"https://api.github.com/users/socrata-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/socrata-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socrata-platform/subscriptions","organizations_url":"https://api.github.com/users/socrata-platform/orgs","repos_url":"https://api.github.com/users/socrata-platform/repos","events_url":"https://api.github.com/users/socrata-platform/events{/privacy}","received_events_url":"https://api.github.com/users/socrata-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/socrata-platform/soda-fountain","description":"Server for the Socrata Open Data API","fork":false,"url":"https://api.github.com/repos/socrata-platform/soda-fountain","forks_url":"https://api.github.com/repos/socrata-platform/soda-fountain/forks","keys_url":"https://api.github.com/repos/socrata-platform/soda-fountain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/socrata-platform/soda-fountain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/socrata-platform/soda-fountain/teams","hooks_url":"https://api.github.com/repos/socrata-platform/soda-fountain/hooks","issue_events_url":"https://api.github.com/repos/socrata-platform/soda-fountain/issues/events{/number}","events_url":"https://api.github.com/repos/socrata-platform/soda-fountain/events","assignees_url":"https://api.github.com/repos/socrata-platform/soda-fountain/assignees{/user}","branches_url":"https://api.github.com/repos/socrata-platform/soda-fountain/branches{/branch}","tags_url":"https://api.github.com/repos/socrata-platform/soda-fountain/tags","blobs_url":"https://api.github.com/repos/socrata-platform/soda-fountain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/socrata-platform/soda-fountain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/socrata-platform/soda-fountain/git/refs{/sha}","trees_url":"https://api.github.com/repos/socrata-platform/soda-fountain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/socrata-platform/soda-fountain/statuses/{sha}","languages_url":"https://api.github.com/repos/socrata-platform/soda-fountain/languages","stargazers_url":"https://api.github.com/repos/socrata-platform/soda-fountain/stargazers","contributors_url":"https://api.github.com/repos/socrata-platform/soda-fountain/contributors","subscribers_url":"https://api.github.com/repos/socrata-platform/soda-fountain/subscribers","subscription_url":"https://api.github.com/repos/socrata-platform/soda-fountain/subscription","commits_url":"https://api.github.com/repos/socrata-platform/soda-fountain/commits{/sha}","git_commits_url":"https://api.github.com/repos/socrata-platform/soda-fountain/git/commits{/sha}","comments_url":"https://api.github.com/repos/socrata-platform/soda-fountain/comments{/number}","issue_comment_url":"https://api.github.com/repos/socrata-platform/soda-fountain/issues/comments{/number}","contents_url":"https://api.github.com/repos/socrata-platform/soda-fountain/contents/{+path}","compare_url":"https://api.github.com/repos/socrata-platform/soda-fountain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/socrata-platform/soda-fountain/merges","archive_url":"https://api.github.com/repos/socrata-platform/soda-fountain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/socrata-platform/soda-fountain/downloads","issues_url":"https://api.github.com/repos/socrata-platform/soda-fountain/issues{/number}","pulls_url":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls{/number}","milestones_url":"https://api.github.com/repos/socrata-platform/soda-fountain/milestones{/number}","notifications_url":"https://api.github.com/repos/socrata-platform/soda-fountain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/socrata-platform/soda-fountain/labels{/name}","releases_url":"https://api.github.com/repos/socrata-platform/soda-fountain/releases{/id}","created_at":"2013-04-04T18:13:02Z","updated_at":"2015-05-21T11:52:11Z","pushed_at":"2015-06-12T20:41:41Z","git_url":"git://github.com/socrata-platform/soda-fountain.git","ssh_url":"git@github.com:socrata-platform/soda-fountain.git","clone_url":"https://github.com/socrata-platform/soda-fountain.git","svn_url":"https://github.com/socrata-platform/soda-fountain","homepage":null,"size":3594,"stargazers_count":9,"watchers_count":9,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls/116"},"html":{"href":"https://github.com/socrata-platform/soda-fountain/pull/116"},"issue":{"href":"https://api.github.com/repos/socrata-platform/soda-fountain/issues/116"},"comments":{"href":"https://api.github.com/repos/socrata-platform/soda-fountain/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/socrata-platform/soda-fountain/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/socrata-platform/soda-fountain/statuses/e5cfbb22991b52057850e100fda05a2a6a0acde5"}}}}