{"action":"opened","number":22,"pull_request":{"url":"https://api.github.com/repos/andela/ah-backend-zeus/pulls/22","id":238428650,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4NDI4NjUw","html_url":"https://github.com/andela/ah-backend-zeus/pull/22","diff_url":"https://github.com/andela/ah-backend-zeus/pull/22.diff","patch_url":"https://github.com/andela/ah-backend-zeus/pull/22.patch","issue_url":"https://api.github.com/repos/andela/ah-backend-zeus/issues/22","number":22,"state":"open","locked":false,"title":"Feature(articles): liking and disliking articles:","user":{"login":"ekumamait","id":9946845,"node_id":"MDQ6VXNlcjk5NDY4NDU=","avatar_url":"https://avatars2.githubusercontent.com/u/9946845?v=4","gravatar_id":"","url":"https://api.github.com/users/ekumamait","html_url":"https://github.com/ekumamait","followers_url":"https://api.github.com/users/ekumamait/followers","following_url":"https://api.github.com/users/ekumamait/following{/other_user}","gists_url":"https://api.github.com/users/ekumamait/gists{/gist_id}","starred_url":"https://api.github.com/users/ekumamait/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekumamait/subscriptions","organizations_url":"https://api.github.com/users/ekumamait/orgs","repos_url":"https://api.github.com/users/ekumamait/repos","events_url":"https://api.github.com/users/ekumamait/events{/privacy}","received_events_url":"https://api.github.com/users/ekumamait/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\nThis Pull Request adds the following functionality to the articles app:\r\n\t•\tUsers can like articles\r\n\t•\tUsers can dislike articles\r\n\r\n**Description of Task to be completed?**\r\nCurrently, users can only create an article, get all articles, get a specific article, update an article and delete an article. This task adds the ability for any registered user to like or dislike any articles available.\r\n\r\n**How should this be manually tested?**\r\n\t•\tMake migrations: `./manage.py make migrations articles`\r\n\t•\tMigrate: `./manage.py migrate`\r\n\t•\tRun the server: `./manage.py runserver`\r\n\t•\tOpen postman and test these endpoints:\r\n\r\n**Like an article** \r\nPOST `http://127.0.0.1:8000/api/articles/like/<slug>`\r\n\r\n**Dislike an article**\r\n POST `http://127.0.0.1:8000/api/articles/dislike/<slug>`\r\n\r\n**What are the relevant pivotal tracker stories?**\r\n[#162163170](https://www.pivotaltracker.com/story/show/162163170)\r\n\r\n**Any background context you want to add?**\r\nYou don’t need a body when using these endpoints so add the slug to add the like or dislike to a particular article once the user sends a post to the like endpoint the functionality will be triggered.\r\n\r\n**Screenshots (if appropriate)**\r\nwhen the like endpoint is accessed:\r\n<img width=\"732\" alt=\"screen shot 2018-12-13 at 5 36 29 pm\" src=\"https://user-images.githubusercontent.com/9946845/49948108-d2b71a00-ff03-11e8-9d7e-f9deb9a3954a.png\">\r\n\r\nwhen the article is fetched showing the count:\r\n<img width=\"1078\" alt=\"screen shot 2018-12-13 at 5 36 15 pm\" src=\"https://user-images.githubusercontent.com/9946845/49948132-e3679000-ff03-11e8-8966-601ab1d57d48.png\">\r\n","created_at":"2018-12-13T15:24:14Z","updated_at":"2018-12-13T15:24:14Z","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/ah-backend-zeus/pulls/22/commits","review_comments_url":"https://api.github.com/repos/andela/ah-backend-zeus/pulls/22/comments","review_comment_url":"https://api.github.com/repos/andela/ah-backend-zeus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/ah-backend-zeus/issues/22/comments","statuses_url":"https://api.github.com/repos/andela/ah-backend-zeus/statuses/739f7f0f02d89f2a5905209b713af4a06a2a1d71","head":{"label":"andela:ft-like-dislike-article-162163175","ref":"ft-like-dislike-article-162163175","sha":"739f7f0f02d89f2a5905209b713af4a06a2a1d71","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":158799435,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg3OTk0MzU=","name":"ah-backend-zeus","full_name":"andela/ah-backend-zeus","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/ah-backend-zeus","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-backend-zeus","forks_url":"https://api.github.com/repos/andela/ah-backend-zeus/forks","keys_url":"https://api.github.com/repos/andela/ah-backend-zeus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-backend-zeus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-backend-zeus/teams","hooks_url":"https://api.github.com/repos/andela/ah-backend-zeus/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-backend-zeus/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-backend-zeus/events","assignees_url":"https://api.github.com/repos/andela/ah-backend-zeus/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-backend-zeus/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-backend-zeus/tags","blobs_url":"https://api.github.com/repos/andela/ah-backend-zeus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-backend-zeus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-backend-zeus/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-backend-zeus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-backend-zeus/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-backend-zeus/languages","stargazers_url":"https://api.github.com/repos/andela/ah-backend-zeus/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-backend-zeus/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-backend-zeus/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-backend-zeus/subscription","commits_url":"https://api.github.com/repos/andela/ah-backend-zeus/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-backend-zeus/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-backend-zeus/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-backend-zeus/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-backend-zeus/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-backend-zeus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-backend-zeus/merges","archive_url":"https://api.github.com/repos/andela/ah-backend-zeus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-backend-zeus/downloads","issues_url":"https://api.github.com/repos/andela/ah-backend-zeus/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-backend-zeus/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-backend-zeus/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-backend-zeus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-backend-zeus/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-backend-zeus/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-backend-zeus/deployments","created_at":"2018-11-23T07:58:35Z","updated_at":"2018-12-12T20:51:05Z","pushed_at":"2018-12-13T15:16:03Z","git_url":"git://github.com/andela/ah-backend-zeus.git","ssh_url":"git@github.com:andela/ah-backend-zeus.git","clone_url":"https://github.com/andela/ah-backend-zeus.git","svn_url":"https://github.com/andela/ah-backend-zeus","homepage":null,"size":70,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":4,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"ce008fe38d2b46bb75bba7368f42a9a0f7017873","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":158799435,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg3OTk0MzU=","name":"ah-backend-zeus","full_name":"andela/ah-backend-zeus","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/ah-backend-zeus","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-backend-zeus","forks_url":"https://api.github.com/repos/andela/ah-backend-zeus/forks","keys_url":"https://api.github.com/repos/andela/ah-backend-zeus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-backend-zeus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-backend-zeus/teams","hooks_url":"https://api.github.com/repos/andela/ah-backend-zeus/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-backend-zeus/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-backend-zeus/events","assignees_url":"https://api.github.com/repos/andela/ah-backend-zeus/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-backend-zeus/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-backend-zeus/tags","blobs_url":"https://api.github.com/repos/andela/ah-backend-zeus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-backend-zeus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-backend-zeus/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-backend-zeus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-backend-zeus/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-backend-zeus/languages","stargazers_url":"https://api.github.com/repos/andela/ah-backend-zeus/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-backend-zeus/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-backend-zeus/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-backend-zeus/subscription","commits_url":"https://api.github.com/repos/andela/ah-backend-zeus/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-backend-zeus/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-backend-zeus/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-backend-zeus/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-backend-zeus/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-backend-zeus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-backend-zeus/merges","archive_url":"https://api.github.com/repos/andela/ah-backend-zeus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-backend-zeus/downloads","issues_url":"https://api.github.com/repos/andela/ah-backend-zeus/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-backend-zeus/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-backend-zeus/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-backend-zeus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-backend-zeus/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-backend-zeus/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-backend-zeus/deployments","created_at":"2018-11-23T07:58:35Z","updated_at":"2018-12-12T20:51:05Z","pushed_at":"2018-12-13T15:16:03Z","git_url":"git://github.com/andela/ah-backend-zeus.git","ssh_url":"git@github.com:andela/ah-backend-zeus.git","clone_url":"https://github.com/andela/ah-backend-zeus.git","svn_url":"https://github.com/andela/ah-backend-zeus","homepage":null,"size":70,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":4,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/ah-backend-zeus/pulls/22"},"html":{"href":"https://github.com/andela/ah-backend-zeus/pull/22"},"issue":{"href":"https://api.github.com/repos/andela/ah-backend-zeus/issues/22"},"comments":{"href":"https://api.github.com/repos/andela/ah-backend-zeus/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/ah-backend-zeus/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/ah-backend-zeus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/ah-backend-zeus/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/andela/ah-backend-zeus/statuses/739f7f0f02d89f2a5905209b713af4a06a2a1d71"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":249,"deletions":10,"changed_files":6}}
{"actor":{"display_login":"ekumamait"}}