Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-4742

API - add delete and bulk delete for snapshots

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Content

      Goal: 

      • A user should be able to delete or bulk delete snapshots
      • DELETE /content-sources/api/v1/repositories/<uuid>/snapshots/<uuid>
      • POST /content-sources/api/v1/repositories/<uuid>/snapshots/bulk_delete/
        • body: { uuids: [] }
      • Deleting a snapshot should also delete the repository version, publication, and distribution in pulp. This would need a new task. Task should delete one or multiple snapshots.
      • Want to soft delete the snapshot so the task can still use it.
      • Update a template to next snapshot before deleting

      Acceptance Criteria:

      • Delete and bulk delete endpoints are implemented as described.
      • Deleting a snapshot spawns a task that also deletes pulp objects.
      • A user should not be able to delete the last snapshot in a repository.
      • Errors should be returned in a list, similar to the repository bulk delete endpoint

              dvagner@redhat.com Dominik Vagner
              rverdile@redhat.com Ryan Verdile
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: