Project

Profile

Help

Story #5398

closed

As a user I can filter Collections by their tags

Added by bmbouter over 4 years ago. Updated over 2 years ago.

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

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Ticket moved to GitHub: "pulp/pulp_ansible/689":https://github.com/pulp/pulp_ansible/issues/689


Background

The Collection model current has a many-to-many relationship with Tags here

Desire

As a user, I can provide tags as a get style parameter similar to existing DRF filtering. Multiple tags specified should be treated as an AND so each collection should only be returned if it contains ALL of them.

Details

This should extend the CollectionVersionFilter here

Also this request was originally implemented by Galaxy here as two queries where the first one returns pks of collections, and then further fitlers the queryset. Note this implementation is an OR while we need an AND.

Galaxy later opened a PR to update their implementation to an AND see here

Also available in: Atom PDF