Project

Profile

Help

Story #4988

As a user, I can remove uploads

Added by daviddavis 5 months ago. Updated 5 months ago.

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

100%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
Yes
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

Example:

http POST :24817/pulp/api/v3/uploads/ size=10485759 # returns a UUID (e.g. 345b7d58-f1f8-45d9-d354-82a31eb879bf)
export UPLOAD='/pulp/api/v3/uploads345b7d58-f1f8-45d9-d354-82a31eb879bf/'

http DELETE :24817${UPLOAD}

Allow any upload to be deleted. Also, add a filter to list incomplete uploads.


Related issues

Related to Pulp - Story #4196: As a user, I can upload files in chunks. MODIFIED Actions
Related to Pulp - Story #4981: Remove incomplete chunked uploads after a set amount of time NEW Actions
Blocked by Pulp - Story #4488: As a user, I can upload chunks in parallel MODIFIED Actions

Associated revisions

Revision cd5d8e99 View on GitHub
Added by daviddavis 5 months ago

Allow deletion of uploads

Also added a filter to filter by incomplete.

fixes #4988

History

#1 Updated by daviddavis 5 months ago

  • Related to Story #4196: As a user, I can upload files in chunks. added

#2 Updated by daviddavis 5 months ago

  • Related to Story #4981: Remove incomplete chunked uploads after a set amount of time added

#3 Updated by daviddavis 5 months ago

  • Subject changed from As a user, I can remove incomplete uploads to As a user, I can remove uploads

#4 Updated by daviddavis 5 months ago

I'm setting this to being blocked by #4488 since #4488 changes the chunked upload code/API.

#5 Updated by daviddavis 5 months ago

  • Blocked by Story #4488: As a user, I can upload chunks in parallel added

#6 Updated by daviddavis 5 months ago

  • Tracker changed from Issue to Story
  • % Done set to 0

#7 Updated by ttereshc 5 months ago

I think it can be deleted if the upload is complete.
I'm more worried about incomplete ones and how to determine that it's safe to delete them. I'll comment on #4981.

#8 Updated by daviddavis 5 months ago

I lean towards allowing users to delete any uploads including incomplete ones. To me, uploads are transient so I don't worry about users accidentally deleting ones. I guess I worry more about users not being able to easily remove large amounts of data from their filesystem.

#9 Updated by dkliban@redhat.com 5 months ago

Users should be able to delete any Upload.

#10 Updated by ttereshc 5 months ago

  • Groomed changed from No to Yes

I think it's ok for now. In case users report that it's easy to accidentally remove it in their workflow, we can introduce a flag like "force=True".

#11 Updated by daviddavis 5 months ago

  • Description updated (diff)

#12 Updated by daviddavis 5 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis

#13 Updated by daviddavis 5 months ago

  • Status changed from ASSIGNED to POST

#14 Updated by daviddavis 5 months ago

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

Please register to edit this issue

Also available in: Atom PDF