Bug 2002896

Summary: Incorrect result return when user filter data by name on search page
Product: OpenShift Container Platform Reporter: Xiyun Zhao <xiyuzhao>
Component: Management ConsoleAssignee: Rastislav Wagner <rawagner>
Status: CLOSED ERRATA QA Contact: Siva Reddy <schituku>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.9CC: aos-bugs, kdoberst, mmensahs, rawagner, rorai, schituku, yapei
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-12 04:38:07 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:
Bug Depends On:    
Bug Blocks: 2026553    
Attachments:
Description Flags
Incorrect result on search page
none
Correct result none

Description Xiyun Zhao 2021-09-10 01:05:48 UTC
Created attachment 1821929 [details]
Incorrect result on search page

Created attachment 1821929 [details]
Incorrect result on search page

Description of problem:
When user filters data by name with ‘notext’ value on the search page, the filter result is incorrect, filter option is not to take effect

Version-Release number of selected component (if applicable):
4.9.0-0.nightly-2021-09-09-135648

How reproducible:
Always

Steps to Reproduce:
1. Login OCP as administrator, navigate to Home -> Search page
2. Selected ‘Deployment’ on the Resources dropdown list
3. Change the filter next to the dropdown list of the resources from ‘Label’ to ‘Name’, then input ‘notext’ on the textbox
4. Verify if ‘No Deployments found’ message is returned on Deployments section

Actual results: (Attached snapshot for more information)
4. The filter of ‘notext’ is not to take effect, the data which is not satisfied with the filter is still shown on the page. Compare with the same function on Deployments page, ‘No Deployments found’ message will return when user filters data by name with ‘notext’ value 

Expected results:
4. ‘No Deployments found’ should return

Additional info:

Comment 2 Zac Herman 2021-11-03 16:33:32 UTC
*** Bug 1965399 has been marked as a duplicate of this bug. ***

Comment 4 Zac Herman 2021-11-12 16:47:26 UTC
*** Bug 2022452 has been marked as a duplicate of this bug. ***

Comment 6 Siva Reddy 2021-11-16 23:49:11 UTC
Created attachment 1842213 [details]
Correct result

Cluster-version:
 4.10.0-0.nightly-2021-11-16-135339

Steps to Verify:
1. Login OCP as administrator, navigate to Home -> Search page
2. Selected ‘Deployment’ on the Resources dropdown list
3. Change the filter next to the dropdown list of the resources from ‘Label’ to ‘Name’, then input ‘notext’ on the textbox
4. Verify if ‘No Deployments found’ message is returned on Deployments section

     ‘No Deployments found’ is returned now

Comment 10 errata-xmlrpc 2022-03-12 04:38:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0056