{"action":"created","comment":{"url":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls/comments/125147893","pull_request_review_id":47515402,"id":125147893,"diff_hunk":"@@ -0,0 +1,54 @@\n+const assert = require('chai').assert;\n+const request = require('request');\n+\n+const app = require('../../server');\n+const Food = require('../../lib/models/food');\n+\n+describe('GET requests', () => {\n+  before(done => {\n+    this.port = 9876;\n+    this.server = app.listen(this.port, (error, result) => {\n+      if (error) { done(error); }\n+\n+      done();\n+    });\n+  });\n+\n+  beforeEach(done => {","path":"test/endpoints/get-test.js","position":17,"original_position":17,"commit_id":"28f5fa859beeaea79cded4bf8a958b68ad127163","original_commit_id":"28f5fa859beeaea79cded4bf8a958b68ad127163","user":{"login":"samlandfried","id":14250133,"avatar_url":"https://avatars2.githubusercontent.com/u/14250133?v=3","gravatar_id":"","url":"https://api.github.com/users/samlandfried","html_url":"https://github.com/samlandfried","followers_url":"https://api.github.com/users/samlandfried/followers","following_url":"https://api.github.com/users/samlandfried/following{/other_user}","gists_url":"https://api.github.com/users/samlandfried/gists{/gist_id}","starred_url":"https://api.github.com/users/samlandfried/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samlandfried/subscriptions","organizations_url":"https://api.github.com/users/samlandfried/orgs","repos_url":"https://api.github.com/users/samlandfried/repos","events_url":"https://api.github.com/users/samlandfried/events{/privacy}","received_events_url":"https://api.github.com/users/samlandfried/received_events","type":"User","site_admin":false},"body":"@tmikeschu This feels so wrong (Nesting each DB insertion in a separate callback)... Is this what the async library you were talking about handles? ","created_at":"2017-06-30T23:49:58Z","updated_at":"2017-06-30T23:49:58Z","html_url":"https://github.com/samlandfried/quantified-self-backend/pull/4#discussion_r125147893","pull_request_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls/comments/125147893"},"html":{"href":"https://github.com/samlandfried/quantified-self-backend/pull/4#discussion_r125147893"},"pull_request":{"href":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls/4","id":128467559,"html_url":"https://github.com/samlandfried/quantified-self-backend/pull/4","diff_url":"https://github.com/samlandfried/quantified-self-backend/pull/4.diff","patch_url":"https://github.com/samlandfried/quantified-self-backend/pull/4.patch","issue_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/issues/4","number":4,"state":"open","locked":false,"title":"Endpoints","user":{"login":"samlandfried","id":14250133,"avatar_url":"https://avatars2.githubusercontent.com/u/14250133?v=3","gravatar_id":"","url":"https://api.github.com/users/samlandfried","html_url":"https://github.com/samlandfried","followers_url":"https://api.github.com/users/samlandfried/followers","following_url":"https://api.github.com/users/samlandfried/following{/other_user}","gists_url":"https://api.github.com/users/samlandfried/gists{/gist_id}","starred_url":"https://api.github.com/users/samlandfried/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samlandfried/subscriptions","organizations_url":"https://api.github.com/users/samlandfried/orgs","repos_url":"https://api.github.com/users/samlandfried/repos","events_url":"https://api.github.com/users/samlandfried/events{/privacy}","received_events_url":"https://api.github.com/users/samlandfried/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-30T23:48:41Z","updated_at":"2017-06-30T23:49:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aeebd3f029d9bfd7e53519165b6a432223a82f11","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls/4/commits","review_comments_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls/4/comments","review_comment_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/issues/4/comments","statuses_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/statuses/28f5fa859beeaea79cded4bf8a958b68ad127163","head":{"label":"samlandfried:endpoints","ref":"endpoints","sha":"28f5fa859beeaea79cded4bf8a958b68ad127163","user":{"login":"samlandfried","id":14250133,"avatar_url":"https://avatars2.githubusercontent.com/u/14250133?v=3","gravatar_id":"","url":"https://api.github.com/users/samlandfried","html_url":"https://github.com/samlandfried","followers_url":"https://api.github.com/users/samlandfried/followers","following_url":"https://api.github.com/users/samlandfried/following{/other_user}","gists_url":"https://api.github.com/users/samlandfried/gists{/gist_id}","starred_url":"https://api.github.com/users/samlandfried/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samlandfried/subscriptions","organizations_url":"https://api.github.com/users/samlandfried/orgs","repos_url":"https://api.github.com/users/samlandfried/repos","events_url":"https://api.github.com/users/samlandfried/events{/privacy}","received_events_url":"https://api.github.com/users/samlandfried/received_events","type":"User","site_admin":false},"repo":{"id":95706286,"name":"quantified-self-backend","full_name":"samlandfried/quantified-self-backend","owner":{"login":"samlandfried","id":14250133,"avatar_url":"https://avatars2.githubusercontent.com/u/14250133?v=3","gravatar_id":"","url":"https://api.github.com/users/samlandfried","html_url":"https://github.com/samlandfried","followers_url":"https://api.github.com/users/samlandfried/followers","following_url":"https://api.github.com/users/samlandfried/following{/other_user}","gists_url":"https://api.github.com/users/samlandfried/gists{/gist_id}","starred_url":"https://api.github.com/users/samlandfried/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samlandfried/subscriptions","organizations_url":"https://api.github.com/users/samlandfried/orgs","repos_url":"https://api.github.com/users/samlandfried/repos","events_url":"https://api.github.com/users/samlandfried/events{/privacy}","received_events_url":"https://api.github.com/users/samlandfried/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/samlandfried/quantified-self-backend","description":null,"fork":false,"url":"https://api.github.com/repos/samlandfried/quantified-self-backend","forks_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/forks","keys_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/teams","hooks_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/hooks","issue_events_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/issues/events{/number}","events_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/events","assignees_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/assignees{/user}","branches_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/branches{/branch}","tags_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/tags","blobs_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/languages","stargazers_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/stargazers","contributors_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/contributors","subscribers_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/subscribers","subscription_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/subscription","commits_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/contents/{+path}","compare_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/merges","archive_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/downloads","issues_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/issues{/number}","pulls_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/labels{/name}","releases_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/releases{/id}","deployments_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/deployments","created_at":"2017-06-28T19:54:19Z","updated_at":"2017-06-30T19:42:21Z","pushed_at":"2017-06-30T23:48:42Z","git_url":"git://github.com/samlandfried/quantified-self-backend.git","ssh_url":"git@github.com:samlandfried/quantified-self-backend.git","clone_url":"https://github.com/samlandfried/quantified-self-backend.git","svn_url":"https://github.com/samlandfried/quantified-self-backend","homepage":null,"size":32,"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,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"samlandfried:master","ref":"master","sha":"5d78746d10c7ef23ed34580066f3e1ed566195dc","user":{"login":"samlandfried","id":14250133,"avatar_url":"https://avatars2.githubusercontent.com/u/14250133?v=3","gravatar_id":"","url":"https://api.github.com/users/samlandfried","html_url":"https://github.com/samlandfried","followers_url":"https://api.github.com/users/samlandfried/followers","following_url":"https://api.github.com/users/samlandfried/following{/other_user}","gists_url":"https://api.github.com/users/samlandfried/gists{/gist_id}","starred_url":"https://api.github.com/users/samlandfried/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samlandfried/subscriptions","organizations_url":"https://api.github.com/users/samlandfried/orgs","repos_url":"https://api.github.com/users/samlandfried/repos","events_url":"https://api.github.com/users/samlandfried/events{/privacy}","received_events_url":"https://api.github.com/users/samlandfried/received_events","type":"User","site_admin":false},"repo":{"id":95706286,"name":"quantified-self-backend","full_name":"samlandfried/quantified-self-backend","owner":{"login":"samlandfried","id":14250133,"avatar_url":"https://avatars2.githubusercontent.com/u/14250133?v=3","gravatar_id":"","url":"https://api.github.com/users/samlandfried","html_url":"https://github.com/samlandfried","followers_url":"https://api.github.com/users/samlandfried/followers","following_url":"https://api.github.com/users/samlandfried/following{/other_user}","gists_url":"https://api.github.com/users/samlandfried/gists{/gist_id}","starred_url":"https://api.github.com/users/samlandfried/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samlandfried/subscriptions","organizations_url":"https://api.github.com/users/samlandfried/orgs","repos_url":"https://api.github.com/users/samlandfried/repos","events_url":"https://api.github.com/users/samlandfried/events{/privacy}","received_events_url":"https://api.github.com/users/samlandfried/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/samlandfried/quantified-self-backend","description":null,"fork":false,"url":"https://api.github.com/repos/samlandfried/quantified-self-backend","forks_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/forks","keys_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/teams","hooks_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/hooks","issue_events_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/issues/events{/number}","events_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/events","assignees_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/assignees{/user}","branches_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/branches{/branch}","tags_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/tags","blobs_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/languages","stargazers_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/stargazers","contributors_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/contributors","subscribers_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/subscribers","subscription_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/subscription","commits_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/contents/{+path}","compare_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/merges","archive_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/downloads","issues_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/issues{/number}","pulls_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/labels{/name}","releases_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/releases{/id}","deployments_url":"https://api.github.com/repos/samlandfried/quantified-self-backend/deployments","created_at":"2017-06-28T19:54:19Z","updated_at":"2017-06-30T19:42:21Z","pushed_at":"2017-06-30T23:48:42Z","git_url":"git://github.com/samlandfried/quantified-self-backend.git","ssh_url":"git@github.com:samlandfried/quantified-self-backend.git","clone_url":"https://github.com/samlandfried/quantified-self-backend.git","svn_url":"https://github.com/samlandfried/quantified-self-backend","homepage":null,"size":32,"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,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls/4"},"html":{"href":"https://github.com/samlandfried/quantified-self-backend/pull/4"},"issue":{"href":"https://api.github.com/repos/samlandfried/quantified-self-backend/issues/4"},"comments":{"href":"https://api.github.com/repos/samlandfried/quantified-self-backend/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/samlandfried/quantified-self-backend/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/samlandfried/quantified-self-backend/statuses/28f5fa859beeaea79cded4bf8a958b68ad127163"}}}}
{"actor":{"display_login":"samlandfried"}}