Project

Profile

Help

Refactor #3260

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

Move sync logic from Importer model to a task

Added by amacdona@redhat.com about 4 years ago. Updated about 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 31
Quarter:

Description

This task is to:

  1. Create a celery task called `sync` in pulp_file.app.tasks.py
  2. define a POST detail route called sync on FileImporterViewset that deploys the celery task with reservation for the repository. This viewset should accept `repository` as a POST body parameter.

The logic defined in the task should be taken from models.FileImporter.sync. Validation and setting the working directory from pulpcore.tasks.importer.sync should also be added to this task.


Related issues

Related to Pulp - Refactor #3074: Move sync logic from models to tasksCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Copied to File Support - Refactor #3296: Move publish logic from Publisher model to a taskCLOSED - CURRENTRELEASE

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

Associated revisions

History

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

  • Related to Refactor #3074: Move sync logic from models to tasks added

#2 Updated by amacdona@redhat.com about 4 years ago

  • Project changed from Pulp to File Support

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

  • Description updated (diff)

#4 Updated by amacdona@redhat.com about 4 years ago

  • Sprint Candidate changed from No to Yes
  • Tags Pulp 3 added

#5 Updated by amacdona@redhat.com about 4 years ago

  • Description updated (diff)

#6 Updated by amacdona@redhat.com about 4 years ago

  • Description updated (diff)

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

  • Description updated (diff)

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

  • Sprint/Milestone set to 53
  • Groomed changed from No to Yes

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

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

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

  • Parent task set to #3209

#11 Updated by amacdona@redhat.com about 4 years ago

  • Status changed from ASSIGNED to POST

#12 Updated by amacdona@redhat.com about 4 years ago

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

#13 Updated by amacdona@redhat.com about 4 years ago

  • Copied to Refactor #3296: Move publish logic from Publisher model to a task added

#14 Updated by bmbouter almost 4 years ago

  • Sprint set to Sprint 31

#15 Updated by bmbouter almost 4 years ago

  • Sprint/Milestone deleted (53)

#16 Updated by bmbouter over 2 years ago

  • Tags deleted (Pulp 3)

#17 Updated by bmbouter about 2 years ago

  • Sprint/Milestone set to 0.1.0

#18 Updated by bmbouter about 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF