{"action":"created","comment":{"url":"https://api.github.com/repos/travis-ci/travis-logs/pulls/comments/104171001","pull_request_review_id":24987494,"id":104171001,"diff_hunk":"@@ -107,6 +108,11 @@ def run\n         end\n         alias find_or_create_log log_id\n \n+        private def normalize_number\n+          return unless payload['number'] == 'last'\n+          payload['number'] = database.max_log_part_number_for_log(log_id)","path":"lib/travis/logs/services/process_log_part.rb","position":14,"original_position":14,"commit_id":"c0d665a9c3367e87e82c4fc78ed062d09164fb03","original_commit_id":"c0d665a9c3367e87e82c4fc78ed062d09164fb03","user":{"login":"henrikhodne","id":24421,"avatar_url":"https://avatars1.githubusercontent.com/u/24421?v=3","gravatar_id":"","url":"https://api.github.com/users/henrikhodne","html_url":"https://github.com/henrikhodne","followers_url":"https://api.github.com/users/henrikhodne/followers","following_url":"https://api.github.com/users/henrikhodne/following{/other_user}","gists_url":"https://api.github.com/users/henrikhodne/gists{/gist_id}","starred_url":"https://api.github.com/users/henrikhodne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrikhodne/subscriptions","organizations_url":"https://api.github.com/users/henrikhodne/orgs","repos_url":"https://api.github.com/users/henrikhodne/repos","events_url":"https://api.github.com/users/henrikhodne/events{/privacy}","received_events_url":"https://api.github.com/users/henrikhodne/received_events","type":"User","site_admin":false},"body":"In what case is this called? looks like there's a good chance for race conditions here if there are still log parts in a queue somewhere.","created_at":"2017-03-03T15:10:00Z","updated_at":"2017-03-03T15:16:01Z","html_url":"https://github.com/travis-ci/travis-logs/pull/78#discussion_r104171001","pull_request_url":"https://api.github.com/repos/travis-ci/travis-logs/pulls/78","_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-logs/pulls/comments/104171001"},"html":{"href":"https://github.com/travis-ci/travis-logs/pull/78#discussion_r104171001"},"pull_request":{"href":"https://api.github.com/repos/travis-ci/travis-logs/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/travis-ci/travis-logs/pulls/78","id":108791505,"html_url":"https://github.com/travis-ci/travis-logs/pull/78","diff_url":"https://github.com/travis-ci/travis-logs/pull/78.diff","patch_url":"https://github.com/travis-ci/travis-logs/pull/78.patch","issue_url":"https://api.github.com/repos/travis-ci/travis-logs/issues/78","number":78,"state":"open","locked":false,"title":"Filling out HTTP API","user":{"login":"meatballhat","id":45143,"avatar_url":"https://avatars3.githubusercontent.com/u/45143?v=3","gravatar_id":"","url":"https://api.github.com/users/meatballhat","html_url":"https://github.com/meatballhat","followers_url":"https://api.github.com/users/meatballhat/followers","following_url":"https://api.github.com/users/meatballhat/following{/other_user}","gists_url":"https://api.github.com/users/meatballhat/gists{/gist_id}","starred_url":"https://api.github.com/users/meatballhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meatballhat/subscriptions","organizations_url":"https://api.github.com/users/meatballhat/orgs","repos_url":"https://api.github.com/users/meatballhat/repos","events_url":"https://api.github.com/users/meatballhat/events{/privacy}","received_events_url":"https://api.github.com/users/meatballhat/received_events","type":"User","site_admin":false},"body":"for remaining integration with travis-api, travis-hub, and travis-:ghost:","created_at":"2017-03-02T16:04:24Z","updated_at":"2017-03-03T15:16:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce19492e0133e0f047e18a77d2f7d37983656d07","assignee":{"login":"meatballhat","id":45143,"avatar_url":"https://avatars3.githubusercontent.com/u/45143?v=3","gravatar_id":"","url":"https://api.github.com/users/meatballhat","html_url":"https://github.com/meatballhat","followers_url":"https://api.github.com/users/meatballhat/followers","following_url":"https://api.github.com/users/meatballhat/following{/other_user}","gists_url":"https://api.github.com/users/meatballhat/gists{/gist_id}","starred_url":"https://api.github.com/users/meatballhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meatballhat/subscriptions","organizations_url":"https://api.github.com/users/meatballhat/orgs","repos_url":"https://api.github.com/users/meatballhat/repos","events_url":"https://api.github.com/users/meatballhat/events{/privacy}","received_events_url":"https://api.github.com/users/meatballhat/received_events","type":"User","site_admin":false},"assignees":[{"login":"meatballhat","id":45143,"avatar_url":"https://avatars3.githubusercontent.com/u/45143?v=3","gravatar_id":"","url":"https://api.github.com/users/meatballhat","html_url":"https://github.com/meatballhat","followers_url":"https://api.github.com/users/meatballhat/followers","following_url":"https://api.github.com/users/meatballhat/following{/other_user}","gists_url":"https://api.github.com/users/meatballhat/gists{/gist_id}","starred_url":"https://api.github.com/users/meatballhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meatballhat/subscriptions","organizations_url":"https://api.github.com/users/meatballhat/orgs","repos_url":"https://api.github.com/users/meatballhat/repos","events_url":"https://api.github.com/users/meatballhat/events{/privacy}","received_events_url":"https://api.github.com/users/meatballhat/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/travis-ci/travis-logs/pulls/78/commits","review_comments_url":"https://api.github.com/repos/travis-ci/travis-logs/pulls/78/comments","review_comment_url":"https://api.github.com/repos/travis-ci/travis-logs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/travis-ci/travis-logs/issues/78/comments","statuses_url":"https://api.github.com/repos/travis-ci/travis-logs/statuses/c0d665a9c3367e87e82c4fc78ed062d09164fb03","head":{"label":"travis-ci:meat-http-api","ref":"meat-http-api","sha":"c0d665a9c3367e87e82c4fc78ed062d09164fb03","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars1.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":5642248,"name":"travis-logs","full_name":"travis-ci/travis-logs","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars1.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-logs","description":"Processes log updates from Travis Worker, streams them to the web client, aggregates them, and archives to S3.","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-logs","forks_url":"https://api.github.com/repos/travis-ci/travis-logs/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-logs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-logs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-logs/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-logs/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-logs/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-logs/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-logs/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-logs/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-logs/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-logs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-logs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-logs/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-logs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-logs/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-logs/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-logs/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-logs/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-logs/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-logs/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-logs/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-logs/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-logs/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-logs/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-logs/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-logs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-logs/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-logs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-logs/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-logs/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-logs/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-logs/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-logs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-logs/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-logs/releases{/id}","deployments_url":"https://api.github.com/repos/travis-ci/travis-logs/deployments","created_at":"2012-09-01T18:25:56Z","updated_at":"2017-02-23T23:17:16Z","pushed_at":"2017-03-03T00:17:14Z","git_url":"git://github.com/travis-ci/travis-logs.git","ssh_url":"git@github.com:travis-ci/travis-logs.git","clone_url":"https://github.com/travis-ci/travis-logs.git","svn_url":"https://github.com/travis-ci/travis-logs","homepage":"https://travis-ci.org","size":870,"stargazers_count":31,"watchers_count":31,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":4,"forks":18,"open_issues":4,"watchers":31,"default_branch":"master"}},"base":{"label":"travis-ci:master","ref":"master","sha":"b7c5da0f811827b9717cbb62ea81e4bb57131461","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars1.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":5642248,"name":"travis-logs","full_name":"travis-ci/travis-logs","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars1.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-logs","description":"Processes log updates from Travis Worker, streams them to the web client, aggregates them, and archives to S3.","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-logs","forks_url":"https://api.github.com/repos/travis-ci/travis-logs/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-logs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-logs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-logs/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-logs/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-logs/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-logs/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-logs/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-logs/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-logs/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-logs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-logs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-logs/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-logs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-logs/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-logs/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-logs/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-logs/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-logs/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-logs/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-logs/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-logs/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-logs/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-logs/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-logs/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-logs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-logs/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-logs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-logs/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-logs/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-logs/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-logs/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-logs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-logs/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-logs/releases{/id}","deployments_url":"https://api.github.com/repos/travis-ci/travis-logs/deployments","created_at":"2012-09-01T18:25:56Z","updated_at":"2017-02-23T23:17:16Z","pushed_at":"2017-03-03T00:17:14Z","git_url":"git://github.com/travis-ci/travis-logs.git","ssh_url":"git@github.com:travis-ci/travis-logs.git","clone_url":"https://github.com/travis-ci/travis-logs.git","svn_url":"https://github.com/travis-ci/travis-logs","homepage":"https://travis-ci.org","size":870,"stargazers_count":31,"watchers_count":31,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":4,"forks":18,"open_issues":4,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-logs/pulls/78"},"html":{"href":"https://github.com/travis-ci/travis-logs/pull/78"},"issue":{"href":"https://api.github.com/repos/travis-ci/travis-logs/issues/78"},"comments":{"href":"https://api.github.com/repos/travis-ci/travis-logs/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/travis-ci/travis-logs/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/travis-ci/travis-logs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/travis-ci/travis-logs/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/travis-ci/travis-logs/statuses/c0d665a9c3367e87e82c4fc78ed062d09164fb03"}}}}
{"actor":{"display_login":"henrikhodne"}}