Project

Profile

Help

Issue #3073

Can't remove content from a repository

Added by daviddavis about 2 years 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:
No
Tags:
Easy Fix
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 27

Description

We have an api endpoint to remove content from a repository at /api/v3/repositorycontents/{id}/.

However, we don't expose the repo content id. For example, here's the list request:

$ http http://localhost:8000/api/v3/repositorycontents/
HTTP/1.0 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Length: 200
Content-Type: application/json
Date: Mon, 16 Oct 2017 19:09:20 GMT
Server: WSGIServer/0.2 CPython/3.5.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "next": null,
    "previous": null,
    "results": [
        {
            "content": "http://localhost:8000/api/v3/content/example/1607fef2-d18b-4983-bfec-4fc2fc0ac492/",
            "repository": "http://localhost:8000/api/v3/repositories/foo/" 
        }
    ]
}

Therefore, it's impossible to remove content from a repo.

Associated revisions

Revision 9ed27511 View on GitHub
Added by daviddavis almost 2 years ago

Return the repository content href so they can be deleted

fixes #3073
https://pulp.plan.io/issues/3073

Revision 9ed27511 View on GitHub
Added by daviddavis almost 2 years ago

Return the repository content href so they can be deleted

fixes #3073
https://pulp.plan.io/issues/3073

Revision 9ed27511 View on GitHub
Added by daviddavis almost 2 years ago

Return the repository content href so they can be deleted

fixes #3073
https://pulp.plan.io/issues/3073

History

#1 Updated by amacdona@redhat.com almost 2 years ago

  • Sprint/Milestone set to 45
  • Triaged changed from No to Yes

#2 Updated by daviddavis almost 2 years ago

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

#3 Updated by daviddavis almost 2 years ago

  • Status changed from ASSIGNED to POST

#4 Updated by jortel@redhat.com almost 2 years ago

  • Sprint/Milestone changed from 45 to 46

#5 Updated by daviddavis almost 2 years ago

  • Status changed from POST to MODIFIED

#6 Updated by bmbouter over 1 year ago

  • Sprint set to Sprint 27

#7 Updated by bmbouter over 1 year ago

  • Sprint/Milestone deleted (46)

#8 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#9 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF