devilry / devilry-django

Devilry project main repository
http://devilry.org
BSD 3-Clause "New" or "Revised" License
51 stars 24 forks source link

Manual user 'merge into' revealed group file error #1143

Open torgeirl opened 4 years ago

torgeirl commented 4 years ago

Description Awaiting a proper 'merge into' option (issue #1122) we have solved mid-semester username switches by the following procedure:

  1. Merge the old and new user on already corrected or delivered assignments.
  2. Remove the old user from assignments awaiting delivery.
  3. Deactivate the old user on active semesters to prevent it from getting added to assignments and signal to semester admins that it's not in use.

This procedure is time-consuming, error-prone, and creates additional issues:

If the old user isn't just deactivated, but split out of the group and then removed from the assignment a third issue gets introduced:

Sticking to the old 'merge into' procedure will prevent this from happening from future username switches, but the issue still holds for other scenarios involving group changes, and we should probably handle it better than a 500 error.

Solution A

Solution B