{"action":"created","comment":{"url":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments/80220909","id":80220909,"diff_hunk":"@@ -1,5 +1,6 @@\n module Travis::API::V3\n   class Models::LogPart < Model\n+    establish_connection(Travis.config.logs_database)","path":"lib/travis/api/v3/models/log_part.rb","position":3,"original_position":3,"commit_id":"844b0c00676a469579cdcb95a9f2d79a088931f1","original_commit_id":"94bdc211ec9d4a1d6367275e610d9e7756bfdf96","user":{"login":"svenfuchs","id":2208,"avatar_url":"https://avatars.githubusercontent.com/u/2208?v=3","gravatar_id":"","url":"https://api.github.com/users/svenfuchs","html_url":"https://github.com/svenfuchs","followers_url":"https://api.github.com/users/svenfuchs/followers","following_url":"https://api.github.com/users/svenfuchs/following{/other_user}","gists_url":"https://api.github.com/users/svenfuchs/gists{/gist_id}","starred_url":"https://api.github.com/users/svenfuchs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svenfuchs/subscriptions","organizations_url":"https://api.github.com/users/svenfuchs/orgs","repos_url":"https://api.github.com/users/svenfuchs/repos","events_url":"https://api.github.com/users/svenfuchs/events{/privacy}","received_events_url":"https://api.github.com/users/svenfuchs/received_events","type":"User","site_admin":false},"body":"IIRC, in general, it is. The Log and LogPart models need to be told to talk to the logs database. I'm not sure about the implementation in v3, but this looks similar to what we're doing in other apps.","created_at":"2016-09-23T10:38:28Z","updated_at":"2016-09-23T10:38:28Z","html_url":"https://github.com/travis-ci/travis-api/pull/301#discussion_r80220909","pull_request_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/301","_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments/80220909"},"html":{"href":"https://github.com/travis-ci/travis-api/pull/301#discussion_r80220909"},"pull_request":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/301"}}},"pull_request":{"url":"https://api.github.com/repos/travis-ci/travis-api/pulls/301","id":78005778,"html_url":"https://github.com/travis-ci/travis-api/pull/301","diff_url":"https://github.com/travis-ci/travis-api/pull/301.diff","patch_url":"https://github.com/travis-ci/travis-api/pull/301.patch","issue_url":"https://api.github.com/repos/travis-ci/travis-api/issues/301","number":301,"state":"open","locked":false,"title":"Add log endpoint","user":{"login":"joecorcoran","id":65193,"avatar_url":"https://avatars.githubusercontent.com/u/65193?v=3","gravatar_id":"","url":"https://api.github.com/users/joecorcoran","html_url":"https://github.com/joecorcoran","followers_url":"https://api.github.com/users/joecorcoran/followers","following_url":"https://api.github.com/users/joecorcoran/following{/other_user}","gists_url":"https://api.github.com/users/joecorcoran/gists{/gist_id}","starred_url":"https://api.github.com/users/joecorcoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joecorcoran/subscriptions","organizations_url":"https://api.github.com/users/joecorcoran/orgs","repos_url":"https://api.github.com/users/joecorcoran/repos","events_url":"https://api.github.com/users/joecorcoran/events{/privacy}","received_events_url":"https://api.github.com/users/joecorcoran/received_events","type":"User","site_admin":false},"body":"**ready for review**\r\n\r\n","created_at":"2016-07-19T16:15:04Z","updated_at":"2016-09-23T10:38:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c696194ca93804a7f054b5cc9753c370a0535b7","assignee":{"login":"renee-travisci","id":19406831,"avatar_url":"https://avatars.githubusercontent.com/u/19406831?v=3","gravatar_id":"","url":"https://api.github.com/users/renee-travisci","html_url":"https://github.com/renee-travisci","followers_url":"https://api.github.com/users/renee-travisci/followers","following_url":"https://api.github.com/users/renee-travisci/following{/other_user}","gists_url":"https://api.github.com/users/renee-travisci/gists{/gist_id}","starred_url":"https://api.github.com/users/renee-travisci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renee-travisci/subscriptions","organizations_url":"https://api.github.com/users/renee-travisci/orgs","repos_url":"https://api.github.com/users/renee-travisci/repos","events_url":"https://api.github.com/users/renee-travisci/events{/privacy}","received_events_url":"https://api.github.com/users/renee-travisci/received_events","type":"User","site_admin":false},"assignees":[{"login":"renee-travisci","id":19406831,"avatar_url":"https://avatars.githubusercontent.com/u/19406831?v=3","gravatar_id":"","url":"https://api.github.com/users/renee-travisci","html_url":"https://github.com/renee-travisci","followers_url":"https://api.github.com/users/renee-travisci/followers","following_url":"https://api.github.com/users/renee-travisci/following{/other_user}","gists_url":"https://api.github.com/users/renee-travisci/gists{/gist_id}","starred_url":"https://api.github.com/users/renee-travisci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renee-travisci/subscriptions","organizations_url":"https://api.github.com/users/renee-travisci/orgs","repos_url":"https://api.github.com/users/renee-travisci/repos","events_url":"https://api.github.com/users/renee-travisci/events{/privacy}","received_events_url":"https://api.github.com/users/renee-travisci/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/301/commits","review_comments_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/301/comments","review_comment_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/travis-ci/travis-api/issues/301/comments","statuses_url":"https://api.github.com/repos/travis-ci/travis-api/statuses/844b0c00676a469579cdcb95a9f2d79a088931f1","head":{"label":"travis-ci:jc-v3-logs","ref":"jc-v3-logs","sha":"844b0c00676a469579cdcb95a9f2d79a088931f1","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":5096124,"name":"travis-api","full_name":"travis-ci/travis-api","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travis-ci/travis-api","description":"The public Travis API","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-api","forks_url":"https://api.github.com/repos/travis-ci/travis-api/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-api/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-api/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-api/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-api/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-api/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-api/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-api/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-api/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-api/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-api/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-api/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-api/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-api/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-api/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-api/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-api/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-api/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-api/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-api/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-api/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-api/releases{/id}","deployments_url":"https://api.github.com/repos/travis-ci/travis-api/deployments","created_at":"2012-07-18T12:55:46Z","updated_at":"2016-09-19T18:07:07Z","pushed_at":"2016-09-23T07:19:49Z","git_url":"git://github.com/travis-ci/travis-api.git","ssh_url":"git@github.com:travis-ci/travis-api.git","clone_url":"https://github.com/travis-ci/travis-api.git","svn_url":"https://github.com/travis-ci/travis-api","homepage":"https://api.travis-ci.org","size":6906,"stargazers_count":133,"watchers_count":133,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":13,"forks":69,"open_issues":13,"watchers":133,"default_branch":"master"}},"base":{"label":"travis-ci:master","ref":"master","sha":"acc36a70d38da8c597caa5222843ef7da5371a7b","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":5096124,"name":"travis-api","full_name":"travis-ci/travis-api","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travis-ci/travis-api","description":"The public Travis API","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-api","forks_url":"https://api.github.com/repos/travis-ci/travis-api/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-api/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-api/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-api/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-api/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-api/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-api/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-api/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-api/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-api/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-api/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-api/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-api/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-api/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-api/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-api/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-api/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-api/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-api/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-api/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-api/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-api/releases{/id}","deployments_url":"https://api.github.com/repos/travis-ci/travis-api/deployments","created_at":"2012-07-18T12:55:46Z","updated_at":"2016-09-19T18:07:07Z","pushed_at":"2016-09-23T07:19:49Z","git_url":"git://github.com/travis-ci/travis-api.git","ssh_url":"git@github.com:travis-ci/travis-api.git","clone_url":"https://github.com/travis-ci/travis-api.git","svn_url":"https://github.com/travis-ci/travis-api","homepage":"https://api.travis-ci.org","size":6906,"stargazers_count":133,"watchers_count":133,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":13,"forks":69,"open_issues":13,"watchers":133,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/301"},"html":{"href":"https://github.com/travis-ci/travis-api/pull/301"},"issue":{"href":"https://api.github.com/repos/travis-ci/travis-api/issues/301"},"comments":{"href":"https://api.github.com/repos/travis-ci/travis-api/issues/301/comments"},"review_comments":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/301/comments"},"review_comment":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/301/commits"},"statuses":{"href":"https://api.github.com/repos/travis-ci/travis-api/statuses/844b0c00676a469579cdcb95a9f2d79a088931f1"}}}}
{"actor":{"display_login":"svenfuchs"}}