{"action":"created","comment":{"url":"https://api.github.com/repos/andela/orophin-cfh/pulls/comments/149038428","pull_request_review_id":74369266,"id":149038428,"diff_hunk":"@@ -155,6 +156,41 @@ angular.module('mean.system')\n       $location.path('/');\n     };\n \n+    //\n+    $scope.searchUser = () => {\n+      const searchTerm = $scope.searchTerm;\n+      $scope.searchResult = [];\n+      if (searchTerm.length !== 0) {\n+        $http({\n+          method: 'GET',\n+          url: `/api/search/users?q=${searchTerm}`\n+        }).then((response) => {\n+          if (response.data) {\n+            response.data.forEach(user => {","path":"public/js/controllers/game.js","position":31,"original_position":31,"commit_id":"1acb216b4085096e130acadf1c0d2aa3105a0bda","original_commit_id":"1acb216b4085096e130acadf1c0d2aa3105a0bda","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Expected parentheses around arrow function argument having a body with curly braces  arrow-parens","created_at":"2017-11-06T10:13:08Z","updated_at":"2017-11-06T10:13:09Z","html_url":"https://github.com/andela/orophin-cfh/pull/33#discussion_r149038428","pull_request_url":"https://api.github.com/repos/andela/orophin-cfh/pulls/33","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/orophin-cfh/pulls/comments/149038428"},"html":{"href":"https://github.com/andela/orophin-cfh/pull/33#discussion_r149038428"},"pull_request":{"href":"https://api.github.com/repos/andela/orophin-cfh/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/andela/orophin-cfh/pulls/33","id":150573047,"html_url":"https://github.com/andela/orophin-cfh/pull/33","diff_url":"https://github.com/andela/orophin-cfh/pull/33.diff","patch_url":"https://github.com/andela/orophin-cfh/pull/33.patch","issue_url":"https://api.github.com/repos/andela/orophin-cfh/issues/33","number":33,"state":"open","locked":false,"title":"#151980416 Invite users to game","user":{"login":"WillyWunderdog","id":19694117,"avatar_url":"https://avatars1.githubusercontent.com/u/19694117?v=4","gravatar_id":"","url":"https://api.github.com/users/WillyWunderdog","html_url":"https://github.com/WillyWunderdog","followers_url":"https://api.github.com/users/WillyWunderdog/followers","following_url":"https://api.github.com/users/WillyWunderdog/following{/other_user}","gists_url":"https://api.github.com/users/WillyWunderdog/gists{/gist_id}","starred_url":"https://api.github.com/users/WillyWunderdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillyWunderdog/subscriptions","organizations_url":"https://api.github.com/users/WillyWunderdog/orgs","repos_url":"https://api.github.com/users/WillyWunderdog/repos","events_url":"https://api.github.com/users/WillyWunderdog/events{/privacy}","received_events_url":"https://api.github.com/users/WillyWunderdog/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\n> Searches the database for users and sends an invite to selected users\r\n\r\n**Description of Task to be completed?**\r\n> create search endpoint ```/api/search/users```\r\n> send mail invite to users ```/api/users/invite```\r\n\r\n**How should this be manually tested?**\r\n> clone repo\r\n> cd into the project folder\r\n> run npm install\r\n> start your mongod server\r\n> create dot env file and copy the content of .env.sample into it\r\n> run npm start\r\n> hit both routes using POSTMAN\r\n\r\n**Any background context you want to provide?**\r\n> N/A\r\n\r\n**What are the relevant pivotal tracker stories?**\r\n#151980416","created_at":"2017-11-03T16:30:58Z","updated_at":"2017-11-06T10:13:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04b9d65f21efa405734ecf9a602ee2a4ec59c18d","assignee":null,"assignees":[],"requested_reviewers":[{"login":"williamolojede","id":23551907,"avatar_url":"https://avatars0.githubusercontent.com/u/23551907?v=4","gravatar_id":"","url":"https://api.github.com/users/williamolojede","html_url":"https://github.com/williamolojede","followers_url":"https://api.github.com/users/williamolojede/followers","following_url":"https://api.github.com/users/williamolojede/following{/other_user}","gists_url":"https://api.github.com/users/williamolojede/gists{/gist_id}","starred_url":"https://api.github.com/users/williamolojede/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamolojede/subscriptions","organizations_url":"https://api.github.com/users/williamolojede/orgs","repos_url":"https://api.github.com/users/williamolojede/repos","events_url":"https://api.github.com/users/williamolojede/events{/privacy}","received_events_url":"https://api.github.com/users/williamolojede/received_events","type":"User","site_admin":false},{"login":"JaphethCA","id":31279497,"avatar_url":"https://avatars0.githubusercontent.com/u/31279497?v=4","gravatar_id":"","url":"https://api.github.com/users/JaphethCA","html_url":"https://github.com/JaphethCA","followers_url":"https://api.github.com/users/JaphethCA/followers","following_url":"https://api.github.com/users/JaphethCA/following{/other_user}","gists_url":"https://api.github.com/users/JaphethCA/gists{/gist_id}","starred_url":"https://api.github.com/users/JaphethCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaphethCA/subscriptions","organizations_url":"https://api.github.com/users/JaphethCA/orgs","repos_url":"https://api.github.com/users/JaphethCA/repos","events_url":"https://api.github.com/users/JaphethCA/events{/privacy}","received_events_url":"https://api.github.com/users/JaphethCA/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/andela/orophin-cfh/pulls/33/commits","review_comments_url":"https://api.github.com/repos/andela/orophin-cfh/pulls/33/comments","review_comment_url":"https://api.github.com/repos/andela/orophin-cfh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/orophin-cfh/issues/33/comments","statuses_url":"https://api.github.com/repos/andela/orophin-cfh/statuses/1acb216b4085096e130acadf1c0d2aa3105a0bda","head":{"label":"andela:feature/151980416/invite-to-game","ref":"feature/151980416/invite-to-game","sha":"1acb216b4085096e130acadf1c0d2aa3105a0bda","user":{"login":"andela","id":4100206,"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":106806178,"name":"orophin-cfh","full_name":"andela/orophin-cfh","owner":{"login":"andela","id":4100206,"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},"private":false,"html_url":"https://github.com/andela/orophin-cfh","description":null,"fork":false,"url":"https://api.github.com/repos/andela/orophin-cfh","forks_url":"https://api.github.com/repos/andela/orophin-cfh/forks","keys_url":"https://api.github.com/repos/andela/orophin-cfh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/orophin-cfh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/orophin-cfh/teams","hooks_url":"https://api.github.com/repos/andela/orophin-cfh/hooks","issue_events_url":"https://api.github.com/repos/andela/orophin-cfh/issues/events{/number}","events_url":"https://api.github.com/repos/andela/orophin-cfh/events","assignees_url":"https://api.github.com/repos/andela/orophin-cfh/assignees{/user}","branches_url":"https://api.github.com/repos/andela/orophin-cfh/branches{/branch}","tags_url":"https://api.github.com/repos/andela/orophin-cfh/tags","blobs_url":"https://api.github.com/repos/andela/orophin-cfh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/orophin-cfh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/orophin-cfh/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/orophin-cfh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/orophin-cfh/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/orophin-cfh/languages","stargazers_url":"https://api.github.com/repos/andela/orophin-cfh/stargazers","contributors_url":"https://api.github.com/repos/andela/orophin-cfh/contributors","subscribers_url":"https://api.github.com/repos/andela/orophin-cfh/subscribers","subscription_url":"https://api.github.com/repos/andela/orophin-cfh/subscription","commits_url":"https://api.github.com/repos/andela/orophin-cfh/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/orophin-cfh/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/orophin-cfh/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/orophin-cfh/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/orophin-cfh/contents/{+path}","compare_url":"https://api.github.com/repos/andela/orophin-cfh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/orophin-cfh/merges","archive_url":"https://api.github.com/repos/andela/orophin-cfh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/orophin-cfh/downloads","issues_url":"https://api.github.com/repos/andela/orophin-cfh/issues{/number}","pulls_url":"https://api.github.com/repos/andela/orophin-cfh/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/orophin-cfh/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/orophin-cfh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/orophin-cfh/labels{/name}","releases_url":"https://api.github.com/repos/andela/orophin-cfh/releases{/id}","deployments_url":"https://api.github.com/repos/andela/orophin-cfh/deployments","created_at":"2017-10-13T09:40:28Z","updated_at":"2017-10-31T11:55:29Z","pushed_at":"2017-11-06T10:12:46Z","git_url":"git://github.com/andela/orophin-cfh.git","ssh_url":"git@github.com:andela/orophin-cfh.git","clone_url":"https://github.com/andela/orophin-cfh.git","svn_url":"https://github.com/andela/orophin-cfh","homepage":null,"size":21791,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"staging"}},"base":{"label":"andela:staging","ref":"staging","sha":"0c86dc36e59027c627d28f6aab8e853b83bd510a","user":{"login":"andela","id":4100206,"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":106806178,"name":"orophin-cfh","full_name":"andela/orophin-cfh","owner":{"login":"andela","id":4100206,"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},"private":false,"html_url":"https://github.com/andela/orophin-cfh","description":null,"fork":false,"url":"https://api.github.com/repos/andela/orophin-cfh","forks_url":"https://api.github.com/repos/andela/orophin-cfh/forks","keys_url":"https://api.github.com/repos/andela/orophin-cfh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/orophin-cfh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/orophin-cfh/teams","hooks_url":"https://api.github.com/repos/andela/orophin-cfh/hooks","issue_events_url":"https://api.github.com/repos/andela/orophin-cfh/issues/events{/number}","events_url":"https://api.github.com/repos/andela/orophin-cfh/events","assignees_url":"https://api.github.com/repos/andela/orophin-cfh/assignees{/user}","branches_url":"https://api.github.com/repos/andela/orophin-cfh/branches{/branch}","tags_url":"https://api.github.com/repos/andela/orophin-cfh/tags","blobs_url":"https://api.github.com/repos/andela/orophin-cfh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/orophin-cfh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/orophin-cfh/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/orophin-cfh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/orophin-cfh/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/orophin-cfh/languages","stargazers_url":"https://api.github.com/repos/andela/orophin-cfh/stargazers","contributors_url":"https://api.github.com/repos/andela/orophin-cfh/contributors","subscribers_url":"https://api.github.com/repos/andela/orophin-cfh/subscribers","subscription_url":"https://api.github.com/repos/andela/orophin-cfh/subscription","commits_url":"https://api.github.com/repos/andela/orophin-cfh/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/orophin-cfh/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/orophin-cfh/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/orophin-cfh/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/orophin-cfh/contents/{+path}","compare_url":"https://api.github.com/repos/andela/orophin-cfh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/orophin-cfh/merges","archive_url":"https://api.github.com/repos/andela/orophin-cfh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/orophin-cfh/downloads","issues_url":"https://api.github.com/repos/andela/orophin-cfh/issues{/number}","pulls_url":"https://api.github.com/repos/andela/orophin-cfh/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/orophin-cfh/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/orophin-cfh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/orophin-cfh/labels{/name}","releases_url":"https://api.github.com/repos/andela/orophin-cfh/releases{/id}","deployments_url":"https://api.github.com/repos/andela/orophin-cfh/deployments","created_at":"2017-10-13T09:40:28Z","updated_at":"2017-10-31T11:55:29Z","pushed_at":"2017-11-06T10:12:46Z","git_url":"git://github.com/andela/orophin-cfh.git","ssh_url":"git@github.com:andela/orophin-cfh.git","clone_url":"https://github.com/andela/orophin-cfh.git","svn_url":"https://github.com/andela/orophin-cfh","homepage":null,"size":21791,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/orophin-cfh/pulls/33"},"html":{"href":"https://github.com/andela/orophin-cfh/pull/33"},"issue":{"href":"https://api.github.com/repos/andela/orophin-cfh/issues/33"},"comments":{"href":"https://api.github.com/repos/andela/orophin-cfh/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/orophin-cfh/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/orophin-cfh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/orophin-cfh/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/andela/orophin-cfh/statuses/1acb216b4085096e130acadf1c0d2aa3105a0bda"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}