Bug 2180954

Summary: Clear search link doesn't work in any tables except maybe Host details
Product: Red Hat Satellite Reporter: Samir Jha <sajha>
Component: Content ViewsAssignee: Jeremy Lenz <jlenz>
Status: CLOSED ERRATA QA Contact: Sam Bible <sbible>
Severity: low Docs Contact:
Priority: medium    
Version: NightlyCC: pcreech, sbible
Target Milestone: 6.14.0Keywords: Triaged
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: 2023-11-08 14:19:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Samir Jha 2023-03-22 17:57:08 UTC
The clearSearch function in Empty states needs to be a prop passed by components.

Today it is set to const clearSearch = useSelector(selectHostDetailsClearSearch); in the common EmptyStateMessage component.

Comment 1 Samir Jha 2023-03-22 17:57:12 UTC
Created from redmine issue https://projects.theforeman.org/issues/36220

Comment 2 Samir Jha 2023-03-22 17:57:14 UTC
Upstream bug assigned to None

Comment 3 Brad Buckingham 2023-03-23 14:14:35 UTC
Hi Samir,

Can you provide some reproducer steps and what the user sees when this occurs?

Thanks!

Comment 5 Bryan Kearney 2023-03-24 16:03:42 UTC
Upstream bug assigned to jlenz

Comment 6 Bryan Kearney 2023-03-24 16:03:44 UTC
Upstream bug assigned to jlenz

Comment 7 Bryan Kearney 2023-03-24 16:03:47 UTC
Upstream bug assigned to jlenz

Comment 8 Bryan Kearney 2023-03-24 16:03:48 UTC
Upstream bug assigned to jlenz

Comment 9 Bryan Kearney 2023-03-24 16:03:55 UTC
Upstream bug assigned to jlenz

Comment 10 Bryan Kearney 2023-03-24 16:03:57 UTC
Upstream bug assigned to jlenz

Comment 11 Jeremy Lenz 2023-03-27 13:18:40 UTC
To reproduce:

1. Perform a search that gets no results on any of the new Host Details or Content View UI pages
2. Click the "Clear search" link

Expected: The search input is cleared and the table is reset to showing all items
Actual: Nothing happens

Comment 12 Bryan Kearney 2023-03-29 00:03:29 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36220 has been resolved.

Comment 13 Sam Bible 2023-07-06 16:28:08 UTC
Tested on: 6.14 - Snap 5

Steps to Reproduce:
1. Perform a search that returns no results on the Host table or Content Views table
2. Clear the searchbox

Expected Results:
The filtered view is cleared, and the table returns to normal

Actual Results:
The filtered view is cleared, and the table returns to normal

Comment 14 Sam Bible 2023-07-06 16:38:40 UTC
Update: Followed the wrong instructions above, here are the actual steps to test this BZ

Tested on: 6.14 - Snap 5

Steps to Reproduce:
1. Perform a search that returns no results in a component that offers you a 'Clear search' link in the table body when no results are found (New Host UI errata, Content Views search)
2. Click the 'Clear search' link

Expected Results:
The filtered view is cleared, and the table returns to normal

Actual Results:
The filtered view is cleared, and the table returns to normal

Comment 17 errata-xmlrpc 2023-11-08 14:19:02 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 (Important: Satellite 6.14 security and bug fix 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-2023:6818