{"action":"closed","number":7171,"pull_request":{"url":"https://api.github.com/repos/DoSomething/phoenix/pulls/7171","id":92216647,"html_url":"https://github.com/DoSomething/phoenix/pull/7171","diff_url":"https://github.com/DoSomething/phoenix/pull/7171.diff","patch_url":"https://github.com/DoSomething/phoenix/pull/7171.patch","issue_url":"https://api.github.com/repos/DoSomething/phoenix/issues/7171","number":7171,"state":"closed","locked":false,"title":"Fix errors when trying to output analytics for anonymous users.","user":{"login":"DFurnes","id":583202,"avatar_url":"https://avatars.githubusercontent.com/u/583202?v=3","gravatar_id":"","url":"https://api.github.com/users/DFurnes","html_url":"https://github.com/DFurnes","followers_url":"https://api.github.com/users/DFurnes/followers","following_url":"https://api.github.com/users/DFurnes/following{/other_user}","gists_url":"https://api.github.com/users/DFurnes/gists{/gist_id}","starred_url":"https://api.github.com/users/DFurnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFurnes/subscriptions","organizations_url":"https://api.github.com/users/DFurnes/orgs","repos_url":"https://api.github.com/users/DFurnes/repos","events_url":"https://api.github.com/users/DFurnes/events{/privacy}","received_events_url":"https://api.github.com/users/DFurnes/received_events","type":"User","site_admin":false},"body":"#### What's this PR do?\r\nThis fixes an error introduced in #7170 if the user doesn't have the session key set:\r\n\r\n![screen shot 2016-11-03 at 2 45 53 pm](https://cloud.githubusercontent.com/assets/583202/19980415/4f130d28-a1d4-11e6-80ee-d5270334ea0c.png)\r\n\r\nI also fixed a bunch of calls to the old `sendEvent` function, double-whoops!\r\n\r\n#### How should this be reviewed?\r\n👀\r\n\r\n#### Any background context you want to provide?\r\n💣\r\n\r\n#### Relevant tickets\r\nFixes 🐛.\r\n\r\n#### Checklist\r\n- [ ] Documentation added for new features/changed endpoints.\r\n- [ ] Tested on staging.\r\n- [ ] Pinged a PM if this is a larger PR that would benefit from some additional testing love\r\n- [ ] Post a message in #phoenix if this includes something that causes a rebuild!  \r\n\r\n","created_at":"2016-11-03T18:46:46Z","updated_at":"2016-11-03T19:20:56Z","closed_at":"2016-11-03T19:20:56Z","merged_at":"2016-11-03T19:20:56Z","merge_commit_sha":"74ce9da391b928774e275bade39b808420d36463","assignee":{"login":"weerd","id":105849,"avatar_url":"https://avatars.githubusercontent.com/u/105849?v=3","gravatar_id":"","url":"https://api.github.com/users/weerd","html_url":"https://github.com/weerd","followers_url":"https://api.github.com/users/weerd/followers","following_url":"https://api.github.com/users/weerd/following{/other_user}","gists_url":"https://api.github.com/users/weerd/gists{/gist_id}","starred_url":"https://api.github.com/users/weerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weerd/subscriptions","organizations_url":"https://api.github.com/users/weerd/orgs","repos_url":"https://api.github.com/users/weerd/repos","events_url":"https://api.github.com/users/weerd/events{/privacy}","received_events_url":"https://api.github.com/users/weerd/received_events","type":"User","site_admin":false},"assignees":[{"login":"weerd","id":105849,"avatar_url":"https://avatars.githubusercontent.com/u/105849?v=3","gravatar_id":"","url":"https://api.github.com/users/weerd","html_url":"https://github.com/weerd","followers_url":"https://api.github.com/users/weerd/followers","following_url":"https://api.github.com/users/weerd/following{/other_user}","gists_url":"https://api.github.com/users/weerd/gists{/gist_id}","starred_url":"https://api.github.com/users/weerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weerd/subscriptions","organizations_url":"https://api.github.com/users/weerd/orgs","repos_url":"https://api.github.com/users/weerd/repos","events_url":"https://api.github.com/users/weerd/events{/privacy}","received_events_url":"https://api.github.com/users/weerd/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/DoSomething/phoenix/pulls/7171/commits","review_comments_url":"https://api.github.com/repos/DoSomething/phoenix/pulls/7171/comments","review_comment_url":"https://api.github.com/repos/DoSomething/phoenix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DoSomething/phoenix/issues/7171/comments","statuses_url":"https://api.github.com/repos/DoSomething/phoenix/statuses/2f8b238c8dab660ad5c7c9018de3d5c38328aaab","head":{"label":"DFurnes:analytics-no-sesh","ref":"analytics-no-sesh","sha":"2f8b238c8dab660ad5c7c9018de3d5c38328aaab","user":{"login":"DFurnes","id":583202,"avatar_url":"https://avatars.githubusercontent.com/u/583202?v=3","gravatar_id":"","url":"https://api.github.com/users/DFurnes","html_url":"https://github.com/DFurnes","followers_url":"https://api.github.com/users/DFurnes/followers","following_url":"https://api.github.com/users/DFurnes/following{/other_user}","gists_url":"https://api.github.com/users/DFurnes/gists{/gist_id}","starred_url":"https://api.github.com/users/DFurnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFurnes/subscriptions","organizations_url":"https://api.github.com/users/DFurnes/orgs","repos_url":"https://api.github.com/users/DFurnes/repos","events_url":"https://api.github.com/users/DFurnes/events{/privacy}","received_events_url":"https://api.github.com/users/DFurnes/received_events","type":"User","site_admin":false},"repo":{"id":23975099,"name":"phoenix","full_name":"DFurnes/phoenix","owner":{"login":"DFurnes","id":583202,"avatar_url":"https://avatars.githubusercontent.com/u/583202?v=3","gravatar_id":"","url":"https://api.github.com/users/DFurnes","html_url":"https://github.com/DFurnes","followers_url":"https://api.github.com/users/DFurnes/followers","following_url":"https://api.github.com/users/DFurnes/following{/other_user}","gists_url":"https://api.github.com/users/DFurnes/gists{/gist_id}","starred_url":"https://api.github.com/users/DFurnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFurnes/subscriptions","organizations_url":"https://api.github.com/users/DFurnes/orgs","repos_url":"https://api.github.com/users/DFurnes/repos","events_url":"https://api.github.com/users/DFurnes/events{/privacy}","received_events_url":"https://api.github.com/users/DFurnes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DFurnes/phoenix","description":"A Drupal 7 distribution that powers the DoSomething.org web platform.","fork":true,"url":"https://api.github.com/repos/DFurnes/phoenix","forks_url":"https://api.github.com/repos/DFurnes/phoenix/forks","keys_url":"https://api.github.com/repos/DFurnes/phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DFurnes/phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DFurnes/phoenix/teams","hooks_url":"https://api.github.com/repos/DFurnes/phoenix/hooks","issue_events_url":"https://api.github.com/repos/DFurnes/phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/DFurnes/phoenix/events","assignees_url":"https://api.github.com/repos/DFurnes/phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/DFurnes/phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/DFurnes/phoenix/tags","blobs_url":"https://api.github.com/repos/DFurnes/phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DFurnes/phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DFurnes/phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/DFurnes/phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DFurnes/phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/DFurnes/phoenix/languages","stargazers_url":"https://api.github.com/repos/DFurnes/phoenix/stargazers","contributors_url":"https://api.github.com/repos/DFurnes/phoenix/contributors","subscribers_url":"https://api.github.com/repos/DFurnes/phoenix/subscribers","subscription_url":"https://api.github.com/repos/DFurnes/phoenix/subscription","commits_url":"https://api.github.com/repos/DFurnes/phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/DFurnes/phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/DFurnes/phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/DFurnes/phoenix/issues/comments{/number}","contents_url":"https://api.github.com/repos/DFurnes/phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/DFurnes/phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DFurnes/phoenix/merges","archive_url":"https://api.github.com/repos/DFurnes/phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DFurnes/phoenix/downloads","issues_url":"https://api.github.com/repos/DFurnes/phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/DFurnes/phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/DFurnes/phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/DFurnes/phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DFurnes/phoenix/labels{/name}","releases_url":"https://api.github.com/repos/DFurnes/phoenix/releases{/id}","deployments_url":"https://api.github.com/repos/DFurnes/phoenix/deployments","created_at":"2014-09-12T20:07:06Z","updated_at":"2016-10-28T16:03:24Z","pushed_at":"2016-11-03T19:03:37Z","git_url":"git://github.com/DFurnes/phoenix.git","ssh_url":"git@github.com:DFurnes/phoenix.git","clone_url":"https://github.com/DFurnes/phoenix.git","svn_url":"https://github.com/DFurnes/phoenix","homepage":"http://www.dosomething.org/","size":19813,"stargazers_count":0,"watchers_count":0,"language":"PHP","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"}},"base":{"label":"DoSomething:dev","ref":"dev","sha":"d8037b8cc10f2d2467ea6aab849c971e458fef58","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":13592927,"name":"phoenix","full_name":"DoSomething/phoenix","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/phoenix","description":":fire: The DoSomething.org website & content API.","fork":false,"url":"https://api.github.com/repos/DoSomething/phoenix","forks_url":"https://api.github.com/repos/DoSomething/phoenix/forks","keys_url":"https://api.github.com/repos/DoSomething/phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/phoenix/teams","hooks_url":"https://api.github.com/repos/DoSomething/phoenix/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/phoenix/events","assignees_url":"https://api.github.com/repos/DoSomething/phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/phoenix/tags","blobs_url":"https://api.github.com/repos/DoSomething/phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/phoenix/languages","stargazers_url":"https://api.github.com/repos/DoSomething/phoenix/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/phoenix/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/phoenix/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/phoenix/subscription","commits_url":"https://api.github.com/repos/DoSomething/phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/phoenix/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoSomething/phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/phoenix/merges","archive_url":"https://api.github.com/repos/DoSomething/phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/phoenix/downloads","issues_url":"https://api.github.com/repos/DoSomething/phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/phoenix/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/phoenix/releases{/id}","deployments_url":"https://api.github.com/repos/DoSomething/phoenix/deployments","created_at":"2013-10-15T14:50:48Z","updated_at":"2016-10-24T18:36:11Z","pushed_at":"2016-11-03T19:20:56Z","git_url":"git://github.com/DoSomething/phoenix.git","ssh_url":"git@github.com:DoSomething/phoenix.git","clone_url":"https://github.com/DoSomething/phoenix.git","svn_url":"https://github.com/DoSomething/phoenix","homepage":"http://www.dosomething.org/","size":21091,"stargazers_count":28,"watchers_count":28,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":63,"forks":19,"open_issues":63,"watchers":28,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/7171"},"html":{"href":"https://github.com/DoSomething/phoenix/pull/7171"},"issue":{"href":"https://api.github.com/repos/DoSomething/phoenix/issues/7171"},"comments":{"href":"https://api.github.com/repos/DoSomething/phoenix/issues/7171/comments"},"review_comments":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/7171/comments"},"review_comment":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/7171/commits"},"statuses":{"href":"https://api.github.com/repos/DoSomething/phoenix/statuses/2f8b238c8dab660ad5c7c9018de3d5c38328aaab"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"DFurnes","id":583202,"avatar_url":"https://avatars.githubusercontent.com/u/583202?v=3","gravatar_id":"","url":"https://api.github.com/users/DFurnes","html_url":"https://github.com/DFurnes","followers_url":"https://api.github.com/users/DFurnes/followers","following_url":"https://api.github.com/users/DFurnes/following{/other_user}","gists_url":"https://api.github.com/users/DFurnes/gists{/gist_id}","starred_url":"https://api.github.com/users/DFurnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFurnes/subscriptions","organizations_url":"https://api.github.com/users/DFurnes/orgs","repos_url":"https://api.github.com/users/DFurnes/repos","events_url":"https://api.github.com/users/DFurnes/events{/privacy}","received_events_url":"https://api.github.com/users/DFurnes/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":39,"deletions":25,"changed_files":9}}
{"actor":{"display_login":"DFurnes"}}