Project

Profile

Help

Issue #3073

closed

Can't remove content from a repository

Added by daviddavis about 5 years ago. Updated almost 3 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:
No
Tags:
Easy Fix
Sprint:
Sprint 27
Quarter:

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.

Actions #1

Updated by amacdona@redhat.com about 5 years ago

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

Updated by daviddavis about 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis
Actions #3

Updated by daviddavis about 5 years ago

  • Status changed from ASSIGNED to POST
Actions #4

Updated by jortel@redhat.com about 5 years ago

  • Sprint/Milestone changed from 45 to 46

Added by daviddavis about 5 years ago

Revision 9ed27511

Return the repository content href so they can be deleted

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

Added by daviddavis about 5 years ago

Revision 9ed27511

Return the repository content href so they can be deleted

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

Actions #5

Updated by daviddavis about 5 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by bmbouter over 4 years ago

  • Sprint set to Sprint 27
Actions #7

Updated by bmbouter over 4 years ago

  • Sprint/Milestone deleted (46)
Actions #8

Updated by daviddavis over 3 years ago

  • Sprint/Milestone set to 3.0.0
Actions #9

Updated by bmbouter over 3 years ago

  • Tags deleted (Pulp 3)
Actions #10

Updated by bmbouter almost 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF