{"action":"closed","number":289,"pull_request":{"url":"https://api.github.com/repos/broadway/broadway/pulls/289","id":102804024,"html_url":"https://github.com/broadway/broadway/pull/289","diff_url":"https://github.com/broadway/broadway/pull/289.diff","patch_url":"https://github.com/broadway/broadway/pull/289.patch","issue_url":"https://api.github.com/repos/broadway/broadway/issues/289","number":289,"state":"closed","locked":false,"title":"Concurrency conflict resolver","user":{"login":"janwalther","id":1847612,"avatar_url":"https://avatars.githubusercontent.com/u/1847612?v=3","gravatar_id":"","url":"https://api.github.com/users/janwalther","html_url":"https://github.com/janwalther","followers_url":"https://api.github.com/users/janwalther/followers","following_url":"https://api.github.com/users/janwalther/following{/other_user}","gists_url":"https://api.github.com/users/janwalther/gists{/gist_id}","starred_url":"https://api.github.com/users/janwalther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janwalther/subscriptions","organizations_url":"https://api.github.com/users/janwalther/orgs","repos_url":"https://api.github.com/users/janwalther/repos","events_url":"https://api.github.com/users/janwalther/events{/privacy}","received_events_url":"https://api.github.com/users/janwalther/received_events","type":"User","site_admin":false},"body":"This additional event store decorates any other event store so you can define event types which are independent. This means that the order of those events does not matter. In case of a DuplicatePlayheadException the playhead of idependent events gets recalculated and thus the conflict can get solved.\r\n\r\nFor example for a User aggregate you could have EmailAddressChanged and UsernameChangedEvent. While the order of two UsernameChangedEvents does matter (because the last stored event defines the current username), it does not matter if a UsernameChangedEvent or a EmailAddressChanged event gets stored first.\r\n\r\nIdea is based on [Daniel Whittaker's article on concurrency handling](http://danielwhittaker.me/2014/09/29/handling-concurrency-issues-cqrs-event-sourced-system/)","created_at":"2017-01-23T21:27:16Z","updated_at":"2017-02-26T20:10:25Z","closed_at":"2017-02-26T20:10:25Z","merged_at":"2017-02-26T20:10:25Z","merge_commit_sha":"70e75fd7a4a4e1fee805af212914076aca272f3f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/broadway/broadway/pulls/289/commits","review_comments_url":"https://api.github.com/repos/broadway/broadway/pulls/289/comments","review_comment_url":"https://api.github.com/repos/broadway/broadway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/broadway/broadway/issues/289/comments","statuses_url":"https://api.github.com/repos/broadway/broadway/statuses/0afc2b0a1d02cfa7bad0b7b6623b49aea4460649","head":{"label":"janwalther:concurrency-conflict-resolver","ref":"concurrency-conflict-resolver","sha":"0afc2b0a1d02cfa7bad0b7b6623b49aea4460649","user":{"login":"janwalther","id":1847612,"avatar_url":"https://avatars.githubusercontent.com/u/1847612?v=3","gravatar_id":"","url":"https://api.github.com/users/janwalther","html_url":"https://github.com/janwalther","followers_url":"https://api.github.com/users/janwalther/followers","following_url":"https://api.github.com/users/janwalther/following{/other_user}","gists_url":"https://api.github.com/users/janwalther/gists{/gist_id}","starred_url":"https://api.github.com/users/janwalther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janwalther/subscriptions","organizations_url":"https://api.github.com/users/janwalther/orgs","repos_url":"https://api.github.com/users/janwalther/repos","events_url":"https://api.github.com/users/janwalther/events{/privacy}","received_events_url":"https://api.github.com/users/janwalther/received_events","type":"User","site_admin":false},"repo":{"id":79830399,"name":"broadway","full_name":"janwalther/broadway","owner":{"login":"janwalther","id":1847612,"avatar_url":"https://avatars.githubusercontent.com/u/1847612?v=3","gravatar_id":"","url":"https://api.github.com/users/janwalther","html_url":"https://github.com/janwalther","followers_url":"https://api.github.com/users/janwalther/followers","following_url":"https://api.github.com/users/janwalther/following{/other_user}","gists_url":"https://api.github.com/users/janwalther/gists{/gist_id}","starred_url":"https://api.github.com/users/janwalther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janwalther/subscriptions","organizations_url":"https://api.github.com/users/janwalther/orgs","repos_url":"https://api.github.com/users/janwalther/repos","events_url":"https://api.github.com/users/janwalther/events{/privacy}","received_events_url":"https://api.github.com/users/janwalther/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/janwalther/broadway","description":"Infrastructure and testing helpers for creating CQRS and event sourced applications.","fork":true,"url":"https://api.github.com/repos/janwalther/broadway","forks_url":"https://api.github.com/repos/janwalther/broadway/forks","keys_url":"https://api.github.com/repos/janwalther/broadway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/janwalther/broadway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/janwalther/broadway/teams","hooks_url":"https://api.github.com/repos/janwalther/broadway/hooks","issue_events_url":"https://api.github.com/repos/janwalther/broadway/issues/events{/number}","events_url":"https://api.github.com/repos/janwalther/broadway/events","assignees_url":"https://api.github.com/repos/janwalther/broadway/assignees{/user}","branches_url":"https://api.github.com/repos/janwalther/broadway/branches{/branch}","tags_url":"https://api.github.com/repos/janwalther/broadway/tags","blobs_url":"https://api.github.com/repos/janwalther/broadway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/janwalther/broadway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/janwalther/broadway/git/refs{/sha}","trees_url":"https://api.github.com/repos/janwalther/broadway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/janwalther/broadway/statuses/{sha}","languages_url":"https://api.github.com/repos/janwalther/broadway/languages","stargazers_url":"https://api.github.com/repos/janwalther/broadway/stargazers","contributors_url":"https://api.github.com/repos/janwalther/broadway/contributors","subscribers_url":"https://api.github.com/repos/janwalther/broadway/subscribers","subscription_url":"https://api.github.com/repos/janwalther/broadway/subscription","commits_url":"https://api.github.com/repos/janwalther/broadway/commits{/sha}","git_commits_url":"https://api.github.com/repos/janwalther/broadway/git/commits{/sha}","comments_url":"https://api.github.com/repos/janwalther/broadway/comments{/number}","issue_comment_url":"https://api.github.com/repos/janwalther/broadway/issues/comments{/number}","contents_url":"https://api.github.com/repos/janwalther/broadway/contents/{+path}","compare_url":"https://api.github.com/repos/janwalther/broadway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/janwalther/broadway/merges","archive_url":"https://api.github.com/repos/janwalther/broadway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/janwalther/broadway/downloads","issues_url":"https://api.github.com/repos/janwalther/broadway/issues{/number}","pulls_url":"https://api.github.com/repos/janwalther/broadway/pulls{/number}","milestones_url":"https://api.github.com/repos/janwalther/broadway/milestones{/number}","notifications_url":"https://api.github.com/repos/janwalther/broadway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/janwalther/broadway/labels{/name}","releases_url":"https://api.github.com/repos/janwalther/broadway/releases{/id}","deployments_url":"https://api.github.com/repos/janwalther/broadway/deployments","created_at":"2017-01-23T17:44:19Z","updated_at":"2017-01-23T17:44:21Z","pushed_at":"2017-02-10T20:31:15Z","git_url":"git://github.com/janwalther/broadway.git","ssh_url":"git@github.com:janwalther/broadway.git","clone_url":"https://github.com/janwalther/broadway.git","svn_url":"https://github.com/janwalther/broadway","homepage":"http://labs.qandidate.com/blog/2014/08/26/broadway-our-cqrs-es-framework-open-sourced/","size":493,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"broadway:master","ref":"master","sha":"c38114d4117ccea828f6815458f43a902df82c29","user":{"login":"broadway","id":7906457,"avatar_url":"https://avatars.githubusercontent.com/u/7906457?v=3","gravatar_id":"","url":"https://api.github.com/users/broadway","html_url":"https://github.com/broadway","followers_url":"https://api.github.com/users/broadway/followers","following_url":"https://api.github.com/users/broadway/following{/other_user}","gists_url":"https://api.github.com/users/broadway/gists{/gist_id}","starred_url":"https://api.github.com/users/broadway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadway/subscriptions","organizations_url":"https://api.github.com/users/broadway/orgs","repos_url":"https://api.github.com/users/broadway/repos","events_url":"https://api.github.com/users/broadway/events{/privacy}","received_events_url":"https://api.github.com/users/broadway/received_events","type":"Organization","site_admin":false},"repo":{"id":23352973,"name":"broadway","full_name":"broadway/broadway","owner":{"login":"broadway","id":7906457,"avatar_url":"https://avatars.githubusercontent.com/u/7906457?v=3","gravatar_id":"","url":"https://api.github.com/users/broadway","html_url":"https://github.com/broadway","followers_url":"https://api.github.com/users/broadway/followers","following_url":"https://api.github.com/users/broadway/following{/other_user}","gists_url":"https://api.github.com/users/broadway/gists{/gist_id}","starred_url":"https://api.github.com/users/broadway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadway/subscriptions","organizations_url":"https://api.github.com/users/broadway/orgs","repos_url":"https://api.github.com/users/broadway/repos","events_url":"https://api.github.com/users/broadway/events{/privacy}","received_events_url":"https://api.github.com/users/broadway/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/broadway/broadway","description":"Infrastructure and testing helpers for creating CQRS and event sourced applications.","fork":false,"url":"https://api.github.com/repos/broadway/broadway","forks_url":"https://api.github.com/repos/broadway/broadway/forks","keys_url":"https://api.github.com/repos/broadway/broadway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/broadway/broadway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/broadway/broadway/teams","hooks_url":"https://api.github.com/repos/broadway/broadway/hooks","issue_events_url":"https://api.github.com/repos/broadway/broadway/issues/events{/number}","events_url":"https://api.github.com/repos/broadway/broadway/events","assignees_url":"https://api.github.com/repos/broadway/broadway/assignees{/user}","branches_url":"https://api.github.com/repos/broadway/broadway/branches{/branch}","tags_url":"https://api.github.com/repos/broadway/broadway/tags","blobs_url":"https://api.github.com/repos/broadway/broadway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/broadway/broadway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/broadway/broadway/git/refs{/sha}","trees_url":"https://api.github.com/repos/broadway/broadway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/broadway/broadway/statuses/{sha}","languages_url":"https://api.github.com/repos/broadway/broadway/languages","stargazers_url":"https://api.github.com/repos/broadway/broadway/stargazers","contributors_url":"https://api.github.com/repos/broadway/broadway/contributors","subscribers_url":"https://api.github.com/repos/broadway/broadway/subscribers","subscription_url":"https://api.github.com/repos/broadway/broadway/subscription","commits_url":"https://api.github.com/repos/broadway/broadway/commits{/sha}","git_commits_url":"https://api.github.com/repos/broadway/broadway/git/commits{/sha}","comments_url":"https://api.github.com/repos/broadway/broadway/comments{/number}","issue_comment_url":"https://api.github.com/repos/broadway/broadway/issues/comments{/number}","contents_url":"https://api.github.com/repos/broadway/broadway/contents/{+path}","compare_url":"https://api.github.com/repos/broadway/broadway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/broadway/broadway/merges","archive_url":"https://api.github.com/repos/broadway/broadway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/broadway/broadway/downloads","issues_url":"https://api.github.com/repos/broadway/broadway/issues{/number}","pulls_url":"https://api.github.com/repos/broadway/broadway/pulls{/number}","milestones_url":"https://api.github.com/repos/broadway/broadway/milestones{/number}","notifications_url":"https://api.github.com/repos/broadway/broadway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/broadway/broadway/labels{/name}","releases_url":"https://api.github.com/repos/broadway/broadway/releases{/id}","deployments_url":"https://api.github.com/repos/broadway/broadway/deployments","created_at":"2014-08-26T13:40:55Z","updated_at":"2017-02-23T15:05:47Z","pushed_at":"2017-02-26T20:10:25Z","git_url":"git://github.com/broadway/broadway.git","ssh_url":"git@github.com:broadway/broadway.git","clone_url":"https://github.com/broadway/broadway.git","svn_url":"https://github.com/broadway/broadway","homepage":"http://labs.qandidate.com/blog/2014/08/26/broadway-our-cqrs-es-framework-open-sourced/","size":496,"stargazers_count":848,"watchers_count":848,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":140,"mirror_url":null,"open_issues_count":15,"forks":140,"open_issues":15,"watchers":848,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/broadway/broadway/pulls/289"},"html":{"href":"https://github.com/broadway/broadway/pull/289"},"issue":{"href":"https://api.github.com/repos/broadway/broadway/issues/289"},"comments":{"href":"https://api.github.com/repos/broadway/broadway/issues/289/comments"},"review_comments":{"href":"https://api.github.com/repos/broadway/broadway/pulls/289/comments"},"review_comment":{"href":"https://api.github.com/repos/broadway/broadway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/broadway/broadway/pulls/289/commits"},"statuses":{"href":"https://api.github.com/repos/broadway/broadway/statuses/0afc2b0a1d02cfa7bad0b7b6623b49aea4460649"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"othillo","id":2786663,"avatar_url":"https://avatars.githubusercontent.com/u/2786663?v=3","gravatar_id":"","url":"https://api.github.com/users/othillo","html_url":"https://github.com/othillo","followers_url":"https://api.github.com/users/othillo/followers","following_url":"https://api.github.com/users/othillo/following{/other_user}","gists_url":"https://api.github.com/users/othillo/gists{/gist_id}","starred_url":"https://api.github.com/users/othillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/othillo/subscriptions","organizations_url":"https://api.github.com/users/othillo/orgs","repos_url":"https://api.github.com/users/othillo/repos","events_url":"https://api.github.com/users/othillo/events{/privacy}","received_events_url":"https://api.github.com/users/othillo/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":314,"deletions":0,"changed_files":11}}
{"actor":{"display_login":"othillo"}}