Project

Profile

Help

Issue #393

closed

unit filters are ignored if type IDs are not specified

Added by dgregor@redhat.com about 9 years ago. Updated almost 4 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.3
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

If you query /pulp/api/v2/repositories/my_repo/search/units/ with

{'criteria': {'fields': {'unit': ['filename']}, 'type_ids': ['rpm'], 'filters': {}}}

you will get results like:

...
u'metadata': {u'_id': u'eb6fa0ea-0bff-4fe6-854b-68364f1bae00',
u'filename': u'abrt-addon-kerneloops-2.1.11-2.el7.x86_64.rpm'},
...

If you omit the type_ids:

{'criteria': {'fields': {'unit': ['filename']}, 'filters': {}}}

you will get results like:

...
u'metadata': {u'_content_type_id': u'rpm',
u'_id': u'eb6fa0ea-0bff-4fe6-854b-68364f1bae00',
u'_last_updated': 1390620260.0,
u'_ns': u'units_rpm',
...

i.e. the fields part of the criteria is ignored and all fields are returned. I believe that this is a bug. If it's intentional, please update the documentation. Thanks.

+ This bug was cloned from Bugzilla Bug #1058956 +

Actions #1

Updated by bmbouter about 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #2

Updated by bmbouter about 5 years ago

  • Severity set to 1. Low

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #3

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added
Actions #4

Updated by bmbouter almost 4 years ago

  • Category deleted (14)

We are removing the 'API' category per open floor discussion June 16, 2020.

Also available in: Atom PDF