{"action":"opened","number":50,"pull_request":{"url":"https://api.github.com/repos/akhilome/fast-food-fast/pulls/50","id":219919997,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5OTE5OTk3","html_url":"https://github.com/akhilome/fast-food-fast/pull/50","diff_url":"https://github.com/akhilome/fast-food-fast/pull/50.diff","patch_url":"https://github.com/akhilome/fast-food-fast/pull/50.patch","issue_url":"https://api.github.com/repos/akhilome/fast-food-fast/issues/50","number":50,"state":"open","locked":false,"title":"#160870247 Admin can update the status of an existing order","user":{"login":"akhilome","id":15332525,"node_id":"MDQ6VXNlcjE1MzMyNTI1","avatar_url":"https://avatars2.githubusercontent.com/u/15332525?v=4","gravatar_id":"","url":"https://api.github.com/users/akhilome","html_url":"https://github.com/akhilome","followers_url":"https://api.github.com/users/akhilome/followers","following_url":"https://api.github.com/users/akhilome/following{/other_user}","gists_url":"https://api.github.com/users/akhilome/gists{/gist_id}","starred_url":"https://api.github.com/users/akhilome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhilome/subscriptions","organizations_url":"https://api.github.com/users/akhilome/orgs","repos_url":"https://api.github.com/users/akhilome/repos","events_url":"https://api.github.com/users/akhilome/events{/privacy}","received_events_url":"https://api.github.com/users/akhilome/received_events","type":"User","site_admin":false},"body":"### What does this PR do?\r\n\r\nimplements route to allow only admin update status of customer orders\r\n\r\n### Description of Task to be completed?\r\n\r\n- remove all unnecessary files from the codebase\r\n- implement the PUT /orders/<orderId> route with admin authorization\r\n- write some tests for route\r\n\r\n### How should this be manually tested?\r\n\r\n```bash\r\ngit clone https://github.com/akhilome/fast-food-fast.git && cd fast-food-fast\r\n```\r\n\r\n#### install dependencies and setup db\r\n\r\nrename `.env.example` to `.env` and configure appropriately, then run \r\n\r\n```bash\r\nnpm i && npm run setup-testdb && npm run seed-db\r\n```\r\n\r\n#### test away\r\n\r\n```bash\r\nnpm test\r\n```\r\n\r\n### What are the relevant pivotal tracker stories?\r\n\r\n#160870247","created_at":"2018-10-03T05:37:33Z","updated_at":"2018-10-03T05:37:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/akhilome/fast-food-fast/pulls/50/commits","review_comments_url":"https://api.github.com/repos/akhilome/fast-food-fast/pulls/50/comments","review_comment_url":"https://api.github.com/repos/akhilome/fast-food-fast/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akhilome/fast-food-fast/issues/50/comments","statuses_url":"https://api.github.com/repos/akhilome/fast-food-fast/statuses/6d3128dc452bb5dee989db69a4f17771909fff90","head":{"label":"akhilome:ft-update-order-status-160870247","ref":"ft-update-order-status-160870247","sha":"6d3128dc452bb5dee989db69a4f17771909fff90","user":{"login":"akhilome","id":15332525,"node_id":"MDQ6VXNlcjE1MzMyNTI1","avatar_url":"https://avatars2.githubusercontent.com/u/15332525?v=4","gravatar_id":"","url":"https://api.github.com/users/akhilome","html_url":"https://github.com/akhilome","followers_url":"https://api.github.com/users/akhilome/followers","following_url":"https://api.github.com/users/akhilome/following{/other_user}","gists_url":"https://api.github.com/users/akhilome/gists{/gist_id}","starred_url":"https://api.github.com/users/akhilome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhilome/subscriptions","organizations_url":"https://api.github.com/users/akhilome/orgs","repos_url":"https://api.github.com/users/akhilome/repos","events_url":"https://api.github.com/users/akhilome/events{/privacy}","received_events_url":"https://api.github.com/users/akhilome/received_events","type":"User","site_admin":false},"repo":{"id":146451998,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY0NTE5OTg=","name":"fast-food-fast","full_name":"akhilome/fast-food-fast","private":false,"owner":{"login":"akhilome","id":15332525,"node_id":"MDQ6VXNlcjE1MzMyNTI1","avatar_url":"https://avatars2.githubusercontent.com/u/15332525?v=4","gravatar_id":"","url":"https://api.github.com/users/akhilome","html_url":"https://github.com/akhilome","followers_url":"https://api.github.com/users/akhilome/followers","following_url":"https://api.github.com/users/akhilome/following{/other_user}","gists_url":"https://api.github.com/users/akhilome/gists{/gist_id}","starred_url":"https://api.github.com/users/akhilome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhilome/subscriptions","organizations_url":"https://api.github.com/users/akhilome/orgs","repos_url":"https://api.github.com/users/akhilome/repos","events_url":"https://api.github.com/users/akhilome/events{/privacy}","received_events_url":"https://api.github.com/users/akhilome/received_events","type":"User","site_admin":false},"html_url":"https://github.com/akhilome/fast-food-fast","description":"Place orders for food and get it sharp sharp!","fork":false,"url":"https://api.github.com/repos/akhilome/fast-food-fast","forks_url":"https://api.github.com/repos/akhilome/fast-food-fast/forks","keys_url":"https://api.github.com/repos/akhilome/fast-food-fast/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akhilome/fast-food-fast/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akhilome/fast-food-fast/teams","hooks_url":"https://api.github.com/repos/akhilome/fast-food-fast/hooks","issue_events_url":"https://api.github.com/repos/akhilome/fast-food-fast/issues/events{/number}","events_url":"https://api.github.com/repos/akhilome/fast-food-fast/events","assignees_url":"https://api.github.com/repos/akhilome/fast-food-fast/assignees{/user}","branches_url":"https://api.github.com/repos/akhilome/fast-food-fast/branches{/branch}","tags_url":"https://api.github.com/repos/akhilome/fast-food-fast/tags","blobs_url":"https://api.github.com/repos/akhilome/fast-food-fast/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akhilome/fast-food-fast/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akhilome/fast-food-fast/git/refs{/sha}","trees_url":"https://api.github.com/repos/akhilome/fast-food-fast/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akhilome/fast-food-fast/statuses/{sha}","languages_url":"https://api.github.com/repos/akhilome/fast-food-fast/languages","stargazers_url":"https://api.github.com/repos/akhilome/fast-food-fast/stargazers","contributors_url":"https://api.github.com/repos/akhilome/fast-food-fast/contributors","subscribers_url":"https://api.github.com/repos/akhilome/fast-food-fast/subscribers","subscription_url":"https://api.github.com/repos/akhilome/fast-food-fast/subscription","commits_url":"https://api.github.com/repos/akhilome/fast-food-fast/commits{/sha}","git_commits_url":"https://api.github.com/repos/akhilome/fast-food-fast/git/commits{/sha}","comments_url":"https://api.github.com/repos/akhilome/fast-food-fast/comments{/number}","issue_comment_url":"https://api.github.com/repos/akhilome/fast-food-fast/issues/comments{/number}","contents_url":"https://api.github.com/repos/akhilome/fast-food-fast/contents/{+path}","compare_url":"https://api.github.com/repos/akhilome/fast-food-fast/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akhilome/fast-food-fast/merges","archive_url":"https://api.github.com/repos/akhilome/fast-food-fast/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akhilome/fast-food-fast/downloads","issues_url":"https://api.github.com/repos/akhilome/fast-food-fast/issues{/number}","pulls_url":"https://api.github.com/repos/akhilome/fast-food-fast/pulls{/number}","milestones_url":"https://api.github.com/repos/akhilome/fast-food-fast/milestones{/number}","notifications_url":"https://api.github.com/repos/akhilome/fast-food-fast/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akhilome/fast-food-fast/labels{/name}","releases_url":"https://api.github.com/repos/akhilome/fast-food-fast/releases{/id}","deployments_url":"https://api.github.com/repos/akhilome/fast-food-fast/deployments","created_at":"2018-08-28T13:30:46Z","updated_at":"2018-10-02T15:57:39Z","pushed_at":"2018-10-03T05:33:02Z","git_url":"git://github.com/akhilome/fast-food-fast.git","ssh_url":"git@github.com:akhilome/fast-food-fast.git","clone_url":"https://github.com/akhilome/fast-food-fast.git","svn_url":"https://github.com/akhilome/fast-food-fast","homepage":null,"size":1284,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"akhilome:develop","ref":"develop","sha":"c3a79e9b43fefe11400f14f355f224c3796812a2","user":{"login":"akhilome","id":15332525,"node_id":"MDQ6VXNlcjE1MzMyNTI1","avatar_url":"https://avatars2.githubusercontent.com/u/15332525?v=4","gravatar_id":"","url":"https://api.github.com/users/akhilome","html_url":"https://github.com/akhilome","followers_url":"https://api.github.com/users/akhilome/followers","following_url":"https://api.github.com/users/akhilome/following{/other_user}","gists_url":"https://api.github.com/users/akhilome/gists{/gist_id}","starred_url":"https://api.github.com/users/akhilome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhilome/subscriptions","organizations_url":"https://api.github.com/users/akhilome/orgs","repos_url":"https://api.github.com/users/akhilome/repos","events_url":"https://api.github.com/users/akhilome/events{/privacy}","received_events_url":"https://api.github.com/users/akhilome/received_events","type":"User","site_admin":false},"repo":{"id":146451998,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY0NTE5OTg=","name":"fast-food-fast","full_name":"akhilome/fast-food-fast","private":false,"owner":{"login":"akhilome","id":15332525,"node_id":"MDQ6VXNlcjE1MzMyNTI1","avatar_url":"https://avatars2.githubusercontent.com/u/15332525?v=4","gravatar_id":"","url":"https://api.github.com/users/akhilome","html_url":"https://github.com/akhilome","followers_url":"https://api.github.com/users/akhilome/followers","following_url":"https://api.github.com/users/akhilome/following{/other_user}","gists_url":"https://api.github.com/users/akhilome/gists{/gist_id}","starred_url":"https://api.github.com/users/akhilome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhilome/subscriptions","organizations_url":"https://api.github.com/users/akhilome/orgs","repos_url":"https://api.github.com/users/akhilome/repos","events_url":"https://api.github.com/users/akhilome/events{/privacy}","received_events_url":"https://api.github.com/users/akhilome/received_events","type":"User","site_admin":false},"html_url":"https://github.com/akhilome/fast-food-fast","description":"Place orders for food and get it sharp sharp!","fork":false,"url":"https://api.github.com/repos/akhilome/fast-food-fast","forks_url":"https://api.github.com/repos/akhilome/fast-food-fast/forks","keys_url":"https://api.github.com/repos/akhilome/fast-food-fast/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akhilome/fast-food-fast/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akhilome/fast-food-fast/teams","hooks_url":"https://api.github.com/repos/akhilome/fast-food-fast/hooks","issue_events_url":"https://api.github.com/repos/akhilome/fast-food-fast/issues/events{/number}","events_url":"https://api.github.com/repos/akhilome/fast-food-fast/events","assignees_url":"https://api.github.com/repos/akhilome/fast-food-fast/assignees{/user}","branches_url":"https://api.github.com/repos/akhilome/fast-food-fast/branches{/branch}","tags_url":"https://api.github.com/repos/akhilome/fast-food-fast/tags","blobs_url":"https://api.github.com/repos/akhilome/fast-food-fast/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akhilome/fast-food-fast/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akhilome/fast-food-fast/git/refs{/sha}","trees_url":"https://api.github.com/repos/akhilome/fast-food-fast/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akhilome/fast-food-fast/statuses/{sha}","languages_url":"https://api.github.com/repos/akhilome/fast-food-fast/languages","stargazers_url":"https://api.github.com/repos/akhilome/fast-food-fast/stargazers","contributors_url":"https://api.github.com/repos/akhilome/fast-food-fast/contributors","subscribers_url":"https://api.github.com/repos/akhilome/fast-food-fast/subscribers","subscription_url":"https://api.github.com/repos/akhilome/fast-food-fast/subscription","commits_url":"https://api.github.com/repos/akhilome/fast-food-fast/commits{/sha}","git_commits_url":"https://api.github.com/repos/akhilome/fast-food-fast/git/commits{/sha}","comments_url":"https://api.github.com/repos/akhilome/fast-food-fast/comments{/number}","issue_comment_url":"https://api.github.com/repos/akhilome/fast-food-fast/issues/comments{/number}","contents_url":"https://api.github.com/repos/akhilome/fast-food-fast/contents/{+path}","compare_url":"https://api.github.com/repos/akhilome/fast-food-fast/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akhilome/fast-food-fast/merges","archive_url":"https://api.github.com/repos/akhilome/fast-food-fast/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akhilome/fast-food-fast/downloads","issues_url":"https://api.github.com/repos/akhilome/fast-food-fast/issues{/number}","pulls_url":"https://api.github.com/repos/akhilome/fast-food-fast/pulls{/number}","milestones_url":"https://api.github.com/repos/akhilome/fast-food-fast/milestones{/number}","notifications_url":"https://api.github.com/repos/akhilome/fast-food-fast/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akhilome/fast-food-fast/labels{/name}","releases_url":"https://api.github.com/repos/akhilome/fast-food-fast/releases{/id}","deployments_url":"https://api.github.com/repos/akhilome/fast-food-fast/deployments","created_at":"2018-08-28T13:30:46Z","updated_at":"2018-10-02T15:57:39Z","pushed_at":"2018-10-03T05:33:02Z","git_url":"git://github.com/akhilome/fast-food-fast.git","ssh_url":"git@github.com:akhilome/fast-food-fast.git","clone_url":"https://github.com/akhilome/fast-food-fast.git","svn_url":"https://github.com/akhilome/fast-food-fast","homepage":null,"size":1284,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/akhilome/fast-food-fast/pulls/50"},"html":{"href":"https://github.com/akhilome/fast-food-fast/pull/50"},"issue":{"href":"https://api.github.com/repos/akhilome/fast-food-fast/issues/50"},"comments":{"href":"https://api.github.com/repos/akhilome/fast-food-fast/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/akhilome/fast-food-fast/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/akhilome/fast-food-fast/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akhilome/fast-food-fast/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/akhilome/fast-food-fast/statuses/6d3128dc452bb5dee989db69a4f17771909fff90"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":125,"deletions":260,"changed_files":17}}
{"actor":{"display_login":"akhilome"}}