{"action":"created","comment":{"url":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls/comments/237921616","pull_request_review_id":180346149,"id":237921616,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzkyMTYxNg==","diff_hunk":"@@ -45,3 +47,12 @@ internal fun WebService.uploadEvents(database: Database, indexName: String): Lis\n     database.overwrite(failedEvents.map { it.event })\n     return failedEvents\n }\n+\n+\n+internal fun JSONArray.toList(): List<Any> {\n+    return mutableListOf<Any>().also {\n+        for (i in 0..it.size) {","path":"insights/src/main/kotlin/com/algolia/instantsearch/insights/webservice/Extensions.kt","position":26,"original_position":26,"commit_id":"d517113e0bf1a470ddd3416350624d993d309b69","original_commit_id":"d517113e0bf1a470ddd3416350624d993d309b69","user":{"login":"q-litzler","id":3338489,"node_id":"MDQ6VXNlcjMzMzg0ODk=","avatar_url":"https://avatars2.githubusercontent.com/u/3338489?v=4","gravatar_id":"","url":"https://api.github.com/users/q-litzler","html_url":"https://github.com/q-litzler","followers_url":"https://api.github.com/users/q-litzler/followers","following_url":"https://api.github.com/users/q-litzler/following{/other_user}","gists_url":"https://api.github.com/users/q-litzler/gists{/gist_id}","starred_url":"https://api.github.com/users/q-litzler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/q-litzler/subscriptions","organizations_url":"https://api.github.com/users/q-litzler/orgs","repos_url":"https://api.github.com/users/q-litzler/repos","events_url":"https://api.github.com/users/q-litzler/events{/privacy}","received_events_url":"https://api.github.com/users/q-litzler/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n        for (i in 0 until it.size) {\r\n```\r\nIf we have a size of 4, the last index will be 3, so we want to use `until` instead of `..` I think, unless I'm missing something","created_at":"2018-11-30T16:33:52Z","updated_at":"2018-11-30T16:33:53Z","html_url":"https://github.com/algolia/instantsearch-android-insights/pull/13#discussion_r237921616","pull_request_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls/13","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls/comments/237921616"},"html":{"href":"https://github.com/algolia/instantsearch-android-insights/pull/13#discussion_r237921616"},"pull_request":{"href":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls/13","id":235034192,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1MDM0MTky","html_url":"https://github.com/algolia/instantsearch-android-insights/pull/13","diff_url":"https://github.com/algolia/instantsearch-android-insights/pull/13.diff","patch_url":"https://github.com/algolia/instantsearch-android-insights/pull/13.patch","issue_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/issues/13","number":13,"state":"open","locked":false,"title":"WIP: To be titled","user":{"login":"PLNech","id":1821404,"node_id":"MDQ6VXNlcjE4MjE0MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1821404?v=4","gravatar_id":"","url":"https://api.github.com/users/PLNech","html_url":"https://github.com/PLNech","followers_url":"https://api.github.com/users/PLNech/followers","following_url":"https://api.github.com/users/PLNech/following{/other_user}","gists_url":"https://api.github.com/users/PLNech/gists{/gist_id}","starred_url":"https://api.github.com/users/PLNech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PLNech/subscriptions","organizations_url":"https://api.github.com/users/PLNech/orgs","repos_url":"https://api.github.com/users/PLNech/repos","events_url":"https://api.github.com/users/PLNech/events{/privacy}","received_events_url":"https://api.github.com/users/PLNech/received_events","type":"User","site_admin":false},"body":"WIP: To be described (in the meantime see https://app.asana.com/0/850920532210223/920206434321213)","created_at":"2018-11-30T15:59:32Z","updated_at":"2018-11-30T16:33:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"19240d949b47b51ce6ba7bbf75154d6b85c57b82","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls/13/commits","review_comments_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls/13/comments","review_comment_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls/comments{/number}","comments_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/issues/13/comments","statuses_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/statuses/d517113e0bf1a470ddd3416350624d993d309b69","head":{"label":"algolia:feat/apiUpdates","ref":"feat/apiUpdates","sha":"d517113e0bf1a470ddd3416350624d993d309b69","user":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"repo":{"id":137076743,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcwNzY3NDM=","name":"instantsearch-android-insights","full_name":"algolia/instantsearch-android-insights","private":false,"owner":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/algolia/instantsearch-android-insights","description":"Easily track clicks and conversions on Android","fork":false,"url":"https://api.github.com/repos/algolia/instantsearch-android-insights","forks_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/forks","keys_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/teams","hooks_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/hooks","issue_events_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/events","assignees_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/tags","blobs_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/languages","stargazers_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/stargazers","contributors_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/contributors","subscribers_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/subscribers","subscription_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/subscription","commits_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/merges","archive_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/downloads","issues_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/labels{/name}","releases_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/releases{/id}","deployments_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/deployments","created_at":"2018-06-12T13:35:54Z","updated_at":"2018-11-29T04:37:35Z","pushed_at":"2018-11-30T15:59:33Z","git_url":"git://github.com/algolia/instantsearch-android-insights.git","ssh_url":"git@github.com:algolia/instantsearch-android-insights.git","clone_url":"https://github.com/algolia/instantsearch-android-insights.git","svn_url":"https://github.com/algolia/instantsearch-android-insights","homepage":"","size":250,"stargazers_count":2,"watchers_count":2,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"algolia:beta","ref":"beta","sha":"42495f23547fbc3e279b221b1b5073968aee3f4a","user":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"repo":{"id":137076743,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcwNzY3NDM=","name":"instantsearch-android-insights","full_name":"algolia/instantsearch-android-insights","private":false,"owner":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/algolia/instantsearch-android-insights","description":"Easily track clicks and conversions on Android","fork":false,"url":"https://api.github.com/repos/algolia/instantsearch-android-insights","forks_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/forks","keys_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/teams","hooks_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/hooks","issue_events_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/events","assignees_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/tags","blobs_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/languages","stargazers_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/stargazers","contributors_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/contributors","subscribers_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/subscribers","subscription_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/subscription","commits_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/merges","archive_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/downloads","issues_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/labels{/name}","releases_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/releases{/id}","deployments_url":"https://api.github.com/repos/algolia/instantsearch-android-insights/deployments","created_at":"2018-06-12T13:35:54Z","updated_at":"2018-11-29T04:37:35Z","pushed_at":"2018-11-30T15:59:33Z","git_url":"git://github.com/algolia/instantsearch-android-insights.git","ssh_url":"git@github.com:algolia/instantsearch-android-insights.git","clone_url":"https://github.com/algolia/instantsearch-android-insights.git","svn_url":"https://github.com/algolia/instantsearch-android-insights","homepage":"","size":250,"stargazers_count":2,"watchers_count":2,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls/13"},"html":{"href":"https://github.com/algolia/instantsearch-android-insights/pull/13"},"issue":{"href":"https://api.github.com/repos/algolia/instantsearch-android-insights/issues/13"},"comments":{"href":"https://api.github.com/repos/algolia/instantsearch-android-insights/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/algolia/instantsearch-android-insights/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/algolia/instantsearch-android-insights/statuses/d517113e0bf1a470ddd3416350624d993d309b69"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"q-litzler"}}