Actions
Refactor #3296
closedPulp - Story #3209: As a user, I have Repository Versions
Move publish logic from Publisher model to a task
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 31
Quarter:
Description
This task is to:
- Create a celery task called `publish` in pulp_file.app.tasks.py
- define a POST detail route called publish on FilePublisherViewset that deploys the celery task. This viewset should accept `repository` or `repository_version` as a POST body parameter. If `repository` is passed, the latest version should be determined and used as `repository_version`.
The logic defined in the task should be taken from models.FilePublisher.publish. Validation and setting the working directory from pulpcore.tasks.publisher.publish should also be added to this task.
Plugin writer needs to dispatch a task with a reservation for the repository it is publishing.
Plugin writer needs to make sure the publication is added as a created resource for the task. Look at the core publishing task for the example of that.
Related issues
Updated by amacdona@redhat.com almost 7 years ago
- Copied from Refactor #3260: Move sync logic from Importer model to a task added
Updated by amacdona@redhat.com almost 7 years ago
- Subject changed from Move publish logic from Importer model to a task to Move publish logic from Publisher model to a task
- Description updated (diff)
Updated by dkliban@redhat.com almost 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
Updated by dkliban@redhat.com almost 7 years ago
- Status changed from ASSIGNED to NEW
- Assignee deleted (
dkliban@redhat.com)
I started this work but I don't have time to finish
https://github.com/dkliban/pulp_file/commit/916bea7a57fb971611b49ed54415b2ce30b84ac5
Updated by amacdona@redhat.com almost 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to amacdona@redhat.com
Added by amacdona@redhat.com almost 7 years ago
Updated by amacdona@redhat.com almost 7 years ago
- Status changed from ASSIGNED to MODIFIED
- % Done changed from 0 to 100
Applied in changeset 87490257ee77e6a405640ea8caf5990291a8638b.
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Move publish to task, deployed by viewset
closes #3296 https://pulp.plan.io/issues/3296