Project

Profile

Help

Story #7621

As a user, I can copy content from one repository to another

Added by daviddavis 2 months ago. Updated about 1 month ago.

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

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Problem

The current repository modify endpoint[0][1] calls the add_remove task[2] which just adds or removes content to a repository. For users copying content between repos, this has been sufficient up until now as content is fully self contained. The problem though is with #7504 we are storing deprecated information per repository. So when content is copied over using the modify endpoint and add_remove task, that information is not being copied.

Solution

Add a copy endpoint similar to the one in pulp_rpm[3]. This endpoint tasks a source repository version, a destination repository, and a set of content to be copied. It calls a new task (copy_content?) with these parameters and copies over the content plus any repository data (ie AnsibleCollectionDeprecated).

[0] https://github.com/pulp/pulp_ansible/blob/f16fefc9350dcec13547961db30b411de6d3c3b5/pulp_ansible/app/viewsets.py#L209

[1] https://github.com/pulp/pulpcore/blob/612611162e0382bbcd5df52b44471e33e5725e7e/pulpcore/plugin/actions.py#L24

[2] https://github.com/pulp/pulpcore/blob/612611162e0382bbcd5df52b44471e33e5725e7e/pulpcore/plugin/actions.py#L54

[3] https://github.com/pulp/pulp_rpm/blob/6b78e365962fdb00c529f455b3882b191bc0615b/pulp_rpm/app/viewsets.py#L253


Related issues

Related to Ansible Plugin - Issue #7504: Set deprecated status on synced collections.CLOSED - CURRENTRELEASE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Related to Ansible Plugin - Story #7670: [EPIC] As a Galaxy V3 api user, I can sync repository metadataNEW

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Has duplicate Ansible Plugin - Story #7749: As a user, I can copy collectionVersions from one repo to anotherCLOSED - DUPLICATE

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

Associated revisions

Revision 69b5c966 View on GitHub
Added by bmbouter about 1 month ago

Adds copy endpoint and task

  • correctly maintains 'deprecated' status from source repo

closes #7621

History

#1 Updated by daviddavis 2 months ago

  • Description updated (diff)

#2 Updated by daviddavis 2 months ago

  • Related to Issue #7504: Set deprecated status on synced collections. added

#3 Updated by fao89 2 months ago

  • Sprint/Milestone set to 0.5.0

#4 Updated by fao89 about 2 months ago

  • Related to Story #7670: [EPIC] As a Galaxy V3 api user, I can sync repository metadata added

#5 Updated by bmbouter about 1 month ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bmbouter

#6 Updated by bmbouter about 1 month ago

  • Has duplicate Story #7749: As a user, I can copy collectionVersions from one repo to another added

#7 Updated by bmbouter about 1 month ago

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

#8 Updated by pulpbot about 1 month ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF