Project

Profile

Help

Network maintenance. Planio will be observing two scheduled maintenance windows this Tuesday, March 2 and Wednesday, March 3 from 02:00 UTC until 06:00 UTC each in order to perform maintenance on access routers in our primary datacenter. Your account might observe short downtimes during these periods up to several minutes at a time.

Refactor #3296

Pulp - Story #3209: As a user, I have Repository Versions

Move publish logic from Publisher model to a task

Added by amacdona@redhat.com about 3 years ago. Updated about 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Sprint/Milestone:
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:

  1. Create a celery task called `publish` in pulp_file.app.tasks.py
  2. 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

Copied from File Support - Refactor #3260: Move sync logic from Importer model to a taskCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision 87490257 View on GitHub
Added by amacdona@redhat.com about 3 years ago

Move publish to task, deployed by viewset

closes #3296 https://pulp.plan.io/issues/3296

History

#1 Updated by amacdona@redhat.com about 3 years ago

  • Copied from Refactor #3260: Move sync logic from Importer model to a task added

#3 Updated by amacdona@redhat.com about 3 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)

#4 Updated by dkliban@redhat.com about 3 years ago

  • % Done changed from 100 to 0

#5 Updated by dkliban@redhat.com about 3 years ago

  • Description updated (diff)

#6 Updated by dkliban@redhat.com about 3 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com

#7 Updated by dkliban@redhat.com about 3 years ago

  • Status changed from ASSIGNED to NEW
  • Assignee deleted (dkliban@redhat.com)

#8 Updated by amacdona@redhat.com about 3 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to amacdona@redhat.com

#9 Updated by amacdona@redhat.com about 3 years ago

  • Status changed from ASSIGNED to MODIFIED
  • % Done changed from 0 to 100

#10 Updated by bmbouter almost 3 years ago

  • Sprint set to Sprint 31

#11 Updated by bmbouter almost 3 years ago

  • Sprint/Milestone deleted (53)

#12 Updated by bmbouter almost 2 years ago

  • Tags deleted (Pulp 3)

#13 Updated by bmbouter about 1 year ago

  • Sprint/Milestone set to 0.1.0

#14 Updated by bmbouter about 1 year ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF