Autoremove students from other groups when a group gets approved
We would like to have various behaviours possible whenever a student is in multiple groups and one is approved:
- Single-group course, direct resolution: when a group is approved, remove the user from all other (non-rejected, non-approved) groups they are in. There is also a possibility of concurrency issues here when multiple groups get approved at once.
- Block approval of a group if it contains members which are already in an approved group?
- A course might want to allow students to be in multiple approved groups
- Check how this interacts with group imports
See also existing code in course_edition_controller#cleanup_already_approved_students