Project

Profile

Help

Story #7621

closed

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

Added by daviddavis almost 2 years ago. Updated almost 2 years 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 - CURRENTRELEASEfao89Actions
Related to Ansible Plugin - Story #7670: [EPIC] As a Galaxy V3 api user, I can sync repository metadataCLOSED - CURRENTRELEASE

Actions
Has duplicate Ansible Plugin - Story #7749: As a user, I can copy collectionVersions from one repo to anotherCLOSED - DUPLICATEbmbouter

Actions
Actions #1

Updated by daviddavis almost 2 years ago

  • Description updated (diff)
Actions #2

Updated by daviddavis almost 2 years ago

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

Updated by fao89 almost 2 years ago

  • Sprint/Milestone set to 0.5.0
Actions #4

Updated by fao89 almost 2 years ago

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

Updated by bmbouter almost 2 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bmbouter
Actions #6

Updated by bmbouter almost 2 years ago

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

Added by bmbouter almost 2 years ago

Revision 69b5c966

Adds copy endpoint and task

  • correctly maintains 'deprecated' status from source repo

closes #7621

Actions #7

Updated by bmbouter almost 2 years ago

  • Status changed from ASSIGNED to MODIFIED
  • % Done changed from 0 to 100
Actions #8

Updated by pulpbot almost 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF