Project

Profile

Help

Issue #3509

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 1 year ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
Yes
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 35

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. MODIFIED Actions

Associated revisions

Revision 85f55a39 View on GitHub
Added by dalley over 1 year ago

Prevent task deletion with locked resources

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

Revision 85f55a39 View on GitHub
Added by dalley over 1 year ago

Prevent task deletion with locked resources

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

Revision 85f55a39 View on GitHub
Added by dalley over 1 year ago

Prevent task deletion with locked resources

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

History

#1 Updated by dalley over 1 year ago

  • Description updated (diff)

#2 Updated by bmbouter over 1 year ago

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

#3 Updated by dalley over 1 year ago

  • Sprint set to Sprint 34

#4 Updated by daviddavis over 1 year ago

  • Blocked by Story #3527: As an authenticated user, I can delete tasks that aren't running or waiting. added

#5 Updated by dalley over 1 year ago

  • Status changed from ASSIGNED to POST

#6 Updated by dalley over 1 year ago

  • Status changed from POST to ASSIGNED

#7 Updated by daviddavis over 1 year ago

  • Sprint changed from Sprint 34 to Sprint 35

#8 Updated by dkliban@redhat.com over 1 year ago

  • Sprint/Milestone set to 3.0

#9 Updated by dalley over 1 year ago

  • Status changed from ASSIGNED to POST

#10 Updated by dalley over 1 year ago

  • Status changed from POST to MODIFIED

#11 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3, Pulp 3 MVP)

Please register to edit this issue

Also available in: Atom PDF