stable

Clone or download

Read-only

feat: Remove invitations for suspended users

Invitations of users are removed when: * site admin changes their status to suspended or deleted, * `tuleap daily-job` considers them as: * expired (according to their expiry date), * inactive (according to `sys_suspend_inactive_accounts_delay`), * or not project member (according to `sys_suspend_non_project_member_delay`) Instrumentation counter is incremented for each cases. It is also incremented when project admins withdraw invitations. Part of story #30021: Invite buddies to my Tuleap project Change-Id: I66cb53931cdd6fa8f579f93bb62eedab61ddd0a8

Modified Files

Name
M src/common/InviteBuddy/InvitationDao.php +23 −3 Go to diff View file
M src/common/InviteBuddy/InviteBuddiesPresenter.php +4 −1 Go to diff View file
M src/common/InviteBuddy/REST/v1/InvitationsResource.php +1 −1 Go to diff View file
M src/common/Project/Admin/ProjectMembers/ProjectMembersController.php +6 −1 Go to diff View file
M src/common/Project/Home.php +4 −1 Go to diff View file
M src/common/Request/RouteCollector.php +16 −4 Go to diff View file
M src/common/User/UserSuspensionManager.php +4 −5 Go to diff View file
M src/common/dao/UserSuspensionDao.php +64 −19 Go to diff View file
M src/utils/tuleap.php +10 −2 Go to diff View file
M src/www/admin/approve_pending_users.php +8 −2 Go to diff View file
M src/www/admin/usergroup.php +20 −3 Go to diff View file
M src/www/my/index.php +4 −1 Go to diff View file
M tests/integration/tests/InviteBuddy/InvitationDaoTest.php +76 −2 Go to diff View file
M tests/psalm/psalm.xml +1 −0 Go to diff View file