{"action":"opened","number":63,"pull_request":{"url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/pulls/63","id":191677591,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxNjc3NTkx","html_url":"https://github.com/madeofhuman/Maintenance-Tracker-App/pull/63","diff_url":"https://github.com/madeofhuman/Maintenance-Tracker-App/pull/63.diff","patch_url":"https://github.com/madeofhuman/Maintenance-Tracker-App/pull/63.patch","issue_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/issues/63","number":63,"state":"open","locked":false,"title":"#157954446 abstract more functions and add more tests","user":{"login":"madeofhuman","id":7345686,"node_id":"MDQ6VXNlcjczNDU2ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/7345686?v=4","gravatar_id":"","url":"https://api.github.com/users/madeofhuman","html_url":"https://github.com/madeofhuman","followers_url":"https://api.github.com/users/madeofhuman/followers","following_url":"https://api.github.com/users/madeofhuman/following{/other_user}","gists_url":"https://api.github.com/users/madeofhuman/gists{/gist_id}","starred_url":"https://api.github.com/users/madeofhuman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madeofhuman/subscriptions","organizations_url":"https://api.github.com/users/madeofhuman/orgs","repos_url":"https://api.github.com/users/madeofhuman/repos","events_url":"https://api.github.com/users/madeofhuman/events{/privacy}","received_events_url":"https://api.github.com/users/madeofhuman/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nAbstracts more functions in RequestController and creates more tests\r\n\r\n#### Description of Task to be completed?\r\n- Abstract more functions into helper methods\r\n- Write more tests to catch more edge cases\r\n\r\n#### How should this be manually tested?\r\nN/A\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\n[#157901375](https://www.pivotaltracker.com/story/show/157901375)\r\n[#157992012](https://www.pivotaltracker.com/story/show/157992012)\r\n\r\n#### Screenshots (if appropriate)\r\nN/A\r\n\r\n#### Questions:\r\nN/A\r\n\r\n[Delivers #157901375 #157992012] ","created_at":"2018-05-31T08:21:11Z","updated_at":"2018-05-31T08:21:11Z","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/madeofhuman/Maintenance-Tracker-App/pulls/63/commits","review_comments_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/pulls/63/comments","review_comment_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/pulls/comments{/number}","comments_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/issues/63/comments","statuses_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/statuses/3b69394edec0fb6d0d90ee250bc73d014c299b27","head":{"label":"madeofhuman:157954446-bug-valdiate-request-body","ref":"157954446-bug-valdiate-request-body","sha":"3b69394edec0fb6d0d90ee250bc73d014c299b27","user":{"login":"madeofhuman","id":7345686,"node_id":"MDQ6VXNlcjczNDU2ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/7345686?v=4","gravatar_id":"","url":"https://api.github.com/users/madeofhuman","html_url":"https://github.com/madeofhuman","followers_url":"https://api.github.com/users/madeofhuman/followers","following_url":"https://api.github.com/users/madeofhuman/following{/other_user}","gists_url":"https://api.github.com/users/madeofhuman/gists{/gist_id}","starred_url":"https://api.github.com/users/madeofhuman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madeofhuman/subscriptions","organizations_url":"https://api.github.com/users/madeofhuman/orgs","repos_url":"https://api.github.com/users/madeofhuman/repos","events_url":"https://api.github.com/users/madeofhuman/events{/privacy}","received_events_url":"https://api.github.com/users/madeofhuman/received_events","type":"User","site_admin":false},"repo":{"id":132650083,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI2NTAwODM=","name":"Maintenance-Tracker-App","full_name":"madeofhuman/Maintenance-Tracker-App","owner":{"login":"madeofhuman","id":7345686,"node_id":"MDQ6VXNlcjczNDU2ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/7345686?v=4","gravatar_id":"","url":"https://api.github.com/users/madeofhuman","html_url":"https://github.com/madeofhuman","followers_url":"https://api.github.com/users/madeofhuman/followers","following_url":"https://api.github.com/users/madeofhuman/following{/other_user}","gists_url":"https://api.github.com/users/madeofhuman/gists{/gist_id}","starred_url":"https://api.github.com/users/madeofhuman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madeofhuman/subscriptions","organizations_url":"https://api.github.com/users/madeofhuman/orgs","repos_url":"https://api.github.com/users/madeofhuman/repos","events_url":"https://api.github.com/users/madeofhuman/events{/privacy}","received_events_url":"https://api.github.com/users/madeofhuman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/madeofhuman/Maintenance-Tracker-App","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/madeofhuman/Maintenance-Tracker-App","forks_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/forks","keys_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/teams","hooks_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/hooks","issue_events_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/issues/events{/number}","events_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/events","assignees_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/assignees{/user}","branches_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/branches{/branch}","tags_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/tags","blobs_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/git/refs{/sha}","trees_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/statuses/{sha}","languages_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/languages","stargazers_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/stargazers","contributors_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/contributors","subscribers_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/subscribers","subscription_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/subscription","commits_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/commits{/sha}","git_commits_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/git/commits{/sha}","comments_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/comments{/number}","issue_comment_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/issues/comments{/number}","contents_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/contents/{+path}","compare_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/merges","archive_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/downloads","issues_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/issues{/number}","pulls_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/pulls{/number}","milestones_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/milestones{/number}","notifications_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/labels{/name}","releases_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/releases{/id}","deployments_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/deployments","created_at":"2018-05-08T18:39:22Z","updated_at":"2018-05-30T20:54:35Z","pushed_at":"2018-05-31T07:05:49Z","git_url":"git://github.com/madeofhuman/Maintenance-Tracker-App.git","ssh_url":"git@github.com:madeofhuman/Maintenance-Tracker-App.git","clone_url":"https://github.com/madeofhuman/Maintenance-Tracker-App.git","svn_url":"https://github.com/madeofhuman/Maintenance-Tracker-App","homepage":null,"size":6950,"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":"staging-api-v1"}},"base":{"label":"madeofhuman:staging-api-v1","ref":"staging-api-v1","sha":"d292be9656ae054b94b4d07a164af54617e98179","user":{"login":"madeofhuman","id":7345686,"node_id":"MDQ6VXNlcjczNDU2ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/7345686?v=4","gravatar_id":"","url":"https://api.github.com/users/madeofhuman","html_url":"https://github.com/madeofhuman","followers_url":"https://api.github.com/users/madeofhuman/followers","following_url":"https://api.github.com/users/madeofhuman/following{/other_user}","gists_url":"https://api.github.com/users/madeofhuman/gists{/gist_id}","starred_url":"https://api.github.com/users/madeofhuman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madeofhuman/subscriptions","organizations_url":"https://api.github.com/users/madeofhuman/orgs","repos_url":"https://api.github.com/users/madeofhuman/repos","events_url":"https://api.github.com/users/madeofhuman/events{/privacy}","received_events_url":"https://api.github.com/users/madeofhuman/received_events","type":"User","site_admin":false},"repo":{"id":132650083,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI2NTAwODM=","name":"Maintenance-Tracker-App","full_name":"madeofhuman/Maintenance-Tracker-App","owner":{"login":"madeofhuman","id":7345686,"node_id":"MDQ6VXNlcjczNDU2ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/7345686?v=4","gravatar_id":"","url":"https://api.github.com/users/madeofhuman","html_url":"https://github.com/madeofhuman","followers_url":"https://api.github.com/users/madeofhuman/followers","following_url":"https://api.github.com/users/madeofhuman/following{/other_user}","gists_url":"https://api.github.com/users/madeofhuman/gists{/gist_id}","starred_url":"https://api.github.com/users/madeofhuman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madeofhuman/subscriptions","organizations_url":"https://api.github.com/users/madeofhuman/orgs","repos_url":"https://api.github.com/users/madeofhuman/repos","events_url":"https://api.github.com/users/madeofhuman/events{/privacy}","received_events_url":"https://api.github.com/users/madeofhuman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/madeofhuman/Maintenance-Tracker-App","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/madeofhuman/Maintenance-Tracker-App","forks_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/forks","keys_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/teams","hooks_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/hooks","issue_events_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/issues/events{/number}","events_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/events","assignees_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/assignees{/user}","branches_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/branches{/branch}","tags_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/tags","blobs_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/git/refs{/sha}","trees_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/statuses/{sha}","languages_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/languages","stargazers_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/stargazers","contributors_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/contributors","subscribers_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/subscribers","subscription_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/subscription","commits_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/commits{/sha}","git_commits_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/git/commits{/sha}","comments_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/comments{/number}","issue_comment_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/issues/comments{/number}","contents_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/contents/{+path}","compare_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/merges","archive_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/downloads","issues_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/issues{/number}","pulls_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/pulls{/number}","milestones_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/milestones{/number}","notifications_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/labels{/name}","releases_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/releases{/id}","deployments_url":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/deployments","created_at":"2018-05-08T18:39:22Z","updated_at":"2018-05-30T20:54:35Z","pushed_at":"2018-05-31T07:05:49Z","git_url":"git://github.com/madeofhuman/Maintenance-Tracker-App.git","ssh_url":"git@github.com:madeofhuman/Maintenance-Tracker-App.git","clone_url":"https://github.com/madeofhuman/Maintenance-Tracker-App.git","svn_url":"https://github.com/madeofhuman/Maintenance-Tracker-App","homepage":null,"size":6950,"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":"staging-api-v1"}},"_links":{"self":{"href":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/pulls/63"},"html":{"href":"https://github.com/madeofhuman/Maintenance-Tracker-App/pull/63"},"issue":{"href":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/issues/63"},"comments":{"href":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/madeofhuman/Maintenance-Tracker-App/statuses/3b69394edec0fb6d0d90ee250bc73d014c299b27"}},"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":2,"additions":254,"deletions":160,"changed_files":3}}
{"actor":{"display_login":"madeofhuman"}}