{"action":"created","comment":{"url":"https://api.github.com/repos/nzediegwu1/EventManager/pulls/comments/186408682","pull_request_review_id":117979090,"id":186408682,"diff_hunk":"@@ -0,0 +1,206 @@\n+import axios from 'axios';","path":"client/src/services.js","position":1,"original_position":1,"commit_id":"f19c835d44673f2491bf0cfb35fbf2997a46d5b7","original_commit_id":"f19c835d44673f2491bf0cfb35fbf2997a46d5b7","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":"Parsing error: 'import' and 'export' may appear only with 'sourceType: module'","created_at":"2018-05-07T12:31:26Z","updated_at":"2018-05-07T12:31:26Z","html_url":"https://github.com/nzediegwu1/EventManager/pull/90#discussion_r186408682","pull_request_url":"https://api.github.com/repos/nzediegwu1/EventManager/pulls/90","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nzediegwu1/EventManager/pulls/comments/186408682"},"html":{"href":"https://github.com/nzediegwu1/EventManager/pull/90#discussion_r186408682"},"pull_request":{"href":"https://api.github.com/repos/nzediegwu1/EventManager/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/nzediegwu1/EventManager/pulls/90","id":186337122,"html_url":"https://github.com/nzediegwu1/EventManager/pull/90","diff_url":"https://github.com/nzediegwu1/EventManager/pull/90.diff","patch_url":"https://github.com/nzediegwu1/EventManager/pull/90.patch","issue_url":"https://api.github.com/repos/nzediegwu1/EventManager/issues/90","number":90,"state":"open","locked":false,"title":"#157219929 Refactor client source code ","user":{"login":"nzediegwu1","id":29695968,"avatar_url":"https://avatars1.githubusercontent.com/u/29695968?v=4","gravatar_id":"","url":"https://api.github.com/users/nzediegwu1","html_url":"https://github.com/nzediegwu1","followers_url":"https://api.github.com/users/nzediegwu1/followers","following_url":"https://api.github.com/users/nzediegwu1/following{/other_user}","gists_url":"https://api.github.com/users/nzediegwu1/gists{/gist_id}","starred_url":"https://api.github.com/users/nzediegwu1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzediegwu1/subscriptions","organizations_url":"https://api.github.com/users/nzediegwu1/orgs","repos_url":"https://api.github.com/users/nzediegwu1/repos","events_url":"https://api.github.com/users/nzediegwu1/events{/privacy}","received_events_url":"https://api.github.com/users/nzediegwu1/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nRefactor client source code based on feedback and recommendations\r\n\r\n#### Description of Task to be completed?\r\n1. Created services.js to handle all http transactions.\r\n2. Move reusables.js into service.js and deleted reusables.js\r\n3. Make client/src/resources/images static in app.js for easy reference in jsx image srcs\r\n4. Refactor addCenterComponent.js to eliminate images imports\r\n5. Refactor addCenterComponent.js to handle http requests in services.js\r\n6. Refactor addEventComponent.js to eliminate images imports\r\n7. Refactor addEventComponent.js to handle http requests in services.js\r\n8. Create Icon component to render icons images\r\n9. Refactor centerDetails component to use Icon component and handle http requests in services.js\r\n10. Refactor centerList component.js to handle http requests in services.js\r\n10. Refactor eventList component.js to handle http requests in services.js\r\n11. Refactor formGroup component to allow use of image name directly in src rather than imported image\r\n12. Refactor manageDetailsHeader component to use Icon component and handle http requests in services.js\r\n13. Refactor manageEvent component to use Icon component and handle http requests in services.js\r\n14. Refactor manageFacilities component to use Icon component and handle http requests in services.js\r\n15. Refactor navbar component to use Icon component\r\n16. Refactor profile component to handle http requests in services.js\r\n17. Refactor sidebar and recoverPassword components to use Icon component\r\n18. Refactor signin and signup components to use Icon component and handle http requests in services.js\r\n19. Refactor userList component to handle http requests in services.js\r\n\r\n#### How should this be manually tested?\r\nOn the terminal, run command:\r\n1. `npm run start`\r\n2. `npm run client`\r\n3. On the browser, login to the app and test features affected to ensure that they still work as before\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? (If applicable)\r\n[#157219929](https://www.pivotaltracker.com/story/show/157219929)\r\n\r\n#### Screenshots (If applicable)\r\n","created_at":"2018-05-07T12:28:03Z","updated_at":"2018-05-07T12:31:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e8272771820399d27710e902fc8492131820fcd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nzediegwu1/EventManager/pulls/90/commits","review_comments_url":"https://api.github.com/repos/nzediegwu1/EventManager/pulls/90/comments","review_comment_url":"https://api.github.com/repos/nzediegwu1/EventManager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nzediegwu1/EventManager/issues/90/comments","statuses_url":"https://api.github.com/repos/nzediegwu1/EventManager/statuses/f19c835d44673f2491bf0cfb35fbf2997a46d5b7","head":{"label":"nzediegwu1:fx/code-refactoring-157219929","ref":"fx/code-refactoring-157219929","sha":"f19c835d44673f2491bf0cfb35fbf2997a46d5b7","user":{"login":"nzediegwu1","id":29695968,"avatar_url":"https://avatars1.githubusercontent.com/u/29695968?v=4","gravatar_id":"","url":"https://api.github.com/users/nzediegwu1","html_url":"https://github.com/nzediegwu1","followers_url":"https://api.github.com/users/nzediegwu1/followers","following_url":"https://api.github.com/users/nzediegwu1/following{/other_user}","gists_url":"https://api.github.com/users/nzediegwu1/gists{/gist_id}","starred_url":"https://api.github.com/users/nzediegwu1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzediegwu1/subscriptions","organizations_url":"https://api.github.com/users/nzediegwu1/orgs","repos_url":"https://api.github.com/users/nzediegwu1/repos","events_url":"https://api.github.com/users/nzediegwu1/events{/privacy}","received_events_url":"https://api.github.com/users/nzediegwu1/received_events","type":"User","site_admin":false},"repo":{"id":110665166,"name":"EventManager","full_name":"nzediegwu1/EventManager","owner":{"login":"nzediegwu1","id":29695968,"avatar_url":"https://avatars1.githubusercontent.com/u/29695968?v=4","gravatar_id":"","url":"https://api.github.com/users/nzediegwu1","html_url":"https://github.com/nzediegwu1","followers_url":"https://api.github.com/users/nzediegwu1/followers","following_url":"https://api.github.com/users/nzediegwu1/following{/other_user}","gists_url":"https://api.github.com/users/nzediegwu1/gists{/gist_id}","starred_url":"https://api.github.com/users/nzediegwu1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzediegwu1/subscriptions","organizations_url":"https://api.github.com/users/nzediegwu1/orgs","repos_url":"https://api.github.com/users/nzediegwu1/repos","events_url":"https://api.github.com/users/nzediegwu1/events{/privacy}","received_events_url":"https://api.github.com/users/nzediegwu1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nzediegwu1/EventManager","description":"Given you manage an events center, this app will help you accept applications to use your center/facilities, and will either decline events when the proposed day is already taken, or suggest an available day","fork":false,"url":"https://api.github.com/repos/nzediegwu1/EventManager","forks_url":"https://api.github.com/repos/nzediegwu1/EventManager/forks","keys_url":"https://api.github.com/repos/nzediegwu1/EventManager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nzediegwu1/EventManager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nzediegwu1/EventManager/teams","hooks_url":"https://api.github.com/repos/nzediegwu1/EventManager/hooks","issue_events_url":"https://api.github.com/repos/nzediegwu1/EventManager/issues/events{/number}","events_url":"https://api.github.com/repos/nzediegwu1/EventManager/events","assignees_url":"https://api.github.com/repos/nzediegwu1/EventManager/assignees{/user}","branches_url":"https://api.github.com/repos/nzediegwu1/EventManager/branches{/branch}","tags_url":"https://api.github.com/repos/nzediegwu1/EventManager/tags","blobs_url":"https://api.github.com/repos/nzediegwu1/EventManager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nzediegwu1/EventManager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nzediegwu1/EventManager/git/refs{/sha}","trees_url":"https://api.github.com/repos/nzediegwu1/EventManager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nzediegwu1/EventManager/statuses/{sha}","languages_url":"https://api.github.com/repos/nzediegwu1/EventManager/languages","stargazers_url":"https://api.github.com/repos/nzediegwu1/EventManager/stargazers","contributors_url":"https://api.github.com/repos/nzediegwu1/EventManager/contributors","subscribers_url":"https://api.github.com/repos/nzediegwu1/EventManager/subscribers","subscription_url":"https://api.github.com/repos/nzediegwu1/EventManager/subscription","commits_url":"https://api.github.com/repos/nzediegwu1/EventManager/commits{/sha}","git_commits_url":"https://api.github.com/repos/nzediegwu1/EventManager/git/commits{/sha}","comments_url":"https://api.github.com/repos/nzediegwu1/EventManager/comments{/number}","issue_comment_url":"https://api.github.com/repos/nzediegwu1/EventManager/issues/comments{/number}","contents_url":"https://api.github.com/repos/nzediegwu1/EventManager/contents/{+path}","compare_url":"https://api.github.com/repos/nzediegwu1/EventManager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nzediegwu1/EventManager/merges","archive_url":"https://api.github.com/repos/nzediegwu1/EventManager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nzediegwu1/EventManager/downloads","issues_url":"https://api.github.com/repos/nzediegwu1/EventManager/issues{/number}","pulls_url":"https://api.github.com/repos/nzediegwu1/EventManager/pulls{/number}","milestones_url":"https://api.github.com/repos/nzediegwu1/EventManager/milestones{/number}","notifications_url":"https://api.github.com/repos/nzediegwu1/EventManager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nzediegwu1/EventManager/labels{/name}","releases_url":"https://api.github.com/repos/nzediegwu1/EventManager/releases{/id}","deployments_url":"https://api.github.com/repos/nzediegwu1/EventManager/deployments","created_at":"2017-11-14T08:56:01Z","updated_at":"2018-04-30T06:26:38Z","pushed_at":"2018-05-07T12:30:47Z","git_url":"git://github.com/nzediegwu1/EventManager.git","ssh_url":"git@github.com:nzediegwu1/EventManager.git","clone_url":"https://github.com/nzediegwu1/EventManager.git","svn_url":"https://github.com/nzediegwu1/EventManager","homepage":"https://eventmanageronline.herokuapp.com","size":5698,"stargazers_count":2,"watchers_count":2,"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":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":2,"watchers":2,"default_branch":"develop"}},"base":{"label":"nzediegwu1:develop","ref":"develop","sha":"ad782fd2744abf85e3e2ba73837b9fdab33affd5","user":{"login":"nzediegwu1","id":29695968,"avatar_url":"https://avatars1.githubusercontent.com/u/29695968?v=4","gravatar_id":"","url":"https://api.github.com/users/nzediegwu1","html_url":"https://github.com/nzediegwu1","followers_url":"https://api.github.com/users/nzediegwu1/followers","following_url":"https://api.github.com/users/nzediegwu1/following{/other_user}","gists_url":"https://api.github.com/users/nzediegwu1/gists{/gist_id}","starred_url":"https://api.github.com/users/nzediegwu1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzediegwu1/subscriptions","organizations_url":"https://api.github.com/users/nzediegwu1/orgs","repos_url":"https://api.github.com/users/nzediegwu1/repos","events_url":"https://api.github.com/users/nzediegwu1/events{/privacy}","received_events_url":"https://api.github.com/users/nzediegwu1/received_events","type":"User","site_admin":false},"repo":{"id":110665166,"name":"EventManager","full_name":"nzediegwu1/EventManager","owner":{"login":"nzediegwu1","id":29695968,"avatar_url":"https://avatars1.githubusercontent.com/u/29695968?v=4","gravatar_id":"","url":"https://api.github.com/users/nzediegwu1","html_url":"https://github.com/nzediegwu1","followers_url":"https://api.github.com/users/nzediegwu1/followers","following_url":"https://api.github.com/users/nzediegwu1/following{/other_user}","gists_url":"https://api.github.com/users/nzediegwu1/gists{/gist_id}","starred_url":"https://api.github.com/users/nzediegwu1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzediegwu1/subscriptions","organizations_url":"https://api.github.com/users/nzediegwu1/orgs","repos_url":"https://api.github.com/users/nzediegwu1/repos","events_url":"https://api.github.com/users/nzediegwu1/events{/privacy}","received_events_url":"https://api.github.com/users/nzediegwu1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nzediegwu1/EventManager","description":"Given you manage an events center, this app will help you accept applications to use your center/facilities, and will either decline events when the proposed day is already taken, or suggest an available day","fork":false,"url":"https://api.github.com/repos/nzediegwu1/EventManager","forks_url":"https://api.github.com/repos/nzediegwu1/EventManager/forks","keys_url":"https://api.github.com/repos/nzediegwu1/EventManager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nzediegwu1/EventManager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nzediegwu1/EventManager/teams","hooks_url":"https://api.github.com/repos/nzediegwu1/EventManager/hooks","issue_events_url":"https://api.github.com/repos/nzediegwu1/EventManager/issues/events{/number}","events_url":"https://api.github.com/repos/nzediegwu1/EventManager/events","assignees_url":"https://api.github.com/repos/nzediegwu1/EventManager/assignees{/user}","branches_url":"https://api.github.com/repos/nzediegwu1/EventManager/branches{/branch}","tags_url":"https://api.github.com/repos/nzediegwu1/EventManager/tags","blobs_url":"https://api.github.com/repos/nzediegwu1/EventManager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nzediegwu1/EventManager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nzediegwu1/EventManager/git/refs{/sha}","trees_url":"https://api.github.com/repos/nzediegwu1/EventManager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nzediegwu1/EventManager/statuses/{sha}","languages_url":"https://api.github.com/repos/nzediegwu1/EventManager/languages","stargazers_url":"https://api.github.com/repos/nzediegwu1/EventManager/stargazers","contributors_url":"https://api.github.com/repos/nzediegwu1/EventManager/contributors","subscribers_url":"https://api.github.com/repos/nzediegwu1/EventManager/subscribers","subscription_url":"https://api.github.com/repos/nzediegwu1/EventManager/subscription","commits_url":"https://api.github.com/repos/nzediegwu1/EventManager/commits{/sha}","git_commits_url":"https://api.github.com/repos/nzediegwu1/EventManager/git/commits{/sha}","comments_url":"https://api.github.com/repos/nzediegwu1/EventManager/comments{/number}","issue_comment_url":"https://api.github.com/repos/nzediegwu1/EventManager/issues/comments{/number}","contents_url":"https://api.github.com/repos/nzediegwu1/EventManager/contents/{+path}","compare_url":"https://api.github.com/repos/nzediegwu1/EventManager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nzediegwu1/EventManager/merges","archive_url":"https://api.github.com/repos/nzediegwu1/EventManager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nzediegwu1/EventManager/downloads","issues_url":"https://api.github.com/repos/nzediegwu1/EventManager/issues{/number}","pulls_url":"https://api.github.com/repos/nzediegwu1/EventManager/pulls{/number}","milestones_url":"https://api.github.com/repos/nzediegwu1/EventManager/milestones{/number}","notifications_url":"https://api.github.com/repos/nzediegwu1/EventManager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nzediegwu1/EventManager/labels{/name}","releases_url":"https://api.github.com/repos/nzediegwu1/EventManager/releases{/id}","deployments_url":"https://api.github.com/repos/nzediegwu1/EventManager/deployments","created_at":"2017-11-14T08:56:01Z","updated_at":"2018-04-30T06:26:38Z","pushed_at":"2018-05-07T12:30:47Z","git_url":"git://github.com/nzediegwu1/EventManager.git","ssh_url":"git@github.com:nzediegwu1/EventManager.git","clone_url":"https://github.com/nzediegwu1/EventManager.git","svn_url":"https://github.com/nzediegwu1/EventManager","homepage":"https://eventmanageronline.herokuapp.com","size":5698,"stargazers_count":2,"watchers_count":2,"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":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":2,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/nzediegwu1/EventManager/pulls/90"},"html":{"href":"https://github.com/nzediegwu1/EventManager/pull/90"},"issue":{"href":"https://api.github.com/repos/nzediegwu1/EventManager/issues/90"},"comments":{"href":"https://api.github.com/repos/nzediegwu1/EventManager/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/nzediegwu1/EventManager/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/nzediegwu1/EventManager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nzediegwu1/EventManager/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/nzediegwu1/EventManager/statuses/f19c835d44673f2491bf0cfb35fbf2997a46d5b7"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}