{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/guardian/panda-session/pulls/1","id":41338743,"html_url":"https://github.com/guardian/panda-session/pull/1","diff_url":"https://github.com/guardian/panda-session/pull/1.diff","patch_url":"https://github.com/guardian/panda-session/pull/1.patch","issue_url":"https://api.github.com/repos/guardian/panda-session/issues/1","number":1,"state":"open","locked":false,"title":"Run only one re-auth process at a time to avoid anti-forgery token issues","user":{"login":"theefer","id":36964,"avatar_url":"https://avatars.githubusercontent.com/u/36964?v=3","gravatar_id":"","url":"https://api.github.com/users/theefer","html_url":"https://github.com/theefer","followers_url":"https://api.github.com/users/theefer/followers","following_url":"https://api.github.com/users/theefer/following{/other_user}","gists_url":"https://api.github.com/users/theefer/gists{/gist_id}","starred_url":"https://api.github.com/users/theefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theefer/subscriptions","organizations_url":"https://api.github.com/users/theefer/orgs","repos_url":"https://api.github.com/users/theefer/repos","events_url":"https://api.github.com/users/theefer/events{/privacy}","received_events_url":"https://api.github.com/users/theefer/received_events","type":"User","site_admin":false},"body":"If multiple reEstablish requests are done while one reAuth is already ongoing, hand back the same promise to avoid concurrent reAuth which causes 500 errors due to anti-forgery tokens race conditions.\r\n\r\nWe hope this will fix some issues with reAuth failing, esp in the infinite scrolling in Grid.","created_at":"2015-07-31T13:24:19Z","updated_at":"2015-07-31T13:24:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/guardian/panda-session/pulls/1/commits","review_comments_url":"https://api.github.com/repos/guardian/panda-session/pulls/1/comments","review_comment_url":"https://api.github.com/repos/guardian/panda-session/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guardian/panda-session/issues/1/comments","statuses_url":"https://api.github.com/repos/guardian/panda-session/statuses/2749646c7b16ef0401b2cfa364dbc0d90237ff9a","head":{"label":"guardian:sc-re-auth-one-at-a-time","ref":"sc-re-auth-one-at-a-time","sha":"2749646c7b16ef0401b2cfa364dbc0d90237ff9a","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":27497274,"name":"panda-session","full_name":"guardian/panda-session","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/panda-session","description":"Helper JavaScript library to re-establish a pan-domain auth (aka panda) session","fork":false,"url":"https://api.github.com/repos/guardian/panda-session","forks_url":"https://api.github.com/repos/guardian/panda-session/forks","keys_url":"https://api.github.com/repos/guardian/panda-session/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/panda-session/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/panda-session/teams","hooks_url":"https://api.github.com/repos/guardian/panda-session/hooks","issue_events_url":"https://api.github.com/repos/guardian/panda-session/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/panda-session/events","assignees_url":"https://api.github.com/repos/guardian/panda-session/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/panda-session/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/panda-session/tags","blobs_url":"https://api.github.com/repos/guardian/panda-session/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/panda-session/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/panda-session/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/panda-session/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/panda-session/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/panda-session/languages","stargazers_url":"https://api.github.com/repos/guardian/panda-session/stargazers","contributors_url":"https://api.github.com/repos/guardian/panda-session/contributors","subscribers_url":"https://api.github.com/repos/guardian/panda-session/subscribers","subscription_url":"https://api.github.com/repos/guardian/panda-session/subscription","commits_url":"https://api.github.com/repos/guardian/panda-session/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/panda-session/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/panda-session/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/panda-session/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/panda-session/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/panda-session/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/panda-session/merges","archive_url":"https://api.github.com/repos/guardian/panda-session/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/panda-session/downloads","issues_url":"https://api.github.com/repos/guardian/panda-session/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/panda-session/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/panda-session/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/panda-session/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/panda-session/labels{/name}","releases_url":"https://api.github.com/repos/guardian/panda-session/releases{/id}","created_at":"2014-12-03T16:50:45Z","updated_at":"2014-12-03T16:51:44Z","pushed_at":"2015-07-31T13:22:49Z","git_url":"git://github.com/guardian/panda-session.git","ssh_url":"git@github.com:guardian/panda-session.git","clone_url":"https://github.com/guardian/panda-session.git","svn_url":"https://github.com/guardian/panda-session","homepage":null,"size":128,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"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":"master"}},"base":{"label":"guardian:master","ref":"master","sha":"db4089cf8db93e6f7235cbdfdd0893a5acd07fa2","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":27497274,"name":"panda-session","full_name":"guardian/panda-session","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/panda-session","description":"Helper JavaScript library to re-establish a pan-domain auth (aka panda) session","fork":false,"url":"https://api.github.com/repos/guardian/panda-session","forks_url":"https://api.github.com/repos/guardian/panda-session/forks","keys_url":"https://api.github.com/repos/guardian/panda-session/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/panda-session/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/panda-session/teams","hooks_url":"https://api.github.com/repos/guardian/panda-session/hooks","issue_events_url":"https://api.github.com/repos/guardian/panda-session/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/panda-session/events","assignees_url":"https://api.github.com/repos/guardian/panda-session/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/panda-session/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/panda-session/tags","blobs_url":"https://api.github.com/repos/guardian/panda-session/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/panda-session/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/panda-session/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/panda-session/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/panda-session/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/panda-session/languages","stargazers_url":"https://api.github.com/repos/guardian/panda-session/stargazers","contributors_url":"https://api.github.com/repos/guardian/panda-session/contributors","subscribers_url":"https://api.github.com/repos/guardian/panda-session/subscribers","subscription_url":"https://api.github.com/repos/guardian/panda-session/subscription","commits_url":"https://api.github.com/repos/guardian/panda-session/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/panda-session/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/panda-session/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/panda-session/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/panda-session/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/panda-session/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/panda-session/merges","archive_url":"https://api.github.com/repos/guardian/panda-session/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/panda-session/downloads","issues_url":"https://api.github.com/repos/guardian/panda-session/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/panda-session/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/panda-session/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/panda-session/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/panda-session/labels{/name}","releases_url":"https://api.github.com/repos/guardian/panda-session/releases{/id}","created_at":"2014-12-03T16:50:45Z","updated_at":"2014-12-03T16:51:44Z","pushed_at":"2015-07-31T13:22:49Z","git_url":"git://github.com/guardian/panda-session.git","ssh_url":"git@github.com:guardian/panda-session.git","clone_url":"https://github.com/guardian/panda-session.git","svn_url":"https://github.com/guardian/panda-session","homepage":null,"size":128,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guardian/panda-session/pulls/1"},"html":{"href":"https://github.com/guardian/panda-session/pull/1"},"issue":{"href":"https://api.github.com/repos/guardian/panda-session/issues/1"},"comments":{"href":"https://api.github.com/repos/guardian/panda-session/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/guardian/panda-session/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/guardian/panda-session/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guardian/panda-session/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/guardian/panda-session/statuses/2749646c7b16ef0401b2cfa364dbc0d90237ff9a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":22,"deletions":1,"changed_files":1}}