{"action":"created","comment":{"url":"https://api.github.com/repos/storj/storj/pulls/comments/238273229","pull_request_review_id":180771279,"id":238273229,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODI3MzIyOQ==","diff_hunk":"@@ -0,0 +1,90 @@\n+// Copyright (C) 2018 Storj Labs, Inc.\n+// See LICENSE for copying information.\n+\n+package irreparabledb\n+\n+import (\n+\t\"context\"\n+\t\"flag\"\n+\t\"os\"\n+\t\"testing\"\n+\t\"time\"\n+\n+\t\"github.com/stretchr/testify/assert\"\n+\t\"storj.io/storj/internal/testcontext\"\n+)\n+\n+const (\n+\t// this connstring is expected to work under the storj-test docker-compose instance\n+\tdefaultPostgresConn = \"postgres://storj:storj-pass@test-postgres/teststorj?sslmode=disable\"\n+)\n+\n+var (\n+\ttestPostgres = flag.String(\"postgres-test-db\", os.Getenv(\"STORJ_POSTGRES_TEST\"), \"PostgreSQL test database connection string\")\n+)\n+\n+func TestPostgres(t *testing.T) {\n+\tctx := testcontext.New(t)\n+\tdefer ctx.Cleanup()\n+\n+\tif *testPostgres == \"\" {","path":"pkg/irreparabledb/irreparabledb_test.go","position":27,"original_position":30,"commit_id":"38401608ac482f50eaf13e03baf8c372e5f36cb4","original_commit_id":"448d48335507e97a30d0ed952db1628a58f514cb","user":{"login":"aligeti","id":34487396,"node_id":"MDQ6VXNlcjM0NDg3Mzk2","avatar_url":"https://avatars0.githubusercontent.com/u/34487396?v=4","gravatar_id":"","url":"https://api.github.com/users/aligeti","html_url":"https://github.com/aligeti","followers_url":"https://api.github.com/users/aligeti/followers","following_url":"https://api.github.com/users/aligeti/following{/other_user}","gists_url":"https://api.github.com/users/aligeti/gists{/gist_id}","starred_url":"https://api.github.com/users/aligeti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aligeti/subscriptions","organizations_url":"https://api.github.com/users/aligeti/orgs","repos_url":"https://api.github.com/users/aligeti/repos","events_url":"https://api.github.com/users/aligeti/events{/privacy}","received_events_url":"https://api.github.com/users/aligeti/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-12-03T13:46:44Z","updated_at":"2018-12-03T13:46:45Z","html_url":"https://github.com/storj/storj/pull/686#discussion_r238273229","pull_request_url":"https://api.github.com/repos/storj/storj/pulls/686","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/storj/storj/pulls/comments/238273229"},"html":{"href":"https://github.com/storj/storj/pull/686#discussion_r238273229"},"pull_request":{"href":"https://api.github.com/repos/storj/storj/pulls/686"}},"in_reply_to_id":238256865},"pull_request":{"url":"https://api.github.com/repos/storj/storj/pulls/686","id":232094744,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMDk0NzQ0","html_url":"https://github.com/storj/storj/pull/686","diff_url":"https://github.com/storj/storj/pull/686.diff","patch_url":"https://github.com/storj/storj/pull/686.patch","issue_url":"https://api.github.com/repos/storj/storj/issues/686","number":686,"state":"open","locked":false,"title":"Keep track of 'irreparable' segments in a database","user":{"login":"aligeti","id":34487396,"node_id":"MDQ6VXNlcjM0NDg3Mzk2","avatar_url":"https://avatars0.githubusercontent.com/u/34487396?v=4","gravatar_id":"","url":"https://api.github.com/users/aligeti","html_url":"https://github.com/aligeti","followers_url":"https://api.github.com/users/aligeti/followers","following_url":"https://api.github.com/users/aligeti/following{/other_user}","gists_url":"https://api.github.com/users/aligeti/gists{/gist_id}","starred_url":"https://api.github.com/users/aligeti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aligeti/subscriptions","organizations_url":"https://api.github.com/users/aligeti/orgs","repos_url":"https://api.github.com/users/aligeti/repos","events_url":"https://api.github.com/users/aligeti/events{/privacy}","received_events_url":"https://api.github.com/users/aligeti/received_events","type":"User","site_admin":false},"body":"https://storjlabs.atlassian.net/browse/V3-858\r\n\r\nObjective:\r\n========\r\nWhen the checker finds out that the number of lost pieces happen to be less than minimum required pieces, then the checker will put that segment's info into another database 'irreparabledb' (could be setup as sqlite3 or Postgres') and shall support Create, Get, and Delete functions.\r\n\r\n","created_at":"2018-11-19T20:00:32Z","updated_at":"2018-12-03T13:46:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d772e696711878f62974d9b3b117723091bb681","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1077048580,"node_id":"MDU6TGFiZWwxMDc3MDQ4NTgw","url":"https://api.github.com/repos/storj/storj/labels/Request%20Code%20Review","name":"Request Code Review","color":"80edbf","default":false},{"id":982933521,"node_id":"MDU6TGFiZWw5ODI5MzM1MjE=","url":"https://api.github.com/repos/storj/storj/labels/cla-signed","name":"cla-signed","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/storj/storj/pulls/686/commits","review_comments_url":"https://api.github.com/repos/storj/storj/pulls/686/comments","review_comment_url":"https://api.github.com/repos/storj/storj/pulls/comments{/number}","comments_url":"https://api.github.com/repos/storj/storj/issues/686/comments","statuses_url":"https://api.github.com/repos/storj/storj/statuses/38401608ac482f50eaf13e03baf8c372e5f36cb4","head":{"label":"storj:irreparable_v3-743","ref":"irreparable_v3-743","sha":"38401608ac482f50eaf13e03baf8c372e5f36cb4","user":{"login":"storj","id":6308081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMDgwODE=","avatar_url":"https://avatars3.githubusercontent.com/u/6308081?v=4","gravatar_id":"","url":"https://api.github.com/users/storj","html_url":"https://github.com/storj","followers_url":"https://api.github.com/users/storj/followers","following_url":"https://api.github.com/users/storj/following{/other_user}","gists_url":"https://api.github.com/users/storj/gists{/gist_id}","starred_url":"https://api.github.com/users/storj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storj/subscriptions","organizations_url":"https://api.github.com/users/storj/orgs","repos_url":"https://api.github.com/users/storj/repos","events_url":"https://api.github.com/users/storj/events{/privacy}","received_events_url":"https://api.github.com/users/storj/received_events","type":"Organization","site_admin":false},"repo":{"id":128089774,"node_id":"MDEwOlJlcG9zaXRvcnkxMjgwODk3NzQ=","name":"storj","full_name":"storj/storj","private":false,"owner":{"login":"storj","id":6308081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMDgwODE=","avatar_url":"https://avatars3.githubusercontent.com/u/6308081?v=4","gravatar_id":"","url":"https://api.github.com/users/storj","html_url":"https://github.com/storj","followers_url":"https://api.github.com/users/storj/followers","following_url":"https://api.github.com/users/storj/following{/other_user}","gists_url":"https://api.github.com/users/storj/gists{/gist_id}","starred_url":"https://api.github.com/users/storj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storj/subscriptions","organizations_url":"https://api.github.com/users/storj/orgs","repos_url":"https://api.github.com/users/storj/repos","events_url":"https://api.github.com/users/storj/events{/privacy}","received_events_url":"https://api.github.com/users/storj/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/storj/storj","description":"Ongoing Storj v3 development. Decentralized cloud object storage that is affordable, easy to use, private, and secure.","fork":false,"url":"https://api.github.com/repos/storj/storj","forks_url":"https://api.github.com/repos/storj/storj/forks","keys_url":"https://api.github.com/repos/storj/storj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/storj/storj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/storj/storj/teams","hooks_url":"https://api.github.com/repos/storj/storj/hooks","issue_events_url":"https://api.github.com/repos/storj/storj/issues/events{/number}","events_url":"https://api.github.com/repos/storj/storj/events","assignees_url":"https://api.github.com/repos/storj/storj/assignees{/user}","branches_url":"https://api.github.com/repos/storj/storj/branches{/branch}","tags_url":"https://api.github.com/repos/storj/storj/tags","blobs_url":"https://api.github.com/repos/storj/storj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/storj/storj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/storj/storj/git/refs{/sha}","trees_url":"https://api.github.com/repos/storj/storj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/storj/storj/statuses/{sha}","languages_url":"https://api.github.com/repos/storj/storj/languages","stargazers_url":"https://api.github.com/repos/storj/storj/stargazers","contributors_url":"https://api.github.com/repos/storj/storj/contributors","subscribers_url":"https://api.github.com/repos/storj/storj/subscribers","subscription_url":"https://api.github.com/repos/storj/storj/subscription","commits_url":"https://api.github.com/repos/storj/storj/commits{/sha}","git_commits_url":"https://api.github.com/repos/storj/storj/git/commits{/sha}","comments_url":"https://api.github.com/repos/storj/storj/comments{/number}","issue_comment_url":"https://api.github.com/repos/storj/storj/issues/comments{/number}","contents_url":"https://api.github.com/repos/storj/storj/contents/{+path}","compare_url":"https://api.github.com/repos/storj/storj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/storj/storj/merges","archive_url":"https://api.github.com/repos/storj/storj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/storj/storj/downloads","issues_url":"https://api.github.com/repos/storj/storj/issues{/number}","pulls_url":"https://api.github.com/repos/storj/storj/pulls{/number}","milestones_url":"https://api.github.com/repos/storj/storj/milestones{/number}","notifications_url":"https://api.github.com/repos/storj/storj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/storj/storj/labels{/name}","releases_url":"https://api.github.com/repos/storj/storj/releases{/id}","deployments_url":"https://api.github.com/repos/storj/storj/deployments","created_at":"2018-04-04T16:27:18Z","updated_at":"2018-12-03T13:23:18Z","pushed_at":"2018-12-03T13:34:31Z","git_url":"git://github.com/storj/storj.git","ssh_url":"git@github.com:storj/storj.git","clone_url":"https://github.com/storj/storj.git","svn_url":"https://github.com/storj/storj","homepage":"https://storj.io","size":64118,"stargazers_count":355,"watchers_count":355,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":79,"open_issues":35,"watchers":355,"default_branch":"master"}},"base":{"label":"storj:master","ref":"master","sha":"120d875e06f935acc57648229a8a94ff3731ea9b","user":{"login":"storj","id":6308081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMDgwODE=","avatar_url":"https://avatars3.githubusercontent.com/u/6308081?v=4","gravatar_id":"","url":"https://api.github.com/users/storj","html_url":"https://github.com/storj","followers_url":"https://api.github.com/users/storj/followers","following_url":"https://api.github.com/users/storj/following{/other_user}","gists_url":"https://api.github.com/users/storj/gists{/gist_id}","starred_url":"https://api.github.com/users/storj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storj/subscriptions","organizations_url":"https://api.github.com/users/storj/orgs","repos_url":"https://api.github.com/users/storj/repos","events_url":"https://api.github.com/users/storj/events{/privacy}","received_events_url":"https://api.github.com/users/storj/received_events","type":"Organization","site_admin":false},"repo":{"id":128089774,"node_id":"MDEwOlJlcG9zaXRvcnkxMjgwODk3NzQ=","name":"storj","full_name":"storj/storj","private":false,"owner":{"login":"storj","id":6308081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzMDgwODE=","avatar_url":"https://avatars3.githubusercontent.com/u/6308081?v=4","gravatar_id":"","url":"https://api.github.com/users/storj","html_url":"https://github.com/storj","followers_url":"https://api.github.com/users/storj/followers","following_url":"https://api.github.com/users/storj/following{/other_user}","gists_url":"https://api.github.com/users/storj/gists{/gist_id}","starred_url":"https://api.github.com/users/storj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storj/subscriptions","organizations_url":"https://api.github.com/users/storj/orgs","repos_url":"https://api.github.com/users/storj/repos","events_url":"https://api.github.com/users/storj/events{/privacy}","received_events_url":"https://api.github.com/users/storj/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/storj/storj","description":"Ongoing Storj v3 development. Decentralized cloud object storage that is affordable, easy to use, private, and secure.","fork":false,"url":"https://api.github.com/repos/storj/storj","forks_url":"https://api.github.com/repos/storj/storj/forks","keys_url":"https://api.github.com/repos/storj/storj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/storj/storj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/storj/storj/teams","hooks_url":"https://api.github.com/repos/storj/storj/hooks","issue_events_url":"https://api.github.com/repos/storj/storj/issues/events{/number}","events_url":"https://api.github.com/repos/storj/storj/events","assignees_url":"https://api.github.com/repos/storj/storj/assignees{/user}","branches_url":"https://api.github.com/repos/storj/storj/branches{/branch}","tags_url":"https://api.github.com/repos/storj/storj/tags","blobs_url":"https://api.github.com/repos/storj/storj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/storj/storj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/storj/storj/git/refs{/sha}","trees_url":"https://api.github.com/repos/storj/storj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/storj/storj/statuses/{sha}","languages_url":"https://api.github.com/repos/storj/storj/languages","stargazers_url":"https://api.github.com/repos/storj/storj/stargazers","contributors_url":"https://api.github.com/repos/storj/storj/contributors","subscribers_url":"https://api.github.com/repos/storj/storj/subscribers","subscription_url":"https://api.github.com/repos/storj/storj/subscription","commits_url":"https://api.github.com/repos/storj/storj/commits{/sha}","git_commits_url":"https://api.github.com/repos/storj/storj/git/commits{/sha}","comments_url":"https://api.github.com/repos/storj/storj/comments{/number}","issue_comment_url":"https://api.github.com/repos/storj/storj/issues/comments{/number}","contents_url":"https://api.github.com/repos/storj/storj/contents/{+path}","compare_url":"https://api.github.com/repos/storj/storj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/storj/storj/merges","archive_url":"https://api.github.com/repos/storj/storj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/storj/storj/downloads","issues_url":"https://api.github.com/repos/storj/storj/issues{/number}","pulls_url":"https://api.github.com/repos/storj/storj/pulls{/number}","milestones_url":"https://api.github.com/repos/storj/storj/milestones{/number}","notifications_url":"https://api.github.com/repos/storj/storj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/storj/storj/labels{/name}","releases_url":"https://api.github.com/repos/storj/storj/releases{/id}","deployments_url":"https://api.github.com/repos/storj/storj/deployments","created_at":"2018-04-04T16:27:18Z","updated_at":"2018-12-03T13:23:18Z","pushed_at":"2018-12-03T13:34:31Z","git_url":"git://github.com/storj/storj.git","ssh_url":"git@github.com:storj/storj.git","clone_url":"https://github.com/storj/storj.git","svn_url":"https://github.com/storj/storj","homepage":"https://storj.io","size":64118,"stargazers_count":355,"watchers_count":355,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":79,"open_issues":35,"watchers":355,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/storj/storj/pulls/686"},"html":{"href":"https://github.com/storj/storj/pull/686"},"issue":{"href":"https://api.github.com/repos/storj/storj/issues/686"},"comments":{"href":"https://api.github.com/repos/storj/storj/issues/686/comments"},"review_comments":{"href":"https://api.github.com/repos/storj/storj/pulls/686/comments"},"review_comment":{"href":"https://api.github.com/repos/storj/storj/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/storj/storj/pulls/686/commits"},"statuses":{"href":"https://api.github.com/repos/storj/storj/statuses/38401608ac482f50eaf13e03baf8c372e5f36cb4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"aligeti"}}