{"action":"created","comment":{"url":"https://api.github.com/repos/linagora/james-project/pulls/comments/238317972","pull_request_review_id":180828329,"id":238317972,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODMxNzk3Mg==","diff_hunk":"@@ -75,30 +72,39 @@ default ExecutionMode getExecutionMode() {\n     }\n \n     class QuotaUsageUpdatedEvent implements QuotaEvent, Serializable {\n+\n+        private final MailboxSession.SessionId sessionId;\n         private final User user;\n         private final QuotaRoot quotaRoot;\n         private final Quota<QuotaCount> countQuota;\n         private final Quota<QuotaSize> sizeQuota;\n         private final Instant instant;\n \n-        public QuotaUsageUpdatedEvent(User user, QuotaRoot quotaRoot, Quota<QuotaCount> countQuota, Quota<QuotaSize> sizeQuota, Instant instant) {\n+        public QuotaUsageUpdatedEvent(MailboxSession.SessionId sessionId, User user, QuotaRoot quotaRoot, Quota<QuotaCount> countQuota,\n+                                      Quota<QuotaSize> sizeQuota, Instant instant) {\n+            this.sessionId = sessionId;\n             this.user = user;\n             this.quotaRoot = quotaRoot;\n             this.countQuota = countQuota;\n             this.sizeQuota = sizeQuota;\n             this.instant = instant;\n         }\n \n-        @Override\n-        public MailboxSession getSession() {\n-            throw new UnsupportedOperationException(\"this method will be removed\");\n+        public QuotaUsageUpdatedEvent(User user, QuotaRoot quotaRoot,\n+                                      Quota<QuotaCount> countQuota, Quota<QuotaSize> sizeQuota, Instant instant) {\n+            this(MailboxSession.SessionId.zero(), user, quotaRoot, countQuota, sizeQuota, instant);","path":"mailbox/api/src/main/java/org/apache/james/mailbox/MailboxListener.java","position":null,"original_position":40,"commit_id":"b4091a535cd6d9f1963eb4482bcf02a22d8c945a","original_commit_id":"90dd6543aae531a3d1a5bcf5a171839c84a7666b","user":{"login":"mbaechler","id":708318,"node_id":"MDQ6VXNlcjcwODMxOA==","avatar_url":"https://avatars2.githubusercontent.com/u/708318?v=4","gravatar_id":"","url":"https://api.github.com/users/mbaechler","html_url":"https://github.com/mbaechler","followers_url":"https://api.github.com/users/mbaechler/followers","following_url":"https://api.github.com/users/mbaechler/following{/other_user}","gists_url":"https://api.github.com/users/mbaechler/gists{/gist_id}","starred_url":"https://api.github.com/users/mbaechler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbaechler/subscriptions","organizations_url":"https://api.github.com/users/mbaechler/orgs","repos_url":"https://api.github.com/users/mbaechler/repos","events_url":"https://api.github.com/users/mbaechler/events{/privacy}","received_events_url":"https://api.github.com/users/mbaechler/received_events","type":"User","site_admin":false},"body":"definitely optional of session id","created_at":"2018-12-03T15:38:23Z","updated_at":"2018-12-03T15:40:19Z","html_url":"https://github.com/linagora/james-project/pull/1985#discussion_r238317972","pull_request_url":"https://api.github.com/repos/linagora/james-project/pulls/1985","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/linagora/james-project/pulls/comments/238317972"},"html":{"href":"https://github.com/linagora/james-project/pull/1985#discussion_r238317972"},"pull_request":{"href":"https://api.github.com/repos/linagora/james-project/pulls/1985"}}},"pull_request":{"url":"https://api.github.com/repos/linagora/james-project/pulls/1985","id":235394405,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1Mzk0NDA1","html_url":"https://github.com/linagora/james-project/pull/1985","diff_url":"https://github.com/linagora/james-project/pull/1985.diff","patch_url":"https://github.com/linagora/james-project/pull/1985.patch","issue_url":"https://api.github.com/repos/linagora/james-project/issues/1985","number":1985,"state":"open","locked":false,"title":"[Part 2] Mailbox event remove session, remove session out of Event","user":{"login":"trantienduchn","id":39297818,"node_id":"MDQ6VXNlcjM5Mjk3ODE4","avatar_url":"https://avatars1.githubusercontent.com/u/39297818?v=4","gravatar_id":"","url":"https://api.github.com/users/trantienduchn","html_url":"https://github.com/trantienduchn","followers_url":"https://api.github.com/users/trantienduchn/followers","following_url":"https://api.github.com/users/trantienduchn/following{/other_user}","gists_url":"https://api.github.com/users/trantienduchn/gists{/gist_id}","starred_url":"https://api.github.com/users/trantienduchn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trantienduchn/subscriptions","organizations_url":"https://api.github.com/users/trantienduchn/orgs","repos_url":"https://api.github.com/users/trantienduchn/repos","events_url":"https://api.github.com/users/trantienduchn/events{/privacy}","received_events_url":"https://api.github.com/users/trantienduchn/received_events","type":"User","site_admin":false},"body":"Part 2 of #1980","created_at":"2018-12-03T10:25:05Z","updated_at":"2018-12-03T15:40:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1123fcae0117e48b61b56c2e0608dd2677e2110f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/linagora/james-project/milestones/12","html_url":"https://github.com/linagora/james-project/milestone/12","labels_url":"https://api.github.com/repos/linagora/james-project/milestones/12/labels","id":3831326,"node_id":"MDk6TWlsZXN0b25lMzgzMTMyNg==","number":12,"title":"Sprint 1 - Robusta beans","description":"","creator":{"login":"chibenwa","id":6928740,"node_id":"MDQ6VXNlcjY5Mjg3NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/6928740?v=4","gravatar_id":"","url":"https://api.github.com/users/chibenwa","html_url":"https://github.com/chibenwa","followers_url":"https://api.github.com/users/chibenwa/followers","following_url":"https://api.github.com/users/chibenwa/following{/other_user}","gists_url":"https://api.github.com/users/chibenwa/gists{/gist_id}","starred_url":"https://api.github.com/users/chibenwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chibenwa/subscriptions","organizations_url":"https://api.github.com/users/chibenwa/orgs","repos_url":"https://api.github.com/users/chibenwa/repos","events_url":"https://api.github.com/users/chibenwa/events{/privacy}","received_events_url":"https://api.github.com/users/chibenwa/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":37,"state":"open","created_at":"2018-11-19T12:11:40Z","updated_at":"2018-12-03T10:25:06Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/linagora/james-project/pulls/1985/commits","review_comments_url":"https://api.github.com/repos/linagora/james-project/pulls/1985/comments","review_comment_url":"https://api.github.com/repos/linagora/james-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linagora/james-project/issues/1985/comments","statuses_url":"https://api.github.com/repos/linagora/james-project/statuses/b4091a535cd6d9f1963eb4482bcf02a22d8c945a","head":{"label":"trantienduchn:mailbox-event-remove-session-part2","ref":"mailbox-event-remove-session-part2","sha":"b4091a535cd6d9f1963eb4482bcf02a22d8c945a","user":{"login":"trantienduchn","id":39297818,"node_id":"MDQ6VXNlcjM5Mjk3ODE4","avatar_url":"https://avatars1.githubusercontent.com/u/39297818?v=4","gravatar_id":"","url":"https://api.github.com/users/trantienduchn","html_url":"https://github.com/trantienduchn","followers_url":"https://api.github.com/users/trantienduchn/followers","following_url":"https://api.github.com/users/trantienduchn/following{/other_user}","gists_url":"https://api.github.com/users/trantienduchn/gists{/gist_id}","starred_url":"https://api.github.com/users/trantienduchn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trantienduchn/subscriptions","organizations_url":"https://api.github.com/users/trantienduchn/orgs","repos_url":"https://api.github.com/users/trantienduchn/repos","events_url":"https://api.github.com/users/trantienduchn/events{/privacy}","received_events_url":"https://api.github.com/users/trantienduchn/received_events","type":"User","site_admin":false},"repo":{"id":133494199,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM0OTQxOTk=","name":"james-project","full_name":"trantienduchn/james-project","private":false,"owner":{"login":"trantienduchn","id":39297818,"node_id":"MDQ6VXNlcjM5Mjk3ODE4","avatar_url":"https://avatars1.githubusercontent.com/u/39297818?v=4","gravatar_id":"","url":"https://api.github.com/users/trantienduchn","html_url":"https://github.com/trantienduchn","followers_url":"https://api.github.com/users/trantienduchn/followers","following_url":"https://api.github.com/users/trantienduchn/following{/other_user}","gists_url":"https://api.github.com/users/trantienduchn/gists{/gist_id}","starred_url":"https://api.github.com/users/trantienduchn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trantienduchn/subscriptions","organizations_url":"https://api.github.com/users/trantienduchn/orgs","repos_url":"https://api.github.com/users/trantienduchn/repos","events_url":"https://api.github.com/users/trantienduchn/events{/privacy}","received_events_url":"https://api.github.com/users/trantienduchn/received_events","type":"User","site_admin":false},"html_url":"https://github.com/trantienduchn/james-project","description":"Mirror of Apache James Project","fork":true,"url":"https://api.github.com/repos/trantienduchn/james-project","forks_url":"https://api.github.com/repos/trantienduchn/james-project/forks","keys_url":"https://api.github.com/repos/trantienduchn/james-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trantienduchn/james-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trantienduchn/james-project/teams","hooks_url":"https://api.github.com/repos/trantienduchn/james-project/hooks","issue_events_url":"https://api.github.com/repos/trantienduchn/james-project/issues/events{/number}","events_url":"https://api.github.com/repos/trantienduchn/james-project/events","assignees_url":"https://api.github.com/repos/trantienduchn/james-project/assignees{/user}","branches_url":"https://api.github.com/repos/trantienduchn/james-project/branches{/branch}","tags_url":"https://api.github.com/repos/trantienduchn/james-project/tags","blobs_url":"https://api.github.com/repos/trantienduchn/james-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trantienduchn/james-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trantienduchn/james-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/trantienduchn/james-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trantienduchn/james-project/statuses/{sha}","languages_url":"https://api.github.com/repos/trantienduchn/james-project/languages","stargazers_url":"https://api.github.com/repos/trantienduchn/james-project/stargazers","contributors_url":"https://api.github.com/repos/trantienduchn/james-project/contributors","subscribers_url":"https://api.github.com/repos/trantienduchn/james-project/subscribers","subscription_url":"https://api.github.com/repos/trantienduchn/james-project/subscription","commits_url":"https://api.github.com/repos/trantienduchn/james-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/trantienduchn/james-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/trantienduchn/james-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/trantienduchn/james-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/trantienduchn/james-project/contents/{+path}","compare_url":"https://api.github.com/repos/trantienduchn/james-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trantienduchn/james-project/merges","archive_url":"https://api.github.com/repos/trantienduchn/james-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trantienduchn/james-project/downloads","issues_url":"https://api.github.com/repos/trantienduchn/james-project/issues{/number}","pulls_url":"https://api.github.com/repos/trantienduchn/james-project/pulls{/number}","milestones_url":"https://api.github.com/repos/trantienduchn/james-project/milestones{/number}","notifications_url":"https://api.github.com/repos/trantienduchn/james-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trantienduchn/james-project/labels{/name}","releases_url":"https://api.github.com/repos/trantienduchn/james-project/releases{/id}","deployments_url":"https://api.github.com/repos/trantienduchn/james-project/deployments","created_at":"2018-05-15T09:38:45Z","updated_at":"2018-05-15T09:39:01Z","pushed_at":"2018-12-03T11:06:14Z","git_url":"git://github.com/trantienduchn/james-project.git","ssh_url":"git@github.com:trantienduchn/james-project.git","clone_url":"https://github.com/trantienduchn/james-project.git","svn_url":"https://github.com/trantienduchn/james-project","homepage":null,"size":40001,"stargazers_count":0,"watchers_count":0,"language":"Java","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"linagora:master","ref":"master","sha":"0e3ffde315a977a4769d0c69a76743918da502f1","user":{"login":"linagora","id":1230365,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMzAzNjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1230365?v=4","gravatar_id":"","url":"https://api.github.com/users/linagora","html_url":"https://github.com/linagora","followers_url":"https://api.github.com/users/linagora/followers","following_url":"https://api.github.com/users/linagora/following{/other_user}","gists_url":"https://api.github.com/users/linagora/gists{/gist_id}","starred_url":"https://api.github.com/users/linagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linagora/subscriptions","organizations_url":"https://api.github.com/users/linagora/orgs","repos_url":"https://api.github.com/users/linagora/repos","events_url":"https://api.github.com/users/linagora/events{/privacy}","received_events_url":"https://api.github.com/users/linagora/received_events","type":"Organization","site_admin":false},"repo":{"id":39182136,"node_id":"MDEwOlJlcG9zaXRvcnkzOTE4MjEzNg==","name":"james-project","full_name":"linagora/james-project","private":false,"owner":{"login":"linagora","id":1230365,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMzAzNjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1230365?v=4","gravatar_id":"","url":"https://api.github.com/users/linagora","html_url":"https://github.com/linagora","followers_url":"https://api.github.com/users/linagora/followers","following_url":"https://api.github.com/users/linagora/following{/other_user}","gists_url":"https://api.github.com/users/linagora/gists{/gist_id}","starred_url":"https://api.github.com/users/linagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linagora/subscriptions","organizations_url":"https://api.github.com/users/linagora/orgs","repos_url":"https://api.github.com/users/linagora/repos","events_url":"https://api.github.com/users/linagora/events{/privacy}","received_events_url":"https://api.github.com/users/linagora/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/linagora/james-project","description":"Mirror of Apache James Project","fork":true,"url":"https://api.github.com/repos/linagora/james-project","forks_url":"https://api.github.com/repos/linagora/james-project/forks","keys_url":"https://api.github.com/repos/linagora/james-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linagora/james-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linagora/james-project/teams","hooks_url":"https://api.github.com/repos/linagora/james-project/hooks","issue_events_url":"https://api.github.com/repos/linagora/james-project/issues/events{/number}","events_url":"https://api.github.com/repos/linagora/james-project/events","assignees_url":"https://api.github.com/repos/linagora/james-project/assignees{/user}","branches_url":"https://api.github.com/repos/linagora/james-project/branches{/branch}","tags_url":"https://api.github.com/repos/linagora/james-project/tags","blobs_url":"https://api.github.com/repos/linagora/james-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linagora/james-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linagora/james-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/linagora/james-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linagora/james-project/statuses/{sha}","languages_url":"https://api.github.com/repos/linagora/james-project/languages","stargazers_url":"https://api.github.com/repos/linagora/james-project/stargazers","contributors_url":"https://api.github.com/repos/linagora/james-project/contributors","subscribers_url":"https://api.github.com/repos/linagora/james-project/subscribers","subscription_url":"https://api.github.com/repos/linagora/james-project/subscription","commits_url":"https://api.github.com/repos/linagora/james-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/linagora/james-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/linagora/james-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/linagora/james-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/linagora/james-project/contents/{+path}","compare_url":"https://api.github.com/repos/linagora/james-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linagora/james-project/merges","archive_url":"https://api.github.com/repos/linagora/james-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linagora/james-project/downloads","issues_url":"https://api.github.com/repos/linagora/james-project/issues{/number}","pulls_url":"https://api.github.com/repos/linagora/james-project/pulls{/number}","milestones_url":"https://api.github.com/repos/linagora/james-project/milestones{/number}","notifications_url":"https://api.github.com/repos/linagora/james-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linagora/james-project/labels{/name}","releases_url":"https://api.github.com/repos/linagora/james-project/releases{/id}","deployments_url":"https://api.github.com/repos/linagora/james-project/deployments","created_at":"2015-07-16T07:04:59Z","updated_at":"2018-12-03T10:17:57Z","pushed_at":"2018-12-03T14:09:12Z","git_url":"git://github.com/linagora/james-project.git","ssh_url":"git@github.com:linagora/james-project.git","clone_url":"https://github.com/linagora/james-project.git","svn_url":"https://github.com/linagora/james-project","homepage":null,"size":38222,"stargazers_count":24,"watchers_count":24,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":107,"license":null,"forks":33,"open_issues":107,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linagora/james-project/pulls/1985"},"html":{"href":"https://github.com/linagora/james-project/pull/1985"},"issue":{"href":"https://api.github.com/repos/linagora/james-project/issues/1985"},"comments":{"href":"https://api.github.com/repos/linagora/james-project/issues/1985/comments"},"review_comments":{"href":"https://api.github.com/repos/linagora/james-project/pulls/1985/comments"},"review_comment":{"href":"https://api.github.com/repos/linagora/james-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linagora/james-project/pulls/1985/commits"},"statuses":{"href":"https://api.github.com/repos/linagora/james-project/statuses/b4091a535cd6d9f1963eb4482bcf02a22d8c945a"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"mbaechler"}}