{"action":"created","comment":{"url":"https://api.github.com/repos/guardian/identity-admin/pulls/comments/42861303","id":42861303,"diff_hunk":"@@ -0,0 +1,17 @@\n+package models\n+\n+import play.api.libs.json._\n+import play.api.mvc.{Results, Result}\n+import scala.language.implicitConversions\n+\n+case class SearchResponse(total: Int,\n+                          hasMore: Boolean,\n+                          results: Seq[UserSummary] = Nil)\n+\n+object SearchResponse {\n+  implicit val format = Json.format[SearchResponse]\n+\n+  implicit def searchResponseToResult(searchResponse: SearchResponse): Result =","path":"app/models/SearchResponse.scala","position":14,"original_position":14,"commit_id":"08039889617a7e3de39d0efd007b4e17de781753","original_commit_id":"08039889617a7e3de39d0efd007b4e17de781753","user":{"login":"danmassie","id":1684649,"avatar_url":"https://avatars.githubusercontent.com/u/1684649?v=3","gravatar_id":"","url":"https://api.github.com/users/danmassie","html_url":"https://github.com/danmassie","followers_url":"https://api.github.com/users/danmassie/followers","following_url":"https://api.github.com/users/danmassie/following{/other_user}","gists_url":"https://api.github.com/users/danmassie/gists{/gist_id}","starred_url":"https://api.github.com/users/danmassie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmassie/subscriptions","organizations_url":"https://api.github.com/users/danmassie/orgs","repos_url":"https://api.github.com/users/danmassie/repos","events_url":"https://api.github.com/users/danmassie/events{/privacy}","received_events_url":"https://api.github.com/users/danmassie/received_events","type":"User","site_admin":false},"body":"This isn't required.","created_at":"2015-10-23T12:56:09Z","updated_at":"2015-10-23T12:56:09Z","html_url":"https://github.com/guardian/identity-admin/pull/41#discussion_r42861303","pull_request_url":"https://api.github.com/repos/guardian/identity-admin/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/guardian/identity-admin/pulls/comments/42861303"},"html":{"href":"https://github.com/guardian/identity-admin/pull/41#discussion_r42861303"},"pull_request":{"href":"https://api.github.com/repos/guardian/identity-admin/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/guardian/identity-admin/pulls/41","id":48221846,"html_url":"https://github.com/guardian/identity-admin/pull/41","diff_url":"https://github.com/guardian/identity-admin/pull/41.diff","patch_url":"https://github.com/guardian/identity-admin/pull/41.patch","issue_url":"https://api.github.com/repos/guardian/identity-admin/issues/41","number":41,"state":"open","locked":false,"title":"Search for accounts","user":{"login":"susiecoleman","id":6666113,"avatar_url":"https://avatars.githubusercontent.com/u/6666113?v=3","gravatar_id":"","url":"https://api.github.com/users/susiecoleman","html_url":"https://github.com/susiecoleman","followers_url":"https://api.github.com/users/susiecoleman/followers","following_url":"https://api.github.com/users/susiecoleman/following{/other_user}","gists_url":"https://api.github.com/users/susiecoleman/gists{/gist_id}","starred_url":"https://api.github.com/users/susiecoleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/susiecoleman/subscriptions","organizations_url":"https://api.github.com/users/susiecoleman/orgs","repos_url":"https://api.github.com/users/susiecoleman/repos","events_url":"https://api.github.com/users/susiecoleman/events{/privacy}","received_events_url":"https://api.github.com/users/susiecoleman/received_events","type":"User","site_admin":false},"body":"Created API calls for searching for user by email address username and postcode.\r\nDisplay results in view\r\nCurrently not handling errors if invalid calls are made to the API e.g. too short a string","created_at":"2015-10-20T16:04:15Z","updated_at":"2015-10-23T12:56:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9d603cfb00a1bbbf2e3b4a0c3a75e302c6f0bd7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/guardian/identity-admin/pulls/41/commits","review_comments_url":"https://api.github.com/repos/guardian/identity-admin/pulls/41/comments","review_comment_url":"https://api.github.com/repos/guardian/identity-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guardian/identity-admin/issues/41/comments","statuses_url":"https://api.github.com/repos/guardian/identity-admin/statuses/08039889617a7e3de39d0efd007b4e17de781753","head":{"label":"guardian:search-for-accounts","ref":"search-for-accounts","sha":"08039889617a7e3de39d0efd007b4e17de781753","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":42711981,"name":"identity-admin","full_name":"guardian/identity-admin","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/identity-admin","description":"","fork":false,"url":"https://api.github.com/repos/guardian/identity-admin","forks_url":"https://api.github.com/repos/guardian/identity-admin/forks","keys_url":"https://api.github.com/repos/guardian/identity-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/identity-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/identity-admin/teams","hooks_url":"https://api.github.com/repos/guardian/identity-admin/hooks","issue_events_url":"https://api.github.com/repos/guardian/identity-admin/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/identity-admin/events","assignees_url":"https://api.github.com/repos/guardian/identity-admin/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/identity-admin/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/identity-admin/tags","blobs_url":"https://api.github.com/repos/guardian/identity-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/identity-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/identity-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/identity-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/identity-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/identity-admin/languages","stargazers_url":"https://api.github.com/repos/guardian/identity-admin/stargazers","contributors_url":"https://api.github.com/repos/guardian/identity-admin/contributors","subscribers_url":"https://api.github.com/repos/guardian/identity-admin/subscribers","subscription_url":"https://api.github.com/repos/guardian/identity-admin/subscription","commits_url":"https://api.github.com/repos/guardian/identity-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/identity-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/identity-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/identity-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/identity-admin/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/identity-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/identity-admin/merges","archive_url":"https://api.github.com/repos/guardian/identity-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/identity-admin/downloads","issues_url":"https://api.github.com/repos/guardian/identity-admin/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/identity-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/identity-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/identity-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/identity-admin/labels{/name}","releases_url":"https://api.github.com/repos/guardian/identity-admin/releases{/id}","created_at":"2015-09-18T09:23:08Z","updated_at":"2015-10-20T13:24:50Z","pushed_at":"2015-10-23T10:43:00Z","git_url":"git://github.com/guardian/identity-admin.git","ssh_url":"git@github.com:guardian/identity-admin.git","clone_url":"https://github.com/guardian/identity-admin.git","svn_url":"https://github.com/guardian/identity-admin","homepage":null,"size":1940,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"guardian:master","ref":"master","sha":"ce7377dc96cd49ecc404c3835408e2b1ed5b1889","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":42711981,"name":"identity-admin","full_name":"guardian/identity-admin","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/identity-admin","description":"","fork":false,"url":"https://api.github.com/repos/guardian/identity-admin","forks_url":"https://api.github.com/repos/guardian/identity-admin/forks","keys_url":"https://api.github.com/repos/guardian/identity-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/identity-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/identity-admin/teams","hooks_url":"https://api.github.com/repos/guardian/identity-admin/hooks","issue_events_url":"https://api.github.com/repos/guardian/identity-admin/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/identity-admin/events","assignees_url":"https://api.github.com/repos/guardian/identity-admin/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/identity-admin/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/identity-admin/tags","blobs_url":"https://api.github.com/repos/guardian/identity-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/identity-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/identity-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/identity-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/identity-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/identity-admin/languages","stargazers_url":"https://api.github.com/repos/guardian/identity-admin/stargazers","contributors_url":"https://api.github.com/repos/guardian/identity-admin/contributors","subscribers_url":"https://api.github.com/repos/guardian/identity-admin/subscribers","subscription_url":"https://api.github.com/repos/guardian/identity-admin/subscription","commits_url":"https://api.github.com/repos/guardian/identity-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/identity-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/identity-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/identity-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/identity-admin/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/identity-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/identity-admin/merges","archive_url":"https://api.github.com/repos/guardian/identity-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/identity-admin/downloads","issues_url":"https://api.github.com/repos/guardian/identity-admin/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/identity-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/identity-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/identity-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/identity-admin/labels{/name}","releases_url":"https://api.github.com/repos/guardian/identity-admin/releases{/id}","created_at":"2015-09-18T09:23:08Z","updated_at":"2015-10-20T13:24:50Z","pushed_at":"2015-10-23T10:43:00Z","git_url":"git://github.com/guardian/identity-admin.git","ssh_url":"git@github.com:guardian/identity-admin.git","clone_url":"https://github.com/guardian/identity-admin.git","svn_url":"https://github.com/guardian/identity-admin","homepage":null,"size":1940,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guardian/identity-admin/pulls/41"},"html":{"href":"https://github.com/guardian/identity-admin/pull/41"},"issue":{"href":"https://api.github.com/repos/guardian/identity-admin/issues/41"},"comments":{"href":"https://api.github.com/repos/guardian/identity-admin/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/guardian/identity-admin/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/guardian/identity-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guardian/identity-admin/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/guardian/identity-admin/statuses/08039889617a7e3de39d0efd007b4e17de781753"}}}}