{"action":"created","issue":{"url":"https://api.github.com/repos/tootsuite/mastodon/issues/5127","repository_url":"https://api.github.com/repos/tootsuite/mastodon","labels_url":"https://api.github.com/repos/tootsuite/mastodon/issues/5127/labels{/name}","comments_url":"https://api.github.com/repos/tootsuite/mastodon/issues/5127/comments","events_url":"https://api.github.com/repos/tootsuite/mastodon/issues/5127/events","html_url":"https://github.com/tootsuite/mastodon/pull/5127","id":261185982,"number":5127,"title":"Use nullDB during asset compilation","user":{"login":"danhunsaker","id":1534396,"avatar_url":"https://avatars1.githubusercontent.com/u/1534396?v=4","gravatar_id":"","url":"https://api.github.com/users/danhunsaker","html_url":"https://github.com/danhunsaker","followers_url":"https://api.github.com/users/danhunsaker/followers","following_url":"https://api.github.com/users/danhunsaker/following{/other_user}","gists_url":"https://api.github.com/users/danhunsaker/gists{/gist_id}","starred_url":"https://api.github.com/users/danhunsaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danhunsaker/subscriptions","organizations_url":"https://api.github.com/users/danhunsaker/orgs","repos_url":"https://api.github.com/users/danhunsaker/repos","events_url":"https://api.github.com/users/danhunsaker/events{/privacy}","received_events_url":"https://api.github.com/users/danhunsaker/received_events","type":"User","site_admin":false},"labels":[{"id":579403151,"url":"https://api.github.com/repos/tootsuite/mastodon/labels/deployment","name":"deployment","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-09-28T03:55:11Z","updated_at":"2017-10-03T02:49:44Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/tootsuite/mastodon/pulls/5127","html_url":"https://github.com/tootsuite/mastodon/pull/5127","diff_url":"https://github.com/tootsuite/mastodon/pull/5127.diff","patch_url":"https://github.com/tootsuite/mastodon/pull/5127.patch"},"body":"This change allows Nanobox users to continue deploying Mastodon instances, and also speeds up the asset compilation phase for other users who might want it. It adds the ActiveRecord nullDB driver, and lets users switch to it by setting an environment variable (`DB_ADAPTER=nulldriver`), which can be done as part of the `rake assets:precompile` command. For Nanobox users, it relieves the need for an actual database connection during the `compile` step (part of the deploy process which prepares the code for upload to the server). For all users, it speeds up asset compilation by converting all DB calls to no-ops, which is considerably faster than talking to an actual Postgres DB during a phase which doesn't actually need DB access to begin with (even though Rails loads itself entirely for the process anyway).\r\n\r\nBlocks tootsuite/documentation#403"},"comment":{"url":"https://api.github.com/repos/tootsuite/mastodon/issues/comments/333723800","html_url":"https://github.com/tootsuite/mastodon/pull/5127#issuecomment-333723800","issue_url":"https://api.github.com/repos/tootsuite/mastodon/issues/5127","id":333723800,"user":{"login":"akihikodaki","id":17036990,"avatar_url":"https://avatars1.githubusercontent.com/u/17036990?v=4","gravatar_id":"","url":"https://api.github.com/users/akihikodaki","html_url":"https://github.com/akihikodaki","followers_url":"https://api.github.com/users/akihikodaki/followers","following_url":"https://api.github.com/users/akihikodaki/following{/other_user}","gists_url":"https://api.github.com/users/akihikodaki/gists{/gist_id}","starred_url":"https://api.github.com/users/akihikodaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akihikodaki/subscriptions","organizations_url":"https://api.github.com/users/akihikodaki/orgs","repos_url":"https://api.github.com/users/akihikodaki/repos","events_url":"https://api.github.com/users/akihikodaki/events{/privacy}","received_events_url":"https://api.github.com/users/akihikodaki/received_events","type":"User","site_admin":false},"created_at":"2017-10-03T02:49:44Z","updated_at":"2017-10-03T02:49:44Z","author_association":"COLLABORATOR","body":"For anyone interested in the test failure: you can reproduce it with the following command:\r\n```shell\r\nRAILS_ENV=test ./bin/rails db:abort_if_pending_migrations\r\n```"}}
{"actor":{"display_login":"akihikodaki"}}