Project

Profile

Help

Issue #9220

closed

content_ansible_collection_versions_create endpoint requires a lot of fields from inside uploaded artifact

Added by sajha over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 103
Quarter:

Description

The https://docs.pulpproject.org/pulp_ansible/restapi.html#operation/upload_collection endpoint allows you to upload a Collection tarball. This operation results in an artifact which can then be used to create a new collection content.

However, the endpoint to do so https://docs.pulpproject.org/pulp_ansible/restapi.html#operation/content_ansible_collection_versions_create seems to have a lot of required fields which are presumably avaialble on the uploaded tarball itself. Is there a way to modify the flow so that associating an artifact from an uploaded collection tarball doesn't need to have all the other information passed.

I am assuming the flow would be to upload tarball, create a collection content using the artifact, add content created to a collection repository.

Actions #1

Updated by fao89 over 3 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89
  • Triaged changed from No to Yes
  • Sprint set to Sprint 103
Actions #2

Updated by fao89 over 3 years ago

https://docs.pulpproject.org/pulp_ansible/restapi.html#operation/upload_collection already creates a content for you, it validates the collection using galaxy-importer and then creates the content

Actions #3

Updated by pulpbot over 3 years ago

  • Status changed from ASSIGNED to POST

Added by Fabricio Aguiar over 3 years ago

Revision 0b6440a9 | View on GitHub

Ensure galaxy-importer is used when uploading collections

closes #9220

Actions #4

Updated by Anonymous over 3 years ago

  • Status changed from POST to MODIFIED

Added by Fabricio Aguiar over 3 years ago

Revision 5e960628 | View on GitHub

Ensure galaxy-importer is used when uploading collections

closes #9220

(cherry picked from commit 0b6440a9ddd1048fd1d6a8945c969a7c28d2a4c9)

Actions #6

Updated by fao89 over 3 years ago

  • Sprint/Milestone set to 0.9.1
Actions #7

Updated by pulpbot over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF