{"action":"closed","number":43,"pull_request":{"url":"https://api.github.com/repos/Financial-Times/ads-api/pulls/43","id":71054482,"html_url":"https://github.com/Financial-Times/ads-api/pull/43","diff_url":"https://github.com/Financial-Times/ads-api/pull/43.diff","patch_url":"https://github.com/Financial-Times/ads-api/pull/43.patch","issue_url":"https://api.github.com/repos/Financial-Times/ads-api/issues/43","number":43,"state":"closed","locked":false,"title":"Respond with empty object for anonymous","user":{"login":"adgad","id":1978880,"avatar_url":"https://avatars.githubusercontent.com/u/1978880?v=3","gravatar_id":"","url":"https://api.github.com/users/adgad","html_url":"https://github.com/adgad","followers_url":"https://api.github.com/users/adgad/followers","following_url":"https://api.github.com/users/adgad/following{/other_user}","gists_url":"https://api.github.com/users/adgad/gists{/gist_id}","starred_url":"https://api.github.com/users/adgad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adgad/subscriptions","organizations_url":"https://api.github.com/users/adgad/orgs","repos_url":"https://api.github.com/users/adgad/repos","events_url":"https://api.github.com/users/adgad/events{/privacy}","received_events_url":"https://api.github.com/users/adgad/received_events","type":"User","site_admin":false},"body":"/cc @VladDubrovskis @leggsimon @andrewgeorgiou1981 \r\n\r\nRespond with a 200 and empty object for non-signed-in users.\r\n\r\nThis is because eventually we can return some other targeting for anonymous, and also fastly strips out the CORS headers for 40* responses.","created_at":"2016-05-23T12:43:57Z","updated_at":"2016-05-23T12:48:56Z","closed_at":"2016-05-23T12:48:56Z","merged_at":"2016-05-23T12:48:56Z","merge_commit_sha":"6a8697bcd1ca8f5534447389c08afe7bcb69c082","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/ads-api/pulls/43/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/ads-api/pulls/43/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/ads-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/ads-api/issues/43/comments","statuses_url":"https://api.github.com/repos/Financial-Times/ads-api/statuses/e77befd5b00efffddea9dd64773c9a275d3d7ac7","head":{"label":"Financial-Times:200-for-anon","ref":"200-for-anon","sha":"e77befd5b00efffddea9dd64773c9a275d3d7ac7","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":52274514,"name":"ads-api","full_name":"Financial-Times/ads-api","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/ads-api","description":"API to get targeting info for advertising on Next","fork":false,"url":"https://api.github.com/repos/Financial-Times/ads-api","forks_url":"https://api.github.com/repos/Financial-Times/ads-api/forks","keys_url":"https://api.github.com/repos/Financial-Times/ads-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/ads-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/ads-api/teams","hooks_url":"https://api.github.com/repos/Financial-Times/ads-api/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/ads-api/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/ads-api/events","assignees_url":"https://api.github.com/repos/Financial-Times/ads-api/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/ads-api/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/ads-api/tags","blobs_url":"https://api.github.com/repos/Financial-Times/ads-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/ads-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/ads-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/ads-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/ads-api/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/ads-api/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/ads-api/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/ads-api/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/ads-api/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/ads-api/subscription","commits_url":"https://api.github.com/repos/Financial-Times/ads-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/ads-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/ads-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/ads-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/ads-api/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/ads-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/ads-api/merges","archive_url":"https://api.github.com/repos/Financial-Times/ads-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/ads-api/downloads","issues_url":"https://api.github.com/repos/Financial-Times/ads-api/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/ads-api/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/ads-api/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/ads-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/ads-api/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/ads-api/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/ads-api/deployments","created_at":"2016-02-22T13:16:09Z","updated_at":"2016-04-07T14:10:28Z","pushed_at":"2016-05-23T12:48:56Z","git_url":"git://github.com/Financial-Times/ads-api.git","ssh_url":"git@github.com:Financial-Times/ads-api.git","clone_url":"https://github.com/Financial-Times/ads-api.git","svn_url":"https://github.com/Financial-Times/ads-api","homepage":null,"size":191,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"9377749627c91e5301268204a4dca80ad88c9dcb","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":52274514,"name":"ads-api","full_name":"Financial-Times/ads-api","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/ads-api","description":"API to get targeting info for advertising on Next","fork":false,"url":"https://api.github.com/repos/Financial-Times/ads-api","forks_url":"https://api.github.com/repos/Financial-Times/ads-api/forks","keys_url":"https://api.github.com/repos/Financial-Times/ads-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/ads-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/ads-api/teams","hooks_url":"https://api.github.com/repos/Financial-Times/ads-api/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/ads-api/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/ads-api/events","assignees_url":"https://api.github.com/repos/Financial-Times/ads-api/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/ads-api/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/ads-api/tags","blobs_url":"https://api.github.com/repos/Financial-Times/ads-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/ads-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/ads-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/ads-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/ads-api/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/ads-api/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/ads-api/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/ads-api/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/ads-api/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/ads-api/subscription","commits_url":"https://api.github.com/repos/Financial-Times/ads-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/ads-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/ads-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/ads-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/ads-api/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/ads-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/ads-api/merges","archive_url":"https://api.github.com/repos/Financial-Times/ads-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/ads-api/downloads","issues_url":"https://api.github.com/repos/Financial-Times/ads-api/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/ads-api/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/ads-api/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/ads-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/ads-api/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/ads-api/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/ads-api/deployments","created_at":"2016-02-22T13:16:09Z","updated_at":"2016-04-07T14:10:28Z","pushed_at":"2016-05-23T12:48:56Z","git_url":"git://github.com/Financial-Times/ads-api.git","ssh_url":"git@github.com:Financial-Times/ads-api.git","clone_url":"https://github.com/Financial-Times/ads-api.git","svn_url":"https://github.com/Financial-Times/ads-api","homepage":null,"size":191,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/ads-api/pulls/43"},"html":{"href":"https://github.com/Financial-Times/ads-api/pull/43"},"issue":{"href":"https://api.github.com/repos/Financial-Times/ads-api/issues/43"},"comments":{"href":"https://api.github.com/repos/Financial-Times/ads-api/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/ads-api/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/ads-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/ads-api/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/ads-api/statuses/e77befd5b00efffddea9dd64773c9a275d3d7ac7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"adgad","id":1978880,"avatar_url":"https://avatars.githubusercontent.com/u/1978880?v=3","gravatar_id":"","url":"https://api.github.com/users/adgad","html_url":"https://github.com/adgad","followers_url":"https://api.github.com/users/adgad/followers","following_url":"https://api.github.com/users/adgad/following{/other_user}","gists_url":"https://api.github.com/users/adgad/gists{/gist_id}","starred_url":"https://api.github.com/users/adgad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adgad/subscriptions","organizations_url":"https://api.github.com/users/adgad/orgs","repos_url":"https://api.github.com/users/adgad/repos","events_url":"https://api.github.com/users/adgad/events{/privacy}","received_events_url":"https://api.github.com/users/adgad/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":12,"deletions":16,"changed_files":4}}
{"actor":{"display_login":"adgad"}}