Project

Profile

Help

Story #4901

closed

Repository Version creation api should provide an easy way to clear out all units when adding new units

Added by jsherril@redhat.com almost 5 years ago. Updated almost 4 years ago.

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

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Katello
Sprint:
Sprint 54
Quarter:

Description

When creating a new repository version, its very easy to add units or remove units, but if I want to specify some list of units I want the repository version to have, i must first clear out all the existing units which is very cumbersome.

Solution

Allow users to specify ['*'] for remove_content_units. This will let users remove all content units from a repo version. They can also specify add_content_units which will add back units to the empty repo version.

Note that we'll need to change the current logic to add units after removing units. We want to document these behaviors clearly in the docs too.


Related issues

Related to Pulp - Test #4956: As a user, I can clear all units from a new repository versionCLOSED - COMPLETEkersomActions

Also available in: Atom PDF