{"action":"created","comment":{"url":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls/comments/184707928","pull_request_review_id":115963136,"id":184707928,"diff_hunk":"@@ -0,0 +1,28 @@\n+import express from 'express';\n+import bodyParser from 'body-parser';\n+import mealRouter from './routes/mealRoutes';\n+import menusRouter from './routes/menusRoutes';\n+import menuRouter from './routes/menuRoutes';\n+import orderRouter from './routes/orderRoutes';\n+\n+const app = express();\n+const port = process.env.PORT || 3000;\n+\n+app.use(bodyParser.urlencoded({ extended: true }));\n+app.use(bodyParser.json());\n+\n+app.use('/api/v1/meals', mealRouter);\n+app.use('/api/v1/menus', menusRouter);\n+app.use('/api/v1/menu', menuRouter);\n+app.use('/api/v1/orders', orderRouter);\n+\n+\n+app.get('/', (req, res) => {\n+  res.send('Hello, world');\n+});\n+\n+app.listen(port, () => {\n+  console.log(`listening on port: ${port}`);","path":"server/app.js","position":25,"original_position":25,"commit_id":"2d15e028520685cc2b6623244f59f6b36df20ab1","original_commit_id":"2d15e028520685cc2b6623244f59f6b36df20ab1","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","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":"Unexpected console statement                             no-console","created_at":"2018-04-27T14:39:53Z","updated_at":"2018-04-27T14:39:55Z","html_url":"https://github.com/bekomay26/Book-A-Meal/pull/3#discussion_r184707928","pull_request_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls/comments/184707928"},"html":{"href":"https://github.com/bekomay26/Book-A-Meal/pull/3#discussion_r184707928"},"pull_request":{"href":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls/3","id":184641301,"html_url":"https://github.com/bekomay26/Book-A-Meal/pull/3","diff_url":"https://github.com/bekomay26/Book-A-Meal/pull/3.diff","patch_url":"https://github.com/bekomay26/Book-A-Meal/pull/3.patch","issue_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/issues/3","number":3,"state":"open","locked":false,"title":"#157137664 Ft delete order API endpoint","user":{"login":"bekomay26","id":5614138,"avatar_url":"https://avatars0.githubusercontent.com/u/5614138?v=4","gravatar_id":"","url":"https://api.github.com/users/bekomay26","html_url":"https://github.com/bekomay26","followers_url":"https://api.github.com/users/bekomay26/followers","following_url":"https://api.github.com/users/bekomay26/following{/other_user}","gists_url":"https://api.github.com/users/bekomay26/gists{/gist_id}","starred_url":"https://api.github.com/users/bekomay26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bekomay26/subscriptions","organizations_url":"https://api.github.com/users/bekomay26/orgs","repos_url":"https://api.github.com/users/bekomay26/repos","events_url":"https://api.github.com/users/bekomay26/events{/privacy}","received_events_url":"https://api.github.com/users/bekomay26/received_events","type":"User","site_admin":false},"body":"### What does this PR do?\r\nIt adds a DELETE endpoint for destroying a meal\r\n\r\n### Description of Task to be completed\r\nWhen a user sends a POST request  to the /api/v1/orders/:id endpoint,\r\n- he/she should be able to delete an order if time elapsed after placing order is less than 10s\r\n- he/she should receive an error if the time elapsed is greater than 10s\r\n- he/she should receive a 404 error if order can't be found\r\n\r\n### How to test\r\n- Clone the project locally from git clone\r\n- Run \"npm install\" to install all dependecies\r\n- Run \"npm start\"\r\n- Open post man and fill in the necessary fields and send the DELETE request\r\n\r\n### What are the relevant pivotal tracker stories?\r\n#157137664","created_at":"2018-04-27T14:39:04Z","updated_at":"2018-04-27T14:39:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e67b4658e919e440da3d279347765fd8a6a991df","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls/3/commits","review_comments_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls/3/comments","review_comment_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/issues/3/comments","statuses_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/statuses/2d15e028520685cc2b6623244f59f6b36df20ab1","head":{"label":"bekomay26:ft-delete-order-api-157137664","ref":"ft-delete-order-api-157137664","sha":"2d15e028520685cc2b6623244f59f6b36df20ab1","user":{"login":"bekomay26","id":5614138,"avatar_url":"https://avatars0.githubusercontent.com/u/5614138?v=4","gravatar_id":"","url":"https://api.github.com/users/bekomay26","html_url":"https://github.com/bekomay26","followers_url":"https://api.github.com/users/bekomay26/followers","following_url":"https://api.github.com/users/bekomay26/following{/other_user}","gists_url":"https://api.github.com/users/bekomay26/gists{/gist_id}","starred_url":"https://api.github.com/users/bekomay26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bekomay26/subscriptions","organizations_url":"https://api.github.com/users/bekomay26/orgs","repos_url":"https://api.github.com/users/bekomay26/repos","events_url":"https://api.github.com/users/bekomay26/events{/privacy}","received_events_url":"https://api.github.com/users/bekomay26/received_events","type":"User","site_admin":false},"repo":{"id":129968717,"name":"Book-A-Meal","full_name":"bekomay26/Book-A-Meal","owner":{"login":"bekomay26","id":5614138,"avatar_url":"https://avatars0.githubusercontent.com/u/5614138?v=4","gravatar_id":"","url":"https://api.github.com/users/bekomay26","html_url":"https://github.com/bekomay26","followers_url":"https://api.github.com/users/bekomay26/followers","following_url":"https://api.github.com/users/bekomay26/following{/other_user}","gists_url":"https://api.github.com/users/bekomay26/gists{/gist_id}","starred_url":"https://api.github.com/users/bekomay26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bekomay26/subscriptions","organizations_url":"https://api.github.com/users/bekomay26/orgs","repos_url":"https://api.github.com/users/bekomay26/repos","events_url":"https://api.github.com/users/bekomay26/events{/privacy}","received_events_url":"https://api.github.com/users/bekomay26/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bekomay26/Book-A-Meal","description":"An application that allows customers to make food orders, helps the food vendor decide on what to eat and aids the caterer in managing the business.","fork":false,"url":"https://api.github.com/repos/bekomay26/Book-A-Meal","forks_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/forks","keys_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/teams","hooks_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/hooks","issue_events_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/issues/events{/number}","events_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/events","assignees_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/assignees{/user}","branches_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/branches{/branch}","tags_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/tags","blobs_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/git/refs{/sha}","trees_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/statuses/{sha}","languages_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/languages","stargazers_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/stargazers","contributors_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/contributors","subscribers_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/subscribers","subscription_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/subscription","commits_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/commits{/sha}","git_commits_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/git/commits{/sha}","comments_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/comments{/number}","issue_comment_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/issues/comments{/number}","contents_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/contents/{+path}","compare_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/merges","archive_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/downloads","issues_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/issues{/number}","pulls_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls{/number}","milestones_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/milestones{/number}","notifications_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/labels{/name}","releases_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/releases{/id}","deployments_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/deployments","created_at":"2018-04-17T21:44:21Z","updated_at":"2018-04-20T15:57:14Z","pushed_at":"2018-04-27T14:39:05Z","git_url":"git://github.com/bekomay26/Book-A-Meal.git","ssh_url":"git@github.com:bekomay26/Book-A-Meal.git","clone_url":"https://github.com/bekomay26/Book-A-Meal.git","svn_url":"https://github.com/bekomay26/Book-A-Meal","homepage":"https://bekomay26.github.io/Book-A-Meal/UI/html/user/","size":6490,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"bekomay26:develop","ref":"develop","sha":"af72133a315ecbad04f21801591b8306aaf7b7f7","user":{"login":"bekomay26","id":5614138,"avatar_url":"https://avatars0.githubusercontent.com/u/5614138?v=4","gravatar_id":"","url":"https://api.github.com/users/bekomay26","html_url":"https://github.com/bekomay26","followers_url":"https://api.github.com/users/bekomay26/followers","following_url":"https://api.github.com/users/bekomay26/following{/other_user}","gists_url":"https://api.github.com/users/bekomay26/gists{/gist_id}","starred_url":"https://api.github.com/users/bekomay26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bekomay26/subscriptions","organizations_url":"https://api.github.com/users/bekomay26/orgs","repos_url":"https://api.github.com/users/bekomay26/repos","events_url":"https://api.github.com/users/bekomay26/events{/privacy}","received_events_url":"https://api.github.com/users/bekomay26/received_events","type":"User","site_admin":false},"repo":{"id":129968717,"name":"Book-A-Meal","full_name":"bekomay26/Book-A-Meal","owner":{"login":"bekomay26","id":5614138,"avatar_url":"https://avatars0.githubusercontent.com/u/5614138?v=4","gravatar_id":"","url":"https://api.github.com/users/bekomay26","html_url":"https://github.com/bekomay26","followers_url":"https://api.github.com/users/bekomay26/followers","following_url":"https://api.github.com/users/bekomay26/following{/other_user}","gists_url":"https://api.github.com/users/bekomay26/gists{/gist_id}","starred_url":"https://api.github.com/users/bekomay26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bekomay26/subscriptions","organizations_url":"https://api.github.com/users/bekomay26/orgs","repos_url":"https://api.github.com/users/bekomay26/repos","events_url":"https://api.github.com/users/bekomay26/events{/privacy}","received_events_url":"https://api.github.com/users/bekomay26/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bekomay26/Book-A-Meal","description":"An application that allows customers to make food orders, helps the food vendor decide on what to eat and aids the caterer in managing the business.","fork":false,"url":"https://api.github.com/repos/bekomay26/Book-A-Meal","forks_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/forks","keys_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/teams","hooks_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/hooks","issue_events_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/issues/events{/number}","events_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/events","assignees_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/assignees{/user}","branches_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/branches{/branch}","tags_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/tags","blobs_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/git/refs{/sha}","trees_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/statuses/{sha}","languages_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/languages","stargazers_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/stargazers","contributors_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/contributors","subscribers_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/subscribers","subscription_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/subscription","commits_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/commits{/sha}","git_commits_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/git/commits{/sha}","comments_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/comments{/number}","issue_comment_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/issues/comments{/number}","contents_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/contents/{+path}","compare_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/merges","archive_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/downloads","issues_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/issues{/number}","pulls_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls{/number}","milestones_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/milestones{/number}","notifications_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/labels{/name}","releases_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/releases{/id}","deployments_url":"https://api.github.com/repos/bekomay26/Book-A-Meal/deployments","created_at":"2018-04-17T21:44:21Z","updated_at":"2018-04-20T15:57:14Z","pushed_at":"2018-04-27T14:39:05Z","git_url":"git://github.com/bekomay26/Book-A-Meal.git","ssh_url":"git@github.com:bekomay26/Book-A-Meal.git","clone_url":"https://github.com/bekomay26/Book-A-Meal.git","svn_url":"https://github.com/bekomay26/Book-A-Meal","homepage":"https://bekomay26.github.io/Book-A-Meal/UI/html/user/","size":6490,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls/3"},"html":{"href":"https://github.com/bekomay26/Book-A-Meal/pull/3"},"issue":{"href":"https://api.github.com/repos/bekomay26/Book-A-Meal/issues/3"},"comments":{"href":"https://api.github.com/repos/bekomay26/Book-A-Meal/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bekomay26/Book-A-Meal/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/bekomay26/Book-A-Meal/statuses/2d15e028520685cc2b6623244f59f6b36df20ab1"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}