{"action":"created","comment":{"url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/comments/50488121","id":50488121,"diff_hunk":"@@ -0,0 +1,15 @@\n+module Middlewares\n+  class WardenUserLogger\n+    def initialize(app, logger=Rails.logger)\n+      @app = app\n+      @logger = logger\n+    end\n+\n+    def call(env)\n+      warden_user = env['warden'].user","path":"WcaOnRails/lib/middlewares/warden_user_logger.rb","position":9,"original_position":9,"commit_id":"229f43f2ba9fff6aa0f7a4f4f0bb25c2e87de125","original_commit_id":"b694d61f2b62b22ba17628226b41d216ba671cb0","user":{"login":"jfly","id":277474,"avatar_url":"https://avatars.githubusercontent.com/u/277474?v=3","gravatar_id":"","url":"https://api.github.com/users/jfly","html_url":"https://github.com/jfly","followers_url":"https://api.github.com/users/jfly/followers","following_url":"https://api.github.com/users/jfly/following{/other_user}","gists_url":"https://api.github.com/users/jfly/gists{/gist_id}","starred_url":"https://api.github.com/users/jfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfly/subscriptions","organizations_url":"https://api.github.com/users/jfly/orgs","repos_url":"https://api.github.com/users/jfly/repos","events_url":"https://api.github.com/users/jfly/events{/privacy}","received_events_url":"https://api.github.com/users/jfly/received_events","type":"User","site_admin":false},"body":"Oh wow, thanks for going above and beyond with that feature spec!","created_at":"2016-01-22T00:36:18Z","updated_at":"2016-01-22T00:36:18Z","html_url":"https://github.com/cubing/worldcubeassociation.org/pull/341#discussion_r50488121","pull_request_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/341","_links":{"self":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/comments/50488121"},"html":{"href":"https://github.com/cubing/worldcubeassociation.org/pull/341#discussion_r50488121"},"pull_request":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/341"}}},"pull_request":{"url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/341","id":56811025,"html_url":"https://github.com/cubing/worldcubeassociation.org/pull/341","diff_url":"https://github.com/cubing/worldcubeassociation.org/pull/341.diff","patch_url":"https://github.com/cubing/worldcubeassociation.org/pull/341.patch","issue_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/341","number":341,"state":"open","locked":false,"title":"Log user id using middleware","user":{"login":"timhabermaas","id":96054,"avatar_url":"https://avatars.githubusercontent.com/u/96054?v=3","gravatar_id":"","url":"https://api.github.com/users/timhabermaas","html_url":"https://github.com/timhabermaas","followers_url":"https://api.github.com/users/timhabermaas/followers","following_url":"https://api.github.com/users/timhabermaas/following{/other_user}","gists_url":"https://api.github.com/users/timhabermaas/gists{/gist_id}","starred_url":"https://api.github.com/users/timhabermaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timhabermaas/subscriptions","organizations_url":"https://api.github.com/users/timhabermaas/orgs","repos_url":"https://api.github.com/users/timhabermaas/repos","events_url":"https://api.github.com/users/timhabermaas/events{/privacy}","received_events_url":"https://api.github.com/users/timhabermaas/received_events","type":"User","site_admin":false},"body":"@jfly How about this?\r\n\r\nFixes #339.","created_at":"2016-01-21T21:21:38Z","updated_at":"2016-01-22T00:36:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3830beee6908f696acac0770561d26a49f40754","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/341/commits","review_comments_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/341/comments","review_comment_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/341/comments","statuses_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/statuses/229f43f2ba9fff6aa0f7a4f4f0bb25c2e87de125","head":{"label":"timhabermaas:log-user-id","ref":"log-user-id","sha":"229f43f2ba9fff6aa0f7a4f4f0bb25c2e87de125","user":{"login":"timhabermaas","id":96054,"avatar_url":"https://avatars.githubusercontent.com/u/96054?v=3","gravatar_id":"","url":"https://api.github.com/users/timhabermaas","html_url":"https://github.com/timhabermaas","followers_url":"https://api.github.com/users/timhabermaas/followers","following_url":"https://api.github.com/users/timhabermaas/following{/other_user}","gists_url":"https://api.github.com/users/timhabermaas/gists{/gist_id}","starred_url":"https://api.github.com/users/timhabermaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timhabermaas/subscriptions","organizations_url":"https://api.github.com/users/timhabermaas/orgs","repos_url":"https://api.github.com/users/timhabermaas/repos","events_url":"https://api.github.com/users/timhabermaas/events{/privacy}","received_events_url":"https://api.github.com/users/timhabermaas/received_events","type":"User","site_admin":false},"repo":{"id":38443475,"name":"worldcubeassociation.org","full_name":"timhabermaas/worldcubeassociation.org","owner":{"login":"timhabermaas","id":96054,"avatar_url":"https://avatars.githubusercontent.com/u/96054?v=3","gravatar_id":"","url":"https://api.github.com/users/timhabermaas","html_url":"https://github.com/timhabermaas","followers_url":"https://api.github.com/users/timhabermaas/followers","following_url":"https://api.github.com/users/timhabermaas/following{/other_user}","gists_url":"https://api.github.com/users/timhabermaas/gists{/gist_id}","starred_url":"https://api.github.com/users/timhabermaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timhabermaas/subscriptions","organizations_url":"https://api.github.com/users/timhabermaas/orgs","repos_url":"https://api.github.com/users/timhabermaas/repos","events_url":"https://api.github.com/users/timhabermaas/events{/privacy}","received_events_url":"https://api.github.com/users/timhabermaas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timhabermaas/worldcubeassociation.org","description":"[WCA Project] All of the code that runs on worldcubeassociation.org","fork":true,"url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org","forks_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/forks","keys_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/teams","hooks_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/hooks","issue_events_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/issues/events{/number}","events_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/events","assignees_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/assignees{/user}","branches_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/branches{/branch}","tags_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/tags","blobs_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/statuses/{sha}","languages_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/languages","stargazers_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/stargazers","contributors_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/contributors","subscribers_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/subscribers","subscription_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/subscription","commits_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/contents/{+path}","compare_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/merges","archive_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/downloads","issues_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/issues{/number}","pulls_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/pulls{/number}","milestones_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/milestones{/number}","notifications_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/labels{/name}","releases_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/releases{/id}","deployments_url":"https://api.github.com/repos/timhabermaas/worldcubeassociation.org/deployments","created_at":"2015-07-02T16:20:22Z","updated_at":"2015-07-02T16:20:29Z","pushed_at":"2016-01-21T23:52:16Z","git_url":"git://github.com/timhabermaas/worldcubeassociation.org.git","ssh_url":"git@github.com:timhabermaas/worldcubeassociation.org.git","clone_url":"https://github.com/timhabermaas/worldcubeassociation.org.git","svn_url":"https://github.com/timhabermaas/worldcubeassociation.org","homepage":"https://www.worldcubeassociation.org/","size":49759,"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":"master"}},"base":{"label":"cubing:master","ref":"master","sha":"e0bd35d67783ea6bae3c2d40894662b3def19ce1","user":{"login":"cubing","id":1092267,"avatar_url":"https://avatars.githubusercontent.com/u/1092267?v=3","gravatar_id":"","url":"https://api.github.com/users/cubing","html_url":"https://github.com/cubing","followers_url":"https://api.github.com/users/cubing/followers","following_url":"https://api.github.com/users/cubing/following{/other_user}","gists_url":"https://api.github.com/users/cubing/gists{/gist_id}","starred_url":"https://api.github.com/users/cubing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubing/subscriptions","organizations_url":"https://api.github.com/users/cubing/orgs","repos_url":"https://api.github.com/users/cubing/repos","events_url":"https://api.github.com/users/cubing/events{/privacy}","received_events_url":"https://api.github.com/users/cubing/received_events","type":"Organization","site_admin":false},"repo":{"id":34161579,"name":"worldcubeassociation.org","full_name":"cubing/worldcubeassociation.org","owner":{"login":"cubing","id":1092267,"avatar_url":"https://avatars.githubusercontent.com/u/1092267?v=3","gravatar_id":"","url":"https://api.github.com/users/cubing","html_url":"https://github.com/cubing","followers_url":"https://api.github.com/users/cubing/followers","following_url":"https://api.github.com/users/cubing/following{/other_user}","gists_url":"https://api.github.com/users/cubing/gists{/gist_id}","starred_url":"https://api.github.com/users/cubing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubing/subscriptions","organizations_url":"https://api.github.com/users/cubing/orgs","repos_url":"https://api.github.com/users/cubing/repos","events_url":"https://api.github.com/users/cubing/events{/privacy}","received_events_url":"https://api.github.com/users/cubing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cubing/worldcubeassociation.org","description":"[WCA Project] All of the code that runs on worldcubeassociation.org","fork":false,"url":"https://api.github.com/repos/cubing/worldcubeassociation.org","forks_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/forks","keys_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/teams","hooks_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/hooks","issue_events_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/events{/number}","events_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/events","assignees_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/assignees{/user}","branches_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/branches{/branch}","tags_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/tags","blobs_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/statuses/{sha}","languages_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/languages","stargazers_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/stargazers","contributors_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/contributors","subscribers_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/subscribers","subscription_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/subscription","commits_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/contents/{+path}","compare_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/merges","archive_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/downloads","issues_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues{/number}","pulls_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls{/number}","milestones_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/milestones{/number}","notifications_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/labels{/name}","releases_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/releases{/id}","deployments_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/deployments","created_at":"2015-04-18T10:21:53Z","updated_at":"2016-01-19T22:28:28Z","pushed_at":"2016-01-21T23:56:21Z","git_url":"git://github.com/cubing/worldcubeassociation.org.git","ssh_url":"git@github.com:cubing/worldcubeassociation.org.git","clone_url":"https://github.com/cubing/worldcubeassociation.org.git","svn_url":"https://github.com/cubing/worldcubeassociation.org","homepage":"https://www.worldcubeassociation.org/","size":49904,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":126,"forks":16,"open_issues":126,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/341"},"html":{"href":"https://github.com/cubing/worldcubeassociation.org/pull/341"},"issue":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/341"},"comments":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/341/comments"},"review_comments":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/341/comments"},"review_comment":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/341/commits"},"statuses":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/statuses/229f43f2ba9fff6aa0f7a4f4f0bb25c2e87de125"}}}}