-
Task
-
Resolution: Done
-
Undefined
-
None
Goal:
- Create an api the UI can use that will start a task to:
- Finalize one or more uploads into artifacts
- Convert one or more uploaded artifacts into rpms
- Create a new repository version in pulp with those rpms
- Create a snapshot
- The task should utilize the following apis:
- Commit the uploads: https://pulpproject.org/pulpcore/restapi/#tag/Uploads/operation/uploads_commit
- This api should look something like:
- (example URL) POST /api/content-sources/v1/repositories/:UUID/snapshots/uploads/
It should take a list of artifact HREFs, something like:
{ uploads: [ { upload_href: "href1", sha256sum: "abcdefgh" } ] }
The response would be a task response (full structure of the task as we return from our tasks api today), and this task should be saved as the 'last_snapshot_task' on the repository configuration