{"action":"created","comment":{"url":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments/67344101","id":67344101,"diff_hunk":"@@ -22,6 +22,8 @@ def create\n       if @user_session.save\n         flash[:notice] = ts(\"Successfully logged in.\")\n         @current_user = @user_session.record\n+        REDIS_GENERAL.sadd(\"last_login_list\", params[:user_session][:login])\n+        REDIS_GENERAL.set(\"last_login_#{params[:user_session][:login]}\", Time.now.utc)","path":"app/controllers/user_sessions_controller.rb","position":5,"original_position":5,"commit_id":"5fcfd56341a69c033944a1db14c37b87f09ac865","original_commit_id":"5fcfd56341a69c033944a1db14c37b87f09ac865","user":{"login":"shalott","id":415001,"avatar_url":"https://avatars.githubusercontent.com/u/415001?v=3","gravatar_id":"","url":"https://api.github.com/users/shalott","html_url":"https://github.com/shalott","followers_url":"https://api.github.com/users/shalott/followers","following_url":"https://api.github.com/users/shalott/following{/other_user}","gists_url":"https://api.github.com/users/shalott/gists{/gist_id}","starred_url":"https://api.github.com/users/shalott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shalott/subscriptions","organizations_url":"https://api.github.com/users/shalott/orgs","repos_url":"https://api.github.com/users/shalott/repos","events_url":"https://api.github.com/users/shalott/events{/privacy}","received_events_url":"https://api.github.com/users/shalott/received_events","type":"User","site_admin":false},"body":"Sorry I have had another thought reading this first thing in the morning with freshly caffeinated brain: shouldn't we use user id instead? Then if a user changes their name we still have their correct last login time. ","created_at":"2016-06-16T13:32:45Z","updated_at":"2016-06-16T13:32:45Z","html_url":"https://github.com/otwcode/otwarchive/pull/1975#discussion_r67344101","pull_request_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/1975","_links":{"self":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments/67344101"},"html":{"href":"https://github.com/otwcode/otwarchive/pull/1975#discussion_r67344101"},"pull_request":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/1975"}}},"pull_request":{"url":"https://api.github.com/repos/otwcode/otwarchive/pulls/1975","id":26745620,"html_url":"https://github.com/otwcode/otwarchive/pull/1975","diff_url":"https://github.com/otwcode/otwarchive/pull/1975.diff","patch_url":"https://github.com/otwcode/otwarchive/pull/1975.patch","issue_url":"https://api.github.com/repos/otwcode/otwarchive/issues/1975","number":1975,"state":"open","locked":false,"title":"AO3-4159 - Add last login information to user ","user":{"login":"zz9pzza","id":1606304,"avatar_url":"https://avatars.githubusercontent.com/u/1606304?v=3","gravatar_id":"","url":"https://api.github.com/users/zz9pzza","html_url":"https://github.com/zz9pzza","followers_url":"https://api.github.com/users/zz9pzza/followers","following_url":"https://api.github.com/users/zz9pzza/following{/other_user}","gists_url":"https://api.github.com/users/zz9pzza/gists{/gist_id}","starred_url":"https://api.github.com/users/zz9pzza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zz9pzza/subscriptions","organizations_url":"https://api.github.com/users/zz9pzza/orgs","repos_url":"https://api.github.com/users/zz9pzza/repos","events_url":"https://api.github.com/users/zz9pzza/events{/privacy}","received_events_url":"https://api.github.com/users/zz9pzza/received_events","type":"User","site_admin":false},"body":"https://code.google.com/p/otwarchive/issues/detail?id=4167\r\nhttps://otwarchive.atlassian.net/browse/AO3-4159\r\n\r\n","created_at":"2015-01-01T19:20:43Z","updated_at":"2016-06-16T13:32:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"381042d6ab8d81925c591889c194f2b61ba05cf6","assignee":{"login":"zz9pzza","id":1606304,"avatar_url":"https://avatars.githubusercontent.com/u/1606304?v=3","gravatar_id":"","url":"https://api.github.com/users/zz9pzza","html_url":"https://github.com/zz9pzza","followers_url":"https://api.github.com/users/zz9pzza/followers","following_url":"https://api.github.com/users/zz9pzza/following{/other_user}","gists_url":"https://api.github.com/users/zz9pzza/gists{/gist_id}","starred_url":"https://api.github.com/users/zz9pzza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zz9pzza/subscriptions","organizations_url":"https://api.github.com/users/zz9pzza/orgs","repos_url":"https://api.github.com/users/zz9pzza/repos","events_url":"https://api.github.com/users/zz9pzza/events{/privacy}","received_events_url":"https://api.github.com/users/zz9pzza/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/1975/commits","review_comments_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/1975/comments","review_comment_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/otwcode/otwarchive/issues/1975/comments","statuses_url":"https://api.github.com/repos/otwcode/otwarchive/statuses/5fcfd56341a69c033944a1db14c37b87f09ac865","head":{"label":"zz9pzza:issue_4167","ref":"issue_4167","sha":"5fcfd56341a69c033944a1db14c37b87f09ac865","user":{"login":"zz9pzza","id":1606304,"avatar_url":"https://avatars.githubusercontent.com/u/1606304?v=3","gravatar_id":"","url":"https://api.github.com/users/zz9pzza","html_url":"https://github.com/zz9pzza","followers_url":"https://api.github.com/users/zz9pzza/followers","following_url":"https://api.github.com/users/zz9pzza/following{/other_user}","gists_url":"https://api.github.com/users/zz9pzza/gists{/gist_id}","starred_url":"https://api.github.com/users/zz9pzza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zz9pzza/subscriptions","organizations_url":"https://api.github.com/users/zz9pzza/orgs","repos_url":"https://api.github.com/users/zz9pzza/repos","events_url":"https://api.github.com/users/zz9pzza/events{/privacy}","received_events_url":"https://api.github.com/users/zz9pzza/received_events","type":"User","site_admin":false},"repo":{"id":5325884,"name":"otwarchive","full_name":"zz9pzza/otwarchive","owner":{"login":"zz9pzza","id":1606304,"avatar_url":"https://avatars.githubusercontent.com/u/1606304?v=3","gravatar_id":"","url":"https://api.github.com/users/zz9pzza","html_url":"https://github.com/zz9pzza","followers_url":"https://api.github.com/users/zz9pzza/followers","following_url":"https://api.github.com/users/zz9pzza/following{/other_user}","gists_url":"https://api.github.com/users/zz9pzza/gists{/gist_id}","starred_url":"https://api.github.com/users/zz9pzza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zz9pzza/subscriptions","organizations_url":"https://api.github.com/users/zz9pzza/orgs","repos_url":"https://api.github.com/users/zz9pzza/repos","events_url":"https://api.github.com/users/zz9pzza/events{/privacy}","received_events_url":"https://api.github.com/users/zz9pzza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zz9pzza/otwarchive","description":"The Organization for Transformative Works (OTW) - Archive Of Our Own (AO3) Project","fork":true,"url":"https://api.github.com/repos/zz9pzza/otwarchive","forks_url":"https://api.github.com/repos/zz9pzza/otwarchive/forks","keys_url":"https://api.github.com/repos/zz9pzza/otwarchive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zz9pzza/otwarchive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zz9pzza/otwarchive/teams","hooks_url":"https://api.github.com/repos/zz9pzza/otwarchive/hooks","issue_events_url":"https://api.github.com/repos/zz9pzza/otwarchive/issues/events{/number}","events_url":"https://api.github.com/repos/zz9pzza/otwarchive/events","assignees_url":"https://api.github.com/repos/zz9pzza/otwarchive/assignees{/user}","branches_url":"https://api.github.com/repos/zz9pzza/otwarchive/branches{/branch}","tags_url":"https://api.github.com/repos/zz9pzza/otwarchive/tags","blobs_url":"https://api.github.com/repos/zz9pzza/otwarchive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zz9pzza/otwarchive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zz9pzza/otwarchive/git/refs{/sha}","trees_url":"https://api.github.com/repos/zz9pzza/otwarchive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zz9pzza/otwarchive/statuses/{sha}","languages_url":"https://api.github.com/repos/zz9pzza/otwarchive/languages","stargazers_url":"https://api.github.com/repos/zz9pzza/otwarchive/stargazers","contributors_url":"https://api.github.com/repos/zz9pzza/otwarchive/contributors","subscribers_url":"https://api.github.com/repos/zz9pzza/otwarchive/subscribers","subscription_url":"https://api.github.com/repos/zz9pzza/otwarchive/subscription","commits_url":"https://api.github.com/repos/zz9pzza/otwarchive/commits{/sha}","git_commits_url":"https://api.github.com/repos/zz9pzza/otwarchive/git/commits{/sha}","comments_url":"https://api.github.com/repos/zz9pzza/otwarchive/comments{/number}","issue_comment_url":"https://api.github.com/repos/zz9pzza/otwarchive/issues/comments{/number}","contents_url":"https://api.github.com/repos/zz9pzza/otwarchive/contents/{+path}","compare_url":"https://api.github.com/repos/zz9pzza/otwarchive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zz9pzza/otwarchive/merges","archive_url":"https://api.github.com/repos/zz9pzza/otwarchive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zz9pzza/otwarchive/downloads","issues_url":"https://api.github.com/repos/zz9pzza/otwarchive/issues{/number}","pulls_url":"https://api.github.com/repos/zz9pzza/otwarchive/pulls{/number}","milestones_url":"https://api.github.com/repos/zz9pzza/otwarchive/milestones{/number}","notifications_url":"https://api.github.com/repos/zz9pzza/otwarchive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zz9pzza/otwarchive/labels{/name}","releases_url":"https://api.github.com/repos/zz9pzza/otwarchive/releases{/id}","deployments_url":"https://api.github.com/repos/zz9pzza/otwarchive/deployments","created_at":"2012-08-07T09:13:15Z","updated_at":"2015-05-08T17:08:36Z","pushed_at":"2016-06-12T22:11:01Z","git_url":"git://github.com/zz9pzza/otwarchive.git","ssh_url":"git@github.com:zz9pzza/otwarchive.git","clone_url":"https://github.com/zz9pzza/otwarchive.git","svn_url":"https://github.com/zz9pzza/otwarchive","homepage":"http://transformativeworks.org/projects/archive","size":51876,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"otwcode:master","ref":"master","sha":"04926aa29d58167aa1c028f79f6273b0db0273ef","user":{"login":"otwcode","id":408606,"avatar_url":"https://avatars.githubusercontent.com/u/408606?v=3","gravatar_id":"","url":"https://api.github.com/users/otwcode","html_url":"https://github.com/otwcode","followers_url":"https://api.github.com/users/otwcode/followers","following_url":"https://api.github.com/users/otwcode/following{/other_user}","gists_url":"https://api.github.com/users/otwcode/gists{/gist_id}","starred_url":"https://api.github.com/users/otwcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otwcode/subscriptions","organizations_url":"https://api.github.com/users/otwcode/orgs","repos_url":"https://api.github.com/users/otwcode/repos","events_url":"https://api.github.com/users/otwcode/events{/privacy}","received_events_url":"https://api.github.com/users/otwcode/received_events","type":"Organization","site_admin":false},"repo":{"id":1338040,"name":"otwarchive","full_name":"otwcode/otwarchive","owner":{"login":"otwcode","id":408606,"avatar_url":"https://avatars.githubusercontent.com/u/408606?v=3","gravatar_id":"","url":"https://api.github.com/users/otwcode","html_url":"https://github.com/otwcode","followers_url":"https://api.github.com/users/otwcode/followers","following_url":"https://api.github.com/users/otwcode/following{/other_user}","gists_url":"https://api.github.com/users/otwcode/gists{/gist_id}","starred_url":"https://api.github.com/users/otwcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otwcode/subscriptions","organizations_url":"https://api.github.com/users/otwcode/orgs","repos_url":"https://api.github.com/users/otwcode/repos","events_url":"https://api.github.com/users/otwcode/events{/privacy}","received_events_url":"https://api.github.com/users/otwcode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/otwcode/otwarchive","description":"The Organization for Transformative Works (OTW) - Archive Of Our Own (AO3) Project","fork":false,"url":"https://api.github.com/repos/otwcode/otwarchive","forks_url":"https://api.github.com/repos/otwcode/otwarchive/forks","keys_url":"https://api.github.com/repos/otwcode/otwarchive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/otwcode/otwarchive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/otwcode/otwarchive/teams","hooks_url":"https://api.github.com/repos/otwcode/otwarchive/hooks","issue_events_url":"https://api.github.com/repos/otwcode/otwarchive/issues/events{/number}","events_url":"https://api.github.com/repos/otwcode/otwarchive/events","assignees_url":"https://api.github.com/repos/otwcode/otwarchive/assignees{/user}","branches_url":"https://api.github.com/repos/otwcode/otwarchive/branches{/branch}","tags_url":"https://api.github.com/repos/otwcode/otwarchive/tags","blobs_url":"https://api.github.com/repos/otwcode/otwarchive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/otwcode/otwarchive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/otwcode/otwarchive/git/refs{/sha}","trees_url":"https://api.github.com/repos/otwcode/otwarchive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/otwcode/otwarchive/statuses/{sha}","languages_url":"https://api.github.com/repos/otwcode/otwarchive/languages","stargazers_url":"https://api.github.com/repos/otwcode/otwarchive/stargazers","contributors_url":"https://api.github.com/repos/otwcode/otwarchive/contributors","subscribers_url":"https://api.github.com/repos/otwcode/otwarchive/subscribers","subscription_url":"https://api.github.com/repos/otwcode/otwarchive/subscription","commits_url":"https://api.github.com/repos/otwcode/otwarchive/commits{/sha}","git_commits_url":"https://api.github.com/repos/otwcode/otwarchive/git/commits{/sha}","comments_url":"https://api.github.com/repos/otwcode/otwarchive/comments{/number}","issue_comment_url":"https://api.github.com/repos/otwcode/otwarchive/issues/comments{/number}","contents_url":"https://api.github.com/repos/otwcode/otwarchive/contents/{+path}","compare_url":"https://api.github.com/repos/otwcode/otwarchive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/otwcode/otwarchive/merges","archive_url":"https://api.github.com/repos/otwcode/otwarchive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/otwcode/otwarchive/downloads","issues_url":"https://api.github.com/repos/otwcode/otwarchive/issues{/number}","pulls_url":"https://api.github.com/repos/otwcode/otwarchive/pulls{/number}","milestones_url":"https://api.github.com/repos/otwcode/otwarchive/milestones{/number}","notifications_url":"https://api.github.com/repos/otwcode/otwarchive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/otwcode/otwarchive/labels{/name}","releases_url":"https://api.github.com/repos/otwcode/otwarchive/releases{/id}","deployments_url":"https://api.github.com/repos/otwcode/otwarchive/deployments","created_at":"2011-02-07T14:50:58Z","updated_at":"2016-06-15T14:49:00Z","pushed_at":"2016-06-16T03:53:34Z","git_url":"git://github.com/otwcode/otwarchive.git","ssh_url":"git@github.com:otwcode/otwarchive.git","clone_url":"https://github.com/otwcode/otwarchive.git","svn_url":"https://github.com/otwcode/otwarchive","homepage":"http://transformativeworks.org/projects/archive","size":70191,"stargazers_count":201,"watchers_count":201,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":120,"mirror_url":null,"open_issues_count":48,"forks":120,"open_issues":48,"watchers":201,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/1975"},"html":{"href":"https://github.com/otwcode/otwarchive/pull/1975"},"issue":{"href":"https://api.github.com/repos/otwcode/otwarchive/issues/1975"},"comments":{"href":"https://api.github.com/repos/otwcode/otwarchive/issues/1975/comments"},"review_comments":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/1975/comments"},"review_comment":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/1975/commits"},"statuses":{"href":"https://api.github.com/repos/otwcode/otwarchive/statuses/5fcfd56341a69c033944a1db14c37b87f09ac865"}}}}
{"actor":{"display_login":"shalott"}}