Overview
This feature is provided by 'project_certification' plugin.
In the following story, a user is considered invalid if he becomes 'Suspended' or 'Deleted'.
Functional overview
When a user becomes invalid (either because site admin manually changed its status or if LDAP daily sync did it) a custom code is called to find someone to take his role.
This custom code is under system administrator responsability and shall be deployed in '/etc/tuleap'. It will take as parameter a "User" object about to be invalid and can return either 'null' or another User object that should replace the about-to-be-invalid owner. The way the new owner is found is not under plugin's reponsability.
By default and when 'null' is returned or if there is an exception, error, nothing will be done with the project owner. The project he owns will become orphan. An event is recorded in the project history about orphan.
When a user is returned, he will be added as a project_member, project_administrator and forced as owner of each and every project the previous owner owned.
Email notifications
Emails notifications are aggregated to limit the amout of spam:
When no new owner is found (orphan):
- project administrators are notified (mail got aggregated if someone is admin of several projects)
- a mail is sent to site administrators about new "not certified" projects (only 1 mail with all projects).
When a new owner is found:
- new owner get one email with all projects he his now owner (no mails are sent for membership and admin)
- for each administrator of each project that where changed, only one email is sent with all projects affected.
- if the new owner is already administrator of the project he only get the first mail