{"action":"created","comment":{"url":"https://api.github.com/repos/clouway/kcqrs/pulls/comments/202601222","pull_request_review_id":137331288,"id":202601222,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjYwMTIyMg==","diff_hunk":"@@ -0,0 +1,13 @@\n+package com.clouway.kcqrs.core\n+\n+/**\n+ * AuthoredEvent will be used when you want to have the Identity of\n+ * the event provided, e.g. you want the id of the author of the event\n+ * and the time of the event.\n+ *\n+ * @author Vasil Mitov <vasil.mitov@clouway.com>\n+ */\n+\n+abstract class AuthoredEvent private constructor(var identity: Identity?) : Event {","path":"kcqrs-core/src/main/kotlin/com/clouway/kcqrs/core/AuthoredEvent.kt","position":11,"original_position":11,"commit_id":"33a61c6c024b57d3f0cb04b0ec8693cd949848b0","original_commit_id":"33a61c6c024b57d3f0cb04b0ec8693cd949848b0","user":{"login":"mgenov","id":209223,"node_id":"MDQ6VXNlcjIwOTIyMw==","avatar_url":"https://avatars3.githubusercontent.com/u/209223?v=4","gravatar_id":"","url":"https://api.github.com/users/mgenov","html_url":"https://github.com/mgenov","followers_url":"https://api.github.com/users/mgenov/followers","following_url":"https://api.github.com/users/mgenov/following{/other_user}","gists_url":"https://api.github.com/users/mgenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mgenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgenov/subscriptions","organizations_url":"https://api.github.com/users/mgenov/orgs","repos_url":"https://api.github.com/users/mgenov/repos","events_url":"https://api.github.com/users/mgenov/events{/privacy}","received_events_url":"https://api.github.com/users/mgenov/received_events","type":"User","site_admin":false},"body":"Another 2 cents on this flow: \r\n\r\nAs the basic flow is:\r\nclient app calls event store and event-store publishes events to the messaging bus \r\n\r\ne.g the EventPublisher need to provide this information to the message bus and the message bus should be able to send it as metadata to the target callers. \r\n","created_at":"2018-07-16T08:16:08Z","updated_at":"2018-07-16T08:16:08Z","html_url":"https://github.com/clouway/kcqrs/pull/36#discussion_r202601222","pull_request_url":"https://api.github.com/repos/clouway/kcqrs/pulls/36","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/clouway/kcqrs/pulls/comments/202601222"},"html":{"href":"https://github.com/clouway/kcqrs/pull/36#discussion_r202601222"},"pull_request":{"href":"https://api.github.com/repos/clouway/kcqrs/pulls/36"}},"in_reply_to_id":202598098},"pull_request":{"url":"https://api.github.com/repos/clouway/kcqrs/pulls/36","id":201554990,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNTU0OTkw","html_url":"https://github.com/clouway/kcqrs/pull/36","diff_url":"https://github.com/clouway/kcqrs/pull/36.diff","patch_url":"https://github.com/clouway/kcqrs/pull/36.patch","issue_url":"https://api.github.com/repos/clouway/kcqrs/issues/36","number":36,"state":"open","locked":false,"title":"kcqrs: implement AuthoredEvent","user":{"login":"VasilMitovClouway","id":18255988,"node_id":"MDQ6VXNlcjE4MjU1OTg4","avatar_url":"https://avatars3.githubusercontent.com/u/18255988?v=4","gravatar_id":"","url":"https://api.github.com/users/VasilMitovClouway","html_url":"https://github.com/VasilMitovClouway","followers_url":"https://api.github.com/users/VasilMitovClouway/followers","following_url":"https://api.github.com/users/VasilMitovClouway/following{/other_user}","gists_url":"https://api.github.com/users/VasilMitovClouway/gists{/gist_id}","starred_url":"https://api.github.com/users/VasilMitovClouway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasilMitovClouway/subscriptions","organizations_url":"https://api.github.com/users/VasilMitovClouway/orgs","repos_url":"https://api.github.com/users/VasilMitovClouway/repos","events_url":"https://api.github.com/users/VasilMitovClouway/events{/privacy}","received_events_url":"https://api.github.com/users/VasilMitovClouway/received_events","type":"User","site_admin":false},"body":"With this PR an AuthoredEvent is added which can be used to have the Identity accessible in the Event when handling it without having to parse that information in the Event fields. \r\nNote that this is using the Identity provided from the KCQRS library which means that for this to be used the library users need to have this implemented and not using the default identity provider. \r\nFixes: #35","created_at":"2018-07-16T07:11:32Z","updated_at":"2018-07-16T08:16:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1f88950a6103762dd76d8ddd62f100edb406386","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":871118781,"node_id":"MDU6TGFiZWw4NzExMTg3ODE=","url":"https://api.github.com/repos/clouway/kcqrs/labels/needs%20review","name":"needs review","color":"badd3b","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/clouway/kcqrs/pulls/36/commits","review_comments_url":"https://api.github.com/repos/clouway/kcqrs/pulls/36/comments","review_comment_url":"https://api.github.com/repos/clouway/kcqrs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clouway/kcqrs/issues/36/comments","statuses_url":"https://api.github.com/repos/clouway/kcqrs/statuses/33a61c6c024b57d3f0cb04b0ec8693cd949848b0","head":{"label":"VasilMitovClouway:authored_event","ref":"authored_event","sha":"33a61c6c024b57d3f0cb04b0ec8693cd949848b0","user":{"login":"VasilMitovClouway","id":18255988,"node_id":"MDQ6VXNlcjE4MjU1OTg4","avatar_url":"https://avatars3.githubusercontent.com/u/18255988?v=4","gravatar_id":"","url":"https://api.github.com/users/VasilMitovClouway","html_url":"https://github.com/VasilMitovClouway","followers_url":"https://api.github.com/users/VasilMitovClouway/followers","following_url":"https://api.github.com/users/VasilMitovClouway/following{/other_user}","gists_url":"https://api.github.com/users/VasilMitovClouway/gists{/gist_id}","starred_url":"https://api.github.com/users/VasilMitovClouway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasilMitovClouway/subscriptions","organizations_url":"https://api.github.com/users/VasilMitovClouway/orgs","repos_url":"https://api.github.com/users/VasilMitovClouway/repos","events_url":"https://api.github.com/users/VasilMitovClouway/events{/privacy}","received_events_url":"https://api.github.com/users/VasilMitovClouway/received_events","type":"User","site_admin":false},"repo":{"id":120425446,"node_id":"MDEwOlJlcG9zaXRvcnkxMjA0MjU0NDY=","name":"kcqrs","full_name":"VasilMitovClouway/kcqrs","owner":{"login":"VasilMitovClouway","id":18255988,"node_id":"MDQ6VXNlcjE4MjU1OTg4","avatar_url":"https://avatars3.githubusercontent.com/u/18255988?v=4","gravatar_id":"","url":"https://api.github.com/users/VasilMitovClouway","html_url":"https://github.com/VasilMitovClouway","followers_url":"https://api.github.com/users/VasilMitovClouway/followers","following_url":"https://api.github.com/users/VasilMitovClouway/following{/other_user}","gists_url":"https://api.github.com/users/VasilMitovClouway/gists{/gist_id}","starred_url":"https://api.github.com/users/VasilMitovClouway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasilMitovClouway/subscriptions","organizations_url":"https://api.github.com/users/VasilMitovClouway/orgs","repos_url":"https://api.github.com/users/VasilMitovClouway/repos","events_url":"https://api.github.com/users/VasilMitovClouway/events{/privacy}","received_events_url":"https://api.github.com/users/VasilMitovClouway/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VasilMitovClouway/kcqrs","description":"kcqrs - a cqrs made easy with kotlin","fork":true,"url":"https://api.github.com/repos/VasilMitovClouway/kcqrs","forks_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/forks","keys_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/teams","hooks_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/hooks","issue_events_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/issues/events{/number}","events_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/events","assignees_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/assignees{/user}","branches_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/branches{/branch}","tags_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/tags","blobs_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/git/refs{/sha}","trees_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/statuses/{sha}","languages_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/languages","stargazers_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/stargazers","contributors_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/contributors","subscribers_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/subscribers","subscription_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/subscription","commits_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/commits{/sha}","git_commits_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/git/commits{/sha}","comments_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/comments{/number}","issue_comment_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/issues/comments{/number}","contents_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/contents/{+path}","compare_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/merges","archive_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/downloads","issues_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/issues{/number}","pulls_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/pulls{/number}","milestones_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/milestones{/number}","notifications_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/labels{/name}","releases_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/releases{/id}","deployments_url":"https://api.github.com/repos/VasilMitovClouway/kcqrs/deployments","created_at":"2018-02-06T08:37:48Z","updated_at":"2018-02-06T08:37:50Z","pushed_at":"2018-07-16T07:07:40Z","git_url":"git://github.com/VasilMitovClouway/kcqrs.git","ssh_url":"git@github.com:VasilMitovClouway/kcqrs.git","clone_url":"https://github.com/VasilMitovClouway/kcqrs.git","svn_url":"https://github.com/VasilMitovClouway/kcqrs","homepage":null,"size":271,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"clouway:master","ref":"master","sha":"78702f519ae26089c74f721108f2f4cdea7a861a","user":{"login":"clouway","id":1746331,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NDYzMzE=","avatar_url":"https://avatars2.githubusercontent.com/u/1746331?v=4","gravatar_id":"","url":"https://api.github.com/users/clouway","html_url":"https://github.com/clouway","followers_url":"https://api.github.com/users/clouway/followers","following_url":"https://api.github.com/users/clouway/following{/other_user}","gists_url":"https://api.github.com/users/clouway/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway/subscriptions","organizations_url":"https://api.github.com/users/clouway/orgs","repos_url":"https://api.github.com/users/clouway/repos","events_url":"https://api.github.com/users/clouway/events{/privacy}","received_events_url":"https://api.github.com/users/clouway/received_events","type":"Organization","site_admin":false},"repo":{"id":108405381,"node_id":"MDEwOlJlcG9zaXRvcnkxMDg0MDUzODE=","name":"kcqrs","full_name":"clouway/kcqrs","owner":{"login":"clouway","id":1746331,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NDYzMzE=","avatar_url":"https://avatars2.githubusercontent.com/u/1746331?v=4","gravatar_id":"","url":"https://api.github.com/users/clouway","html_url":"https://github.com/clouway","followers_url":"https://api.github.com/users/clouway/followers","following_url":"https://api.github.com/users/clouway/following{/other_user}","gists_url":"https://api.github.com/users/clouway/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway/subscriptions","organizations_url":"https://api.github.com/users/clouway/orgs","repos_url":"https://api.github.com/users/clouway/repos","events_url":"https://api.github.com/users/clouway/events{/privacy}","received_events_url":"https://api.github.com/users/clouway/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clouway/kcqrs","description":"kcqrs - a cqrs made easy with kotlin","fork":false,"url":"https://api.github.com/repos/clouway/kcqrs","forks_url":"https://api.github.com/repos/clouway/kcqrs/forks","keys_url":"https://api.github.com/repos/clouway/kcqrs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clouway/kcqrs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clouway/kcqrs/teams","hooks_url":"https://api.github.com/repos/clouway/kcqrs/hooks","issue_events_url":"https://api.github.com/repos/clouway/kcqrs/issues/events{/number}","events_url":"https://api.github.com/repos/clouway/kcqrs/events","assignees_url":"https://api.github.com/repos/clouway/kcqrs/assignees{/user}","branches_url":"https://api.github.com/repos/clouway/kcqrs/branches{/branch}","tags_url":"https://api.github.com/repos/clouway/kcqrs/tags","blobs_url":"https://api.github.com/repos/clouway/kcqrs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clouway/kcqrs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clouway/kcqrs/git/refs{/sha}","trees_url":"https://api.github.com/repos/clouway/kcqrs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clouway/kcqrs/statuses/{sha}","languages_url":"https://api.github.com/repos/clouway/kcqrs/languages","stargazers_url":"https://api.github.com/repos/clouway/kcqrs/stargazers","contributors_url":"https://api.github.com/repos/clouway/kcqrs/contributors","subscribers_url":"https://api.github.com/repos/clouway/kcqrs/subscribers","subscription_url":"https://api.github.com/repos/clouway/kcqrs/subscription","commits_url":"https://api.github.com/repos/clouway/kcqrs/commits{/sha}","git_commits_url":"https://api.github.com/repos/clouway/kcqrs/git/commits{/sha}","comments_url":"https://api.github.com/repos/clouway/kcqrs/comments{/number}","issue_comment_url":"https://api.github.com/repos/clouway/kcqrs/issues/comments{/number}","contents_url":"https://api.github.com/repos/clouway/kcqrs/contents/{+path}","compare_url":"https://api.github.com/repos/clouway/kcqrs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clouway/kcqrs/merges","archive_url":"https://api.github.com/repos/clouway/kcqrs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clouway/kcqrs/downloads","issues_url":"https://api.github.com/repos/clouway/kcqrs/issues{/number}","pulls_url":"https://api.github.com/repos/clouway/kcqrs/pulls{/number}","milestones_url":"https://api.github.com/repos/clouway/kcqrs/milestones{/number}","notifications_url":"https://api.github.com/repos/clouway/kcqrs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clouway/kcqrs/labels{/name}","releases_url":"https://api.github.com/repos/clouway/kcqrs/releases{/id}","deployments_url":"https://api.github.com/repos/clouway/kcqrs/deployments","created_at":"2017-10-26T11:58:28Z","updated_at":"2018-07-03T13:02:47Z","pushed_at":"2018-07-16T07:11:32Z","git_url":"git://github.com/clouway/kcqrs.git","ssh_url":"git@github.com:clouway/kcqrs.git","clone_url":"https://github.com/clouway/kcqrs.git","svn_url":"https://github.com/clouway/kcqrs","homepage":null,"size":257,"stargazers_count":3,"watchers_count":3,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":6,"open_issues":12,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clouway/kcqrs/pulls/36"},"html":{"href":"https://github.com/clouway/kcqrs/pull/36"},"issue":{"href":"https://api.github.com/repos/clouway/kcqrs/issues/36"},"comments":{"href":"https://api.github.com/repos/clouway/kcqrs/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/clouway/kcqrs/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/clouway/kcqrs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clouway/kcqrs/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/clouway/kcqrs/statuses/33a61c6c024b57d3f0cb04b0ec8693cd949848b0"}},"author_association":"NONE"}}
{"actor":{"display_login":"mgenov"}}