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.
Created from redmine issue https://projects.theforeman.org/issues/36220
Upstream bug assigned to None
Hi Samir, Can you provide some reproducer steps and what the user sees when this occurs? Thanks!
Upstream bug assigned to jlenz
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
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36220 has been resolved.
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
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
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