Bug 991259

Summary: Pressing "Enter" in Search entry in Manage User should start searching, not editing the first user in the user list
Product: [Retired] Zanata Reporter: Ding-Yi Chen <dchen>
Component: Component-UIAssignee: Alex Eng <aeng>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.0CC: zanata-bugs
Target Milestone: ---   
Target Release: 3.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.5.0-SNAPSHOT (git-server-3.4.1-203-gf35c8bc) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-26 23:28:06 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:
Embargoed:

Description Ding-Yi Chen 2013-08-02 02:27:25 UTC
Description of problem:
In the search username field of Manage user view, the expected behavior of pressing Enter is start searching with the search term and the user list should be filtered by the search term.

However, the actual behavior is editing the first user in the user list, even before the user list is properly filtered. Depending on when the "Enter" is pressed, you may get:

1. If Enter is pressed before the user list filtered, the first user in the user list, even if unrelated to search term, will be show in edit view.

2. If Enter is pressed after the user list filtered, the first user in the filtered user list, will be show in edit view.

2. If Enter is pressed during the filtering of user list, Error message: "Unexpected error" is shown.

Version-Release number of selected component (if applicable):
Zanata version 3.0.0-alpha-2-SNAPSHOT (20130730-0037)

How reproducible:
Always. Easier to reproduce on the system with many users.

Steps to Reproduce:
1. Sign in as the user with admin role.
2. Navigate to Manage User view ( More-> Administrator -> Manage User)
3. Type a search term that does not match the first user, and quickly press enter.


Actual results:
1. If Enter is pressed before the user list filtered, the first user in the user list, even if unrelated to search term, will be show in edit view.

2. If Enter is pressed after the user list filtered, the first user in the filtered user list, will be show in edit view.

2. If Enter is pressed during the filtering of user list, Error message: "Unexpected error" is shown.


Expected results:
Just perform search, do not edit the user.


Additional info:

Comment 1 Alex Eng 2014-07-04 04:22:24 UTC
Pull request:
https://github.com/zanata/zanata-server/pull/523

Comment 2 Ding-Yi Chen 2014-07-04 05:52:54 UTC
VERIFIED with Zanata 3.5.0-SNAPSHOT (git-server-3.4.1-203-gf35c8bc)