{"action":"created","comment":{"url":"https://api.github.com/repos/llabake/Hello-Books/pulls/comments/185711137","pull_request_review_id":117153998,"id":185711137,"diff_hunk":"@@ -0,0 +1,181 @@\n+import React, { Component } from 'react';\n+import { Link } from 'react-router-dom';\n+import { connect } from 'react-redux';\n+\n+import Footer from '../common/Footer';\n+import { getUser } from '../../helpers/utils';\n+import  TextInput from '../common/TextInput';\n+import { getUserProfile, editProfile } from '../../actions/userAction';\n+import InputValidator from '../../helpers/inputValidator';\n+\n+/**\n+ * \n+ * \n+ * @class EditProfile\n+ * @extends {Component}\n+ */\n+class EditProfile extends Component {\n+  /**\n+   * Creates an instance of EditProfile.\n+   * @param {any} props \n+   * @memberof EditProfile\n+   */\n+  constructor(props) {\n+    super(props);\n+    this.state = {\n+      image: '',\n+      errors: {},\n+      isValid: false,\n+      saving: false,\n+      uploadedImage: null\n+      \n+    }\n+    this.handleChange = this.handleChange.bind(this);\n+    this.handleSubmit = this.handleSubmit.bind(this);\n+    this.handleFileChange = this.handleFileChange.bind(this);\n+  }\n+\n+\n+  componentWillMount () {\n+    this.props.getUserProfile().then(() => {\n+      const { profileToEdit } = this.props;\n+      this.setState({\n+        firstName: profileToEdit.firstName,\n+        lastName: profileToEdit.lastName,\n+        image: profileToEdit.image\n+      })\n+    }).catch(()=> {})\n+  }\n+\n+\n+\n+  componentDidMount() {\n+\n+  }\n+\n+  handleChange (event) {\n+    this.setState({\n+      [event.target.name]: event.target.value\n+    }, () => this.validate())\n+  }\n+\n+  handleSubmit(event) {","path":"client/components/userDashBoard/EditProfile.js","position":62,"original_position":62,"commit_id":"844c7d211c1f8f4b9c582468624107531af8c1f5","original_commit_id":"844c7d211c1f8f4b9c582468624107531af8c1f5","user":{"login":"houndci-bot","id":6697940,"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":"Missing JSDoc comment                      require-jsdoc","created_at":"2018-05-03T07:12:37Z","updated_at":"2018-05-03T07:12:38Z","html_url":"https://github.com/llabake/Hello-Books/pull/73#discussion_r185711137","pull_request_url":"https://api.github.com/repos/llabake/Hello-Books/pulls/73","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/llabake/Hello-Books/pulls/comments/185711137"},"html":{"href":"https://github.com/llabake/Hello-Books/pull/73#discussion_r185711137"},"pull_request":{"href":"https://api.github.com/repos/llabake/Hello-Books/pulls/73"}}},"pull_request":{"url":"https://api.github.com/repos/llabake/Hello-Books/pulls/73","id":177738586,"html_url":"https://github.com/llabake/Hello-Books/pull/73","diff_url":"https://github.com/llabake/Hello-Books/pull/73.diff","patch_url":"https://github.com/llabake/Hello-Books/pull/73.patch","issue_url":"https://api.github.com/repos/llabake/Hello-Books/issues/73","number":73,"state":"open","locked":false,"title":"Review Code ","user":{"login":"llabake","id":29184825,"avatar_url":"https://avatars2.githubusercontent.com/u/29184825?v=4","gravatar_id":"","url":"https://api.github.com/users/llabake","html_url":"https://github.com/llabake","followers_url":"https://api.github.com/users/llabake/followers","following_url":"https://api.github.com/users/llabake/following{/other_user}","gists_url":"https://api.github.com/users/llabake/gists{/gist_id}","starred_url":"https://api.github.com/users/llabake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llabake/subscriptions","organizations_url":"https://api.github.com/users/llabake/orgs","repos_url":"https://api.github.com/users/llabake/repos","events_url":"https://api.github.com/users/llabake/events{/privacy}","received_events_url":"https://api.github.com/users/llabake/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-27T13:23:39Z","updated_at":"2018-05-03T07:12:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25e7ccfe2687c8733f45879a4455386461943392","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/llabake/Hello-Books/pulls/73/commits","review_comments_url":"https://api.github.com/repos/llabake/Hello-Books/pulls/73/comments","review_comment_url":"https://api.github.com/repos/llabake/Hello-Books/pulls/comments{/number}","comments_url":"https://api.github.com/repos/llabake/Hello-Books/issues/73/comments","statuses_url":"https://api.github.com/repos/llabake/Hello-Books/statuses/844c7d211c1f8f4b9c582468624107531af8c1f5","head":{"label":"llabake:develop","ref":"develop","sha":"844c7d211c1f8f4b9c582468624107531af8c1f5","user":{"login":"llabake","id":29184825,"avatar_url":"https://avatars2.githubusercontent.com/u/29184825?v=4","gravatar_id":"","url":"https://api.github.com/users/llabake","html_url":"https://github.com/llabake","followers_url":"https://api.github.com/users/llabake/followers","following_url":"https://api.github.com/users/llabake/following{/other_user}","gists_url":"https://api.github.com/users/llabake/gists{/gist_id}","starred_url":"https://api.github.com/users/llabake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llabake/subscriptions","organizations_url":"https://api.github.com/users/llabake/orgs","repos_url":"https://api.github.com/users/llabake/repos","events_url":"https://api.github.com/users/llabake/events{/privacy}","received_events_url":"https://api.github.com/users/llabake/received_events","type":"User","site_admin":false},"repo":{"id":105932161,"name":"Hello-Books","full_name":"llabake/Hello-Books","owner":{"login":"llabake","id":29184825,"avatar_url":"https://avatars2.githubusercontent.com/u/29184825?v=4","gravatar_id":"","url":"https://api.github.com/users/llabake","html_url":"https://github.com/llabake","followers_url":"https://api.github.com/users/llabake/followers","following_url":"https://api.github.com/users/llabake/following{/other_user}","gists_url":"https://api.github.com/users/llabake/gists{/gist_id}","starred_url":"https://api.github.com/users/llabake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llabake/subscriptions","organizations_url":"https://api.github.com/users/llabake/orgs","repos_url":"https://api.github.com/users/llabake/repos","events_url":"https://api.github.com/users/llabake/events{/privacy}","received_events_url":"https://api.github.com/users/llabake/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/llabake/Hello-Books","description":null,"fork":false,"url":"https://api.github.com/repos/llabake/Hello-Books","forks_url":"https://api.github.com/repos/llabake/Hello-Books/forks","keys_url":"https://api.github.com/repos/llabake/Hello-Books/keys{/key_id}","collaborators_url":"https://api.github.com/repos/llabake/Hello-Books/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/llabake/Hello-Books/teams","hooks_url":"https://api.github.com/repos/llabake/Hello-Books/hooks","issue_events_url":"https://api.github.com/repos/llabake/Hello-Books/issues/events{/number}","events_url":"https://api.github.com/repos/llabake/Hello-Books/events","assignees_url":"https://api.github.com/repos/llabake/Hello-Books/assignees{/user}","branches_url":"https://api.github.com/repos/llabake/Hello-Books/branches{/branch}","tags_url":"https://api.github.com/repos/llabake/Hello-Books/tags","blobs_url":"https://api.github.com/repos/llabake/Hello-Books/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/llabake/Hello-Books/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/llabake/Hello-Books/git/refs{/sha}","trees_url":"https://api.github.com/repos/llabake/Hello-Books/git/trees{/sha}","statuses_url":"https://api.github.com/repos/llabake/Hello-Books/statuses/{sha}","languages_url":"https://api.github.com/repos/llabake/Hello-Books/languages","stargazers_url":"https://api.github.com/repos/llabake/Hello-Books/stargazers","contributors_url":"https://api.github.com/repos/llabake/Hello-Books/contributors","subscribers_url":"https://api.github.com/repos/llabake/Hello-Books/subscribers","subscription_url":"https://api.github.com/repos/llabake/Hello-Books/subscription","commits_url":"https://api.github.com/repos/llabake/Hello-Books/commits{/sha}","git_commits_url":"https://api.github.com/repos/llabake/Hello-Books/git/commits{/sha}","comments_url":"https://api.github.com/repos/llabake/Hello-Books/comments{/number}","issue_comment_url":"https://api.github.com/repos/llabake/Hello-Books/issues/comments{/number}","contents_url":"https://api.github.com/repos/llabake/Hello-Books/contents/{+path}","compare_url":"https://api.github.com/repos/llabake/Hello-Books/compare/{base}...{head}","merges_url":"https://api.github.com/repos/llabake/Hello-Books/merges","archive_url":"https://api.github.com/repos/llabake/Hello-Books/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/llabake/Hello-Books/downloads","issues_url":"https://api.github.com/repos/llabake/Hello-Books/issues{/number}","pulls_url":"https://api.github.com/repos/llabake/Hello-Books/pulls{/number}","milestones_url":"https://api.github.com/repos/llabake/Hello-Books/milestones{/number}","notifications_url":"https://api.github.com/repos/llabake/Hello-Books/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/llabake/Hello-Books/labels{/name}","releases_url":"https://api.github.com/repos/llabake/Hello-Books/releases{/id}","deployments_url":"https://api.github.com/repos/llabake/Hello-Books/deployments","created_at":"2017-10-05T19:35:17Z","updated_at":"2018-05-03T07:10:24Z","pushed_at":"2018-05-03T07:10:23Z","git_url":"git://github.com/llabake/Hello-Books.git","ssh_url":"git@github.com:llabake/Hello-Books.git","clone_url":"https://github.com/llabake/Hello-Books.git","svn_url":"https://github.com/llabake/Hello-Books","homepage":null,"size":18886,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":1,"watchers":1,"default_branch":"develop"}},"base":{"label":"llabake:master","ref":"master","sha":"0e9390672fae2c556a35703f0e32e44c909488e4","user":{"login":"llabake","id":29184825,"avatar_url":"https://avatars2.githubusercontent.com/u/29184825?v=4","gravatar_id":"","url":"https://api.github.com/users/llabake","html_url":"https://github.com/llabake","followers_url":"https://api.github.com/users/llabake/followers","following_url":"https://api.github.com/users/llabake/following{/other_user}","gists_url":"https://api.github.com/users/llabake/gists{/gist_id}","starred_url":"https://api.github.com/users/llabake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llabake/subscriptions","organizations_url":"https://api.github.com/users/llabake/orgs","repos_url":"https://api.github.com/users/llabake/repos","events_url":"https://api.github.com/users/llabake/events{/privacy}","received_events_url":"https://api.github.com/users/llabake/received_events","type":"User","site_admin":false},"repo":{"id":105932161,"name":"Hello-Books","full_name":"llabake/Hello-Books","owner":{"login":"llabake","id":29184825,"avatar_url":"https://avatars2.githubusercontent.com/u/29184825?v=4","gravatar_id":"","url":"https://api.github.com/users/llabake","html_url":"https://github.com/llabake","followers_url":"https://api.github.com/users/llabake/followers","following_url":"https://api.github.com/users/llabake/following{/other_user}","gists_url":"https://api.github.com/users/llabake/gists{/gist_id}","starred_url":"https://api.github.com/users/llabake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llabake/subscriptions","organizations_url":"https://api.github.com/users/llabake/orgs","repos_url":"https://api.github.com/users/llabake/repos","events_url":"https://api.github.com/users/llabake/events{/privacy}","received_events_url":"https://api.github.com/users/llabake/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/llabake/Hello-Books","description":null,"fork":false,"url":"https://api.github.com/repos/llabake/Hello-Books","forks_url":"https://api.github.com/repos/llabake/Hello-Books/forks","keys_url":"https://api.github.com/repos/llabake/Hello-Books/keys{/key_id}","collaborators_url":"https://api.github.com/repos/llabake/Hello-Books/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/llabake/Hello-Books/teams","hooks_url":"https://api.github.com/repos/llabake/Hello-Books/hooks","issue_events_url":"https://api.github.com/repos/llabake/Hello-Books/issues/events{/number}","events_url":"https://api.github.com/repos/llabake/Hello-Books/events","assignees_url":"https://api.github.com/repos/llabake/Hello-Books/assignees{/user}","branches_url":"https://api.github.com/repos/llabake/Hello-Books/branches{/branch}","tags_url":"https://api.github.com/repos/llabake/Hello-Books/tags","blobs_url":"https://api.github.com/repos/llabake/Hello-Books/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/llabake/Hello-Books/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/llabake/Hello-Books/git/refs{/sha}","trees_url":"https://api.github.com/repos/llabake/Hello-Books/git/trees{/sha}","statuses_url":"https://api.github.com/repos/llabake/Hello-Books/statuses/{sha}","languages_url":"https://api.github.com/repos/llabake/Hello-Books/languages","stargazers_url":"https://api.github.com/repos/llabake/Hello-Books/stargazers","contributors_url":"https://api.github.com/repos/llabake/Hello-Books/contributors","subscribers_url":"https://api.github.com/repos/llabake/Hello-Books/subscribers","subscription_url":"https://api.github.com/repos/llabake/Hello-Books/subscription","commits_url":"https://api.github.com/repos/llabake/Hello-Books/commits{/sha}","git_commits_url":"https://api.github.com/repos/llabake/Hello-Books/git/commits{/sha}","comments_url":"https://api.github.com/repos/llabake/Hello-Books/comments{/number}","issue_comment_url":"https://api.github.com/repos/llabake/Hello-Books/issues/comments{/number}","contents_url":"https://api.github.com/repos/llabake/Hello-Books/contents/{+path}","compare_url":"https://api.github.com/repos/llabake/Hello-Books/compare/{base}...{head}","merges_url":"https://api.github.com/repos/llabake/Hello-Books/merges","archive_url":"https://api.github.com/repos/llabake/Hello-Books/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/llabake/Hello-Books/downloads","issues_url":"https://api.github.com/repos/llabake/Hello-Books/issues{/number}","pulls_url":"https://api.github.com/repos/llabake/Hello-Books/pulls{/number}","milestones_url":"https://api.github.com/repos/llabake/Hello-Books/milestones{/number}","notifications_url":"https://api.github.com/repos/llabake/Hello-Books/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/llabake/Hello-Books/labels{/name}","releases_url":"https://api.github.com/repos/llabake/Hello-Books/releases{/id}","deployments_url":"https://api.github.com/repos/llabake/Hello-Books/deployments","created_at":"2017-10-05T19:35:17Z","updated_at":"2018-05-03T07:10:24Z","pushed_at":"2018-05-03T07:10:23Z","git_url":"git://github.com/llabake/Hello-Books.git","ssh_url":"git@github.com:llabake/Hello-Books.git","clone_url":"https://github.com/llabake/Hello-Books.git","svn_url":"https://github.com/llabake/Hello-Books","homepage":null,"size":18886,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":1,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/llabake/Hello-Books/pulls/73"},"html":{"href":"https://github.com/llabake/Hello-Books/pull/73"},"issue":{"href":"https://api.github.com/repos/llabake/Hello-Books/issues/73"},"comments":{"href":"https://api.github.com/repos/llabake/Hello-Books/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/llabake/Hello-Books/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/llabake/Hello-Books/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/llabake/Hello-Books/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/llabake/Hello-Books/statuses/844c7d211c1f8f4b9c582468624107531af8c1f5"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}