{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments/198761252","pull_request_review_id":132747812,"id":198761252,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODc2MTI1Mg==","diff_hunk":"@@ -25,22 +26,29 @@ class EventService(private val eventApi: EventApi, private val eventDao: EventDa\n     }\n \n     fun getSearchEvents(eventName: String): Single<List<Event>> {\n-        return eventApi.searchEvents(\"name\", eventName)\n-                .map {\n-                    eventDao.insertEvents(it)\n-                    it\n-                }\n+        return Single.zip(\n+                eventApi.searchEvents(\"name\", eventName),\n+                eventDao.getFavouriteEventIds(),\n+                BiFunction<List<Event>, List<Long>, List<Event>> { t1, t2 -> updateFavorites(t1, t2) }\n+        )","path":"app/src/main/java/org/fossasia/openevent/general/event/EventService.kt","position":21,"original_position":21,"commit_id":"e587421f665773caef85f6e9986813166fcc7ba4","original_commit_id":"e587421f665773caef85f6e9986813166fcc7ba4","user":{"login":"simarsingh24","id":16715499,"node_id":"MDQ6VXNlcjE2NzE1NDk5","avatar_url":"https://avatars0.githubusercontent.com/u/16715499?v=4","gravatar_id":"","url":"https://api.github.com/users/simarsingh24","html_url":"https://github.com/simarsingh24","followers_url":"https://api.github.com/users/simarsingh24/followers","following_url":"https://api.github.com/users/simarsingh24/following{/other_user}","gists_url":"https://api.github.com/users/simarsingh24/gists{/gist_id}","starred_url":"https://api.github.com/users/simarsingh24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simarsingh24/subscriptions","organizations_url":"https://api.github.com/users/simarsingh24/orgs","repos_url":"https://api.github.com/users/simarsingh24/repos","events_url":"https://api.github.com/users/simarsingh24/events{/privacy}","received_events_url":"https://api.github.com/users/simarsingh24/received_events","type":"User","site_admin":false},"body":"works fine locally 👍 ","created_at":"2018-06-28T08:55:45Z","updated_at":"2018-06-28T08:55:45Z","html_url":"https://github.com/fossasia/open-event-android/pull/185#discussion_r198761252","pull_request_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/185","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments/198761252"},"html":{"href":"https://github.com/fossasia/open-event-android/pull/185#discussion_r198761252"},"pull_request":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/185"}},"in_reply_to_id":198751692},"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-android/pulls/185","id":196886558,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2ODg2NTU4","html_url":"https://github.com/fossasia/open-event-android/pull/185","diff_url":"https://github.com/fossasia/open-event-android/pull/185.diff","patch_url":"https://github.com/fossasia/open-event-android/pull/185.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-android/issues/185","number":185,"state":"open","locked":false,"title":"feat : map events to load from db","user":{"login":"simarsingh24","id":16715499,"node_id":"MDQ6VXNlcjE2NzE1NDk5","avatar_url":"https://avatars0.githubusercontent.com/u/16715499?v=4","gravatar_id":"","url":"https://api.github.com/users/simarsingh24","html_url":"https://github.com/simarsingh24","followers_url":"https://api.github.com/users/simarsingh24/followers","following_url":"https://api.github.com/users/simarsingh24/following{/other_user}","gists_url":"https://api.github.com/users/simarsingh24/gists{/gist_id}","starred_url":"https://api.github.com/users/simarsingh24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simarsingh24/subscriptions","organizations_url":"https://api.github.com/users/simarsingh24/orgs","repos_url":"https://api.github.com/users/simarsingh24/repos","events_url":"https://api.github.com/users/simarsingh24/events{/privacy}","received_events_url":"https://api.github.com/users/simarsingh24/received_events","type":"User","site_admin":false},"body":"initial steps for #191","created_at":"2018-06-23T07:02:39Z","updated_at":"2018-06-28T08:55:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b51a81feb827e608a8d39484d86961340f41a33f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/185/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/185/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-android/issues/185/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-android/statuses/e587421f665773caef85f6e9986813166fcc7ba4","head":{"label":"simarsingh24:fav-bug","ref":"fav-bug","sha":"e587421f665773caef85f6e9986813166fcc7ba4","user":{"login":"simarsingh24","id":16715499,"node_id":"MDQ6VXNlcjE2NzE1NDk5","avatar_url":"https://avatars0.githubusercontent.com/u/16715499?v=4","gravatar_id":"","url":"https://api.github.com/users/simarsingh24","html_url":"https://github.com/simarsingh24","followers_url":"https://api.github.com/users/simarsingh24/followers","following_url":"https://api.github.com/users/simarsingh24/following{/other_user}","gists_url":"https://api.github.com/users/simarsingh24/gists{/gist_id}","starred_url":"https://api.github.com/users/simarsingh24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simarsingh24/subscriptions","organizations_url":"https://api.github.com/users/simarsingh24/orgs","repos_url":"https://api.github.com/users/simarsingh24/repos","events_url":"https://api.github.com/users/simarsingh24/events{/privacy}","received_events_url":"https://api.github.com/users/simarsingh24/received_events","type":"User","site_admin":false},"repo":{"id":135231081,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUyMzEwODE=","name":"open-event-android","full_name":"simarsingh24/open-event-android","owner":{"login":"simarsingh24","id":16715499,"node_id":"MDQ6VXNlcjE2NzE1NDk5","avatar_url":"https://avatars0.githubusercontent.com/u/16715499?v=4","gravatar_id":"","url":"https://api.github.com/users/simarsingh24","html_url":"https://github.com/simarsingh24","followers_url":"https://api.github.com/users/simarsingh24/followers","following_url":"https://api.github.com/users/simarsingh24/following{/other_user}","gists_url":"https://api.github.com/users/simarsingh24/gists{/gist_id}","starred_url":"https://api.github.com/users/simarsingh24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simarsingh24/subscriptions","organizations_url":"https://api.github.com/users/simarsingh24/orgs","repos_url":"https://api.github.com/users/simarsingh24/repos","events_url":"https://api.github.com/users/simarsingh24/events{/privacy}","received_events_url":"https://api.github.com/users/simarsingh24/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/simarsingh24/open-event-android","description":"Open Event Android General App","fork":true,"url":"https://api.github.com/repos/simarsingh24/open-event-android","forks_url":"https://api.github.com/repos/simarsingh24/open-event-android/forks","keys_url":"https://api.github.com/repos/simarsingh24/open-event-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simarsingh24/open-event-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simarsingh24/open-event-android/teams","hooks_url":"https://api.github.com/repos/simarsingh24/open-event-android/hooks","issue_events_url":"https://api.github.com/repos/simarsingh24/open-event-android/issues/events{/number}","events_url":"https://api.github.com/repos/simarsingh24/open-event-android/events","assignees_url":"https://api.github.com/repos/simarsingh24/open-event-android/assignees{/user}","branches_url":"https://api.github.com/repos/simarsingh24/open-event-android/branches{/branch}","tags_url":"https://api.github.com/repos/simarsingh24/open-event-android/tags","blobs_url":"https://api.github.com/repos/simarsingh24/open-event-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simarsingh24/open-event-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simarsingh24/open-event-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/simarsingh24/open-event-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simarsingh24/open-event-android/statuses/{sha}","languages_url":"https://api.github.com/repos/simarsingh24/open-event-android/languages","stargazers_url":"https://api.github.com/repos/simarsingh24/open-event-android/stargazers","contributors_url":"https://api.github.com/repos/simarsingh24/open-event-android/contributors","subscribers_url":"https://api.github.com/repos/simarsingh24/open-event-android/subscribers","subscription_url":"https://api.github.com/repos/simarsingh24/open-event-android/subscription","commits_url":"https://api.github.com/repos/simarsingh24/open-event-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/simarsingh24/open-event-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/simarsingh24/open-event-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/simarsingh24/open-event-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/simarsingh24/open-event-android/contents/{+path}","compare_url":"https://api.github.com/repos/simarsingh24/open-event-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simarsingh24/open-event-android/merges","archive_url":"https://api.github.com/repos/simarsingh24/open-event-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simarsingh24/open-event-android/downloads","issues_url":"https://api.github.com/repos/simarsingh24/open-event-android/issues{/number}","pulls_url":"https://api.github.com/repos/simarsingh24/open-event-android/pulls{/number}","milestones_url":"https://api.github.com/repos/simarsingh24/open-event-android/milestones{/number}","notifications_url":"https://api.github.com/repos/simarsingh24/open-event-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simarsingh24/open-event-android/labels{/name}","releases_url":"https://api.github.com/repos/simarsingh24/open-event-android/releases{/id}","deployments_url":"https://api.github.com/repos/simarsingh24/open-event-android/deployments","created_at":"2018-05-29T02:25:54Z","updated_at":"2018-06-09T13:34:10Z","pushed_at":"2018-06-28T08:25:02Z","git_url":"git://github.com/simarsingh24/open-event-android.git","ssh_url":"git@github.com:simarsingh24/open-event-android.git","clone_url":"https://github.com/simarsingh24/open-event-android.git","svn_url":"https://github.com/simarsingh24/open-event-android","homepage":"","size":733,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fossasia:development","ref":"development","sha":"8d4a36775a0c44254893d329f6b6b5d8f637e6ff","user":{"login":"fossasia","id":6295529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyOTU1Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":34847604,"node_id":"MDEwOlJlcG9zaXRvcnkzNDg0NzYwNA==","name":"open-event-android","full_name":"fossasia/open-event-android","owner":{"login":"fossasia","id":6295529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyOTU1Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-android","description":"Open Event Android General App https://github.com/fossasia/open-event-android/blob/apk/app-debug.apk","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-android","forks_url":"https://api.github.com/repos/fossasia/open-event-android/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-android/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-android/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-android/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-android/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-android/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-android/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-android/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-android/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-android/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-android/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-android/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-android/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-android/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-android/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-android/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-android/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-android/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-android/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-android/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-android/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-android/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-android/deployments","created_at":"2015-04-30T09:59:35Z","updated_at":"2018-06-28T07:59:49Z","pushed_at":"2018-06-28T08:25:03Z","git_url":"git://github.com/fossasia/open-event-android.git","ssh_url":"git@github.com:fossasia/open-event-android.git","clone_url":"https://github.com/fossasia/open-event-android.git","svn_url":"https://github.com/fossasia/open-event-android","homepage":"","size":8705,"stargazers_count":352,"watchers_count":352,"language":"Kotlin","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":41,"license":null,"forks":18,"open_issues":41,"watchers":352,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/185"},"html":{"href":"https://github.com/fossasia/open-event-android/pull/185"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-android/issues/185"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-android/issues/185/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/185/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/185/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-android/statuses/e587421f665773caef85f6e9986813166fcc7ba4"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"simarsingh24"}}