{"action":"created","comment":{"url":"https://api.github.com/repos/iidrees/Events-Manager/pulls/comments/186289845","pull_request_review_id":117842698,"id":186289845,"diff_hunk":"@@ -14,13 +15,46 @@ import NavBarMain from './NavBarMain.jsx';\n  */\n class Center extends React.Component {\n \n+  /**\n+ * Creates an instance of Center.\n+ * @param {any} props -\n+ * @memberof Center\n+ */\n+constructor(props){\n+  super(props)\n+  this.state = {\n+    currentPage: 1,\n+    itemsPerPage: 10,\n+  }\n+  this.onChange = this.onChange.bind(this);\n+\n+}\n+\n /**\n  * @returns {*} function\n  * @memberof Center\n  */\n componentWillMount() {\n-    const { dispatch } = this.props;\n-    return dispatch(getCenters());\n+    const { dispatch, currentPage } = this.props;\n+    return dispatch(getCenters(currentPage));\n+  }\n+\n+\n+ /**\n+ * \n+ * @returns {any} -\n+ * @param {any} page -\n+ * @memberof Center\n+ */\n+  onChange = (page) => {\n+    console.log(page);\n+    this.setState({\n+      currentPage: page,\n+    }, () => {\n+      const { dispatch } = this.props;\n+      console.log('current page>>>>', this.state.currentPage)","path":"client/src/components/Center.jsx","position":51,"original_position":51,"commit_id":"94e63cae98bfa2823b911b36ccca32883ab68f22","original_commit_id":"94e63cae98bfa2823b911b36ccca32883ab68f22","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":"Unexpected console statement                                   no-console","created_at":"2018-05-06T13:05:33Z","updated_at":"2018-05-06T13:05:34Z","html_url":"https://github.com/iidrees/Events-Manager/pull/79#discussion_r186289845","pull_request_url":"https://api.github.com/repos/iidrees/Events-Manager/pulls/79","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/iidrees/Events-Manager/pulls/comments/186289845"},"html":{"href":"https://github.com/iidrees/Events-Manager/pull/79#discussion_r186289845"},"pull_request":{"href":"https://api.github.com/repos/iidrees/Events-Manager/pulls/79"}}},"pull_request":{"url":"https://api.github.com/repos/iidrees/Events-Manager/pulls/79","id":186204692,"html_url":"https://github.com/iidrees/Events-Manager/pull/79","diff_url":"https://github.com/iidrees/Events-Manager/pull/79.diff","patch_url":"https://github.com/iidrees/Events-Manager/pull/79.patch","issue_url":"https://api.github.com/repos/iidrees/Events-Manager/issues/79","number":79,"state":"open","locked":false,"title":"#156780171 No adding a center twice","user":{"login":"iidrees","id":24682326,"avatar_url":"https://avatars1.githubusercontent.com/u/24682326?v=4","gravatar_id":"","url":"https://api.github.com/users/iidrees","html_url":"https://github.com/iidrees","followers_url":"https://api.github.com/users/iidrees/followers","following_url":"https://api.github.com/users/iidrees/following{/other_user}","gists_url":"https://api.github.com/users/iidrees/gists{/gist_id}","starred_url":"https://api.github.com/users/iidrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iidrees/subscriptions","organizations_url":"https://api.github.com/users/iidrees/orgs","repos_url":"https://api.github.com/users/iidrees/repos","events_url":"https://api.github.com/users/iidrees/events{/privacy}","received_events_url":"https://api.github.com/users/iidrees/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nIt implements the feedback that requires that a user should not be able to add a center twice\r\n\r\n#### Description of Task to be completed?\r\nN/A\r\n#### How should this be manually tested?\r\nrun the command `npm test`\r\n\r\n#### Any background context you want to provide?\r\nN/A\r\n#### What are the relevant pivotal tracker stories?\r\nN/A\r\n#### Screenshots (if appropriate)\r\n#156780171\r\n#### Questions:\r\nN/A","created_at":"2018-05-06T13:04:57Z","updated_at":"2018-05-06T13:05:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf55d8e0d3708e78998a4604ea53e1f60f7fec1c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/iidrees/Events-Manager/pulls/79/commits","review_comments_url":"https://api.github.com/repos/iidrees/Events-Manager/pulls/79/comments","review_comment_url":"https://api.github.com/repos/iidrees/Events-Manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iidrees/Events-Manager/issues/79/comments","statuses_url":"https://api.github.com/repos/iidrees/Events-Manager/statuses/94e63cae98bfa2823b911b36ccca32883ab68f22","head":{"label":"iidrees:chore/156780171/implement-second-feedback","ref":"chore/156780171/implement-second-feedback","sha":"94e63cae98bfa2823b911b36ccca32883ab68f22","user":{"login":"iidrees","id":24682326,"avatar_url":"https://avatars1.githubusercontent.com/u/24682326?v=4","gravatar_id":"","url":"https://api.github.com/users/iidrees","html_url":"https://github.com/iidrees","followers_url":"https://api.github.com/users/iidrees/followers","following_url":"https://api.github.com/users/iidrees/following{/other_user}","gists_url":"https://api.github.com/users/iidrees/gists{/gist_id}","starred_url":"https://api.github.com/users/iidrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iidrees/subscriptions","organizations_url":"https://api.github.com/users/iidrees/orgs","repos_url":"https://api.github.com/users/iidrees/repos","events_url":"https://api.github.com/users/iidrees/events{/privacy}","received_events_url":"https://api.github.com/users/iidrees/received_events","type":"User","site_admin":false},"repo":{"id":110561880,"name":"Events-Manager","full_name":"iidrees/Events-Manager","owner":{"login":"iidrees","id":24682326,"avatar_url":"https://avatars1.githubusercontent.com/u/24682326?v=4","gravatar_id":"","url":"https://api.github.com/users/iidrees","html_url":"https://github.com/iidrees","followers_url":"https://api.github.com/users/iidrees/followers","following_url":"https://api.github.com/users/iidrees/following{/other_user}","gists_url":"https://api.github.com/users/iidrees/gists{/gist_id}","starred_url":"https://api.github.com/users/iidrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iidrees/subscriptions","organizations_url":"https://api.github.com/users/iidrees/orgs","repos_url":"https://api.github.com/users/iidrees/repos","events_url":"https://api.github.com/users/iidrees/events{/privacy}","received_events_url":"https://api.github.com/users/iidrees/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iidrees/Events-Manager","description":"An application that allows Event Centers owners provide centers to event planners who may be looking for a good event center to use for their events","fork":false,"url":"https://api.github.com/repos/iidrees/Events-Manager","forks_url":"https://api.github.com/repos/iidrees/Events-Manager/forks","keys_url":"https://api.github.com/repos/iidrees/Events-Manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iidrees/Events-Manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iidrees/Events-Manager/teams","hooks_url":"https://api.github.com/repos/iidrees/Events-Manager/hooks","issue_events_url":"https://api.github.com/repos/iidrees/Events-Manager/issues/events{/number}","events_url":"https://api.github.com/repos/iidrees/Events-Manager/events","assignees_url":"https://api.github.com/repos/iidrees/Events-Manager/assignees{/user}","branches_url":"https://api.github.com/repos/iidrees/Events-Manager/branches{/branch}","tags_url":"https://api.github.com/repos/iidrees/Events-Manager/tags","blobs_url":"https://api.github.com/repos/iidrees/Events-Manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iidrees/Events-Manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iidrees/Events-Manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/iidrees/Events-Manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iidrees/Events-Manager/statuses/{sha}","languages_url":"https://api.github.com/repos/iidrees/Events-Manager/languages","stargazers_url":"https://api.github.com/repos/iidrees/Events-Manager/stargazers","contributors_url":"https://api.github.com/repos/iidrees/Events-Manager/contributors","subscribers_url":"https://api.github.com/repos/iidrees/Events-Manager/subscribers","subscription_url":"https://api.github.com/repos/iidrees/Events-Manager/subscription","commits_url":"https://api.github.com/repos/iidrees/Events-Manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/iidrees/Events-Manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/iidrees/Events-Manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/iidrees/Events-Manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/iidrees/Events-Manager/contents/{+path}","compare_url":"https://api.github.com/repos/iidrees/Events-Manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iidrees/Events-Manager/merges","archive_url":"https://api.github.com/repos/iidrees/Events-Manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iidrees/Events-Manager/downloads","issues_url":"https://api.github.com/repos/iidrees/Events-Manager/issues{/number}","pulls_url":"https://api.github.com/repos/iidrees/Events-Manager/pulls{/number}","milestones_url":"https://api.github.com/repos/iidrees/Events-Manager/milestones{/number}","notifications_url":"https://api.github.com/repos/iidrees/Events-Manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iidrees/Events-Manager/labels{/name}","releases_url":"https://api.github.com/repos/iidrees/Events-Manager/releases{/id}","deployments_url":"https://api.github.com/repos/iidrees/Events-Manager/deployments","created_at":"2017-11-13T14:57:06Z","updated_at":"2018-04-29T16:10:02Z","pushed_at":"2018-05-06T13:04:58Z","git_url":"git://github.com/iidrees/Events-Manager.git","ssh_url":"git@github.com:iidrees/Events-Manager.git","clone_url":"https://github.com/iidrees/Events-Manager.git","svn_url":"https://github.com/iidrees/Events-Manager","homepage":"https://events-manager-cp.herokuapp.com/","size":13140,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"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":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"iidrees:develop","ref":"develop","sha":"1b839cbdde77952b7ae10f7397b0e53e51af5313","user":{"login":"iidrees","id":24682326,"avatar_url":"https://avatars1.githubusercontent.com/u/24682326?v=4","gravatar_id":"","url":"https://api.github.com/users/iidrees","html_url":"https://github.com/iidrees","followers_url":"https://api.github.com/users/iidrees/followers","following_url":"https://api.github.com/users/iidrees/following{/other_user}","gists_url":"https://api.github.com/users/iidrees/gists{/gist_id}","starred_url":"https://api.github.com/users/iidrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iidrees/subscriptions","organizations_url":"https://api.github.com/users/iidrees/orgs","repos_url":"https://api.github.com/users/iidrees/repos","events_url":"https://api.github.com/users/iidrees/events{/privacy}","received_events_url":"https://api.github.com/users/iidrees/received_events","type":"User","site_admin":false},"repo":{"id":110561880,"name":"Events-Manager","full_name":"iidrees/Events-Manager","owner":{"login":"iidrees","id":24682326,"avatar_url":"https://avatars1.githubusercontent.com/u/24682326?v=4","gravatar_id":"","url":"https://api.github.com/users/iidrees","html_url":"https://github.com/iidrees","followers_url":"https://api.github.com/users/iidrees/followers","following_url":"https://api.github.com/users/iidrees/following{/other_user}","gists_url":"https://api.github.com/users/iidrees/gists{/gist_id}","starred_url":"https://api.github.com/users/iidrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iidrees/subscriptions","organizations_url":"https://api.github.com/users/iidrees/orgs","repos_url":"https://api.github.com/users/iidrees/repos","events_url":"https://api.github.com/users/iidrees/events{/privacy}","received_events_url":"https://api.github.com/users/iidrees/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iidrees/Events-Manager","description":"An application that allows Event Centers owners provide centers to event planners who may be looking for a good event center to use for their events","fork":false,"url":"https://api.github.com/repos/iidrees/Events-Manager","forks_url":"https://api.github.com/repos/iidrees/Events-Manager/forks","keys_url":"https://api.github.com/repos/iidrees/Events-Manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iidrees/Events-Manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iidrees/Events-Manager/teams","hooks_url":"https://api.github.com/repos/iidrees/Events-Manager/hooks","issue_events_url":"https://api.github.com/repos/iidrees/Events-Manager/issues/events{/number}","events_url":"https://api.github.com/repos/iidrees/Events-Manager/events","assignees_url":"https://api.github.com/repos/iidrees/Events-Manager/assignees{/user}","branches_url":"https://api.github.com/repos/iidrees/Events-Manager/branches{/branch}","tags_url":"https://api.github.com/repos/iidrees/Events-Manager/tags","blobs_url":"https://api.github.com/repos/iidrees/Events-Manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iidrees/Events-Manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iidrees/Events-Manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/iidrees/Events-Manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iidrees/Events-Manager/statuses/{sha}","languages_url":"https://api.github.com/repos/iidrees/Events-Manager/languages","stargazers_url":"https://api.github.com/repos/iidrees/Events-Manager/stargazers","contributors_url":"https://api.github.com/repos/iidrees/Events-Manager/contributors","subscribers_url":"https://api.github.com/repos/iidrees/Events-Manager/subscribers","subscription_url":"https://api.github.com/repos/iidrees/Events-Manager/subscription","commits_url":"https://api.github.com/repos/iidrees/Events-Manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/iidrees/Events-Manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/iidrees/Events-Manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/iidrees/Events-Manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/iidrees/Events-Manager/contents/{+path}","compare_url":"https://api.github.com/repos/iidrees/Events-Manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iidrees/Events-Manager/merges","archive_url":"https://api.github.com/repos/iidrees/Events-Manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iidrees/Events-Manager/downloads","issues_url":"https://api.github.com/repos/iidrees/Events-Manager/issues{/number}","pulls_url":"https://api.github.com/repos/iidrees/Events-Manager/pulls{/number}","milestones_url":"https://api.github.com/repos/iidrees/Events-Manager/milestones{/number}","notifications_url":"https://api.github.com/repos/iidrees/Events-Manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iidrees/Events-Manager/labels{/name}","releases_url":"https://api.github.com/repos/iidrees/Events-Manager/releases{/id}","deployments_url":"https://api.github.com/repos/iidrees/Events-Manager/deployments","created_at":"2017-11-13T14:57:06Z","updated_at":"2018-04-29T16:10:02Z","pushed_at":"2018-05-06T13:04:58Z","git_url":"git://github.com/iidrees/Events-Manager.git","ssh_url":"git@github.com:iidrees/Events-Manager.git","clone_url":"https://github.com/iidrees/Events-Manager.git","svn_url":"https://github.com/iidrees/Events-Manager","homepage":"https://events-manager-cp.herokuapp.com/","size":13140,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"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":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/iidrees/Events-Manager/pulls/79"},"html":{"href":"https://github.com/iidrees/Events-Manager/pull/79"},"issue":{"href":"https://api.github.com/repos/iidrees/Events-Manager/issues/79"},"comments":{"href":"https://api.github.com/repos/iidrees/Events-Manager/issues/79/comments"},"review_comments":{"href":"https://api.github.com/repos/iidrees/Events-Manager/pulls/79/comments"},"review_comment":{"href":"https://api.github.com/repos/iidrees/Events-Manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iidrees/Events-Manager/pulls/79/commits"},"statuses":{"href":"https://api.github.com/repos/iidrees/Events-Manager/statuses/94e63cae98bfa2823b911b36ccca32883ab68f22"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}