Project

Profile

Help

Issue #6859

Filter results seems not to work properly

Added by abrix 4 months ago. Updated 4 months ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Hi,

it seems that the filter does not work as described in the API documentation [1].

Filter results where name matches value

I would expect all RPMs to be filtered with the matching name, e.g. "icingabeat".

$ http --body GET http://localhost:24817/pulp/api/v3/content/rpm/packages/ name="icingabeat"  |jq -r ".count,.results[].name" |head
32027
icinga-boost-base
icinga-boost-base
icinga2-bin
icinga2-bin
icinga2-bin
icingabeat
icinga2-bin
icinga2-bin
icinga2-bin
$ 

Best regards, Alex

[1] https://pulp-rpm.readthedocs.io/en/latest/restapi.html#operation/content_rpm_packages_list

History

#1 Updated by ipanova@redhat.com 4 months ago

Hi Alex, you are not filtering in a proper way. Here is an example

$ http --body GET http://localhost:24817/pulp/api/v3/content/rpm/packages/?name="dog" |jq -r ".count,.results[].name" |head
1
dog

$ http --body GET 'http://localhost:24817/pulp/api/v3/content/rpm/packages/?name=dog&release=1' |jq -r ".count,.results[].name" |head
1
dog


#2 Updated by ipanova@redhat.com 4 months ago

  • Status changed from NEW to CLOSED - NOTABUG

Please register to edit this issue

Also available in: Atom PDF