{"action":"opened","number":3332,"pull_request":{"url":"https://api.github.com/repos/mozilla/socorro/pulls/3332","id":69070503,"html_url":"https://github.com/mozilla/socorro/pull/3332","diff_url":"https://github.com/mozilla/socorro/pull/3332.diff","patch_url":"https://github.com/mozilla/socorro/pull/3332.patch","issue_url":"https://api.github.com/repos/mozilla/socorro/issues/3332","number":3332,"state":"open","locked":false,"title":"Fixes bug 1266827: Add keybuilder class to s3 crash storage","user":{"login":"willkg","id":820826,"avatar_url":"https://avatars.githubusercontent.com/u/820826?v=3","gravatar_id":"","url":"https://api.github.com/users/willkg","html_url":"https://github.com/willkg","followers_url":"https://api.github.com/users/willkg/followers","following_url":"https://api.github.com/users/willkg/following{/other_user}","gists_url":"https://api.github.com/users/willkg/gists{/gist_id}","starred_url":"https://api.github.com/users/willkg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willkg/subscriptions","organizations_url":"https://api.github.com/users/willkg/orgs","repos_url":"https://api.github.com/users/willkg/repos","events_url":"https://api.github.com/users/willkg/events{/privacy}","received_events_url":"https://api.github.com/users/willkg/received_events","type":"User","site_admin":false},"body":"This breaks out key building into a separate class allowing us to\r\nspecify which keybuilder class to use.\r\n\r\nIt also creates a new DatePrefixKeyBuilder which will pull the date\r\nportion off the end of a raw_crash ooid and add that to the s3\r\npseudo-filename before the ooid. This new pseudo-filename form lets us\r\nlist all the crashes that came in on a specific date.\r\n\r\nFurther, it does this in a backwards compatible way by changing\r\nbuild_key() to build_keys() which returns a list of keys to try in order\r\nof \"goodness\". That way .fetch() can try the keys in order until it\r\nfinds the object in question.\r\n\r\nr?","created_at":"2016-05-05T21:05:55Z","updated_at":"2016-05-05T21:05:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/socorro/pulls/3332/commits","review_comments_url":"https://api.github.com/repos/mozilla/socorro/pulls/3332/comments","review_comment_url":"https://api.github.com/repos/mozilla/socorro/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/socorro/issues/3332/comments","statuses_url":"https://api.github.com/repos/mozilla/socorro/statuses/9903e9509c7d3556c76e65bdb8f071b40017a648","head":{"label":"willkg:1266827-s3-pseudof","ref":"1266827-s3-pseudof","sha":"9903e9509c7d3556c76e65bdb8f071b40017a648","user":{"login":"willkg","id":820826,"avatar_url":"https://avatars.githubusercontent.com/u/820826?v=3","gravatar_id":"","url":"https://api.github.com/users/willkg","html_url":"https://github.com/willkg","followers_url":"https://api.github.com/users/willkg/followers","following_url":"https://api.github.com/users/willkg/following{/other_user}","gists_url":"https://api.github.com/users/willkg/gists{/gist_id}","starred_url":"https://api.github.com/users/willkg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willkg/subscriptions","organizations_url":"https://api.github.com/users/willkg/orgs","repos_url":"https://api.github.com/users/willkg/repos","events_url":"https://api.github.com/users/willkg/events{/privacy}","received_events_url":"https://api.github.com/users/willkg/received_events","type":"User","site_admin":false},"repo":{"id":53347766,"name":"socorro","full_name":"willkg/socorro","owner":{"login":"willkg","id":820826,"avatar_url":"https://avatars.githubusercontent.com/u/820826?v=3","gravatar_id":"","url":"https://api.github.com/users/willkg","html_url":"https://github.com/willkg","followers_url":"https://api.github.com/users/willkg/followers","following_url":"https://api.github.com/users/willkg/following{/other_user}","gists_url":"https://api.github.com/users/willkg/gists{/gist_id}","starred_url":"https://api.github.com/users/willkg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willkg/subscriptions","organizations_url":"https://api.github.com/users/willkg/orgs","repos_url":"https://api.github.com/users/willkg/repos","events_url":"https://api.github.com/users/willkg/events{/privacy}","received_events_url":"https://api.github.com/users/willkg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/willkg/socorro","description":"Socorro is a server to accept and process Breakpad crash reports. ","fork":true,"url":"https://api.github.com/repos/willkg/socorro","forks_url":"https://api.github.com/repos/willkg/socorro/forks","keys_url":"https://api.github.com/repos/willkg/socorro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willkg/socorro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willkg/socorro/teams","hooks_url":"https://api.github.com/repos/willkg/socorro/hooks","issue_events_url":"https://api.github.com/repos/willkg/socorro/issues/events{/number}","events_url":"https://api.github.com/repos/willkg/socorro/events","assignees_url":"https://api.github.com/repos/willkg/socorro/assignees{/user}","branches_url":"https://api.github.com/repos/willkg/socorro/branches{/branch}","tags_url":"https://api.github.com/repos/willkg/socorro/tags","blobs_url":"https://api.github.com/repos/willkg/socorro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willkg/socorro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willkg/socorro/git/refs{/sha}","trees_url":"https://api.github.com/repos/willkg/socorro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willkg/socorro/statuses/{sha}","languages_url":"https://api.github.com/repos/willkg/socorro/languages","stargazers_url":"https://api.github.com/repos/willkg/socorro/stargazers","contributors_url":"https://api.github.com/repos/willkg/socorro/contributors","subscribers_url":"https://api.github.com/repos/willkg/socorro/subscribers","subscription_url":"https://api.github.com/repos/willkg/socorro/subscription","commits_url":"https://api.github.com/repos/willkg/socorro/commits{/sha}","git_commits_url":"https://api.github.com/repos/willkg/socorro/git/commits{/sha}","comments_url":"https://api.github.com/repos/willkg/socorro/comments{/number}","issue_comment_url":"https://api.github.com/repos/willkg/socorro/issues/comments{/number}","contents_url":"https://api.github.com/repos/willkg/socorro/contents/{+path}","compare_url":"https://api.github.com/repos/willkg/socorro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willkg/socorro/merges","archive_url":"https://api.github.com/repos/willkg/socorro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willkg/socorro/downloads","issues_url":"https://api.github.com/repos/willkg/socorro/issues{/number}","pulls_url":"https://api.github.com/repos/willkg/socorro/pulls{/number}","milestones_url":"https://api.github.com/repos/willkg/socorro/milestones{/number}","notifications_url":"https://api.github.com/repos/willkg/socorro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willkg/socorro/labels{/name}","releases_url":"https://api.github.com/repos/willkg/socorro/releases{/id}","deployments_url":"https://api.github.com/repos/willkg/socorro/deployments","created_at":"2016-03-07T18:16:09Z","updated_at":"2016-03-07T18:16:13Z","pushed_at":"2016-05-05T21:05:31Z","git_url":"git://github.com/willkg/socorro.git","ssh_url":"git@github.com:willkg/socorro.git","clone_url":"https://github.com/willkg/socorro.git","svn_url":"https://github.com/willkg/socorro","homepage":"https://wiki.mozilla.org/Socorro","size":162920,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"6eca80756c6f8c9b97e022a4ebfc603b5cbd6c42","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":2263742,"name":"socorro","full_name":"mozilla/socorro","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/socorro","description":"Socorro is a server to accept and process Breakpad crash reports. ","fork":false,"url":"https://api.github.com/repos/mozilla/socorro","forks_url":"https://api.github.com/repos/mozilla/socorro/forks","keys_url":"https://api.github.com/repos/mozilla/socorro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/socorro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/socorro/teams","hooks_url":"https://api.github.com/repos/mozilla/socorro/hooks","issue_events_url":"https://api.github.com/repos/mozilla/socorro/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/socorro/events","assignees_url":"https://api.github.com/repos/mozilla/socorro/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/socorro/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/socorro/tags","blobs_url":"https://api.github.com/repos/mozilla/socorro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/socorro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/socorro/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/socorro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/socorro/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/socorro/languages","stargazers_url":"https://api.github.com/repos/mozilla/socorro/stargazers","contributors_url":"https://api.github.com/repos/mozilla/socorro/contributors","subscribers_url":"https://api.github.com/repos/mozilla/socorro/subscribers","subscription_url":"https://api.github.com/repos/mozilla/socorro/subscription","commits_url":"https://api.github.com/repos/mozilla/socorro/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/socorro/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/socorro/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/socorro/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/socorro/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/socorro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/socorro/merges","archive_url":"https://api.github.com/repos/mozilla/socorro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/socorro/downloads","issues_url":"https://api.github.com/repos/mozilla/socorro/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/socorro/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/socorro/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/socorro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/socorro/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/socorro/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/socorro/deployments","created_at":"2011-08-24T19:21:49Z","updated_at":"2016-05-04T07:00:45Z","pushed_at":"2016-05-05T19:00:08Z","git_url":"git://github.com/mozilla/socorro.git","ssh_url":"git@github.com:mozilla/socorro.git","clone_url":"https://github.com/mozilla/socorro.git","svn_url":"https://github.com/mozilla/socorro","homepage":"https://wiki.mozilla.org/Socorro","size":173483,"stargazers_count":280,"watchers_count":280,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":144,"mirror_url":null,"open_issues_count":6,"forks":144,"open_issues":6,"watchers":280,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/3332"},"html":{"href":"https://github.com/mozilla/socorro/pull/3332"},"issue":{"href":"https://api.github.com/repos/mozilla/socorro/issues/3332"},"comments":{"href":"https://api.github.com/repos/mozilla/socorro/issues/3332/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/3332/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/socorro/pulls/3332/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/socorro/statuses/9903e9509c7d3556c76e65bdb8f071b40017a648"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":392,"deletions":24,"changed_files":3}}