Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a user, I want to know which distributions some content is in. #2952

Closed
newswangerd opened this issue Jul 8, 2022 · 6 comments · Fixed by #2992
Closed

As a user, I want to know which distributions some content is in. #2952

newswangerd opened this issue Jul 8, 2022 · 6 comments · Fixed by #2992
Assignees

Comments

@newswangerd
Copy link
Contributor

Is your feature request related to a problem? Please describe.
There is currently no easy way for clients to find which distributions provide a specific piece of content.

Describe the solution you'd like
Add a ?content_in= filter to the distributions APIs that allow users to specify a content HREF and get a list of distributions that contain the selected content.

Additional context
This is needed for repository management in galaxy ng.

@mdellweg
Copy link
Member

As this is a query to the Distribution, i'd name the filter like with_content, has_content or serves_content or something like that.

@ipanova
Copy link
Member

ipanova commented Jul 14, 2022

@lubosmj will take a crack at this.

@lubosmj lubosmj self-assigned this Jul 14, 2022
@lubosmj
Copy link
Member

lubosmj commented Jul 14, 2022

Should we close this issue then: #2865 ?

@mdellweg
Copy link
Member

Should we close this issue then: #2865 ?

No, the ask about querying repositories is a separate (and not as obvious) one. We may however cross the distribution off that other issues name.

@lubosmj
Copy link
Member

lubosmj commented Jul 18, 2022

Does it make sense to also allow users to filter distributions by not including specific content? So, in the end, we will support queries like this: distributions?content_in=!/pulp/href/123/.

@ipanova
Copy link
Member

ipanova commented Jul 18, 2022

@lubosmj maybe in the future we will have a usecase for this, and it will be a separate filter, but for now i'd focus getting done distributions?with_content=pulp/href/123/.

lubosmj added a commit to lubosmj/pulpcore that referenced this issue Jul 19, 2022
lubosmj added a commit to lubosmj/pulpcore that referenced this issue Jul 20, 2022
lubosmj added a commit to lubosmj/pulpcore that referenced this issue Jul 20, 2022
lubosmj added a commit to lubosmj/pulpcore that referenced this issue Jul 20, 2022
lubosmj added a commit to lubosmj/pulpcore that referenced this issue Jul 27, 2022
lubosmj added a commit to lubosmj/pulpcore that referenced this issue Jul 28, 2022
lubosmj added a commit to lubosmj/pulpcore that referenced this issue Aug 12, 2022
lubosmj added a commit to lubosmj/pulpcore that referenced this issue Aug 22, 2022
lubosmj added a commit to lubosmj/pulpcore that referenced this issue Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants