Bug 848438

Summary: Content search auto-complete should enable the 'Add' button after typing full content name.
Product: Red Hat Satellite Reporter: Gerhard Stoeckel <gstoecke>
Component: WebUIAssignee: Martin Bacovsky <mbacovsk>
Status: CLOSED UPSTREAM QA Contact: Og Maciel <omaciel>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: bkearney, ckannan, mbacovsk, msuchy, omaciel
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-19 18:14:43 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 Gerhard Stoeckel 2012-08-15 15:21:07 UTC
Description of problem:
Typing the full content name (i.e. product, repo or package) should enable the "Add" button.  Typing a portion of the name and clicking the desired content item in the resulting drop-down should not be *required* to enable the "Add" button.  

This requirement is not intuitive, inconsistent with similar interfaces in other products (e.g. Google search), and makes testing significantly more complex.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Type the full content name into one of the auto-complete inputs.
2. Notice the corresponding "Add" button is still disabled.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 Pavel Pokorny 2012-09-07 14:30:48 UTC
We need newer version of jQuery UI autocomplete (included in converge UI). The response callback which we can use for this was introduced in [1]. With this we would be able to check if returned data contain string which is written in search input and eventually enable the add button.

It can be done also with little monkeypatching but I vote for the update.

[1] https://github.com/jquery/jquery-ui/commit/e7991e33f3c5d20d6efdb18654859175ef5cac68

Comment 3 Pavel Pokorny 2012-09-07 14:40:02 UTC
* response callback will be in jQuery 1.9 which is not stable yet

Comment 4 Martin Bacovsky 2012-10-02 12:09:10 UTC
Merged in PR #622 commit #febb27af8

Comment 6 Mike McCune 2013-09-19 18:14:43 UTC
These bugs have been resolved in upstream projects for a period of months so I'm mass-closing them as CLOSED:UPSTREAM.  If this is a mistake feel free to re-open.