{"action":"opened","number":4714,"pull_request":{"url":"https://api.github.com/repos/brave/browser-laptop/pulls/4714","id":89027005,"html_url":"https://github.com/brave/browser-laptop/pull/4714","diff_url":"https://github.com/brave/browser-laptop/pull/4714.diff","patch_url":"https://github.com/brave/browser-laptop/pull/4714.patch","issue_url":"https://api.github.com/repos/brave/browser-laptop/issues/4714","number":4714,"state":"open","locked":false,"title":"Add npm script to generate sample Publisher visit/duration count (ledger-synopsis.json)","user":{"login":"willy-b","id":6969859,"avatar_url":"https://avatars.githubusercontent.com/u/6969859?v=3","gravatar_id":"","url":"https://api.github.com/users/willy-b","html_url":"https://github.com/willy-b","followers_url":"https://api.github.com/users/willy-b/followers","following_url":"https://api.github.com/users/willy-b/following{/other_user}","gists_url":"https://api.github.com/users/willy-b/gists{/gist_id}","starred_url":"https://api.github.com/users/willy-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willy-b/subscriptions","organizations_url":"https://api.github.com/users/willy-b/orgs","repos_url":"https://api.github.com/users/willy-b/repos","events_url":"https://api.github.com/users/willy-b/events{/privacy}","received_events_url":"https://api.github.com/users/willy-b/received_events","type":"User","site_admin":false},"body":"- [x] Submitted a [ticket](https://github.com/brave/browser-laptop/issues) for my issue if one did not already exist.\r\n- [ ] Used Github [auto-closing keywords](https://help.github.com/articles/closing-issues-via-commit-messages/) in the commit message.\r\n\r\nTest Plan:\r\n- Clear Brave user data (`npm run clean userData`)\r\n- Run Brave, enable Payments\r\n- Observe empty synopsis table (no publishers listed)\r\n- In a terminal, run `npm run add-simulated-synopsis-visits`\r\n- Back in Brave, toggle Payments\r\n- Observe Synopsis table is populated with random Publishers with random visit counts and durations\r\n\r\n![add_synopsis_visits gif final](https://cloud.githubusercontent.com/assets/6969859/19314105/c5748016-904d-11e6-826e-dc4569cf585b.gif)\r\n\r\n\r\nThis probably should have been part of #4199, my bad.\r\n\r\n(We did add simulated payment history, but the issue was more generic than that and my last PR did not generate a browsing synopsis, which this does.)","created_at":"2016-10-12T14:31:26Z","updated_at":"2016-10-12T14:31:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/brave/browser-laptop/pulls/4714/commits","review_comments_url":"https://api.github.com/repos/brave/browser-laptop/pulls/4714/comments","review_comment_url":"https://api.github.com/repos/brave/browser-laptop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brave/browser-laptop/issues/4714/comments","statuses_url":"https://api.github.com/repos/brave/browser-laptop/statuses/37a96fd743c46be6902861283fefa93361038c7e","head":{"label":"willy-b:add-ledger-synopsis-simulator-4199","ref":"add-ledger-synopsis-simulator-4199","sha":"37a96fd743c46be6902861283fefa93361038c7e","user":{"login":"willy-b","id":6969859,"avatar_url":"https://avatars.githubusercontent.com/u/6969859?v=3","gravatar_id":"","url":"https://api.github.com/users/willy-b","html_url":"https://github.com/willy-b","followers_url":"https://api.github.com/users/willy-b/followers","following_url":"https://api.github.com/users/willy-b/following{/other_user}","gists_url":"https://api.github.com/users/willy-b/gists{/gist_id}","starred_url":"https://api.github.com/users/willy-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willy-b/subscriptions","organizations_url":"https://api.github.com/users/willy-b/orgs","repos_url":"https://api.github.com/users/willy-b/repos","events_url":"https://api.github.com/users/willy-b/events{/privacy}","received_events_url":"https://api.github.com/users/willy-b/received_events","type":"User","site_admin":false},"repo":{"id":63651943,"name":"browser-laptop","full_name":"willy-b/browser-laptop","owner":{"login":"willy-b","id":6969859,"avatar_url":"https://avatars.githubusercontent.com/u/6969859?v=3","gravatar_id":"","url":"https://api.github.com/users/willy-b","html_url":"https://github.com/willy-b","followers_url":"https://api.github.com/users/willy-b/followers","following_url":"https://api.github.com/users/willy-b/following{/other_user}","gists_url":"https://api.github.com/users/willy-b/gists{/gist_id}","starred_url":"https://api.github.com/users/willy-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willy-b/subscriptions","organizations_url":"https://api.github.com/users/willy-b/orgs","repos_url":"https://api.github.com/users/willy-b/repos","events_url":"https://api.github.com/users/willy-b/events{/privacy}","received_events_url":"https://api.github.com/users/willy-b/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/willy-b/browser-laptop","description":"Brave browser for Desktop and Laptop computers running Windows, OSX, and Linux","fork":true,"url":"https://api.github.com/repos/willy-b/browser-laptop","forks_url":"https://api.github.com/repos/willy-b/browser-laptop/forks","keys_url":"https://api.github.com/repos/willy-b/browser-laptop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willy-b/browser-laptop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willy-b/browser-laptop/teams","hooks_url":"https://api.github.com/repos/willy-b/browser-laptop/hooks","issue_events_url":"https://api.github.com/repos/willy-b/browser-laptop/issues/events{/number}","events_url":"https://api.github.com/repos/willy-b/browser-laptop/events","assignees_url":"https://api.github.com/repos/willy-b/browser-laptop/assignees{/user}","branches_url":"https://api.github.com/repos/willy-b/browser-laptop/branches{/branch}","tags_url":"https://api.github.com/repos/willy-b/browser-laptop/tags","blobs_url":"https://api.github.com/repos/willy-b/browser-laptop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willy-b/browser-laptop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willy-b/browser-laptop/git/refs{/sha}","trees_url":"https://api.github.com/repos/willy-b/browser-laptop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willy-b/browser-laptop/statuses/{sha}","languages_url":"https://api.github.com/repos/willy-b/browser-laptop/languages","stargazers_url":"https://api.github.com/repos/willy-b/browser-laptop/stargazers","contributors_url":"https://api.github.com/repos/willy-b/browser-laptop/contributors","subscribers_url":"https://api.github.com/repos/willy-b/browser-laptop/subscribers","subscription_url":"https://api.github.com/repos/willy-b/browser-laptop/subscription","commits_url":"https://api.github.com/repos/willy-b/browser-laptop/commits{/sha}","git_commits_url":"https://api.github.com/repos/willy-b/browser-laptop/git/commits{/sha}","comments_url":"https://api.github.com/repos/willy-b/browser-laptop/comments{/number}","issue_comment_url":"https://api.github.com/repos/willy-b/browser-laptop/issues/comments{/number}","contents_url":"https://api.github.com/repos/willy-b/browser-laptop/contents/{+path}","compare_url":"https://api.github.com/repos/willy-b/browser-laptop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willy-b/browser-laptop/merges","archive_url":"https://api.github.com/repos/willy-b/browser-laptop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willy-b/browser-laptop/downloads","issues_url":"https://api.github.com/repos/willy-b/browser-laptop/issues{/number}","pulls_url":"https://api.github.com/repos/willy-b/browser-laptop/pulls{/number}","milestones_url":"https://api.github.com/repos/willy-b/browser-laptop/milestones{/number}","notifications_url":"https://api.github.com/repos/willy-b/browser-laptop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willy-b/browser-laptop/labels{/name}","releases_url":"https://api.github.com/repos/willy-b/browser-laptop/releases{/id}","deployments_url":"https://api.github.com/repos/willy-b/browser-laptop/deployments","created_at":"2016-07-19T02:12:15Z","updated_at":"2016-07-19T02:12:19Z","pushed_at":"2016-10-12T14:20:48Z","git_url":"git://github.com/willy-b/browser-laptop.git","ssh_url":"git@github.com:willy-b/browser-laptop.git","clone_url":"https://github.com/willy-b/browser-laptop.git","svn_url":"https://github.com/willy-b/browser-laptop","homepage":"https://www.brave.com","size":29291,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"brave:master","ref":"master","sha":"901216eeccaae6bed7814f31fa59df4d91ecad76","user":{"login":"brave","id":12301619,"avatar_url":"https://avatars.githubusercontent.com/u/12301619?v=3","gravatar_id":"","url":"https://api.github.com/users/brave","html_url":"https://github.com/brave","followers_url":"https://api.github.com/users/brave/followers","following_url":"https://api.github.com/users/brave/following{/other_user}","gists_url":"https://api.github.com/users/brave/gists{/gist_id}","starred_url":"https://api.github.com/users/brave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brave/subscriptions","organizations_url":"https://api.github.com/users/brave/orgs","repos_url":"https://api.github.com/users/brave/repos","events_url":"https://api.github.com/users/brave/events{/privacy}","received_events_url":"https://api.github.com/users/brave/received_events","type":"Organization","site_admin":false},"repo":{"id":46891997,"name":"browser-laptop","full_name":"brave/browser-laptop","owner":{"login":"brave","id":12301619,"avatar_url":"https://avatars.githubusercontent.com/u/12301619?v=3","gravatar_id":"","url":"https://api.github.com/users/brave","html_url":"https://github.com/brave","followers_url":"https://api.github.com/users/brave/followers","following_url":"https://api.github.com/users/brave/following{/other_user}","gists_url":"https://api.github.com/users/brave/gists{/gist_id}","starred_url":"https://api.github.com/users/brave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brave/subscriptions","organizations_url":"https://api.github.com/users/brave/orgs","repos_url":"https://api.github.com/users/brave/repos","events_url":"https://api.github.com/users/brave/events{/privacy}","received_events_url":"https://api.github.com/users/brave/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brave/browser-laptop","description":"Brave browser for Desktop and Laptop computers running Windows, OSX, and Linux","fork":false,"url":"https://api.github.com/repos/brave/browser-laptop","forks_url":"https://api.github.com/repos/brave/browser-laptop/forks","keys_url":"https://api.github.com/repos/brave/browser-laptop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brave/browser-laptop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brave/browser-laptop/teams","hooks_url":"https://api.github.com/repos/brave/browser-laptop/hooks","issue_events_url":"https://api.github.com/repos/brave/browser-laptop/issues/events{/number}","events_url":"https://api.github.com/repos/brave/browser-laptop/events","assignees_url":"https://api.github.com/repos/brave/browser-laptop/assignees{/user}","branches_url":"https://api.github.com/repos/brave/browser-laptop/branches{/branch}","tags_url":"https://api.github.com/repos/brave/browser-laptop/tags","blobs_url":"https://api.github.com/repos/brave/browser-laptop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brave/browser-laptop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brave/browser-laptop/git/refs{/sha}","trees_url":"https://api.github.com/repos/brave/browser-laptop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brave/browser-laptop/statuses/{sha}","languages_url":"https://api.github.com/repos/brave/browser-laptop/languages","stargazers_url":"https://api.github.com/repos/brave/browser-laptop/stargazers","contributors_url":"https://api.github.com/repos/brave/browser-laptop/contributors","subscribers_url":"https://api.github.com/repos/brave/browser-laptop/subscribers","subscription_url":"https://api.github.com/repos/brave/browser-laptop/subscription","commits_url":"https://api.github.com/repos/brave/browser-laptop/commits{/sha}","git_commits_url":"https://api.github.com/repos/brave/browser-laptop/git/commits{/sha}","comments_url":"https://api.github.com/repos/brave/browser-laptop/comments{/number}","issue_comment_url":"https://api.github.com/repos/brave/browser-laptop/issues/comments{/number}","contents_url":"https://api.github.com/repos/brave/browser-laptop/contents/{+path}","compare_url":"https://api.github.com/repos/brave/browser-laptop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brave/browser-laptop/merges","archive_url":"https://api.github.com/repos/brave/browser-laptop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brave/browser-laptop/downloads","issues_url":"https://api.github.com/repos/brave/browser-laptop/issues{/number}","pulls_url":"https://api.github.com/repos/brave/browser-laptop/pulls{/number}","milestones_url":"https://api.github.com/repos/brave/browser-laptop/milestones{/number}","notifications_url":"https://api.github.com/repos/brave/browser-laptop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brave/browser-laptop/labels{/name}","releases_url":"https://api.github.com/repos/brave/browser-laptop/releases{/id}","deployments_url":"https://api.github.com/repos/brave/browser-laptop/deployments","created_at":"2015-11-25T22:55:10Z","updated_at":"2016-10-12T12:06:03Z","pushed_at":"2016-10-12T14:31:26Z","git_url":"git://github.com/brave/browser-laptop.git","ssh_url":"git@github.com:brave/browser-laptop.git","clone_url":"https://github.com/brave/browser-laptop.git","svn_url":"https://github.com/brave/browser-laptop","homepage":"https://www.brave.com","size":41142,"stargazers_count":3562,"watchers_count":3562,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":407,"mirror_url":null,"open_issues_count":1319,"forks":407,"open_issues":1319,"watchers":3562,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brave/browser-laptop/pulls/4714"},"html":{"href":"https://github.com/brave/browser-laptop/pull/4714"},"issue":{"href":"https://api.github.com/repos/brave/browser-laptop/issues/4714"},"comments":{"href":"https://api.github.com/repos/brave/browser-laptop/issues/4714/comments"},"review_comments":{"href":"https://api.github.com/repos/brave/browser-laptop/pulls/4714/comments"},"review_comment":{"href":"https://api.github.com/repos/brave/browser-laptop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brave/browser-laptop/pulls/4714/commits"},"statuses":{"href":"https://api.github.com/repos/brave/browser-laptop/statuses/37a96fd743c46be6902861283fefa93361038c7e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":87,"deletions":30,"changed_files":6}}
{"actor":{"display_login":"willy-b"}}