stable

Clone or download

Read-only

feat: Send an email when purging invitations

When invitations are being purged, the user who tried to invite someone will be warned by receiving an email. Forge your database to create invitation in the past and run daily-job: Email is sent for each user involved in purged notifications. Notes: - if invitation had not been sent (error or creating status) then no email - if invitation is made for an existing user then no email Part of request #29614: Invited users shouldn't be mandated to re-confirm their email Change-Id: Ia8ed179bfe5671af86adb7f99df2d20fe5ee56f3

Modified Files

Name
M plugins/docman/tests/unit/REST/v1/EmbeddedFiles/VersionRepresentationCollectionBuilderTest.php +4 −4 Go to diff View file
M plugins/docman/tests/unit/REST/v1/Links/VersionRepresentationCollectionBuilderTest.php +2 −2 Go to diff View file
M plugins/docman/tests/unit/REST/v1/VersionRepresentationCollectionBuilderTest.php +11 −9 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeCallbackDocumentSaverTest.php +20 −20 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +22 −0 Go to diff View file
M site-content/pt_BR/LC_MESSAGES/tuleap-core.po +20 −0 Go to diff View file
M src/common/CLI/Command/DailyJobCommand.php +3 −3 Go to diff View file
M src/common/InviteBuddy/Invitation.php +5 −0 Go to diff View file
A src/common/InviteBuddy/InvitationCleaner.php +132 −0 Go to diff View file
M src/common/InviteBuddy/InvitationDao.php +5 −3 Go to diff View file
A src/templates/invite_buddy/mail-obsolete-invitation-text.mustache +19 −0 Go to diff View file
A src/templates/invite_buddy/mail-obsolete-invitation.mustache +25 −0 Go to diff View file
M src/utils/tuleap.php +13 −2 Go to diff View file
M tests/lib/Stubs/RetrieveUserByIdStub.php +23 −4 Go to diff View file
M tests/unit/common/Dashboard/User/FirstTimerPresenterBuilderTest.php +5 −2 Go to diff View file
M tests/unit/common/InviteBuddy/AccountCreationFeedbackTest.php +7 −1 Go to diff View file
A tests/unit/common/InviteBuddy/InvitationCleanerTest.php +254 −0 Go to diff View file
A tests/unit/common/InviteBuddy/InvitationPurgerStub.php +57 −0 Go to diff View file
A tests/unit/common/InviteBuddy/InvitationTestBuilder.php +114 −0 Go to diff View file
M tests/unit/common/User/Account/Register/AfterSuccessfulUserRegistrationTest.php +10 −2 Go to diff View file
M tests/unit/common/User/Account/Register/DisplayRegisterFormControllerTest.php +17 −6 Go to diff View file
M tests/unit/common/User/Account/Register/InvitationToEmailRequestExtractorTest.php +11 −3 Go to diff View file
M tests/unit/common/User/Account/Register/InvitationToEmailTest.php +13 −3 Go to diff View file
M tests/unit/common/User/Account/Register/ProcessRegisterFormControllerTest.php +17 −6 Go to diff View file