Referential integrity: when a course-listing is deleted, all its instructors should be deleted

Description

At present, if a course-listing has instructors, an attempt to delete it will fail. Instead, the instructors should be deleted too: they have no independent lifecycle of their own (unlike terms, course types, etc.) and are logically speaking part of the course-listing.

(See for background.)

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

Activity

Show:

Mike Taylor July 5, 2024 at 9:36 PM

I’ve checked on snapshot (which by now has the updated version of mod-course) and it looks like it does the right thing: courses that have instructors can be deleted just fine, presumably because the back-end has deleted their instructions as part of that operation. (If we’re being pedantic: we delete the course in the UI, but that also has the effect of deleting the course-listing if there are no remaining courses cross-listed with it, and the instructors associated with that course-listing are then deleted.)

So I think this is all good and can be closed as done.

I have reassigned back to , who did the work, so he can have the honour of closing the issue.

Done

Details

Assignee

Reporter

Priority

Sprint

Development Team

Thor

Fix versions

RCA Group

TBD

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created June 27, 2024 at 3:45 PM
Updated July 7, 2024 at 5:44 PM
Resolved July 7, 2024 at 5:44 PM
TestRail: Cases
TestRail: Runs