{"action":"created","comment":{"url":"https://api.github.com/repos/katable/menu_service/pulls/comments/229810604","pull_request_review_id":170399698,"id":229810604,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTgxMDYwNA==","diff_hunk":"@@ -1,53 +1,58 @@\n-const db = require('./index.js');\n const Menu = require('./Menu.js');\n const faker = require('faker');\n-var generateDishNameAndPrice = function() {\n+\n+const generateDishNameAndPrice = () => {\n   return {\n     item: faker.lorem.words() + ' ' + faker.lorem.words(),\n-    price: '$' + faker.commerce.price().toString()}\n-}\n+    price: '$' + faker.commerce.price().toString()};\n+};\n \n-var generateSectionName = function() {\n-  var sections = ['Salads', 'House Specialties', 'Shareables', 'Appetizers',\n-  'Starters', 'Sushi', 'Entrees', 'Dessert', 'Pasta', 'Drinks', \n-  'Hot Beverages', 'Soups', 'Tandoori', 'Seafood Entrée', 'Biryani & Rice',\n-  'Vegetarian Entrée', 'Breads', 'Pizzas', 'Cheeses', 'Sides', 'Antipasti‎',\n-  'Contorni‎', 'Primi‎', 'Secondi‎']\n+const generateSectionName = () => {\n+  var sections = \n+    ['Salads', 'House Specialties', 'Shareables', 'Appetizers', 'Starters', 'Sushi', 'Entrees', 'Dessert', 'Pasta', 'Drinks', 'Hot Beverages', 'Soups', 'Tandoori', 'Seafood Entrée', 'Biryani & Rice', 'Vegetarian Entrée', 'Breads', 'Pizzas', 'Cheeses', 'Sides', 'Antipasti‎', 'Contorni‎', 'Primi‎', 'Secondi‎'];\n   return faker.helpers.randomize(sections);\n-}\n+};\n \n-var generateMenu = function(season) {\n+const generateMenu = (season) => {\n   return {\n     menuSeason: season,\n     sections: [\n       {\n         sectionType: generateSectionName(),\n-        dishes: [\n-        generateDishNameAndPrice(), generateDishNameAndPrice(), generateDishNameAndPrice(),generateDishNameAndPrice(), generateDishNameAndPrice(), generateDishNameAndPrice(),generateDishNameAndPrice(), generateDishNameAndPrice(), generateDishNameAndPrice()\n-        ]\n+        dishes: Array(9).fill(null).map(() => generateDishNameAndPrice())\n       }\n     ]\n-  }\n-}\n+  };\n+};\n \n-var generateMenusSet = function(resturantID) {\n+const generateMenusSet = (resturantID) => {\n   return {","path":"database/menuSeeding.js","position":47,"original_position":47,"commit_id":"3ce0777d0526ba6a6a39d24ef41621eb34dbb6c2","original_commit_id":"40a98e358d10abd4bc740c7a82df4786ce7ff6da","user":{"login":"TonyWu5","id":32858558,"node_id":"MDQ6VXNlcjMyODU4NTU4","avatar_url":"https://avatars2.githubusercontent.com/u/32858558?v=4","gravatar_id":"","url":"https://api.github.com/users/TonyWu5","html_url":"https://github.com/TonyWu5","followers_url":"https://api.github.com/users/TonyWu5/followers","following_url":"https://api.github.com/users/TonyWu5/following{/other_user}","gists_url":"https://api.github.com/users/TonyWu5/gists{/gist_id}","starred_url":"https://api.github.com/users/TonyWu5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TonyWu5/subscriptions","organizations_url":"https://api.github.com/users/TonyWu5/orgs","repos_url":"https://api.github.com/users/TonyWu5/repos","events_url":"https://api.github.com/users/TonyWu5/events{/privacy}","received_events_url":"https://api.github.com/users/TonyWu5/received_events","type":"User","site_admin":false},"body":"agreed. thanks for the reminder.","created_at":"2018-10-31T18:09:51Z","updated_at":"2018-10-31T18:09:51Z","html_url":"https://github.com/katable/menu_service/pull/2#discussion_r229810604","pull_request_url":"https://api.github.com/repos/katable/menu_service/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/katable/menu_service/pulls/comments/229810604"},"html":{"href":"https://github.com/katable/menu_service/pull/2#discussion_r229810604"},"pull_request":{"href":"https://api.github.com/repos/katable/menu_service/pulls/2"}},"in_reply_to_id":229482422},"pull_request":{"url":"https://api.github.com/repos/katable/menu_service/pulls/2","id":226774214,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2Nzc0MjE0","html_url":"https://github.com/katable/menu_service/pull/2","diff_url":"https://github.com/katable/menu_service/pull/2.diff","patch_url":"https://github.com/katable/menu_service/pull/2.patch","issue_url":"https://api.github.com/repos/katable/menu_service/issues/2","number":2,"state":"open","locked":false,"title":"Refactored code (eg. to use ES6) and implemented to remove menu from …","user":{"login":"TonyWu5","id":32858558,"node_id":"MDQ6VXNlcjMyODU4NTU4","avatar_url":"https://avatars2.githubusercontent.com/u/32858558?v=4","gravatar_id":"","url":"https://api.github.com/users/TonyWu5","html_url":"https://github.com/TonyWu5","followers_url":"https://api.github.com/users/TonyWu5/followers","following_url":"https://api.github.com/users/TonyWu5/following{/other_user}","gists_url":"https://api.github.com/users/TonyWu5/gists{/gist_id}","starred_url":"https://api.github.com/users/TonyWu5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TonyWu5/subscriptions","organizations_url":"https://api.github.com/users/TonyWu5/orgs","repos_url":"https://api.github.com/users/TonyWu5/repos","events_url":"https://api.github.com/users/TonyWu5/events{/privacy}","received_events_url":"https://api.github.com/users/TonyWu5/received_events","type":"User","site_admin":false},"body":"…some of the restaurants after seeding (since realistically, menus for some restaurants are not avalable on OpenTable).","created_at":"2018-10-30T02:45:22Z","updated_at":"2018-10-31T18:09:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fab2087118383650a7bce78dcf17f62100da4a10","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/katable/menu_service/pulls/2/commits","review_comments_url":"https://api.github.com/repos/katable/menu_service/pulls/2/comments","review_comment_url":"https://api.github.com/repos/katable/menu_service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/katable/menu_service/issues/2/comments","statuses_url":"https://api.github.com/repos/katable/menu_service/statuses/3ce0777d0526ba6a6a39d24ef41621eb34dbb6c2","head":{"label":"katable:delete-some-seeded-menus","ref":"delete-some-seeded-menus","sha":"3ce0777d0526ba6a6a39d24ef41621eb34dbb6c2","user":{"login":"katable","id":44417720,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NDE3NzIw","avatar_url":"https://avatars0.githubusercontent.com/u/44417720?v=4","gravatar_id":"","url":"https://api.github.com/users/katable","html_url":"https://github.com/katable","followers_url":"https://api.github.com/users/katable/followers","following_url":"https://api.github.com/users/katable/following{/other_user}","gists_url":"https://api.github.com/users/katable/gists{/gist_id}","starred_url":"https://api.github.com/users/katable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katable/subscriptions","organizations_url":"https://api.github.com/users/katable/orgs","repos_url":"https://api.github.com/users/katable/repos","events_url":"https://api.github.com/users/katable/events{/privacy}","received_events_url":"https://api.github.com/users/katable/received_events","type":"Organization","site_admin":false},"repo":{"id":154407987,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ0MDc5ODc=","name":"menu_service","full_name":"katable/menu_service","private":false,"owner":{"login":"katable","id":44417720,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NDE3NzIw","avatar_url":"https://avatars0.githubusercontent.com/u/44417720?v=4","gravatar_id":"","url":"https://api.github.com/users/katable","html_url":"https://github.com/katable","followers_url":"https://api.github.com/users/katable/followers","following_url":"https://api.github.com/users/katable/following{/other_user}","gists_url":"https://api.github.com/users/katable/gists{/gist_id}","starred_url":"https://api.github.com/users/katable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katable/subscriptions","organizations_url":"https://api.github.com/users/katable/orgs","repos_url":"https://api.github.com/users/katable/repos","events_url":"https://api.github.com/users/katable/events{/privacy}","received_events_url":"https://api.github.com/users/katable/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/katable/menu_service","description":"this contains the front end codebase for our OpenTable clone.","fork":false,"url":"https://api.github.com/repos/katable/menu_service","forks_url":"https://api.github.com/repos/katable/menu_service/forks","keys_url":"https://api.github.com/repos/katable/menu_service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/katable/menu_service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/katable/menu_service/teams","hooks_url":"https://api.github.com/repos/katable/menu_service/hooks","issue_events_url":"https://api.github.com/repos/katable/menu_service/issues/events{/number}","events_url":"https://api.github.com/repos/katable/menu_service/events","assignees_url":"https://api.github.com/repos/katable/menu_service/assignees{/user}","branches_url":"https://api.github.com/repos/katable/menu_service/branches{/branch}","tags_url":"https://api.github.com/repos/katable/menu_service/tags","blobs_url":"https://api.github.com/repos/katable/menu_service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/katable/menu_service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/katable/menu_service/git/refs{/sha}","trees_url":"https://api.github.com/repos/katable/menu_service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/katable/menu_service/statuses/{sha}","languages_url":"https://api.github.com/repos/katable/menu_service/languages","stargazers_url":"https://api.github.com/repos/katable/menu_service/stargazers","contributors_url":"https://api.github.com/repos/katable/menu_service/contributors","subscribers_url":"https://api.github.com/repos/katable/menu_service/subscribers","subscription_url":"https://api.github.com/repos/katable/menu_service/subscription","commits_url":"https://api.github.com/repos/katable/menu_service/commits{/sha}","git_commits_url":"https://api.github.com/repos/katable/menu_service/git/commits{/sha}","comments_url":"https://api.github.com/repos/katable/menu_service/comments{/number}","issue_comment_url":"https://api.github.com/repos/katable/menu_service/issues/comments{/number}","contents_url":"https://api.github.com/repos/katable/menu_service/contents/{+path}","compare_url":"https://api.github.com/repos/katable/menu_service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/katable/menu_service/merges","archive_url":"https://api.github.com/repos/katable/menu_service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/katable/menu_service/downloads","issues_url":"https://api.github.com/repos/katable/menu_service/issues{/number}","pulls_url":"https://api.github.com/repos/katable/menu_service/pulls{/number}","milestones_url":"https://api.github.com/repos/katable/menu_service/milestones{/number}","notifications_url":"https://api.github.com/repos/katable/menu_service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/katable/menu_service/labels{/name}","releases_url":"https://api.github.com/repos/katable/menu_service/releases{/id}","deployments_url":"https://api.github.com/repos/katable/menu_service/deployments","created_at":"2018-10-23T23:06:03Z","updated_at":"2018-10-30T02:44:19Z","pushed_at":"2018-10-30T03:38:04Z","git_url":"git://github.com/katable/menu_service.git","ssh_url":"git@github.com:katable/menu_service.git","clone_url":"https://github.com/katable/menu_service.git","svn_url":"https://github.com/katable/menu_service","homepage":null,"size":544,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"katable:master","ref":"master","sha":"c4190e0a49af9f23ec67c26c46d6564e66c343f9","user":{"login":"katable","id":44417720,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NDE3NzIw","avatar_url":"https://avatars0.githubusercontent.com/u/44417720?v=4","gravatar_id":"","url":"https://api.github.com/users/katable","html_url":"https://github.com/katable","followers_url":"https://api.github.com/users/katable/followers","following_url":"https://api.github.com/users/katable/following{/other_user}","gists_url":"https://api.github.com/users/katable/gists{/gist_id}","starred_url":"https://api.github.com/users/katable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katable/subscriptions","organizations_url":"https://api.github.com/users/katable/orgs","repos_url":"https://api.github.com/users/katable/repos","events_url":"https://api.github.com/users/katable/events{/privacy}","received_events_url":"https://api.github.com/users/katable/received_events","type":"Organization","site_admin":false},"repo":{"id":154407987,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ0MDc5ODc=","name":"menu_service","full_name":"katable/menu_service","private":false,"owner":{"login":"katable","id":44417720,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NDE3NzIw","avatar_url":"https://avatars0.githubusercontent.com/u/44417720?v=4","gravatar_id":"","url":"https://api.github.com/users/katable","html_url":"https://github.com/katable","followers_url":"https://api.github.com/users/katable/followers","following_url":"https://api.github.com/users/katable/following{/other_user}","gists_url":"https://api.github.com/users/katable/gists{/gist_id}","starred_url":"https://api.github.com/users/katable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katable/subscriptions","organizations_url":"https://api.github.com/users/katable/orgs","repos_url":"https://api.github.com/users/katable/repos","events_url":"https://api.github.com/users/katable/events{/privacy}","received_events_url":"https://api.github.com/users/katable/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/katable/menu_service","description":"this contains the front end codebase for our OpenTable clone.","fork":false,"url":"https://api.github.com/repos/katable/menu_service","forks_url":"https://api.github.com/repos/katable/menu_service/forks","keys_url":"https://api.github.com/repos/katable/menu_service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/katable/menu_service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/katable/menu_service/teams","hooks_url":"https://api.github.com/repos/katable/menu_service/hooks","issue_events_url":"https://api.github.com/repos/katable/menu_service/issues/events{/number}","events_url":"https://api.github.com/repos/katable/menu_service/events","assignees_url":"https://api.github.com/repos/katable/menu_service/assignees{/user}","branches_url":"https://api.github.com/repos/katable/menu_service/branches{/branch}","tags_url":"https://api.github.com/repos/katable/menu_service/tags","blobs_url":"https://api.github.com/repos/katable/menu_service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/katable/menu_service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/katable/menu_service/git/refs{/sha}","trees_url":"https://api.github.com/repos/katable/menu_service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/katable/menu_service/statuses/{sha}","languages_url":"https://api.github.com/repos/katable/menu_service/languages","stargazers_url":"https://api.github.com/repos/katable/menu_service/stargazers","contributors_url":"https://api.github.com/repos/katable/menu_service/contributors","subscribers_url":"https://api.github.com/repos/katable/menu_service/subscribers","subscription_url":"https://api.github.com/repos/katable/menu_service/subscription","commits_url":"https://api.github.com/repos/katable/menu_service/commits{/sha}","git_commits_url":"https://api.github.com/repos/katable/menu_service/git/commits{/sha}","comments_url":"https://api.github.com/repos/katable/menu_service/comments{/number}","issue_comment_url":"https://api.github.com/repos/katable/menu_service/issues/comments{/number}","contents_url":"https://api.github.com/repos/katable/menu_service/contents/{+path}","compare_url":"https://api.github.com/repos/katable/menu_service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/katable/menu_service/merges","archive_url":"https://api.github.com/repos/katable/menu_service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/katable/menu_service/downloads","issues_url":"https://api.github.com/repos/katable/menu_service/issues{/number}","pulls_url":"https://api.github.com/repos/katable/menu_service/pulls{/number}","milestones_url":"https://api.github.com/repos/katable/menu_service/milestones{/number}","notifications_url":"https://api.github.com/repos/katable/menu_service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/katable/menu_service/labels{/name}","releases_url":"https://api.github.com/repos/katable/menu_service/releases{/id}","deployments_url":"https://api.github.com/repos/katable/menu_service/deployments","created_at":"2018-10-23T23:06:03Z","updated_at":"2018-10-30T02:44:19Z","pushed_at":"2018-10-30T03:38:04Z","git_url":"git://github.com/katable/menu_service.git","ssh_url":"git@github.com:katable/menu_service.git","clone_url":"https://github.com/katable/menu_service.git","svn_url":"https://github.com/katable/menu_service","homepage":null,"size":544,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/katable/menu_service/pulls/2"},"html":{"href":"https://github.com/katable/menu_service/pull/2"},"issue":{"href":"https://api.github.com/repos/katable/menu_service/issues/2"},"comments":{"href":"https://api.github.com/repos/katable/menu_service/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/katable/menu_service/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/katable/menu_service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/katable/menu_service/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/katable/menu_service/statuses/3ce0777d0526ba6a6a39d24ef41621eb34dbb6c2"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"TonyWu5"}}