{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/ssbc/ssb-feed/pulls/6","id":39214551,"html_url":"https://github.com/ssbc/ssb-feed/pull/6","diff_url":"https://github.com/ssbc/ssb-feed/pull/6.diff","patch_url":"https://github.com/ssbc/ssb-feed/pull/6.patch","issue_url":"https://api.github.com/repos/ssbc/ssb-feed/issues/6","number":6,"state":"open","locked":false,"title":"Rewrite","user":{"login":"dominictarr","id":259374,"avatar_url":"https://avatars.githubusercontent.com/u/259374?v=3","gravatar_id":"","url":"https://api.github.com/users/dominictarr","html_url":"https://github.com/dominictarr","followers_url":"https://api.github.com/users/dominictarr/followers","following_url":"https://api.github.com/users/dominictarr/following{/other_user}","gists_url":"https://api.github.com/users/dominictarr/gists{/gist_id}","starred_url":"https://api.github.com/users/dominictarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominictarr/subscriptions","organizations_url":"https://api.github.com/users/dominictarr/orgs","repos_url":"https://api.github.com/users/dominictarr/repos","events_url":"https://api.github.com/users/dominictarr/events{/privacy}","received_events_url":"https://api.github.com/users/dominictarr/received_events","type":"User","site_admin":false},"body":"feed and validation basically did the same things, processed queues of messages.\r\n\r\nThough, I had done validation a weird way... it kept everything in one queue,\r\nand then only worked on the head. I've updated this so it keeps a queue for each id.\r\n\r\nit keeps the latest message from each feed in memory, which makes validation really easy.\r\nIt still needs to keep an queue, in case multiple writes come in before reading the current state has completed.\r\n\r\nFeeds (local writes) have been greatly simplified. instead of implementing another queue,\r\nit just pushes the create function onto the validation queue, creating the actual message at the last moment (oops, just did a monad ;)\r\n\r\nTODO: If there are huge numbers of feeds (thousands), clean up ones that havn't been used in a while.","created_at":"2015-07-05T00:28:19Z","updated_at":"2015-07-05T00:28:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ssbc/ssb-feed/pulls/6/commits","review_comments_url":"https://api.github.com/repos/ssbc/ssb-feed/pulls/6/comments","review_comment_url":"https://api.github.com/repos/ssbc/ssb-feed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ssbc/ssb-feed/issues/6/comments","statuses_url":"https://api.github.com/repos/ssbc/ssb-feed/statuses/4d1dff7856037f3e4c4588e8ba43155a00e7320d","head":{"label":"ssbc:rewrite","ref":"rewrite","sha":"4d1dff7856037f3e4c4588e8ba43155a00e7320d","user":{"login":"ssbc","id":10190339,"avatar_url":"https://avatars.githubusercontent.com/u/10190339?v=3","gravatar_id":"","url":"https://api.github.com/users/ssbc","html_url":"https://github.com/ssbc","followers_url":"https://api.github.com/users/ssbc/followers","following_url":"https://api.github.com/users/ssbc/following{/other_user}","gists_url":"https://api.github.com/users/ssbc/gists{/gist_id}","starred_url":"https://api.github.com/users/ssbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssbc/subscriptions","organizations_url":"https://api.github.com/users/ssbc/orgs","repos_url":"https://api.github.com/users/ssbc/repos","events_url":"https://api.github.com/users/ssbc/events{/privacy}","received_events_url":"https://api.github.com/users/ssbc/received_events","type":"Organization","site_admin":false},"repo":{"id":32658166,"name":"ssb-feed","full_name":"ssbc/ssb-feed","owner":{"login":"ssbc","id":10190339,"avatar_url":"https://avatars.githubusercontent.com/u/10190339?v=3","gravatar_id":"","url":"https://api.github.com/users/ssbc","html_url":"https://github.com/ssbc","followers_url":"https://api.github.com/users/ssbc/followers","following_url":"https://api.github.com/users/ssbc/following{/other_user}","gists_url":"https://api.github.com/users/ssbc/gists{/gist_id}","starred_url":"https://api.github.com/users/ssbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssbc/subscriptions","organizations_url":"https://api.github.com/users/ssbc/orgs","repos_url":"https://api.github.com/users/ssbc/repos","events_url":"https://api.github.com/users/ssbc/events{/privacy}","received_events_url":"https://api.github.com/users/ssbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ssbc/ssb-feed","description":"create a secure-scuttlebutt feed","fork":false,"url":"https://api.github.com/repos/ssbc/ssb-feed","forks_url":"https://api.github.com/repos/ssbc/ssb-feed/forks","keys_url":"https://api.github.com/repos/ssbc/ssb-feed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ssbc/ssb-feed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ssbc/ssb-feed/teams","hooks_url":"https://api.github.com/repos/ssbc/ssb-feed/hooks","issue_events_url":"https://api.github.com/repos/ssbc/ssb-feed/issues/events{/number}","events_url":"https://api.github.com/repos/ssbc/ssb-feed/events","assignees_url":"https://api.github.com/repos/ssbc/ssb-feed/assignees{/user}","branches_url":"https://api.github.com/repos/ssbc/ssb-feed/branches{/branch}","tags_url":"https://api.github.com/repos/ssbc/ssb-feed/tags","blobs_url":"https://api.github.com/repos/ssbc/ssb-feed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ssbc/ssb-feed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ssbc/ssb-feed/git/refs{/sha}","trees_url":"https://api.github.com/repos/ssbc/ssb-feed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ssbc/ssb-feed/statuses/{sha}","languages_url":"https://api.github.com/repos/ssbc/ssb-feed/languages","stargazers_url":"https://api.github.com/repos/ssbc/ssb-feed/stargazers","contributors_url":"https://api.github.com/repos/ssbc/ssb-feed/contributors","subscribers_url":"https://api.github.com/repos/ssbc/ssb-feed/subscribers","subscription_url":"https://api.github.com/repos/ssbc/ssb-feed/subscription","commits_url":"https://api.github.com/repos/ssbc/ssb-feed/commits{/sha}","git_commits_url":"https://api.github.com/repos/ssbc/ssb-feed/git/commits{/sha}","comments_url":"https://api.github.com/repos/ssbc/ssb-feed/comments{/number}","issue_comment_url":"https://api.github.com/repos/ssbc/ssb-feed/issues/comments{/number}","contents_url":"https://api.github.com/repos/ssbc/ssb-feed/contents/{+path}","compare_url":"https://api.github.com/repos/ssbc/ssb-feed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ssbc/ssb-feed/merges","archive_url":"https://api.github.com/repos/ssbc/ssb-feed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ssbc/ssb-feed/downloads","issues_url":"https://api.github.com/repos/ssbc/ssb-feed/issues{/number}","pulls_url":"https://api.github.com/repos/ssbc/ssb-feed/pulls{/number}","milestones_url":"https://api.github.com/repos/ssbc/ssb-feed/milestones{/number}","notifications_url":"https://api.github.com/repos/ssbc/ssb-feed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ssbc/ssb-feed/labels{/name}","releases_url":"https://api.github.com/repos/ssbc/ssb-feed/releases{/id}","created_at":"2015-03-22T02:05:52Z","updated_at":"2015-05-16T22:49:33Z","pushed_at":"2015-07-05T00:20:56Z","git_url":"git://github.com/ssbc/ssb-feed.git","ssh_url":"git@github.com:ssbc/ssb-feed.git","clone_url":"https://github.com/ssbc/ssb-feed.git","svn_url":"https://github.com/ssbc/ssb-feed","homepage":null,"size":196,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"ssbc:master","ref":"master","sha":"478972b942bc63c7595e9224fa6aa9cdbca0bd06","user":{"login":"ssbc","id":10190339,"avatar_url":"https://avatars.githubusercontent.com/u/10190339?v=3","gravatar_id":"","url":"https://api.github.com/users/ssbc","html_url":"https://github.com/ssbc","followers_url":"https://api.github.com/users/ssbc/followers","following_url":"https://api.github.com/users/ssbc/following{/other_user}","gists_url":"https://api.github.com/users/ssbc/gists{/gist_id}","starred_url":"https://api.github.com/users/ssbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssbc/subscriptions","organizations_url":"https://api.github.com/users/ssbc/orgs","repos_url":"https://api.github.com/users/ssbc/repos","events_url":"https://api.github.com/users/ssbc/events{/privacy}","received_events_url":"https://api.github.com/users/ssbc/received_events","type":"Organization","site_admin":false},"repo":{"id":32658166,"name":"ssb-feed","full_name":"ssbc/ssb-feed","owner":{"login":"ssbc","id":10190339,"avatar_url":"https://avatars.githubusercontent.com/u/10190339?v=3","gravatar_id":"","url":"https://api.github.com/users/ssbc","html_url":"https://github.com/ssbc","followers_url":"https://api.github.com/users/ssbc/followers","following_url":"https://api.github.com/users/ssbc/following{/other_user}","gists_url":"https://api.github.com/users/ssbc/gists{/gist_id}","starred_url":"https://api.github.com/users/ssbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssbc/subscriptions","organizations_url":"https://api.github.com/users/ssbc/orgs","repos_url":"https://api.github.com/users/ssbc/repos","events_url":"https://api.github.com/users/ssbc/events{/privacy}","received_events_url":"https://api.github.com/users/ssbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ssbc/ssb-feed","description":"create a secure-scuttlebutt feed","fork":false,"url":"https://api.github.com/repos/ssbc/ssb-feed","forks_url":"https://api.github.com/repos/ssbc/ssb-feed/forks","keys_url":"https://api.github.com/repos/ssbc/ssb-feed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ssbc/ssb-feed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ssbc/ssb-feed/teams","hooks_url":"https://api.github.com/repos/ssbc/ssb-feed/hooks","issue_events_url":"https://api.github.com/repos/ssbc/ssb-feed/issues/events{/number}","events_url":"https://api.github.com/repos/ssbc/ssb-feed/events","assignees_url":"https://api.github.com/repos/ssbc/ssb-feed/assignees{/user}","branches_url":"https://api.github.com/repos/ssbc/ssb-feed/branches{/branch}","tags_url":"https://api.github.com/repos/ssbc/ssb-feed/tags","blobs_url":"https://api.github.com/repos/ssbc/ssb-feed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ssbc/ssb-feed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ssbc/ssb-feed/git/refs{/sha}","trees_url":"https://api.github.com/repos/ssbc/ssb-feed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ssbc/ssb-feed/statuses/{sha}","languages_url":"https://api.github.com/repos/ssbc/ssb-feed/languages","stargazers_url":"https://api.github.com/repos/ssbc/ssb-feed/stargazers","contributors_url":"https://api.github.com/repos/ssbc/ssb-feed/contributors","subscribers_url":"https://api.github.com/repos/ssbc/ssb-feed/subscribers","subscription_url":"https://api.github.com/repos/ssbc/ssb-feed/subscription","commits_url":"https://api.github.com/repos/ssbc/ssb-feed/commits{/sha}","git_commits_url":"https://api.github.com/repos/ssbc/ssb-feed/git/commits{/sha}","comments_url":"https://api.github.com/repos/ssbc/ssb-feed/comments{/number}","issue_comment_url":"https://api.github.com/repos/ssbc/ssb-feed/issues/comments{/number}","contents_url":"https://api.github.com/repos/ssbc/ssb-feed/contents/{+path}","compare_url":"https://api.github.com/repos/ssbc/ssb-feed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ssbc/ssb-feed/merges","archive_url":"https://api.github.com/repos/ssbc/ssb-feed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ssbc/ssb-feed/downloads","issues_url":"https://api.github.com/repos/ssbc/ssb-feed/issues{/number}","pulls_url":"https://api.github.com/repos/ssbc/ssb-feed/pulls{/number}","milestones_url":"https://api.github.com/repos/ssbc/ssb-feed/milestones{/number}","notifications_url":"https://api.github.com/repos/ssbc/ssb-feed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ssbc/ssb-feed/labels{/name}","releases_url":"https://api.github.com/repos/ssbc/ssb-feed/releases{/id}","created_at":"2015-03-22T02:05:52Z","updated_at":"2015-05-16T22:49:33Z","pushed_at":"2015-07-05T00:20:56Z","git_url":"git://github.com/ssbc/ssb-feed.git","ssh_url":"git@github.com:ssbc/ssb-feed.git","clone_url":"https://github.com/ssbc/ssb-feed.git","svn_url":"https://github.com/ssbc/ssb-feed","homepage":null,"size":196,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ssbc/ssb-feed/pulls/6"},"html":{"href":"https://github.com/ssbc/ssb-feed/pull/6"},"issue":{"href":"https://api.github.com/repos/ssbc/ssb-feed/issues/6"},"comments":{"href":"https://api.github.com/repos/ssbc/ssb-feed/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/ssbc/ssb-feed/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/ssbc/ssb-feed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ssbc/ssb-feed/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/ssbc/ssb-feed/statuses/4d1dff7856037f3e4c4588e8ba43155a00e7320d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":617,"deletions":49,"changed_files":9}}