openwebwork / webwork2

Course management front end for WeBWorK
http://webwork.maa.org/wiki/Main_Page
Other
145 stars 165 forks source link

merging two accounts #2349

Open Alex-Jordan opened 7 months ago

Alex-Jordan commented 7 months ago

When a student undergoes a name change (through marriage, divorce, changing gender, and maybe more situations) this might change their WeBWorK user ID. It could be because they sign in through the LMS and the LTI config is set to use their email prefix as their WW id. Or it could be that they use username/password but are stuck having to use their old name as their username, or part of their username.

It would be nice if we had a tool to merge two user accounts into one. Something where users A and B become user B. And user B is now assigned the union of all sets that had been assigned to A and B. For each question in the database, the score is the higher of the two scores and the most recent answer is the most recent of the two most recent answers. And there is asymmetry, in that the original user B's user data is kept.

If there were a tool like that, am I forgetting about something important? Should an instructor have access to a tool like that, or only an admin?

somiaj commented 7 months ago

To add to this, I ran across a case this semester where we had one student change sections in the middle of the semester. The two sections use different webwork courses, but were almost identical (same assignments, with same assignment ids/problems, though there was maybe 1-3% difference). It would be nice to have copy that users data a different webwork course.

Though this case is a bit more complicated than the one you mentioned depending on how closely related the two course are. Also in the case I ran into, copying the LTI data wouldn't have worked since that would not longer be accurate for the new canvas section they moved to.

So maybe this could be extended to a way to export/import a single users data, and to choose which data to import from (useful when coming from another course).