{"action":"created","comment":{"url":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls/comments/226869178","pull_request_review_id":166791860,"id":226869178,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjg2OTE3OA==","diff_hunk":"@@ -17,75 +17,72 @@ class Categorizer extends React.Component {\n     });\n   };\n \n-  updateSelectedTransactions = newSelectedTransactions => {\n+  updateSelectedParties = newSelectedParties => {\n     this.setState({\n-      selectedTransactions: [...newSelectedTransactions]\n+      selectedParties: [...newSelectedParties]\n     });\n   };\n \n-  availableTransactions = (transactionsList, categories) => {\n-    const transactionsFoundInCategories = [];\n+  unCategorizedParties = (parties, categories) => {\n+    const categorizedParties = [];\n \n     if (categories && categories.length > 0) {\n-      categories.map(category => {\n-        if (category.categoryParties) {\n-          category.categoryParties.forEach(parties => {\n-            if (!transactionsFoundInCategories.includes(parties)) {\n-              transactionsFoundInCategories.push(parties);\n-            }\n-          });\n-        }\n+      categories.forEach(category => {","path":"src/components/Categorizer.js","position":43,"original_position":43,"commit_id":"00bda80373c9331ccee35c332b21a5c4e390a0b7","original_commit_id":"00bda80373c9331ccee35c332b21a5c4e390a0b7","user":{"login":"andersnylund","id":18005239,"node_id":"MDQ6VXNlcjE4MDA1MjM5","avatar_url":"https://avatars0.githubusercontent.com/u/18005239?v=4","gravatar_id":"","url":"https://api.github.com/users/andersnylund","html_url":"https://github.com/andersnylund","followers_url":"https://api.github.com/users/andersnylund/followers","following_url":"https://api.github.com/users/andersnylund/following{/other_user}","gists_url":"https://api.github.com/users/andersnylund/gists{/gist_id}","starred_url":"https://api.github.com/users/andersnylund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersnylund/subscriptions","organizations_url":"https://api.github.com/users/andersnylund/orgs","repos_url":"https://api.github.com/users/andersnylund/repos","events_url":"https://api.github.com/users/andersnylund/events{/privacy}","received_events_url":"https://api.github.com/users/andersnylund/received_events","type":"User","site_admin":false},"body":"No, I believe the problem was a check something like `if (!this.state.userState) { ...` in componentDidMount(), and there `userState` was always undefined and therefore it was always reset","created_at":"2018-10-21T16:32:27Z","updated_at":"2018-10-21T16:32:28Z","html_url":"https://github.com/andersnylund/simple-budget-app/pull/18#discussion_r226869178","pull_request_url":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls/18","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls/comments/226869178"},"html":{"href":"https://github.com/andersnylund/simple-budget-app/pull/18#discussion_r226869178"},"pull_request":{"href":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls/18"}},"in_reply_to_id":226853471},"pull_request":{"url":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls/18","id":224522462,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NTIyNDYy","html_url":"https://github.com/andersnylund/simple-budget-app/pull/18","diff_url":"https://github.com/andersnylund/simple-budget-app/pull/18.diff","patch_url":"https://github.com/andersnylund/simple-budget-app/pull/18.patch","issue_url":"https://api.github.com/repos/andersnylund/simple-budget-app/issues/18","number":18,"state":"open","locked":false,"title":"Refactor categorization - mainly renames and data structure changes","user":{"login":"andersnylund","id":18005239,"node_id":"MDQ6VXNlcjE4MDA1MjM5","avatar_url":"https://avatars0.githubusercontent.com/u/18005239?v=4","gravatar_id":"","url":"https://api.github.com/users/andersnylund","html_url":"https://github.com/andersnylund","followers_url":"https://api.github.com/users/andersnylund/followers","following_url":"https://api.github.com/users/andersnylund/following{/other_user}","gists_url":"https://api.github.com/users/andersnylund/gists{/gist_id}","starred_url":"https://api.github.com/users/andersnylund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersnylund/subscriptions","organizations_url":"https://api.github.com/users/andersnylund/orgs","repos_url":"https://api.github.com/users/andersnylund/repos","events_url":"https://api.github.com/users/andersnylund/events{/privacy}","received_events_url":"https://api.github.com/users/andersnylund/received_events","type":"User","site_admin":false},"body":"@mansour-ahmed I continued on your branch and did some refactoring and name changes. At this point the categorization functionality is working as you intended","created_at":"2018-10-21T07:00:35Z","updated_at":"2018-10-21T16:32:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3f3c65d3b841f33105699cee02a274ae3677dbc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls/18/commits","review_comments_url":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls/18/comments","review_comment_url":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andersnylund/simple-budget-app/issues/18/comments","statuses_url":"https://api.github.com/repos/andersnylund/simple-budget-app/statuses/00bda80373c9331ccee35c332b21a5c4e390a0b7","head":{"label":"andersnylund:refactored-categorization","ref":"refactored-categorization","sha":"00bda80373c9331ccee35c332b21a5c4e390a0b7","user":{"login":"andersnylund","id":18005239,"node_id":"MDQ6VXNlcjE4MDA1MjM5","avatar_url":"https://avatars0.githubusercontent.com/u/18005239?v=4","gravatar_id":"","url":"https://api.github.com/users/andersnylund","html_url":"https://github.com/andersnylund","followers_url":"https://api.github.com/users/andersnylund/followers","following_url":"https://api.github.com/users/andersnylund/following{/other_user}","gists_url":"https://api.github.com/users/andersnylund/gists{/gist_id}","starred_url":"https://api.github.com/users/andersnylund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersnylund/subscriptions","organizations_url":"https://api.github.com/users/andersnylund/orgs","repos_url":"https://api.github.com/users/andersnylund/repos","events_url":"https://api.github.com/users/andersnylund/events{/privacy}","received_events_url":"https://api.github.com/users/andersnylund/received_events","type":"User","site_admin":false},"repo":{"id":151368354,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEzNjgzNTQ=","name":"simple-budget-app","full_name":"andersnylund/simple-budget-app","private":false,"owner":{"login":"andersnylund","id":18005239,"node_id":"MDQ6VXNlcjE4MDA1MjM5","avatar_url":"https://avatars0.githubusercontent.com/u/18005239?v=4","gravatar_id":"","url":"https://api.github.com/users/andersnylund","html_url":"https://github.com/andersnylund","followers_url":"https://api.github.com/users/andersnylund/followers","following_url":"https://api.github.com/users/andersnylund/following{/other_user}","gists_url":"https://api.github.com/users/andersnylund/gists{/gist_id}","starred_url":"https://api.github.com/users/andersnylund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersnylund/subscriptions","organizations_url":"https://api.github.com/users/andersnylund/orgs","repos_url":"https://api.github.com/users/andersnylund/repos","events_url":"https://api.github.com/users/andersnylund/events{/privacy}","received_events_url":"https://api.github.com/users/andersnylund/received_events","type":"User","site_admin":false},"html_url":"https://github.com/andersnylund/simple-budget-app","description":"Just really simple budgeting","fork":false,"url":"https://api.github.com/repos/andersnylund/simple-budget-app","forks_url":"https://api.github.com/repos/andersnylund/simple-budget-app/forks","keys_url":"https://api.github.com/repos/andersnylund/simple-budget-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andersnylund/simple-budget-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andersnylund/simple-budget-app/teams","hooks_url":"https://api.github.com/repos/andersnylund/simple-budget-app/hooks","issue_events_url":"https://api.github.com/repos/andersnylund/simple-budget-app/issues/events{/number}","events_url":"https://api.github.com/repos/andersnylund/simple-budget-app/events","assignees_url":"https://api.github.com/repos/andersnylund/simple-budget-app/assignees{/user}","branches_url":"https://api.github.com/repos/andersnylund/simple-budget-app/branches{/branch}","tags_url":"https://api.github.com/repos/andersnylund/simple-budget-app/tags","blobs_url":"https://api.github.com/repos/andersnylund/simple-budget-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andersnylund/simple-budget-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andersnylund/simple-budget-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/andersnylund/simple-budget-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andersnylund/simple-budget-app/statuses/{sha}","languages_url":"https://api.github.com/repos/andersnylund/simple-budget-app/languages","stargazers_url":"https://api.github.com/repos/andersnylund/simple-budget-app/stargazers","contributors_url":"https://api.github.com/repos/andersnylund/simple-budget-app/contributors","subscribers_url":"https://api.github.com/repos/andersnylund/simple-budget-app/subscribers","subscription_url":"https://api.github.com/repos/andersnylund/simple-budget-app/subscription","commits_url":"https://api.github.com/repos/andersnylund/simple-budget-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/andersnylund/simple-budget-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/andersnylund/simple-budget-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/andersnylund/simple-budget-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/andersnylund/simple-budget-app/contents/{+path}","compare_url":"https://api.github.com/repos/andersnylund/simple-budget-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andersnylund/simple-budget-app/merges","archive_url":"https://api.github.com/repos/andersnylund/simple-budget-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andersnylund/simple-budget-app/downloads","issues_url":"https://api.github.com/repos/andersnylund/simple-budget-app/issues{/number}","pulls_url":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls{/number}","milestones_url":"https://api.github.com/repos/andersnylund/simple-budget-app/milestones{/number}","notifications_url":"https://api.github.com/repos/andersnylund/simple-budget-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andersnylund/simple-budget-app/labels{/name}","releases_url":"https://api.github.com/repos/andersnylund/simple-budget-app/releases{/id}","deployments_url":"https://api.github.com/repos/andersnylund/simple-budget-app/deployments","created_at":"2018-10-03T06:08:23Z","updated_at":"2018-10-19T16:36:29Z","pushed_at":"2018-10-21T08:19:15Z","git_url":"git://github.com/andersnylund/simple-budget-app.git","ssh_url":"git@github.com:andersnylund/simple-budget-app.git","clone_url":"https://github.com/andersnylund/simple-budget-app.git","svn_url":"https://github.com/andersnylund/simple-budget-app","homepage":"","size":579,"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":12,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"andersnylund:categorization","ref":"categorization","sha":"395ede9849bd416b4939feeb005c5fd984f0b374","user":{"login":"andersnylund","id":18005239,"node_id":"MDQ6VXNlcjE4MDA1MjM5","avatar_url":"https://avatars0.githubusercontent.com/u/18005239?v=4","gravatar_id":"","url":"https://api.github.com/users/andersnylund","html_url":"https://github.com/andersnylund","followers_url":"https://api.github.com/users/andersnylund/followers","following_url":"https://api.github.com/users/andersnylund/following{/other_user}","gists_url":"https://api.github.com/users/andersnylund/gists{/gist_id}","starred_url":"https://api.github.com/users/andersnylund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersnylund/subscriptions","organizations_url":"https://api.github.com/users/andersnylund/orgs","repos_url":"https://api.github.com/users/andersnylund/repos","events_url":"https://api.github.com/users/andersnylund/events{/privacy}","received_events_url":"https://api.github.com/users/andersnylund/received_events","type":"User","site_admin":false},"repo":{"id":151368354,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEzNjgzNTQ=","name":"simple-budget-app","full_name":"andersnylund/simple-budget-app","private":false,"owner":{"login":"andersnylund","id":18005239,"node_id":"MDQ6VXNlcjE4MDA1MjM5","avatar_url":"https://avatars0.githubusercontent.com/u/18005239?v=4","gravatar_id":"","url":"https://api.github.com/users/andersnylund","html_url":"https://github.com/andersnylund","followers_url":"https://api.github.com/users/andersnylund/followers","following_url":"https://api.github.com/users/andersnylund/following{/other_user}","gists_url":"https://api.github.com/users/andersnylund/gists{/gist_id}","starred_url":"https://api.github.com/users/andersnylund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersnylund/subscriptions","organizations_url":"https://api.github.com/users/andersnylund/orgs","repos_url":"https://api.github.com/users/andersnylund/repos","events_url":"https://api.github.com/users/andersnylund/events{/privacy}","received_events_url":"https://api.github.com/users/andersnylund/received_events","type":"User","site_admin":false},"html_url":"https://github.com/andersnylund/simple-budget-app","description":"Just really simple budgeting","fork":false,"url":"https://api.github.com/repos/andersnylund/simple-budget-app","forks_url":"https://api.github.com/repos/andersnylund/simple-budget-app/forks","keys_url":"https://api.github.com/repos/andersnylund/simple-budget-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andersnylund/simple-budget-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andersnylund/simple-budget-app/teams","hooks_url":"https://api.github.com/repos/andersnylund/simple-budget-app/hooks","issue_events_url":"https://api.github.com/repos/andersnylund/simple-budget-app/issues/events{/number}","events_url":"https://api.github.com/repos/andersnylund/simple-budget-app/events","assignees_url":"https://api.github.com/repos/andersnylund/simple-budget-app/assignees{/user}","branches_url":"https://api.github.com/repos/andersnylund/simple-budget-app/branches{/branch}","tags_url":"https://api.github.com/repos/andersnylund/simple-budget-app/tags","blobs_url":"https://api.github.com/repos/andersnylund/simple-budget-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andersnylund/simple-budget-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andersnylund/simple-budget-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/andersnylund/simple-budget-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andersnylund/simple-budget-app/statuses/{sha}","languages_url":"https://api.github.com/repos/andersnylund/simple-budget-app/languages","stargazers_url":"https://api.github.com/repos/andersnylund/simple-budget-app/stargazers","contributors_url":"https://api.github.com/repos/andersnylund/simple-budget-app/contributors","subscribers_url":"https://api.github.com/repos/andersnylund/simple-budget-app/subscribers","subscription_url":"https://api.github.com/repos/andersnylund/simple-budget-app/subscription","commits_url":"https://api.github.com/repos/andersnylund/simple-budget-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/andersnylund/simple-budget-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/andersnylund/simple-budget-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/andersnylund/simple-budget-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/andersnylund/simple-budget-app/contents/{+path}","compare_url":"https://api.github.com/repos/andersnylund/simple-budget-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andersnylund/simple-budget-app/merges","archive_url":"https://api.github.com/repos/andersnylund/simple-budget-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andersnylund/simple-budget-app/downloads","issues_url":"https://api.github.com/repos/andersnylund/simple-budget-app/issues{/number}","pulls_url":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls{/number}","milestones_url":"https://api.github.com/repos/andersnylund/simple-budget-app/milestones{/number}","notifications_url":"https://api.github.com/repos/andersnylund/simple-budget-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andersnylund/simple-budget-app/labels{/name}","releases_url":"https://api.github.com/repos/andersnylund/simple-budget-app/releases{/id}","deployments_url":"https://api.github.com/repos/andersnylund/simple-budget-app/deployments","created_at":"2018-10-03T06:08:23Z","updated_at":"2018-10-19T16:36:29Z","pushed_at":"2018-10-21T08:19:15Z","git_url":"git://github.com/andersnylund/simple-budget-app.git","ssh_url":"git@github.com:andersnylund/simple-budget-app.git","clone_url":"https://github.com/andersnylund/simple-budget-app.git","svn_url":"https://github.com/andersnylund/simple-budget-app","homepage":"","size":579,"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":12,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls/18"},"html":{"href":"https://github.com/andersnylund/simple-budget-app/pull/18"},"issue":{"href":"https://api.github.com/repos/andersnylund/simple-budget-app/issues/18"},"comments":{"href":"https://api.github.com/repos/andersnylund/simple-budget-app/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andersnylund/simple-budget-app/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/andersnylund/simple-budget-app/statuses/00bda80373c9331ccee35c332b21a5c4e390a0b7"}},"author_association":"OWNER"}}
{"actor":{"display_login":"andersnylund"}}