{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/pulls/comments/34685634","id":34685634,"diff_hunk":"@@ -276,7 +276,9 @@ def upload(self, stream, path, **kwargs):\n             'name': name,\n             'path': data['data']['path'],\n             'version': data['data']['version'],\n-            'downloads': data['data']['downloads']\n+            'downloads': data['data']['downloads'],","path":"waterbutler/providers/osfstorage/provider.py","position":5,"original_position":5,"commit_id":"a05ed722b57700f77ce81d747a1d07da55c2efc4","original_commit_id":"a05ed722b57700f77ce81d747a1d07da55c2efc4","user":{"login":"hmoco","id":6268982,"avatar_url":"https://avatars.githubusercontent.com/u/6268982?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoco","html_url":"https://github.com/hmoco","followers_url":"https://api.github.com/users/hmoco/followers","following_url":"https://api.github.com/users/hmoco/following{/other_user}","gists_url":"https://api.github.com/users/hmoco/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoco/subscriptions","organizations_url":"https://api.github.com/users/hmoco/orgs","repos_url":"https://api.github.com/users/hmoco/repos","events_url":"https://api.github.com/users/hmoco/events{/privacy}","received_events_url":"https://api.github.com/users/hmoco/received_events","type":"User","site_admin":false},"body":"Sure. However, for the sake of learning, why?","created_at":"2015-07-15T14:46:21Z","updated_at":"2015-07-15T14:46:21Z","html_url":"https://github.com/CenterForOpenScience/waterbutler/pull/58#discussion_r34685634","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/waterbutler/pulls/comments/34685634"},"html":{"href":"https://github.com/CenterForOpenScience/waterbutler/pull/58#discussion_r34685634"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/waterbutler/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/pulls/58","id":39515303,"html_url":"https://github.com/CenterForOpenScience/waterbutler/pull/58","diff_url":"https://github.com/CenterForOpenScience/waterbutler/pull/58.diff","patch_url":"https://github.com/CenterForOpenScience/waterbutler/pull/58.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/issues/58","number":58,"state":"open","locked":false,"title":"Add md5 and sha256 hashes to revision and file metadata for osfstorage","user":{"login":"hmoco","id":6268982,"avatar_url":"https://avatars.githubusercontent.com/u/6268982?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoco","html_url":"https://github.com/hmoco","followers_url":"https://api.github.com/users/hmoco/followers","following_url":"https://api.github.com/users/hmoco/following{/other_user}","gists_url":"https://api.github.com/users/hmoco/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoco/subscriptions","organizations_url":"https://api.github.com/users/hmoco/orgs","repos_url":"https://api.github.com/users/hmoco/repos","events_url":"https://api.github.com/users/hmoco/events{/privacy}","received_events_url":"https://api.github.com/users/hmoco/received_events","type":"User","site_admin":false},"body":"## Purpose \r\nAllow API to grab md5 + sha256 hashes, and also so that the osf can grab and use them.\r\n\r\nThis accompanies OSF PR: https://github.com/CenterForOpenScience/osf.io/pull/3517 and needs to be merged together for either to work.\r\n\r\n## Changes\r\nmd5 information is added to the metadata extra section of revision and file classes\r\n\r\n","created_at":"2015-07-08T19:45:16Z","updated_at":"2015-07-15T14:46:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b202b6438ebbe4a2645410328010536e732c1e3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/pulls/58/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/pulls/58/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/issues/58/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/statuses/a05ed722b57700f77ce81d747a1d07da55c2efc4","head":{"label":"hmoco:develop","ref":"develop","sha":"a05ed722b57700f77ce81d747a1d07da55c2efc4","user":{"login":"hmoco","id":6268982,"avatar_url":"https://avatars.githubusercontent.com/u/6268982?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoco","html_url":"https://github.com/hmoco","followers_url":"https://api.github.com/users/hmoco/followers","following_url":"https://api.github.com/users/hmoco/following{/other_user}","gists_url":"https://api.github.com/users/hmoco/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoco/subscriptions","organizations_url":"https://api.github.com/users/hmoco/orgs","repos_url":"https://api.github.com/users/hmoco/repos","events_url":"https://api.github.com/users/hmoco/events{/privacy}","received_events_url":"https://api.github.com/users/hmoco/received_events","type":"User","site_admin":false},"repo":{"id":38775880,"name":"waterbutler","full_name":"hmoco/waterbutler","owner":{"login":"hmoco","id":6268982,"avatar_url":"https://avatars.githubusercontent.com/u/6268982?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoco","html_url":"https://github.com/hmoco","followers_url":"https://api.github.com/users/hmoco/followers","following_url":"https://api.github.com/users/hmoco/following{/other_user}","gists_url":"https://api.github.com/users/hmoco/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoco/subscriptions","organizations_url":"https://api.github.com/users/hmoco/orgs","repos_url":"https://api.github.com/users/hmoco/repos","events_url":"https://api.github.com/users/hmoco/events{/privacy}","received_events_url":"https://api.github.com/users/hmoco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hmoco/waterbutler","description":"","fork":true,"url":"https://api.github.com/repos/hmoco/waterbutler","forks_url":"https://api.github.com/repos/hmoco/waterbutler/forks","keys_url":"https://api.github.com/repos/hmoco/waterbutler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmoco/waterbutler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmoco/waterbutler/teams","hooks_url":"https://api.github.com/repos/hmoco/waterbutler/hooks","issue_events_url":"https://api.github.com/repos/hmoco/waterbutler/issues/events{/number}","events_url":"https://api.github.com/repos/hmoco/waterbutler/events","assignees_url":"https://api.github.com/repos/hmoco/waterbutler/assignees{/user}","branches_url":"https://api.github.com/repos/hmoco/waterbutler/branches{/branch}","tags_url":"https://api.github.com/repos/hmoco/waterbutler/tags","blobs_url":"https://api.github.com/repos/hmoco/waterbutler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmoco/waterbutler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmoco/waterbutler/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmoco/waterbutler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmoco/waterbutler/statuses/{sha}","languages_url":"https://api.github.com/repos/hmoco/waterbutler/languages","stargazers_url":"https://api.github.com/repos/hmoco/waterbutler/stargazers","contributors_url":"https://api.github.com/repos/hmoco/waterbutler/contributors","subscribers_url":"https://api.github.com/repos/hmoco/waterbutler/subscribers","subscription_url":"https://api.github.com/repos/hmoco/waterbutler/subscription","commits_url":"https://api.github.com/repos/hmoco/waterbutler/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmoco/waterbutler/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmoco/waterbutler/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmoco/waterbutler/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmoco/waterbutler/contents/{+path}","compare_url":"https://api.github.com/repos/hmoco/waterbutler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmoco/waterbutler/merges","archive_url":"https://api.github.com/repos/hmoco/waterbutler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmoco/waterbutler/downloads","issues_url":"https://api.github.com/repos/hmoco/waterbutler/issues{/number}","pulls_url":"https://api.github.com/repos/hmoco/waterbutler/pulls{/number}","milestones_url":"https://api.github.com/repos/hmoco/waterbutler/milestones{/number}","notifications_url":"https://api.github.com/repos/hmoco/waterbutler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmoco/waterbutler/labels{/name}","releases_url":"https://api.github.com/repos/hmoco/waterbutler/releases{/id}","created_at":"2015-07-08T19:42:40Z","updated_at":"2015-07-08T19:42:40Z","pushed_at":"2015-07-13T20:28:15Z","git_url":"git://github.com/hmoco/waterbutler.git","ssh_url":"git@github.com:hmoco/waterbutler.git","clone_url":"https://github.com/hmoco/waterbutler.git","svn_url":"https://github.com/hmoco/waterbutler","homepage":"http://waterbutler.io","size":1537,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"bdfd06863032a208f58ad3c8518161db49b5171c","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":27130042,"name":"waterbutler","full_name":"CenterForOpenScience/waterbutler","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/waterbutler","description":"","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/waterbutler","forks_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/waterbutler/releases{/id}","created_at":"2014-11-25T14:42:31Z","updated_at":"2015-05-22T00:07:10Z","pushed_at":"2015-07-15T01:45:19Z","git_url":"git://github.com/CenterForOpenScience/waterbutler.git","ssh_url":"git@github.com:CenterForOpenScience/waterbutler.git","clone_url":"https://github.com/CenterForOpenScience/waterbutler.git","svn_url":"https://github.com/CenterForOpenScience/waterbutler","homepage":"http://waterbutler.io","size":3769,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":10,"forks":25,"open_issues":10,"watchers":9,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/waterbutler/pulls/58"},"html":{"href":"https://github.com/CenterForOpenScience/waterbutler/pull/58"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/waterbutler/issues/58"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/waterbutler/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/waterbutler/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/waterbutler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/waterbutler/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/waterbutler/statuses/a05ed722b57700f77ce81d747a1d07da55c2efc4"}}}}