Task #2398
Convert 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
Associated revisions
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
History
#1
Updated by ttereshc about 4 years ago
- Related to Task #2380: Create a redmine task for each 2.y celery task to be converted to 3.0 added
#2
Updated by ttereshc about 4 years ago
- Tags Pulp 3 added
#3
Updated by amacdona@redhat.com over 3 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.
#4
Updated by bmbouter over 3 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?
#5
Updated by dkliban@redhat.com over 3 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
#6
Updated by dkliban@redhat.com over 3 years ago
- Status changed from ASSIGNED to POST
#7
Updated by amacdona@redhat.com over 3 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.
#8
Updated by mhrivnak over 3 years ago
- Sprint/Milestone changed from 38 to 39
#9
Updated by dkliban@redhat.com over 3 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|bf7433236c5cf5203808341c74715ad257d69718.
#10
Updated by bmbouter almost 3 years ago
- Sprint set to Sprint 20
#11
Updated by bmbouter almost 3 years ago
- Sprint/Milestone deleted (
39)
#12
Updated by daviddavis over 1 year ago
- Sprint/Milestone set to 3.0.0
#13
Updated by bmbouter over 1 year ago
- Tags deleted (
Pulp 3)
#14
Updated by bmbouter about 1 year ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Please register to edit this issue
Problem: API does not support publishing a repository
Solution: Add API endpoint to dispatch a publish with a specific publisher.
closes #2398