{"action":"closed","number":446,"pull_request":{"url":"https://api.github.com/repos/stratumn/go-core/pulls/446","id":218991397,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4OTkxMzk3","html_url":"https://github.com/stratumn/go-core/pull/446","diff_url":"https://github.com/stratumn/go-core/pull/446.diff","patch_url":"https://github.com/stratumn/go-core/pull/446.patch","issue_url":"https://api.github.com/repos/stratumn/go-core/issues/446","number":446,"state":"closed","locked":false,"title":"stores: configure unique map entry","user":{"login":"t-bast","id":31281497,"node_id":"MDQ6VXNlcjMxMjgxNDk3","avatar_url":"https://avatars0.githubusercontent.com/u/31281497?v=4","gravatar_id":"","url":"https://api.github.com/users/t-bast","html_url":"https://github.com/t-bast","followers_url":"https://api.github.com/users/t-bast/followers","following_url":"https://api.github.com/users/t-bast/following{/other_user}","gists_url":"https://api.github.com/users/t-bast/gists{/gist_id}","starred_url":"https://api.github.com/users/t-bast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-bast/subscriptions","organizations_url":"https://api.github.com/users/t-bast/orgs","repos_url":"https://api.github.com/users/t-bast/repos","events_url":"https://api.github.com/users/t-bast/events{/privacy}","received_events_url":"https://api.github.com/users/t-bast/received_events","type":"User","site_admin":false},"body":"Provide a store configuration hook to specify that maps should have a single \"init\" link.\r\nIt is configurable at the whole store level and it's the application's responsibility to make sure that all store objects that it creates are configured with this flag.\r\nIf we need a more flexible scheme (configuring that flag per-process) we'll change the (simple) way it's currently implemented but it's unclear if we'll need that right now.\r\nI also refactored the postgresstore because the reader/writer statements split didn't make sense anymore, so I advise to review each commit separately (the second one is the refactoring and has nothing to do with the unique map entry feature).\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/stratumn/go-core/446)\n<!-- Reviewable:end -->\n","created_at":"2018-09-28T14:42:10Z","updated_at":"2018-10-01T07:33:46Z","closed_at":"2018-10-01T07:33:46Z","merged_at":"2018-10-01T07:33:46Z","merge_commit_sha":"5bfd80721e1fb682dab581408ed6d9d26e5412f6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"bejito","id":15611408,"node_id":"MDQ6VXNlcjE1NjExNDA4","avatar_url":"https://avatars1.githubusercontent.com/u/15611408?v=4","gravatar_id":"","url":"https://api.github.com/users/bejito","html_url":"https://github.com/bejito","followers_url":"https://api.github.com/users/bejito/followers","following_url":"https://api.github.com/users/bejito/following{/other_user}","gists_url":"https://api.github.com/users/bejito/gists{/gist_id}","starred_url":"https://api.github.com/users/bejito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bejito/subscriptions","organizations_url":"https://api.github.com/users/bejito/orgs","repos_url":"https://api.github.com/users/bejito/repos","events_url":"https://api.github.com/users/bejito/events{/privacy}","received_events_url":"https://api.github.com/users/bejito/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/stratumn/go-core/pulls/446/commits","review_comments_url":"https://api.github.com/repos/stratumn/go-core/pulls/446/comments","review_comment_url":"https://api.github.com/repos/stratumn/go-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stratumn/go-core/issues/446/comments","statuses_url":"https://api.github.com/repos/stratumn/go-core/statuses/3872da0d0f1f9f1fe1e0608e2dd99fdaa71af759","head":{"label":"stratumn:bt/stores/conf-map-unique-first-link","ref":"bt/stores/conf-map-unique-first-link","sha":"3872da0d0f1f9f1fe1e0608e2dd99fdaa71af759","user":{"login":"stratumn","id":15095987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MDk1OTg3","avatar_url":"https://avatars0.githubusercontent.com/u/15095987?v=4","gravatar_id":"","url":"https://api.github.com/users/stratumn","html_url":"https://github.com/stratumn","followers_url":"https://api.github.com/users/stratumn/followers","following_url":"https://api.github.com/users/stratumn/following{/other_user}","gists_url":"https://api.github.com/users/stratumn/gists{/gist_id}","starred_url":"https://api.github.com/users/stratumn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stratumn/subscriptions","organizations_url":"https://api.github.com/users/stratumn/orgs","repos_url":"https://api.github.com/users/stratumn/repos","events_url":"https://api.github.com/users/stratumn/events{/privacy}","received_events_url":"https://api.github.com/users/stratumn/received_events","type":"Organization","site_admin":false},"repo":{"id":64846917,"node_id":"MDEwOlJlcG9zaXRvcnk2NDg0NjkxNw==","name":"go-core","full_name":"stratumn/go-core","private":false,"owner":{"login":"stratumn","id":15095987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MDk1OTg3","avatar_url":"https://avatars0.githubusercontent.com/u/15095987?v=4","gravatar_id":"","url":"https://api.github.com/users/stratumn","html_url":"https://github.com/stratumn","followers_url":"https://api.github.com/users/stratumn/followers","following_url":"https://api.github.com/users/stratumn/following{/other_user}","gists_url":"https://api.github.com/users/stratumn/gists{/gist_id}","starred_url":"https://api.github.com/users/stratumn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stratumn/subscriptions","organizations_url":"https://api.github.com/users/stratumn/orgs","repos_url":"https://api.github.com/users/stratumn/repos","events_url":"https://api.github.com/users/stratumn/events{/privacy}","received_events_url":"https://api.github.com/users/stratumn/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/stratumn/go-core","description":"Stratumn's core utilities to create decentralized applications and networks","fork":false,"url":"https://api.github.com/repos/stratumn/go-core","forks_url":"https://api.github.com/repos/stratumn/go-core/forks","keys_url":"https://api.github.com/repos/stratumn/go-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stratumn/go-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stratumn/go-core/teams","hooks_url":"https://api.github.com/repos/stratumn/go-core/hooks","issue_events_url":"https://api.github.com/repos/stratumn/go-core/issues/events{/number}","events_url":"https://api.github.com/repos/stratumn/go-core/events","assignees_url":"https://api.github.com/repos/stratumn/go-core/assignees{/user}","branches_url":"https://api.github.com/repos/stratumn/go-core/branches{/branch}","tags_url":"https://api.github.com/repos/stratumn/go-core/tags","blobs_url":"https://api.github.com/repos/stratumn/go-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stratumn/go-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stratumn/go-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/stratumn/go-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stratumn/go-core/statuses/{sha}","languages_url":"https://api.github.com/repos/stratumn/go-core/languages","stargazers_url":"https://api.github.com/repos/stratumn/go-core/stargazers","contributors_url":"https://api.github.com/repos/stratumn/go-core/contributors","subscribers_url":"https://api.github.com/repos/stratumn/go-core/subscribers","subscription_url":"https://api.github.com/repos/stratumn/go-core/subscription","commits_url":"https://api.github.com/repos/stratumn/go-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/stratumn/go-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/stratumn/go-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/stratumn/go-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/stratumn/go-core/contents/{+path}","compare_url":"https://api.github.com/repos/stratumn/go-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stratumn/go-core/merges","archive_url":"https://api.github.com/repos/stratumn/go-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stratumn/go-core/downloads","issues_url":"https://api.github.com/repos/stratumn/go-core/issues{/number}","pulls_url":"https://api.github.com/repos/stratumn/go-core/pulls{/number}","milestones_url":"https://api.github.com/repos/stratumn/go-core/milestones{/number}","notifications_url":"https://api.github.com/repos/stratumn/go-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stratumn/go-core/labels{/name}","releases_url":"https://api.github.com/repos/stratumn/go-core/releases{/id}","deployments_url":"https://api.github.com/repos/stratumn/go-core/deployments","created_at":"2016-08-03T13:10:09Z","updated_at":"2018-09-25T13:43:25Z","pushed_at":"2018-10-01T07:33:46Z","git_url":"git://github.com/stratumn/go-core.git","ssh_url":"git@github.com:stratumn/go-core.git","clone_url":"https://github.com/stratumn/go-core.git","svn_url":"https://github.com/stratumn/go-core","homepage":"","size":6169,"stargazers_count":29,"watchers_count":29,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3,"open_issues":10,"watchers":29,"default_branch":"master"}},"base":{"label":"stratumn:master","ref":"master","sha":"1c24dac554aa830223559223071bdd54d88df79a","user":{"login":"stratumn","id":15095987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MDk1OTg3","avatar_url":"https://avatars0.githubusercontent.com/u/15095987?v=4","gravatar_id":"","url":"https://api.github.com/users/stratumn","html_url":"https://github.com/stratumn","followers_url":"https://api.github.com/users/stratumn/followers","following_url":"https://api.github.com/users/stratumn/following{/other_user}","gists_url":"https://api.github.com/users/stratumn/gists{/gist_id}","starred_url":"https://api.github.com/users/stratumn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stratumn/subscriptions","organizations_url":"https://api.github.com/users/stratumn/orgs","repos_url":"https://api.github.com/users/stratumn/repos","events_url":"https://api.github.com/users/stratumn/events{/privacy}","received_events_url":"https://api.github.com/users/stratumn/received_events","type":"Organization","site_admin":false},"repo":{"id":64846917,"node_id":"MDEwOlJlcG9zaXRvcnk2NDg0NjkxNw==","name":"go-core","full_name":"stratumn/go-core","private":false,"owner":{"login":"stratumn","id":15095987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MDk1OTg3","avatar_url":"https://avatars0.githubusercontent.com/u/15095987?v=4","gravatar_id":"","url":"https://api.github.com/users/stratumn","html_url":"https://github.com/stratumn","followers_url":"https://api.github.com/users/stratumn/followers","following_url":"https://api.github.com/users/stratumn/following{/other_user}","gists_url":"https://api.github.com/users/stratumn/gists{/gist_id}","starred_url":"https://api.github.com/users/stratumn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stratumn/subscriptions","organizations_url":"https://api.github.com/users/stratumn/orgs","repos_url":"https://api.github.com/users/stratumn/repos","events_url":"https://api.github.com/users/stratumn/events{/privacy}","received_events_url":"https://api.github.com/users/stratumn/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/stratumn/go-core","description":"Stratumn's core utilities to create decentralized applications and networks","fork":false,"url":"https://api.github.com/repos/stratumn/go-core","forks_url":"https://api.github.com/repos/stratumn/go-core/forks","keys_url":"https://api.github.com/repos/stratumn/go-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stratumn/go-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stratumn/go-core/teams","hooks_url":"https://api.github.com/repos/stratumn/go-core/hooks","issue_events_url":"https://api.github.com/repos/stratumn/go-core/issues/events{/number}","events_url":"https://api.github.com/repos/stratumn/go-core/events","assignees_url":"https://api.github.com/repos/stratumn/go-core/assignees{/user}","branches_url":"https://api.github.com/repos/stratumn/go-core/branches{/branch}","tags_url":"https://api.github.com/repos/stratumn/go-core/tags","blobs_url":"https://api.github.com/repos/stratumn/go-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stratumn/go-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stratumn/go-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/stratumn/go-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stratumn/go-core/statuses/{sha}","languages_url":"https://api.github.com/repos/stratumn/go-core/languages","stargazers_url":"https://api.github.com/repos/stratumn/go-core/stargazers","contributors_url":"https://api.github.com/repos/stratumn/go-core/contributors","subscribers_url":"https://api.github.com/repos/stratumn/go-core/subscribers","subscription_url":"https://api.github.com/repos/stratumn/go-core/subscription","commits_url":"https://api.github.com/repos/stratumn/go-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/stratumn/go-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/stratumn/go-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/stratumn/go-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/stratumn/go-core/contents/{+path}","compare_url":"https://api.github.com/repos/stratumn/go-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stratumn/go-core/merges","archive_url":"https://api.github.com/repos/stratumn/go-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stratumn/go-core/downloads","issues_url":"https://api.github.com/repos/stratumn/go-core/issues{/number}","pulls_url":"https://api.github.com/repos/stratumn/go-core/pulls{/number}","milestones_url":"https://api.github.com/repos/stratumn/go-core/milestones{/number}","notifications_url":"https://api.github.com/repos/stratumn/go-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stratumn/go-core/labels{/name}","releases_url":"https://api.github.com/repos/stratumn/go-core/releases{/id}","deployments_url":"https://api.github.com/repos/stratumn/go-core/deployments","created_at":"2016-08-03T13:10:09Z","updated_at":"2018-09-25T13:43:25Z","pushed_at":"2018-10-01T07:33:46Z","git_url":"git://github.com/stratumn/go-core.git","ssh_url":"git@github.com:stratumn/go-core.git","clone_url":"https://github.com/stratumn/go-core.git","svn_url":"https://github.com/stratumn/go-core","homepage":"","size":6169,"stargazers_count":29,"watchers_count":29,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3,"open_issues":10,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stratumn/go-core/pulls/446"},"html":{"href":"https://github.com/stratumn/go-core/pull/446"},"issue":{"href":"https://api.github.com/repos/stratumn/go-core/issues/446"},"comments":{"href":"https://api.github.com/repos/stratumn/go-core/issues/446/comments"},"review_comments":{"href":"https://api.github.com/repos/stratumn/go-core/pulls/446/comments"},"review_comment":{"href":"https://api.github.com/repos/stratumn/go-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stratumn/go-core/pulls/446/commits"},"statuses":{"href":"https://api.github.com/repos/stratumn/go-core/statuses/3872da0d0f1f9f1fe1e0608e2dd99fdaa71af759"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"t-bast","id":31281497,"node_id":"MDQ6VXNlcjMxMjgxNDk3","avatar_url":"https://avatars0.githubusercontent.com/u/31281497?v=4","gravatar_id":"","url":"https://api.github.com/users/t-bast","html_url":"https://github.com/t-bast","followers_url":"https://api.github.com/users/t-bast/followers","following_url":"https://api.github.com/users/t-bast/following{/other_user}","gists_url":"https://api.github.com/users/t-bast/gists{/gist_id}","starred_url":"https://api.github.com/users/t-bast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-bast/subscriptions","organizations_url":"https://api.github.com/users/t-bast/orgs","repos_url":"https://api.github.com/users/t-bast/repos","events_url":"https://api.github.com/users/t-bast/events{/privacy}","received_events_url":"https://api.github.com/users/t-bast/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":694,"deletions":532,"changed_files":14}}
{"actor":{"display_login":"t-bast"}}