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
Updated by bmbouter almost 7 years ago
+1 to this. We should not allow orphaned ReservedResources.
Updated by daviddavis over 6 years ago
- Blocked by Story #3527: As an authenticated user, I can delete tasks that aren't running or waiting. added
Updated by daviddavis over 6 years ago
- Sprint changed from Sprint 34 to Sprint 35
Updated by dalley over 6 years ago
- Status changed from ASSIGNED to POST
Added by dalley over 6 years ago
Added by dalley over 6 years ago
Revision 85f55a39 | View on GitHub
Prevent task deletion with locked resources
Updated by dalley over 6 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp|85f55a39d318d1a423215bf5b1f16e12f46dba6b.
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Prevent task deletion with locked resources
closes #3509 https://pulp.plan.io/issues/3509