{"action":"created","comment":{"url":"https://api.github.com/repos/andela/ah-orcas/pulls/comments/233176330","pull_request_review_id":174529661,"id":233176330,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzE3NjMzMA==","diff_hunk":"@@ -0,0 +1,29 @@\n+from django.db import models\n+from django.utils.translation import pgettext_lazy as _\n+from django.contrib.auth import get_user_model\n+\n+\n+class Report(models.Model):\n+    \"\"\"\n+    Store reported articles for Admin to review\n+    \"\"\"\n+    reporter = models.ForeignKey(\n+        get_user_model(),\n+        on_delete=models.CASCADE,\n+        null=True,\n+        blank=True,\n+        default=None\n+    )\n+    title = models.TextField(\n+        _('Report field', 'title'),\n+        blank=True,","path":"authors/apps/report/models.py","position":19,"original_position":19,"commit_id":"4d89f13f0d884ade4c65355260223e0c3a3761f8","original_commit_id":"4d89f13f0d884ade4c65355260223e0c3a3761f8","user":{"login":"Eyansky","id":26874561,"node_id":"MDQ6VXNlcjI2ODc0NTYx","avatar_url":"https://avatars1.githubusercontent.com/u/26874561?v=4","gravatar_id":"","url":"https://api.github.com/users/Eyansky","html_url":"https://github.com/Eyansky","followers_url":"https://api.github.com/users/Eyansky/followers","following_url":"https://api.github.com/users/Eyansky/following{/other_user}","gists_url":"https://api.github.com/users/Eyansky/gists{/gist_id}","starred_url":"https://api.github.com/users/Eyansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eyansky/subscriptions","organizations_url":"https://api.github.com/users/Eyansky/orgs","repos_url":"https://api.github.com/users/Eyansky/repos","events_url":"https://api.github.com/users/Eyansky/events{/privacy}","received_events_url":"https://api.github.com/users/Eyansky/received_events","type":"User","site_admin":false},"body":"See above.  Repeat comment","created_at":"2018-11-13T18:51:48Z","updated_at":"2018-11-13T18:51:49Z","html_url":"https://github.com/andela/ah-orcas/pull/35#discussion_r233176330","pull_request_url":"https://api.github.com/repos/andela/ah-orcas/pulls/35","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/andela/ah-orcas/pulls/comments/233176330"},"html":{"href":"https://github.com/andela/ah-orcas/pull/35#discussion_r233176330"},"pull_request":{"href":"https://api.github.com/repos/andela/ah-orcas/pulls/35"}},"in_reply_to_id":233169835},"pull_request":{"url":"https://api.github.com/repos/andela/ah-orcas/pulls/35","id":230486931,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNDg2OTMx","html_url":"https://github.com/andela/ah-orcas/pull/35","diff_url":"https://github.com/andela/ah-orcas/pull/35.diff","patch_url":"https://github.com/andela/ah-orcas/pull/35.patch","issue_url":"https://api.github.com/repos/andela/ah-orcas/issues/35","number":35,"state":"open","locked":false,"title":"#161254680 report article","user":{"login":"Eyansky","id":26874561,"node_id":"MDQ6VXNlcjI2ODc0NTYx","avatar_url":"https://avatars1.githubusercontent.com/u/26874561?v=4","gravatar_id":"","url":"https://api.github.com/users/Eyansky","html_url":"https://github.com/Eyansky","followers_url":"https://api.github.com/users/Eyansky/followers","following_url":"https://api.github.com/users/Eyansky/following{/other_user}","gists_url":"https://api.github.com/users/Eyansky/gists{/gist_id}","starred_url":"https://api.github.com/users/Eyansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eyansky/subscriptions","organizations_url":"https://api.github.com/users/Eyansky/orgs","repos_url":"https://api.github.com/users/Eyansky/repos","events_url":"https://api.github.com/users/Eyansky/events{/privacy}","received_events_url":"https://api.github.com/users/Eyansky/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n- User can report an article.\r\n#### Description of Task to be completed?\r\n- As an authenticated user i should be able to report articles that violate terms of agreement or are plagiarised to the authors haven admin for removal and or any other actions as per the terms of engagement.\r\n\r\n#### How should this be manually tested?\r\n- git clone this repo\r\n```\r\n$ git clone https://github.com/andela/ah-orcas\r\n```\r\n- Navigate to this branch\r\n```\r\n$git checkout ft-report-article-161254680\r\n```\r\n- Setup the environments, see sample.env. Then install them.\r\n```\r\n- source .env\r\n```\r\n- Install the requirements.txt\r\n```\r\npip install -r requirements.txt\r\n```\r\n- run the endpoint.\r\n[![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/380577a3770b04002007)\r\n\r\n#### Any background context you want to provide?\r\n- To report an article, one has to input their name as the reporter, title of the article then on the body they should input their concerns.\r\n#### What are the relevant pivotal tracker stories?\r\n- [161254680](https://www.pivotaltracker.com/story/show/161254680)\r\n\r\n#### Screenshots (if appropriate)\r\n<img width=\"1068\" alt=\"screen shot 2018-11-13 at 16 49 50\" src=\"https://user-images.githubusercontent.com/26874561/48417616-3b27a580-e764-11e8-9004-97b657370a61.png\">\r\n","created_at":"2018-11-13T14:05:33Z","updated_at":"2018-11-13T18:51:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"429f291abcfcf8737b7eb7626fe2db6fc03bf4f7","assignee":null,"assignees":[],"requested_reviewers":[{"login":"code-sleuth","id":21032089,"node_id":"MDQ6VXNlcjIxMDMyMDg5","avatar_url":"https://avatars3.githubusercontent.com/u/21032089?v=4","gravatar_id":"","url":"https://api.github.com/users/code-sleuth","html_url":"https://github.com/code-sleuth","followers_url":"https://api.github.com/users/code-sleuth/followers","following_url":"https://api.github.com/users/code-sleuth/following{/other_user}","gists_url":"https://api.github.com/users/code-sleuth/gists{/gist_id}","starred_url":"https://api.github.com/users/code-sleuth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-sleuth/subscriptions","organizations_url":"https://api.github.com/users/code-sleuth/orgs","repos_url":"https://api.github.com/users/code-sleuth/repos","events_url":"https://api.github.com/users/code-sleuth/events{/privacy}","received_events_url":"https://api.github.com/users/code-sleuth/received_events","type":"User","site_admin":false},{"login":"TheSteelGuy","id":30718807,"node_id":"MDQ6VXNlcjMwNzE4ODA3","avatar_url":"https://avatars0.githubusercontent.com/u/30718807?v=4","gravatar_id":"","url":"https://api.github.com/users/TheSteelGuy","html_url":"https://github.com/TheSteelGuy","followers_url":"https://api.github.com/users/TheSteelGuy/followers","following_url":"https://api.github.com/users/TheSteelGuy/following{/other_user}","gists_url":"https://api.github.com/users/TheSteelGuy/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSteelGuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSteelGuy/subscriptions","organizations_url":"https://api.github.com/users/TheSteelGuy/orgs","repos_url":"https://api.github.com/users/TheSteelGuy/repos","events_url":"https://api.github.com/users/TheSteelGuy/events{/privacy}","received_events_url":"https://api.github.com/users/TheSteelGuy/received_events","type":"User","site_admin":false},{"login":"kipropbrian","id":33654025,"node_id":"MDQ6VXNlcjMzNjU0MDI1","avatar_url":"https://avatars0.githubusercontent.com/u/33654025?v=4","gravatar_id":"","url":"https://api.github.com/users/kipropbrian","html_url":"https://github.com/kipropbrian","followers_url":"https://api.github.com/users/kipropbrian/followers","following_url":"https://api.github.com/users/kipropbrian/following{/other_user}","gists_url":"https://api.github.com/users/kipropbrian/gists{/gist_id}","starred_url":"https://api.github.com/users/kipropbrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kipropbrian/subscriptions","organizations_url":"https://api.github.com/users/kipropbrian/orgs","repos_url":"https://api.github.com/users/kipropbrian/repos","events_url":"https://api.github.com/users/kipropbrian/events{/privacy}","received_events_url":"https://api.github.com/users/kipropbrian/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1103137653,"node_id":"MDU6TGFiZWwxMTAzMTM3NjUz","url":"https://api.github.com/repos/andela/ah-orcas/labels/Finished","name":"Finished","color":"82db59","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/andela/ah-orcas/pulls/35/commits","review_comments_url":"https://api.github.com/repos/andela/ah-orcas/pulls/35/comments","review_comment_url":"https://api.github.com/repos/andela/ah-orcas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/ah-orcas/issues/35/comments","statuses_url":"https://api.github.com/repos/andela/ah-orcas/statuses/4d89f13f0d884ade4c65355260223e0c3a3761f8","head":{"label":"andela:ft-report-article-161254680","ref":"ft-report-article-161254680","sha":"4d89f13f0d884ade4c65355260223e0c3a3761f8","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":153309142,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMzMDkxNDI=","name":"ah-orcas","full_name":"andela/ah-orcas","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-orcas","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-orcas","forks_url":"https://api.github.com/repos/andela/ah-orcas/forks","keys_url":"https://api.github.com/repos/andela/ah-orcas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-orcas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-orcas/teams","hooks_url":"https://api.github.com/repos/andela/ah-orcas/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-orcas/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-orcas/events","assignees_url":"https://api.github.com/repos/andela/ah-orcas/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-orcas/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-orcas/tags","blobs_url":"https://api.github.com/repos/andela/ah-orcas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-orcas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-orcas/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-orcas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-orcas/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-orcas/languages","stargazers_url":"https://api.github.com/repos/andela/ah-orcas/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-orcas/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-orcas/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-orcas/subscription","commits_url":"https://api.github.com/repos/andela/ah-orcas/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-orcas/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-orcas/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-orcas/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-orcas/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-orcas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-orcas/merges","archive_url":"https://api.github.com/repos/andela/ah-orcas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-orcas/downloads","issues_url":"https://api.github.com/repos/andela/ah-orcas/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-orcas/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-orcas/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-orcas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-orcas/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-orcas/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-orcas/deployments","created_at":"2018-10-16T15:27:42Z","updated_at":"2018-11-13T13:23:27Z","pushed_at":"2018-11-13T18:12:54Z","git_url":"git://github.com/andela/ah-orcas.git","ssh_url":"git@github.com:andela/ah-orcas.git","clone_url":"https://github.com/andela/ah-orcas.git","svn_url":"https://github.com/andela/ah-orcas","homepage":null,"size":148,"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":0,"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":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"9d95941a6f621f3fe6bae147b0f1ad18789d64d1","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":153309142,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMzMDkxNDI=","name":"ah-orcas","full_name":"andela/ah-orcas","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-orcas","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-orcas","forks_url":"https://api.github.com/repos/andela/ah-orcas/forks","keys_url":"https://api.github.com/repos/andela/ah-orcas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-orcas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-orcas/teams","hooks_url":"https://api.github.com/repos/andela/ah-orcas/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-orcas/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-orcas/events","assignees_url":"https://api.github.com/repos/andela/ah-orcas/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-orcas/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-orcas/tags","blobs_url":"https://api.github.com/repos/andela/ah-orcas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-orcas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-orcas/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-orcas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-orcas/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-orcas/languages","stargazers_url":"https://api.github.com/repos/andela/ah-orcas/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-orcas/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-orcas/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-orcas/subscription","commits_url":"https://api.github.com/repos/andela/ah-orcas/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-orcas/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-orcas/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-orcas/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-orcas/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-orcas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-orcas/merges","archive_url":"https://api.github.com/repos/andela/ah-orcas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-orcas/downloads","issues_url":"https://api.github.com/repos/andela/ah-orcas/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-orcas/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-orcas/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-orcas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-orcas/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-orcas/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-orcas/deployments","created_at":"2018-10-16T15:27:42Z","updated_at":"2018-11-13T13:23:27Z","pushed_at":"2018-11-13T18:12:54Z","git_url":"git://github.com/andela/ah-orcas.git","ssh_url":"git@github.com:andela/ah-orcas.git","clone_url":"https://github.com/andela/ah-orcas.git","svn_url":"https://github.com/andela/ah-orcas","homepage":null,"size":148,"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":0,"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":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/ah-orcas/pulls/35"},"html":{"href":"https://github.com/andela/ah-orcas/pull/35"},"issue":{"href":"https://api.github.com/repos/andela/ah-orcas/issues/35"},"comments":{"href":"https://api.github.com/repos/andela/ah-orcas/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/ah-orcas/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/ah-orcas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/ah-orcas/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/andela/ah-orcas/statuses/4d89f13f0d884ade4c65355260223e0c3a3761f8"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Eyansky"}}