{"action":"closed","number":1248,"pull_request":{"url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/pulls/1248","id":85122422,"html_url":"https://github.com/Sage-Bionetworks/BridgePF/pull/1248","diff_url":"https://github.com/Sage-Bionetworks/BridgePF/pull/1248.diff","patch_url":"https://github.com/Sage-Bionetworks/BridgePF/pull/1248.patch","issue_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/issues/1248","number":1248,"state":"closed","locked":false,"title":"Upload dedupe logic for completed uploads","user":{"login":"DwayneJengSage","id":9541190,"avatar_url":"https://avatars.githubusercontent.com/u/9541190?v=3","gravatar_id":"","url":"https://api.github.com/users/DwayneJengSage","html_url":"https://github.com/DwayneJengSage","followers_url":"https://api.github.com/users/DwayneJengSage/followers","following_url":"https://api.github.com/users/DwayneJengSage/following{/other_user}","gists_url":"https://api.github.com/users/DwayneJengSage/gists{/gist_id}","starred_url":"https://api.github.com/users/DwayneJengSage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DwayneJengSage/subscriptions","organizations_url":"https://api.github.com/users/DwayneJengSage/orgs","repos_url":"https://api.github.com/users/DwayneJengSage/repos","events_url":"https://api.github.com/users/DwayneJengSage/events{/privacy}","received_events_url":"https://api.github.com/users/DwayneJengSage/received_events","type":"User","site_admin":false},"body":"Part of https://sagebionetworks.jira.com/browse/BRIDGE-468\r\n\r\nDedupe logic currently only applies to requested incomplete uploads. In some cases, we have duplicate uploads for uploads that are already complete. This change allows us to dedupe uploads that have already been completed.\r\n\r\nThis works by, when we create an upload, if we detect it as a dupe (based on healthCode and MD5 hash within the last 7 days), we'll tag the upload with the dupe upload ID. Then when the upload is completed, if it's a dupe, we ignore it. This allows apps to continue their existing workflow of request-upload-complete, but we don't end up with duplicate uploads.\r\n\r\nTesting done:\r\n* ran updated Upload unit tests\r\n* upload integ test\r\n* manual tests\r\n\r\nManual test cases:\r\n* not a dupe\r\n* dupe of requested incomplete upload\r\n* dupe of completed upload\r\n* dupe of completed upload, but passes study whitelist","created_at":"2016-09-13T20:48:36Z","updated_at":"2016-09-14T23:46:24Z","closed_at":"2016-09-14T23:46:24Z","merged_at":"2016-09-14T23:46:24Z","merge_commit_sha":"ac49973b92a057baea986313b0ae126e073181c5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/pulls/1248/commits","review_comments_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/pulls/1248/comments","review_comment_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/issues/1248/comments","statuses_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/statuses/0ce22cf59cc5c93e620f0df08b375f5d84ebb637","head":{"label":"DwayneJengSage:dev-djeng2","ref":"dev-djeng2","sha":"0ce22cf59cc5c93e620f0df08b375f5d84ebb637","user":{"login":"DwayneJengSage","id":9541190,"avatar_url":"https://avatars.githubusercontent.com/u/9541190?v=3","gravatar_id":"","url":"https://api.github.com/users/DwayneJengSage","html_url":"https://github.com/DwayneJengSage","followers_url":"https://api.github.com/users/DwayneJengSage/followers","following_url":"https://api.github.com/users/DwayneJengSage/following{/other_user}","gists_url":"https://api.github.com/users/DwayneJengSage/gists{/gist_id}","starred_url":"https://api.github.com/users/DwayneJengSage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DwayneJengSage/subscriptions","organizations_url":"https://api.github.com/users/DwayneJengSage/orgs","repos_url":"https://api.github.com/users/DwayneJengSage/repos","events_url":"https://api.github.com/users/DwayneJengSage/events{/privacy}","received_events_url":"https://api.github.com/users/DwayneJengSage/received_events","type":"User","site_admin":false},"repo":{"id":26144291,"name":"BridgePF","full_name":"DwayneJengSage/BridgePF","owner":{"login":"DwayneJengSage","id":9541190,"avatar_url":"https://avatars.githubusercontent.com/u/9541190?v=3","gravatar_id":"","url":"https://api.github.com/users/DwayneJengSage","html_url":"https://github.com/DwayneJengSage","followers_url":"https://api.github.com/users/DwayneJengSage/followers","following_url":"https://api.github.com/users/DwayneJengSage/following{/other_user}","gists_url":"https://api.github.com/users/DwayneJengSage/gists{/gist_id}","starred_url":"https://api.github.com/users/DwayneJengSage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DwayneJengSage/subscriptions","organizations_url":"https://api.github.com/users/DwayneJengSage/orgs","repos_url":"https://api.github.com/users/DwayneJengSage/repos","events_url":"https://api.github.com/users/DwayneJengSage/events{/privacy}","received_events_url":"https://api.github.com/users/DwayneJengSage/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DwayneJengSage/BridgePF","description":"","fork":true,"url":"https://api.github.com/repos/DwayneJengSage/BridgePF","forks_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/forks","keys_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/teams","hooks_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/hooks","issue_events_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/issues/events{/number}","events_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/events","assignees_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/assignees{/user}","branches_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/branches{/branch}","tags_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/tags","blobs_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/git/refs{/sha}","trees_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/statuses/{sha}","languages_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/languages","stargazers_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/stargazers","contributors_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/contributors","subscribers_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/subscribers","subscription_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/subscription","commits_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/commits{/sha}","git_commits_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/git/commits{/sha}","comments_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/comments{/number}","issue_comment_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/issues/comments{/number}","contents_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/contents/{+path}","compare_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/merges","archive_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/downloads","issues_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/issues{/number}","pulls_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/pulls{/number}","milestones_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/milestones{/number}","notifications_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/labels{/name}","releases_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/releases{/id}","deployments_url":"https://api.github.com/repos/DwayneJengSage/BridgePF/deployments","created_at":"2014-11-03T23:44:49Z","updated_at":"2016-01-14T07:05:20Z","pushed_at":"2016-09-14T22:57:41Z","git_url":"git://github.com/DwayneJengSage/BridgePF.git","ssh_url":"git@github.com:DwayneJengSage/BridgePF.git","clone_url":"https://github.com/DwayneJengSage/BridgePF.git","svn_url":"https://github.com/DwayneJengSage/BridgePF","homepage":null,"size":75301,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"dev-djeng2"}},"base":{"label":"Sage-Bionetworks:develop","ref":"develop","sha":"a9c3e4ea5c9a2efd38a42ecf645d53a51461f242","user":{"login":"Sage-Bionetworks","id":1250897,"avatar_url":"https://avatars.githubusercontent.com/u/1250897?v=3","gravatar_id":"","url":"https://api.github.com/users/Sage-Bionetworks","html_url":"https://github.com/Sage-Bionetworks","followers_url":"https://api.github.com/users/Sage-Bionetworks/followers","following_url":"https://api.github.com/users/Sage-Bionetworks/following{/other_user}","gists_url":"https://api.github.com/users/Sage-Bionetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Sage-Bionetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sage-Bionetworks/subscriptions","organizations_url":"https://api.github.com/users/Sage-Bionetworks/orgs","repos_url":"https://api.github.com/users/Sage-Bionetworks/repos","events_url":"https://api.github.com/users/Sage-Bionetworks/events{/privacy}","received_events_url":"https://api.github.com/users/Sage-Bionetworks/received_events","type":"Organization","site_admin":false},"repo":{"id":18604783,"name":"BridgePF","full_name":"Sage-Bionetworks/BridgePF","owner":{"login":"Sage-Bionetworks","id":1250897,"avatar_url":"https://avatars.githubusercontent.com/u/1250897?v=3","gravatar_id":"","url":"https://api.github.com/users/Sage-Bionetworks","html_url":"https://github.com/Sage-Bionetworks","followers_url":"https://api.github.com/users/Sage-Bionetworks/followers","following_url":"https://api.github.com/users/Sage-Bionetworks/following{/other_user}","gists_url":"https://api.github.com/users/Sage-Bionetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Sage-Bionetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sage-Bionetworks/subscriptions","organizations_url":"https://api.github.com/users/Sage-Bionetworks/orgs","repos_url":"https://api.github.com/users/Sage-Bionetworks/repos","events_url":"https://api.github.com/users/Sage-Bionetworks/events{/privacy}","received_events_url":"https://api.github.com/users/Sage-Bionetworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sage-Bionetworks/BridgePF","description":"Server software for Bridge-based mobile applications","fork":false,"url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF","forks_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/forks","keys_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/teams","hooks_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/hooks","issue_events_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/issues/events{/number}","events_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/events","assignees_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/assignees{/user}","branches_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/branches{/branch}","tags_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/tags","blobs_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/statuses/{sha}","languages_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/languages","stargazers_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/stargazers","contributors_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/contributors","subscribers_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/subscribers","subscription_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/subscription","commits_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/contents/{+path}","compare_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/merges","archive_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/downloads","issues_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/issues{/number}","pulls_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/pulls{/number}","milestones_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/milestones{/number}","notifications_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/labels{/name}","releases_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/releases{/id}","deployments_url":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/deployments","created_at":"2014-04-09T16:38:46Z","updated_at":"2016-05-02T21:48:35Z","pushed_at":"2016-09-14T23:46:24Z","git_url":"git://github.com/Sage-Bionetworks/BridgePF.git","ssh_url":"git@github.com:Sage-Bionetworks/BridgePF.git","clone_url":"https://github.com/Sage-Bionetworks/BridgePF.git","svn_url":"https://github.com/Sage-Bionetworks/BridgePF","homepage":"","size":76047,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":4,"forks":21,"open_issues":4,"watchers":8,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/pulls/1248"},"html":{"href":"https://github.com/Sage-Bionetworks/BridgePF/pull/1248"},"issue":{"href":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/issues/1248"},"comments":{"href":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/issues/1248/comments"},"review_comments":{"href":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/pulls/1248/comments"},"review_comment":{"href":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/pulls/1248/commits"},"statuses":{"href":"https://api.github.com/repos/Sage-Bionetworks/BridgePF/statuses/0ce22cf59cc5c93e620f0df08b375f5d84ebb637"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"DwayneJengSage","id":9541190,"avatar_url":"https://avatars.githubusercontent.com/u/9541190?v=3","gravatar_id":"","url":"https://api.github.com/users/DwayneJengSage","html_url":"https://github.com/DwayneJengSage","followers_url":"https://api.github.com/users/DwayneJengSage/followers","following_url":"https://api.github.com/users/DwayneJengSage/following{/other_user}","gists_url":"https://api.github.com/users/DwayneJengSage/gists{/gist_id}","starred_url":"https://api.github.com/users/DwayneJengSage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DwayneJengSage/subscriptions","organizations_url":"https://api.github.com/users/DwayneJengSage/orgs","repos_url":"https://api.github.com/users/DwayneJengSage/repos","events_url":"https://api.github.com/users/DwayneJengSage/events{/privacy}","received_events_url":"https://api.github.com/users/DwayneJengSage/received_events","type":"User","site_admin":false},"comments":0,"review_comments":1,"commits":2,"additions":172,"deletions":26,"changed_files":12}}
{"actor":{"display_login":"DwayneJengSage"}}