{"action":"created","comment":{"url":"https://api.github.com/repos/ipfs/go-ds-badger/pulls/comments/208011909","pull_request_review_id":143732926,"id":208011909,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODAxMTkwOQ==","diff_hunk":"@@ -547,3 +548,155 @@ func TestDiskUsage(t *testing.T) {\n \t}\n \td.Close()\n }\n+\n+func TestTxnRollback(t *testing.T) {\n+\td, err := NewDatastore(\"/tmp/testing_badger_du\", nil)","path":"ds_test.go","position":14,"original_position":14,"commit_id":"15e74d9dcf9306adf4a1b8e10526fd967d63a675","original_commit_id":"15e74d9dcf9306adf4a1b8e10526fd967d63a675","user":{"login":"magik6k","id":3867941,"node_id":"MDQ6VXNlcjM4Njc5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/3867941?v=4","gravatar_id":"","url":"https://api.github.com/users/magik6k","html_url":"https://github.com/magik6k","followers_url":"https://api.github.com/users/magik6k/followers","following_url":"https://api.github.com/users/magik6k/following{/other_user}","gists_url":"https://api.github.com/users/magik6k/gists{/gist_id}","starred_url":"https://api.github.com/users/magik6k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magik6k/subscriptions","organizations_url":"https://api.github.com/users/magik6k/orgs","repos_url":"https://api.github.com/users/magik6k/repos","events_url":"https://api.github.com/users/magik6k/events{/privacy}","received_events_url":"https://api.github.com/users/magik6k/received_events","type":"User","site_admin":false},"body":"Should use `ioutil.TempDir`","created_at":"2018-08-06T20:01:41Z","updated_at":"2018-08-06T20:02:05Z","html_url":"https://github.com/ipfs/go-ds-badger/pull/27#discussion_r208011909","pull_request_url":"https://api.github.com/repos/ipfs/go-ds-badger/pulls/27","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ipfs/go-ds-badger/pulls/comments/208011909"},"html":{"href":"https://github.com/ipfs/go-ds-badger/pull/27#discussion_r208011909"},"pull_request":{"href":"https://api.github.com/repos/ipfs/go-ds-badger/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/ipfs/go-ds-badger/pulls/27","id":203952434,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzOTUyNDM0","html_url":"https://github.com/ipfs/go-ds-badger/pull/27","diff_url":"https://github.com/ipfs/go-ds-badger/pull/27.diff","patch_url":"https://github.com/ipfs/go-ds-badger/pull/27.patch","issue_url":"https://api.github.com/repos/ipfs/go-ds-badger/issues/27","number":27,"state":"open","locked":false,"title":"Implement new TxDatastore and Txn interfaces","user":{"login":"bigs","id":213338,"node_id":"MDQ6VXNlcjIxMzMzOA==","avatar_url":"https://avatars0.githubusercontent.com/u/213338?v=4","gravatar_id":"","url":"https://api.github.com/users/bigs","html_url":"https://github.com/bigs","followers_url":"https://api.github.com/users/bigs/followers","following_url":"https://api.github.com/users/bigs/following{/other_user}","gists_url":"https://api.github.com/users/bigs/gists{/gist_id}","starred_url":"https://api.github.com/users/bigs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigs/subscriptions","organizations_url":"https://api.github.com/users/bigs/orgs","repos_url":"https://api.github.com/users/bigs/repos","events_url":"https://api.github.com/users/bigs/events{/privacy}","received_events_url":"https://api.github.com/users/bigs/received_events","type":"User","site_admin":false},"body":"adds full on transaction support for the badger datastore. related to ipfs/go-datastore#91, though not dependent on it. also updates all vanilla Datastore methods to leverage the transaction wrapper.\r\n\r\nWIP for now because it doesn't include transaction specific tests, though all existing tests (which depend on them implicitly) are passing.","created_at":"2018-07-25T20:23:08Z","updated_at":"2018-08-06T20:02:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1915e18c4c6396210709bab2c21b3c37e17efcbe","assignee":null,"assignees":[],"requested_reviewers":[{"login":"schomatis","id":10407385,"node_id":"MDQ6VXNlcjEwNDA3Mzg1","avatar_url":"https://avatars0.githubusercontent.com/u/10407385?v=4","gravatar_id":"","url":"https://api.github.com/users/schomatis","html_url":"https://github.com/schomatis","followers_url":"https://api.github.com/users/schomatis/followers","following_url":"https://api.github.com/users/schomatis/following{/other_user}","gists_url":"https://api.github.com/users/schomatis/gists{/gist_id}","starred_url":"https://api.github.com/users/schomatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schomatis/subscriptions","organizations_url":"https://api.github.com/users/schomatis/orgs","repos_url":"https://api.github.com/users/schomatis/repos","events_url":"https://api.github.com/users/schomatis/events{/privacy}","received_events_url":"https://api.github.com/users/schomatis/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ipfs/go-ds-badger/pulls/27/commits","review_comments_url":"https://api.github.com/repos/ipfs/go-ds-badger/pulls/27/comments","review_comment_url":"https://api.github.com/repos/ipfs/go-ds-badger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ipfs/go-ds-badger/issues/27/comments","statuses_url":"https://api.github.com/repos/ipfs/go-ds-badger/statuses/15e74d9dcf9306adf4a1b8e10526fd967d63a675","head":{"label":"bigs:feat/txdatastore","ref":"feat/txdatastore","sha":"15e74d9dcf9306adf4a1b8e10526fd967d63a675","user":{"login":"bigs","id":213338,"node_id":"MDQ6VXNlcjIxMzMzOA==","avatar_url":"https://avatars0.githubusercontent.com/u/213338?v=4","gravatar_id":"","url":"https://api.github.com/users/bigs","html_url":"https://github.com/bigs","followers_url":"https://api.github.com/users/bigs/followers","following_url":"https://api.github.com/users/bigs/following{/other_user}","gists_url":"https://api.github.com/users/bigs/gists{/gist_id}","starred_url":"https://api.github.com/users/bigs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigs/subscriptions","organizations_url":"https://api.github.com/users/bigs/orgs","repos_url":"https://api.github.com/users/bigs/repos","events_url":"https://api.github.com/users/bigs/events{/privacy}","received_events_url":"https://api.github.com/users/bigs/received_events","type":"User","site_admin":false},"repo":{"id":136986405,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY5ODY0MDU=","name":"go-ds-badger","full_name":"bigs/go-ds-badger","owner":{"login":"bigs","id":213338,"node_id":"MDQ6VXNlcjIxMzMzOA==","avatar_url":"https://avatars0.githubusercontent.com/u/213338?v=4","gravatar_id":"","url":"https://api.github.com/users/bigs","html_url":"https://github.com/bigs","followers_url":"https://api.github.com/users/bigs/followers","following_url":"https://api.github.com/users/bigs/following{/other_user}","gists_url":"https://api.github.com/users/bigs/gists{/gist_id}","starred_url":"https://api.github.com/users/bigs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigs/subscriptions","organizations_url":"https://api.github.com/users/bigs/orgs","repos_url":"https://api.github.com/users/bigs/repos","events_url":"https://api.github.com/users/bigs/events{/privacy}","received_events_url":"https://api.github.com/users/bigs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bigs/go-ds-badger","description":null,"fork":true,"url":"https://api.github.com/repos/bigs/go-ds-badger","forks_url":"https://api.github.com/repos/bigs/go-ds-badger/forks","keys_url":"https://api.github.com/repos/bigs/go-ds-badger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bigs/go-ds-badger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bigs/go-ds-badger/teams","hooks_url":"https://api.github.com/repos/bigs/go-ds-badger/hooks","issue_events_url":"https://api.github.com/repos/bigs/go-ds-badger/issues/events{/number}","events_url":"https://api.github.com/repos/bigs/go-ds-badger/events","assignees_url":"https://api.github.com/repos/bigs/go-ds-badger/assignees{/user}","branches_url":"https://api.github.com/repos/bigs/go-ds-badger/branches{/branch}","tags_url":"https://api.github.com/repos/bigs/go-ds-badger/tags","blobs_url":"https://api.github.com/repos/bigs/go-ds-badger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bigs/go-ds-badger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bigs/go-ds-badger/git/refs{/sha}","trees_url":"https://api.github.com/repos/bigs/go-ds-badger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bigs/go-ds-badger/statuses/{sha}","languages_url":"https://api.github.com/repos/bigs/go-ds-badger/languages","stargazers_url":"https://api.github.com/repos/bigs/go-ds-badger/stargazers","contributors_url":"https://api.github.com/repos/bigs/go-ds-badger/contributors","subscribers_url":"https://api.github.com/repos/bigs/go-ds-badger/subscribers","subscription_url":"https://api.github.com/repos/bigs/go-ds-badger/subscription","commits_url":"https://api.github.com/repos/bigs/go-ds-badger/commits{/sha}","git_commits_url":"https://api.github.com/repos/bigs/go-ds-badger/git/commits{/sha}","comments_url":"https://api.github.com/repos/bigs/go-ds-badger/comments{/number}","issue_comment_url":"https://api.github.com/repos/bigs/go-ds-badger/issues/comments{/number}","contents_url":"https://api.github.com/repos/bigs/go-ds-badger/contents/{+path}","compare_url":"https://api.github.com/repos/bigs/go-ds-badger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bigs/go-ds-badger/merges","archive_url":"https://api.github.com/repos/bigs/go-ds-badger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bigs/go-ds-badger/downloads","issues_url":"https://api.github.com/repos/bigs/go-ds-badger/issues{/number}","pulls_url":"https://api.github.com/repos/bigs/go-ds-badger/pulls{/number}","milestones_url":"https://api.github.com/repos/bigs/go-ds-badger/milestones{/number}","notifications_url":"https://api.github.com/repos/bigs/go-ds-badger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bigs/go-ds-badger/labels{/name}","releases_url":"https://api.github.com/repos/bigs/go-ds-badger/releases{/id}","deployments_url":"https://api.github.com/repos/bigs/go-ds-badger/deployments","created_at":"2018-06-11T22:11:09Z","updated_at":"2018-06-11T22:11:11Z","pushed_at":"2018-07-26T18:07:01Z","git_url":"git://github.com/bigs/go-ds-badger.git","ssh_url":"git@github.com:bigs/go-ds-badger.git","clone_url":"https://github.com/bigs/go-ds-badger.git","svn_url":"https://github.com/bigs/go-ds-badger","homepage":null,"size":62,"stargazers_count":0,"watchers_count":0,"language":"Go","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","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ipfs:master","ref":"master","sha":"5986c24d54a902f2adcdf75c419a3adfe2847086","user":{"login":"ipfs","id":10536621,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNTM2NjIx","avatar_url":"https://avatars0.githubusercontent.com/u/10536621?v=4","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"repo":{"id":94237692,"node_id":"MDEwOlJlcG9zaXRvcnk5NDIzNzY5Mg==","name":"go-ds-badger","full_name":"ipfs/go-ds-badger","owner":{"login":"ipfs","id":10536621,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNTM2NjIx","avatar_url":"https://avatars0.githubusercontent.com/u/10536621?v=4","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ipfs/go-ds-badger","description":null,"fork":false,"url":"https://api.github.com/repos/ipfs/go-ds-badger","forks_url":"https://api.github.com/repos/ipfs/go-ds-badger/forks","keys_url":"https://api.github.com/repos/ipfs/go-ds-badger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ipfs/go-ds-badger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ipfs/go-ds-badger/teams","hooks_url":"https://api.github.com/repos/ipfs/go-ds-badger/hooks","issue_events_url":"https://api.github.com/repos/ipfs/go-ds-badger/issues/events{/number}","events_url":"https://api.github.com/repos/ipfs/go-ds-badger/events","assignees_url":"https://api.github.com/repos/ipfs/go-ds-badger/assignees{/user}","branches_url":"https://api.github.com/repos/ipfs/go-ds-badger/branches{/branch}","tags_url":"https://api.github.com/repos/ipfs/go-ds-badger/tags","blobs_url":"https://api.github.com/repos/ipfs/go-ds-badger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ipfs/go-ds-badger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ipfs/go-ds-badger/git/refs{/sha}","trees_url":"https://api.github.com/repos/ipfs/go-ds-badger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ipfs/go-ds-badger/statuses/{sha}","languages_url":"https://api.github.com/repos/ipfs/go-ds-badger/languages","stargazers_url":"https://api.github.com/repos/ipfs/go-ds-badger/stargazers","contributors_url":"https://api.github.com/repos/ipfs/go-ds-badger/contributors","subscribers_url":"https://api.github.com/repos/ipfs/go-ds-badger/subscribers","subscription_url":"https://api.github.com/repos/ipfs/go-ds-badger/subscription","commits_url":"https://api.github.com/repos/ipfs/go-ds-badger/commits{/sha}","git_commits_url":"https://api.github.com/repos/ipfs/go-ds-badger/git/commits{/sha}","comments_url":"https://api.github.com/repos/ipfs/go-ds-badger/comments{/number}","issue_comment_url":"https://api.github.com/repos/ipfs/go-ds-badger/issues/comments{/number}","contents_url":"https://api.github.com/repos/ipfs/go-ds-badger/contents/{+path}","compare_url":"https://api.github.com/repos/ipfs/go-ds-badger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ipfs/go-ds-badger/merges","archive_url":"https://api.github.com/repos/ipfs/go-ds-badger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ipfs/go-ds-badger/downloads","issues_url":"https://api.github.com/repos/ipfs/go-ds-badger/issues{/number}","pulls_url":"https://api.github.com/repos/ipfs/go-ds-badger/pulls{/number}","milestones_url":"https://api.github.com/repos/ipfs/go-ds-badger/milestones{/number}","notifications_url":"https://api.github.com/repos/ipfs/go-ds-badger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ipfs/go-ds-badger/labels{/name}","releases_url":"https://api.github.com/repos/ipfs/go-ds-badger/releases{/id}","deployments_url":"https://api.github.com/repos/ipfs/go-ds-badger/deployments","created_at":"2017-06-13T17:10:24Z","updated_at":"2018-07-30T01:55:12Z","pushed_at":"2018-07-28T01:05:31Z","git_url":"git://github.com/ipfs/go-ds-badger.git","ssh_url":"git@github.com:ipfs/go-ds-badger.git","clone_url":"https://github.com/ipfs/go-ds-badger.git","svn_url":"https://github.com/ipfs/go-ds-badger","homepage":null,"size":91,"stargazers_count":10,"watchers_count":10,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":7,"open_issues":4,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ipfs/go-ds-badger/pulls/27"},"html":{"href":"https://github.com/ipfs/go-ds-badger/pull/27"},"issue":{"href":"https://api.github.com/repos/ipfs/go-ds-badger/issues/27"},"comments":{"href":"https://api.github.com/repos/ipfs/go-ds-badger/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/ipfs/go-ds-badger/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/ipfs/go-ds-badger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ipfs/go-ds-badger/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/ipfs/go-ds-badger/statuses/15e74d9dcf9306adf4a1b8e10526fd967d63a675"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"magik6k"}}