Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2034551

Summary: Search by name filter could not be cleared
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Management ConsoleAssignee: Rastislav Wagner <rawagner>
Status: CLOSED DEFERRED QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.10CC: jhadvig, kdoberst, rawagner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-09 01:10:15 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:
Attachments:
Description Flags
broken-search.mp4 none

Description Christoph Jerolimov 2021-12-21 09:52:37 UTC
Description of problem:
When the user opens the generic "Search" (in admin or developer perspective) and searches for a specific resource type, selects the name filter, enter something the filter doesn't work as expected.

- In 4.8 the name filter works fine.
- In 4.9 the name filter doesn't filter the search at all.
- In 4.10 the name filter works, except that the case the user resets the input (by removing all characters from the input field or pressing the X on the name filter)

It looks like an edge case of this fix:
- https://bugzilla.redhat.com/show_bug.cgi?id=2002896
- https://github.com/openshift/console/pull/10392
- https://github.com/openshift/console/pull/10553

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

How reproducible:
Always

Steps to Reproduce:
1. Select a project/namespace like default
2. Open search
3. Select a resource type like ConfigMap
4. Switch to name filter and enter something
5. Clear the name filter by removing all characters or pressing the X on the filter

Actual results:
The old search result is still shown.

Expected results:
All entries should be displayed.

Additional info:
When collapsing and expanding a resource all entries are shown again. It might be a filter or a re-rendering issue.

Comment 1 Christoph Jerolimov 2021-12-21 09:54:52 UTC
Created attachment 1847174 [details]
broken-search.mp4

Comment 7 Shiftzilla 2023-03-09 01:10:15 UTC
OpenShift has moved to Jira for its defect tracking! This bug can now be found in the OCPBUGS project in Jira.

https://issues.redhat.com/browse/OCPBUGS-9055