{"action":"created","issue":{"url":"https://api.github.com/repos/andela/prometheus-ah/issues/30","repository_url":"https://api.github.com/repos/andela/prometheus-ah","labels_url":"https://api.github.com/repos/andela/prometheus-ah/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/andela/prometheus-ah/issues/30/comments","events_url":"https://api.github.com/repos/andela/prometheus-ah/issues/30/events","html_url":"https://github.com/andela/prometheus-ah/pull/30","id":359658016,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1MTAwMzU3","number":30,"title":"[WIP] #159987751 Implements feature to report articles","user":{"login":"faksam","id":7892780,"node_id":"MDQ6VXNlcjc4OTI3ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/7892780?v=4","gravatar_id":"","url":"https://api.github.com/users/faksam","html_url":"https://github.com/faksam","followers_url":"https://api.github.com/users/faksam/followers","following_url":"https://api.github.com/users/faksam/following{/other_user}","gists_url":"https://api.github.com/users/faksam/gists{/gist_id}","starred_url":"https://api.github.com/users/faksam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faksam/subscriptions","organizations_url":"https://api.github.com/users/faksam/orgs","repos_url":"https://api.github.com/users/faksam/repos","events_url":"https://api.github.com/users/faksam/events{/privacy}","received_events_url":"https://api.github.com/users/faksam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-12T21:23:13Z","updated_at":"2018-09-12T21:35:06Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/andela/prometheus-ah/pulls/30","html_url":"https://github.com/andela/prometheus-ah/pull/30","diff_url":"https://github.com/andela/prometheus-ah/pull/30.diff","patch_url":"https://github.com/andela/prometheus-ah/pull/30.patch"},"body":"#### What does this PR do?\r\n- This PR implements a feature to report articles\r\n\r\n#### Description of Task to be completed?\r\n- An authenticated user should be able to report an article.\r\nPOST `api/articles/:articleSlug/reports`\r\n- An authenticated User/Admin should be able to view a specific report.\r\nGET `api/reports/reportId`\r\n- An Admin should be able to see all reports\r\nGET `api/reports`\r\n- Authenticated User/Admin should be able to update a specific report.\r\nPUT `api/reports/reportId`\r\n- An authenticated User should be able to delete his/her rating on an article.\r\nDELETE`api/reports/reportId`\r\n\r\n#### How should this be manually tested?\r\n- Clone the repo\r\n- Run `npm install`\r\n- Create a `.env` file using the sample and supply appropriate values\r\n- Run `npm run test`\r\n- Run in postman\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n**Note:** Authorization is needed to access the `create update delete` endpoints. Authorization should be added to the header\r\nAuthorization value: JWT\r\n\r\n#### Relevant Pivotal Tracker Story\r\n- [#159987751](https://www.pivotaltracker.com/story/show/159987751)\r\n"},"comment":{"url":"https://api.github.com/repos/andela/prometheus-ah/issues/comments/420805868","html_url":"https://github.com/andela/prometheus-ah/pull/30#issuecomment-420805868","issue_url":"https://api.github.com/repos/andela/prometheus-ah/issues/30","id":420805868,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDgwNTg2OA==","user":{"login":"coveralls","id":2354108,"node_id":"MDQ6VXNlcjIzNTQxMDg=","avatar_url":"https://avatars1.githubusercontent.com/u/2354108?v=4","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T21:35:06Z","updated_at":"2018-09-12T21:35:06Z","author_association":"NONE","body":"## Pull Request Test Coverage Report for [Build 500](https://coveralls.io/builds/18967556)\n\n* **234** of **234**   **(100.0%)**  changed or added relevant lines in **10** files are covered.\n* No unchanged relevant lines lost coverage.\n* Overall coverage increased (+**0.6%**) to **95.149%**\n\n---\n\n\n\n|  Totals | [![Coverage Status](https://coveralls.io/builds/18967556/badge)](https://coveralls.io/builds/18967556) |\n| :-- | --: |\n| Change from base [Build 487](https://coveralls.io/builds/18960640): |  0.6% |\n| Covered Lines: | 1601 |\n| Relevant Lines: | 1634 |\n\n---\n##### 💛  - [Coveralls](https://coveralls.io)\n"}}
{"actor":{"display_login":"coveralls"}}