{"action":"created","comment":{"url":"https://api.github.com/repos/wolox-training/fp-react/pulls/comments/174581113","pull_request_review_id":103869190,"id":174581113,"diff_hunk":"@@ -20,3 +20,48 @@ export const saveFilterParam = filterParam => dispatch =>\n   dispatch({ type: types.BOOKS_FILTER_PARAM_CHANGED, payload: filterParam });\n \n export const cleanBooks = () => dispatch => dispatch({ type: types.BOOKS_CLEANED });\n+\n+export const fetchComments = bookId => async dispatch => {\n+  dispatch({ type: types.BOOKS_COMMENTS_FETCH, payload: bookId });\n+  const response = await bookService.getBookComments(bookId);\n+  if (response.statusText === 'OK') {\n+    const orderedComments = response.data.sort(\n+      (comment, nextComment) => Number(nextComment.id) - Number(comment.id)\n+    );\n+    dispatch({ type: types.BOOKS_COMMENTS_FETCH_SUCCESS, payload: orderedComments });\n+    return response;\n+  }\n+  dispatch({ type: types.BOOKS_COMMENTS_FETCH_FAILURE });\n+  return false;\n+};\n+\n+export const saveComment = comment => dispatch =>\n+  dispatch({ type: types.BOOKS_COMMENTS_CHANGED, payload: comment });\n+\n+export const sendComment = () => async (dispatch, getState) => {\n+  const { user } = getState().session;","path":"React/wbooks/src/redux/books/actions.js","position":23,"original_position":23,"commit_id":"c1ce1b7623d0f0b04761e604e41478d89130be82","original_commit_id":"c1ce1b7623d0f0b04761e604e41478d89130be82","user":{"login":"WFolini","id":12822259,"avatar_url":"https://avatars2.githubusercontent.com/u/12822259?v=4","gravatar_id":"","url":"https://api.github.com/users/WFolini","html_url":"https://github.com/WFolini","followers_url":"https://api.github.com/users/WFolini/followers","following_url":"https://api.github.com/users/WFolini/following{/other_user}","gists_url":"https://api.github.com/users/WFolini/gists{/gist_id}","starred_url":"https://api.github.com/users/WFolini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WFolini/subscriptions","organizations_url":"https://api.github.com/users/WFolini/orgs","repos_url":"https://api.github.com/users/WFolini/repos","events_url":"https://api.github.com/users/WFolini/events{/privacy}","received_events_url":"https://api.github.com/users/WFolini/received_events","type":"User","site_admin":false},"body":"`const user = getState().session.user;` there isn't needed destructuring here","created_at":"2018-03-14T19:18:20Z","updated_at":"2018-03-14T19:47:48Z","html_url":"https://github.com/wolox-training/fp-react/pull/17#discussion_r174581113","pull_request_url":"https://api.github.com/repos/wolox-training/fp-react/pulls/17","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/wolox-training/fp-react/pulls/comments/174581113"},"html":{"href":"https://github.com/wolox-training/fp-react/pull/17#discussion_r174581113"},"pull_request":{"href":"https://api.github.com/repos/wolox-training/fp-react/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/wolox-training/fp-react/pulls/17","id":174755394,"html_url":"https://github.com/wolox-training/fp-react/pull/17","diff_url":"https://github.com/wolox-training/fp-react/pull/17.diff","patch_url":"https://github.com/wolox-training/fp-react/pull/17.patch","issue_url":"https://api.github.com/repos/wolox-training/fp-react/issues/17","number":17,"state":"open","locked":false,"title":"Comments","user":{"login":"HarryPerez","id":36163179,"avatar_url":"https://avatars1.githubusercontent.com/u/36163179?v=4","gravatar_id":"","url":"https://api.github.com/users/HarryPerez","html_url":"https://github.com/HarryPerez","followers_url":"https://api.github.com/users/HarryPerez/followers","following_url":"https://api.github.com/users/HarryPerez/following{/other_user}","gists_url":"https://api.github.com/users/HarryPerez/gists{/gist_id}","starred_url":"https://api.github.com/users/HarryPerez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarryPerez/subscriptions","organizations_url":"https://api.github.com/users/HarryPerez/orgs","repos_url":"https://api.github.com/users/HarryPerez/repos","events_url":"https://api.github.com/users/HarryPerez/events{/privacy}","received_events_url":"https://api.github.com/users/HarryPerez/received_events","type":"User","site_admin":false},"body":"## Summary\r\nComments sections with the next features:\r\n.List of the last 4 book's comments\r\n.Send comment button when the comments is filled (1-255 chars)\r\n\r\n## Trello Card\r\nhttps://trello.com/c/8DOwJMMf/25-comentarios\r\n\r\n## Screenshots\r\n![comments](https://user-images.githubusercontent.com/36163179/37363035-add6fcac-26d5-11e8-930b-a766813c0999.gif)\r\n![comments2](https://user-images.githubusercontent.com/36163179/37363036-ae00efee-26d5-11e8-9a97-d1754345f5c3.gif)\r\n","created_at":"2018-03-13T18:46:28Z","updated_at":"2018-03-14T19:47:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ee6a8812cef4a87d865ac538e83c07f9bc390f4","assignee":{"login":"WFolini","id":12822259,"avatar_url":"https://avatars2.githubusercontent.com/u/12822259?v=4","gravatar_id":"","url":"https://api.github.com/users/WFolini","html_url":"https://github.com/WFolini","followers_url":"https://api.github.com/users/WFolini/followers","following_url":"https://api.github.com/users/WFolini/following{/other_user}","gists_url":"https://api.github.com/users/WFolini/gists{/gist_id}","starred_url":"https://api.github.com/users/WFolini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WFolini/subscriptions","organizations_url":"https://api.github.com/users/WFolini/orgs","repos_url":"https://api.github.com/users/WFolini/repos","events_url":"https://api.github.com/users/WFolini/events{/privacy}","received_events_url":"https://api.github.com/users/WFolini/received_events","type":"User","site_admin":false},"assignees":[{"login":"WFolini","id":12822259,"avatar_url":"https://avatars2.githubusercontent.com/u/12822259?v=4","gravatar_id":"","url":"https://api.github.com/users/WFolini","html_url":"https://github.com/WFolini","followers_url":"https://api.github.com/users/WFolini/followers","following_url":"https://api.github.com/users/WFolini/following{/other_user}","gists_url":"https://api.github.com/users/WFolini/gists{/gist_id}","starred_url":"https://api.github.com/users/WFolini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WFolini/subscriptions","organizations_url":"https://api.github.com/users/WFolini/orgs","repos_url":"https://api.github.com/users/WFolini/repos","events_url":"https://api.github.com/users/WFolini/events{/privacy}","received_events_url":"https://api.github.com/users/WFolini/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wolox-training/fp-react/pulls/17/commits","review_comments_url":"https://api.github.com/repos/wolox-training/fp-react/pulls/17/comments","review_comment_url":"https://api.github.com/repos/wolox-training/fp-react/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wolox-training/fp-react/issues/17/comments","statuses_url":"https://api.github.com/repos/wolox-training/fp-react/statuses/c1ce1b7623d0f0b04761e604e41478d89130be82","head":{"label":"wolox-training:comments","ref":"comments","sha":"c1ce1b7623d0f0b04761e604e41478d89130be82","user":{"login":"wolox-training","id":14113351,"avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":120296486,"name":"fp-react","full_name":"wolox-training/fp-react","owner":{"login":"wolox-training","id":14113351,"avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wolox-training/fp-react","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/fp-react","forks_url":"https://api.github.com/repos/wolox-training/fp-react/forks","keys_url":"https://api.github.com/repos/wolox-training/fp-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/fp-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/fp-react/teams","hooks_url":"https://api.github.com/repos/wolox-training/fp-react/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/fp-react/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/fp-react/events","assignees_url":"https://api.github.com/repos/wolox-training/fp-react/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/fp-react/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/fp-react/tags","blobs_url":"https://api.github.com/repos/wolox-training/fp-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/fp-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/fp-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/fp-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/fp-react/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/fp-react/languages","stargazers_url":"https://api.github.com/repos/wolox-training/fp-react/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/fp-react/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/fp-react/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/fp-react/subscription","commits_url":"https://api.github.com/repos/wolox-training/fp-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/fp-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/fp-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/fp-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/fp-react/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/fp-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/fp-react/merges","archive_url":"https://api.github.com/repos/wolox-training/fp-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/fp-react/downloads","issues_url":"https://api.github.com/repos/wolox-training/fp-react/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/fp-react/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/fp-react/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/fp-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/fp-react/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/fp-react/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/fp-react/deployments","created_at":"2018-02-05T11:34:21Z","updated_at":"2018-03-14T14:26:22Z","pushed_at":"2018-03-14T14:57:38Z","git_url":"git://github.com/wolox-training/fp-react.git","ssh_url":"git@github.com:wolox-training/fp-react.git","clone_url":"https://github.com/wolox-training/fp-react.git","svn_url":"https://github.com/wolox-training/fp-react","homepage":null,"size":982,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"wolox-training:master","ref":"master","sha":"904a1c25f0d0a2a563ca9bd3a771b0604d778082","user":{"login":"wolox-training","id":14113351,"avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":120296486,"name":"fp-react","full_name":"wolox-training/fp-react","owner":{"login":"wolox-training","id":14113351,"avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wolox-training/fp-react","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/fp-react","forks_url":"https://api.github.com/repos/wolox-training/fp-react/forks","keys_url":"https://api.github.com/repos/wolox-training/fp-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/fp-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/fp-react/teams","hooks_url":"https://api.github.com/repos/wolox-training/fp-react/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/fp-react/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/fp-react/events","assignees_url":"https://api.github.com/repos/wolox-training/fp-react/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/fp-react/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/fp-react/tags","blobs_url":"https://api.github.com/repos/wolox-training/fp-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/fp-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/fp-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/fp-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/fp-react/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/fp-react/languages","stargazers_url":"https://api.github.com/repos/wolox-training/fp-react/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/fp-react/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/fp-react/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/fp-react/subscription","commits_url":"https://api.github.com/repos/wolox-training/fp-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/fp-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/fp-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/fp-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/fp-react/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/fp-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/fp-react/merges","archive_url":"https://api.github.com/repos/wolox-training/fp-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/fp-react/downloads","issues_url":"https://api.github.com/repos/wolox-training/fp-react/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/fp-react/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/fp-react/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/fp-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/fp-react/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/fp-react/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/fp-react/deployments","created_at":"2018-02-05T11:34:21Z","updated_at":"2018-03-14T14:26:22Z","pushed_at":"2018-03-14T14:57:38Z","git_url":"git://github.com/wolox-training/fp-react.git","ssh_url":"git@github.com:wolox-training/fp-react.git","clone_url":"https://github.com/wolox-training/fp-react.git","svn_url":"https://github.com/wolox-training/fp-react","homepage":null,"size":982,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wolox-training/fp-react/pulls/17"},"html":{"href":"https://github.com/wolox-training/fp-react/pull/17"},"issue":{"href":"https://api.github.com/repos/wolox-training/fp-react/issues/17"},"comments":{"href":"https://api.github.com/repos/wolox-training/fp-react/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/wolox-training/fp-react/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/wolox-training/fp-react/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wolox-training/fp-react/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/wolox-training/fp-react/statuses/c1ce1b7623d0f0b04761e604e41478d89130be82"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"WFolini"}}