{"action":"created","comment":{"url":"https://api.github.com/repos/bretfunk/quantified-self/pulls/comments/143081462","pull_request_review_id":67542096,"id":143081462,"diff_hunk":"@@ -1,3 +1,4 @@\n module.exports = function() {\n-  return \"https://arcane-depths-57821.herokuapp.com/\";\n+  //return \"https://arcane-depths-57821.herokuapp.com/\";\n+  return \"http://localhost:3000/\";","path":"lib/heroku-url.js","position":4,"original_position":4,"commit_id":"5bac4cc3ce10492157af456004ded770db0f96ec","original_commit_id":"5bac4cc3ce10492157af456004ded770db0f96ec","user":{"login":"wratterman","id":25143074,"avatar_url":"https://avatars0.githubusercontent.com/u/25143074?v=4","gravatar_id":"","url":"https://api.github.com/users/wratterman","html_url":"https://github.com/wratterman","followers_url":"https://api.github.com/users/wratterman/followers","following_url":"https://api.github.com/users/wratterman/following{/other_user}","gists_url":"https://api.github.com/users/wratterman/gists{/gist_id}","starred_url":"https://api.github.com/users/wratterman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wratterman/subscriptions","organizations_url":"https://api.github.com/users/wratterman/orgs","repos_url":"https://api.github.com/users/wratterman/repos","events_url":"https://api.github.com/users/wratterman/events{/privacy}","received_events_url":"https://api.github.com/users/wratterman/received_events","type":"User","site_admin":false},"body":"Good job on keeping this separate. We can make the switch back to the heroku server when we need, but while we are testing through I like just losing local host to not disrupt our production db","created_at":"2017-10-05T23:27:18Z","updated_at":"2017-10-05T23:27:18Z","html_url":"https://github.com/bretfunk/quantified-self/pull/3#discussion_r143081462","pull_request_url":"https://api.github.com/repos/bretfunk/quantified-self/pulls/3","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/bretfunk/quantified-self/pulls/comments/143081462"},"html":{"href":"https://github.com/bretfunk/quantified-self/pull/3#discussion_r143081462"},"pull_request":{"href":"https://api.github.com/repos/bretfunk/quantified-self/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/bretfunk/quantified-self/pulls/3","id":145042551,"html_url":"https://github.com/bretfunk/quantified-self/pull/3","diff_url":"https://github.com/bretfunk/quantified-self/pull/3.diff","patch_url":"https://github.com/bretfunk/quantified-self/pull/3.patch","issue_url":"https://api.github.com/repos/bretfunk/quantified-self/issues/3","number":3,"state":"open","locked":false,"title":"Delete button","user":{"login":"bretfunk","id":2019012,"avatar_url":"https://avatars3.githubusercontent.com/u/2019012?v=4","gravatar_id":"","url":"https://api.github.com/users/bretfunk","html_url":"https://github.com/bretfunk","followers_url":"https://api.github.com/users/bretfunk/followers","following_url":"https://api.github.com/users/bretfunk/following{/other_user}","gists_url":"https://api.github.com/users/bretfunk/gists{/gist_id}","starred_url":"https://api.github.com/users/bretfunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bretfunk/subscriptions","organizations_url":"https://api.github.com/users/bretfunk/orgs","repos_url":"https://api.github.com/users/bretfunk/repos","events_url":"https://api.github.com/users/bretfunk/events{/privacy}","received_events_url":"https://api.github.com/users/bretfunk/received_events","type":"User","site_admin":false},"body":"@wratterman and I added a working delete button.  We added a listener at the end of the GET (all foods) method to listen for any presses of the delete button.  Once a user presses a delete button the jQuery ajax method runs a delete api call to the food that is numbered with the event.target.id.  We then hide that specific row using jQuery so the page doesn't need to refresh for the user to see the deleted row leave the page.  Our code is below:\r\n\r\n<img width=\"510\" alt=\"screen shot 2017-10-05 at 5 10 58 pm\" src=\"https://user-images.githubusercontent.com/2019012/31256510-432fb536-a9f0-11e7-8a58-8178b2cb9efe.png\">\r\n","created_at":"2017-10-05T23:15:15Z","updated_at":"2017-10-05T23:27:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afee352c626796a2301dfbb158a6a504b5dcfa79","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/bretfunk/quantified-self/pulls/3/commits","review_comments_url":"https://api.github.com/repos/bretfunk/quantified-self/pulls/3/comments","review_comment_url":"https://api.github.com/repos/bretfunk/quantified-self/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bretfunk/quantified-self/issues/3/comments","statuses_url":"https://api.github.com/repos/bretfunk/quantified-self/statuses/5bac4cc3ce10492157af456004ded770db0f96ec","head":{"label":"bretfunk:delete_button_food","ref":"delete_button_food","sha":"5bac4cc3ce10492157af456004ded770db0f96ec","user":{"login":"bretfunk","id":2019012,"avatar_url":"https://avatars3.githubusercontent.com/u/2019012?v=4","gravatar_id":"","url":"https://api.github.com/users/bretfunk","html_url":"https://github.com/bretfunk","followers_url":"https://api.github.com/users/bretfunk/followers","following_url":"https://api.github.com/users/bretfunk/following{/other_user}","gists_url":"https://api.github.com/users/bretfunk/gists{/gist_id}","starred_url":"https://api.github.com/users/bretfunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bretfunk/subscriptions","organizations_url":"https://api.github.com/users/bretfunk/orgs","repos_url":"https://api.github.com/users/bretfunk/repos","events_url":"https://api.github.com/users/bretfunk/events{/privacy}","received_events_url":"https://api.github.com/users/bretfunk/received_events","type":"User","site_admin":false},"repo":{"id":105814645,"name":"quantified-self","full_name":"bretfunk/quantified-self","owner":{"login":"bretfunk","id":2019012,"avatar_url":"https://avatars3.githubusercontent.com/u/2019012?v=4","gravatar_id":"","url":"https://api.github.com/users/bretfunk","html_url":"https://github.com/bretfunk","followers_url":"https://api.github.com/users/bretfunk/followers","following_url":"https://api.github.com/users/bretfunk/following{/other_user}","gists_url":"https://api.github.com/users/bretfunk/gists{/gist_id}","starred_url":"https://api.github.com/users/bretfunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bretfunk/subscriptions","organizations_url":"https://api.github.com/users/bretfunk/orgs","repos_url":"https://api.github.com/users/bretfunk/repos","events_url":"https://api.github.com/users/bretfunk/events{/privacy}","received_events_url":"https://api.github.com/users/bretfunk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bretfunk/quantified-self","description":null,"fork":false,"url":"https://api.github.com/repos/bretfunk/quantified-self","forks_url":"https://api.github.com/repos/bretfunk/quantified-self/forks","keys_url":"https://api.github.com/repos/bretfunk/quantified-self/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bretfunk/quantified-self/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bretfunk/quantified-self/teams","hooks_url":"https://api.github.com/repos/bretfunk/quantified-self/hooks","issue_events_url":"https://api.github.com/repos/bretfunk/quantified-self/issues/events{/number}","events_url":"https://api.github.com/repos/bretfunk/quantified-self/events","assignees_url":"https://api.github.com/repos/bretfunk/quantified-self/assignees{/user}","branches_url":"https://api.github.com/repos/bretfunk/quantified-self/branches{/branch}","tags_url":"https://api.github.com/repos/bretfunk/quantified-self/tags","blobs_url":"https://api.github.com/repos/bretfunk/quantified-self/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bretfunk/quantified-self/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bretfunk/quantified-self/git/refs{/sha}","trees_url":"https://api.github.com/repos/bretfunk/quantified-self/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bretfunk/quantified-self/statuses/{sha}","languages_url":"https://api.github.com/repos/bretfunk/quantified-self/languages","stargazers_url":"https://api.github.com/repos/bretfunk/quantified-self/stargazers","contributors_url":"https://api.github.com/repos/bretfunk/quantified-self/contributors","subscribers_url":"https://api.github.com/repos/bretfunk/quantified-self/subscribers","subscription_url":"https://api.github.com/repos/bretfunk/quantified-self/subscription","commits_url":"https://api.github.com/repos/bretfunk/quantified-self/commits{/sha}","git_commits_url":"https://api.github.com/repos/bretfunk/quantified-self/git/commits{/sha}","comments_url":"https://api.github.com/repos/bretfunk/quantified-self/comments{/number}","issue_comment_url":"https://api.github.com/repos/bretfunk/quantified-self/issues/comments{/number}","contents_url":"https://api.github.com/repos/bretfunk/quantified-self/contents/{+path}","compare_url":"https://api.github.com/repos/bretfunk/quantified-self/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bretfunk/quantified-self/merges","archive_url":"https://api.github.com/repos/bretfunk/quantified-self/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bretfunk/quantified-self/downloads","issues_url":"https://api.github.com/repos/bretfunk/quantified-self/issues{/number}","pulls_url":"https://api.github.com/repos/bretfunk/quantified-self/pulls{/number}","milestones_url":"https://api.github.com/repos/bretfunk/quantified-self/milestones{/number}","notifications_url":"https://api.github.com/repos/bretfunk/quantified-self/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bretfunk/quantified-self/labels{/name}","releases_url":"https://api.github.com/repos/bretfunk/quantified-self/releases{/id}","deployments_url":"https://api.github.com/repos/bretfunk/quantified-self/deployments","created_at":"2017-10-04T20:23:53Z","updated_at":"2017-10-04T20:26:07Z","pushed_at":"2017-10-05T23:15:15Z","git_url":"git://github.com/bretfunk/quantified-self.git","ssh_url":"git@github.com:bretfunk/quantified-self.git","clone_url":"https://github.com/bretfunk/quantified-self.git","svn_url":"https://github.com/bretfunk/quantified-self","homepage":null,"size":513,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"bretfunk:master","ref":"master","sha":"a34c84bba92d4ba6195555a471ab878943f852b6","user":{"login":"bretfunk","id":2019012,"avatar_url":"https://avatars3.githubusercontent.com/u/2019012?v=4","gravatar_id":"","url":"https://api.github.com/users/bretfunk","html_url":"https://github.com/bretfunk","followers_url":"https://api.github.com/users/bretfunk/followers","following_url":"https://api.github.com/users/bretfunk/following{/other_user}","gists_url":"https://api.github.com/users/bretfunk/gists{/gist_id}","starred_url":"https://api.github.com/users/bretfunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bretfunk/subscriptions","organizations_url":"https://api.github.com/users/bretfunk/orgs","repos_url":"https://api.github.com/users/bretfunk/repos","events_url":"https://api.github.com/users/bretfunk/events{/privacy}","received_events_url":"https://api.github.com/users/bretfunk/received_events","type":"User","site_admin":false},"repo":{"id":105814645,"name":"quantified-self","full_name":"bretfunk/quantified-self","owner":{"login":"bretfunk","id":2019012,"avatar_url":"https://avatars3.githubusercontent.com/u/2019012?v=4","gravatar_id":"","url":"https://api.github.com/users/bretfunk","html_url":"https://github.com/bretfunk","followers_url":"https://api.github.com/users/bretfunk/followers","following_url":"https://api.github.com/users/bretfunk/following{/other_user}","gists_url":"https://api.github.com/users/bretfunk/gists{/gist_id}","starred_url":"https://api.github.com/users/bretfunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bretfunk/subscriptions","organizations_url":"https://api.github.com/users/bretfunk/orgs","repos_url":"https://api.github.com/users/bretfunk/repos","events_url":"https://api.github.com/users/bretfunk/events{/privacy}","received_events_url":"https://api.github.com/users/bretfunk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bretfunk/quantified-self","description":null,"fork":false,"url":"https://api.github.com/repos/bretfunk/quantified-self","forks_url":"https://api.github.com/repos/bretfunk/quantified-self/forks","keys_url":"https://api.github.com/repos/bretfunk/quantified-self/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bretfunk/quantified-self/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bretfunk/quantified-self/teams","hooks_url":"https://api.github.com/repos/bretfunk/quantified-self/hooks","issue_events_url":"https://api.github.com/repos/bretfunk/quantified-self/issues/events{/number}","events_url":"https://api.github.com/repos/bretfunk/quantified-self/events","assignees_url":"https://api.github.com/repos/bretfunk/quantified-self/assignees{/user}","branches_url":"https://api.github.com/repos/bretfunk/quantified-self/branches{/branch}","tags_url":"https://api.github.com/repos/bretfunk/quantified-self/tags","blobs_url":"https://api.github.com/repos/bretfunk/quantified-self/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bretfunk/quantified-self/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bretfunk/quantified-self/git/refs{/sha}","trees_url":"https://api.github.com/repos/bretfunk/quantified-self/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bretfunk/quantified-self/statuses/{sha}","languages_url":"https://api.github.com/repos/bretfunk/quantified-self/languages","stargazers_url":"https://api.github.com/repos/bretfunk/quantified-self/stargazers","contributors_url":"https://api.github.com/repos/bretfunk/quantified-self/contributors","subscribers_url":"https://api.github.com/repos/bretfunk/quantified-self/subscribers","subscription_url":"https://api.github.com/repos/bretfunk/quantified-self/subscription","commits_url":"https://api.github.com/repos/bretfunk/quantified-self/commits{/sha}","git_commits_url":"https://api.github.com/repos/bretfunk/quantified-self/git/commits{/sha}","comments_url":"https://api.github.com/repos/bretfunk/quantified-self/comments{/number}","issue_comment_url":"https://api.github.com/repos/bretfunk/quantified-self/issues/comments{/number}","contents_url":"https://api.github.com/repos/bretfunk/quantified-self/contents/{+path}","compare_url":"https://api.github.com/repos/bretfunk/quantified-self/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bretfunk/quantified-self/merges","archive_url":"https://api.github.com/repos/bretfunk/quantified-self/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bretfunk/quantified-self/downloads","issues_url":"https://api.github.com/repos/bretfunk/quantified-self/issues{/number}","pulls_url":"https://api.github.com/repos/bretfunk/quantified-self/pulls{/number}","milestones_url":"https://api.github.com/repos/bretfunk/quantified-self/milestones{/number}","notifications_url":"https://api.github.com/repos/bretfunk/quantified-self/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bretfunk/quantified-self/labels{/name}","releases_url":"https://api.github.com/repos/bretfunk/quantified-self/releases{/id}","deployments_url":"https://api.github.com/repos/bretfunk/quantified-self/deployments","created_at":"2017-10-04T20:23:53Z","updated_at":"2017-10-04T20:26:07Z","pushed_at":"2017-10-05T23:15:15Z","git_url":"git://github.com/bretfunk/quantified-self.git","ssh_url":"git@github.com:bretfunk/quantified-self.git","clone_url":"https://github.com/bretfunk/quantified-self.git","svn_url":"https://github.com/bretfunk/quantified-self","homepage":null,"size":513,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bretfunk/quantified-self/pulls/3"},"html":{"href":"https://github.com/bretfunk/quantified-self/pull/3"},"issue":{"href":"https://api.github.com/repos/bretfunk/quantified-self/issues/3"},"comments":{"href":"https://api.github.com/repos/bretfunk/quantified-self/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/bretfunk/quantified-self/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/bretfunk/quantified-self/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bretfunk/quantified-self/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/bretfunk/quantified-self/statuses/5bac4cc3ce10492157af456004ded770db0f96ec"}},"author_association":"OWNER"}}
{"actor":{"display_login":"wratterman"}}