pulp / pulp-cli

https://docs.pulpproject.org/pulp_cli/
GNU General Public License v2.0
36 stars 42 forks source link

Feature: list objects by their associations and/or see "deeper" associations #132

Open ianballou opened 3 years ago

ianballou commented 3 years ago

It would be nice to see object associations without having to search around.

Example: See publications and distributions associated with a repo. For now you have to list the distributions, see what publications are associated, then look at the publication to see what repositories are associated.

Another example in a different direction: list repositories from a publication.

From a Katello developer's perspective, we do this all the time from the Rails console. Pretty much all of the associations you could wish for are there and it really helps with debugging.

mdellweg commented 3 years ago

can you elaborate, how you'd expect such a command to look like? Would it be a bunch of extra options for show ?

ianballou commented 1 year ago

I'm revisiting this since Pulpcon is coming soon. I think perhaps a search query could serve the purpose well.

mchithu commented 1 year ago

Yes, repo/remote/worker name lookup in the task query will help us much.

mdellweg commented 1 year ago

You can search by both worker and used resources of a task. Also there is a task subcommand for repositories. pulp file repository task list --help