{"action":"created","comment":{"url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls/comments/204514312","pull_request_review_id":139605678,"id":204514312,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDUxNDMxMg==","diff_hunk":"@@ -132,9 +132,12 @@ class PiecesScreen extends Component {\n \t\t\t\t\t\t\t\t\treturn true;\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t})\n-\t\t\t\t\t\t\t.filter(piece =>\n-\t\t\t\t\t\t\t\tpiece.title.includes(this.state.inputs.searchInput)\n-\t\t\t\t\t\t\t)\n+\t\t\t\t\t\t\t.filter(piece => {\n+\t\t\t\t\t\t\t\tconst searchInput = this.state.inputs.searchInput.toLowerCase();\n+\t\t\t\t\t\t\t\tconst titleMatch = piece.title.toLowerCase().includes(searchInput);\n+\t\t\t\t\t\t\t\tconst artistMatch = piece.artist.toLowerCase().includes(searchInput);\n+\t\t\t\t\t\t\t\treturn artistMatch || titleMatch;","path":"src/screens/posts/PiecesScreen.js","position":20,"original_position":20,"commit_id":"349dd6af93a1dacbc47fec9dfc432117dca2aa67","original_commit_id":"349dd6af93a1dacbc47fec9dfc432117dca2aa67","user":{"login":"srveale","id":7737922,"node_id":"MDQ6VXNlcjc3Mzc5MjI=","avatar_url":"https://avatars1.githubusercontent.com/u/7737922?v=4","gravatar_id":"","url":"https://api.github.com/users/srveale","html_url":"https://github.com/srveale","followers_url":"https://api.github.com/users/srveale/followers","following_url":"https://api.github.com/users/srveale/following{/other_user}","gists_url":"https://api.github.com/users/srveale/gists{/gist_id}","starred_url":"https://api.github.com/users/srveale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srveale/subscriptions","organizations_url":"https://api.github.com/users/srveale/orgs","repos_url":"https://api.github.com/users/srveale/repos","events_url":"https://api.github.com/users/srveale/events{/privacy}","received_events_url":"https://api.github.com/users/srveale/received_events","type":"User","site_admin":false},"body":"@colebowl It's not about priority - the piece is included if either artist or title gets matched. The order could be switched and we'd get the same results.","created_at":"2018-07-23T18:46:33Z","updated_at":"2018-07-23T18:46:33Z","html_url":"https://github.com/CivicTechYYC/artyyc-mobile/pull/14#discussion_r204514312","pull_request_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls/14","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls/comments/204514312"},"html":{"href":"https://github.com/CivicTechYYC/artyyc-mobile/pull/14#discussion_r204514312"},"pull_request":{"href":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls/14"}},"in_reply_to_id":204404494},"pull_request":{"url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls/14","id":203059130,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMDU5MTMw","html_url":"https://github.com/CivicTechYYC/artyyc-mobile/pull/14","diff_url":"https://github.com/CivicTechYYC/artyyc-mobile/pull/14.diff","patch_url":"https://github.com/CivicTechYYC/artyyc-mobile/pull/14.patch","issue_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/issues/14","number":14,"state":"open","locked":false,"title":"issue-4 expand search matching","user":{"login":"srveale","id":7737922,"node_id":"MDQ6VXNlcjc3Mzc5MjI=","avatar_url":"https://avatars1.githubusercontent.com/u/7737922?v=4","gravatar_id":"","url":"https://api.github.com/users/srveale","html_url":"https://github.com/srveale","followers_url":"https://api.github.com/users/srveale/followers","following_url":"https://api.github.com/users/srveale/following{/other_user}","gists_url":"https://api.github.com/users/srveale/gists{/gist_id}","starred_url":"https://api.github.com/users/srveale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srveale/subscriptions","organizations_url":"https://api.github.com/users/srveale/orgs","repos_url":"https://api.github.com/users/srveale/repos","events_url":"https://api.github.com/users/srveale/events{/privacy}","received_events_url":"https://api.github.com/users/srveale/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-22T14:16:08Z","updated_at":"2018-07-23T18:46:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa7f6edf41266c10dcd6946e67760a4ab94a8ca4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls/14/commits","review_comments_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls/14/comments","review_comment_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/issues/14/comments","statuses_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/statuses/349dd6af93a1dacbc47fec9dfc432117dca2aa67","head":{"label":"CivicTechYYC:issue-4","ref":"issue-4","sha":"349dd6af93a1dacbc47fec9dfc432117dca2aa67","user":{"login":"CivicTechYYC","id":36767149,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzY3MTQ5","avatar_url":"https://avatars2.githubusercontent.com/u/36767149?v=4","gravatar_id":"","url":"https://api.github.com/users/CivicTechYYC","html_url":"https://github.com/CivicTechYYC","followers_url":"https://api.github.com/users/CivicTechYYC/followers","following_url":"https://api.github.com/users/CivicTechYYC/following{/other_user}","gists_url":"https://api.github.com/users/CivicTechYYC/gists{/gist_id}","starred_url":"https://api.github.com/users/CivicTechYYC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CivicTechYYC/subscriptions","organizations_url":"https://api.github.com/users/CivicTechYYC/orgs","repos_url":"https://api.github.com/users/CivicTechYYC/repos","events_url":"https://api.github.com/users/CivicTechYYC/events{/privacy}","received_events_url":"https://api.github.com/users/CivicTechYYC/received_events","type":"Organization","site_admin":false},"repo":{"id":123712722,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM3MTI3MjI=","name":"artyyc-mobile","full_name":"CivicTechYYC/artyyc-mobile","owner":{"login":"CivicTechYYC","id":36767149,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzY3MTQ5","avatar_url":"https://avatars2.githubusercontent.com/u/36767149?v=4","gravatar_id":"","url":"https://api.github.com/users/CivicTechYYC","html_url":"https://github.com/CivicTechYYC","followers_url":"https://api.github.com/users/CivicTechYYC/followers","following_url":"https://api.github.com/users/CivicTechYYC/following{/other_user}","gists_url":"https://api.github.com/users/CivicTechYYC/gists{/gist_id}","starred_url":"https://api.github.com/users/CivicTechYYC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CivicTechYYC/subscriptions","organizations_url":"https://api.github.com/users/CivicTechYYC/orgs","repos_url":"https://api.github.com/users/CivicTechYYC/repos","events_url":"https://api.github.com/users/CivicTechYYC/events{/privacy}","received_events_url":"https://api.github.com/users/CivicTechYYC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CivicTechYYC/artyyc-mobile","description":null,"fork":false,"url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile","forks_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/forks","keys_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/teams","hooks_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/hooks","issue_events_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/events","assignees_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/tags","blobs_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/languages","stargazers_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/stargazers","contributors_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/contributors","subscribers_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/subscribers","subscription_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/subscription","commits_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/merges","archive_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/downloads","issues_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/labels{/name}","releases_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/deployments","created_at":"2018-03-03T17:00:24Z","updated_at":"2018-07-22T02:52:00Z","pushed_at":"2018-07-22T14:16:09Z","git_url":"git://github.com/CivicTechYYC/artyyc-mobile.git","ssh_url":"git@github.com:CivicTechYYC/artyyc-mobile.git","clone_url":"https://github.com/CivicTechYYC/artyyc-mobile.git","svn_url":"https://github.com/CivicTechYYC/artyyc-mobile","homepage":null,"size":848,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":2,"open_issues":10,"watchers":3,"default_branch":"master"}},"base":{"label":"CivicTechYYC:master","ref":"master","sha":"c14a1fff8c2210fb8d749e9f9576f159a34667b8","user":{"login":"CivicTechYYC","id":36767149,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzY3MTQ5","avatar_url":"https://avatars2.githubusercontent.com/u/36767149?v=4","gravatar_id":"","url":"https://api.github.com/users/CivicTechYYC","html_url":"https://github.com/CivicTechYYC","followers_url":"https://api.github.com/users/CivicTechYYC/followers","following_url":"https://api.github.com/users/CivicTechYYC/following{/other_user}","gists_url":"https://api.github.com/users/CivicTechYYC/gists{/gist_id}","starred_url":"https://api.github.com/users/CivicTechYYC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CivicTechYYC/subscriptions","organizations_url":"https://api.github.com/users/CivicTechYYC/orgs","repos_url":"https://api.github.com/users/CivicTechYYC/repos","events_url":"https://api.github.com/users/CivicTechYYC/events{/privacy}","received_events_url":"https://api.github.com/users/CivicTechYYC/received_events","type":"Organization","site_admin":false},"repo":{"id":123712722,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM3MTI3MjI=","name":"artyyc-mobile","full_name":"CivicTechYYC/artyyc-mobile","owner":{"login":"CivicTechYYC","id":36767149,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzY3MTQ5","avatar_url":"https://avatars2.githubusercontent.com/u/36767149?v=4","gravatar_id":"","url":"https://api.github.com/users/CivicTechYYC","html_url":"https://github.com/CivicTechYYC","followers_url":"https://api.github.com/users/CivicTechYYC/followers","following_url":"https://api.github.com/users/CivicTechYYC/following{/other_user}","gists_url":"https://api.github.com/users/CivicTechYYC/gists{/gist_id}","starred_url":"https://api.github.com/users/CivicTechYYC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CivicTechYYC/subscriptions","organizations_url":"https://api.github.com/users/CivicTechYYC/orgs","repos_url":"https://api.github.com/users/CivicTechYYC/repos","events_url":"https://api.github.com/users/CivicTechYYC/events{/privacy}","received_events_url":"https://api.github.com/users/CivicTechYYC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CivicTechYYC/artyyc-mobile","description":null,"fork":false,"url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile","forks_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/forks","keys_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/teams","hooks_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/hooks","issue_events_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/events","assignees_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/tags","blobs_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/languages","stargazers_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/stargazers","contributors_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/contributors","subscribers_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/subscribers","subscription_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/subscription","commits_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/merges","archive_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/downloads","issues_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/labels{/name}","releases_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/deployments","created_at":"2018-03-03T17:00:24Z","updated_at":"2018-07-22T02:52:00Z","pushed_at":"2018-07-22T14:16:09Z","git_url":"git://github.com/CivicTechYYC/artyyc-mobile.git","ssh_url":"git@github.com:CivicTechYYC/artyyc-mobile.git","clone_url":"https://github.com/CivicTechYYC/artyyc-mobile.git","svn_url":"https://github.com/CivicTechYYC/artyyc-mobile","homepage":null,"size":848,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":2,"open_issues":10,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls/14"},"html":{"href":"https://github.com/CivicTechYYC/artyyc-mobile/pull/14"},"issue":{"href":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/issues/14"},"comments":{"href":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/CivicTechYYC/artyyc-mobile/statuses/349dd6af93a1dacbc47fec9dfc432117dca2aa67"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"srveale"}}