{"action":"created","comment":{"url":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls/comments/115827495","pull_request_review_id":37400842,"id":115827495,"diff_hunk":"@@ -0,0 +1,79 @@\n+import React, { Component } from 'react';\n+import {Modal, Button, Row, Input, Pagination} from 'react-materialize';\n+import { Link } from 'react-router-dom';\n+\n+class AllDocumentsCard extends Component {\n+  constructor (props) {\n+    super(props);\n+    const { fetchDocuments } = this.props;\n+    this.state = {\n+      id: '',\n+      title: '',\n+      content: '',\n+      access: '',\n+      ownerId: '',\n+      ownerRoleId: ''\n+    };\n+  }\n+\n+  onChange(event) {\n+    this.setState({ [event.target.name]: event.target.value });\n+  }\n+\n+  onSubmit(event) {\n+    event.preventDefault();\n+    const id = event.target.id.value;\n+    const title = event.target.title.value;\n+    const access = event.target.access.value;\n+    const content = event.target.content.value;\n+    const documentDetails = { id, title, access, content };\n+    this.props.updateDocument(documentDetails)\n+    .then((res) => {\n+      this.context.router.history.push('/app/document/all');\n+      Materialize.toast(res.document.message, 4000, 'rounded');\n+    });\n+  }\n+\n+  render() {","path":"client/src/components/documents/AllDocumentsCard.component.js","position":37,"original_position":37,"commit_id":"97511e929f78c22b7b2b58aaeb21d31e7d6069ce","original_commit_id":"97511e929f78c22b7b2b58aaeb21d31e7d6069ce","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.githubusercontent.com/u/6697940?v=3","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":"Missing JSDoc comment                                          require-jsdoc","created_at":"2017-05-10T19:12:06Z","updated_at":"2017-05-10T19:12:07Z","html_url":"https://github.com/andela-cofor/Document-Management-System/pull/20#discussion_r115827495","pull_request_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls/comments/115827495"},"html":{"href":"https://github.com/andela-cofor/Document-Management-System/pull/20#discussion_r115827495"},"pull_request":{"href":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls/20","id":119956996,"html_url":"https://github.com/andela-cofor/Document-Management-System/pull/20","diff_url":"https://github.com/andela-cofor/Document-Management-System/pull/20.diff","patch_url":"https://github.com/andela-cofor/Document-Management-System/pull/20.patch","issue_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/issues/20","number":20,"state":"open","locked":false,"title":"Revert \"Feature/144578851/test for middleware\"","user":{"login":"andela-cofor","id":25608370,"avatar_url":"https://avatars1.githubusercontent.com/u/25608370?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cofor","html_url":"https://github.com/andela-cofor","followers_url":"https://api.github.com/users/andela-cofor/followers","following_url":"https://api.github.com/users/andela-cofor/following{/other_user}","gists_url":"https://api.github.com/users/andela-cofor/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cofor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cofor/subscriptions","organizations_url":"https://api.github.com/users/andela-cofor/orgs","repos_url":"https://api.github.com/users/andela-cofor/repos","events_url":"https://api.github.com/users/andela-cofor/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cofor/received_events","type":"User","site_admin":false},"body":"Reverts andela-cofor/Document-Management-System#19","created_at":"2017-05-10T19:11:22Z","updated_at":"2017-05-10T19:12:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2663c4f217a93d5fbe6222258303e2759cbb4260","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls/20/commits","review_comments_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls/20/comments","review_comment_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/issues/20/comments","statuses_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/statuses/97511e929f78c22b7b2b58aaeb21d31e7d6069ce","head":{"label":"andela-cofor:revert-19-feature/144578851/Test-for-Middleware","ref":"revert-19-feature/144578851/Test-for-Middleware","sha":"97511e929f78c22b7b2b58aaeb21d31e7d6069ce","user":{"login":"andela-cofor","id":25608370,"avatar_url":"https://avatars1.githubusercontent.com/u/25608370?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cofor","html_url":"https://github.com/andela-cofor","followers_url":"https://api.github.com/users/andela-cofor/followers","following_url":"https://api.github.com/users/andela-cofor/following{/other_user}","gists_url":"https://api.github.com/users/andela-cofor/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cofor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cofor/subscriptions","organizations_url":"https://api.github.com/users/andela-cofor/orgs","repos_url":"https://api.github.com/users/andela-cofor/repos","events_url":"https://api.github.com/users/andela-cofor/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cofor/received_events","type":"User","site_admin":false},"repo":{"id":85964368,"name":"Document-Management-System","full_name":"andela-cofor/Document-Management-System","owner":{"login":"andela-cofor","id":25608370,"avatar_url":"https://avatars1.githubusercontent.com/u/25608370?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cofor","html_url":"https://github.com/andela-cofor","followers_url":"https://api.github.com/users/andela-cofor/followers","following_url":"https://api.github.com/users/andela-cofor/following{/other_user}","gists_url":"https://api.github.com/users/andela-cofor/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cofor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cofor/subscriptions","organizations_url":"https://api.github.com/users/andela-cofor/orgs","repos_url":"https://api.github.com/users/andela-cofor/repos","events_url":"https://api.github.com/users/andela-cofor/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cofor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-cofor/Document-Management-System","description":"Document Management System: The system manages documents, users and user roles. Each document defines access rights; the document defines which roles can access it.","fork":false,"url":"https://api.github.com/repos/andela-cofor/Document-Management-System","forks_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/forks","keys_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/teams","hooks_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/hooks","issue_events_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/issues/events{/number}","events_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/events","assignees_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/assignees{/user}","branches_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/branches{/branch}","tags_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/tags","blobs_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/languages","stargazers_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/stargazers","contributors_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/contributors","subscribers_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/subscribers","subscription_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/subscription","commits_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/contents/{+path}","compare_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/merges","archive_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/downloads","issues_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/issues{/number}","pulls_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/labels{/name}","releases_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/releases{/id}","deployments_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/deployments","created_at":"2017-03-23T15:14:27Z","updated_at":"2017-05-02T09:47:20Z","pushed_at":"2017-05-10T19:11:22Z","git_url":"git://github.com/andela-cofor/Document-Management-System.git","ssh_url":"git@github.com:andela-cofor/Document-Management-System.git","clone_url":"https://github.com/andela-cofor/Document-Management-System.git","svn_url":"https://github.com/andela-cofor/Document-Management-System","homepage":"https://docman23-staging-pr-19.herokuapp.com/app/","size":63741,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"Development"}},"base":{"label":"andela-cofor:Development","ref":"Development","sha":"d25b3dc3583be5e3c842ff87498f247767cd55f7","user":{"login":"andela-cofor","id":25608370,"avatar_url":"https://avatars1.githubusercontent.com/u/25608370?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cofor","html_url":"https://github.com/andela-cofor","followers_url":"https://api.github.com/users/andela-cofor/followers","following_url":"https://api.github.com/users/andela-cofor/following{/other_user}","gists_url":"https://api.github.com/users/andela-cofor/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cofor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cofor/subscriptions","organizations_url":"https://api.github.com/users/andela-cofor/orgs","repos_url":"https://api.github.com/users/andela-cofor/repos","events_url":"https://api.github.com/users/andela-cofor/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cofor/received_events","type":"User","site_admin":false},"repo":{"id":85964368,"name":"Document-Management-System","full_name":"andela-cofor/Document-Management-System","owner":{"login":"andela-cofor","id":25608370,"avatar_url":"https://avatars1.githubusercontent.com/u/25608370?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cofor","html_url":"https://github.com/andela-cofor","followers_url":"https://api.github.com/users/andela-cofor/followers","following_url":"https://api.github.com/users/andela-cofor/following{/other_user}","gists_url":"https://api.github.com/users/andela-cofor/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cofor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cofor/subscriptions","organizations_url":"https://api.github.com/users/andela-cofor/orgs","repos_url":"https://api.github.com/users/andela-cofor/repos","events_url":"https://api.github.com/users/andela-cofor/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cofor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-cofor/Document-Management-System","description":"Document Management System: The system manages documents, users and user roles. Each document defines access rights; the document defines which roles can access it.","fork":false,"url":"https://api.github.com/repos/andela-cofor/Document-Management-System","forks_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/forks","keys_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/teams","hooks_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/hooks","issue_events_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/issues/events{/number}","events_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/events","assignees_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/assignees{/user}","branches_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/branches{/branch}","tags_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/tags","blobs_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/languages","stargazers_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/stargazers","contributors_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/contributors","subscribers_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/subscribers","subscription_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/subscription","commits_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/contents/{+path}","compare_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/merges","archive_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/downloads","issues_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/issues{/number}","pulls_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/labels{/name}","releases_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/releases{/id}","deployments_url":"https://api.github.com/repos/andela-cofor/Document-Management-System/deployments","created_at":"2017-03-23T15:14:27Z","updated_at":"2017-05-02T09:47:20Z","pushed_at":"2017-05-10T19:11:22Z","git_url":"git://github.com/andela-cofor/Document-Management-System.git","ssh_url":"git@github.com:andela-cofor/Document-Management-System.git","clone_url":"https://github.com/andela-cofor/Document-Management-System.git","svn_url":"https://github.com/andela-cofor/Document-Management-System","homepage":"https://docman23-staging-pr-19.herokuapp.com/app/","size":63741,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"Development"}},"_links":{"self":{"href":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls/20"},"html":{"href":"https://github.com/andela-cofor/Document-Management-System/pull/20"},"issue":{"href":"https://api.github.com/repos/andela-cofor/Document-Management-System/issues/20"},"comments":{"href":"https://api.github.com/repos/andela-cofor/Document-Management-System/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-cofor/Document-Management-System/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/andela-cofor/Document-Management-System/statuses/97511e929f78c22b7b2b58aaeb21d31e7d6069ce"}}}}
{"actor":{"display_login":"houndci-bot"}}