{"action":"created","comment":{"url":"https://api.github.com/repos/andela/lotus-ah/pulls/comments/227373623","pull_request_review_id":167397520,"id":227373623,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzM3MzYyMw==","diff_hunk":"@@ -30,17 +35,17 @@ ArticleRoute.get('/user',\n   Auth.verifyUserToken,\n   ArticleController.getUserArticles);\n \n-ArticleRoute.put('/user/:articleId',\n+ArticleRoute.get('/favourite',\n   Auth.verifyUserToken,\n-  ArticleController.updateArticle)\n+  ArticleController.getAllFavorite);\n \n-  .delete('/user/:articleId',\n-    Auth.verifyUserToken,\n-    ArticleController.deleteArticle)\n+ArticleRoute.put('/user/:slug',\n+  Auth.verifyUserToken,\n+  ArticleController.updateArticle)\n \n-  .get('/user/:articleId',\n+  .delete('/user/:slug',\n     Auth.verifyUserToken,\n-    ArticleController.getSingleArticle);\n+    ArticleController.deleteArticle);","path":"server/routes/api/articles.js","position":42,"original_position":42,"commit_id":"3a66493150b1e6b46deddfc31b212933186acc66","original_commit_id":"3a66493150b1e6b46deddfc31b212933186acc66","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-10-23T12:49:37Z","updated_at":"2018-10-23T12:49:38Z","html_url":"https://github.com/andela/lotus-ah/pull/36#discussion_r227373623","pull_request_url":"https://api.github.com/repos/andela/lotus-ah/pulls/36","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/lotus-ah/pulls/comments/227373623"},"html":{"href":"https://github.com/andela/lotus-ah/pull/36#discussion_r227373623"},"pull_request":{"href":"https://api.github.com/repos/andela/lotus-ah/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/andela/lotus-ah/pulls/36","id":225024956,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MDI0OTU2","html_url":"https://github.com/andela/lotus-ah/pull/36","diff_url":"https://github.com/andela/lotus-ah/pull/36.diff","patch_url":"https://github.com/andela/lotus-ah/pull/36.patch","issue_url":"https://api.github.com/repos/andela/lotus-ah/issues/36","number":36,"state":"open","locked":false,"title":" #160451618 Users should be able to like, dislike and unlike article comments","user":{"login":"mindsworth","id":14542449,"node_id":"MDQ6VXNlcjE0NTQyNDQ5","avatar_url":"https://avatars0.githubusercontent.com/u/14542449?v=4","gravatar_id":"","url":"https://api.github.com/users/mindsworth","html_url":"https://github.com/mindsworth","followers_url":"https://api.github.com/users/mindsworth/followers","following_url":"https://api.github.com/users/mindsworth/following{/other_user}","gists_url":"https://api.github.com/users/mindsworth/gists{/gist_id}","starred_url":"https://api.github.com/users/mindsworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindsworth/subscriptions","organizations_url":"https://api.github.com/users/mindsworth/orgs","repos_url":"https://api.github.com/users/mindsworth/repos","events_url":"https://api.github.com/users/mindsworth/events{/privacy}","received_events_url":"https://api.github.com/users/mindsworth/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nThis is PR is used to implement the like, dislike and unlike of comment functionality. It is also used to fetch all the liked and disliked of the article comments.\r\n   \r\n#### Description of Task to be completed?\r\n- Like comment\r\n- Dislike comment\r\n- Unlike and Un-dislike comment\r\n- get all likes for a specific comment\r\n- get all dislikes for a specific comment\r\n\r\n#### How should this be manually tested?\r\n- Start the app locally on port `3000`\r\n- Like an article via postman with the structure below\r\n- Make a `POST` request to `/api/v1/articles/comments/:commentId/like`,`/api/v1/articles/comments/:commentId/dislike`,`/api/v1/articles/comments/:commentId/unlike`\r\n- You should get a response with the structure below:\r\n```js\r\n{\r\n    \"status\": \"SUCCESS\",\r\n    \"DBdata\": {\r\n        \"id\": 2,\r\n        \"userId\": 1,\r\n        \"likes\": true,\r\n        \"dislike\": false,\r\n        \"articleId\": null,\r\n        \"updatedAt\": \"2018-10-23T12:42:35.930Z\"\r\n    },\r\n    \"message\": \"you liked the comment\"\r\n}\r\n```\r\n\r\n#### Any background context you want to provide?\r\nNA\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n-[#160451618](https://www.pivotaltracker.com/story/show/160451618)","created_at":"2018-10-23T12:49:11Z","updated_at":"2018-10-23T12:49:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1f28946e5871d7dd7394853953e0239e3c8ca8d","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Mrshinezee","id":20081126,"node_id":"MDQ6VXNlcjIwMDgxMTI2","avatar_url":"https://avatars2.githubusercontent.com/u/20081126?v=4","gravatar_id":"","url":"https://api.github.com/users/Mrshinezee","html_url":"https://github.com/Mrshinezee","followers_url":"https://api.github.com/users/Mrshinezee/followers","following_url":"https://api.github.com/users/Mrshinezee/following{/other_user}","gists_url":"https://api.github.com/users/Mrshinezee/gists{/gist_id}","starred_url":"https://api.github.com/users/Mrshinezee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mrshinezee/subscriptions","organizations_url":"https://api.github.com/users/Mrshinezee/orgs","repos_url":"https://api.github.com/users/Mrshinezee/repos","events_url":"https://api.github.com/users/Mrshinezee/events{/privacy}","received_events_url":"https://api.github.com/users/Mrshinezee/received_events","type":"User","site_admin":false},{"login":"Victor-Ugwueze","id":24890605,"node_id":"MDQ6VXNlcjI0ODkwNjA1","avatar_url":"https://avatars0.githubusercontent.com/u/24890605?v=4","gravatar_id":"","url":"https://api.github.com/users/Victor-Ugwueze","html_url":"https://github.com/Victor-Ugwueze","followers_url":"https://api.github.com/users/Victor-Ugwueze/followers","following_url":"https://api.github.com/users/Victor-Ugwueze/following{/other_user}","gists_url":"https://api.github.com/users/Victor-Ugwueze/gists{/gist_id}","starred_url":"https://api.github.com/users/Victor-Ugwueze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Victor-Ugwueze/subscriptions","organizations_url":"https://api.github.com/users/Victor-Ugwueze/orgs","repos_url":"https://api.github.com/users/Victor-Ugwueze/repos","events_url":"https://api.github.com/users/Victor-Ugwueze/events{/privacy}","received_events_url":"https://api.github.com/users/Victor-Ugwueze/received_events","type":"User","site_admin":false},{"login":"KaiserPhemi","id":26272628,"node_id":"MDQ6VXNlcjI2MjcyNjI4","avatar_url":"https://avatars1.githubusercontent.com/u/26272628?v=4","gravatar_id":"","url":"https://api.github.com/users/KaiserPhemi","html_url":"https://github.com/KaiserPhemi","followers_url":"https://api.github.com/users/KaiserPhemi/followers","following_url":"https://api.github.com/users/KaiserPhemi/following{/other_user}","gists_url":"https://api.github.com/users/KaiserPhemi/gists{/gist_id}","starred_url":"https://api.github.com/users/KaiserPhemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaiserPhemi/subscriptions","organizations_url":"https://api.github.com/users/KaiserPhemi/orgs","repos_url":"https://api.github.com/users/KaiserPhemi/repos","events_url":"https://api.github.com/users/KaiserPhemi/events{/privacy}","received_events_url":"https://api.github.com/users/KaiserPhemi/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/lotus-ah/pulls/36/commits","review_comments_url":"https://api.github.com/repos/andela/lotus-ah/pulls/36/comments","review_comment_url":"https://api.github.com/repos/andela/lotus-ah/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/lotus-ah/issues/36/comments","statuses_url":"https://api.github.com/repos/andela/lotus-ah/statuses/3a66493150b1e6b46deddfc31b212933186acc66","head":{"label":"andela:ft-like-dislike-comments-160451618","ref":"ft-like-dislike-comments-160451618","sha":"3a66493150b1e6b46deddfc31b212933186acc66","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":148493424,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg0OTM0MjQ=","name":"lotus-ah","full_name":"andela/lotus-ah","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/lotus-ah","description":"Authors Haven","fork":false,"url":"https://api.github.com/repos/andela/lotus-ah","forks_url":"https://api.github.com/repos/andela/lotus-ah/forks","keys_url":"https://api.github.com/repos/andela/lotus-ah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/lotus-ah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/lotus-ah/teams","hooks_url":"https://api.github.com/repos/andela/lotus-ah/hooks","issue_events_url":"https://api.github.com/repos/andela/lotus-ah/issues/events{/number}","events_url":"https://api.github.com/repos/andela/lotus-ah/events","assignees_url":"https://api.github.com/repos/andela/lotus-ah/assignees{/user}","branches_url":"https://api.github.com/repos/andela/lotus-ah/branches{/branch}","tags_url":"https://api.github.com/repos/andela/lotus-ah/tags","blobs_url":"https://api.github.com/repos/andela/lotus-ah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/lotus-ah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/lotus-ah/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/lotus-ah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/lotus-ah/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/lotus-ah/languages","stargazers_url":"https://api.github.com/repos/andela/lotus-ah/stargazers","contributors_url":"https://api.github.com/repos/andela/lotus-ah/contributors","subscribers_url":"https://api.github.com/repos/andela/lotus-ah/subscribers","subscription_url":"https://api.github.com/repos/andela/lotus-ah/subscription","commits_url":"https://api.github.com/repos/andela/lotus-ah/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/lotus-ah/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/lotus-ah/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/lotus-ah/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/lotus-ah/contents/{+path}","compare_url":"https://api.github.com/repos/andela/lotus-ah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/lotus-ah/merges","archive_url":"https://api.github.com/repos/andela/lotus-ah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/lotus-ah/downloads","issues_url":"https://api.github.com/repos/andela/lotus-ah/issues{/number}","pulls_url":"https://api.github.com/repos/andela/lotus-ah/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/lotus-ah/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/lotus-ah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/lotus-ah/labels{/name}","releases_url":"https://api.github.com/repos/andela/lotus-ah/releases{/id}","deployments_url":"https://api.github.com/repos/andela/lotus-ah/deployments","created_at":"2018-09-12T14:28:39Z","updated_at":"2018-10-19T13:50:11Z","pushed_at":"2018-10-23T12:49:12Z","git_url":"git://github.com/andela/lotus-ah.git","ssh_url":"git@github.com:andela/lotus-ah.git","clone_url":"https://github.com/andela/lotus-ah.git","svn_url":"https://github.com/andela/lotus-ah","homepage":"","size":724,"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":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"6c3f17105167dca1e2b49b1d3cecfc9f07cba6e7","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":148493424,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg0OTM0MjQ=","name":"lotus-ah","full_name":"andela/lotus-ah","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/lotus-ah","description":"Authors Haven","fork":false,"url":"https://api.github.com/repos/andela/lotus-ah","forks_url":"https://api.github.com/repos/andela/lotus-ah/forks","keys_url":"https://api.github.com/repos/andela/lotus-ah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/lotus-ah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/lotus-ah/teams","hooks_url":"https://api.github.com/repos/andela/lotus-ah/hooks","issue_events_url":"https://api.github.com/repos/andela/lotus-ah/issues/events{/number}","events_url":"https://api.github.com/repos/andela/lotus-ah/events","assignees_url":"https://api.github.com/repos/andela/lotus-ah/assignees{/user}","branches_url":"https://api.github.com/repos/andela/lotus-ah/branches{/branch}","tags_url":"https://api.github.com/repos/andela/lotus-ah/tags","blobs_url":"https://api.github.com/repos/andela/lotus-ah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/lotus-ah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/lotus-ah/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/lotus-ah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/lotus-ah/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/lotus-ah/languages","stargazers_url":"https://api.github.com/repos/andela/lotus-ah/stargazers","contributors_url":"https://api.github.com/repos/andela/lotus-ah/contributors","subscribers_url":"https://api.github.com/repos/andela/lotus-ah/subscribers","subscription_url":"https://api.github.com/repos/andela/lotus-ah/subscription","commits_url":"https://api.github.com/repos/andela/lotus-ah/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/lotus-ah/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/lotus-ah/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/lotus-ah/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/lotus-ah/contents/{+path}","compare_url":"https://api.github.com/repos/andela/lotus-ah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/lotus-ah/merges","archive_url":"https://api.github.com/repos/andela/lotus-ah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/lotus-ah/downloads","issues_url":"https://api.github.com/repos/andela/lotus-ah/issues{/number}","pulls_url":"https://api.github.com/repos/andela/lotus-ah/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/lotus-ah/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/lotus-ah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/lotus-ah/labels{/name}","releases_url":"https://api.github.com/repos/andela/lotus-ah/releases{/id}","deployments_url":"https://api.github.com/repos/andela/lotus-ah/deployments","created_at":"2018-09-12T14:28:39Z","updated_at":"2018-10-19T13:50:11Z","pushed_at":"2018-10-23T12:49:12Z","git_url":"git://github.com/andela/lotus-ah.git","ssh_url":"git@github.com:andela/lotus-ah.git","clone_url":"https://github.com/andela/lotus-ah.git","svn_url":"https://github.com/andela/lotus-ah","homepage":"","size":724,"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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/lotus-ah/pulls/36"},"html":{"href":"https://github.com/andela/lotus-ah/pull/36"},"issue":{"href":"https://api.github.com/repos/andela/lotus-ah/issues/36"},"comments":{"href":"https://api.github.com/repos/andela/lotus-ah/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/lotus-ah/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/lotus-ah/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/lotus-ah/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/andela/lotus-ah/statuses/3a66493150b1e6b46deddfc31b212933186acc66"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}