stable

Clone or download

Read-only

Send notification when user edits his comment

How to test: - Make sure to have redis and mailhog up - Make sure to have enabled the feature flag: `tuleap config-set feature_flag_allow_pull_requests_comments_edition 1` - In the timeline view of a pull request edit a GLOBAL comment => A notification is sent Part of story #32316 Update comments Change-Id: I8d8d4aabf0a5d17c05db897fa4b1037829ffcc09

Modified Files

Name
A plugins/pullrequest/include/PullRequest/Comment/Notification/UpdatedCommentContentPresenter.php +38 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Comment/Notification/UpdatedCommentEvent.php +58 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Comment/Notification/UpdatedCommentNotification.php +108 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Comment/Notification/UpdatedCommentNotificationToProcessBuilder.php +87 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Notification/EventSubjectToNotificationListener.php +1 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Notification/PullRequestNotificationSupport.php +49 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/Comment/PATCHCommentHandler.php +6 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestCommentsResource.php +5 −1 Go to diff View file
M plugins/pullrequest/site-content/fr_FR/LC_MESSAGES/tuleap-pullrequest.po +7 −0 Go to diff View file
M plugins/pullrequest/site-content/pt_BR/LC_MESSAGES/tuleap-pullrequest.po +7 −0 Go to diff View file
A plugins/pullrequest/templates/comment/update-comment-mail-content.mustache +12 −0 Go to diff View file
A plugins/pullrequest/tests/unit/Comment/Notification/UpdatedCommentEventTest.php +53 −0 Go to diff View file
A plugins/pullrequest/tests/unit/Comment/Notification/UpdatedCommentNotificationTest.php +135 −0 Go to diff View file
A plugins/pullrequest/tests/unit/Comment/Notification/UpdatedCommentNotificationToProcessBuilderTest.php +137 −0 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/Comment/PATCHCommentHandlerTest.php +3 −1 Go to diff View file