{"action":"created","comment":{"url":"https://api.github.com/repos/kprakobkit/pos/pulls/comments/48521832","id":48521832,"diff_hunk":"@@ -8,36 +9,28 @@ class MasterItems extends Component {\n   constructor(props) {\n     super(props);\n     this.selectItem = this.selectItem.bind(this);\n-    this.addComment = this.addComment.bind(this);\n     this.handleAddEntry = this.handleAddEntry.bind(this);\n     this.removeEntry = this.removeEntry.bind(this);\n     this.handleOnClick = this.handleOnClick.bind(this);\n     this.renderSelectedEntries = this.renderSelectedEntries.bind(this);\n     this.renderNoEntries = this.renderNoEntries.bind(this);\n+    this.addComment = this.addComment.bind(this);\n     this.state = {\n-      comment: '',\n       entries: []\n     };\n   }\n \n   handleAddEntry() {\n-    const selectedItem = _.extend({}, this.state.selectedItem || this.props.masterItems[0]);\n-    selectedItem.comment = this.state.comment;\n+    const selectedItem = R.merge({}, this.state.selectedItem || this.props.masterItems[0]);\n     const entries = this.state.entries.concat(selectedItem);\n \n-    this.setState({ entries, comment: '' });\n+    this.setState({ entries });\n   }\n \n   selectItem(selectedItem) {\n     this.setState({ selectedItem });\n   }\n \n-  addComment(e) {\n-    const comment = e.target.value;\n-\n-    this.setState({ comment });\n-  }\n-\n   removeEntry(entry) {\n     const updatedEntries = _.without(this.state.entries, entry);","path":"src/components/MasterItems.js","position":45,"original_position":45,"commit_id":"09102798552a808a853d32bb7735fdd173d49b06","original_commit_id":"09102798552a808a853d32bb7735fdd173d49b06","user":{"login":"achiu8","id":8070175,"avatar_url":"https://avatars.githubusercontent.com/u/8070175?v=3","gravatar_id":"","url":"https://api.github.com/users/achiu8","html_url":"https://github.com/achiu8","followers_url":"https://api.github.com/users/achiu8/followers","following_url":"https://api.github.com/users/achiu8/following{/other_user}","gists_url":"https://api.github.com/users/achiu8/gists{/gist_id}","starred_url":"https://api.github.com/users/achiu8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achiu8/subscriptions","organizations_url":"https://api.github.com/users/achiu8/orgs","repos_url":"https://api.github.com/users/achiu8/repos","events_url":"https://api.github.com/users/achiu8/events{/privacy}","received_events_url":"https://api.github.com/users/achiu8/received_events","type":"User","site_admin":false},"body":"Can we just use ramda here too so we can get rid of the underscore import?","created_at":"2015-12-29T05:11:00Z","updated_at":"2015-12-29T05:11:00Z","html_url":"https://github.com/kprakobkit/pos/pull/102#discussion_r48521832","pull_request_url":"https://api.github.com/repos/kprakobkit/pos/pulls/102","_links":{"self":{"href":"https://api.github.com/repos/kprakobkit/pos/pulls/comments/48521832"},"html":{"href":"https://github.com/kprakobkit/pos/pull/102#discussion_r48521832"},"pull_request":{"href":"https://api.github.com/repos/kprakobkit/pos/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/kprakobkit/pos/pulls/102","id":54639430,"html_url":"https://github.com/kprakobkit/pos/pull/102","diff_url":"https://github.com/kprakobkit/pos/pull/102.diff","patch_url":"https://github.com/kprakobkit/pos/pull/102.patch","issue_url":"https://api.github.com/repos/kprakobkit/pos/issues/102","number":102,"state":"open","locked":false,"title":"Modifications from user feedback","user":{"login":"kprakobkit","id":1305229,"avatar_url":"https://avatars.githubusercontent.com/u/1305229?v=3","gravatar_id":"","url":"https://api.github.com/users/kprakobkit","html_url":"https://github.com/kprakobkit","followers_url":"https://api.github.com/users/kprakobkit/followers","following_url":"https://api.github.com/users/kprakobkit/following{/other_user}","gists_url":"https://api.github.com/users/kprakobkit/gists{/gist_id}","starred_url":"https://api.github.com/users/kprakobkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kprakobkit/subscriptions","organizations_url":"https://api.github.com/users/kprakobkit/orgs","repos_url":"https://api.github.com/users/kprakobkit/repos","events_url":"https://api.github.com/users/kprakobkit/events{/privacy}","received_events_url":"https://api.github.com/users/kprakobkit/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-28T08:32:53Z","updated_at":"2015-12-29T05:11:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"235274d219feb73ac3ae86dc5bd53455a066b8bb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kprakobkit/pos/pulls/102/commits","review_comments_url":"https://api.github.com/repos/kprakobkit/pos/pulls/102/comments","review_comment_url":"https://api.github.com/repos/kprakobkit/pos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kprakobkit/pos/issues/102/comments","statuses_url":"https://api.github.com/repos/kprakobkit/pos/statuses/09102798552a808a853d32bb7735fdd173d49b06","head":{"label":"kprakobkit:modifications-from-user-feedback","ref":"modifications-from-user-feedback","sha":"09102798552a808a853d32bb7735fdd173d49b06","user":{"login":"kprakobkit","id":1305229,"avatar_url":"https://avatars.githubusercontent.com/u/1305229?v=3","gravatar_id":"","url":"https://api.github.com/users/kprakobkit","html_url":"https://github.com/kprakobkit","followers_url":"https://api.github.com/users/kprakobkit/followers","following_url":"https://api.github.com/users/kprakobkit/following{/other_user}","gists_url":"https://api.github.com/users/kprakobkit/gists{/gist_id}","starred_url":"https://api.github.com/users/kprakobkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kprakobkit/subscriptions","organizations_url":"https://api.github.com/users/kprakobkit/orgs","repos_url":"https://api.github.com/users/kprakobkit/repos","events_url":"https://api.github.com/users/kprakobkit/events{/privacy}","received_events_url":"https://api.github.com/users/kprakobkit/received_events","type":"User","site_admin":false},"repo":{"id":44217194,"name":"pos","full_name":"kprakobkit/pos","owner":{"login":"kprakobkit","id":1305229,"avatar_url":"https://avatars.githubusercontent.com/u/1305229?v=3","gravatar_id":"","url":"https://api.github.com/users/kprakobkit","html_url":"https://github.com/kprakobkit","followers_url":"https://api.github.com/users/kprakobkit/followers","following_url":"https://api.github.com/users/kprakobkit/following{/other_user}","gists_url":"https://api.github.com/users/kprakobkit/gists{/gist_id}","starred_url":"https://api.github.com/users/kprakobkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kprakobkit/subscriptions","organizations_url":"https://api.github.com/users/kprakobkit/orgs","repos_url":"https://api.github.com/users/kprakobkit/repos","events_url":"https://api.github.com/users/kprakobkit/events{/privacy}","received_events_url":"https://api.github.com/users/kprakobkit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kprakobkit/pos","description":"","fork":false,"url":"https://api.github.com/repos/kprakobkit/pos","forks_url":"https://api.github.com/repos/kprakobkit/pos/forks","keys_url":"https://api.github.com/repos/kprakobkit/pos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kprakobkit/pos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kprakobkit/pos/teams","hooks_url":"https://api.github.com/repos/kprakobkit/pos/hooks","issue_events_url":"https://api.github.com/repos/kprakobkit/pos/issues/events{/number}","events_url":"https://api.github.com/repos/kprakobkit/pos/events","assignees_url":"https://api.github.com/repos/kprakobkit/pos/assignees{/user}","branches_url":"https://api.github.com/repos/kprakobkit/pos/branches{/branch}","tags_url":"https://api.github.com/repos/kprakobkit/pos/tags","blobs_url":"https://api.github.com/repos/kprakobkit/pos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kprakobkit/pos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kprakobkit/pos/git/refs{/sha}","trees_url":"https://api.github.com/repos/kprakobkit/pos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kprakobkit/pos/statuses/{sha}","languages_url":"https://api.github.com/repos/kprakobkit/pos/languages","stargazers_url":"https://api.github.com/repos/kprakobkit/pos/stargazers","contributors_url":"https://api.github.com/repos/kprakobkit/pos/contributors","subscribers_url":"https://api.github.com/repos/kprakobkit/pos/subscribers","subscription_url":"https://api.github.com/repos/kprakobkit/pos/subscription","commits_url":"https://api.github.com/repos/kprakobkit/pos/commits{/sha}","git_commits_url":"https://api.github.com/repos/kprakobkit/pos/git/commits{/sha}","comments_url":"https://api.github.com/repos/kprakobkit/pos/comments{/number}","issue_comment_url":"https://api.github.com/repos/kprakobkit/pos/issues/comments{/number}","contents_url":"https://api.github.com/repos/kprakobkit/pos/contents/{+path}","compare_url":"https://api.github.com/repos/kprakobkit/pos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kprakobkit/pos/merges","archive_url":"https://api.github.com/repos/kprakobkit/pos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kprakobkit/pos/downloads","issues_url":"https://api.github.com/repos/kprakobkit/pos/issues{/number}","pulls_url":"https://api.github.com/repos/kprakobkit/pos/pulls{/number}","milestones_url":"https://api.github.com/repos/kprakobkit/pos/milestones{/number}","notifications_url":"https://api.github.com/repos/kprakobkit/pos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kprakobkit/pos/labels{/name}","releases_url":"https://api.github.com/repos/kprakobkit/pos/releases{/id}","created_at":"2015-10-14T01:47:29Z","updated_at":"2015-10-24T05:02:39Z","pushed_at":"2015-12-29T03:40:14Z","git_url":"git://github.com/kprakobkit/pos.git","ssh_url":"git@github.com:kprakobkit/pos.git","clone_url":"https://github.com/kprakobkit/pos.git","svn_url":"https://github.com/kprakobkit/pos","homepage":null,"size":614,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"kprakobkit:master","ref":"master","sha":"a9743e210116f162fc2297b98d0c962066e32235","user":{"login":"kprakobkit","id":1305229,"avatar_url":"https://avatars.githubusercontent.com/u/1305229?v=3","gravatar_id":"","url":"https://api.github.com/users/kprakobkit","html_url":"https://github.com/kprakobkit","followers_url":"https://api.github.com/users/kprakobkit/followers","following_url":"https://api.github.com/users/kprakobkit/following{/other_user}","gists_url":"https://api.github.com/users/kprakobkit/gists{/gist_id}","starred_url":"https://api.github.com/users/kprakobkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kprakobkit/subscriptions","organizations_url":"https://api.github.com/users/kprakobkit/orgs","repos_url":"https://api.github.com/users/kprakobkit/repos","events_url":"https://api.github.com/users/kprakobkit/events{/privacy}","received_events_url":"https://api.github.com/users/kprakobkit/received_events","type":"User","site_admin":false},"repo":{"id":44217194,"name":"pos","full_name":"kprakobkit/pos","owner":{"login":"kprakobkit","id":1305229,"avatar_url":"https://avatars.githubusercontent.com/u/1305229?v=3","gravatar_id":"","url":"https://api.github.com/users/kprakobkit","html_url":"https://github.com/kprakobkit","followers_url":"https://api.github.com/users/kprakobkit/followers","following_url":"https://api.github.com/users/kprakobkit/following{/other_user}","gists_url":"https://api.github.com/users/kprakobkit/gists{/gist_id}","starred_url":"https://api.github.com/users/kprakobkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kprakobkit/subscriptions","organizations_url":"https://api.github.com/users/kprakobkit/orgs","repos_url":"https://api.github.com/users/kprakobkit/repos","events_url":"https://api.github.com/users/kprakobkit/events{/privacy}","received_events_url":"https://api.github.com/users/kprakobkit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kprakobkit/pos","description":"","fork":false,"url":"https://api.github.com/repos/kprakobkit/pos","forks_url":"https://api.github.com/repos/kprakobkit/pos/forks","keys_url":"https://api.github.com/repos/kprakobkit/pos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kprakobkit/pos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kprakobkit/pos/teams","hooks_url":"https://api.github.com/repos/kprakobkit/pos/hooks","issue_events_url":"https://api.github.com/repos/kprakobkit/pos/issues/events{/number}","events_url":"https://api.github.com/repos/kprakobkit/pos/events","assignees_url":"https://api.github.com/repos/kprakobkit/pos/assignees{/user}","branches_url":"https://api.github.com/repos/kprakobkit/pos/branches{/branch}","tags_url":"https://api.github.com/repos/kprakobkit/pos/tags","blobs_url":"https://api.github.com/repos/kprakobkit/pos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kprakobkit/pos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kprakobkit/pos/git/refs{/sha}","trees_url":"https://api.github.com/repos/kprakobkit/pos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kprakobkit/pos/statuses/{sha}","languages_url":"https://api.github.com/repos/kprakobkit/pos/languages","stargazers_url":"https://api.github.com/repos/kprakobkit/pos/stargazers","contributors_url":"https://api.github.com/repos/kprakobkit/pos/contributors","subscribers_url":"https://api.github.com/repos/kprakobkit/pos/subscribers","subscription_url":"https://api.github.com/repos/kprakobkit/pos/subscription","commits_url":"https://api.github.com/repos/kprakobkit/pos/commits{/sha}","git_commits_url":"https://api.github.com/repos/kprakobkit/pos/git/commits{/sha}","comments_url":"https://api.github.com/repos/kprakobkit/pos/comments{/number}","issue_comment_url":"https://api.github.com/repos/kprakobkit/pos/issues/comments{/number}","contents_url":"https://api.github.com/repos/kprakobkit/pos/contents/{+path}","compare_url":"https://api.github.com/repos/kprakobkit/pos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kprakobkit/pos/merges","archive_url":"https://api.github.com/repos/kprakobkit/pos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kprakobkit/pos/downloads","issues_url":"https://api.github.com/repos/kprakobkit/pos/issues{/number}","pulls_url":"https://api.github.com/repos/kprakobkit/pos/pulls{/number}","milestones_url":"https://api.github.com/repos/kprakobkit/pos/milestones{/number}","notifications_url":"https://api.github.com/repos/kprakobkit/pos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kprakobkit/pos/labels{/name}","releases_url":"https://api.github.com/repos/kprakobkit/pos/releases{/id}","created_at":"2015-10-14T01:47:29Z","updated_at":"2015-10-24T05:02:39Z","pushed_at":"2015-12-29T03:40:14Z","git_url":"git://github.com/kprakobkit/pos.git","ssh_url":"git@github.com:kprakobkit/pos.git","clone_url":"https://github.com/kprakobkit/pos.git","svn_url":"https://github.com/kprakobkit/pos","homepage":null,"size":614,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kprakobkit/pos/pulls/102"},"html":{"href":"https://github.com/kprakobkit/pos/pull/102"},"issue":{"href":"https://api.github.com/repos/kprakobkit/pos/issues/102"},"comments":{"href":"https://api.github.com/repos/kprakobkit/pos/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/kprakobkit/pos/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/kprakobkit/pos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kprakobkit/pos/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/kprakobkit/pos/statuses/09102798552a808a853d32bb7735fdd173d49b06"}}}}