Project

Profile

Help

Maintenance. Planio will be undergoing a scheduled maintenance this weekend. Between Saturday, July 24 at 9:00 UTC and Sunday, July 25, 22:00 UTC your account might observe occasional downtimes which may last up to several minutes in some cases.

Backport #8757

backport 7316 to 3.11: Files are not being deleted from storage when calling the method delete()

Added by jsherril@redhat.com 2 months ago. Updated 2 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Triaged:
Yes
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 97
Quarter:

Related issues

Related to Pulp - Issue #7316: Files are not being deleted from storage when calling the method delete()CLOSED - CURRENTRELEASE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision 6be6542f View on GitHub
Added by bmbouter 2 months ago

Fixes deletion of UploadChunk when Upload deletes

According to the Django docs, the on_delete=models.CASCADE option does not call Model.delete(), but it does call the Model.post_delete() signal handler.

This replaces the UploadChunk.delete() with an UploadChunk.post_delete() signal handler which correctly handles the UploadChunk.file file deletion.

backports #7316

fixes #8757

(cherry picked from commit b38df5ff05e4f1095f6c35847ce843fc5123cdfe)

History

#1 Updated by daviddavis 2 months ago

  • Related to Issue #7316: Files are not being deleted from storage when calling the method delete() added

#2 Updated by fao89 2 months ago

  • Assignee set to bmbouter
  • Triaged changed from No to Yes
  • Sprint set to Sprint 97

#3 Updated by pulpbot 2 months ago

  • Status changed from NEW to POST

#5 Updated by bmbouter 2 months ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#6 Updated by bmbouter 2 months ago

  • Sprint/Milestone set to 3.11.2

#7 Updated by bmbouter 2 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF