{"action":"created","comment":{"url":"https://api.github.com/repos/benfluleck/HelloBooks/pulls/comments/152650462","pull_request_review_id":78545928,"id":152650462,"diff_hunk":"@@ -0,0 +1,66 @@\n+import React, { Component } from 'react';\n+import PropTypes from 'prop-types';\n+import { loanhistory } from '../../../actions/loanhistory';\n+import { connect } from 'react-redux';\n+import { Pagination, Row ,Preloader } from 'react-materialize';\n+import PaginationWrapper from '../common/Pagination.jsx'\n+import LoanHistoryTable from '../../presentation/loanhistory/LoanHistoryTable.jsx';\n+\n+/**\n+ * handles the state of the Loan history table\n+ * @class LoanHistory\n+ * @extends {React.Component}\n+ */\n+class LoanHistory extends React.Component {\n+  constructor(props) {\n+    super(props);\n+    this.state = {\n+      limit: 3,\n+      offset: 0,\n+      isLoading: false\n+    };\n+\n+  }\n+\n+  componentDidMount(){\n+      this.props\n+      .loanhistory(this.state.offset, this.state.limit)\n+  }\n+  \n+  render(){\n+    if (!this.props.bookOperations) {\n+\t\t\treturn <Preloader size=\"big\" className=\"center-align\" />;\n+\t\t}\n+    const { pagination } = this.props.bookOperations;\n+    const config = { items: pagination.pageCount, \n+                    activePage: pagination.page\n+                  };\n+    return(\n+      <div>\n+        <LoanHistoryTable  books={ this.props.bookOperations.books }/> \n+        <PaginationWrapper config={ config } \n+                            numberOfRecords={ this.state.limit }\n+                            fetch={ this.props.loanhistory }/>","path":"client/src/app/components/container/loanhistory/LoanHistory.jsx","position":43,"original_position":43,"commit_id":"17702929c668a04e631b8724fa768338aab20d61","original_commit_id":"17702929c668a04e631b8724fa768338aab20d61","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":"Expected indentation of 10 space characters but found 28                                                           react/jsx-indent-props<br>There should be no space after '{'                                                                                 react/jsx-curly-spacing<br>There should be no space before '}'                                                                                react/jsx-curly-spacing<br>The closing bracket must be aligned with the line containing the opening tag (expected column 9 on the next line)  react/jsx-closing-bracket-location<br>A space is required before closing bracket                                                                         react/jsx-tag-spacing","created_at":"2017-11-22T18:48:22Z","updated_at":"2017-11-22T18:48:23Z","html_url":"https://github.com/benfluleck/HelloBooks/pull/32#discussion_r152650462","pull_request_url":"https://api.github.com/repos/benfluleck/HelloBooks/pulls/32","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/benfluleck/HelloBooks/pulls/comments/152650462"},"html":{"href":"https://github.com/benfluleck/HelloBooks/pull/32#discussion_r152650462"},"pull_request":{"href":"https://api.github.com/repos/benfluleck/HelloBooks/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/benfluleck/HelloBooks/pulls/32","id":154230539,"html_url":"https://github.com/benfluleck/HelloBooks/pull/32","diff_url":"https://github.com/benfluleck/HelloBooks/pull/32.diff","patch_url":"https://github.com/benfluleck/HelloBooks/pull/32.patch","issue_url":"https://api.github.com/repos/benfluleck/HelloBooks/issues/32","number":32,"state":"open","locked":false,"title":"Feature/153009051/implement route to retrieve a user book history","user":{"login":"benfluleck","id":26222856,"avatar_url":"https://avatars2.githubusercontent.com/u/26222856?v=4","gravatar_id":"","url":"https://api.github.com/users/benfluleck","html_url":"https://github.com/benfluleck","followers_url":"https://api.github.com/users/benfluleck/followers","following_url":"https://api.github.com/users/benfluleck/following{/other_user}","gists_url":"https://api.github.com/users/benfluleck/gists{/gist_id}","starred_url":"https://api.github.com/users/benfluleck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benfluleck/subscriptions","organizations_url":"https://api.github.com/users/benfluleck/orgs","repos_url":"https://api.github.com/users/benfluleck/repos","events_url":"https://api.github.com/users/benfluleck/events{/privacy}","received_events_url":"https://api.github.com/users/benfluleck/received_events","type":"User","site_admin":false},"body":"<!--- Provide a general summary of your changes in the Title above -->\r\nThis PR implements Loan History, Loan and Return Book\r\n\r\n#### Description\r\n<!--- Describe your changes in detail -->\r\nLoan history - A tab displays a table with information showing the users book loans and return history.\r\nLoan book - The user clicks on a book and now has the option to Loan it.\r\nReturn book- Any books loaned can be returned by the user.\r\n\r\n\r\n\r\n#### Screenshots (if appropriate):\r\n<img width=\"1438\" alt=\"screen shot 2017-11-22 at 7 43 55 pm\" src=\"https://user-images.githubusercontent.com/26222856/33144594-e3b4d958-cfbd-11e7-952a-ce43d170d878.png\">\r\n<img width=\"1440\" alt=\"screen shot 2017-11-22 at 7 44 37 pm\" src=\"https://user-images.githubusercontent.com/26222856/33144595-e3d8e87a-cfbd-11e7-8762-f04a8b67783b.png\">\r\n<img width=\"1440\" alt=\"screen shot 2017-11-22 at 7 46 37 pm\" src=\"https://user-images.githubusercontent.com/26222856/33144596-e4089322-cfbd-11e7-8ab3-1fd56e9bc3bb.png\">\r\n\r\n#### Any background context you want to provide?\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n\r\n#### Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n- [ ] New chore (expected functionality to be implemented)\r\n\r\n#### Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] My code follows the code style of this project.\r\n- [x] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n","created_at":"2017-11-22T18:47:28Z","updated_at":"2017-11-22T18:48:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4aef30553d4e5701d770146408e43e80e6b5b47c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/benfluleck/HelloBooks/pulls/32/commits","review_comments_url":"https://api.github.com/repos/benfluleck/HelloBooks/pulls/32/comments","review_comment_url":"https://api.github.com/repos/benfluleck/HelloBooks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/benfluleck/HelloBooks/issues/32/comments","statuses_url":"https://api.github.com/repos/benfluleck/HelloBooks/statuses/17702929c668a04e631b8724fa768338aab20d61","head":{"label":"benfluleck:feature/153009051/Implement-route-to-retrieve-a-user-book-history","ref":"feature/153009051/Implement-route-to-retrieve-a-user-book-history","sha":"17702929c668a04e631b8724fa768338aab20d61","user":{"login":"benfluleck","id":26222856,"avatar_url":"https://avatars2.githubusercontent.com/u/26222856?v=4","gravatar_id":"","url":"https://api.github.com/users/benfluleck","html_url":"https://github.com/benfluleck","followers_url":"https://api.github.com/users/benfluleck/followers","following_url":"https://api.github.com/users/benfluleck/following{/other_user}","gists_url":"https://api.github.com/users/benfluleck/gists{/gist_id}","starred_url":"https://api.github.com/users/benfluleck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benfluleck/subscriptions","organizations_url":"https://api.github.com/users/benfluleck/orgs","repos_url":"https://api.github.com/users/benfluleck/repos","events_url":"https://api.github.com/users/benfluleck/events{/privacy}","received_events_url":"https://api.github.com/users/benfluleck/received_events","type":"User","site_admin":false},"repo":{"id":98877750,"name":"HelloBooks","full_name":"benfluleck/HelloBooks","owner":{"login":"benfluleck","id":26222856,"avatar_url":"https://avatars2.githubusercontent.com/u/26222856?v=4","gravatar_id":"","url":"https://api.github.com/users/benfluleck","html_url":"https://github.com/benfluleck","followers_url":"https://api.github.com/users/benfluleck/followers","following_url":"https://api.github.com/users/benfluleck/following{/other_user}","gists_url":"https://api.github.com/users/benfluleck/gists{/gist_id}","starred_url":"https://api.github.com/users/benfluleck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benfluleck/subscriptions","organizations_url":"https://api.github.com/users/benfluleck/orgs","repos_url":"https://api.github.com/users/benfluleck/repos","events_url":"https://api.github.com/users/benfluleck/events{/privacy}","received_events_url":"https://api.github.com/users/benfluleck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benfluleck/HelloBooks","description":"HelloBooks is a full stack javascript app that implements a simple digital library for keeping, borrowing managing all kinds of literature.","fork":false,"url":"https://api.github.com/repos/benfluleck/HelloBooks","forks_url":"https://api.github.com/repos/benfluleck/HelloBooks/forks","keys_url":"https://api.github.com/repos/benfluleck/HelloBooks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benfluleck/HelloBooks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benfluleck/HelloBooks/teams","hooks_url":"https://api.github.com/repos/benfluleck/HelloBooks/hooks","issue_events_url":"https://api.github.com/repos/benfluleck/HelloBooks/issues/events{/number}","events_url":"https://api.github.com/repos/benfluleck/HelloBooks/events","assignees_url":"https://api.github.com/repos/benfluleck/HelloBooks/assignees{/user}","branches_url":"https://api.github.com/repos/benfluleck/HelloBooks/branches{/branch}","tags_url":"https://api.github.com/repos/benfluleck/HelloBooks/tags","blobs_url":"https://api.github.com/repos/benfluleck/HelloBooks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benfluleck/HelloBooks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benfluleck/HelloBooks/git/refs{/sha}","trees_url":"https://api.github.com/repos/benfluleck/HelloBooks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benfluleck/HelloBooks/statuses/{sha}","languages_url":"https://api.github.com/repos/benfluleck/HelloBooks/languages","stargazers_url":"https://api.github.com/repos/benfluleck/HelloBooks/stargazers","contributors_url":"https://api.github.com/repos/benfluleck/HelloBooks/contributors","subscribers_url":"https://api.github.com/repos/benfluleck/HelloBooks/subscribers","subscription_url":"https://api.github.com/repos/benfluleck/HelloBooks/subscription","commits_url":"https://api.github.com/repos/benfluleck/HelloBooks/commits{/sha}","git_commits_url":"https://api.github.com/repos/benfluleck/HelloBooks/git/commits{/sha}","comments_url":"https://api.github.com/repos/benfluleck/HelloBooks/comments{/number}","issue_comment_url":"https://api.github.com/repos/benfluleck/HelloBooks/issues/comments{/number}","contents_url":"https://api.github.com/repos/benfluleck/HelloBooks/contents/{+path}","compare_url":"https://api.github.com/repos/benfluleck/HelloBooks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benfluleck/HelloBooks/merges","archive_url":"https://api.github.com/repos/benfluleck/HelloBooks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benfluleck/HelloBooks/downloads","issues_url":"https://api.github.com/repos/benfluleck/HelloBooks/issues{/number}","pulls_url":"https://api.github.com/repos/benfluleck/HelloBooks/pulls{/number}","milestones_url":"https://api.github.com/repos/benfluleck/HelloBooks/milestones{/number}","notifications_url":"https://api.github.com/repos/benfluleck/HelloBooks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benfluleck/HelloBooks/labels{/name}","releases_url":"https://api.github.com/repos/benfluleck/HelloBooks/releases{/id}","deployments_url":"https://api.github.com/repos/benfluleck/HelloBooks/deployments","created_at":"2017-07-31T10:37:01Z","updated_at":"2017-11-20T20:45:57Z","pushed_at":"2017-11-22T18:47:29Z","git_url":"git://github.com/benfluleck/HelloBooks.git","ssh_url":"git@github.com:benfluleck/HelloBooks.git","clone_url":"https://github.com/benfluleck/HelloBooks.git","svn_url":"https://github.com/benfluleck/HelloBooks","homepage":"https://staging-hellobooks.herokuapp.com/","size":15643,"stargazers_count":1,"watchers_count":1,"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":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"development"}},"base":{"label":"benfluleck:development","ref":"development","sha":"7f24ca71a8c5b38f65cd60be038f65c4434557e9","user":{"login":"benfluleck","id":26222856,"avatar_url":"https://avatars2.githubusercontent.com/u/26222856?v=4","gravatar_id":"","url":"https://api.github.com/users/benfluleck","html_url":"https://github.com/benfluleck","followers_url":"https://api.github.com/users/benfluleck/followers","following_url":"https://api.github.com/users/benfluleck/following{/other_user}","gists_url":"https://api.github.com/users/benfluleck/gists{/gist_id}","starred_url":"https://api.github.com/users/benfluleck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benfluleck/subscriptions","organizations_url":"https://api.github.com/users/benfluleck/orgs","repos_url":"https://api.github.com/users/benfluleck/repos","events_url":"https://api.github.com/users/benfluleck/events{/privacy}","received_events_url":"https://api.github.com/users/benfluleck/received_events","type":"User","site_admin":false},"repo":{"id":98877750,"name":"HelloBooks","full_name":"benfluleck/HelloBooks","owner":{"login":"benfluleck","id":26222856,"avatar_url":"https://avatars2.githubusercontent.com/u/26222856?v=4","gravatar_id":"","url":"https://api.github.com/users/benfluleck","html_url":"https://github.com/benfluleck","followers_url":"https://api.github.com/users/benfluleck/followers","following_url":"https://api.github.com/users/benfluleck/following{/other_user}","gists_url":"https://api.github.com/users/benfluleck/gists{/gist_id}","starred_url":"https://api.github.com/users/benfluleck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benfluleck/subscriptions","organizations_url":"https://api.github.com/users/benfluleck/orgs","repos_url":"https://api.github.com/users/benfluleck/repos","events_url":"https://api.github.com/users/benfluleck/events{/privacy}","received_events_url":"https://api.github.com/users/benfluleck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benfluleck/HelloBooks","description":"HelloBooks is a full stack javascript app that implements a simple digital library for keeping, borrowing managing all kinds of literature.","fork":false,"url":"https://api.github.com/repos/benfluleck/HelloBooks","forks_url":"https://api.github.com/repos/benfluleck/HelloBooks/forks","keys_url":"https://api.github.com/repos/benfluleck/HelloBooks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benfluleck/HelloBooks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benfluleck/HelloBooks/teams","hooks_url":"https://api.github.com/repos/benfluleck/HelloBooks/hooks","issue_events_url":"https://api.github.com/repos/benfluleck/HelloBooks/issues/events{/number}","events_url":"https://api.github.com/repos/benfluleck/HelloBooks/events","assignees_url":"https://api.github.com/repos/benfluleck/HelloBooks/assignees{/user}","branches_url":"https://api.github.com/repos/benfluleck/HelloBooks/branches{/branch}","tags_url":"https://api.github.com/repos/benfluleck/HelloBooks/tags","blobs_url":"https://api.github.com/repos/benfluleck/HelloBooks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benfluleck/HelloBooks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benfluleck/HelloBooks/git/refs{/sha}","trees_url":"https://api.github.com/repos/benfluleck/HelloBooks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benfluleck/HelloBooks/statuses/{sha}","languages_url":"https://api.github.com/repos/benfluleck/HelloBooks/languages","stargazers_url":"https://api.github.com/repos/benfluleck/HelloBooks/stargazers","contributors_url":"https://api.github.com/repos/benfluleck/HelloBooks/contributors","subscribers_url":"https://api.github.com/repos/benfluleck/HelloBooks/subscribers","subscription_url":"https://api.github.com/repos/benfluleck/HelloBooks/subscription","commits_url":"https://api.github.com/repos/benfluleck/HelloBooks/commits{/sha}","git_commits_url":"https://api.github.com/repos/benfluleck/HelloBooks/git/commits{/sha}","comments_url":"https://api.github.com/repos/benfluleck/HelloBooks/comments{/number}","issue_comment_url":"https://api.github.com/repos/benfluleck/HelloBooks/issues/comments{/number}","contents_url":"https://api.github.com/repos/benfluleck/HelloBooks/contents/{+path}","compare_url":"https://api.github.com/repos/benfluleck/HelloBooks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benfluleck/HelloBooks/merges","archive_url":"https://api.github.com/repos/benfluleck/HelloBooks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benfluleck/HelloBooks/downloads","issues_url":"https://api.github.com/repos/benfluleck/HelloBooks/issues{/number}","pulls_url":"https://api.github.com/repos/benfluleck/HelloBooks/pulls{/number}","milestones_url":"https://api.github.com/repos/benfluleck/HelloBooks/milestones{/number}","notifications_url":"https://api.github.com/repos/benfluleck/HelloBooks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benfluleck/HelloBooks/labels{/name}","releases_url":"https://api.github.com/repos/benfluleck/HelloBooks/releases{/id}","deployments_url":"https://api.github.com/repos/benfluleck/HelloBooks/deployments","created_at":"2017-07-31T10:37:01Z","updated_at":"2017-11-20T20:45:57Z","pushed_at":"2017-11-22T18:47:29Z","git_url":"git://github.com/benfluleck/HelloBooks.git","ssh_url":"git@github.com:benfluleck/HelloBooks.git","clone_url":"https://github.com/benfluleck/HelloBooks.git","svn_url":"https://github.com/benfluleck/HelloBooks","homepage":"https://staging-hellobooks.herokuapp.com/","size":15643,"stargazers_count":1,"watchers_count":1,"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":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/benfluleck/HelloBooks/pulls/32"},"html":{"href":"https://github.com/benfluleck/HelloBooks/pull/32"},"issue":{"href":"https://api.github.com/repos/benfluleck/HelloBooks/issues/32"},"comments":{"href":"https://api.github.com/repos/benfluleck/HelloBooks/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/benfluleck/HelloBooks/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/benfluleck/HelloBooks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/benfluleck/HelloBooks/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/benfluleck/HelloBooks/statuses/17702929c668a04e631b8724fa768338aab20d61"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}