Story #5334
closedAs a user, I can immediately download Collection content after uploading it
100%
Description
The UploadCollection is available in 3 places in pulp_ansible:
In the Galaxy V2 and Galaxy V3 areas, the viewset knows specifically which Distribution that client is accessing the Galaxy API through.
Design¶
For the Galaxy V2 and V3 APIs, the viewset knows the Distribution the client is uploading to. For those two APIs any new Collection content should create and be associated with a new RepositoryVersion. This should only create a RepositoryVersion if the Distribution.repository is set because that will cause the RepositoryVersion to be served automatically.
Updated by bmbouter over 5 years ago
- Subject changed from As a user uploading a Collection through a "distribution", a new RepositoryVersion is created for the associated Repository to As a user, I can immediately download Collection content after uploading it
I retitled it to reflect the actual goal.
Updated by bmbouter over 5 years ago
My first instinct is that there are already add/remove calls in core that allow the user to facilitate this with 1 extra call. When pulp_ansible is the Collection storage backend for Galaxy that is fine, but what about cases where the `ansible-galaxy collecitons` CLI is being used with pulp_ansible directly? The CLI won't know to make those extra calls.
Updated by bmbouter over 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to bmbouter
Added by bmbouter over 5 years ago
Updated by bmbouter over 5 years ago
- Status changed from ASSIGNED to POST
PR available at: https://github.com/pulp/pulp_ansible/pull/184
Updated by bmbouter over 5 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp_ansible|a662fc2cf15d171a07dd7dd699291e373b9b0a9a.
Updated by bmbouter about 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Auto create RepoVersion on Collection Upload
The Galaxy V2 and V3 APIs are accessed through a specific AnsibleDistribution. If that AnsibleDistribution is related to a Repository, an upload will create a new RepositoryVersion.
Note: if the AnsibleDsitribution is serving a specific RepositoryVersion (not "the latest" from a Repository), no additional RepositoryVersions are created).
https://pulp.plan.io/issues/5334 closes #5334