Project

Profile

Help

Issue #3509

closed

As a user, I am prevented from deleting tasks if they have locked resources so that orphaned resource locks are never created

Added by dalley over 6 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
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

Blocked by Pulp - Story #3527: As an authenticated user, I can delete tasks that aren't running or waiting.CLOSED - CURRENTRELEASECodeHeeler

Actions

Also available in: Atom PDF