{"action":"created","comment":{"url":"https://api.github.com/repos/andela/rivendell-ah/pulls/comments/213115508","pull_request_review_id":149884488,"id":213115508,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzExNTUwOA==","diff_hunk":"@@ -50,6 +51,13 @@ router.put(\n   UserController.resetPasswordUpdate,\n );\n \n+router.get(\n+  '/users/feeds',","path":"server/routes/api/users.js","position":12,"original_position":12,"commit_id":"c3914fea0feff1e5db1426d32f745c39c3d5c9e2","original_commit_id":"c3914fea0feff1e5db1426d32f745c39c3d5c9e2","user":{"login":"megame24","id":30550427,"node_id":"MDQ6VXNlcjMwNTUwNDI3","avatar_url":"https://avatars3.githubusercontent.com/u/30550427?v=4","gravatar_id":"","url":"https://api.github.com/users/megame24","html_url":"https://github.com/megame24","followers_url":"https://api.github.com/users/megame24/followers","following_url":"https://api.github.com/users/megame24/following{/other_user}","gists_url":"https://api.github.com/users/megame24/gists{/gist_id}","starred_url":"https://api.github.com/users/megame24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megame24/subscriptions","organizations_url":"https://api.github.com/users/megame24/orgs","repos_url":"https://api.github.com/users/megame24/repos","events_url":"https://api.github.com/users/megame24/events{/privacy}","received_events_url":"https://api.github.com/users/megame24/received_events","type":"User","site_admin":false},"body":"This route belongs to the articles route, the route is `/articles/feed` not `/users/feeds`. Check the readme. Correct it so I can approve it.","created_at":"2018-08-27T21:05:46Z","updated_at":"2018-08-27T21:05:47Z","html_url":"https://github.com/andela/rivendell-ah/pull/43#discussion_r213115508","pull_request_url":"https://api.github.com/repos/andela/rivendell-ah/pulls/43","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/andela/rivendell-ah/pulls/comments/213115508"},"html":{"href":"https://github.com/andela/rivendell-ah/pull/43#discussion_r213115508"},"pull_request":{"href":"https://api.github.com/repos/andela/rivendell-ah/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/andela/rivendell-ah/pulls/43","id":210803292,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwODAzMjky","html_url":"https://github.com/andela/rivendell-ah/pull/43","diff_url":"https://github.com/andela/rivendell-ah/pull/43.diff","patch_url":"https://github.com/andela/rivendell-ah/pull/43.patch","issue_url":"https://api.github.com/repos/andela/rivendell-ah/issues/43","number":43,"state":"open","locked":false,"title":"#159846572 implement fetching user feeds","user":{"login":"tutugodfrey","id":30448913,"node_id":"MDQ6VXNlcjMwNDQ4OTEz","avatar_url":"https://avatars1.githubusercontent.com/u/30448913?v=4","gravatar_id":"","url":"https://api.github.com/users/tutugodfrey","html_url":"https://github.com/tutugodfrey","followers_url":"https://api.github.com/users/tutugodfrey/followers","following_url":"https://api.github.com/users/tutugodfrey/following{/other_user}","gists_url":"https://api.github.com/users/tutugodfrey/gists{/gist_id}","starred_url":"https://api.github.com/users/tutugodfrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tutugodfrey/subscriptions","organizations_url":"https://api.github.com/users/tutugodfrey/orgs","repos_url":"https://api.github.com/users/tutugodfrey/repos","events_url":"https://api.github.com/users/tutugodfrey/events{/privacy}","received_events_url":"https://api.github.com/users/tutugodfrey/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n- Add implementation for users to get the latest article of authors they are following\r\n\r\n#### Description of Task to be completed?\r\n- add route for getting users feeds\r\n- add controller to fetch users feed\r\n\r\n#### How should this be manually tested?\r\n- clone the repository run `npm install` to install packages\r\n- set up your development environment based on what is in .env-sample file\r\n- run `npm run migrate`to create database tables\r\n- run `npm run dev` to start the development server\r\n- interact with the app using postman\r\n\r\n#### Any background context you want to provide?\r\n- To fully test the application, you will need to interact with the following routes\r\n- create users POST http://localhost:3000/api/users\r\n- verify the user's account GET http://localhost:3000/api/users/verify/:token\r\n- follow users on POST http://localhost:3000/api/profiles/:userId/follows\r\n- get users feeds GET http://localhost:3000/api/users/feed with token in headers\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n#159846572\r\n#### Screenshots (if appropriate)\r\n![image](https://user-images.githubusercontent.com/30448913/44598698-c16ac600-a7cb-11e8-99e5-2e9d3a89a7dd.png)\r\n![image](https://user-images.githubusercontent.com/30448913/44599347-e5c7a200-a7cd-11e8-88d2-79ac21f3c3e2.png)\r\n\r\n\r\n#### Questions:\r\nN/A","created_at":"2018-08-24T17:34:43Z","updated_at":"2018-08-27T21:05:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"394d0652e719c159a5269125349891a88158e350","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/rivendell-ah/pulls/43/commits","review_comments_url":"https://api.github.com/repos/andela/rivendell-ah/pulls/43/comments","review_comment_url":"https://api.github.com/repos/andela/rivendell-ah/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/rivendell-ah/issues/43/comments","statuses_url":"https://api.github.com/repos/andela/rivendell-ah/statuses/c3914fea0feff1e5db1426d32f745c39c3d5c9e2","head":{"label":"andela:feature/159846572/users-feeds","ref":"feature/159846572/users-feeds","sha":"c3914fea0feff1e5db1426d32f745c39c3d5c9e2","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":141551362,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE1NTEzNjI=","name":"rivendell-ah","full_name":"andela/rivendell-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/rivendell-ah","description":null,"fork":false,"url":"https://api.github.com/repos/andela/rivendell-ah","forks_url":"https://api.github.com/repos/andela/rivendell-ah/forks","keys_url":"https://api.github.com/repos/andela/rivendell-ah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/rivendell-ah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/rivendell-ah/teams","hooks_url":"https://api.github.com/repos/andela/rivendell-ah/hooks","issue_events_url":"https://api.github.com/repos/andela/rivendell-ah/issues/events{/number}","events_url":"https://api.github.com/repos/andela/rivendell-ah/events","assignees_url":"https://api.github.com/repos/andela/rivendell-ah/assignees{/user}","branches_url":"https://api.github.com/repos/andela/rivendell-ah/branches{/branch}","tags_url":"https://api.github.com/repos/andela/rivendell-ah/tags","blobs_url":"https://api.github.com/repos/andela/rivendell-ah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/rivendell-ah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/rivendell-ah/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/rivendell-ah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/rivendell-ah/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/rivendell-ah/languages","stargazers_url":"https://api.github.com/repos/andela/rivendell-ah/stargazers","contributors_url":"https://api.github.com/repos/andela/rivendell-ah/contributors","subscribers_url":"https://api.github.com/repos/andela/rivendell-ah/subscribers","subscription_url":"https://api.github.com/repos/andela/rivendell-ah/subscription","commits_url":"https://api.github.com/repos/andela/rivendell-ah/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/rivendell-ah/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/rivendell-ah/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/rivendell-ah/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/rivendell-ah/contents/{+path}","compare_url":"https://api.github.com/repos/andela/rivendell-ah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/rivendell-ah/merges","archive_url":"https://api.github.com/repos/andela/rivendell-ah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/rivendell-ah/downloads","issues_url":"https://api.github.com/repos/andela/rivendell-ah/issues{/number}","pulls_url":"https://api.github.com/repos/andela/rivendell-ah/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/rivendell-ah/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/rivendell-ah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/rivendell-ah/labels{/name}","releases_url":"https://api.github.com/repos/andela/rivendell-ah/releases{/id}","deployments_url":"https://api.github.com/repos/andela/rivendell-ah/deployments","created_at":"2018-07-19T08:51:46Z","updated_at":"2018-08-27T10:24:12Z","pushed_at":"2018-08-27T20:01:20Z","git_url":"git://github.com/andela/rivendell-ah.git","ssh_url":"git@github.com:andela/rivendell-ah.git","clone_url":"https://github.com/andela/rivendell-ah.git","svn_url":"https://github.com/andela/rivendell-ah","homepage":null,"size":380,"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":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"staging"}},"base":{"label":"andela:staging","ref":"staging","sha":"c2289d9fe6d5ef448e9918ee5b5ee30185597e91","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":141551362,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE1NTEzNjI=","name":"rivendell-ah","full_name":"andela/rivendell-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/rivendell-ah","description":null,"fork":false,"url":"https://api.github.com/repos/andela/rivendell-ah","forks_url":"https://api.github.com/repos/andela/rivendell-ah/forks","keys_url":"https://api.github.com/repos/andela/rivendell-ah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/rivendell-ah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/rivendell-ah/teams","hooks_url":"https://api.github.com/repos/andela/rivendell-ah/hooks","issue_events_url":"https://api.github.com/repos/andela/rivendell-ah/issues/events{/number}","events_url":"https://api.github.com/repos/andela/rivendell-ah/events","assignees_url":"https://api.github.com/repos/andela/rivendell-ah/assignees{/user}","branches_url":"https://api.github.com/repos/andela/rivendell-ah/branches{/branch}","tags_url":"https://api.github.com/repos/andela/rivendell-ah/tags","blobs_url":"https://api.github.com/repos/andela/rivendell-ah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/rivendell-ah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/rivendell-ah/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/rivendell-ah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/rivendell-ah/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/rivendell-ah/languages","stargazers_url":"https://api.github.com/repos/andela/rivendell-ah/stargazers","contributors_url":"https://api.github.com/repos/andela/rivendell-ah/contributors","subscribers_url":"https://api.github.com/repos/andela/rivendell-ah/subscribers","subscription_url":"https://api.github.com/repos/andela/rivendell-ah/subscription","commits_url":"https://api.github.com/repos/andela/rivendell-ah/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/rivendell-ah/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/rivendell-ah/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/rivendell-ah/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/rivendell-ah/contents/{+path}","compare_url":"https://api.github.com/repos/andela/rivendell-ah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/rivendell-ah/merges","archive_url":"https://api.github.com/repos/andela/rivendell-ah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/rivendell-ah/downloads","issues_url":"https://api.github.com/repos/andela/rivendell-ah/issues{/number}","pulls_url":"https://api.github.com/repos/andela/rivendell-ah/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/rivendell-ah/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/rivendell-ah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/rivendell-ah/labels{/name}","releases_url":"https://api.github.com/repos/andela/rivendell-ah/releases{/id}","deployments_url":"https://api.github.com/repos/andela/rivendell-ah/deployments","created_at":"2018-07-19T08:51:46Z","updated_at":"2018-08-27T10:24:12Z","pushed_at":"2018-08-27T20:01:20Z","git_url":"git://github.com/andela/rivendell-ah.git","ssh_url":"git@github.com:andela/rivendell-ah.git","clone_url":"https://github.com/andela/rivendell-ah.git","svn_url":"https://github.com/andela/rivendell-ah","homepage":null,"size":380,"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":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/rivendell-ah/pulls/43"},"html":{"href":"https://github.com/andela/rivendell-ah/pull/43"},"issue":{"href":"https://api.github.com/repos/andela/rivendell-ah/issues/43"},"comments":{"href":"https://api.github.com/repos/andela/rivendell-ah/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/rivendell-ah/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/rivendell-ah/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/rivendell-ah/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/andela/rivendell-ah/statuses/c3914fea0feff1e5db1426d32f745c39c3d5c9e2"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"megame24"}}