{"action":"opened","number":49,"pull_request":{"url":"https://api.github.com/repos/mothership-ec/cog-user/pulls/49","id":44338163,"html_url":"https://github.com/mothership-ec/cog-user/pull/49","diff_url":"https://github.com/mothership-ec/cog-user/pull/49.diff","patch_url":"https://github.com/mothership-ec/cog-user/pull/49.patch","issue_url":"https://api.github.com/repos/mothership-ec/cog-user/issues/49","number":49,"state":"open","locked":false,"title":"Better checks for user loading from session","user":{"login":"thomasjthomasj","id":4520924,"avatar_url":"https://avatars.githubusercontent.com/u/4520924?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasjthomasj","html_url":"https://github.com/thomasjthomasj","followers_url":"https://api.github.com/users/thomasjthomasj/followers","following_url":"https://api.github.com/users/thomasjthomasj/following{/other_user}","gists_url":"https://api.github.com/users/thomasjthomasj/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasjthomasj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasjthomasj/subscriptions","organizations_url":"https://api.github.com/users/thomasjthomasj/orgs","repos_url":"https://api.github.com/users/thomasjthomasj/repos","events_url":"https://api.github.com/users/thomasjthomasj/events{/privacy}","received_events_url":"https://api.github.com/users/thomasjthomasj/received_events","type":"User","site_admin":false},"body":"This PR should prevent the issue where sometimes a user is loaded as a string instead of a user instance. If the current user is loaded as a string, it is invalid and so the current user is logged out and anonymous","created_at":"2015-09-07T09:50:15Z","updated_at":"2015-09-07T09:50:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mothership-ec/cog-user/pulls/49/commits","review_comments_url":"https://api.github.com/repos/mothership-ec/cog-user/pulls/49/comments","review_comment_url":"https://api.github.com/repos/mothership-ec/cog-user/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mothership-ec/cog-user/issues/49/comments","statuses_url":"https://api.github.com/repos/mothership-ec/cog-user/statuses/0a67bfd181569537bcf6c5037eecd507c623fddb","head":{"label":"mothership-ec:feature/clean-up-user-session-loading","ref":"feature/clean-up-user-session-loading","sha":"0a67bfd181569537bcf6c5037eecd507c623fddb","user":{"login":"mothership-ec","id":10222458,"avatar_url":"https://avatars.githubusercontent.com/u/10222458?v=3","gravatar_id":"","url":"https://api.github.com/users/mothership-ec","html_url":"https://github.com/mothership-ec","followers_url":"https://api.github.com/users/mothership-ec/followers","following_url":"https://api.github.com/users/mothership-ec/following{/other_user}","gists_url":"https://api.github.com/users/mothership-ec/gists{/gist_id}","starred_url":"https://api.github.com/users/mothership-ec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mothership-ec/subscriptions","organizations_url":"https://api.github.com/users/mothership-ec/orgs","repos_url":"https://api.github.com/users/mothership-ec/repos","events_url":"https://api.github.com/users/mothership-ec/events{/privacy}","received_events_url":"https://api.github.com/users/mothership-ec/received_events","type":"Organization","site_admin":false},"repo":{"id":10304626,"name":"cog-user","full_name":"mothership-ec/cog-user","owner":{"login":"mothership-ec","id":10222458,"avatar_url":"https://avatars.githubusercontent.com/u/10222458?v=3","gravatar_id":"","url":"https://api.github.com/users/mothership-ec","html_url":"https://github.com/mothership-ec","followers_url":"https://api.github.com/users/mothership-ec/followers","following_url":"https://api.github.com/users/mothership-ec/following{/other_user}","gists_url":"https://api.github.com/users/mothership-ec/gists{/gist_id}","starred_url":"https://api.github.com/users/mothership-ec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mothership-ec/subscriptions","organizations_url":"https://api.github.com/users/mothership-ec/orgs","repos_url":"https://api.github.com/users/mothership-ec/repos","events_url":"https://api.github.com/users/mothership-ec/events{/privacy}","received_events_url":"https://api.github.com/users/mothership-ec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mothership-ec/cog-user","description":"User Cogule","fork":false,"url":"https://api.github.com/repos/mothership-ec/cog-user","forks_url":"https://api.github.com/repos/mothership-ec/cog-user/forks","keys_url":"https://api.github.com/repos/mothership-ec/cog-user/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mothership-ec/cog-user/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mothership-ec/cog-user/teams","hooks_url":"https://api.github.com/repos/mothership-ec/cog-user/hooks","issue_events_url":"https://api.github.com/repos/mothership-ec/cog-user/issues/events{/number}","events_url":"https://api.github.com/repos/mothership-ec/cog-user/events","assignees_url":"https://api.github.com/repos/mothership-ec/cog-user/assignees{/user}","branches_url":"https://api.github.com/repos/mothership-ec/cog-user/branches{/branch}","tags_url":"https://api.github.com/repos/mothership-ec/cog-user/tags","blobs_url":"https://api.github.com/repos/mothership-ec/cog-user/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mothership-ec/cog-user/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mothership-ec/cog-user/git/refs{/sha}","trees_url":"https://api.github.com/repos/mothership-ec/cog-user/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mothership-ec/cog-user/statuses/{sha}","languages_url":"https://api.github.com/repos/mothership-ec/cog-user/languages","stargazers_url":"https://api.github.com/repos/mothership-ec/cog-user/stargazers","contributors_url":"https://api.github.com/repos/mothership-ec/cog-user/contributors","subscribers_url":"https://api.github.com/repos/mothership-ec/cog-user/subscribers","subscription_url":"https://api.github.com/repos/mothership-ec/cog-user/subscription","commits_url":"https://api.github.com/repos/mothership-ec/cog-user/commits{/sha}","git_commits_url":"https://api.github.com/repos/mothership-ec/cog-user/git/commits{/sha}","comments_url":"https://api.github.com/repos/mothership-ec/cog-user/comments{/number}","issue_comment_url":"https://api.github.com/repos/mothership-ec/cog-user/issues/comments{/number}","contents_url":"https://api.github.com/repos/mothership-ec/cog-user/contents/{+path}","compare_url":"https://api.github.com/repos/mothership-ec/cog-user/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mothership-ec/cog-user/merges","archive_url":"https://api.github.com/repos/mothership-ec/cog-user/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mothership-ec/cog-user/downloads","issues_url":"https://api.github.com/repos/mothership-ec/cog-user/issues{/number}","pulls_url":"https://api.github.com/repos/mothership-ec/cog-user/pulls{/number}","milestones_url":"https://api.github.com/repos/mothership-ec/cog-user/milestones{/number}","notifications_url":"https://api.github.com/repos/mothership-ec/cog-user/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mothership-ec/cog-user/labels{/name}","releases_url":"https://api.github.com/repos/mothership-ec/cog-user/releases{/id}","created_at":"2013-05-26T22:51:23Z","updated_at":"2015-02-24T16:12:01Z","pushed_at":"2015-09-07T09:49:14Z","git_url":"git://github.com/mothership-ec/cog-user.git","ssh_url":"git@github.com:mothership-ec/cog-user.git","clone_url":"https://github.com/mothership-ec/cog-user.git","svn_url":"https://github.com/mothership-ec/cog-user","homepage":null,"size":1033,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":1,"default_branch":"develop"}},"base":{"label":"mothership-ec:develop","ref":"develop","sha":"c0bbd225f2a692b12f9aa0bf7a540cc5ec3efd91","user":{"login":"mothership-ec","id":10222458,"avatar_url":"https://avatars.githubusercontent.com/u/10222458?v=3","gravatar_id":"","url":"https://api.github.com/users/mothership-ec","html_url":"https://github.com/mothership-ec","followers_url":"https://api.github.com/users/mothership-ec/followers","following_url":"https://api.github.com/users/mothership-ec/following{/other_user}","gists_url":"https://api.github.com/users/mothership-ec/gists{/gist_id}","starred_url":"https://api.github.com/users/mothership-ec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mothership-ec/subscriptions","organizations_url":"https://api.github.com/users/mothership-ec/orgs","repos_url":"https://api.github.com/users/mothership-ec/repos","events_url":"https://api.github.com/users/mothership-ec/events{/privacy}","received_events_url":"https://api.github.com/users/mothership-ec/received_events","type":"Organization","site_admin":false},"repo":{"id":10304626,"name":"cog-user","full_name":"mothership-ec/cog-user","owner":{"login":"mothership-ec","id":10222458,"avatar_url":"https://avatars.githubusercontent.com/u/10222458?v=3","gravatar_id":"","url":"https://api.github.com/users/mothership-ec","html_url":"https://github.com/mothership-ec","followers_url":"https://api.github.com/users/mothership-ec/followers","following_url":"https://api.github.com/users/mothership-ec/following{/other_user}","gists_url":"https://api.github.com/users/mothership-ec/gists{/gist_id}","starred_url":"https://api.github.com/users/mothership-ec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mothership-ec/subscriptions","organizations_url":"https://api.github.com/users/mothership-ec/orgs","repos_url":"https://api.github.com/users/mothership-ec/repos","events_url":"https://api.github.com/users/mothership-ec/events{/privacy}","received_events_url":"https://api.github.com/users/mothership-ec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mothership-ec/cog-user","description":"User Cogule","fork":false,"url":"https://api.github.com/repos/mothership-ec/cog-user","forks_url":"https://api.github.com/repos/mothership-ec/cog-user/forks","keys_url":"https://api.github.com/repos/mothership-ec/cog-user/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mothership-ec/cog-user/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mothership-ec/cog-user/teams","hooks_url":"https://api.github.com/repos/mothership-ec/cog-user/hooks","issue_events_url":"https://api.github.com/repos/mothership-ec/cog-user/issues/events{/number}","events_url":"https://api.github.com/repos/mothership-ec/cog-user/events","assignees_url":"https://api.github.com/repos/mothership-ec/cog-user/assignees{/user}","branches_url":"https://api.github.com/repos/mothership-ec/cog-user/branches{/branch}","tags_url":"https://api.github.com/repos/mothership-ec/cog-user/tags","blobs_url":"https://api.github.com/repos/mothership-ec/cog-user/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mothership-ec/cog-user/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mothership-ec/cog-user/git/refs{/sha}","trees_url":"https://api.github.com/repos/mothership-ec/cog-user/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mothership-ec/cog-user/statuses/{sha}","languages_url":"https://api.github.com/repos/mothership-ec/cog-user/languages","stargazers_url":"https://api.github.com/repos/mothership-ec/cog-user/stargazers","contributors_url":"https://api.github.com/repos/mothership-ec/cog-user/contributors","subscribers_url":"https://api.github.com/repos/mothership-ec/cog-user/subscribers","subscription_url":"https://api.github.com/repos/mothership-ec/cog-user/subscription","commits_url":"https://api.github.com/repos/mothership-ec/cog-user/commits{/sha}","git_commits_url":"https://api.github.com/repos/mothership-ec/cog-user/git/commits{/sha}","comments_url":"https://api.github.com/repos/mothership-ec/cog-user/comments{/number}","issue_comment_url":"https://api.github.com/repos/mothership-ec/cog-user/issues/comments{/number}","contents_url":"https://api.github.com/repos/mothership-ec/cog-user/contents/{+path}","compare_url":"https://api.github.com/repos/mothership-ec/cog-user/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mothership-ec/cog-user/merges","archive_url":"https://api.github.com/repos/mothership-ec/cog-user/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mothership-ec/cog-user/downloads","issues_url":"https://api.github.com/repos/mothership-ec/cog-user/issues{/number}","pulls_url":"https://api.github.com/repos/mothership-ec/cog-user/pulls{/number}","milestones_url":"https://api.github.com/repos/mothership-ec/cog-user/milestones{/number}","notifications_url":"https://api.github.com/repos/mothership-ec/cog-user/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mothership-ec/cog-user/labels{/name}","releases_url":"https://api.github.com/repos/mothership-ec/cog-user/releases{/id}","created_at":"2013-05-26T22:51:23Z","updated_at":"2015-02-24T16:12:01Z","pushed_at":"2015-09-07T09:49:14Z","git_url":"git://github.com/mothership-ec/cog-user.git","ssh_url":"git@github.com:mothership-ec/cog-user.git","clone_url":"https://github.com/mothership-ec/cog-user.git","svn_url":"https://github.com/mothership-ec/cog-user","homepage":null,"size":1033,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/mothership-ec/cog-user/pulls/49"},"html":{"href":"https://github.com/mothership-ec/cog-user/pull/49"},"issue":{"href":"https://api.github.com/repos/mothership-ec/cog-user/issues/49"},"comments":{"href":"https://api.github.com/repos/mothership-ec/cog-user/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/mothership-ec/cog-user/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/mothership-ec/cog-user/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mothership-ec/cog-user/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/mothership-ec/cog-user/statuses/0a67bfd181569537bcf6c5037eecd507c623fddb"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":4,"changed_files":2}}