Bug 1296530

Summary: scoped_search - auto complete - Suggestion box does not reappear after choosing a value from it
Product: Red Hat Satellite Reporter: Roman Plevka <rplevka>
Component: SearchAssignee: Roman Plevka <rplevka>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: NightlyCC: bkearney, tomckay, walden
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/13044
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-13 21:09:02 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:

Description Roman Plevka 2016-01-07 13:00:49 UTC
Description of problem:
While working with katello pages:
After choosing a value from a suggestion box (e.g. a suggested field to filter on) the suggestion box disappears, but does not reappear with the refreshed suggestion (e.g. "name ="). Thus user needs to start 'blindly' typing the rest next part of the query or move the focus out of the search bar and re-focus it again.
Same thing happens on typing a query, then deleting it completely (no suggestion bar on empty search field).

Looking at the behaviour ofForeman search bar, the suggestion box is visible *always* as there is a match.

Version-Release number of selected component (if applicable):
# rpm -qa katello
katello-2.5.0-2.nightly.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. Navigate to any katello entity page (e.g. Products) - preferably create some entities first
2. click (focus) the search bar
3. click any of the suggestions
4. Now, the suggestion bar disappears but it should just reload with new suggestions
5. now try to delete whole query
6. Suggestion box doesn't care either
7. click the button outside the search bar and click into it again (focus it)
8. Suggestion box appears again

- I recommend comparing the behavior with any foreman page search box (e.g. Infrastructure -> Compute profiles)

Actual results:
Suggestion box doesn't reload properly

Expected results:
It should follow the same behavior as the Foreman one

Additional info:

Comment 1 Roman Plevka 2016-01-07 13:16:08 UTC
Created redmine issue http://projects.theforeman.org/issues/13044 from this bug

Comment 2 Bryan Kearney 2016-07-26 19:07:09 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 3 Bryan Kearney 2017-01-13 21:08:00 UTC
This has been fixed in 6.2 with the removal of active search