{"action":"opened","number":5081,"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5081","id":60997308,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/5081","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/5081.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/5081.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5081","number":5081,"state":"open","locked":false,"title":"[hotfix] fix task queue race condition","user":{"login":"icereval","id":3111541,"avatar_url":"https://avatars.githubusercontent.com/u/3111541?v=3","gravatar_id":"","url":"https://api.github.com/users/icereval","html_url":"https://github.com/icereval","followers_url":"https://api.github.com/users/icereval/followers","following_url":"https://api.github.com/users/icereval/following{/other_user}","gists_url":"https://api.github.com/users/icereval/gists{/gist_id}","starred_url":"https://api.github.com/users/icereval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icereval/subscriptions","organizations_url":"https://api.github.com/users/icereval/orgs","repos_url":"https://api.github.com/users/icereval/repos","events_url":"https://api.github.com/users/icereval/events{/privacy}","received_events_url":"https://api.github.com/users/icereval/received_events","type":"User","site_admin":false},"body":"Multiple threads were causing the tasks queue to be overwritten when a new request was created.\r\n\r\nThough the queue was attached to a threading.local the attribute `queue` was attached directly to the module avoiding any use of the threading.local as it only works when the `__getattribute__` can provide the necessary scoping mechanism to evaluate the current thread and thus return the appropriate object.\r\n\r\nAlso HTTPError `__str__` now matches `__repr__`","created_at":"2016-02-28T16:38:39Z","updated_at":"2016-02-28T16:38:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5081/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5081/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5081/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/17de4af1dbbdf569cf08e692e6e36ae68904a2be","head":{"label":"icereval:hotfix/fix-task-queue-race-condition","ref":"hotfix/fix-task-queue-race-condition","sha":"17de4af1dbbdf569cf08e692e6e36ae68904a2be","user":{"login":"icereval","id":3111541,"avatar_url":"https://avatars.githubusercontent.com/u/3111541?v=3","gravatar_id":"","url":"https://api.github.com/users/icereval","html_url":"https://github.com/icereval","followers_url":"https://api.github.com/users/icereval/followers","following_url":"https://api.github.com/users/icereval/following{/other_user}","gists_url":"https://api.github.com/users/icereval/gists{/gist_id}","starred_url":"https://api.github.com/users/icereval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icereval/subscriptions","organizations_url":"https://api.github.com/users/icereval/orgs","repos_url":"https://api.github.com/users/icereval/repos","events_url":"https://api.github.com/users/icereval/events{/privacy}","received_events_url":"https://api.github.com/users/icereval/received_events","type":"User","site_admin":false},"repo":{"id":26919847,"name":"osf.io","full_name":"icereval/osf.io","owner":{"login":"icereval","id":3111541,"avatar_url":"https://avatars.githubusercontent.com/u/3111541?v=3","gravatar_id":"","url":"https://api.github.com/users/icereval","html_url":"https://github.com/icereval","followers_url":"https://api.github.com/users/icereval/followers","following_url":"https://api.github.com/users/icereval/following{/other_user}","gists_url":"https://api.github.com/users/icereval/gists{/gist_id}","starred_url":"https://api.github.com/users/icereval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icereval/subscriptions","organizations_url":"https://api.github.com/users/icereval/orgs","repos_url":"https://api.github.com/users/icereval/repos","events_url":"https://api.github.com/users/icereval/events{/privacy}","received_events_url":"https://api.github.com/users/icereval/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/icereval/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/icereval/osf.io","forks_url":"https://api.github.com/repos/icereval/osf.io/forks","keys_url":"https://api.github.com/repos/icereval/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/icereval/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/icereval/osf.io/teams","hooks_url":"https://api.github.com/repos/icereval/osf.io/hooks","issue_events_url":"https://api.github.com/repos/icereval/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/icereval/osf.io/events","assignees_url":"https://api.github.com/repos/icereval/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/icereval/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/icereval/osf.io/tags","blobs_url":"https://api.github.com/repos/icereval/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/icereval/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/icereval/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/icereval/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/icereval/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/icereval/osf.io/languages","stargazers_url":"https://api.github.com/repos/icereval/osf.io/stargazers","contributors_url":"https://api.github.com/repos/icereval/osf.io/contributors","subscribers_url":"https://api.github.com/repos/icereval/osf.io/subscribers","subscription_url":"https://api.github.com/repos/icereval/osf.io/subscription","commits_url":"https://api.github.com/repos/icereval/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/icereval/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/icereval/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/icereval/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/icereval/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/icereval/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/icereval/osf.io/merges","archive_url":"https://api.github.com/repos/icereval/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/icereval/osf.io/downloads","issues_url":"https://api.github.com/repos/icereval/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/icereval/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/icereval/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/icereval/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/icereval/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/icereval/osf.io/releases{/id}","deployments_url":"https://api.github.com/repos/icereval/osf.io/deployments","created_at":"2014-11-20T15:59:03Z","updated_at":"2015-04-12T00:17:24Z","pushed_at":"2016-02-28T16:31:59Z","git_url":"git://github.com/icereval/osf.io.git","ssh_url":"git@github.com:icereval/osf.io.git","clone_url":"https://github.com/icereval/osf.io.git","svn_url":"https://github.com/icereval/osf.io","homepage":"http://osf.io","size":208174,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:master","ref":"master","sha":"c5b797115bf9fc68798896028288e30a3e2cb7df","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":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","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/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","deployments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/deployments","created_at":"2013-05-21T15:53:37Z","updated_at":"2016-02-25T22:09:02Z","pushed_at":"2016-02-28T16:38:39Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":266549,"stargazers_count":195,"watchers_count":195,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":149,"mirror_url":null,"open_issues_count":331,"forks":149,"open_issues":331,"watchers":195,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5081"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/5081"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5081"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/5081/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5081/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/5081/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/17de4af1dbbdf569cf08e692e6e36ae68904a2be"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":17,"deletions":19,"changed_files":3}}