Story #3324
closedPulp - Story #3209: As a user, I have Repository Versions
As 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 dkliban@redhat.com almost 7 years ago
- Tracker changed from Issue to Story
- % Done set to 0
Updated by bmbouter almost 7 years ago
- Description updated (diff)
Adding info about raising an exception when both arguments are submitted together.
Updated by bmbouter almost 7 years ago
- Sprint Candidate changed from No to Yes
added some checklist items.
Updated by milan almost 7 years ago
Sample JSON Blobs¶
Repository specified defaulting to latest version POST pulp.example.com/pulp/api/v3/pubisher/<publisher_uuid>/publish/
:
{
"repository": "https://pulp.example.com/pulp/api/v3/repository/<repository_uuid>/",
"repository_version": null
}
Repository version specified implying the snapshot of a repository of the given version is published POST pulp.example.com/pulp/api/v3/publisher/<publisher_uuid>/publish/
:
{
"repository": null,
"repository_version": "https://pulp.example.com/pulp/api/v3/repository/<repository_uuid>/version/<version_id>/"
}
Updated by bmbouter almost 7 years ago
- Sprint/Milestone set to 54
milan, those look good.
I'm adding to the sprint because it's part of the versioned repos work and groomed.
Updated by bmbouter almost 7 years ago
- Sprint/Milestone changed from 54 to 53
Added to the wrong sprint.
Updated by dkliban@redhat.com almost 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
Updated by jortel@redhat.com almost 7 years ago
- Sprint/Milestone changed from 53 to 54
Updated by daviddavis almost 7 years ago
Added checklist item to open a pulp-smash Github issue.
Updated by dkliban@redhat.com almost 7 years ago
- Status changed from ASSIGNED to POST
Added by dkliban@redhat.com almost 7 years ago
Updated by dkliban@redhat.com almost 7 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset ed8f77a83975934b71830bc320710614efb2dabd.
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Problem: only the latest repository version can be published
Solution: add ability to publish any repository version
This patch adds an optional repository_version parameter for the 'publish' endpoint of the 'file' publisher. The REST API accepts either 'repository' or 'repository_version', but not both at the same time.
closes #3324 https://pulp.plan.io/issues/3324