Task #2398
closedConvert celery task repo.publish to Pulp 3
100%
Description
Task name in Pulp 2: `pulp.server.managers.repo.publish.publish`.
Task implementation in Pulp 2: https://github.com/pulp/pulp/blob/3.0-dev/server/pulp/server/controllers/repository.py#L1039
1. Query for the instance of the Publisher's Master model that needs to publish.
2. Cast that Publisher master instance to a detail instance
3. Set the working_dir attribute on the detail instance with the working_dir context manager.
4. Call publish (it should take no arguments)
The comments in platform/pulp/plugin/models/publisher.py need to be revised.
Related issues
Updated by ttereshc about 8 years ago
- Related to Task #2380: Create a redmine task for each 2.y celery task to be converted to 3.0 added
Updated by amacdona@redhat.com over 7 years ago
- Description updated (diff)
- Groomed changed from No to Yes
We probably ought to do some business checks related to preventing relative_path collisions as well.
Updated by bmbouter over 7 years ago
amacdona@redhat.com wrote:
We probably ought to do some business checks related to preventing relative_path collisions as well.
This sounds good, but I can't picture what it looks like. Can you describe the check a little more?
Updated by dkliban@redhat.com over 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
- Sprint/Milestone set to 38
- Sprint Candidate changed from No to Yes
Updated by dkliban@redhat.com over 7 years ago
- Status changed from ASSIGNED to POST
Updated by amacdona@redhat.com over 7 years ago
bmbouter wrote:
amacdona@redhat.com wrote:
We probably ought to do some business checks related to preventing relative_path collisions as well.
This sounds good, but I can't picture what it looks like. Can you describe the check a little more?
We do it in rpm now, but I think it should be a general tool.
Added by dkliban@redhat.com over 7 years ago
Added by dkliban@redhat.com over 7 years ago
Revision bf743323 | View on GitHub
Problem: API does not support publishing a repository
Solution: Add API endpoint to dispatch a publish with a specific publisher.
closes #2398
Updated by dkliban@redhat.com over 7 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|bf7433236c5cf5203808341c74715ad257d69718.
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Problem: API does not support publishing a repository
Solution: Add API endpoint to dispatch a publish with a specific publisher.
closes #2398