{"action":"created","comment":{"url":"https://api.github.com/repos/andela/fargo-ah/pulls/comments/209618297","pull_request_review_id":145664586,"id":209618297,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTYxODI5Nw==","diff_hunk":"@@ -24,4 +27,20 @@ router.put(\n   UsersController.editProfile\n );\n \n+router.post('/profiles/:username/follow',\n+  validateToken,\n+  validator.validateUsername,\n+  getUser, UsersController.follow);\n+\n+router.get('/profiles/followingme/view',\n+  validateToken, UsersController.getAllFollowingMe);\n+\n+router.get('/profiles/myfollower/view',\n+  validateToken, UsersController.getAllMyFollower);","path":"routes/api/users.js","position":28,"original_position":28,"commit_id":"5e4428c50bda529e40ee63e03ec79d0add908948","original_commit_id":"5e4428c50bda529e40ee63e03ec79d0add908948","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","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 a newline before ')'  function-paren-newline","created_at":"2018-08-13T13:57:13Z","updated_at":"2018-08-13T13:57:15Z","html_url":"https://github.com/andela/fargo-ah/pull/28#discussion_r209618297","pull_request_url":"https://api.github.com/repos/andela/fargo-ah/pulls/28","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/fargo-ah/pulls/comments/209618297"},"html":{"href":"https://github.com/andela/fargo-ah/pull/28#discussion_r209618297"},"pull_request":{"href":"https://api.github.com/repos/andela/fargo-ah/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/andela/fargo-ah/pulls/28","id":207986202,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3OTg2MjAy","html_url":"https://github.com/andela/fargo-ah/pull/28","diff_url":"https://github.com/andela/fargo-ah/pull/28.diff","patch_url":"https://github.com/andela/fargo-ah/pull/28.patch","issue_url":"https://api.github.com/repos/andela/fargo-ah/issues/28","number":28,"state":"open","locked":false,"title":"#159206059 User can get notifications","user":{"login":"anneKay","id":24938970,"node_id":"MDQ6VXNlcjI0OTM4OTcw","avatar_url":"https://avatars0.githubusercontent.com/u/24938970?v=4","gravatar_id":"","url":"https://api.github.com/users/anneKay","html_url":"https://github.com/anneKay","followers_url":"https://api.github.com/users/anneKay/followers","following_url":"https://api.github.com/users/anneKay/following{/other_user}","gists_url":"https://api.github.com/users/anneKay/gists{/gist_id}","starred_url":"https://api.github.com/users/anneKay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anneKay/subscriptions","organizations_url":"https://api.github.com/users/anneKay/orgs","repos_url":"https://api.github.com/users/anneKay/repos","events_url":"https://api.github.com/users/anneKay/events{/privacy}","received_events_url":"https://api.github.com/users/anneKay/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n- Send E-mail notifications to users\r\n- Allow in-app notification\r\n\r\n#### Description of Task to be completed?\r\n- Get users following an author\r\n- Create an email template for users\r\n- Send email notification to users using `nodemailer`\r\n- Set up firebase connection\r\n- Set up notification database  on firebase\r\n- Populate firebase database with notifications\r\n\r\n#### How should this be manually tested?\r\nIn postman navigate to;\r\n (POST) `http://api/profiles/:username/follow - follow a user\r\n(POST) `http://api/articles/:slug/like` -like an article\r\n(POST) `http://localhost:3000/api//articles/:slug/comments` - post a comment \r\n(POST) `http://localhost:3000/api/articles` - create article \r\n\r\n#### Any background context you want to provide?\r\n- Pull in changes and run `npm install`\r\n- Start server with `npm run dev`\r\n\r\n#### What are the relevant pivotal tracker stories?\r\nhttps://www.pivotaltracker.com/story/show/159206059","created_at":"2018-08-13T13:56:29Z","updated_at":"2018-08-13T13:57:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/fargo-ah/pulls/28/commits","review_comments_url":"https://api.github.com/repos/andela/fargo-ah/pulls/28/comments","review_comment_url":"https://api.github.com/repos/andela/fargo-ah/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/fargo-ah/issues/28/comments","statuses_url":"https://api.github.com/repos/andela/fargo-ah/statuses/5e4428c50bda529e40ee63e03ec79d0add908948","head":{"label":"andela:ft_159206059_users_get_notification","ref":"ft_159206059_users_get_notification","sha":"5e4428c50bda529e40ee63e03ec79d0add908948","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":141551572,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE1NTE1NzI=","name":"fargo-ah","full_name":"andela/fargo-ah","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},"private":false,"html_url":"https://github.com/andela/fargo-ah","description":"This is the staging application link for fargo-ah app","fork":false,"url":"https://api.github.com/repos/andela/fargo-ah","forks_url":"https://api.github.com/repos/andela/fargo-ah/forks","keys_url":"https://api.github.com/repos/andela/fargo-ah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/fargo-ah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/fargo-ah/teams","hooks_url":"https://api.github.com/repos/andela/fargo-ah/hooks","issue_events_url":"https://api.github.com/repos/andela/fargo-ah/issues/events{/number}","events_url":"https://api.github.com/repos/andela/fargo-ah/events","assignees_url":"https://api.github.com/repos/andela/fargo-ah/assignees{/user}","branches_url":"https://api.github.com/repos/andela/fargo-ah/branches{/branch}","tags_url":"https://api.github.com/repos/andela/fargo-ah/tags","blobs_url":"https://api.github.com/repos/andela/fargo-ah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/fargo-ah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/fargo-ah/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/fargo-ah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/fargo-ah/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/fargo-ah/languages","stargazers_url":"https://api.github.com/repos/andela/fargo-ah/stargazers","contributors_url":"https://api.github.com/repos/andela/fargo-ah/contributors","subscribers_url":"https://api.github.com/repos/andela/fargo-ah/subscribers","subscription_url":"https://api.github.com/repos/andela/fargo-ah/subscription","commits_url":"https://api.github.com/repos/andela/fargo-ah/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/fargo-ah/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/fargo-ah/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/fargo-ah/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/fargo-ah/contents/{+path}","compare_url":"https://api.github.com/repos/andela/fargo-ah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/fargo-ah/merges","archive_url":"https://api.github.com/repos/andela/fargo-ah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/fargo-ah/downloads","issues_url":"https://api.github.com/repos/andela/fargo-ah/issues{/number}","pulls_url":"https://api.github.com/repos/andela/fargo-ah/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/fargo-ah/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/fargo-ah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/fargo-ah/labels{/name}","releases_url":"https://api.github.com/repos/andela/fargo-ah/releases{/id}","deployments_url":"https://api.github.com/repos/andela/fargo-ah/deployments","created_at":"2018-07-19T08:53:36Z","updated_at":"2018-08-11T23:20:29Z","pushed_at":"2018-08-13T13:56:29Z","git_url":"git://github.com/andela/fargo-ah.git","ssh_url":"git@github.com:andela/fargo-ah.git","clone_url":"https://github.com/andela/fargo-ah.git","svn_url":"https://github.com/andela/fargo-ah","homepage":"https://fargo-ah-staging.herokuapp.com/","size":439,"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":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":0,"open_issues":10,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"4218785486c566ad8303393361c5ea4f12e6aa47","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":141551572,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE1NTE1NzI=","name":"fargo-ah","full_name":"andela/fargo-ah","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},"private":false,"html_url":"https://github.com/andela/fargo-ah","description":"This is the staging application link for fargo-ah app","fork":false,"url":"https://api.github.com/repos/andela/fargo-ah","forks_url":"https://api.github.com/repos/andela/fargo-ah/forks","keys_url":"https://api.github.com/repos/andela/fargo-ah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/fargo-ah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/fargo-ah/teams","hooks_url":"https://api.github.com/repos/andela/fargo-ah/hooks","issue_events_url":"https://api.github.com/repos/andela/fargo-ah/issues/events{/number}","events_url":"https://api.github.com/repos/andela/fargo-ah/events","assignees_url":"https://api.github.com/repos/andela/fargo-ah/assignees{/user}","branches_url":"https://api.github.com/repos/andela/fargo-ah/branches{/branch}","tags_url":"https://api.github.com/repos/andela/fargo-ah/tags","blobs_url":"https://api.github.com/repos/andela/fargo-ah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/fargo-ah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/fargo-ah/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/fargo-ah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/fargo-ah/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/fargo-ah/languages","stargazers_url":"https://api.github.com/repos/andela/fargo-ah/stargazers","contributors_url":"https://api.github.com/repos/andela/fargo-ah/contributors","subscribers_url":"https://api.github.com/repos/andela/fargo-ah/subscribers","subscription_url":"https://api.github.com/repos/andela/fargo-ah/subscription","commits_url":"https://api.github.com/repos/andela/fargo-ah/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/fargo-ah/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/fargo-ah/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/fargo-ah/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/fargo-ah/contents/{+path}","compare_url":"https://api.github.com/repos/andela/fargo-ah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/fargo-ah/merges","archive_url":"https://api.github.com/repos/andela/fargo-ah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/fargo-ah/downloads","issues_url":"https://api.github.com/repos/andela/fargo-ah/issues{/number}","pulls_url":"https://api.github.com/repos/andela/fargo-ah/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/fargo-ah/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/fargo-ah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/fargo-ah/labels{/name}","releases_url":"https://api.github.com/repos/andela/fargo-ah/releases{/id}","deployments_url":"https://api.github.com/repos/andela/fargo-ah/deployments","created_at":"2018-07-19T08:53:36Z","updated_at":"2018-08-11T23:20:29Z","pushed_at":"2018-08-13T13:56:29Z","git_url":"git://github.com/andela/fargo-ah.git","ssh_url":"git@github.com:andela/fargo-ah.git","clone_url":"https://github.com/andela/fargo-ah.git","svn_url":"https://github.com/andela/fargo-ah","homepage":"https://fargo-ah-staging.herokuapp.com/","size":439,"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":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":0,"open_issues":10,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/fargo-ah/pulls/28"},"html":{"href":"https://github.com/andela/fargo-ah/pull/28"},"issue":{"href":"https://api.github.com/repos/andela/fargo-ah/issues/28"},"comments":{"href":"https://api.github.com/repos/andela/fargo-ah/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/fargo-ah/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/fargo-ah/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/fargo-ah/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/andela/fargo-ah/statuses/5e4428c50bda529e40ee63e03ec79d0add908948"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}