{"action":"opened","number":47,"pull_request":{"url":"https://api.github.com/repos/mppdg/maintenancetracker/pulls/47","id":192431453,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyNDMxNDUz","html_url":"https://github.com/mppdg/maintenancetracker/pull/47","diff_url":"https://github.com/mppdg/maintenancetracker/pull/47.diff","patch_url":"https://github.com/mppdg/maintenancetracker/pull/47.patch","issue_url":"https://api.github.com/repos/mppdg/maintenancetracker/issues/47","number":47,"state":"open","locked":false,"title":"Extenstion of PR 46","user":{"login":"mppdg","id":39072402,"node_id":"MDQ6VXNlcjM5MDcyNDAy","avatar_url":"https://avatars2.githubusercontent.com/u/39072402?v=4","gravatar_id":"","url":"https://api.github.com/users/mppdg","html_url":"https://github.com/mppdg","followers_url":"https://api.github.com/users/mppdg/followers","following_url":"https://api.github.com/users/mppdg/following{/other_user}","gists_url":"https://api.github.com/users/mppdg/gists{/gist_id}","starred_url":"https://api.github.com/users/mppdg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mppdg/subscriptions","organizations_url":"https://api.github.com/users/mppdg/orgs","repos_url":"https://api.github.com/users/mppdg/repos","events_url":"https://api.github.com/users/mppdg/events{/privacy}","received_events_url":"https://api.github.com/users/mppdg/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\n- This PR adds a Validator helper class with methods for handling form inputs validation\r\n\r\n**Description of Task to be completed?**\r\n- Create a Validator class with methods to ensure all form fields are validated\r\n- Ensure validated fields return a specific and descriptive error message\r\n- Do validation as middleware to separate validation concern from controller logic\r\n\r\n**How should this be manually tested?**\r\n- Run npm run test on your terminal\r\n - Test automatically by TravisCI when a push or pull request event occurs\r\n\r\n**Any background context you want to provide?**\r\n-None\r\n\r\n**What are the relevant pivotal tracker stories?**\r\n#158070827","created_at":"2018-06-04T14:43:44Z","updated_at":"2018-06-04T14:43:44Z","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/mppdg/maintenancetracker/pulls/47/commits","review_comments_url":"https://api.github.com/repos/mppdg/maintenancetracker/pulls/47/comments","review_comment_url":"https://api.github.com/repos/mppdg/maintenancetracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mppdg/maintenancetracker/issues/47/comments","statuses_url":"https://api.github.com/repos/mppdg/maintenancetracker/statuses/2ad093fd71ea6e3c87dba5df963e70771e70ff40","head":{"label":"mppdg:ch-modularize-validation-158070827","ref":"ch-modularize-validation-158070827","sha":"2ad093fd71ea6e3c87dba5df963e70771e70ff40","user":{"login":"mppdg","id":39072402,"node_id":"MDQ6VXNlcjM5MDcyNDAy","avatar_url":"https://avatars2.githubusercontent.com/u/39072402?v=4","gravatar_id":"","url":"https://api.github.com/users/mppdg","html_url":"https://github.com/mppdg","followers_url":"https://api.github.com/users/mppdg/followers","following_url":"https://api.github.com/users/mppdg/following{/other_user}","gists_url":"https://api.github.com/users/mppdg/gists{/gist_id}","starred_url":"https://api.github.com/users/mppdg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mppdg/subscriptions","organizations_url":"https://api.github.com/users/mppdg/orgs","repos_url":"https://api.github.com/users/mppdg/repos","events_url":"https://api.github.com/users/mppdg/events{/privacy}","received_events_url":"https://api.github.com/users/mppdg/received_events","type":"User","site_admin":false},"repo":{"id":132749123,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI3NDkxMjM=","name":"maintenancetracker","full_name":"mppdg/maintenancetracker","owner":{"login":"mppdg","id":39072402,"node_id":"MDQ6VXNlcjM5MDcyNDAy","avatar_url":"https://avatars2.githubusercontent.com/u/39072402?v=4","gravatar_id":"","url":"https://api.github.com/users/mppdg","html_url":"https://github.com/mppdg","followers_url":"https://api.github.com/users/mppdg/followers","following_url":"https://api.github.com/users/mppdg/following{/other_user}","gists_url":"https://api.github.com/users/mppdg/gists{/gist_id}","starred_url":"https://api.github.com/users/mppdg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mppdg/subscriptions","organizations_url":"https://api.github.com/users/mppdg/orgs","repos_url":"https://api.github.com/users/mppdg/repos","events_url":"https://api.github.com/users/mppdg/events{/privacy}","received_events_url":"https://api.github.com/users/mppdg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mppdg/maintenancetracker","description":"Maintenance Tracker App is an application that provides users with the ability to reach out to operations or repairs department regarding repair or maintenance requests and monitor the status of their request.","fork":false,"url":"https://api.github.com/repos/mppdg/maintenancetracker","forks_url":"https://api.github.com/repos/mppdg/maintenancetracker/forks","keys_url":"https://api.github.com/repos/mppdg/maintenancetracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mppdg/maintenancetracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mppdg/maintenancetracker/teams","hooks_url":"https://api.github.com/repos/mppdg/maintenancetracker/hooks","issue_events_url":"https://api.github.com/repos/mppdg/maintenancetracker/issues/events{/number}","events_url":"https://api.github.com/repos/mppdg/maintenancetracker/events","assignees_url":"https://api.github.com/repos/mppdg/maintenancetracker/assignees{/user}","branches_url":"https://api.github.com/repos/mppdg/maintenancetracker/branches{/branch}","tags_url":"https://api.github.com/repos/mppdg/maintenancetracker/tags","blobs_url":"https://api.github.com/repos/mppdg/maintenancetracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mppdg/maintenancetracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mppdg/maintenancetracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/mppdg/maintenancetracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mppdg/maintenancetracker/statuses/{sha}","languages_url":"https://api.github.com/repos/mppdg/maintenancetracker/languages","stargazers_url":"https://api.github.com/repos/mppdg/maintenancetracker/stargazers","contributors_url":"https://api.github.com/repos/mppdg/maintenancetracker/contributors","subscribers_url":"https://api.github.com/repos/mppdg/maintenancetracker/subscribers","subscription_url":"https://api.github.com/repos/mppdg/maintenancetracker/subscription","commits_url":"https://api.github.com/repos/mppdg/maintenancetracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/mppdg/maintenancetracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/mppdg/maintenancetracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/mppdg/maintenancetracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/mppdg/maintenancetracker/contents/{+path}","compare_url":"https://api.github.com/repos/mppdg/maintenancetracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mppdg/maintenancetracker/merges","archive_url":"https://api.github.com/repos/mppdg/maintenancetracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mppdg/maintenancetracker/downloads","issues_url":"https://api.github.com/repos/mppdg/maintenancetracker/issues{/number}","pulls_url":"https://api.github.com/repos/mppdg/maintenancetracker/pulls{/number}","milestones_url":"https://api.github.com/repos/mppdg/maintenancetracker/milestones{/number}","notifications_url":"https://api.github.com/repos/mppdg/maintenancetracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mppdg/maintenancetracker/labels{/name}","releases_url":"https://api.github.com/repos/mppdg/maintenancetracker/releases{/id}","deployments_url":"https://api.github.com/repos/mppdg/maintenancetracker/deployments","created_at":"2018-05-09T11:48:32Z","updated_at":"2018-06-04T14:08:16Z","pushed_at":"2018-06-04T14:36:13Z","git_url":"git://github.com/mppdg/maintenancetracker.git","ssh_url":"git@github.com:mppdg/maintenancetracker.git","clone_url":"https://github.com/mppdg/maintenancetracker.git","svn_url":"https://github.com/mppdg/maintenancetracker","homepage":null,"size":927,"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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"feature"}},"base":{"label":"mppdg:feature","ref":"feature","sha":"7039152f3afeff60a46abd39838e79d52d00f40e","user":{"login":"mppdg","id":39072402,"node_id":"MDQ6VXNlcjM5MDcyNDAy","avatar_url":"https://avatars2.githubusercontent.com/u/39072402?v=4","gravatar_id":"","url":"https://api.github.com/users/mppdg","html_url":"https://github.com/mppdg","followers_url":"https://api.github.com/users/mppdg/followers","following_url":"https://api.github.com/users/mppdg/following{/other_user}","gists_url":"https://api.github.com/users/mppdg/gists{/gist_id}","starred_url":"https://api.github.com/users/mppdg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mppdg/subscriptions","organizations_url":"https://api.github.com/users/mppdg/orgs","repos_url":"https://api.github.com/users/mppdg/repos","events_url":"https://api.github.com/users/mppdg/events{/privacy}","received_events_url":"https://api.github.com/users/mppdg/received_events","type":"User","site_admin":false},"repo":{"id":132749123,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI3NDkxMjM=","name":"maintenancetracker","full_name":"mppdg/maintenancetracker","owner":{"login":"mppdg","id":39072402,"node_id":"MDQ6VXNlcjM5MDcyNDAy","avatar_url":"https://avatars2.githubusercontent.com/u/39072402?v=4","gravatar_id":"","url":"https://api.github.com/users/mppdg","html_url":"https://github.com/mppdg","followers_url":"https://api.github.com/users/mppdg/followers","following_url":"https://api.github.com/users/mppdg/following{/other_user}","gists_url":"https://api.github.com/users/mppdg/gists{/gist_id}","starred_url":"https://api.github.com/users/mppdg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mppdg/subscriptions","organizations_url":"https://api.github.com/users/mppdg/orgs","repos_url":"https://api.github.com/users/mppdg/repos","events_url":"https://api.github.com/users/mppdg/events{/privacy}","received_events_url":"https://api.github.com/users/mppdg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mppdg/maintenancetracker","description":"Maintenance Tracker App is an application that provides users with the ability to reach out to operations or repairs department regarding repair or maintenance requests and monitor the status of their request.","fork":false,"url":"https://api.github.com/repos/mppdg/maintenancetracker","forks_url":"https://api.github.com/repos/mppdg/maintenancetracker/forks","keys_url":"https://api.github.com/repos/mppdg/maintenancetracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mppdg/maintenancetracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mppdg/maintenancetracker/teams","hooks_url":"https://api.github.com/repos/mppdg/maintenancetracker/hooks","issue_events_url":"https://api.github.com/repos/mppdg/maintenancetracker/issues/events{/number}","events_url":"https://api.github.com/repos/mppdg/maintenancetracker/events","assignees_url":"https://api.github.com/repos/mppdg/maintenancetracker/assignees{/user}","branches_url":"https://api.github.com/repos/mppdg/maintenancetracker/branches{/branch}","tags_url":"https://api.github.com/repos/mppdg/maintenancetracker/tags","blobs_url":"https://api.github.com/repos/mppdg/maintenancetracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mppdg/maintenancetracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mppdg/maintenancetracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/mppdg/maintenancetracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mppdg/maintenancetracker/statuses/{sha}","languages_url":"https://api.github.com/repos/mppdg/maintenancetracker/languages","stargazers_url":"https://api.github.com/repos/mppdg/maintenancetracker/stargazers","contributors_url":"https://api.github.com/repos/mppdg/maintenancetracker/contributors","subscribers_url":"https://api.github.com/repos/mppdg/maintenancetracker/subscribers","subscription_url":"https://api.github.com/repos/mppdg/maintenancetracker/subscription","commits_url":"https://api.github.com/repos/mppdg/maintenancetracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/mppdg/maintenancetracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/mppdg/maintenancetracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/mppdg/maintenancetracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/mppdg/maintenancetracker/contents/{+path}","compare_url":"https://api.github.com/repos/mppdg/maintenancetracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mppdg/maintenancetracker/merges","archive_url":"https://api.github.com/repos/mppdg/maintenancetracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mppdg/maintenancetracker/downloads","issues_url":"https://api.github.com/repos/mppdg/maintenancetracker/issues{/number}","pulls_url":"https://api.github.com/repos/mppdg/maintenancetracker/pulls{/number}","milestones_url":"https://api.github.com/repos/mppdg/maintenancetracker/milestones{/number}","notifications_url":"https://api.github.com/repos/mppdg/maintenancetracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mppdg/maintenancetracker/labels{/name}","releases_url":"https://api.github.com/repos/mppdg/maintenancetracker/releases{/id}","deployments_url":"https://api.github.com/repos/mppdg/maintenancetracker/deployments","created_at":"2018-05-09T11:48:32Z","updated_at":"2018-06-04T14:08:16Z","pushed_at":"2018-06-04T14:36:13Z","git_url":"git://github.com/mppdg/maintenancetracker.git","ssh_url":"git@github.com:mppdg/maintenancetracker.git","clone_url":"https://github.com/mppdg/maintenancetracker.git","svn_url":"https://github.com/mppdg/maintenancetracker","homepage":null,"size":927,"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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"feature"}},"_links":{"self":{"href":"https://api.github.com/repos/mppdg/maintenancetracker/pulls/47"},"html":{"href":"https://github.com/mppdg/maintenancetracker/pull/47"},"issue":{"href":"https://api.github.com/repos/mppdg/maintenancetracker/issues/47"},"comments":{"href":"https://api.github.com/repos/mppdg/maintenancetracker/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/mppdg/maintenancetracker/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/mppdg/maintenancetracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mppdg/maintenancetracker/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/mppdg/maintenancetracker/statuses/2ad093fd71ea6e3c87dba5df963e70771e70ff40"}},"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":44,"deletions":42,"changed_files":2}}
{"actor":{"display_login":"mppdg"}}