{"action":"closed","number":25,"pull_request":{"url":"https://api.github.com/repos/andela/heimdal-ah-backend/pulls/25","id":236622756,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2NjIyNzU2","html_url":"https://github.com/andela/heimdal-ah-backend/pull/25","diff_url":"https://github.com/andela/heimdal-ah-backend/pull/25.diff","patch_url":"https://github.com/andela/heimdal-ah-backend/pull/25.patch","issue_url":"https://api.github.com/repos/andela/heimdal-ah-backend/issues/25","number":25,"state":"closed","locked":false,"title":"#162171030 refactor  list all users functionality","user":{"login":"pitaz","id":12976304,"node_id":"MDQ6VXNlcjEyOTc2MzA0","avatar_url":"https://avatars3.githubusercontent.com/u/12976304?v=4","gravatar_id":"","url":"https://api.github.com/users/pitaz","html_url":"https://github.com/pitaz","followers_url":"https://api.github.com/users/pitaz/followers","following_url":"https://api.github.com/users/pitaz/following{/other_user}","gists_url":"https://api.github.com/users/pitaz/gists{/gist_id}","starred_url":"https://api.github.com/users/pitaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitaz/subscriptions","organizations_url":"https://api.github.com/users/pitaz/orgs","repos_url":"https://api.github.com/users/pitaz/repos","events_url":"https://api.github.com/users/pitaz/events{/privacy}","received_events_url":"https://api.github.com/users/pitaz/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n- refactor users test file\r\n#### Description of Task to be completed?\r\n- remove if-else statement in test/user.js file\r\n#### How should this be manually tested?\r\n`npm run test`\r\n#### What are the relevant pivotal tracker stories?\r\n[#162171030](https://www.pivotaltracker.com/story/show/162171030)\r\n#### Any background context you want to add?\r\n- none\r\n#### Screenshots\r\n- none","created_at":"2018-12-06T18:08:47Z","updated_at":"2018-12-06T18:20:39Z","closed_at":"2018-12-06T18:20:38Z","merged_at":null,"merge_commit_sha":"14a7b3ea177af2736c83361c896f8f87bc0bd58b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/heimdal-ah-backend/pulls/25/commits","review_comments_url":"https://api.github.com/repos/andela/heimdal-ah-backend/pulls/25/comments","review_comment_url":"https://api.github.com/repos/andela/heimdal-ah-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/heimdal-ah-backend/issues/25/comments","statuses_url":"https://api.github.com/repos/andela/heimdal-ah-backend/statuses/78d0dc1d343ab684d3ef96b217d82f3f21c4491a","head":{"label":"andela:ft-list-users-162171030","ref":"ft-list-users-162171030","sha":"78d0dc1d343ab684d3ef96b217d82f3f21c4491a","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":156545133,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY1NDUxMzM=","name":"heimdal-ah-backend","full_name":"andela/heimdal-ah-backend","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/heimdal-ah-backend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/heimdal-ah-backend","forks_url":"https://api.github.com/repos/andela/heimdal-ah-backend/forks","keys_url":"https://api.github.com/repos/andela/heimdal-ah-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/heimdal-ah-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/heimdal-ah-backend/teams","hooks_url":"https://api.github.com/repos/andela/heimdal-ah-backend/hooks","issue_events_url":"https://api.github.com/repos/andela/heimdal-ah-backend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/heimdal-ah-backend/events","assignees_url":"https://api.github.com/repos/andela/heimdal-ah-backend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/heimdal-ah-backend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/heimdal-ah-backend/tags","blobs_url":"https://api.github.com/repos/andela/heimdal-ah-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/heimdal-ah-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/heimdal-ah-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/heimdal-ah-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/heimdal-ah-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/heimdal-ah-backend/languages","stargazers_url":"https://api.github.com/repos/andela/heimdal-ah-backend/stargazers","contributors_url":"https://api.github.com/repos/andela/heimdal-ah-backend/contributors","subscribers_url":"https://api.github.com/repos/andela/heimdal-ah-backend/subscribers","subscription_url":"https://api.github.com/repos/andela/heimdal-ah-backend/subscription","commits_url":"https://api.github.com/repos/andela/heimdal-ah-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/heimdal-ah-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/heimdal-ah-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/heimdal-ah-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/heimdal-ah-backend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/heimdal-ah-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/heimdal-ah-backend/merges","archive_url":"https://api.github.com/repos/andela/heimdal-ah-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/heimdal-ah-backend/downloads","issues_url":"https://api.github.com/repos/andela/heimdal-ah-backend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/heimdal-ah-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/heimdal-ah-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/heimdal-ah-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/heimdal-ah-backend/labels{/name}","releases_url":"https://api.github.com/repos/andela/heimdal-ah-backend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/heimdal-ah-backend/deployments","created_at":"2018-11-07T12:44:53Z","updated_at":"2018-12-06T16:18:19Z","pushed_at":"2018-12-06T18:20:16Z","git_url":"git://github.com/andela/heimdal-ah-backend.git","ssh_url":"git@github.com:andela/heimdal-ah-backend.git","clone_url":"https://github.com/andela/heimdal-ah-backend.git","svn_url":"https://github.com/andela/heimdal-ah-backend","homepage":"https://heimdal-ah-staging.herokuapp.com/","size":1002,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":1,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"6696022e6d9f663f5780d04fb5f935b87027e781","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":156545133,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY1NDUxMzM=","name":"heimdal-ah-backend","full_name":"andela/heimdal-ah-backend","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/heimdal-ah-backend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/heimdal-ah-backend","forks_url":"https://api.github.com/repos/andela/heimdal-ah-backend/forks","keys_url":"https://api.github.com/repos/andela/heimdal-ah-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/heimdal-ah-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/heimdal-ah-backend/teams","hooks_url":"https://api.github.com/repos/andela/heimdal-ah-backend/hooks","issue_events_url":"https://api.github.com/repos/andela/heimdal-ah-backend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/heimdal-ah-backend/events","assignees_url":"https://api.github.com/repos/andela/heimdal-ah-backend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/heimdal-ah-backend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/heimdal-ah-backend/tags","blobs_url":"https://api.github.com/repos/andela/heimdal-ah-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/heimdal-ah-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/heimdal-ah-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/heimdal-ah-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/heimdal-ah-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/heimdal-ah-backend/languages","stargazers_url":"https://api.github.com/repos/andela/heimdal-ah-backend/stargazers","contributors_url":"https://api.github.com/repos/andela/heimdal-ah-backend/contributors","subscribers_url":"https://api.github.com/repos/andela/heimdal-ah-backend/subscribers","subscription_url":"https://api.github.com/repos/andela/heimdal-ah-backend/subscription","commits_url":"https://api.github.com/repos/andela/heimdal-ah-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/heimdal-ah-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/heimdal-ah-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/heimdal-ah-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/heimdal-ah-backend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/heimdal-ah-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/heimdal-ah-backend/merges","archive_url":"https://api.github.com/repos/andela/heimdal-ah-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/heimdal-ah-backend/downloads","issues_url":"https://api.github.com/repos/andela/heimdal-ah-backend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/heimdal-ah-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/heimdal-ah-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/heimdal-ah-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/heimdal-ah-backend/labels{/name}","releases_url":"https://api.github.com/repos/andela/heimdal-ah-backend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/heimdal-ah-backend/deployments","created_at":"2018-11-07T12:44:53Z","updated_at":"2018-12-06T16:18:19Z","pushed_at":"2018-12-06T18:20:16Z","git_url":"git://github.com/andela/heimdal-ah-backend.git","ssh_url":"git@github.com:andela/heimdal-ah-backend.git","clone_url":"https://github.com/andela/heimdal-ah-backend.git","svn_url":"https://github.com/andela/heimdal-ah-backend","homepage":"https://heimdal-ah-staging.herokuapp.com/","size":1002,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":1,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/heimdal-ah-backend/pulls/25"},"html":{"href":"https://github.com/andela/heimdal-ah-backend/pull/25"},"issue":{"href":"https://api.github.com/repos/andela/heimdal-ah-backend/issues/25"},"comments":{"href":"https://api.github.com/repos/andela/heimdal-ah-backend/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/heimdal-ah-backend/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/heimdal-ah-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/heimdal-ah-backend/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/andela/heimdal-ah-backend/statuses/78d0dc1d343ab684d3ef96b217d82f3f21c4491a"}},"author_association":"COLLABORATOR","merged":false,"mergeable":true,"rebaseable":false,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":7,"additions":1895,"deletions":1226,"changed_files":3}}
{"actor":{"display_login":"pitaz"}}