{"action":"closed","number":28,"pull_request":{"url":"https://api.github.com/repos/andela/ah-jarvis/pulls/28","id":208765011,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NzY1MDEx","html_url":"https://github.com/andela/ah-jarvis/pull/28","diff_url":"https://github.com/andela/ah-jarvis/pull/28.diff","patch_url":"https://github.com/andela/ah-jarvis/pull/28.patch","issue_url":"https://api.github.com/repos/andela/ah-jarvis/issues/28","number":28,"state":"closed","locked":false,"title":"#59054021 Fix Ratings Bug.","user":{"login":"dessHub","id":19705477,"node_id":"MDQ6VXNlcjE5NzA1NDc3","avatar_url":"https://avatars0.githubusercontent.com/u/19705477?v=4","gravatar_id":"","url":"https://api.github.com/users/dessHub","html_url":"https://github.com/dessHub","followers_url":"https://api.github.com/users/dessHub/followers","following_url":"https://api.github.com/users/dessHub/following{/other_user}","gists_url":"https://api.github.com/users/dessHub/gists{/gist_id}","starred_url":"https://api.github.com/users/dessHub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dessHub/subscriptions","organizations_url":"https://api.github.com/users/dessHub/orgs","repos_url":"https://api.github.com/users/dessHub/repos","events_url":"https://api.github.com/users/dessHub/events{/privacy}","received_events_url":"https://api.github.com/users/dessHub/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\nFixes bug on rating response\r\nAlso get rid of duplicate rating serializer.\r\n\r\n**Background information**\r\nThe message returned had a grammatical error.\r\n\r\n**How To Manually Test?**\r\n`fetch origin`\r\n`git checkout bg-rating-159816402`\r\n\r\n- Update database by running migrations.\r\n`python manage.py migrate`\r\n\r\n- Run test coverage\r\n`python manage.py test`\r\n\r\n- Start the server\r\n`python manage.py runserver`\r\n\r\n- Test the endpoints on postman.\r\n\r\nAffected Endpoints:\r\nDELETE /api/articles/<slug>/rate/\r\nResponse:\r\n```\r\n{\r\n    \"rate\": {\r\n        \"response\": {\r\n            \"message\": [\r\n                \"Successfull.\"\r\n            ],\r\n            \"avg_ratings\": {\r\n                \"ratings__avg\": 4\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\nScreenshot:\r\n<img width=\"1261\" alt=\"screen shot 2018-08-16 at 10 04 08\" src=\"https://user-images.githubusercontent.com/19705477/44193809-bf09cb80-a13c-11e8-87c8-73a932fdf9a3.png\">\r\n\r\n\r\n**Relevant Pivotal tracker stories**\r\n[#159816402](https://www.pivotaltracker.com/story/show/159816402) Fix ratings bug.\r\n","created_at":"2018-08-16T07:12:37Z","updated_at":"2018-08-16T09:18:37Z","closed_at":"2018-08-16T09:18:37Z","merged_at":"2018-08-16T09:18:37Z","merge_commit_sha":"47322d62a1a4d6a34b854fc720859374ea15b87b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/ah-jarvis/pulls/28/commits","review_comments_url":"https://api.github.com/repos/andela/ah-jarvis/pulls/28/comments","review_comment_url":"https://api.github.com/repos/andela/ah-jarvis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/ah-jarvis/issues/28/comments","statuses_url":"https://api.github.com/repos/andela/ah-jarvis/statuses/f2042e73f68b915a28bb79c9faf1c1c9c4effb1e","head":{"label":"andela:bg-rating-159816402","ref":"bg-rating-159816402","sha":"f2042e73f68b915a28bb79c9faf1c1c9c4effb1e","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":140683525,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA2ODM1MjU=","name":"ah-jarvis","full_name":"andela/ah-jarvis","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/ah-jarvis","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-jarvis","forks_url":"https://api.github.com/repos/andela/ah-jarvis/forks","keys_url":"https://api.github.com/repos/andela/ah-jarvis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-jarvis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-jarvis/teams","hooks_url":"https://api.github.com/repos/andela/ah-jarvis/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-jarvis/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-jarvis/events","assignees_url":"https://api.github.com/repos/andela/ah-jarvis/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-jarvis/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-jarvis/tags","blobs_url":"https://api.github.com/repos/andela/ah-jarvis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-jarvis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-jarvis/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-jarvis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-jarvis/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-jarvis/languages","stargazers_url":"https://api.github.com/repos/andela/ah-jarvis/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-jarvis/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-jarvis/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-jarvis/subscription","commits_url":"https://api.github.com/repos/andela/ah-jarvis/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-jarvis/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-jarvis/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-jarvis/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-jarvis/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-jarvis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-jarvis/merges","archive_url":"https://api.github.com/repos/andela/ah-jarvis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-jarvis/downloads","issues_url":"https://api.github.com/repos/andela/ah-jarvis/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-jarvis/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-jarvis/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-jarvis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-jarvis/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-jarvis/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-jarvis/deployments","created_at":"2018-07-12T08:19:44Z","updated_at":"2018-07-17T07:45:57Z","pushed_at":"2018-08-16T09:18:37Z","git_url":"git://github.com/andela/ah-jarvis.git","ssh_url":"git@github.com:andela/ah-jarvis.git","clone_url":"https://github.com/andela/ah-jarvis.git","svn_url":"https://github.com/andela/ah-jarvis","homepage":null,"size":2015,"stargazers_count":1,"watchers_count":1,"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":2,"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":2,"watchers":1,"default_branch":"master"}},"base":{"label":"andela:develop","ref":"develop","sha":"b8c40731acd116a4cd3620796a6bb8f8f0d63f47","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":140683525,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA2ODM1MjU=","name":"ah-jarvis","full_name":"andela/ah-jarvis","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/ah-jarvis","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-jarvis","forks_url":"https://api.github.com/repos/andela/ah-jarvis/forks","keys_url":"https://api.github.com/repos/andela/ah-jarvis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-jarvis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-jarvis/teams","hooks_url":"https://api.github.com/repos/andela/ah-jarvis/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-jarvis/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-jarvis/events","assignees_url":"https://api.github.com/repos/andela/ah-jarvis/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-jarvis/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-jarvis/tags","blobs_url":"https://api.github.com/repos/andela/ah-jarvis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-jarvis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-jarvis/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-jarvis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-jarvis/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-jarvis/languages","stargazers_url":"https://api.github.com/repos/andela/ah-jarvis/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-jarvis/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-jarvis/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-jarvis/subscription","commits_url":"https://api.github.com/repos/andela/ah-jarvis/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-jarvis/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-jarvis/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-jarvis/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-jarvis/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-jarvis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-jarvis/merges","archive_url":"https://api.github.com/repos/andela/ah-jarvis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-jarvis/downloads","issues_url":"https://api.github.com/repos/andela/ah-jarvis/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-jarvis/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-jarvis/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-jarvis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-jarvis/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-jarvis/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-jarvis/deployments","created_at":"2018-07-12T08:19:44Z","updated_at":"2018-07-17T07:45:57Z","pushed_at":"2018-08-16T09:18:37Z","git_url":"git://github.com/andela/ah-jarvis.git","ssh_url":"git@github.com:andela/ah-jarvis.git","clone_url":"https://github.com/andela/ah-jarvis.git","svn_url":"https://github.com/andela/ah-jarvis","homepage":null,"size":2015,"stargazers_count":1,"watchers_count":1,"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":2,"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":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/ah-jarvis/pulls/28"},"html":{"href":"https://github.com/andela/ah-jarvis/pull/28"},"issue":{"href":"https://api.github.com/repos/andela/ah-jarvis/issues/28"},"comments":{"href":"https://api.github.com/repos/andela/ah-jarvis/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/ah-jarvis/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/ah-jarvis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/ah-jarvis/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/andela/ah-jarvis/statuses/f2042e73f68b915a28bb79c9faf1c1c9c4effb1e"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jacksono","id":4943363,"node_id":"MDQ6VXNlcjQ5NDMzNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/4943363?v=4","gravatar_id":"","url":"https://api.github.com/users/jacksono","html_url":"https://github.com/jacksono","followers_url":"https://api.github.com/users/jacksono/followers","following_url":"https://api.github.com/users/jacksono/following{/other_user}","gists_url":"https://api.github.com/users/jacksono/gists{/gist_id}","starred_url":"https://api.github.com/users/jacksono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacksono/subscriptions","organizations_url":"https://api.github.com/users/jacksono/orgs","repos_url":"https://api.github.com/users/jacksono/repos","events_url":"https://api.github.com/users/jacksono/events{/privacy}","received_events_url":"https://api.github.com/users/jacksono/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":2,"deletions":21,"changed_files":3}}
{"actor":{"display_login":"jacksono"}}