{"action":"created","comment":{"url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/comments/84155037","pull_request_review_id":4950319,"id":84155037,"diff_hunk":"@@ -0,0 +1,116 @@\n+/**\n+ * Using Rails-like standard naming convention for endpoints.\n+ * GET     /api/grocery_lists              ->  index\n+ * POST    /api/grocery_lists              ->  create\n+ * GET     /api/grocery_lists/:id          ->  show\n+ * PUT     /api/grocery_lists/:id          ->  upsert\n+ * PATCH   /api/grocery_lists/:id          ->  patch\n+ * DELETE  /api/grocery_lists/:id          ->  destroy\n+ */\n+\n+'use strict';\n+\n+import jsonpatch from 'fast-json-patch';\n+import GroceryList from './grocery_list.model';\n+\n+function respondWithResult(res, statusCode) {\n+  statusCode = statusCode || 200;\n+  return function (entity) {\n+    if (entity) {\n+      return res.status(statusCode).json(entity);\n+    }\n+    return null;\n+  };\n+}\n+\n+function patchUpdates(patches) {\n+  return function (entity) {\n+    try {\n+      jsonpatch.apply(entity, patches, /*validate*/ true);\n+    } catch (err) {\n+      return Promise.reject(err);\n+    }\n+\n+    return entity.save();\n+  };\n+}\n+\n+function removeEntity() {\n+  return function (entity) {","path":"src/node_modules/server/api/grocery_list/grocery_list.controller.js","position":39,"original_position":39,"commit_id":"d1399326b30fab21e685248b6b80f064ab12a0d6","original_commit_id":"d1399326b30fab21e685248b6b80f064ab12a0d6","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":"Expected to return a value at the end of this function        consistent-return<br>Missing function expression name                              func-names<br>Unexpected space before function parentheses                  space-before-function-paren","created_at":"2016-10-19T20:03:09Z","updated_at":"2016-10-19T20:03:09Z","html_url":"https://github.com/DancingMonkeyTeam/bitetracker/pull/10#discussion_r84155037","pull_request_url":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/DancingMonkeyTeam/bitetracker/pulls/comments/84155037"},"html":{"href":"https://github.com/DancingMonkeyTeam/bitetracker/pull/10#discussion_r84155037"},"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-19T20:03:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6780460557fced95c7c06029e061072ce5f8ffc","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/d1399326b30fab21e685248b6b80f064ab12a0d6","head":{"label":"DancingMonkeyTeam:feature/groceries-api-connect","ref":"feature/groceries-api-connect","sha":"d1399326b30fab21e685248b6b80f064ab12a0d6","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-19T20:02:56Z","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":21660,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"DancingMonkeyTeam:master","ref":"master","sha":"e6596bf5ea56d34fda0d34e4ac31067fbe163bf0","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-19T20:02:56Z","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":21660,"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":4,"forks":0,"open_issues":4,"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/d1399326b30fab21e685248b6b80f064ab12a0d6"}}}}
{"actor":{"display_login":"houndci-bot"}}