stable

Clone or download

Read-only

Send pull request notifications asynchronously when possible

Pull requests notifications are sent asynchronously as soon as it is possible to get a Redis persistent queue, otherwise it fallbacks to a synchronous mode. Part of story #14190: get email notifications on pull requests - first stage Change-Id: I67790d6f8abd0615c10d22cd0f362cce10925d87

Modified Files

Name
M plugins/pullrequest/include/PullRequest/Authorization/PullRequestPermissionChecker.php +6 −7 Go to diff View file
A plugins/pullrequest/include/PullRequest/Notification/EventDispatcherWithFallback.php +69 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Notification/EventSubjectToNotification.php +4 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Notification/EventSubjectToNotificationAsynchronousRedisDispatcher.php +64 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Notification/InvalidWorkerEventPayloadException.php +33 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Notification/PullRequestNotificationSupport.php +129 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php +15 −52 Go to diff View file
M plugins/pullrequest/include/PullRequest/Reviewer/Change/ReviewerChangeEvent.php +18 −1 Go to diff View file
M plugins/pullrequest/include/pullrequestPlugin.php +14 −1 Go to diff View file
M plugins/pullrequest/phpunit/Authorization/PullRequestPermissionCheckerTest.php +7 −6 Go to diff View file
A plugins/pullrequest/phpunit/Notification/EventDispatcherWithFallbackTest.php +98 −0 Go to diff View file
A plugins/pullrequest/phpunit/Notification/EventSubjectToNotificationAsynchronousRedisDispatcherTest.php +78 −0 Go to diff View file
M plugins/pullrequest/phpunit/Notification/EventSubjectToNotificationListenerProviderTest.php +4 −0 Go to diff View file
A plugins/pullrequest/phpunit/Reviewer/Change/ReviewerChangeEventTest.php +46 −0 Go to diff View file