{"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls/comments/24893737","id":24893737,"diff_hunk":"@@ -133,22 +133,50 @@ def defence_request_params\n                                                          :scheme,\n                                                          :phone_number,\n                                                          :detainee_name,\n+                                                         :detainee_age,\n                                                          :time_of_arrival,\n                                                          :gender,\n                                                          :adult,\n-                                                         :date_of_birth,\n+                                                         :date_of_birth_day,\n+                                                         :date_of_birth_month,\n+                                                         :date_of_birth_year,\n                                                          :appropriate_adult,\n                                                          :custody_number,\n                                                          :allegations,\n                                                          :comments,\n-                                                         :interview_start_time,\n-                                                         :time_of_arrival,\n+                                                         :interview_start_time_hour,\n+                                                         :interview_start_time_minute,\n+                                                         :time_of_arrival_hour,\n+                                                         :time_of_arrival_minute,\n                                                          :dscc_number,\n                                                          :feedback)\n     raw_params.tap do |p|\n       email = p.delete(\"solicitor_email\")\n       solicitor = User.solicitors.find_by_email email\n       p[\"solicitor_id\"] = solicitor.id if solicitor\n+\n+      year = p.delete('date_of_birth_year')\n+      month = p.delete('date_of_birth_month')\n+      day = p.delete('date_of_birth_day')\n+      if !(day.blank? || month.blank? && year.blank?)\n+        p[\"date_of_birth\"] = DateTime.new year.to_i, month.to_i, day.to_i","path":"app/controllers/defence_requests_controller.rb","position":33,"original_position":33,"commit_id":"8e9130208e60776bd5b1d9ed37003baa68d61b5e","original_commit_id":"8e9130208e60776bd5b1d9ed37003baa68d61b5e","user":{"login":"dp6ai","id":350803,"avatar_url":"https://avatars.githubusercontent.com/u/350803?v=3","gravatar_id":"","url":"https://api.github.com/users/dp6ai","html_url":"https://github.com/dp6ai","followers_url":"https://api.github.com/users/dp6ai/followers","following_url":"https://api.github.com/users/dp6ai/following{/other_user}","gists_url":"https://api.github.com/users/dp6ai/gists{/gist_id}","starred_url":"https://api.github.com/users/dp6ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dp6ai/subscriptions","organizations_url":"https://api.github.com/users/dp6ai/orgs","repos_url":"https://api.github.com/users/dp6ai/repos","events_url":"https://api.github.com/users/dp6ai/events{/privacy}","received_events_url":"https://api.github.com/users/dp6ai/received_events","type":"User","site_admin":false},"body":"??","created_at":"2015-02-18T11:06:29Z","updated_at":"2015-02-18T11:06:29Z","html_url":"https://github.com/ministryofjustice/defence-solicitor/pull/41#discussion_r24893737","pull_request_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls/comments/24893737"},"html":{"href":"https://github.com/ministryofjustice/defence-solicitor/pull/41#discussion_r24893737"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls/41","id":29441644,"html_url":"https://github.com/ministryofjustice/defence-solicitor/pull/41","diff_url":"https://github.com/ministryofjustice/defence-solicitor/pull/41.diff","patch_url":"https://github.com/ministryofjustice/defence-solicitor/pull/41.patch","issue_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/issues/41","number":41,"state":"open","locked":false,"title":"Feature/add styling to form","user":{"login":"FriedSock","id":823643,"avatar_url":"https://avatars.githubusercontent.com/u/823643?v=3","gravatar_id":"","url":"https://api.github.com/users/FriedSock","html_url":"https://github.com/FriedSock","followers_url":"https://api.github.com/users/FriedSock/followers","following_url":"https://api.github.com/users/FriedSock/following{/other_user}","gists_url":"https://api.github.com/users/FriedSock/gists{/gist_id}","starred_url":"https://api.github.com/users/FriedSock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriedSock/subscriptions","organizations_url":"https://api.github.com/users/FriedSock/orgs","repos_url":"https://api.github.com/users/FriedSock/repos","events_url":"https://api.github.com/users/FriedSock/events{/privacy}","received_events_url":"https://api.github.com/users/FriedSock/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-17T13:29:13Z","updated_at":"2015-02-18T11:06:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88c108d2780ffa6ff22002f80cedabe8dd759884","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls/41/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls/41/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/issues/41/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/statuses/8e9130208e60776bd5b1d9ed37003baa68d61b5e","head":{"label":"ministryofjustice:feature/add_styling_to_form","ref":"feature/add_styling_to_form","sha":"8e9130208e60776bd5b1d9ed37003baa68d61b5e","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":29689999,"name":"defence-solicitor","full_name":"ministryofjustice/defence-solicitor","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/defence-solicitor","description":"DSDS - Defence Solicitor Deployment Service (Duty Solicitors)","fork":false,"url":"https://api.github.com/repos/ministryofjustice/defence-solicitor","forks_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/forks","keys_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/events","assignees_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/issues/comments/{number}","contents_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/merges","archive_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/releases{/id}","created_at":"2015-01-22T17:11:39Z","updated_at":"2015-02-17T11:56:41Z","pushed_at":"2015-02-17T17:23:33Z","git_url":"git://github.com/ministryofjustice/defence-solicitor.git","ssh_url":"git@github.com:ministryofjustice/defence-solicitor.git","clone_url":"https://github.com/ministryofjustice/defence-solicitor.git","svn_url":"https://github.com/ministryofjustice/defence-solicitor","homepage":"","size":1028,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"6465ceeb71cf49a7b02a977cdf7f6e8eb21420a8","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":29689999,"name":"defence-solicitor","full_name":"ministryofjustice/defence-solicitor","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/defence-solicitor","description":"DSDS - Defence Solicitor Deployment Service (Duty Solicitors)","fork":false,"url":"https://api.github.com/repos/ministryofjustice/defence-solicitor","forks_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/forks","keys_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/events","assignees_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/issues/comments/{number}","contents_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/merges","archive_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/defence-solicitor/releases{/id}","created_at":"2015-01-22T17:11:39Z","updated_at":"2015-02-17T11:56:41Z","pushed_at":"2015-02-17T17:23:33Z","git_url":"git://github.com/ministryofjustice/defence-solicitor.git","ssh_url":"git@github.com:ministryofjustice/defence-solicitor.git","clone_url":"https://github.com/ministryofjustice/defence-solicitor.git","svn_url":"https://github.com/ministryofjustice/defence-solicitor","homepage":"","size":1028,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls/41"},"html":{"href":"https://github.com/ministryofjustice/defence-solicitor/pull/41"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/defence-solicitor/issues/41"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/defence-solicitor/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/defence-solicitor/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/defence-solicitor/statuses/8e9130208e60776bd5b1d9ed37003baa68d61b5e"}}}}