{"action":"closed","number":108,"pull_request":{"url":"https://api.github.com/repos/Wikia/helios/pulls/108","id":44035382,"html_url":"https://github.com/Wikia/helios/pull/108","diff_url":"https://github.com/Wikia/helios/pull/108.diff","patch_url":"https://github.com/Wikia/helios/pull/108.patch","issue_url":"https://api.github.com/repos/Wikia/helios/issues/108","number":108,"state":"closed","locked":false,"title":"[SERVICES-680] Support multiple tokens per user with limit.","user":{"login":"ArturKlajnerok","id":1889095,"avatar_url":"https://avatars.githubusercontent.com/u/1889095?v=3","gravatar_id":"","url":"https://api.github.com/users/ArturKlajnerok","html_url":"https://github.com/ArturKlajnerok","followers_url":"https://api.github.com/users/ArturKlajnerok/followers","following_url":"https://api.github.com/users/ArturKlajnerok/following{/other_user}","gists_url":"https://api.github.com/users/ArturKlajnerok/gists{/gist_id}","starred_url":"https://api.github.com/users/ArturKlajnerok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArturKlajnerok/subscriptions","organizations_url":"https://api.github.com/users/ArturKlajnerok/orgs","repos_url":"https://api.github.com/users/ArturKlajnerok/repos","events_url":"https://api.github.com/users/ArturKlajnerok/events{/privacy}","received_events_url":"https://api.github.com/users/ArturKlajnerok/received_events","type":"User","site_admin":false},"body":"As we are moving away from `one token per user` policy, we need to have control over amount of tokens that are generated and stored per user.  For that a `user -> token list` mapping is created to keep the tokens below provided maximum.\r\n\r\n * [x] Remove old `user -> token` mapping\r\n * [x] Remove handling of single token per user\r\n * [x] Methods for supporting Redis lists operations\r\n * [x] Updating  `user -> token list` when new `access_token` is created \r\n * [x] Removal of old `access_token` when max per user is reached\r\n\r\n/cc @Wikia/services-team ","created_at":"2015-09-02T20:00:18Z","updated_at":"2015-09-08T23:55:13Z","closed_at":"2015-09-08T23:55:13Z","merged_at":"2015-09-08T23:55:13Z","merge_commit_sha":"303a50dbfda3200a3d5df53e1a7e6a987b2a667d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/helios/pulls/108/commits","review_comments_url":"https://api.github.com/repos/Wikia/helios/pulls/108/comments","review_comment_url":"https://api.github.com/repos/Wikia/helios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/helios/issues/108/comments","statuses_url":"https://api.github.com/repos/Wikia/helios/statuses/e79a7961ec00e4834350710ae5dc1a2fbde541a3","head":{"label":"Wikia:SERVICES-680-multiple-tokens-per-user-with-limit","ref":"SERVICES-680-multiple-tokens-per-user-with-limit","sha":"e79a7961ec00e4834350710ae5dc1a2fbde541a3","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":26176918,"name":"helios","full_name":"Wikia/helios","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/helios","description":"Provides user authentication and account creation","fork":false,"url":"https://api.github.com/repos/Wikia/helios","forks_url":"https://api.github.com/repos/Wikia/helios/forks","keys_url":"https://api.github.com/repos/Wikia/helios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/helios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/helios/teams","hooks_url":"https://api.github.com/repos/Wikia/helios/hooks","issue_events_url":"https://api.github.com/repos/Wikia/helios/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/helios/events","assignees_url":"https://api.github.com/repos/Wikia/helios/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/helios/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/helios/tags","blobs_url":"https://api.github.com/repos/Wikia/helios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/helios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/helios/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/helios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/helios/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/helios/languages","stargazers_url":"https://api.github.com/repos/Wikia/helios/stargazers","contributors_url":"https://api.github.com/repos/Wikia/helios/contributors","subscribers_url":"https://api.github.com/repos/Wikia/helios/subscribers","subscription_url":"https://api.github.com/repos/Wikia/helios/subscription","commits_url":"https://api.github.com/repos/Wikia/helios/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/helios/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/helios/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/helios/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/helios/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/helios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/helios/merges","archive_url":"https://api.github.com/repos/Wikia/helios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/helios/downloads","issues_url":"https://api.github.com/repos/Wikia/helios/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/helios/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/helios/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/helios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/helios/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/helios/releases{/id}","created_at":"2014-11-04T16:12:05Z","updated_at":"2015-09-04T22:49:33Z","pushed_at":"2015-09-08T23:55:13Z","git_url":"git://github.com/Wikia/helios.git","ssh_url":"git@github.com:Wikia/helios.git","clone_url":"https://github.com/Wikia/helios.git","svn_url":"https://github.com/Wikia/helios","homepage":"","size":3702,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":7,"default_branch":"master"}},"base":{"label":"Wikia:master","ref":"master","sha":"cc2fff5b7fd3e2e42a0ccc2ab8ae538937166b98","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":26176918,"name":"helios","full_name":"Wikia/helios","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/helios","description":"Provides user authentication and account creation","fork":false,"url":"https://api.github.com/repos/Wikia/helios","forks_url":"https://api.github.com/repos/Wikia/helios/forks","keys_url":"https://api.github.com/repos/Wikia/helios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/helios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/helios/teams","hooks_url":"https://api.github.com/repos/Wikia/helios/hooks","issue_events_url":"https://api.github.com/repos/Wikia/helios/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/helios/events","assignees_url":"https://api.github.com/repos/Wikia/helios/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/helios/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/helios/tags","blobs_url":"https://api.github.com/repos/Wikia/helios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/helios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/helios/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/helios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/helios/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/helios/languages","stargazers_url":"https://api.github.com/repos/Wikia/helios/stargazers","contributors_url":"https://api.github.com/repos/Wikia/helios/contributors","subscribers_url":"https://api.github.com/repos/Wikia/helios/subscribers","subscription_url":"https://api.github.com/repos/Wikia/helios/subscription","commits_url":"https://api.github.com/repos/Wikia/helios/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/helios/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/helios/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/helios/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/helios/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/helios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/helios/merges","archive_url":"https://api.github.com/repos/Wikia/helios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/helios/downloads","issues_url":"https://api.github.com/repos/Wikia/helios/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/helios/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/helios/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/helios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/helios/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/helios/releases{/id}","created_at":"2014-11-04T16:12:05Z","updated_at":"2015-09-04T22:49:33Z","pushed_at":"2015-09-08T23:55:13Z","git_url":"git://github.com/Wikia/helios.git","ssh_url":"git@github.com:Wikia/helios.git","clone_url":"https://github.com/Wikia/helios.git","svn_url":"https://github.com/Wikia/helios","homepage":"","size":3702,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/helios/pulls/108"},"html":{"href":"https://github.com/Wikia/helios/pull/108"},"issue":{"href":"https://api.github.com/repos/Wikia/helios/issues/108"},"comments":{"href":"https://api.github.com/repos/Wikia/helios/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/helios/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/helios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/helios/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/helios/statuses/e79a7961ec00e4834350710ae5dc1a2fbde541a3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ArturKlajnerok","id":1889095,"avatar_url":"https://avatars.githubusercontent.com/u/1889095?v=3","gravatar_id":"","url":"https://api.github.com/users/ArturKlajnerok","html_url":"https://github.com/ArturKlajnerok","followers_url":"https://api.github.com/users/ArturKlajnerok/followers","following_url":"https://api.github.com/users/ArturKlajnerok/following{/other_user}","gists_url":"https://api.github.com/users/ArturKlajnerok/gists{/gist_id}","starred_url":"https://api.github.com/users/ArturKlajnerok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArturKlajnerok/subscriptions","organizations_url":"https://api.github.com/users/ArturKlajnerok/orgs","repos_url":"https://api.github.com/users/ArturKlajnerok/repos","events_url":"https://api.github.com/users/ArturKlajnerok/events{/privacy}","received_events_url":"https://api.github.com/users/ArturKlajnerok/received_events","type":"User","site_admin":false},"comments":20,"review_comments":11,"commits":18,"additions":209,"deletions":46,"changed_files":7}}