{"action":"created","comment":{"url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls/comments/173790593","pull_request_review_id":103035520,"id":173790593,"diff_hunk":"@@ -10,9 +11,11 @@ import PropTypes from 'prop-types';\n class SideNav extends Component {\n   constructor(props) {\n     super(props);\n-    this.state = {\n-      search: '',\n-    };\n+    this.handleFilter = this.handleFilter.bind(this);","path":"client/src/components/common/SideNav.jsx","position":15,"original_position":15,"commit_id":"4ed8d9c11474e520804d2806c816d94e2fa17052","original_commit_id":"4ed8d9c11474e520804d2806c816d94e2fa17052","user":{"login":"JaphethCA","id":31279497,"avatar_url":"https://avatars0.githubusercontent.com/u/31279497?v=4","gravatar_id":"","url":"https://api.github.com/users/JaphethCA","html_url":"https://github.com/JaphethCA","followers_url":"https://api.github.com/users/JaphethCA/followers","following_url":"https://api.github.com/users/JaphethCA/following{/other_user}","gists_url":"https://api.github.com/users/JaphethCA/gists{/gist_id}","starred_url":"https://api.github.com/users/JaphethCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaphethCA/subscriptions","organizations_url":"https://api.github.com/users/JaphethCA/orgs","repos_url":"https://api.github.com/users/JaphethCA/repos","events_url":"https://api.github.com/users/JaphethCA/events{/privacy}","received_events_url":"https://api.github.com/users/JaphethCA/received_events","type":"User","site_admin":false},"body":"In other not to bind function in the constructor like this, you can define the function as arrow function which auto binds functions. For instance, you can redefine the `handleFilter` function as follows:\r\n```javacript\r\nhandleFilter = (event) => {\r\n  this.props.filterIdeas(event.target.id);\r\n}\r\n```\r\nInstall `transform-class-properties` package and include the following in `.babelrc`.\r\n{\r\n\"plugins\": [\r\n    \"transform-class-properties\"\r\n ]\r\n}","created_at":"2018-03-12T13:14:11Z","updated_at":"2018-03-12T13:14:11Z","html_url":"https://github.com/WillyWunderdog/IdeaBox/pull/42#discussion_r173790593","pull_request_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls/42","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls/comments/173790593"},"html":{"href":"https://github.com/WillyWunderdog/IdeaBox/pull/42#discussion_r173790593"},"pull_request":{"href":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls/42","id":174190715,"html_url":"https://github.com/WillyWunderdog/IdeaBox/pull/42","diff_url":"https://github.com/WillyWunderdog/IdeaBox/pull/42.diff","patch_url":"https://github.com/WillyWunderdog/IdeaBox/pull/42.patch","issue_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/issues/42","number":42,"state":"open","locked":false,"title":"#155545607 - implement filter ideas by category feature","user":{"login":"WillyWunderdog","id":19694117,"avatar_url":"https://avatars1.githubusercontent.com/u/19694117?v=4","gravatar_id":"","url":"https://api.github.com/users/WillyWunderdog","html_url":"https://github.com/WillyWunderdog","followers_url":"https://api.github.com/users/WillyWunderdog/followers","following_url":"https://api.github.com/users/WillyWunderdog/following{/other_user}","gists_url":"https://api.github.com/users/WillyWunderdog/gists{/gist_id}","starred_url":"https://api.github.com/users/WillyWunderdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillyWunderdog/subscriptions","organizations_url":"https://api.github.com/users/WillyWunderdog/orgs","repos_url":"https://api.github.com/users/WillyWunderdog/repos","events_url":"https://api.github.com/users/WillyWunderdog/events{/privacy}","received_events_url":"https://api.github.com/users/WillyWunderdog/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n- Implement filter ideas by category feature on the front-end\r\n#### Description of Task to be completed?\r\n- create categories list\r\n- create actions, reducers\r\n#### How should this be manually tested?\r\n- view app online\r\n#### Any background context you want to provide?\r\n- None\r\n#### What are the relevant pivotal tracker stories?\r\nhttps://www.pivotaltracker.com/story/show/155545607\r\n#### Screenshots (if appropriate)\r\n#### Questions:\r\nN/A","created_at":"2018-03-10T21:35:37Z","updated_at":"2018-03-12T13:14:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89b9b0e3c954a4ef706f239dfb4977f15af35b55","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls/42/commits","review_comments_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls/42/comments","review_comment_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/issues/42/comments","statuses_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/statuses/4ed8d9c11474e520804d2806c816d94e2fa17052","head":{"label":"WillyWunderdog:feature/155545607/fetch-by-category","ref":"feature/155545607/fetch-by-category","sha":"4ed8d9c11474e520804d2806c816d94e2fa17052","user":{"login":"WillyWunderdog","id":19694117,"avatar_url":"https://avatars1.githubusercontent.com/u/19694117?v=4","gravatar_id":"","url":"https://api.github.com/users/WillyWunderdog","html_url":"https://github.com/WillyWunderdog","followers_url":"https://api.github.com/users/WillyWunderdog/followers","following_url":"https://api.github.com/users/WillyWunderdog/following{/other_user}","gists_url":"https://api.github.com/users/WillyWunderdog/gists{/gist_id}","starred_url":"https://api.github.com/users/WillyWunderdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillyWunderdog/subscriptions","organizations_url":"https://api.github.com/users/WillyWunderdog/orgs","repos_url":"https://api.github.com/users/WillyWunderdog/repos","events_url":"https://api.github.com/users/WillyWunderdog/events{/privacy}","received_events_url":"https://api.github.com/users/WillyWunderdog/received_events","type":"User","site_admin":false},"repo":{"id":122287736,"name":"IdeaBox","full_name":"WillyWunderdog/IdeaBox","owner":{"login":"WillyWunderdog","id":19694117,"avatar_url":"https://avatars1.githubusercontent.com/u/19694117?v=4","gravatar_id":"","url":"https://api.github.com/users/WillyWunderdog","html_url":"https://github.com/WillyWunderdog","followers_url":"https://api.github.com/users/WillyWunderdog/followers","following_url":"https://api.github.com/users/WillyWunderdog/following{/other_user}","gists_url":"https://api.github.com/users/WillyWunderdog/gists{/gist_id}","starred_url":"https://api.github.com/users/WillyWunderdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillyWunderdog/subscriptions","organizations_url":"https://api.github.com/users/WillyWunderdog/orgs","repos_url":"https://api.github.com/users/WillyWunderdog/repos","events_url":"https://api.github.com/users/WillyWunderdog/events{/privacy}","received_events_url":"https://api.github.com/users/WillyWunderdog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WillyWunderdog/IdeaBox","description":"Ideabox is a simple application that allows users to create a pool of ideas and promote collaboration.","fork":false,"url":"https://api.github.com/repos/WillyWunderdog/IdeaBox","forks_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/forks","keys_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/teams","hooks_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/hooks","issue_events_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/issues/events{/number}","events_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/events","assignees_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/assignees{/user}","branches_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/branches{/branch}","tags_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/tags","blobs_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/git/refs{/sha}","trees_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/statuses/{sha}","languages_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/languages","stargazers_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/stargazers","contributors_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/contributors","subscribers_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/subscribers","subscription_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/subscription","commits_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/commits{/sha}","git_commits_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/git/commits{/sha}","comments_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/comments{/number}","issue_comment_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/issues/comments{/number}","contents_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/contents/{+path}","compare_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/merges","archive_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/downloads","issues_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/issues{/number}","pulls_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls{/number}","milestones_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/milestones{/number}","notifications_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/labels{/name}","releases_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/releases{/id}","deployments_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/deployments","created_at":"2018-02-21T03:27:09Z","updated_at":"2018-03-02T08:24:15Z","pushed_at":"2018-03-12T09:27:14Z","git_url":"git://github.com/WillyWunderdog/IdeaBox.git","ssh_url":"git@github.com:WillyWunderdog/IdeaBox.git","clone_url":"https://github.com/WillyWunderdog/IdeaBox.git","svn_url":"https://github.com/WillyWunderdog/IdeaBox","homepage":"","size":1668,"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":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":6,"watchers":0,"default_branch":"development"}},"base":{"label":"WillyWunderdog:development","ref":"development","sha":"c27c9ec62d39112190652a1127a2722cd0041b5f","user":{"login":"WillyWunderdog","id":19694117,"avatar_url":"https://avatars1.githubusercontent.com/u/19694117?v=4","gravatar_id":"","url":"https://api.github.com/users/WillyWunderdog","html_url":"https://github.com/WillyWunderdog","followers_url":"https://api.github.com/users/WillyWunderdog/followers","following_url":"https://api.github.com/users/WillyWunderdog/following{/other_user}","gists_url":"https://api.github.com/users/WillyWunderdog/gists{/gist_id}","starred_url":"https://api.github.com/users/WillyWunderdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillyWunderdog/subscriptions","organizations_url":"https://api.github.com/users/WillyWunderdog/orgs","repos_url":"https://api.github.com/users/WillyWunderdog/repos","events_url":"https://api.github.com/users/WillyWunderdog/events{/privacy}","received_events_url":"https://api.github.com/users/WillyWunderdog/received_events","type":"User","site_admin":false},"repo":{"id":122287736,"name":"IdeaBox","full_name":"WillyWunderdog/IdeaBox","owner":{"login":"WillyWunderdog","id":19694117,"avatar_url":"https://avatars1.githubusercontent.com/u/19694117?v=4","gravatar_id":"","url":"https://api.github.com/users/WillyWunderdog","html_url":"https://github.com/WillyWunderdog","followers_url":"https://api.github.com/users/WillyWunderdog/followers","following_url":"https://api.github.com/users/WillyWunderdog/following{/other_user}","gists_url":"https://api.github.com/users/WillyWunderdog/gists{/gist_id}","starred_url":"https://api.github.com/users/WillyWunderdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillyWunderdog/subscriptions","organizations_url":"https://api.github.com/users/WillyWunderdog/orgs","repos_url":"https://api.github.com/users/WillyWunderdog/repos","events_url":"https://api.github.com/users/WillyWunderdog/events{/privacy}","received_events_url":"https://api.github.com/users/WillyWunderdog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WillyWunderdog/IdeaBox","description":"Ideabox is a simple application that allows users to create a pool of ideas and promote collaboration.","fork":false,"url":"https://api.github.com/repos/WillyWunderdog/IdeaBox","forks_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/forks","keys_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/teams","hooks_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/hooks","issue_events_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/issues/events{/number}","events_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/events","assignees_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/assignees{/user}","branches_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/branches{/branch}","tags_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/tags","blobs_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/git/refs{/sha}","trees_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/statuses/{sha}","languages_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/languages","stargazers_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/stargazers","contributors_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/contributors","subscribers_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/subscribers","subscription_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/subscription","commits_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/commits{/sha}","git_commits_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/git/commits{/sha}","comments_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/comments{/number}","issue_comment_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/issues/comments{/number}","contents_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/contents/{+path}","compare_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/merges","archive_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/downloads","issues_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/issues{/number}","pulls_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls{/number}","milestones_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/milestones{/number}","notifications_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/labels{/name}","releases_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/releases{/id}","deployments_url":"https://api.github.com/repos/WillyWunderdog/IdeaBox/deployments","created_at":"2018-02-21T03:27:09Z","updated_at":"2018-03-02T08:24:15Z","pushed_at":"2018-03-12T09:27:14Z","git_url":"git://github.com/WillyWunderdog/IdeaBox.git","ssh_url":"git@github.com:WillyWunderdog/IdeaBox.git","clone_url":"https://github.com/WillyWunderdog/IdeaBox.git","svn_url":"https://github.com/WillyWunderdog/IdeaBox","homepage":"","size":1668,"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":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":6,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls/42"},"html":{"href":"https://github.com/WillyWunderdog/IdeaBox/pull/42"},"issue":{"href":"https://api.github.com/repos/WillyWunderdog/IdeaBox/issues/42"},"comments":{"href":"https://api.github.com/repos/WillyWunderdog/IdeaBox/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WillyWunderdog/IdeaBox/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/WillyWunderdog/IdeaBox/statuses/4ed8d9c11474e520804d2806c816d94e2fa17052"}},"author_association":"OWNER"}}
{"actor":{"display_login":"JaphethCA"}}