Project

Profile

Help

Story #2446

As a user, I can use REST API to remove an importer from a repository.

Added by dkliban@redhat.com almost 3 years ago. Updated 6 months ago.

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

100%

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

Description

As a result of this story the user will be able to make a DELETE request to /api/v3/importers/<pk> and receive back a 202 response that looks like this:

[
    {
        "_href": "/api/v3/tasks/adlfk-bala-23k5l7-lslser",
        "task_id": "adlfk-bala-23k5l7-lslser" 
    }
]

The importer viewset should be extended to handle a DELETE. As a result of the request a pulp.app.tasks.importer.delete.apply_async_with_reservation() should be called and the AsyncResult should be used to instantiate an OperationPostponedResponse0 object. The object should then be returned.

[0] http://docs.pulpproject.org/en/3.0/nightly/contributing/platform_api/app/response.html#pulp.app.response.OperationPostponedResponse

Associated revisions

Revision 6db181c9 View on GitHub
Added by ipanova@redhat.com almost 3 years ago

As a user, I can use REST API to remove an importer from a repository.

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

Revision 6db181c9 View on GitHub
Added by ipanova@redhat.com almost 3 years ago

As a user, I can use REST API to remove an importer from a repository.

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

Revision 6db181c9 View on GitHub
Added by ipanova@redhat.com almost 3 years ago

As a user, I can use REST API to remove an importer from a repository.

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

History

#1 Updated by semyers almost 3 years ago

  • Groomed changed from No to Yes

Just to clarify, our ViewSets already support the DELETE verb, so this would specifically entail implementing the existing ViewSet "destroy" method, having it return the response as explained in the description.

http://www.django-rest-framework.org/api-guide/viewsets/#marking-extra-actions-for-routing

#2 Updated by mhrivnak almost 3 years ago

  • Sprint/Milestone set to 30

#3 Updated by ipanova@redhat.com almost 3 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com

#4 Updated by ipanova@redhat.com almost 3 years ago

  • Status changed from ASSIGNED to POST

#5 Updated by ipanova@redhat.com almost 3 years ago

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

#6 Updated by bmbouter over 1 year ago

  • Sprint set to Sprint 12

#7 Updated by bmbouter over 1 year ago

  • Sprint/Milestone deleted (30)

#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