{"action":"created","comment":{"url":"https://api.github.com/repos/WorldBrain/Memex/pulls/comments/190787171","pull_request_review_id":123235221,"id":190787171,"diff_hunk":"@@ -0,0 +1,156 @@\n+import { MapEventTypeToInt, MapNotifTypeToIntArray } from './constants'\n+import db from 'src/search/search-index-new'\n+import AnalyticsStorage from './AnalyticsStorage'\n+import SendToServer from './sendToServer'\n+\n+class Analytics {\n+    _queueEvents = []\n+    _loaded = 0\n+    _operationsMap = {","path":"src/analytics/internal/analytics.js","position":9,"original_position":9,"commit_id":"b9682a5e5d7895444b922747334baa3a32c27a73","original_commit_id":"b9682a5e5d7895444b922747334baa3a32c27a73","user":{"login":"poltak","id":1130716,"avatar_url":"https://avatars3.githubusercontent.com/u/1130716?v=4","gravatar_id":"","url":"https://api.github.com/users/poltak","html_url":"https://github.com/poltak","followers_url":"https://api.github.com/users/poltak/followers","following_url":"https://api.github.com/users/poltak/following{/other_user}","gists_url":"https://api.github.com/users/poltak/gists{/gist_id}","starred_url":"https://api.github.com/users/poltak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poltak/subscriptions","organizations_url":"https://api.github.com/users/poltak/orgs","repos_url":"https://api.github.com/users/poltak/repos","events_url":"https://api.github.com/users/poltak/events{/privacy}","received_events_url":"https://api.github.com/users/poltak/received_events","type":"User","site_admin":false},"body":"This state keeps track of the event count and last time in mem, which is nice, but I can't see it being used anywhere apart from `getCountNotif` method, although that isn't called from anywhere?","created_at":"2018-05-25T04:15:25Z","updated_at":"2018-05-25T04:49:34Z","html_url":"https://github.com/WorldBrain/Memex/pull/336#discussion_r190787171","pull_request_url":"https://api.github.com/repos/WorldBrain/Memex/pulls/336","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/WorldBrain/Memex/pulls/comments/190787171"},"html":{"href":"https://github.com/WorldBrain/Memex/pull/336#discussion_r190787171"},"pull_request":{"href":"https://api.github.com/repos/WorldBrain/Memex/pulls/336"}}},"pull_request":{"url":"https://api.github.com/repos/WorldBrain/Memex/pulls/336","id":175556355,"html_url":"https://github.com/WorldBrain/Memex/pull/336","diff_url":"https://github.com/WorldBrain/Memex/pull/336.diff","patch_url":"https://github.com/WorldBrain/Memex/pull/336.patch","issue_url":"https://api.github.com/repos/WorldBrain/Memex/issues/336","number":336,"state":"open","locked":false,"title":"[WIP] Tracking usage of Memex features internally","user":{"login":"mukeshkharita","id":11373067,"avatar_url":"https://avatars3.githubusercontent.com/u/11373067?v=4","gravatar_id":"","url":"https://api.github.com/users/mukeshkharita","html_url":"https://github.com/mukeshkharita","followers_url":"https://api.github.com/users/mukeshkharita/followers","following_url":"https://api.github.com/users/mukeshkharita/following{/other_user}","gists_url":"https://api.github.com/users/mukeshkharita/gists{/gist_id}","starred_url":"https://api.github.com/users/mukeshkharita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mukeshkharita/subscriptions","organizations_url":"https://api.github.com/users/mukeshkharita/orgs","repos_url":"https://api.github.com/users/mukeshkharita/repos","events_url":"https://api.github.com/users/mukeshkharita/events{/privacy}","received_events_url":"https://api.github.com/users/mukeshkharita/received_events","type":"User","site_admin":false},"body":"* [x]  Storing Event Log Internally\r\n* [ ]  Send data to server","created_at":"2018-03-16T14:54:24Z","updated_at":"2018-05-25T04:49:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02f22ce6ecb76e8b742f61c06c7cd7b3dfd6131f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ShishKabab","id":477149,"avatar_url":"https://avatars2.githubusercontent.com/u/477149?v=4","gravatar_id":"","url":"https://api.github.com/users/ShishKabab","html_url":"https://github.com/ShishKabab","followers_url":"https://api.github.com/users/ShishKabab/followers","following_url":"https://api.github.com/users/ShishKabab/following{/other_user}","gists_url":"https://api.github.com/users/ShishKabab/gists{/gist_id}","starred_url":"https://api.github.com/users/ShishKabab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShishKabab/subscriptions","organizations_url":"https://api.github.com/users/ShishKabab/orgs","repos_url":"https://api.github.com/users/ShishKabab/repos","events_url":"https://api.github.com/users/ShishKabab/events{/privacy}","received_events_url":"https://api.github.com/users/ShishKabab/received_events","type":"User","site_admin":false},{"login":"oliversauter","id":7870039,"avatar_url":"https://avatars2.githubusercontent.com/u/7870039?v=4","gravatar_id":"","url":"https://api.github.com/users/oliversauter","html_url":"https://github.com/oliversauter","followers_url":"https://api.github.com/users/oliversauter/followers","following_url":"https://api.github.com/users/oliversauter/following{/other_user}","gists_url":"https://api.github.com/users/oliversauter/gists{/gist_id}","starred_url":"https://api.github.com/users/oliversauter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliversauter/subscriptions","organizations_url":"https://api.github.com/users/oliversauter/orgs","repos_url":"https://api.github.com/users/oliversauter/repos","events_url":"https://api.github.com/users/oliversauter/events{/privacy}","received_events_url":"https://api.github.com/users/oliversauter/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/WorldBrain/Memex/pulls/336/commits","review_comments_url":"https://api.github.com/repos/WorldBrain/Memex/pulls/336/comments","review_comment_url":"https://api.github.com/repos/WorldBrain/Memex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WorldBrain/Memex/issues/336/comments","statuses_url":"https://api.github.com/repos/WorldBrain/Memex/statuses/b9682a5e5d7895444b922747334baa3a32c27a73","head":{"label":"mukeshkharita:feature/tracking_internal","ref":"feature/tracking_internal","sha":"b9682a5e5d7895444b922747334baa3a32c27a73","user":{"login":"mukeshkharita","id":11373067,"avatar_url":"https://avatars3.githubusercontent.com/u/11373067?v=4","gravatar_id":"","url":"https://api.github.com/users/mukeshkharita","html_url":"https://github.com/mukeshkharita","followers_url":"https://api.github.com/users/mukeshkharita/followers","following_url":"https://api.github.com/users/mukeshkharita/following{/other_user}","gists_url":"https://api.github.com/users/mukeshkharita/gists{/gist_id}","starred_url":"https://api.github.com/users/mukeshkharita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mukeshkharita/subscriptions","organizations_url":"https://api.github.com/users/mukeshkharita/orgs","repos_url":"https://api.github.com/users/mukeshkharita/repos","events_url":"https://api.github.com/users/mukeshkharita/events{/privacy}","received_events_url":"https://api.github.com/users/mukeshkharita/received_events","type":"User","site_admin":false},"repo":{"id":98495513,"name":"WebMemex","full_name":"mukeshkharita/WebMemex","owner":{"login":"mukeshkharita","id":11373067,"avatar_url":"https://avatars3.githubusercontent.com/u/11373067?v=4","gravatar_id":"","url":"https://api.github.com/users/mukeshkharita","html_url":"https://github.com/mukeshkharita","followers_url":"https://api.github.com/users/mukeshkharita/followers","following_url":"https://api.github.com/users/mukeshkharita/following{/other_user}","gists_url":"https://api.github.com/users/mukeshkharita/gists{/gist_id}","starred_url":"https://api.github.com/users/mukeshkharita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mukeshkharita/subscriptions","organizations_url":"https://api.github.com/users/mukeshkharita/orgs","repos_url":"https://api.github.com/users/mukeshkharita/repos","events_url":"https://api.github.com/users/mukeshkharita/events{/privacy}","received_events_url":"https://api.github.com/users/mukeshkharita/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mukeshkharita/WebMemex","description":"The refactored version of the (Re)search-Engine","fork":true,"url":"https://api.github.com/repos/mukeshkharita/WebMemex","forks_url":"https://api.github.com/repos/mukeshkharita/WebMemex/forks","keys_url":"https://api.github.com/repos/mukeshkharita/WebMemex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mukeshkharita/WebMemex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mukeshkharita/WebMemex/teams","hooks_url":"https://api.github.com/repos/mukeshkharita/WebMemex/hooks","issue_events_url":"https://api.github.com/repos/mukeshkharita/WebMemex/issues/events{/number}","events_url":"https://api.github.com/repos/mukeshkharita/WebMemex/events","assignees_url":"https://api.github.com/repos/mukeshkharita/WebMemex/assignees{/user}","branches_url":"https://api.github.com/repos/mukeshkharita/WebMemex/branches{/branch}","tags_url":"https://api.github.com/repos/mukeshkharita/WebMemex/tags","blobs_url":"https://api.github.com/repos/mukeshkharita/WebMemex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mukeshkharita/WebMemex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mukeshkharita/WebMemex/git/refs{/sha}","trees_url":"https://api.github.com/repos/mukeshkharita/WebMemex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mukeshkharita/WebMemex/statuses/{sha}","languages_url":"https://api.github.com/repos/mukeshkharita/WebMemex/languages","stargazers_url":"https://api.github.com/repos/mukeshkharita/WebMemex/stargazers","contributors_url":"https://api.github.com/repos/mukeshkharita/WebMemex/contributors","subscribers_url":"https://api.github.com/repos/mukeshkharita/WebMemex/subscribers","subscription_url":"https://api.github.com/repos/mukeshkharita/WebMemex/subscription","commits_url":"https://api.github.com/repos/mukeshkharita/WebMemex/commits{/sha}","git_commits_url":"https://api.github.com/repos/mukeshkharita/WebMemex/git/commits{/sha}","comments_url":"https://api.github.com/repos/mukeshkharita/WebMemex/comments{/number}","issue_comment_url":"https://api.github.com/repos/mukeshkharita/WebMemex/issues/comments{/number}","contents_url":"https://api.github.com/repos/mukeshkharita/WebMemex/contents/{+path}","compare_url":"https://api.github.com/repos/mukeshkharita/WebMemex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mukeshkharita/WebMemex/merges","archive_url":"https://api.github.com/repos/mukeshkharita/WebMemex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mukeshkharita/WebMemex/downloads","issues_url":"https://api.github.com/repos/mukeshkharita/WebMemex/issues{/number}","pulls_url":"https://api.github.com/repos/mukeshkharita/WebMemex/pulls{/number}","milestones_url":"https://api.github.com/repos/mukeshkharita/WebMemex/milestones{/number}","notifications_url":"https://api.github.com/repos/mukeshkharita/WebMemex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mukeshkharita/WebMemex/labels{/name}","releases_url":"https://api.github.com/repos/mukeshkharita/WebMemex/releases{/id}","deployments_url":"https://api.github.com/repos/mukeshkharita/WebMemex/deployments","created_at":"2017-07-27T04:59:13Z","updated_at":"2017-07-27T04:59:15Z","pushed_at":"2018-05-22T12:53:30Z","git_url":"git://github.com/mukeshkharita/WebMemex.git","ssh_url":"git@github.com:mukeshkharita/WebMemex.git","clone_url":"https://github.com/mukeshkharita/WebMemex.git","svn_url":"https://github.com/mukeshkharita/WebMemex","homepage":"https://worldbrain.io","size":22181,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"WorldBrain:develop","ref":"develop","sha":"5f3407dd4fccc7128fd51cd93f1bf2adc53e7af8","user":{"login":"WorldBrain","id":9511853,"avatar_url":"https://avatars3.githubusercontent.com/u/9511853?v=4","gravatar_id":"","url":"https://api.github.com/users/WorldBrain","html_url":"https://github.com/WorldBrain","followers_url":"https://api.github.com/users/WorldBrain/followers","following_url":"https://api.github.com/users/WorldBrain/following{/other_user}","gists_url":"https://api.github.com/users/WorldBrain/gists{/gist_id}","starred_url":"https://api.github.com/users/WorldBrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WorldBrain/subscriptions","organizations_url":"https://api.github.com/users/WorldBrain/orgs","repos_url":"https://api.github.com/users/WorldBrain/repos","events_url":"https://api.github.com/users/WorldBrain/events{/privacy}","received_events_url":"https://api.github.com/users/WorldBrain/received_events","type":"Organization","site_admin":false},"repo":{"id":86941132,"name":"Memex","full_name":"WorldBrain/Memex","owner":{"login":"WorldBrain","id":9511853,"avatar_url":"https://avatars3.githubusercontent.com/u/9511853?v=4","gravatar_id":"","url":"https://api.github.com/users/WorldBrain","html_url":"https://github.com/WorldBrain","followers_url":"https://api.github.com/users/WorldBrain/followers","following_url":"https://api.github.com/users/WorldBrain/following{/other_user}","gists_url":"https://api.github.com/users/WorldBrain/gists{/gist_id}","starred_url":"https://api.github.com/users/WorldBrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WorldBrain/subscriptions","organizations_url":"https://api.github.com/users/WorldBrain/orgs","repos_url":"https://api.github.com/users/WorldBrain/repos","events_url":"https://api.github.com/users/WorldBrain/events{/privacy}","received_events_url":"https://api.github.com/users/WorldBrain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WorldBrain/Memex","description":"Browser Extension to full-text search your browsing history & bookmarks. ","fork":false,"url":"https://api.github.com/repos/WorldBrain/Memex","forks_url":"https://api.github.com/repos/WorldBrain/Memex/forks","keys_url":"https://api.github.com/repos/WorldBrain/Memex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WorldBrain/Memex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WorldBrain/Memex/teams","hooks_url":"https://api.github.com/repos/WorldBrain/Memex/hooks","issue_events_url":"https://api.github.com/repos/WorldBrain/Memex/issues/events{/number}","events_url":"https://api.github.com/repos/WorldBrain/Memex/events","assignees_url":"https://api.github.com/repos/WorldBrain/Memex/assignees{/user}","branches_url":"https://api.github.com/repos/WorldBrain/Memex/branches{/branch}","tags_url":"https://api.github.com/repos/WorldBrain/Memex/tags","blobs_url":"https://api.github.com/repos/WorldBrain/Memex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WorldBrain/Memex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WorldBrain/Memex/git/refs{/sha}","trees_url":"https://api.github.com/repos/WorldBrain/Memex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WorldBrain/Memex/statuses/{sha}","languages_url":"https://api.github.com/repos/WorldBrain/Memex/languages","stargazers_url":"https://api.github.com/repos/WorldBrain/Memex/stargazers","contributors_url":"https://api.github.com/repos/WorldBrain/Memex/contributors","subscribers_url":"https://api.github.com/repos/WorldBrain/Memex/subscribers","subscription_url":"https://api.github.com/repos/WorldBrain/Memex/subscription","commits_url":"https://api.github.com/repos/WorldBrain/Memex/commits{/sha}","git_commits_url":"https://api.github.com/repos/WorldBrain/Memex/git/commits{/sha}","comments_url":"https://api.github.com/repos/WorldBrain/Memex/comments{/number}","issue_comment_url":"https://api.github.com/repos/WorldBrain/Memex/issues/comments{/number}","contents_url":"https://api.github.com/repos/WorldBrain/Memex/contents/{+path}","compare_url":"https://api.github.com/repos/WorldBrain/Memex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WorldBrain/Memex/merges","archive_url":"https://api.github.com/repos/WorldBrain/Memex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WorldBrain/Memex/downloads","issues_url":"https://api.github.com/repos/WorldBrain/Memex/issues{/number}","pulls_url":"https://api.github.com/repos/WorldBrain/Memex/pulls{/number}","milestones_url":"https://api.github.com/repos/WorldBrain/Memex/milestones{/number}","notifications_url":"https://api.github.com/repos/WorldBrain/Memex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WorldBrain/Memex/labels{/name}","releases_url":"https://api.github.com/repos/WorldBrain/Memex/releases{/id}","deployments_url":"https://api.github.com/repos/WorldBrain/Memex/deployments","created_at":"2017-04-01T20:33:06Z","updated_at":"2018-05-23T12:03:28Z","pushed_at":"2018-05-25T02:26:24Z","git_url":"git://github.com/WorldBrain/Memex.git","ssh_url":"git@github.com:WorldBrain/Memex.git","clone_url":"https://github.com/WorldBrain/Memex.git","svn_url":"https://github.com/WorldBrain/Memex","homepage":"https://worldbrain.io","size":24025,"stargazers_count":308,"watchers_count":308,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"archived":false,"open_issues_count":79,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":61,"open_issues":79,"watchers":308,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WorldBrain/Memex/pulls/336"},"html":{"href":"https://github.com/WorldBrain/Memex/pull/336"},"issue":{"href":"https://api.github.com/repos/WorldBrain/Memex/issues/336"},"comments":{"href":"https://api.github.com/repos/WorldBrain/Memex/issues/336/comments"},"review_comments":{"href":"https://api.github.com/repos/WorldBrain/Memex/pulls/336/comments"},"review_comment":{"href":"https://api.github.com/repos/WorldBrain/Memex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WorldBrain/Memex/pulls/336/commits"},"statuses":{"href":"https://api.github.com/repos/WorldBrain/Memex/statuses/b9682a5e5d7895444b922747334baa3a32c27a73"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"poltak"}}