Bug 51828 - Reuse ExamUsers for subsequent exams
Reuse ExamUsers for subsequent exams
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: UMC - Exam mode
UCS@school 4.4
Other Linux
: P5 normal (vote)
: UCS@school 4.4 v7
Assigned To: Ole Schwiegert
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-08-18 07:43 CEST by Ole Schwiegert
Modified: 2020-09-28 11:59 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ole Schwiegert univentionstaff 2020-08-18 07:43:51 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
Comment 1 Tobias Wenzel univentionstaff 2020-08-28 14:44:52 CEST
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
Comment 2 Daniel Tröder univentionstaff 2020-09-28 11:59:10 CEST
Code for the Kelvin API has been commited to dtroeder/51828_reuse_exam_users_kelvin (branched off from features/kelvin).