Bug 845369 - [RFE] Repo group membership should also take a --repo-id argument
Summary: [RFE] Repo group membership should also take a --repo-id argument
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 2.0.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 42
Assignee: Jay Dobies
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-02 20:02 UTC by Jay Dobies
Modified: 2013-09-09 16:36 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-09 17:07:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Jay Dobies 2012-08-02 20:02:17 UTC
I like the criteria based approach but after using it I think we should offer a shortcut that explicity takes a repo ID. That argument will stuff the ID into the appropriate place and format in the criteria, but it makes the CLI a bit cleaner.

For instance, I went to add a single repo to a group:

$ pulp-admin repo group members add --group-id comics --str-eq "id=avengers"

I think we can offer a simpler shortcut for this:

$ pulp-admin repo group members add --group-id comics --repo-id avengers

The server-side doesn't have to change, the client just takes the ID and adds it to the criteria as appropriate. I also suggest we make this argument allowable to be specified multiple times, that way I can do:

$ pulp-admin repo group members add --group-id comics --repo-id avengers --repo-id jla

I figure in most cases people will want to add a single repo so it might be nice to offer a simpler way of doing that.

Comment 1 Michael Hrivnak 2012-08-27 22:20:11 UTC
Jay, it looks like you already did this in https://github.com/pulp/pulp/commit/907a806

Comment 2 Jay Dobies 2012-11-28 23:17:32 UTC
Mike's right, this was done. Aligning to 2.0 so QE can verify.

Comment 4 Preethi Thomas 2013-01-09 17:07:50 UTC
Pulp v2.0 released


Note You need to log in before you can comment on or make changes to this bug.