Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1687164 - Errata search for a string without '=' should match against errata id
Summary: Errata search for a string without '=' should match against errata id
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: API - Content
Version: 6.4.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Jitendra Yejare
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-10 16:20 UTC by Pavel Moravec
Modified: 2019-03-29 06:48 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Pavel Moravec 2019-03-10 16:20:52 UTC
Description of problem:
WebUI search on errata page for RHSA*, or direct API search like:

curl -X GET -s -k -u admin:secret 'https://$(hostname -f)/katello/api/v2/errata?per_page=10000&search=RHSA*'

returns very few RHSA errata. Despite there are many shown without that filter.

The reason is, the "filter" greps within errata description (I think) and it does not filter based on errata id. That is less intuitive implementation.

I suggest such a search without param=value filter should assume the value is (prefix of) errata id.


Version-Release number of selected component (if applicable):
6.4.2


How reproducible:
100%


Steps to Reproduce:
0. Have some bigger repo synced (e.g. RHEL6 or RHEL7 base repo)
1. curl -X GET -s -k -u admin:secret 'https://$(hostname -f)/katello/api/v2/errata?per_page=10000&search=RHSA*' > rhsa.errata.json
2. python -m json.tool rhsa.errata.json | grep errata_id


Actual results:
2. shows just few errata


Expected results:
2. to show all RHSA errata in katello


Additional info:

Comment 3 Pavel Moravec 2019-03-10 16:23:18 UTC
Of course, one shall use "search=type%3Dsecurity" / type=security filter, but that is less intuitive. Hence this improvement BZ.


Note You need to log in before you can comment on or make changes to this bug.