[People] Maintain course association for merged user accounts
Merged user accounts appear to display, in the course People screen, the existing login ID / SIS ID of the account merged into.
This is fine if this is in fact the login used to enrol the user into the course and thus the login used by the user to access that course.
However if this is not the login the user used to access the course then replacing it with a different login in the merged account provides an untrue record of how the user accessed the course and is liable to cause unneeded confusion.
Example:
Student has two accounts A and B. The student is enrolled into courses W and X using account A, and into courses Y and Z using account B. The student's A account is then merged into the B account. After the merge, checking the student's enrolment in courses W and X shows the user as having been enrolled / having logged into these courses using account B. This is not the case.
Continue to display the login actually used to enrol the user in a course rather than replacing it with a login that was never used to access the course.
Functionality similar to this is already implemented in Canvas for deleted logins - example:
Student has two accounts A and B. The student is enrolled into courses W and X using account A, and into courses Y and Z using account B. The student's A account is then merged into the B account. After the merge, either of the logins in the merged account is deleted. Checking the People screen for the courses in which the deleted login was enrolled stills shows that login.
admin