{"action":"created","comment":{"url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/pulls/comments/197365423","pull_request_review_id":131095840,"id":197365423,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzM2NTQyMw==","diff_hunk":"@@ -0,0 +1,72 @@\n+import { getImgUrl, handleResponse } from './../services/services'","path":"server/src/middlewares/validateUsers.js","position":1,"original_position":1,"commit_id":"773438def167faaab2361bde9890a4aff92e1ad3","original_commit_id":"773438def167faaab2361bde9890a4aff92e1ad3","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":"Parsing error: 'import' and 'export' may appear only with 'sourceType: module'","created_at":"2018-06-22T07:48:44Z","updated_at":"2018-06-22T07:48:46Z","html_url":"https://github.com/tutugodfrey/maintenance-tracker/pull/71#discussion_r197365423","pull_request_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/pulls/71","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/pulls/comments/197365423"},"html":{"href":"https://github.com/tutugodfrey/maintenance-tracker/pull/71#discussion_r197365423"},"pull_request":{"href":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/pulls/71","id":196662056,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2NjYyMDU2","html_url":"https://github.com/tutugodfrey/maintenance-tracker/pull/71","diff_url":"https://github.com/tutugodfrey/maintenance-tracker/pull/71.diff","patch_url":"https://github.com/tutugodfrey/maintenance-tracker/pull/71.patch","issue_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/issues/71","number":71,"state":"open","locked":false,"title":"Ch code cleanup 158479388","user":{"login":"tutugodfrey","id":30448913,"node_id":"MDQ6VXNlcjMwNDQ4OTEz","avatar_url":"https://avatars1.githubusercontent.com/u/30448913?v=4","gravatar_id":"","url":"https://api.github.com/users/tutugodfrey","html_url":"https://github.com/tutugodfrey","followers_url":"https://api.github.com/users/tutugodfrey/followers","following_url":"https://api.github.com/users/tutugodfrey/following{/other_user}","gists_url":"https://api.github.com/users/tutugodfrey/gists{/gist_id}","starred_url":"https://api.github.com/users/tutugodfrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tutugodfrey/subscriptions","organizations_url":"https://api.github.com/users/tutugodfrey/orgs","repos_url":"https://api.github.com/users/tutugodfrey/repos","events_url":"https://api.github.com/users/tutugodfrey/events{/privacy}","received_events_url":"https://api.github.com/users/tutugodfrey/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nrefactor and modify codes to be more readable and lean\r\n\r\n#### Description of Task to be completed?\r\n* refactor app.js and routes/index.js\r\n* add validation middlewares to validate inputs before processing requests\r\n* abstract responses to /services/handleResponse \r\n\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n#158479388","created_at":"2018-06-22T07:48:27Z","updated_at":"2018-06-22T07:48:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5f7ffd9404032efd1684e9fd832c1f4342c82a8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/pulls/71/commits","review_comments_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/pulls/71/comments","review_comment_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/issues/71/comments","statuses_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/statuses/773438def167faaab2361bde9890a4aff92e1ad3","head":{"label":"tutugodfrey:ch-code-cleanup-158479388","ref":"ch-code-cleanup-158479388","sha":"773438def167faaab2361bde9890a4aff92e1ad3","user":{"login":"tutugodfrey","id":30448913,"node_id":"MDQ6VXNlcjMwNDQ4OTEz","avatar_url":"https://avatars1.githubusercontent.com/u/30448913?v=4","gravatar_id":"","url":"https://api.github.com/users/tutugodfrey","html_url":"https://github.com/tutugodfrey","followers_url":"https://api.github.com/users/tutugodfrey/followers","following_url":"https://api.github.com/users/tutugodfrey/following{/other_user}","gists_url":"https://api.github.com/users/tutugodfrey/gists{/gist_id}","starred_url":"https://api.github.com/users/tutugodfrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tutugodfrey/subscriptions","organizations_url":"https://api.github.com/users/tutugodfrey/orgs","repos_url":"https://api.github.com/users/tutugodfrey/repos","events_url":"https://api.github.com/users/tutugodfrey/events{/privacy}","received_events_url":"https://api.github.com/users/tutugodfrey/received_events","type":"User","site_admin":false},"repo":{"id":132527472,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1Mjc0NzI=","name":"maintenance-tracker","full_name":"tutugodfrey/maintenance-tracker","owner":{"login":"tutugodfrey","id":30448913,"node_id":"MDQ6VXNlcjMwNDQ4OTEz","avatar_url":"https://avatars1.githubusercontent.com/u/30448913?v=4","gravatar_id":"","url":"https://api.github.com/users/tutugodfrey","html_url":"https://github.com/tutugodfrey","followers_url":"https://api.github.com/users/tutugodfrey/followers","following_url":"https://api.github.com/users/tutugodfrey/following{/other_user}","gists_url":"https://api.github.com/users/tutugodfrey/gists{/gist_id}","starred_url":"https://api.github.com/users/tutugodfrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tutugodfrey/subscriptions","organizations_url":"https://api.github.com/users/tutugodfrey/orgs","repos_url":"https://api.github.com/users/tutugodfrey/repos","events_url":"https://api.github.com/users/tutugodfrey/events{/privacy}","received_events_url":"https://api.github.com/users/tutugodfrey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tutugodfrey/maintenance-tracker","description":"Maintenance tracker is a platform that allows users to reach out to maintenance department for repairs and to track the progress of the process","fork":false,"url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker","forks_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/forks","keys_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/teams","hooks_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/hooks","issue_events_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/events","assignees_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/tags","blobs_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/languages","stargazers_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/stargazers","contributors_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/contributors","subscribers_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/subscribers","subscription_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/subscription","commits_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/merges","archive_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/downloads","issues_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/labels{/name}","releases_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/releases{/id}","deployments_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/deployments","created_at":"2018-05-07T23:31:03Z","updated_at":"2018-06-21T12:11:42Z","pushed_at":"2018-06-22T07:48:28Z","git_url":"git://github.com/tutugodfrey/maintenance-tracker.git","ssh_url":"git@github.com:tutugodfrey/maintenance-tracker.git","clone_url":"https://github.com/tutugodfrey/maintenance-tracker.git","svn_url":"https://github.com/tutugodfrey/maintenance-tracker","homepage":null,"size":1972,"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":"tutugodfrey:develop","ref":"develop","sha":"7fb0b192311b32c8b15af7be8d1b57936d35a05a","user":{"login":"tutugodfrey","id":30448913,"node_id":"MDQ6VXNlcjMwNDQ4OTEz","avatar_url":"https://avatars1.githubusercontent.com/u/30448913?v=4","gravatar_id":"","url":"https://api.github.com/users/tutugodfrey","html_url":"https://github.com/tutugodfrey","followers_url":"https://api.github.com/users/tutugodfrey/followers","following_url":"https://api.github.com/users/tutugodfrey/following{/other_user}","gists_url":"https://api.github.com/users/tutugodfrey/gists{/gist_id}","starred_url":"https://api.github.com/users/tutugodfrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tutugodfrey/subscriptions","organizations_url":"https://api.github.com/users/tutugodfrey/orgs","repos_url":"https://api.github.com/users/tutugodfrey/repos","events_url":"https://api.github.com/users/tutugodfrey/events{/privacy}","received_events_url":"https://api.github.com/users/tutugodfrey/received_events","type":"User","site_admin":false},"repo":{"id":132527472,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1Mjc0NzI=","name":"maintenance-tracker","full_name":"tutugodfrey/maintenance-tracker","owner":{"login":"tutugodfrey","id":30448913,"node_id":"MDQ6VXNlcjMwNDQ4OTEz","avatar_url":"https://avatars1.githubusercontent.com/u/30448913?v=4","gravatar_id":"","url":"https://api.github.com/users/tutugodfrey","html_url":"https://github.com/tutugodfrey","followers_url":"https://api.github.com/users/tutugodfrey/followers","following_url":"https://api.github.com/users/tutugodfrey/following{/other_user}","gists_url":"https://api.github.com/users/tutugodfrey/gists{/gist_id}","starred_url":"https://api.github.com/users/tutugodfrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tutugodfrey/subscriptions","organizations_url":"https://api.github.com/users/tutugodfrey/orgs","repos_url":"https://api.github.com/users/tutugodfrey/repos","events_url":"https://api.github.com/users/tutugodfrey/events{/privacy}","received_events_url":"https://api.github.com/users/tutugodfrey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tutugodfrey/maintenance-tracker","description":"Maintenance tracker is a platform that allows users to reach out to maintenance department for repairs and to track the progress of the process","fork":false,"url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker","forks_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/forks","keys_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/teams","hooks_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/hooks","issue_events_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/events","assignees_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/tags","blobs_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/languages","stargazers_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/stargazers","contributors_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/contributors","subscribers_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/subscribers","subscription_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/subscription","commits_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/merges","archive_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/downloads","issues_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/labels{/name}","releases_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/releases{/id}","deployments_url":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/deployments","created_at":"2018-05-07T23:31:03Z","updated_at":"2018-06-21T12:11:42Z","pushed_at":"2018-06-22T07:48:28Z","git_url":"git://github.com/tutugodfrey/maintenance-tracker.git","ssh_url":"git@github.com:tutugodfrey/maintenance-tracker.git","clone_url":"https://github.com/tutugodfrey/maintenance-tracker.git","svn_url":"https://github.com/tutugodfrey/maintenance-tracker","homepage":null,"size":1972,"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/tutugodfrey/maintenance-tracker/pulls/71"},"html":{"href":"https://github.com/tutugodfrey/maintenance-tracker/pull/71"},"issue":{"href":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/issues/71"},"comments":{"href":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/tutugodfrey/maintenance-tracker/statuses/773438def167faaab2361bde9890a4aff92e1ad3"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}