Actions
Issue #3509
closedAs a user, I am prevented from deleting tasks if they have locked resources so that orphaned resource locks are never created
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 35
Quarter:
Description
We're using a ManyToMany field to join Tasks to ReservedResources. The problem with this is that you can delete tasks which leaves the ReservedResource in limbo. To fix this, create a join model TaskReservedResource which uses an FK with on_delete set to PROTECT for tasks.
This issue was copied from issue #3380 which @daviddavis created, but which I accidentally deleted. Whoops. Luckily, I had a cached copy open.
Related issues
Actions
Prevent task deletion with locked resources
closes #3509 https://pulp.plan.io/issues/3509