Bug 1498827 - UI/Content Hosts page remembers first search and prevents any further searches
Summary: UI/Content Hosts page remembers first search and prevents any further searches
Keywords:
Status: CLOSED DUPLICATE of bug 1495271
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-05 10:57 UTC by Stanislav Tkachenko
Modified: 2017-10-19 12:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-19 12:23:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Stanislav Tkachenko 2017-10-05 10:57:11 UTC
Description of problem:
After the first search Content Hosts page remembers first search criteria and will use it despite any further criteria changes.

Example:
1. Navigate to Content Hosts page. URL is
https://sat6.com/content_hosts?page=1&per_page=20&sortBy=name&sortOrder=ASC
2. Hit any search, e.g. 'name = x'. Hosts filtered by name, URL is
https://sat6.com/content_hosts?page=1&per_page=20&sortBy=name&sortOrder=ASC&search=name%20%3D%20x
3. Hit another search, e.g. 'subscription_status = valid'. At first it will try to filter by subscription status but then page will be immediately reloaded and filtered by name. URL is
https://sat6.com/content_hosts?page=1&per_page=20&sortBy=name&sortOrder=ASC&search=name%20%3D%20x

Page reload does not help, you need  to navigate to any other page then back to the Content Hosts page to perform another search.

Version-Release number of selected component (if applicable):
Satellite 6.3.0-18:
* satellite-6.3.0-19.0.beta.el7sat.noarch
* katello-3.4.5-3.el7sat.noarch
* foreman-1.15.4.3-1.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. (Optional) Register content host
2. Navigate to Content Hosts page
3. Perform any valid search, check URL and that host is displayed.
4. Perform any non-valid search, check URL, search field and that host still is displayed.

Actual results:
First search criteria is remembered and any further searches have no effect.

Expected results:
Search criteria be updated when it is changed.

Additional info:

Comment 3 Brad Buckingham 2017-10-13 14:36:47 UTC
Is this a duplicate of bug 1495271?

Comment 4 Stanislav Tkachenko 2017-10-19 09:46:00 UTC
(In reply to Brad Buckingham from comment #3)
> Is this a duplicate of bug 1495271?

Yes, indeed, I've missed that while filling this bug.

Comment 5 Brad Buckingham 2017-10-19 12:23:29 UTC

*** This bug has been marked as a duplicate of bug 1495271 ***


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