Bug 2180954 - Clear search link doesn't work in any tables except maybe Host details
Summary: Clear search link doesn't work in any tables except maybe Host details
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: Nightly
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: 6.14.0
Assignee: Jeremy Lenz
QA Contact: Sam Bible
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-22 17:57 UTC by Samir Jha
Modified: 2024-02-08 20:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:19:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36220 0 Normal New Clear search link doesn't work in any tables except maybe Host details 2023-03-22 17:57:10 UTC
Red Hat Issue Tracker SAT-16647 0 None None None 2023-05-11 08:41:18 UTC
Red Hat Issue Tracker SAT-17446 0 None None None 2023-05-11 08:41:20 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:19:17 UTC

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


Note You need to log in before you can comment on or make changes to this bug.