{"action":"created","issue":{"url":"https://api.github.com/repos/ozimos/Book-A-Meal/issues/28","repository_url":"https://api.github.com/repos/ozimos/Book-A-Meal","labels_url":"https://api.github.com/repos/ozimos/Book-A-Meal/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/ozimos/Book-A-Meal/issues/28/comments","events_url":"https://api.github.com/repos/ozimos/Book-A-Meal/issues/28/events","html_url":"https://github.com/ozimos/Book-A-Meal/pull/28","id":321078154,"number":28,"title":"Feat/157335443/postgres api orders","user":{"login":"ozimos","id":27624208,"avatar_url":"https://avatars3.githubusercontent.com/u/27624208?v=4","gravatar_id":"","url":"https://api.github.com/users/ozimos","html_url":"https://github.com/ozimos","followers_url":"https://api.github.com/users/ozimos/followers","following_url":"https://api.github.com/users/ozimos/following{/other_user}","gists_url":"https://api.github.com/users/ozimos/gists{/gist_id}","starred_url":"https://api.github.com/users/ozimos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozimos/subscriptions","organizations_url":"https://api.github.com/users/ozimos/orgs","repos_url":"https://api.github.com/users/ozimos/repos","events_url":"https://api.github.com/users/ozimos/events{/privacy}","received_events_url":"https://api.github.com/users/ozimos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-08T07:47:23Z","updated_at":"2018-05-08T07:49:49Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/ozimos/Book-A-Meal/pulls/28","html_url":"https://github.com/ozimos/Book-A-Meal/pull/28","diff_url":"https://github.com/ozimos/Book-A-Meal/pull/28.diff","patch_url":"https://github.com/ozimos/Book-A-Meal/pull/28.patch"},"body":"#### What does this PR do?\r\nAdds the api/v1/orders/endpoint set\r\n#### Description of Task to be completed?\r\n*  Users can select the meal option from the menu to the application using the POST api/v1/orders endpoint\r\n* Users can modify the order on the application using the PUT api/v1/orders/:id endpoint\r\n* Caterer can get all the orders on the application using the PUT api/v1/orders endpoint\r\n* Data should be persisted on the PostgreSQL database with the Sequelize ORM\r\n* The endpoints are to be secured with JWT.\r\n\r\n\r\n#### How should this be manually tested?\r\n* Start the app with **npm start**\r\n* Using Postman import this endpoint collection link https://www.getpostman.com/collections/85eee7927738b7112a13 and test\r\n\r\n#### Any background context you want to provide?\r\nAdds the feature:\r\n\r\n* Authenticated users (customers) should be able to see the menu for a specific day and\r\nselect an option out of the menu.\r\n* Authenticated users (customers) should be able to change their meal choice.\r\n* Admin (Caterer) should be able to see the orders made by the user\r\n#### What are the relevant pivotal tracker stories? (If applicable)\r\n#157335443\r\n#### Screenshots (If applicable)\r\nNone"},"comment":{"url":"https://api.github.com/repos/ozimos/Book-A-Meal/issues/comments/387316095","html_url":"https://github.com/ozimos/Book-A-Meal/pull/28#issuecomment-387316095","issue_url":"https://api.github.com/repos/ozimos/Book-A-Meal/issues/28","id":387316095,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars1.githubusercontent.com/u/2354108?v=4","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T07:49:48Z","updated_at":"2018-05-08T07:49:48Z","author_association":"NONE","body":"## Pull Request Test Coverage Report for [Build 101](https://coveralls.io/builds/16879539)\n\n* **50** of **69**  **(72.46%)** changed or added relevant lines in **15** files are covered.\n* No unchanged relevant lines lost coverage.\n* Overall coverage decreased (**-3.7%**) to **90.684%**\n\n---\n\n|  Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |\n| :-----|--------------|--------|---: |\n| [server/src/controllers/userController.js](https://coveralls.io/builds/16879539/source?filename=server%2Fsrc%2Fcontrollers%2FuserController.js#L91) | 9 | 11 | 81.82%\n| [server/src/controllers/orderController.js](https://coveralls.io/builds/16879539/source?filename=server%2Fsrc%2Fcontrollers%2ForderController.js#L9) | 2 | 19 | 10.53%\n<!-- | **Total:** | **50** | **69** | **72.46%** | -->\n\n\n|  Totals | [![Coverage Status](https://coveralls.io/builds/16879539/badge)](https://coveralls.io/builds/16879539) |\n| :-- | --: |\n| Change from base [Build 95](https://coveralls.io/builds/16846875): |  -3.7% |\n| Covered Lines: | 451 |\n| Relevant Lines: | 491 |\n\n---\n##### 💛  - [Coveralls](https://coveralls.io)\n"}}
{"actor":{"display_login":"coveralls"}}