{"action":"created","comment":{"url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls/comments/222263314","pull_request_review_id":161104705,"id":222263314,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjI2MzMxNA==","diff_hunk":"@@ -0,0 +1,21 @@\n+import axios from 'axios';\n+\n+const baseURL = 'https://maintenance-tracker-lumexralph.herokuapp.com/api/v1';\n+const instance = axios.create({\n+  baseURL,\n+  timeout: 10000,\n+  headers: { 'Content-Type': 'application/json' },\n+});\n+\n+export const setAuthorizationInHeader = (token = null) => {\n+  const defaultHeader = instance.defaults.headers.common;\n+\n+  if (token) {\n+    defaultHeader.Authorization = token;\n+  } else {\n+    delete defaultHeader.Authorization;\n+  }\n+  return defaultHeader;\n+};\n+\n+export default instance;","path":"src/helpers/apicall.js","position":21,"original_position":21,"commit_id":"0ed01b5e69b6f07ede7a5878a346c1e3c9823d4e","original_commit_id":"0ed01b5e69b6f07ede7a5878a346c1e3c9823d4e","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","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":"'export' is only available in ES6 (use 'esversion: 6').","created_at":"2018-10-03T10:44:55Z","updated_at":"2018-10-03T10:44:57Z","html_url":"https://github.com/Lumexralph/Maintenance-Tracker-React-App/pull/7#discussion_r222263314","pull_request_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls/7","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls/comments/222263314"},"html":{"href":"https://github.com/Lumexralph/Maintenance-Tracker-React-App/pull/7#discussion_r222263314"},"pull_request":{"href":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls/7","id":219991103,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5OTkxMTAz","html_url":"https://github.com/Lumexralph/Maintenance-Tracker-React-App/pull/7","diff_url":"https://github.com/Lumexralph/Maintenance-Tracker-React-App/pull/7.diff","patch_url":"https://github.com/Lumexralph/Maintenance-Tracker-React-App/pull/7.patch","issue_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/issues/7","number":7,"state":"open","locked":false,"title":"#160937106 Create login page functionality","user":{"login":"Lumexralph","id":12391886,"node_id":"MDQ6VXNlcjEyMzkxODg2","avatar_url":"https://avatars2.githubusercontent.com/u/12391886?v=4","gravatar_id":"","url":"https://api.github.com/users/Lumexralph","html_url":"https://github.com/Lumexralph","followers_url":"https://api.github.com/users/Lumexralph/followers","following_url":"https://api.github.com/users/Lumexralph/following{/other_user}","gists_url":"https://api.github.com/users/Lumexralph/gists{/gist_id}","starred_url":"https://api.github.com/users/Lumexralph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lumexralph/subscriptions","organizations_url":"https://api.github.com/users/Lumexralph/orgs","repos_url":"https://api.github.com/users/Lumexralph/repos","events_url":"https://api.github.com/users/Lumexralph/events{/privacy}","received_events_url":"https://api.github.com/users/Lumexralph/received_events","type":"User","site_admin":false},"body":"### What does this PR do?\r\n- Creates login page functionalities \r\n- Refactors axios call for login and signup\r\n- Refactors redux reducers and actions\r\n\r\n### Description of Task to be completed?\r\nUsers can be able to login to the application through this form.\r\n\r\n`Acceptance Criteria`\r\nGIVEN user visits the Login page.\r\nWHEN user clicks on Login button\r\nTHEN user should be able to see a form to fill in their details.\r\n\r\n### How should this be manually tested?\r\nOn Command Line:\r\n- `git clone https://github.com/Lumexralph/Maintenance-Tracker-React-App.git`\r\n- `npm install`\r\n- `npm run dev`\r\n- ` click Login button or link from the homepage`\r\n-  `input your details to login`\r\n\r\n### Any background context you want to provide?\r\nN/A\r\n\r\n### What are the relevant pivotal tracker stories?\r\nStory [#160937106](https://www.pivotaltracker.com/story/show/160937106)\r\n","created_at":"2018-10-03T10:44:39Z","updated_at":"2018-10-03T10:44:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93c7fa93021be6da6f2bab358b9efffcde4dd883","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/issues/7/comments","statuses_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/statuses/0ed01b5e69b6f07ede7a5878a346c1e3c9823d4e","head":{"label":"Lumexralph:ft_160937106_login_page_functionalities","ref":"ft_160937106_login_page_functionalities","sha":"0ed01b5e69b6f07ede7a5878a346c1e3c9823d4e","user":{"login":"Lumexralph","id":12391886,"node_id":"MDQ6VXNlcjEyMzkxODg2","avatar_url":"https://avatars2.githubusercontent.com/u/12391886?v=4","gravatar_id":"","url":"https://api.github.com/users/Lumexralph","html_url":"https://github.com/Lumexralph","followers_url":"https://api.github.com/users/Lumexralph/followers","following_url":"https://api.github.com/users/Lumexralph/following{/other_user}","gists_url":"https://api.github.com/users/Lumexralph/gists{/gist_id}","starred_url":"https://api.github.com/users/Lumexralph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lumexralph/subscriptions","organizations_url":"https://api.github.com/users/Lumexralph/orgs","repos_url":"https://api.github.com/users/Lumexralph/repos","events_url":"https://api.github.com/users/Lumexralph/events{/privacy}","received_events_url":"https://api.github.com/users/Lumexralph/received_events","type":"User","site_admin":false},"repo":{"id":145446143,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU0NDYxNDM=","name":"Maintenance-Tracker-React-App","full_name":"Lumexralph/Maintenance-Tracker-React-App","private":false,"owner":{"login":"Lumexralph","id":12391886,"node_id":"MDQ6VXNlcjEyMzkxODg2","avatar_url":"https://avatars2.githubusercontent.com/u/12391886?v=4","gravatar_id":"","url":"https://api.github.com/users/Lumexralph","html_url":"https://github.com/Lumexralph","followers_url":"https://api.github.com/users/Lumexralph/followers","following_url":"https://api.github.com/users/Lumexralph/following{/other_user}","gists_url":"https://api.github.com/users/Lumexralph/gists{/gist_id}","starred_url":"https://api.github.com/users/Lumexralph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lumexralph/subscriptions","organizations_url":"https://api.github.com/users/Lumexralph/orgs","repos_url":"https://api.github.com/users/Lumexralph/repos","events_url":"https://api.github.com/users/Lumexralph/events{/privacy}","received_events_url":"https://api.github.com/users/Lumexralph/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Lumexralph/Maintenance-Tracker-React-App","description":"The app formerly built in HTML/CSS/Javascript converted to React/Redux","fork":false,"url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App","forks_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/forks","keys_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/teams","hooks_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/hooks","issue_events_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/issues/events{/number}","events_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/events","assignees_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/assignees{/user}","branches_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/branches{/branch}","tags_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/tags","blobs_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/statuses/{sha}","languages_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/languages","stargazers_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/stargazers","contributors_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/contributors","subscribers_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/subscribers","subscription_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/subscription","commits_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/contents/{+path}","compare_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/merges","archive_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/downloads","issues_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/issues{/number}","pulls_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls{/number}","milestones_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/milestones{/number}","notifications_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/labels{/name}","releases_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/releases{/id}","deployments_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/deployments","created_at":"2018-08-20T16:54:51Z","updated_at":"2018-10-02T19:10:21Z","pushed_at":"2018-10-03T10:44:40Z","git_url":"git://github.com/Lumexralph/Maintenance-Tracker-React-App.git","ssh_url":"git@github.com:Lumexralph/Maintenance-Tracker-React-App.git","clone_url":"https://github.com/Lumexralph/Maintenance-Tracker-React-App.git","svn_url":"https://github.com/Lumexralph/Maintenance-Tracker-React-App","homepage":null,"size":1477,"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":"develop"}},"base":{"label":"Lumexralph:develop","ref":"develop","sha":"c4d21ce7c49b6994d8c30f250df90b31fc1d85bb","user":{"login":"Lumexralph","id":12391886,"node_id":"MDQ6VXNlcjEyMzkxODg2","avatar_url":"https://avatars2.githubusercontent.com/u/12391886?v=4","gravatar_id":"","url":"https://api.github.com/users/Lumexralph","html_url":"https://github.com/Lumexralph","followers_url":"https://api.github.com/users/Lumexralph/followers","following_url":"https://api.github.com/users/Lumexralph/following{/other_user}","gists_url":"https://api.github.com/users/Lumexralph/gists{/gist_id}","starred_url":"https://api.github.com/users/Lumexralph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lumexralph/subscriptions","organizations_url":"https://api.github.com/users/Lumexralph/orgs","repos_url":"https://api.github.com/users/Lumexralph/repos","events_url":"https://api.github.com/users/Lumexralph/events{/privacy}","received_events_url":"https://api.github.com/users/Lumexralph/received_events","type":"User","site_admin":false},"repo":{"id":145446143,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU0NDYxNDM=","name":"Maintenance-Tracker-React-App","full_name":"Lumexralph/Maintenance-Tracker-React-App","private":false,"owner":{"login":"Lumexralph","id":12391886,"node_id":"MDQ6VXNlcjEyMzkxODg2","avatar_url":"https://avatars2.githubusercontent.com/u/12391886?v=4","gravatar_id":"","url":"https://api.github.com/users/Lumexralph","html_url":"https://github.com/Lumexralph","followers_url":"https://api.github.com/users/Lumexralph/followers","following_url":"https://api.github.com/users/Lumexralph/following{/other_user}","gists_url":"https://api.github.com/users/Lumexralph/gists{/gist_id}","starred_url":"https://api.github.com/users/Lumexralph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lumexralph/subscriptions","organizations_url":"https://api.github.com/users/Lumexralph/orgs","repos_url":"https://api.github.com/users/Lumexralph/repos","events_url":"https://api.github.com/users/Lumexralph/events{/privacy}","received_events_url":"https://api.github.com/users/Lumexralph/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Lumexralph/Maintenance-Tracker-React-App","description":"The app formerly built in HTML/CSS/Javascript converted to React/Redux","fork":false,"url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App","forks_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/forks","keys_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/teams","hooks_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/hooks","issue_events_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/issues/events{/number}","events_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/events","assignees_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/assignees{/user}","branches_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/branches{/branch}","tags_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/tags","blobs_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/statuses/{sha}","languages_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/languages","stargazers_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/stargazers","contributors_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/contributors","subscribers_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/subscribers","subscription_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/subscription","commits_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/contents/{+path}","compare_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/merges","archive_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/downloads","issues_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/issues{/number}","pulls_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls{/number}","milestones_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/milestones{/number}","notifications_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/labels{/name}","releases_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/releases{/id}","deployments_url":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/deployments","created_at":"2018-08-20T16:54:51Z","updated_at":"2018-10-02T19:10:21Z","pushed_at":"2018-10-03T10:44:40Z","git_url":"git://github.com/Lumexralph/Maintenance-Tracker-React-App.git","ssh_url":"git@github.com:Lumexralph/Maintenance-Tracker-React-App.git","clone_url":"https://github.com/Lumexralph/Maintenance-Tracker-React-App.git","svn_url":"https://github.com/Lumexralph/Maintenance-Tracker-React-App","homepage":null,"size":1477,"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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls/7"},"html":{"href":"https://github.com/Lumexralph/Maintenance-Tracker-React-App/pull/7"},"issue":{"href":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/issues/7"},"comments":{"href":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Lumexralph/Maintenance-Tracker-React-App/statuses/0ed01b5e69b6f07ede7a5878a346c1e3c9823d4e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}