Bug 1687164

Summary: API - Errata search for a string without '=' should match against errata id
Product: Red Hat Satellite Reporter: Pavel Moravec <pmoravec>
Component: Errata ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Tasos Papaioannou <tpapaioa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4.2Keywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-13 17:39:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.

Comment 4 Mike McCune 2021-03-11 18:50:54 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in one month's time. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 5 Mike McCune 2021-04-13 17:39:56 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact your Red Hat Account Team. Thank you.