stable

Clone or download

Read-only

feat: Mark invitations as completed

An invitation that led to the creation of a user should be considered as completed in the database. β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β” β”‚created β”‚ β””β”¬β”€β”€β”€β”€β”€β”€β”¬β”˜ β”Œβ–½β”€β”€β”€β”€β”β”Œβ–½β”€β”€β”€β” β”‚errorβ”‚β”‚sentβ”‚ β””β”€β”€β”€β”€β”€β”˜β””β”¬β”€β”€β”¬β”˜ β”‚ β”‚ user registers thanks to β”‚ β”‚ current invitation link β–·β”‚ │◁ other invitations for this user β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β–½β”β”Œβ–½β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚used β”‚β”‚completedβ”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ No functional changes for the end users. Part of story #30021: Invite buddies to my Tuleap project Change-Id: I196c2b6a1b937e9de1d1c5158a914fb3deca3911

Modified Files

Name
M src/common/InviteBuddy/Invitation.php +5 βˆ’4 Go to diff View file
M src/common/InviteBuddy/InvitationDao.php +8 βˆ’5 Go to diff View file
A src/db/mysql/updates/2023/202302231021_mark_invitations_as_completed.php +39 βˆ’0 Go to diff View file
M tests/integration/tests/InviteBuddy/InvitationDaoTest.php +2 βˆ’2 Go to diff View file
M tests/unit/common/InviteBuddy/AccountCreationFeedbackTest.php +13 βˆ’13 Go to diff View file
M tests/unit/common/InviteBuddy/Admin/InvitedByPresenterBuilderTest.php +4 βˆ’4 Go to diff View file
M tests/unit/common/InviteBuddy/InvitationTestBuilder.php +5 βˆ’0 Go to diff View file