{"action":"created","comment":{"url":"https://api.github.com/repos/andela/odin-ah-backend/pulls/comments/223739136","pull_request_review_id":162938934,"id":223739136,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzczOTEzNg==","diff_hunk":"@@ -1,7 +1,7 @@\n-import user from '../models';\n+import db from '../models';","path":"helpers/UserHelper.js","position":2,"original_position":2,"commit_id":"92d2d03316cc5c0f84e61fc7904f5bd45d410e1a","original_commit_id":"92d2d03316cc5c0f84e61fc7904f5bd45d410e1a","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":"Parsing error: 'import' and 'export' may appear only with 'sourceType: module'","created_at":"2018-10-09T14:59:53Z","updated_at":"2018-10-09T14:59:53Z","html_url":"https://github.com/andela/odin-ah-backend/pull/22#discussion_r223739136","pull_request_url":"https://api.github.com/repos/andela/odin-ah-backend/pulls/22","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/odin-ah-backend/pulls/comments/223739136"},"html":{"href":"https://github.com/andela/odin-ah-backend/pull/22#discussion_r223739136"},"pull_request":{"href":"https://api.github.com/repos/andela/odin-ah-backend/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/andela/odin-ah-backend/pulls/22","id":221445249,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNDQ1MjQ5","html_url":"https://github.com/andela/odin-ah-backend/pull/22","diff_url":"https://github.com/andela/odin-ah-backend/pull/22.diff","patch_url":"https://github.com/andela/odin-ah-backend/pull/22.patch","issue_url":"https://api.github.com/repos/andela/odin-ah-backend/issues/22","number":22,"state":"open","locked":false,"title":"#160452485: Build out functionality for following other users","user":{"login":"blackshady","id":26234445,"node_id":"MDQ6VXNlcjI2MjM0NDQ1","avatar_url":"https://avatars3.githubusercontent.com/u/26234445?v=4","gravatar_id":"","url":"https://api.github.com/users/blackshady","html_url":"https://github.com/blackshady","followers_url":"https://api.github.com/users/blackshady/followers","following_url":"https://api.github.com/users/blackshady/following{/other_user}","gists_url":"https://api.github.com/users/blackshady/gists{/gist_id}","starred_url":"https://api.github.com/users/blackshady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackshady/subscriptions","organizations_url":"https://api.github.com/users/blackshady/orgs","repos_url":"https://api.github.com/users/blackshady/repos","events_url":"https://api.github.com/users/blackshady/events{/privacy}","received_events_url":"https://api.github.com/users/blackshady/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nThis gives users the functionally to follow each other in the application\r\n\r\n#### Description of Task to be completed?\r\n- Change location of token Authorization to reduce code duplication\r\n- Update documentation\r\n- Write test\r\n- Create post endpoint to follow users\r\n- Create Delete endpoint to unfollow users\r\n\r\n#### How should this be manually tested?\r\n- Fetch and checkout to the branch\r\n```$xslt\r\n> git fetch\r\n> git checkout ft-160452483-comment-on-articles  \r\n> npm install \r\n```\r\n- Setup database using .env-sample\r\n* Run Sequelize migration \r\n```$xslt\r\n > npm run migration\r\n ```\r\n- Run application\r\n```$xslt \r\n> npm run start\r\n```\r\n- To run test\r\n```$xslt \r\n> npm run test\r\n```\r\n\r\n* For API Documuntation\r\nhttp://localhost:3000/api-docs/\r\n\r\n#### Any background context you want to provide?\r\n- None\r\n#### What are the relevant pivotal tracker stories?\r\n- [#160452485](<https://www.pivotaltracker.com/story/show/160452485/comments/195104772>)\r\n#### Screenshots (if appropriate)\r\n- Documentation\r\n<img width=\"1430\" alt=\"screen shot 2018-10-09 at 2 03 39 pm\" src=\"https://user-images.githubusercontent.com/26234445/46673083-e4610600-cbd0-11e8-9ffe-888760c42748.png\">\r\n\r\n\r\n#### Questions:","created_at":"2018-10-09T13:44:39Z","updated_at":"2018-10-09T14:59:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3417004b5b386cf3c33e33c4aaa221b5f3c5cbaf","assignee":null,"assignees":[],"requested_reviewers":[{"login":"macphilips","id":15909231,"node_id":"MDQ6VXNlcjE1OTA5MjMx","avatar_url":"https://avatars3.githubusercontent.com/u/15909231?v=4","gravatar_id":"","url":"https://api.github.com/users/macphilips","html_url":"https://github.com/macphilips","followers_url":"https://api.github.com/users/macphilips/followers","following_url":"https://api.github.com/users/macphilips/following{/other_user}","gists_url":"https://api.github.com/users/macphilips/gists{/gist_id}","starred_url":"https://api.github.com/users/macphilips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macphilips/subscriptions","organizations_url":"https://api.github.com/users/macphilips/orgs","repos_url":"https://api.github.com/users/macphilips/repos","events_url":"https://api.github.com/users/macphilips/events{/privacy}","received_events_url":"https://api.github.com/users/macphilips/received_events","type":"User","site_admin":false},{"login":"uchemukolo","id":30410066,"node_id":"MDQ6VXNlcjMwNDEwMDY2","avatar_url":"https://avatars0.githubusercontent.com/u/30410066?v=4","gravatar_id":"","url":"https://api.github.com/users/uchemukolo","html_url":"https://github.com/uchemukolo","followers_url":"https://api.github.com/users/uchemukolo/followers","following_url":"https://api.github.com/users/uchemukolo/following{/other_user}","gists_url":"https://api.github.com/users/uchemukolo/gists{/gist_id}","starred_url":"https://api.github.com/users/uchemukolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uchemukolo/subscriptions","organizations_url":"https://api.github.com/users/uchemukolo/orgs","repos_url":"https://api.github.com/users/uchemukolo/repos","events_url":"https://api.github.com/users/uchemukolo/events{/privacy}","received_events_url":"https://api.github.com/users/uchemukolo/received_events","type":"User","site_admin":false},{"login":"olusoladavid","id":30433120,"node_id":"MDQ6VXNlcjMwNDMzMTIw","avatar_url":"https://avatars3.githubusercontent.com/u/30433120?v=4","gravatar_id":"","url":"https://api.github.com/users/olusoladavid","html_url":"https://github.com/olusoladavid","followers_url":"https://api.github.com/users/olusoladavid/followers","following_url":"https://api.github.com/users/olusoladavid/following{/other_user}","gists_url":"https://api.github.com/users/olusoladavid/gists{/gist_id}","starred_url":"https://api.github.com/users/olusoladavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olusoladavid/subscriptions","organizations_url":"https://api.github.com/users/olusoladavid/orgs","repos_url":"https://api.github.com/users/olusoladavid/repos","events_url":"https://api.github.com/users/olusoladavid/events{/privacy}","received_events_url":"https://api.github.com/users/olusoladavid/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/odin-ah-backend/pulls/22/commits","review_comments_url":"https://api.github.com/repos/andela/odin-ah-backend/pulls/22/comments","review_comment_url":"https://api.github.com/repos/andela/odin-ah-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/odin-ah-backend/issues/22/comments","statuses_url":"https://api.github.com/repos/andela/odin-ah-backend/statuses/92d2d03316cc5c0f84e61fc7904f5bd45d410e1a","head":{"label":"andela:ft-160452485-follow-functionality","ref":"ft-160452485-follow-functionality","sha":"92d2d03316cc5c0f84e61fc7904f5bd45d410e1a","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":148493842,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg0OTM4NDI=","name":"odin-ah-backend","full_name":"andela/odin-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/odin-ah-backend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/odin-ah-backend","forks_url":"https://api.github.com/repos/andela/odin-ah-backend/forks","keys_url":"https://api.github.com/repos/andela/odin-ah-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/odin-ah-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/odin-ah-backend/teams","hooks_url":"https://api.github.com/repos/andela/odin-ah-backend/hooks","issue_events_url":"https://api.github.com/repos/andela/odin-ah-backend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/odin-ah-backend/events","assignees_url":"https://api.github.com/repos/andela/odin-ah-backend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/odin-ah-backend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/odin-ah-backend/tags","blobs_url":"https://api.github.com/repos/andela/odin-ah-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/odin-ah-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/odin-ah-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/odin-ah-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/odin-ah-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/odin-ah-backend/languages","stargazers_url":"https://api.github.com/repos/andela/odin-ah-backend/stargazers","contributors_url":"https://api.github.com/repos/andela/odin-ah-backend/contributors","subscribers_url":"https://api.github.com/repos/andela/odin-ah-backend/subscribers","subscription_url":"https://api.github.com/repos/andela/odin-ah-backend/subscription","commits_url":"https://api.github.com/repos/andela/odin-ah-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/odin-ah-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/odin-ah-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/odin-ah-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/odin-ah-backend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/odin-ah-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/odin-ah-backend/merges","archive_url":"https://api.github.com/repos/andela/odin-ah-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/odin-ah-backend/downloads","issues_url":"https://api.github.com/repos/andela/odin-ah-backend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/odin-ah-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/odin-ah-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/odin-ah-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/odin-ah-backend/labels{/name}","releases_url":"https://api.github.com/repos/andela/odin-ah-backend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/odin-ah-backend/deployments","created_at":"2018-09-12T14:31:43Z","updated_at":"2018-10-09T14:56:28Z","pushed_at":"2018-10-09T14:59:38Z","git_url":"git://github.com/andela/odin-ah-backend.git","ssh_url":"git@github.com:andela/odin-ah-backend.git","clone_url":"https://github.com/andela/odin-ah-backend.git","svn_url":"https://github.com/andela/odin-ah-backend","homepage":null,"size":239,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"staging"}},"base":{"label":"andela:staging","ref":"staging","sha":"332310027f000d6fe1af1881a6ff684a61d89dd9","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":148493842,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg0OTM4NDI=","name":"odin-ah-backend","full_name":"andela/odin-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/odin-ah-backend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/odin-ah-backend","forks_url":"https://api.github.com/repos/andela/odin-ah-backend/forks","keys_url":"https://api.github.com/repos/andela/odin-ah-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/odin-ah-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/odin-ah-backend/teams","hooks_url":"https://api.github.com/repos/andela/odin-ah-backend/hooks","issue_events_url":"https://api.github.com/repos/andela/odin-ah-backend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/odin-ah-backend/events","assignees_url":"https://api.github.com/repos/andela/odin-ah-backend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/odin-ah-backend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/odin-ah-backend/tags","blobs_url":"https://api.github.com/repos/andela/odin-ah-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/odin-ah-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/odin-ah-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/odin-ah-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/odin-ah-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/odin-ah-backend/languages","stargazers_url":"https://api.github.com/repos/andela/odin-ah-backend/stargazers","contributors_url":"https://api.github.com/repos/andela/odin-ah-backend/contributors","subscribers_url":"https://api.github.com/repos/andela/odin-ah-backend/subscribers","subscription_url":"https://api.github.com/repos/andela/odin-ah-backend/subscription","commits_url":"https://api.github.com/repos/andela/odin-ah-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/odin-ah-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/odin-ah-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/odin-ah-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/odin-ah-backend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/odin-ah-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/odin-ah-backend/merges","archive_url":"https://api.github.com/repos/andela/odin-ah-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/odin-ah-backend/downloads","issues_url":"https://api.github.com/repos/andela/odin-ah-backend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/odin-ah-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/odin-ah-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/odin-ah-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/odin-ah-backend/labels{/name}","releases_url":"https://api.github.com/repos/andela/odin-ah-backend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/odin-ah-backend/deployments","created_at":"2018-09-12T14:31:43Z","updated_at":"2018-10-09T14:56:28Z","pushed_at":"2018-10-09T14:59:38Z","git_url":"git://github.com/andela/odin-ah-backend.git","ssh_url":"git@github.com:andela/odin-ah-backend.git","clone_url":"https://github.com/andela/odin-ah-backend.git","svn_url":"https://github.com/andela/odin-ah-backend","homepage":null,"size":239,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/odin-ah-backend/pulls/22"},"html":{"href":"https://github.com/andela/odin-ah-backend/pull/22"},"issue":{"href":"https://api.github.com/repos/andela/odin-ah-backend/issues/22"},"comments":{"href":"https://api.github.com/repos/andela/odin-ah-backend/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/odin-ah-backend/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/odin-ah-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/odin-ah-backend/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/andela/odin-ah-backend/statuses/92d2d03316cc5c0f84e61fc7904f5bd45d410e1a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}