{"action":"opened","number":64,"pull_request":{"url":"https://api.github.com/repos/andela/ah-code-blooded/pulls/64","id":233094915,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMDk0OTE1","html_url":"https://github.com/andela/ah-code-blooded/pull/64","diff_url":"https://github.com/andela/ah-code-blooded/pull/64.diff","patch_url":"https://github.com/andela/ah-code-blooded/pull/64.patch","issue_url":"https://api.github.com/repos/andela/ah-code-blooded/issues/64","number":64,"state":"open","locked":false,"title":"#162159287 Add more article stats","user":{"login":"mutaimwiti","id":8180548,"node_id":"MDQ6VXNlcjgxODA1NDg=","avatar_url":"https://avatars0.githubusercontent.com/u/8180548?v=4","gravatar_id":"","url":"https://api.github.com/users/mutaimwiti","html_url":"https://github.com/mutaimwiti","followers_url":"https://api.github.com/users/mutaimwiti/followers","following_url":"https://api.github.com/users/mutaimwiti/following{/other_user}","gists_url":"https://api.github.com/users/mutaimwiti/gists{/gist_id}","starred_url":"https://api.github.com/users/mutaimwiti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mutaimwiti/subscriptions","organizations_url":"https://api.github.com/users/mutaimwiti/orgs","repos_url":"https://api.github.com/users/mutaimwiti/repos","events_url":"https://api.github.com/users/mutaimwiti/events{/privacy}","received_events_url":"https://api.github.com/users/mutaimwiti/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\n\r\nThis PR adds more data to article stats for the benefit of the user.\r\n\r\n**Description of Task to be completed?**\r\n\r\nOther than `view count` and `comment count`, it will be important to provide the user with `like count` and `dislike count`.\r\n\r\n**How should this be manually tested?**\r\n\r\nTo manually test using Postman.\r\n1. Ensure that env variables are exported.\r\n2. Run the application `python manage.py runserver`\r\n3. Create articles on the endpoint `POST /api/articles/`\r\n4. Like articles on the endpoint `POST /api/articles/<str:slug>/like/`\r\n5. Dislike articles on the endpoint `POST /api/articles/<str:slug>/dislike/`\r\n6. Get article stats on the endpoint `GET /article-stats/`\r\n\r\n**What are the relevant pivotal tracker stories?**\r\n\r\n[#162159287](https://www.pivotaltracker.com/story/show/162159287)\r\n\r\n**Screenshots**\r\n<img width=\"864\" alt=\"screen shot 2018-11-23 at 05 15 38\" src=\"https://user-images.githubusercontent.com/8180548/48926418-ed870780-eede-11e8-8cd7-27243d8a333e.png\">","created_at":"2018-11-23T02:17:19Z","updated_at":"2018-11-23T02:17:19Z","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-code-blooded/pulls/64/commits","review_comments_url":"https://api.github.com/repos/andela/ah-code-blooded/pulls/64/comments","review_comment_url":"https://api.github.com/repos/andela/ah-code-blooded/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/ah-code-blooded/issues/64/comments","statuses_url":"https://api.github.com/repos/andela/ah-code-blooded/statuses/990e94bb09e98c7936d62815294ba984e91ec372","head":{"label":"andela:ft-add-article-stats-162159287","ref":"ft-add-article-stats-162159287","sha":"990e94bb09e98c7936d62815294ba984e91ec372","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":149583386,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk1ODMzODY=","name":"ah-code-blooded","full_name":"andela/ah-code-blooded","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-code-blooded","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-code-blooded","forks_url":"https://api.github.com/repos/andela/ah-code-blooded/forks","keys_url":"https://api.github.com/repos/andela/ah-code-blooded/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-code-blooded/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-code-blooded/teams","hooks_url":"https://api.github.com/repos/andela/ah-code-blooded/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-code-blooded/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-code-blooded/events","assignees_url":"https://api.github.com/repos/andela/ah-code-blooded/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-code-blooded/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-code-blooded/tags","blobs_url":"https://api.github.com/repos/andela/ah-code-blooded/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-code-blooded/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-code-blooded/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-code-blooded/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-code-blooded/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-code-blooded/languages","stargazers_url":"https://api.github.com/repos/andela/ah-code-blooded/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-code-blooded/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-code-blooded/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-code-blooded/subscription","commits_url":"https://api.github.com/repos/andela/ah-code-blooded/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-code-blooded/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-code-blooded/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-code-blooded/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-code-blooded/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-code-blooded/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-code-blooded/merges","archive_url":"https://api.github.com/repos/andela/ah-code-blooded/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-code-blooded/downloads","issues_url":"https://api.github.com/repos/andela/ah-code-blooded/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-code-blooded/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-code-blooded/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-code-blooded/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-code-blooded/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-code-blooded/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-code-blooded/deployments","created_at":"2018-09-20T09:17:10Z","updated_at":"2018-11-22T15:06:58Z","pushed_at":"2018-11-23T02:04:11Z","git_url":"git://github.com/andela/ah-code-blooded.git","ssh_url":"git@github.com:andela/ah-code-blooded.git","clone_url":"https://github.com/andela/ah-code-blooded.git","svn_url":"https://github.com/andela/ah-code-blooded","homepage":null,"size":2823,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"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":0,"open_issues":3,"watchers":2,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"0a597388bc921cdd35e592ff12768fe03b0b97a6","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":149583386,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk1ODMzODY=","name":"ah-code-blooded","full_name":"andela/ah-code-blooded","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-code-blooded","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-code-blooded","forks_url":"https://api.github.com/repos/andela/ah-code-blooded/forks","keys_url":"https://api.github.com/repos/andela/ah-code-blooded/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-code-blooded/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-code-blooded/teams","hooks_url":"https://api.github.com/repos/andela/ah-code-blooded/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-code-blooded/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-code-blooded/events","assignees_url":"https://api.github.com/repos/andela/ah-code-blooded/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-code-blooded/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-code-blooded/tags","blobs_url":"https://api.github.com/repos/andela/ah-code-blooded/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-code-blooded/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-code-blooded/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-code-blooded/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-code-blooded/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-code-blooded/languages","stargazers_url":"https://api.github.com/repos/andela/ah-code-blooded/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-code-blooded/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-code-blooded/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-code-blooded/subscription","commits_url":"https://api.github.com/repos/andela/ah-code-blooded/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-code-blooded/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-code-blooded/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-code-blooded/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-code-blooded/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-code-blooded/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-code-blooded/merges","archive_url":"https://api.github.com/repos/andela/ah-code-blooded/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-code-blooded/downloads","issues_url":"https://api.github.com/repos/andela/ah-code-blooded/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-code-blooded/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-code-blooded/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-code-blooded/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-code-blooded/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-code-blooded/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-code-blooded/deployments","created_at":"2018-09-20T09:17:10Z","updated_at":"2018-11-22T15:06:58Z","pushed_at":"2018-11-23T02:04:11Z","git_url":"git://github.com/andela/ah-code-blooded.git","ssh_url":"git@github.com:andela/ah-code-blooded.git","clone_url":"https://github.com/andela/ah-code-blooded.git","svn_url":"https://github.com/andela/ah-code-blooded","homepage":null,"size":2823,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"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":0,"open_issues":3,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/ah-code-blooded/pulls/64"},"html":{"href":"https://github.com/andela/ah-code-blooded/pull/64"},"issue":{"href":"https://api.github.com/repos/andela/ah-code-blooded/issues/64"},"comments":{"href":"https://api.github.com/repos/andela/ah-code-blooded/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/ah-code-blooded/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/ah-code-blooded/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/ah-code-blooded/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/andela/ah-code-blooded/statuses/990e94bb09e98c7936d62815294ba984e91ec372"}},"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":53,"deletions":4,"changed_files":3}}
{"actor":{"display_login":"mutaimwiti"}}