stable

Clone or download

Read-only

feat: comprehensive history for invitation

Add the id of the invitation in project history events so that project admins can correlate which invitations led to member added. This comes with a new status for invitation to differentiate the invitation that are completed from the one the user actually used to register. This change is reflected in both instrumentation and project history: every completed invitation are logged. We do not log the used invitation in project history, it does not seem to be really relevant for the site admin to know which specific invitation led to user registration. In a next contribution the status `completed` will be enforced in the database to not keep invitations as `sent` forever. Part of story #30021: Invite buddies to my Tuleap project Change-Id: Ic9a00de132d0ecccc91ba2d5f7f054c6da57ade8

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +3 −0 Go to diff View file
M site-content/pt_BR/LC_MESSAGES/tuleap-core.po +3 −0 Go to diff View file
M src/common/InviteBuddy/AccountCreationFeedback.php +4 −10 Go to diff View file
A src/common/InviteBuddy/AddUserToProjectAccordingToInvitation.php +33 −0 Go to diff View file
M src/common/InviteBuddy/InvitationHistoryEntry.php +2 −0 Go to diff View file
M src/common/InviteBuddy/InvitationInstrumentation.php +5 −0 Go to diff View file
M src/common/InviteBuddy/InvitationToOneRecipientWithoutVerificationSender.php +1 −1 Go to diff View file
M src/common/InviteBuddy/ProjectMemberAccordingToInvitationAdder.php +31 −13 Go to diff View file
M src/common/Project/Admin/Invitations/ManageProjectInvitationsController.php +1 −1 Go to diff View file
M src/common/Request/RouteCollector.php +1 −0 Go to diff View file
M src/www/admin/approve_pending_users.php +1 −0 Go to diff View file
M tests/unit/common/InviteBuddy/AccountCreationFeedbackTest.php +47 −322 Go to diff View file
A tests/unit/common/InviteBuddy/AddUserToProjectAccordingToInvitationStub.php +51 −0 Go to diff View file
M tests/unit/common/InviteBuddy/InvitationToOneRecipientWithoutVerificationSenderTest.php +2 −2 Go to diff View file
M tests/unit/common/InviteBuddy/ProjectMemberAccordingToInvitationAdderTest.php +27 −0 Go to diff View file