Story #3504
closedAs a user, I can publish any repository version
100%
Description
The publish REST API needs to accept a repository or a repository_version parameter. When the repository_version is specified, the publisher should publish that repository version. When only the repository is specified, the latest repository version for that repository should be published.
The repository and repository_version cannot be used together. When submitted together, an exception should be raised. I think the most appropriate HTTP error response for this is a 400 Bad Request.
Updated by dalley almost 6 years ago
This basically clones https://pulp.plan.io/issues/3324 from pulp_file
PR here: https://github.com/pulp/pulp_file/pull/53
Most can be copied.
Updated by daviddavis almost 6 years ago
Adding checklist item to do a bit of refactoring to create a shared method which can get the repo version from the options.
Added by dalley almost 6 years ago
Updated by dalley almost 6 years ago
Updated by dalley almost 6 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset e4ef2d976558f6df9d81907dfecde45c40997d43.
Support publishing any repository version, not just the latest one
closes #3504 https://pulp.plan.io/issues/3504