{"action":"created","comment":{"url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/comments/84579892","pull_request_review_id":5351809,"id":84579892,"diff_hunk":"@@ -1,79 +1,120 @@\n-import alt from 'alt-instance'\n+import flow from 'lodash/fp/flow';\n+import clone from 'lodash/clone';\n+import values from 'lodash/values';\n+import assign from 'lodash/assign';\n+import set from 'lodash/fp/set';\n+import unset from 'lodash/fp/unset'\n+import alt from 'alt-instance';\n \n import GroceryListActions from 'actions/GroceryListActions'\n import GroceryListSource from 'sources/GroceryListSource'\n \n+const updateList = (list, updater) => flow(\n+  clone,\n+  updater\n+)(list);\n+\n class GroceryListStore {\n+  static config = {\n+    getState(currentState) {\n+      return assign({}, currentState, {lists: values(currentState.lists)});\n+    }\n+  };\n+\n   constructor() {\n-    this.lists = [];\n+    this.lists = {};\n     this.err = null;\n-\n-    let { FETCH_LISTS, FETCH_SUCCESS, FETCH_FAILURE, ADD_LIST, REMOVE_LIST, ADD_ITEM, REMOVE_ITEM, TOGGLE_ITEM } = GroceryListActions;\n+    this.loading = false;\n \n     this.bindListeners({\n-      handleFetchLists:   FETCH_LISTS,\n-      handleFetchSuccess: FETCH_SUCCESS,\n-      handleFetchFailed:  FETCH_FAILURE,\n-      handleAddList:      ADD_LIST,\n-      handleRemoveList:   REMOVE_LIST,\n-      handleAddItem:      ADD_ITEM,\n-      handleRemoveItem:   REMOVE_ITEM,\n-      handleToggleItem:   TOGGLE_ITEM\n+      handleFetchLists: GroceryListActions.FETCH_LISTS,\n+      handleFetchSuccess: GroceryListActions.FETCH_SUCCESS,\n+      handleFailure: [\n+        GroceryListActions.FETCH_FAILURE,\n+        GroceryListActions.CREATE_FAILURE,\n+        GroceryListActions.REMOVE_FAILURE,\n+      ],\n+      handleCreateSuccess: GroceryListActions.CREATE_SUCCESS,\n+      handleUpdateSuccess: GroceryListActions.UPDATE_SUCCESS,\n+      handleRemoveSuccess: GroceryListActions.REMOVE_SUCCESS,\n+      handleCreateList: GroceryListActions.CREATE_LIST,\n+      handleRemoveList: GroceryListActions.REMOVE_LIST,\n+      handleCreateItem: GroceryListActions.CREATE_ITEM,\n+      handleRemoveItem: GroceryListActions.REMOVE_ITEM,\n+      handleToggleItem: GroceryListActions.TOGGLE_ITEM,\n     });\n-  }\n \n-  _getListIndex(listId) {\n-    return this.lists.findIndex(list => list._id === listId);\n+    this.exportPublicMethods({list: this.list.bind(this)})","path":"src/node_modules/client/app/stores/GroceryListStore.js","position":62,"original_position":62,"commit_id":"56d3c540b233eba3f13b9654abc495e8e6d6b583","original_commit_id":"56d3c540b233eba3f13b9654abc495e8e6d6b583","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","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":"Missing semicolon                                                                    semi","created_at":"2016-10-22T16:17:03Z","updated_at":"2016-10-22T16:17:03Z","html_url":"https://github.com/DancingMonkeyTeam/bitetracker/pull/10#discussion_r84579892","pull_request_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/comments/84579892"},"html":{"href":"https://github.com/DancingMonkeyTeam/bitetracker/pull/10#discussion_r84579892"},"pull_request":{"href":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/10","id":88564593,"html_url":"https://github.com/DancingMonkeyTeam/bitetracker/pull/10","diff_url":"https://github.com/DancingMonkeyTeam/bitetracker/pull/10.diff","patch_url":"https://github.com/DancingMonkeyTeam/bitetracker/pull/10.patch","issue_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/issues/10","number":10,"state":"open","locked":false,"title":"[PPBITETRAC-139] Connect groceries view to API endpoint","user":{"login":"quirk0o","id":5123725,"avatar_url":"https://avatars.githubusercontent.com/u/5123725?v=3","gravatar_id":"","url":"https://api.github.com/users/quirk0o","html_url":"https://github.com/quirk0o","followers_url":"https://api.github.com/users/quirk0o/followers","following_url":"https://api.github.com/users/quirk0o/following{/other_user}","gists_url":"https://api.github.com/users/quirk0o/gists{/gist_id}","starred_url":"https://api.github.com/users/quirk0o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quirk0o/subscriptions","organizations_url":"https://api.github.com/users/quirk0o/orgs","repos_url":"https://api.github.com/users/quirk0o/repos","events_url":"https://api.github.com/users/quirk0o/events{/privacy}","received_events_url":"https://api.github.com/users/quirk0o/received_events","type":"User","site_admin":false},"body":"https://jira.iisg.agh.edu.pl/browse/PPBITETRAC-139\r\n\r\n@BlueEyedHush @shnek ","created_at":"2016-10-09T01:24:59Z","updated_at":"2016-10-22T16:17:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fab744197cd737da18ecb208237c1ba73d18fd9c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/10/commits","review_comments_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/10/comments","review_comment_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/issues/10/comments","statuses_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/statuses/56d3c540b233eba3f13b9654abc495e8e6d6b583","head":{"label":"DancingMonkeyTeam:feature/groceries-api-connect","ref":"feature/groceries-api-connect","sha":"56d3c540b233eba3f13b9654abc495e8e6d6b583","user":{"login":"DancingMonkeyTeam","id":18415404,"avatar_url":"https://avatars.githubusercontent.com/u/18415404?v=3","gravatar_id":"","url":"https://api.github.com/users/DancingMonkeyTeam","html_url":"https://github.com/DancingMonkeyTeam","followers_url":"https://api.github.com/users/DancingMonkeyTeam/followers","following_url":"https://api.github.com/users/DancingMonkeyTeam/following{/other_user}","gists_url":"https://api.github.com/users/DancingMonkeyTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/DancingMonkeyTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DancingMonkeyTeam/subscriptions","organizations_url":"https://api.github.com/users/DancingMonkeyTeam/orgs","repos_url":"https://api.github.com/users/DancingMonkeyTeam/repos","events_url":"https://api.github.com/users/DancingMonkeyTeam/events{/privacy}","received_events_url":"https://api.github.com/users/DancingMonkeyTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":56049664,"name":"bitetracker","full_name":"DancingMonkeyTeam/bitetracker","owner":{"login":"DancingMonkeyTeam","id":18415404,"avatar_url":"https://avatars.githubusercontent.com/u/18415404?v=3","gravatar_id":"","url":"https://api.github.com/users/DancingMonkeyTeam","html_url":"https://github.com/DancingMonkeyTeam","followers_url":"https://api.github.com/users/DancingMonkeyTeam/followers","following_url":"https://api.github.com/users/DancingMonkeyTeam/following{/other_user}","gists_url":"https://api.github.com/users/DancingMonkeyTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/DancingMonkeyTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DancingMonkeyTeam/subscriptions","organizations_url":"https://api.github.com/users/DancingMonkeyTeam/orgs","repos_url":"https://api.github.com/users/DancingMonkeyTeam/repos","events_url":"https://api.github.com/users/DancingMonkeyTeam/events{/privacy}","received_events_url":"https://api.github.com/users/DancingMonkeyTeam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DancingMonkeyTeam/bitetracker","description":null,"fork":false,"url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker","forks_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/forks","keys_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/teams","hooks_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/hooks","issue_events_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/issues/events{/number}","events_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/events","assignees_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/assignees{/user}","branches_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/branches{/branch}","tags_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/tags","blobs_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/statuses/{sha}","languages_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/languages","stargazers_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/stargazers","contributors_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/contributors","subscribers_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/subscribers","subscription_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/subscription","commits_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/contents/{+path}","compare_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/merges","archive_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/downloads","issues_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/issues{/number}","pulls_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls{/number}","milestones_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/milestones{/number}","notifications_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/labels{/name}","releases_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/releases{/id}","deployments_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/deployments","created_at":"2016-04-12T09:29:58Z","updated_at":"2016-04-12T09:30:34Z","pushed_at":"2016-10-22T16:16:43Z","git_url":"git://github.com/DancingMonkeyTeam/bitetracker.git","ssh_url":"git@github.com:DancingMonkeyTeam/bitetracker.git","clone_url":"https://github.com/DancingMonkeyTeam/bitetracker.git","svn_url":"https://github.com/DancingMonkeyTeam/bitetracker","homepage":null,"size":21672,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"DancingMonkeyTeam:master","ref":"master","sha":"a72b7eae627761ccb5657cbbfdb964a4c17f88b0","user":{"login":"DancingMonkeyTeam","id":18415404,"avatar_url":"https://avatars.githubusercontent.com/u/18415404?v=3","gravatar_id":"","url":"https://api.github.com/users/DancingMonkeyTeam","html_url":"https://github.com/DancingMonkeyTeam","followers_url":"https://api.github.com/users/DancingMonkeyTeam/followers","following_url":"https://api.github.com/users/DancingMonkeyTeam/following{/other_user}","gists_url":"https://api.github.com/users/DancingMonkeyTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/DancingMonkeyTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DancingMonkeyTeam/subscriptions","organizations_url":"https://api.github.com/users/DancingMonkeyTeam/orgs","repos_url":"https://api.github.com/users/DancingMonkeyTeam/repos","events_url":"https://api.github.com/users/DancingMonkeyTeam/events{/privacy}","received_events_url":"https://api.github.com/users/DancingMonkeyTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":56049664,"name":"bitetracker","full_name":"DancingMonkeyTeam/bitetracker","owner":{"login":"DancingMonkeyTeam","id":18415404,"avatar_url":"https://avatars.githubusercontent.com/u/18415404?v=3","gravatar_id":"","url":"https://api.github.com/users/DancingMonkeyTeam","html_url":"https://github.com/DancingMonkeyTeam","followers_url":"https://api.github.com/users/DancingMonkeyTeam/followers","following_url":"https://api.github.com/users/DancingMonkeyTeam/following{/other_user}","gists_url":"https://api.github.com/users/DancingMonkeyTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/DancingMonkeyTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DancingMonkeyTeam/subscriptions","organizations_url":"https://api.github.com/users/DancingMonkeyTeam/orgs","repos_url":"https://api.github.com/users/DancingMonkeyTeam/repos","events_url":"https://api.github.com/users/DancingMonkeyTeam/events{/privacy}","received_events_url":"https://api.github.com/users/DancingMonkeyTeam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DancingMonkeyTeam/bitetracker","description":null,"fork":false,"url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker","forks_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/forks","keys_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/teams","hooks_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/hooks","issue_events_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/issues/events{/number}","events_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/events","assignees_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/assignees{/user}","branches_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/branches{/branch}","tags_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/tags","blobs_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/statuses/{sha}","languages_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/languages","stargazers_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/stargazers","contributors_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/contributors","subscribers_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/subscribers","subscription_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/subscription","commits_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/contents/{+path}","compare_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/merges","archive_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/downloads","issues_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/issues{/number}","pulls_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls{/number}","milestones_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/milestones{/number}","notifications_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/labels{/name}","releases_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/releases{/id}","deployments_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/deployments","created_at":"2016-04-12T09:29:58Z","updated_at":"2016-04-12T09:30:34Z","pushed_at":"2016-10-22T16:16:43Z","git_url":"git://github.com/DancingMonkeyTeam/bitetracker.git","ssh_url":"git@github.com:DancingMonkeyTeam/bitetracker.git","clone_url":"https://github.com/DancingMonkeyTeam/bitetracker.git","svn_url":"https://github.com/DancingMonkeyTeam/bitetracker","homepage":null,"size":21672,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/10"},"html":{"href":"https://github.com/DancingMonkeyTeam/bitetracker/pull/10"},"issue":{"href":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/issues/10"},"comments":{"href":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/statuses/56d3c540b233eba3f13b9654abc495e8e6d6b583"}}}}
{"actor":{"display_login":"houndci-bot"}}