{"action":"closed","number":74,"pull_request":{"url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/pulls/74","id":224011124,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MDExMTI0","html_url":"https://github.com/azupatrick0/Fast-Food-Fast/pull/74","diff_url":"https://github.com/azupatrick0/Fast-Food-Fast/pull/74.diff","patch_url":"https://github.com/azupatrick0/Fast-Food-Fast/pull/74.patch","issue_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/issues/74","number":74,"state":"closed","locked":false,"title":"chore(redirect-user-to-login): redirect a user to login if no token is defined","user":{"login":"azupatrick0","id":30567888,"node_id":"MDQ6VXNlcjMwNTY3ODg4","avatar_url":"https://avatars0.githubusercontent.com/u/30567888?v=4","gravatar_id":"","url":"https://api.github.com/users/azupatrick0","html_url":"https://github.com/azupatrick0","followers_url":"https://api.github.com/users/azupatrick0/followers","following_url":"https://api.github.com/users/azupatrick0/following{/other_user}","gists_url":"https://api.github.com/users/azupatrick0/gists{/gist_id}","starred_url":"https://api.github.com/users/azupatrick0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azupatrick0/subscriptions","organizations_url":"https://api.github.com/users/azupatrick0/orgs","repos_url":"https://api.github.com/users/azupatrick0/repos","events_url":"https://api.github.com/users/azupatrick0/events{/privacy}","received_events_url":"https://api.github.com/users/azupatrick0/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nRedirect a user to login if no token is defined\r\n#### Description of Task to be completed?\r\n- Update isLoggedIn helper to throw 401 code on no token or token error\r\n- Redirects user to signin.html on no token or token error on orders, history, admin and dashboard pages\r\n- Update test spec to reflect changes\r\n#### How should this be manually tested?\r\nAfter cloning the repo, cd into it, then run, npm run start:dev, using chrome web browser test the /admin.html, /orders.html, /dashboard.html, /orders.html routes without signing in\r\n#### What are the relevant pivotal tracker stories?\r\n#161306624","created_at":"2018-10-18T15:56:55Z","updated_at":"2018-10-18T16:03:25Z","closed_at":"2018-10-18T16:03:25Z","merged_at":"2018-10-18T16:03:25Z","merge_commit_sha":"bd3afd0cb708ca44ee5d28db1e57fcda8938c0f9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/pulls/74/commits","review_comments_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/pulls/74/comments","review_comment_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/pulls/comments{/number}","comments_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/issues/74/comments","statuses_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/statuses/210d97eeba75d322f0e6a4325761ec174e86c1ca","head":{"label":"azupatrick0:ch-redirect-user-to-login-#161306624","ref":"ch-redirect-user-to-login-#161306624","sha":"210d97eeba75d322f0e6a4325761ec174e86c1ca","user":{"login":"azupatrick0","id":30567888,"node_id":"MDQ6VXNlcjMwNTY3ODg4","avatar_url":"https://avatars0.githubusercontent.com/u/30567888?v=4","gravatar_id":"","url":"https://api.github.com/users/azupatrick0","html_url":"https://github.com/azupatrick0","followers_url":"https://api.github.com/users/azupatrick0/followers","following_url":"https://api.github.com/users/azupatrick0/following{/other_user}","gists_url":"https://api.github.com/users/azupatrick0/gists{/gist_id}","starred_url":"https://api.github.com/users/azupatrick0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azupatrick0/subscriptions","organizations_url":"https://api.github.com/users/azupatrick0/orgs","repos_url":"https://api.github.com/users/azupatrick0/repos","events_url":"https://api.github.com/users/azupatrick0/events{/privacy}","received_events_url":"https://api.github.com/users/azupatrick0/received_events","type":"User","site_admin":false},"repo":{"id":146319795,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzMTk3OTU=","name":"Fast-Food-Fast","full_name":"azupatrick0/Fast-Food-Fast","private":false,"owner":{"login":"azupatrick0","id":30567888,"node_id":"MDQ6VXNlcjMwNTY3ODg4","avatar_url":"https://avatars0.githubusercontent.com/u/30567888?v=4","gravatar_id":"","url":"https://api.github.com/users/azupatrick0","html_url":"https://github.com/azupatrick0","followers_url":"https://api.github.com/users/azupatrick0/followers","following_url":"https://api.github.com/users/azupatrick0/following{/other_user}","gists_url":"https://api.github.com/users/azupatrick0/gists{/gist_id}","starred_url":"https://api.github.com/users/azupatrick0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azupatrick0/subscriptions","organizations_url":"https://api.github.com/users/azupatrick0/orgs","repos_url":"https://api.github.com/users/azupatrick0/repos","events_url":"https://api.github.com/users/azupatrick0/events{/privacy}","received_events_url":"https://api.github.com/users/azupatrick0/received_events","type":"User","site_admin":false},"html_url":"https://github.com/azupatrick0/Fast-Food-Fast","description":"Fast-Food-Fast is a food delivery service app for a restaurant. Built for Andela Cycle 36 Developer Challenge.","fork":false,"url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast","forks_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/forks","keys_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/teams","hooks_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/hooks","issue_events_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/issues/events{/number}","events_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/events","assignees_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/assignees{/user}","branches_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/branches{/branch}","tags_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/tags","blobs_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/git/refs{/sha}","trees_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/statuses/{sha}","languages_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/languages","stargazers_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/stargazers","contributors_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/contributors","subscribers_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/subscribers","subscription_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/subscription","commits_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/commits{/sha}","git_commits_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/git/commits{/sha}","comments_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/comments{/number}","issue_comment_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/issues/comments{/number}","contents_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/contents/{+path}","compare_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/merges","archive_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/downloads","issues_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/issues{/number}","pulls_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/pulls{/number}","milestones_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/milestones{/number}","notifications_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/labels{/name}","releases_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/releases{/id}","deployments_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/deployments","created_at":"2018-08-27T15:49:16Z","updated_at":"2018-10-18T10:28:24Z","pushed_at":"2018-10-18T16:03:25Z","git_url":"git://github.com/azupatrick0/Fast-Food-Fast.git","ssh_url":"git@github.com:azupatrick0/Fast-Food-Fast.git","clone_url":"https://github.com/azupatrick0/Fast-Food-Fast.git","svn_url":"https://github.com/azupatrick0/Fast-Food-Fast","homepage":null,"size":65610,"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":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"azupatrick0:develop","ref":"develop","sha":"38ed37e73e41c713d7b7e6eaa2edb5ff779373f0","user":{"login":"azupatrick0","id":30567888,"node_id":"MDQ6VXNlcjMwNTY3ODg4","avatar_url":"https://avatars0.githubusercontent.com/u/30567888?v=4","gravatar_id":"","url":"https://api.github.com/users/azupatrick0","html_url":"https://github.com/azupatrick0","followers_url":"https://api.github.com/users/azupatrick0/followers","following_url":"https://api.github.com/users/azupatrick0/following{/other_user}","gists_url":"https://api.github.com/users/azupatrick0/gists{/gist_id}","starred_url":"https://api.github.com/users/azupatrick0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azupatrick0/subscriptions","organizations_url":"https://api.github.com/users/azupatrick0/orgs","repos_url":"https://api.github.com/users/azupatrick0/repos","events_url":"https://api.github.com/users/azupatrick0/events{/privacy}","received_events_url":"https://api.github.com/users/azupatrick0/received_events","type":"User","site_admin":false},"repo":{"id":146319795,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzMTk3OTU=","name":"Fast-Food-Fast","full_name":"azupatrick0/Fast-Food-Fast","private":false,"owner":{"login":"azupatrick0","id":30567888,"node_id":"MDQ6VXNlcjMwNTY3ODg4","avatar_url":"https://avatars0.githubusercontent.com/u/30567888?v=4","gravatar_id":"","url":"https://api.github.com/users/azupatrick0","html_url":"https://github.com/azupatrick0","followers_url":"https://api.github.com/users/azupatrick0/followers","following_url":"https://api.github.com/users/azupatrick0/following{/other_user}","gists_url":"https://api.github.com/users/azupatrick0/gists{/gist_id}","starred_url":"https://api.github.com/users/azupatrick0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azupatrick0/subscriptions","organizations_url":"https://api.github.com/users/azupatrick0/orgs","repos_url":"https://api.github.com/users/azupatrick0/repos","events_url":"https://api.github.com/users/azupatrick0/events{/privacy}","received_events_url":"https://api.github.com/users/azupatrick0/received_events","type":"User","site_admin":false},"html_url":"https://github.com/azupatrick0/Fast-Food-Fast","description":"Fast-Food-Fast is a food delivery service app for a restaurant. Built for Andela Cycle 36 Developer Challenge.","fork":false,"url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast","forks_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/forks","keys_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/teams","hooks_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/hooks","issue_events_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/issues/events{/number}","events_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/events","assignees_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/assignees{/user}","branches_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/branches{/branch}","tags_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/tags","blobs_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/git/refs{/sha}","trees_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/statuses/{sha}","languages_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/languages","stargazers_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/stargazers","contributors_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/contributors","subscribers_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/subscribers","subscription_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/subscription","commits_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/commits{/sha}","git_commits_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/git/commits{/sha}","comments_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/comments{/number}","issue_comment_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/issues/comments{/number}","contents_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/contents/{+path}","compare_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/merges","archive_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/downloads","issues_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/issues{/number}","pulls_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/pulls{/number}","milestones_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/milestones{/number}","notifications_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/labels{/name}","releases_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/releases{/id}","deployments_url":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/deployments","created_at":"2018-08-27T15:49:16Z","updated_at":"2018-10-18T10:28:24Z","pushed_at":"2018-10-18T16:03:25Z","git_url":"git://github.com/azupatrick0/Fast-Food-Fast.git","ssh_url":"git@github.com:azupatrick0/Fast-Food-Fast.git","clone_url":"https://github.com/azupatrick0/Fast-Food-Fast.git","svn_url":"https://github.com/azupatrick0/Fast-Food-Fast","homepage":null,"size":65610,"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":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/pulls/74"},"html":{"href":"https://github.com/azupatrick0/Fast-Food-Fast/pull/74"},"issue":{"href":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/issues/74"},"comments":{"href":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/azupatrick0/Fast-Food-Fast/statuses/210d97eeba75d322f0e6a4325761ec174e86c1ca"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"azupatrick0","id":30567888,"node_id":"MDQ6VXNlcjMwNTY3ODg4","avatar_url":"https://avatars0.githubusercontent.com/u/30567888?v=4","gravatar_id":"","url":"https://api.github.com/users/azupatrick0","html_url":"https://github.com/azupatrick0","followers_url":"https://api.github.com/users/azupatrick0/followers","following_url":"https://api.github.com/users/azupatrick0/following{/other_user}","gists_url":"https://api.github.com/users/azupatrick0/gists{/gist_id}","starred_url":"https://api.github.com/users/azupatrick0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azupatrick0/subscriptions","organizations_url":"https://api.github.com/users/azupatrick0/orgs","repos_url":"https://api.github.com/users/azupatrick0/repos","events_url":"https://api.github.com/users/azupatrick0/events{/privacy}","received_events_url":"https://api.github.com/users/azupatrick0/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":433,"deletions":391,"changed_files":11}}
{"actor":{"display_login":"azupatrick0"}}