Univention Bugzilla – Bug 51828
Reuse ExamUsers for subsequent exams
Last modified: 2020-09-28 11:59:10 CEST
To tackle some of the problems presented in Bug #50593 and to provide a faster experience in general, we want to reuse exam users between exams instead of deleting and creating them every time. Titles: As a teacher, I want to be able to create and delete tests quickly one after the other to test the test mode or to rerun it if I forget something. Description: Examusers are not deleted until the end of the day. When a new test is started, the system checks if the Exam User already exists. If not: create; if yes: move & clean up the user home directory. Do not delete home directory if user is already in a running test. Update the Exam User attributes from the original user object. Sync user settings via listener module. Disadvantage: Sync via listener module may have potential for race conditions In home directories, leave only the folders of class work still in progress. Furthermore, a modify must always be executed on the user before starting KA. Configure in which time interval the exam users are deleted (nightly?, not at all) Exams users must be deleted when "real" user is deleted. Sync the changed attributes directly when starting KA, not via the listener
I added a new listener module which cleans up homedirs when the exam-user leaves the last exam (last exam_user:exam:* role ist removed) and ucsschool/exam/user/homedir/autoremove is True [twenzel/clean_homedrive] b6ba8852c Bug #51828: new listener to cleanup homedirs
Code for the Kelvin API has been commited to dtroeder/51828_reuse_exam_users_kelvin (branched off from features/kelvin).