{"action":"created","comment":{"url":"https://api.github.com/repos/andela/ah-orcas/pulls/comments/233551206","pull_request_review_id":174992544,"id":233551206,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzU1MTIwNg==","diff_hunk":"@@ -172,3 +172,14 @@ class Comments(TimestampedModel):\n \n     def __str__(self):\n         return self.body\n+\n+\n+class CommentHistory(models.Model):\n+    \"\"\"\n+     tracks comment edit history in Authors Haven\n+    \"\"\"\n+    comment = models.TextField()\n+    original_comment = models.ForeignKey(Comments,\n+                                       on_delete=models.CASCADE,\n+                                       db_column='original_comment')","path":"authors/apps/article/models.py","position":13,"original_position":13,"commit_id":"3084460449dfbfdee58f0cad18bddaf201836225","original_commit_id":"3084460449dfbfdee58f0cad18bddaf201836225","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":"continuation line under-indented for visual indent","created_at":"2018-11-14T17:46:20Z","updated_at":"2018-11-14T17:46:21Z","html_url":"https://github.com/andela/ah-orcas/pull/40#discussion_r233551206","pull_request_url":"https://api.github.com/repos/andela/ah-orcas/pulls/40","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/ah-orcas/pulls/comments/233551206"},"html":{"href":"https://github.com/andela/ah-orcas/pull/40#discussion_r233551206"},"pull_request":{"href":"https://api.github.com/repos/andela/ah-orcas/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/andela/ah-orcas/pulls/40","id":230924838,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwOTI0ODM4","html_url":"https://github.com/andela/ah-orcas/pull/40","diff_url":"https://github.com/andela/ah-orcas/pull/40.diff","patch_url":"https://github.com/andela/ah-orcas/pull/40.patch","issue_url":"https://api.github.com/repos/andela/ah-orcas/issues/40","number":40,"state":"open","locked":false,"title":"#161254683 Track comments edit history","user":{"login":"evamaina","id":25586421,"node_id":"MDQ6VXNlcjI1NTg2NDIx","avatar_url":"https://avatars2.githubusercontent.com/u/25586421?v=4","gravatar_id":"","url":"https://api.github.com/users/evamaina","html_url":"https://github.com/evamaina","followers_url":"https://api.github.com/users/evamaina/followers","following_url":"https://api.github.com/users/evamaina/following{/other_user}","gists_url":"https://api.github.com/users/evamaina/gists{/gist_id}","starred_url":"https://api.github.com/users/evamaina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evamaina/subscriptions","organizations_url":"https://api.github.com/users/evamaina/orgs","repos_url":"https://api.github.com/users/evamaina/repos","events_url":"https://api.github.com/users/evamaina/events{/privacy}","received_events_url":"https://api.github.com/users/evamaina/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n```This PR enables every comment to track its edit history ```\r\n#### Description of Task to be completed?\r\n```Whenever a user updates a comment, he/she should be able to track all the edit history of a particular comment ```\r\n#### How should this be manually tested?\r\n- Clone this repo\r\n```$ git clone https://github.com/andela/ah-orcas```\r\n- Navigate to this branch\r\n```$ git checkout ft-comment-edit-history-161254683```\r\n- Setup the environment variables, database and install the requirements. See sample.env\r\n```$ source .env```\r\n- Start the server\r\n```$ python manage.py runserver```\r\n- Open the postman below\r\n[![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/989c501fef301551c967)\r\n- Hit the POST endpoint to create a new comment\r\n- Hit the PUT endpoint to edit the comment\r\n- Hit the GET endpoint for getting the comment history and you will be able to see the edit history\r\n\r\n### Any background context you want to provide?\r\n```Edit history enables a user to track down all the edit history of a particular comment ```\r\n#### What are the relevant pivotal tracker stories?\r\n[#161254683](https://www.pivotaltracker.com/n/projects/2205267/stories/161254683)\r\n#### Screenshots \r\n![image](https://user-images.githubusercontent.com/25586421/48501299-009a3780-e84e-11e8-994b-aea15e1e57ad.png)\r\n\r\n\r\n","created_at":"2018-11-14T17:46:06Z","updated_at":"2018-11-14T17:46:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2047554830bd336d05a9e930b69446d6ef9e803b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1103137986,"node_id":"MDU6TGFiZWwxMTAzMTM3OTg2","url":"https://api.github.com/repos/andela/ah-orcas/labels/wip","name":"wip","color":"0f19c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/andela/ah-orcas/pulls/40/commits","review_comments_url":"https://api.github.com/repos/andela/ah-orcas/pulls/40/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/40/comments","statuses_url":"https://api.github.com/repos/andela/ah-orcas/statuses/3084460449dfbfdee58f0cad18bddaf201836225","head":{"label":"andela:ft-comment-edit-history-161254683","ref":"ft-comment-edit-history-161254683","sha":"3084460449dfbfdee58f0cad18bddaf201836225","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-14T11:25:56Z","pushed_at":"2018-11-14T17:46:07Z","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":142,"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":4,"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":4,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"db6e646a97d51a2c312193f997de746521fabb81","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-14T11:25:56Z","pushed_at":"2018-11-14T17:46:07Z","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":142,"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":4,"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":4,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/ah-orcas/pulls/40"},"html":{"href":"https://github.com/andela/ah-orcas/pull/40"},"issue":{"href":"https://api.github.com/repos/andela/ah-orcas/issues/40"},"comments":{"href":"https://api.github.com/repos/andela/ah-orcas/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/ah-orcas/pulls/40/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/40/commits"},"statuses":{"href":"https://api.github.com/repos/andela/ah-orcas/statuses/3084460449dfbfdee58f0cad18bddaf201836225"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}