Project

Profile

Help

Task #3294

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

Update Python plugin to sync with versioned repositories

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

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

100%

Estimated time:
Platform Release:
Target Release - Python:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 32
Quarter:

Description

This task is to:

  1. Create a celery task called `sync` in pulp_python.app.tasks.py
  2. define a POST detail route called sync on PythonImporterViewset 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.PythonImporter.sync. Validation and setting the working directory that used to live in pulpcore.tasks.importer.sync should also be added to this task.

See https://pulp.plan.io/issues/3260 as an example


Related issues

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

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks Python Support - Story #2885: As a User I can Publish Python packages in a way that is consumable by pipMODIFIED

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

Associated revisions

Revision 1575d005 View on GitHub
Added by amacdona@redhat.com over 2 years ago

Update Python sync to work with core changes

Changes include: Move sync from Importer model to task RepositoryVersion context manager WorkingDirectory context manager natural key default to unique_together

fixes #3294

History

#2 Updated by amacdona@redhat.com almost 3 years ago

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

#3 Updated by amacdona@redhat.com almost 3 years ago

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

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

  • Blocks Story #2885: As a User I can Publish Python packages in a way that is consumable by pip added

#5 Updated by dalley almost 3 years ago

  • Tracker changed from Issue to Task
  • Sprint/Milestone set to 53
  • % Done set to 0

#6 Updated by jortel@redhat.com over 2 years ago

  • Sprint/Milestone changed from 53 to 54

#7 Updated by amacdona@redhat.com over 2 years ago

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

#8 Updated by bmbouter over 2 years ago

  • Sprint set to Sprint 32

#9 Updated by bmbouter over 2 years ago

  • Sprint/Milestone deleted (54)

#10 Updated by bmbouter over 1 year ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF