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 almost 7 years ago. Updated about 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
Actions #1

Updated by dalley almost 7 years ago

  • Description updated (diff)
Actions #2

Updated by bmbouter almost 7 years ago

+1 to this. We should not allow orphaned ReservedResources.

Actions #3

Updated by dalley almost 7 years ago

  • Sprint set to Sprint 34
Actions #4

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
Actions #5

Updated by dalley over 6 years ago

  • Status changed from ASSIGNED to POST
Actions #6

Updated by dalley over 6 years ago

  • Status changed from POST to ASSIGNED
Actions #7

Updated by daviddavis over 6 years ago

  • Sprint changed from Sprint 34 to Sprint 35
Actions #8

Updated by dkliban@redhat.com over 6 years ago

  • Sprint/Milestone set to 3.0.0
Actions #9

Updated by dalley over 6 years ago

  • Status changed from ASSIGNED to POST

Added by dalley over 6 years ago

Revision 85f55a39 | View on GitHub

Prevent task deletion with locked resources

closes #3509 https://pulp.plan.io/issues/3509

Added by dalley over 6 years ago

Revision 85f55a39 | View on GitHub

Prevent task deletion with locked resources

closes #3509 https://pulp.plan.io/issues/3509

Actions #10

Updated by dalley over 6 years ago

  • Status changed from POST to MODIFIED
Actions #11

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3, Pulp 3 MVP)
Actions #12

Updated by bmbouter about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF