{"action":"created","comment":{"url":"https://api.github.com/repos/simpledotorg/simple-android/pulls/comments/205425884","pull_request_review_id":140690648,"id":205425884,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTQyNTg4NA==","diff_hunk":"@@ -44,7 +53,7 @@ class PatientRepository @Inject constructor(\n     }\n \n     return database.patientSearchDao()\n-        .search(query!!)\n+        .search(strip(query!!))","path":"app/src/main/java/org/simple/clinic/patient/PatientRepository.kt","position":21,"original_position":21,"commit_id":"7a325f431f80dd2a77b1d32e16fe856c4bfda316","original_commit_id":"a75176926c2a66ae061a02068a9f166f3149cc6b","user":{"login":"vinaysshenoy","id":1978065,"node_id":"MDQ6VXNlcjE5NzgwNjU=","avatar_url":"https://avatars0.githubusercontent.com/u/1978065?v=4","gravatar_id":"","url":"https://api.github.com/users/vinaysshenoy","html_url":"https://github.com/vinaysshenoy","followers_url":"https://api.github.com/users/vinaysshenoy/followers","following_url":"https://api.github.com/users/vinaysshenoy/following{/other_user}","gists_url":"https://api.github.com/users/vinaysshenoy/gists{/gist_id}","starred_url":"https://api.github.com/users/vinaysshenoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinaysshenoy/subscriptions","organizations_url":"https://api.github.com/users/vinaysshenoy/orgs","repos_url":"https://api.github.com/users/vinaysshenoy/repos","events_url":"https://api.github.com/users/vinaysshenoy/events{/privacy}","received_events_url":"https://api.github.com/users/vinaysshenoy/received_events","type":"User","site_admin":false},"body":"We could go with that.","created_at":"2018-07-26T11:46:34Z","updated_at":"2018-07-26T11:46:35Z","html_url":"https://github.com/simpledotorg/simple-android/pull/167#discussion_r205425884","pull_request_url":"https://api.github.com/repos/simpledotorg/simple-android/pulls/167","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/simpledotorg/simple-android/pulls/comments/205425884"},"html":{"href":"https://github.com/simpledotorg/simple-android/pull/167#discussion_r205425884"},"pull_request":{"href":"https://api.github.com/repos/simpledotorg/simple-android/pulls/167"}},"in_reply_to_id":205411209},"pull_request":{"url":"https://api.github.com/repos/simpledotorg/simple-android/pulls/167","id":203800204,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzODAwMjA0","html_url":"https://github.com/simpledotorg/simple-android/pull/167","diff_url":"https://github.com/simpledotorg/simple-android/pull/167.diff","patch_url":"https://github.com/simpledotorg/simple-android/pull/167.patch","issue_url":"https://api.github.com/repos/simpledotorg/simple-android/issues/167","number":167,"state":"open","locked":false,"title":"25 July 2018 - Fuzzy Lookup v1","user":{"login":"vinaysshenoy","id":1978065,"node_id":"MDQ6VXNlcjE5NzgwNjU=","avatar_url":"https://avatars0.githubusercontent.com/u/1978065?v=4","gravatar_id":"","url":"https://api.github.com/users/vinaysshenoy","html_url":"https://github.com/vinaysshenoy","followers_url":"https://api.github.com/users/vinaysshenoy/followers","following_url":"https://api.github.com/users/vinaysshenoy/following{/other_user}","gists_url":"https://api.github.com/users/vinaysshenoy/gists{/gist_id}","starred_url":"https://api.github.com/users/vinaysshenoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinaysshenoy/subscriptions","organizations_url":"https://api.github.com/users/vinaysshenoy/orgs","repos_url":"https://api.github.com/users/vinaysshenoy/repos","events_url":"https://api.github.com/users/vinaysshenoy/events{/privacy}","received_events_url":"https://api.github.com/users/vinaysshenoy/received_events","type":"User","site_admin":false},"body":"### Changes\r\n\r\n- Adds a new field `searchableName` to the `Patient` table that saves a stripped down version of the Patient name without whitespaces and punctuation\r\n- Changed `PatientRepository` to strip search queries of white spaces and punctuation when searching for names\r\n- Changed `PatientRepository` to updated the `searchableName` when merging remote patient records as well as adding new patients\r\n- Changed `PatientSearchResult.RoomDao` to use the `searchableName` instead of the `fullName` when doing search queries","created_at":"2018-07-25T11:02:50Z","updated_at":"2018-07-26T11:46:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cdda911d1bf2a2c4e2b6dc45809363f94a2ccd19","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/simpledotorg/simple-android/pulls/167/commits","review_comments_url":"https://api.github.com/repos/simpledotorg/simple-android/pulls/167/comments","review_comment_url":"https://api.github.com/repos/simpledotorg/simple-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/simpledotorg/simple-android/issues/167/comments","statuses_url":"https://api.github.com/repos/simpledotorg/simple-android/statuses/7a325f431f80dd2a77b1d32e16fe856c4bfda316","head":{"label":"simpledotorg:vs/25-07-2018/fuzzy","ref":"vs/25-07-2018/fuzzy","sha":"7a325f431f80dd2a77b1d32e16fe856c4bfda316","user":{"login":"simpledotorg","id":40570251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNTcwMjUx","avatar_url":"https://avatars0.githubusercontent.com/u/40570251?v=4","gravatar_id":"","url":"https://api.github.com/users/simpledotorg","html_url":"https://github.com/simpledotorg","followers_url":"https://api.github.com/users/simpledotorg/followers","following_url":"https://api.github.com/users/simpledotorg/following{/other_user}","gists_url":"https://api.github.com/users/simpledotorg/gists{/gist_id}","starred_url":"https://api.github.com/users/simpledotorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpledotorg/subscriptions","organizations_url":"https://api.github.com/users/simpledotorg/orgs","repos_url":"https://api.github.com/users/simpledotorg/repos","events_url":"https://api.github.com/users/simpledotorg/events{/privacy}","received_events_url":"https://api.github.com/users/simpledotorg/received_events","type":"Organization","site_admin":false},"repo":{"id":132515649,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1MTU2NDk=","name":"simple-android","full_name":"simpledotorg/simple-android","owner":{"login":"simpledotorg","id":40570251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNTcwMjUx","avatar_url":"https://avatars0.githubusercontent.com/u/40570251?v=4","gravatar_id":"","url":"https://api.github.com/users/simpledotorg","html_url":"https://github.com/simpledotorg","followers_url":"https://api.github.com/users/simpledotorg/followers","following_url":"https://api.github.com/users/simpledotorg/following{/other_user}","gists_url":"https://api.github.com/users/simpledotorg/gists{/gist_id}","starred_url":"https://api.github.com/users/simpledotorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpledotorg/subscriptions","organizations_url":"https://api.github.com/users/simpledotorg/orgs","repos_url":"https://api.github.com/users/simpledotorg/repos","events_url":"https://api.github.com/users/simpledotorg/events{/privacy}","received_events_url":"https://api.github.com/users/simpledotorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simpledotorg/simple-android","description":"RedApp, a mobile app for recording blood pressure measurements","fork":false,"url":"https://api.github.com/repos/simpledotorg/simple-android","forks_url":"https://api.github.com/repos/simpledotorg/simple-android/forks","keys_url":"https://api.github.com/repos/simpledotorg/simple-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simpledotorg/simple-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simpledotorg/simple-android/teams","hooks_url":"https://api.github.com/repos/simpledotorg/simple-android/hooks","issue_events_url":"https://api.github.com/repos/simpledotorg/simple-android/issues/events{/number}","events_url":"https://api.github.com/repos/simpledotorg/simple-android/events","assignees_url":"https://api.github.com/repos/simpledotorg/simple-android/assignees{/user}","branches_url":"https://api.github.com/repos/simpledotorg/simple-android/branches{/branch}","tags_url":"https://api.github.com/repos/simpledotorg/simple-android/tags","blobs_url":"https://api.github.com/repos/simpledotorg/simple-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simpledotorg/simple-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simpledotorg/simple-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/simpledotorg/simple-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simpledotorg/simple-android/statuses/{sha}","languages_url":"https://api.github.com/repos/simpledotorg/simple-android/languages","stargazers_url":"https://api.github.com/repos/simpledotorg/simple-android/stargazers","contributors_url":"https://api.github.com/repos/simpledotorg/simple-android/contributors","subscribers_url":"https://api.github.com/repos/simpledotorg/simple-android/subscribers","subscription_url":"https://api.github.com/repos/simpledotorg/simple-android/subscription","commits_url":"https://api.github.com/repos/simpledotorg/simple-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/simpledotorg/simple-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/simpledotorg/simple-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/simpledotorg/simple-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/simpledotorg/simple-android/contents/{+path}","compare_url":"https://api.github.com/repos/simpledotorg/simple-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simpledotorg/simple-android/merges","archive_url":"https://api.github.com/repos/simpledotorg/simple-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simpledotorg/simple-android/downloads","issues_url":"https://api.github.com/repos/simpledotorg/simple-android/issues{/number}","pulls_url":"https://api.github.com/repos/simpledotorg/simple-android/pulls{/number}","milestones_url":"https://api.github.com/repos/simpledotorg/simple-android/milestones{/number}","notifications_url":"https://api.github.com/repos/simpledotorg/simple-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simpledotorg/simple-android/labels{/name}","releases_url":"https://api.github.com/repos/simpledotorg/simple-android/releases{/id}","deployments_url":"https://api.github.com/repos/simpledotorg/simple-android/deployments","created_at":"2018-05-07T20:56:54Z","updated_at":"2018-07-26T10:04:47Z","pushed_at":"2018-07-26T10:51:12Z","git_url":"git://github.com/simpledotorg/simple-android.git","ssh_url":"git@github.com:simpledotorg/simple-android.git","clone_url":"https://github.com/simpledotorg/simple-android.git","svn_url":"https://github.com/simpledotorg/simple-android","homepage":null,"size":3166,"stargazers_count":11,"watchers_count":11,"language":"Kotlin","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":63,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":63,"watchers":11,"default_branch":"master"}},"base":{"label":"simpledotorg:master","ref":"master","sha":"6a7a6d00fc9191fbf60391ef2135f4f2a216f3fb","user":{"login":"simpledotorg","id":40570251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNTcwMjUx","avatar_url":"https://avatars0.githubusercontent.com/u/40570251?v=4","gravatar_id":"","url":"https://api.github.com/users/simpledotorg","html_url":"https://github.com/simpledotorg","followers_url":"https://api.github.com/users/simpledotorg/followers","following_url":"https://api.github.com/users/simpledotorg/following{/other_user}","gists_url":"https://api.github.com/users/simpledotorg/gists{/gist_id}","starred_url":"https://api.github.com/users/simpledotorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpledotorg/subscriptions","organizations_url":"https://api.github.com/users/simpledotorg/orgs","repos_url":"https://api.github.com/users/simpledotorg/repos","events_url":"https://api.github.com/users/simpledotorg/events{/privacy}","received_events_url":"https://api.github.com/users/simpledotorg/received_events","type":"Organization","site_admin":false},"repo":{"id":132515649,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1MTU2NDk=","name":"simple-android","full_name":"simpledotorg/simple-android","owner":{"login":"simpledotorg","id":40570251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNTcwMjUx","avatar_url":"https://avatars0.githubusercontent.com/u/40570251?v=4","gravatar_id":"","url":"https://api.github.com/users/simpledotorg","html_url":"https://github.com/simpledotorg","followers_url":"https://api.github.com/users/simpledotorg/followers","following_url":"https://api.github.com/users/simpledotorg/following{/other_user}","gists_url":"https://api.github.com/users/simpledotorg/gists{/gist_id}","starred_url":"https://api.github.com/users/simpledotorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpledotorg/subscriptions","organizations_url":"https://api.github.com/users/simpledotorg/orgs","repos_url":"https://api.github.com/users/simpledotorg/repos","events_url":"https://api.github.com/users/simpledotorg/events{/privacy}","received_events_url":"https://api.github.com/users/simpledotorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simpledotorg/simple-android","description":"RedApp, a mobile app for recording blood pressure measurements","fork":false,"url":"https://api.github.com/repos/simpledotorg/simple-android","forks_url":"https://api.github.com/repos/simpledotorg/simple-android/forks","keys_url":"https://api.github.com/repos/simpledotorg/simple-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simpledotorg/simple-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simpledotorg/simple-android/teams","hooks_url":"https://api.github.com/repos/simpledotorg/simple-android/hooks","issue_events_url":"https://api.github.com/repos/simpledotorg/simple-android/issues/events{/number}","events_url":"https://api.github.com/repos/simpledotorg/simple-android/events","assignees_url":"https://api.github.com/repos/simpledotorg/simple-android/assignees{/user}","branches_url":"https://api.github.com/repos/simpledotorg/simple-android/branches{/branch}","tags_url":"https://api.github.com/repos/simpledotorg/simple-android/tags","blobs_url":"https://api.github.com/repos/simpledotorg/simple-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simpledotorg/simple-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simpledotorg/simple-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/simpledotorg/simple-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simpledotorg/simple-android/statuses/{sha}","languages_url":"https://api.github.com/repos/simpledotorg/simple-android/languages","stargazers_url":"https://api.github.com/repos/simpledotorg/simple-android/stargazers","contributors_url":"https://api.github.com/repos/simpledotorg/simple-android/contributors","subscribers_url":"https://api.github.com/repos/simpledotorg/simple-android/subscribers","subscription_url":"https://api.github.com/repos/simpledotorg/simple-android/subscription","commits_url":"https://api.github.com/repos/simpledotorg/simple-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/simpledotorg/simple-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/simpledotorg/simple-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/simpledotorg/simple-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/simpledotorg/simple-android/contents/{+path}","compare_url":"https://api.github.com/repos/simpledotorg/simple-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simpledotorg/simple-android/merges","archive_url":"https://api.github.com/repos/simpledotorg/simple-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simpledotorg/simple-android/downloads","issues_url":"https://api.github.com/repos/simpledotorg/simple-android/issues{/number}","pulls_url":"https://api.github.com/repos/simpledotorg/simple-android/pulls{/number}","milestones_url":"https://api.github.com/repos/simpledotorg/simple-android/milestones{/number}","notifications_url":"https://api.github.com/repos/simpledotorg/simple-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simpledotorg/simple-android/labels{/name}","releases_url":"https://api.github.com/repos/simpledotorg/simple-android/releases{/id}","deployments_url":"https://api.github.com/repos/simpledotorg/simple-android/deployments","created_at":"2018-05-07T20:56:54Z","updated_at":"2018-07-26T10:04:47Z","pushed_at":"2018-07-26T10:51:12Z","git_url":"git://github.com/simpledotorg/simple-android.git","ssh_url":"git@github.com:simpledotorg/simple-android.git","clone_url":"https://github.com/simpledotorg/simple-android.git","svn_url":"https://github.com/simpledotorg/simple-android","homepage":null,"size":3166,"stargazers_count":11,"watchers_count":11,"language":"Kotlin","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":63,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":63,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simpledotorg/simple-android/pulls/167"},"html":{"href":"https://github.com/simpledotorg/simple-android/pull/167"},"issue":{"href":"https://api.github.com/repos/simpledotorg/simple-android/issues/167"},"comments":{"href":"https://api.github.com/repos/simpledotorg/simple-android/issues/167/comments"},"review_comments":{"href":"https://api.github.com/repos/simpledotorg/simple-android/pulls/167/comments"},"review_comment":{"href":"https://api.github.com/repos/simpledotorg/simple-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/simpledotorg/simple-android/pulls/167/commits"},"statuses":{"href":"https://api.github.com/repos/simpledotorg/simple-android/statuses/7a325f431f80dd2a77b1d32e16fe856c4bfda316"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"vinaysshenoy"}}