{"action":"created","comment":{"url":"https://api.github.com/repos/andela/ah-backend-thanos/pulls/comments/231248449","pull_request_review_id":172177910,"id":231248449,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTI0ODQ0OQ==","diff_hunk":"@@ -33,4 +34,18 @@ class Migration(migrations.Migration):\n                 ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),\n             ],\n         ),\n+        migrations.CreateModel(\n+            name='Comment',\n+            fields=[\n+                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n+                ('created_at', models.DateTimeField(auto_now_add=True)),\n+                ('updated_at', models.DateTimeField(auto_now=True)),\n+                ('comment_body', models.TextField()),\n+                ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='articles.Article')),","path":"authors/apps/articles/migrations/0001_initial.py","position":25,"original_position":25,"commit_id":"f38ab60efb87b264d26d8323a88543791489cc06","original_commit_id":"f38ab60efb87b264d26d8323a88543791489cc06","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"line too long (115 > 79 characters)","created_at":"2018-11-06T18:55:32Z","updated_at":"2018-11-06T18:55:33Z","html_url":"https://github.com/andela/ah-backend-thanos/pull/22#discussion_r231248449","pull_request_url":"https://api.github.com/repos/andela/ah-backend-thanos/pulls/22","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/ah-backend-thanos/pulls/comments/231248449"},"html":{"href":"https://github.com/andela/ah-backend-thanos/pull/22#discussion_r231248449"},"pull_request":{"href":"https://api.github.com/repos/andela/ah-backend-thanos/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/andela/ah-backend-thanos/pulls/22","id":228798673,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4Nzk4Njcz","html_url":"https://github.com/andela/ah-backend-thanos/pull/22","diff_url":"https://github.com/andela/ah-backend-thanos/pull/22.diff","patch_url":"https://github.com/andela/ah-backend-thanos/pull/22.patch","issue_url":"https://api.github.com/repos/andela/ah-backend-thanos/issues/22","number":22,"state":"open","locked":false,"title":"#161348799 Users should be able to comment on articles","user":{"login":"RachaelNantale","id":22786444,"node_id":"MDQ6VXNlcjIyNzg2NDQ0","avatar_url":"https://avatars1.githubusercontent.com/u/22786444?v=4","gravatar_id":"","url":"https://api.github.com/users/RachaelNantale","html_url":"https://github.com/RachaelNantale","followers_url":"https://api.github.com/users/RachaelNantale/followers","following_url":"https://api.github.com/users/RachaelNantale/following{/other_user}","gists_url":"https://api.github.com/users/RachaelNantale/gists{/gist_id}","starred_url":"https://api.github.com/users/RachaelNantale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RachaelNantale/subscriptions","organizations_url":"https://api.github.com/users/RachaelNantale/orgs","repos_url":"https://api.github.com/users/RachaelNantale/repos","events_url":"https://api.github.com/users/RachaelNantale/events{/privacy}","received_events_url":"https://api.github.com/users/RachaelNantale/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n- Comment on an article\r\n- Get all comments on an article\r\n\r\n#### How should this be manually tested?\r\nPOST `/api/articles/<id>/comments`\r\nGET `/api/articles/<id>/comments`\r\n\r\n```\r\n{\r\n  \"comments\":{\r\n  \t\"comment_body\": \"here is another  comment for article 4\"\r\n  \t\r\n  }\r\n}\r\n```\r\n\r\nExample response:\r\n```\r\n{\r\n    \"comments\": {\r\n        \"id\": 50,\r\n        \"comment_body\": \"here is another  comment for article 4\",\r\n        \"author\": {\r\n            \"id\": 1,\r\n            \"username\": \"rachaelnantale\",\r\n            \"email\": \"rachaelnantale42@gmail.com\"\r\n        },\r\n        \"article\": {\r\n            \"id\": 4,\r\n            \"title\": \"How to train your dragon\",\r\n            \"description\": \"Ever wonder how?\",\r\n            \"body\": \"It takes a Jacobian\"\r\n        },\r\n        \"created_at\": \"2018-11-06T18:49:49.613654Z\",\r\n        \"updated_at\": \"2018-11-06T18:49:49.613688Z\"\r\n    }\r\n}\r\n```\r\n\r\n#### Any background context you want to provide?\r\n- A user has to be  logged in to comment on an article\r\n- User can comment on  both authored by me and those not authored by him/her\r\n- You must be the author of the article in order to edit it\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n[#161348799](https://www.pivotaltracker.com/story/show/161348799)","created_at":"2018-11-06T18:55:12Z","updated_at":"2018-11-06T18:55:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[{"login":"Sulaiman-Mozes","id":22395477,"node_id":"MDQ6VXNlcjIyMzk1NDc3","avatar_url":"https://avatars1.githubusercontent.com/u/22395477?v=4","gravatar_id":"","url":"https://api.github.com/users/Sulaiman-Mozes","html_url":"https://github.com/Sulaiman-Mozes","followers_url":"https://api.github.com/users/Sulaiman-Mozes/followers","following_url":"https://api.github.com/users/Sulaiman-Mozes/following{/other_user}","gists_url":"https://api.github.com/users/Sulaiman-Mozes/gists{/gist_id}","starred_url":"https://api.github.com/users/Sulaiman-Mozes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sulaiman-Mozes/subscriptions","organizations_url":"https://api.github.com/users/Sulaiman-Mozes/orgs","repos_url":"https://api.github.com/users/Sulaiman-Mozes/repos","events_url":"https://api.github.com/users/Sulaiman-Mozes/events{/privacy}","received_events_url":"https://api.github.com/users/Sulaiman-Mozes/received_events","type":"User","site_admin":false},{"login":"brucemakallan","id":36793346,"node_id":"MDQ6VXNlcjM2NzkzMzQ2","avatar_url":"https://avatars1.githubusercontent.com/u/36793346?v=4","gravatar_id":"","url":"https://api.github.com/users/brucemakallan","html_url":"https://github.com/brucemakallan","followers_url":"https://api.github.com/users/brucemakallan/followers","following_url":"https://api.github.com/users/brucemakallan/following{/other_user}","gists_url":"https://api.github.com/users/brucemakallan/gists{/gist_id}","starred_url":"https://api.github.com/users/brucemakallan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brucemakallan/subscriptions","organizations_url":"https://api.github.com/users/brucemakallan/orgs","repos_url":"https://api.github.com/users/brucemakallan/repos","events_url":"https://api.github.com/users/brucemakallan/events{/privacy}","received_events_url":"https://api.github.com/users/brucemakallan/received_events","type":"User","site_admin":false},{"login":"judeinno","id":39259834,"node_id":"MDQ6VXNlcjM5MjU5ODM0","avatar_url":"https://avatars1.githubusercontent.com/u/39259834?v=4","gravatar_id":"","url":"https://api.github.com/users/judeinno","html_url":"https://github.com/judeinno","followers_url":"https://api.github.com/users/judeinno/followers","following_url":"https://api.github.com/users/judeinno/following{/other_user}","gists_url":"https://api.github.com/users/judeinno/gists{/gist_id}","starred_url":"https://api.github.com/users/judeinno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/judeinno/subscriptions","organizations_url":"https://api.github.com/users/judeinno/orgs","repos_url":"https://api.github.com/users/judeinno/repos","events_url":"https://api.github.com/users/judeinno/events{/privacy}","received_events_url":"https://api.github.com/users/judeinno/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/ah-backend-thanos/pulls/22/commits","review_comments_url":"https://api.github.com/repos/andela/ah-backend-thanos/pulls/22/comments","review_comment_url":"https://api.github.com/repos/andela/ah-backend-thanos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/ah-backend-thanos/issues/22/comments","statuses_url":"https://api.github.com/repos/andela/ah-backend-thanos/statuses/f38ab60efb87b264d26d8323a88543791489cc06","head":{"label":"andela:ft-create-comments-#161348799","ref":"ft-create-comments-#161348799","sha":"f38ab60efb87b264d26d8323a88543791489cc06","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":153422799,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM0MjI3OTk=","name":"ah-backend-thanos","full_name":"andela/ah-backend-thanos","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-thanos","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-backend-thanos","forks_url":"https://api.github.com/repos/andela/ah-backend-thanos/forks","keys_url":"https://api.github.com/repos/andela/ah-backend-thanos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-backend-thanos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-backend-thanos/teams","hooks_url":"https://api.github.com/repos/andela/ah-backend-thanos/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-backend-thanos/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-backend-thanos/events","assignees_url":"https://api.github.com/repos/andela/ah-backend-thanos/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-backend-thanos/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-backend-thanos/tags","blobs_url":"https://api.github.com/repos/andela/ah-backend-thanos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-backend-thanos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-backend-thanos/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-backend-thanos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-backend-thanos/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-backend-thanos/languages","stargazers_url":"https://api.github.com/repos/andela/ah-backend-thanos/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-backend-thanos/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-backend-thanos/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-backend-thanos/subscription","commits_url":"https://api.github.com/repos/andela/ah-backend-thanos/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-backend-thanos/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-backend-thanos/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-backend-thanos/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-backend-thanos/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-backend-thanos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-backend-thanos/merges","archive_url":"https://api.github.com/repos/andela/ah-backend-thanos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-backend-thanos/downloads","issues_url":"https://api.github.com/repos/andela/ah-backend-thanos/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-backend-thanos/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-backend-thanos/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-backend-thanos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-backend-thanos/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-backend-thanos/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-backend-thanos/deployments","created_at":"2018-10-17T08:31:07Z","updated_at":"2018-11-06T16:46:06Z","pushed_at":"2018-11-06T18:55:13Z","git_url":"git://github.com/andela/ah-backend-thanos.git","ssh_url":"git@github.com:andela/ah-backend-thanos.git","clone_url":"https://github.com/andela/ah-backend-thanos.git","svn_url":"https://github.com/andela/ah-backend-thanos","homepage":null,"size":93,"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":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":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"881a7a71a476a0eed74714f8892b9734784d2a6e","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":153422799,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM0MjI3OTk=","name":"ah-backend-thanos","full_name":"andela/ah-backend-thanos","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-thanos","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-backend-thanos","forks_url":"https://api.github.com/repos/andela/ah-backend-thanos/forks","keys_url":"https://api.github.com/repos/andela/ah-backend-thanos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-backend-thanos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-backend-thanos/teams","hooks_url":"https://api.github.com/repos/andela/ah-backend-thanos/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-backend-thanos/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-backend-thanos/events","assignees_url":"https://api.github.com/repos/andela/ah-backend-thanos/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-backend-thanos/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-backend-thanos/tags","blobs_url":"https://api.github.com/repos/andela/ah-backend-thanos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-backend-thanos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-backend-thanos/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-backend-thanos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-backend-thanos/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-backend-thanos/languages","stargazers_url":"https://api.github.com/repos/andela/ah-backend-thanos/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-backend-thanos/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-backend-thanos/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-backend-thanos/subscription","commits_url":"https://api.github.com/repos/andela/ah-backend-thanos/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-backend-thanos/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-backend-thanos/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-backend-thanos/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-backend-thanos/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-backend-thanos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-backend-thanos/merges","archive_url":"https://api.github.com/repos/andela/ah-backend-thanos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-backend-thanos/downloads","issues_url":"https://api.github.com/repos/andela/ah-backend-thanos/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-backend-thanos/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-backend-thanos/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-backend-thanos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-backend-thanos/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-backend-thanos/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-backend-thanos/deployments","created_at":"2018-10-17T08:31:07Z","updated_at":"2018-11-06T16:46:06Z","pushed_at":"2018-11-06T18:55:13Z","git_url":"git://github.com/andela/ah-backend-thanos.git","ssh_url":"git@github.com:andela/ah-backend-thanos.git","clone_url":"https://github.com/andela/ah-backend-thanos.git","svn_url":"https://github.com/andela/ah-backend-thanos","homepage":null,"size":93,"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":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":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/ah-backend-thanos/pulls/22"},"html":{"href":"https://github.com/andela/ah-backend-thanos/pull/22"},"issue":{"href":"https://api.github.com/repos/andela/ah-backend-thanos/issues/22"},"comments":{"href":"https://api.github.com/repos/andela/ah-backend-thanos/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/ah-backend-thanos/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/ah-backend-thanos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/ah-backend-thanos/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/andela/ah-backend-thanos/statuses/f38ab60efb87b264d26d8323a88543791489cc06"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}