{"action":"opened","number":144,"pull_request":{"url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/pulls/144","id":60154845,"html_url":"https://github.com/ssbc/secure-scuttlebutt/pull/144","diff_url":"https://github.com/ssbc/secure-scuttlebutt/pull/144.diff","patch_url":"https://github.com/ssbc/secure-scuttlebutt/pull/144.patch","issue_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/issues/144","number":144,"state":"open","locked":false,"title":"get accepts a timestamp","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":"in the streamview work, everything is based around an append only log, which provides order, but is also the main storage of the database. Since it's append only storage, it makes sense to be able to use a monotonically increasing key. We can make this more efficient later, by putting the data and the log into an append only file, but this is enough to allow development with streamviews.\r\n\r\nIt should be stressed though, that this is only intended for internal apis to use. the timestamp you have will not be the same as someone elses.","created_at":"2016-02-22T10:50:07Z","updated_at":"2016-02-22T10:50:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/pulls/144/commits","review_comments_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/pulls/144/comments","review_comment_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/issues/144/comments","statuses_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/statuses/b450c1777f93ddc8c6cd3d151426bcdc58a62f55","head":{"label":"ssbc:get-timestamp","ref":"get-timestamp","sha":"b450c1777f93ddc8c6cd3d151426bcdc58a62f55","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":19653696,"name":"secure-scuttlebutt","full_name":"ssbc/secure-scuttlebutt","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/secure-scuttlebutt","description":"a secure database with replication that is guaranteed to work","fork":false,"url":"https://api.github.com/repos/ssbc/secure-scuttlebutt","forks_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/forks","keys_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/teams","hooks_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/hooks","issue_events_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/issues/events{/number}","events_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/events","assignees_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/assignees{/user}","branches_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/branches{/branch}","tags_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/tags","blobs_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/git/refs{/sha}","trees_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/statuses/{sha}","languages_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/languages","stargazers_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/stargazers","contributors_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/contributors","subscribers_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/subscribers","subscription_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/subscription","commits_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/commits{/sha}","git_commits_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/git/commits{/sha}","comments_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/comments{/number}","issue_comment_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/issues/comments{/number}","contents_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/contents/{+path}","compare_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/merges","archive_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/downloads","issues_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/issues{/number}","pulls_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/pulls{/number}","milestones_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/milestones{/number}","notifications_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/labels{/name}","releases_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/releases{/id}","deployments_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/deployments","created_at":"2014-05-10T22:42:14Z","updated_at":"2016-02-19T12:39:06Z","pushed_at":"2016-02-22T10:50:07Z","git_url":"git://github.com/ssbc/secure-scuttlebutt.git","ssh_url":"git@github.com:ssbc/secure-scuttlebutt.git","clone_url":"https://github.com/ssbc/secure-scuttlebutt.git","svn_url":"https://github.com/ssbc/secure-scuttlebutt","homepage":"","size":426,"stargazers_count":206,"watchers_count":206,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":40,"forks":16,"open_issues":40,"watchers":206,"default_branch":"master"}},"base":{"label":"ssbc:master","ref":"master","sha":"97ef0ddef5d86ad6526b65c7272f43903d5cbfc3","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":19653696,"name":"secure-scuttlebutt","full_name":"ssbc/secure-scuttlebutt","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/secure-scuttlebutt","description":"a secure database with replication that is guaranteed to work","fork":false,"url":"https://api.github.com/repos/ssbc/secure-scuttlebutt","forks_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/forks","keys_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/teams","hooks_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/hooks","issue_events_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/issues/events{/number}","events_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/events","assignees_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/assignees{/user}","branches_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/branches{/branch}","tags_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/tags","blobs_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/git/refs{/sha}","trees_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/statuses/{sha}","languages_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/languages","stargazers_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/stargazers","contributors_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/contributors","subscribers_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/subscribers","subscription_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/subscription","commits_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/commits{/sha}","git_commits_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/git/commits{/sha}","comments_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/comments{/number}","issue_comment_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/issues/comments{/number}","contents_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/contents/{+path}","compare_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/merges","archive_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/downloads","issues_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/issues{/number}","pulls_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/pulls{/number}","milestones_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/milestones{/number}","notifications_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/labels{/name}","releases_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/releases{/id}","deployments_url":"https://api.github.com/repos/ssbc/secure-scuttlebutt/deployments","created_at":"2014-05-10T22:42:14Z","updated_at":"2016-02-19T12:39:06Z","pushed_at":"2016-02-22T10:50:07Z","git_url":"git://github.com/ssbc/secure-scuttlebutt.git","ssh_url":"git@github.com:ssbc/secure-scuttlebutt.git","clone_url":"https://github.com/ssbc/secure-scuttlebutt.git","svn_url":"https://github.com/ssbc/secure-scuttlebutt","homepage":"","size":426,"stargazers_count":206,"watchers_count":206,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":40,"forks":16,"open_issues":40,"watchers":206,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ssbc/secure-scuttlebutt/pulls/144"},"html":{"href":"https://github.com/ssbc/secure-scuttlebutt/pull/144"},"issue":{"href":"https://api.github.com/repos/ssbc/secure-scuttlebutt/issues/144"},"comments":{"href":"https://api.github.com/repos/ssbc/secure-scuttlebutt/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/ssbc/secure-scuttlebutt/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/ssbc/secure-scuttlebutt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ssbc/secure-scuttlebutt/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/ssbc/secure-scuttlebutt/statuses/b450c1777f93ddc8c6cd3d151426bcdc58a62f55"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":21,"deletions":3,"changed_files":1}}