Bug 1081509

Summary: Searching from second or later pages results in showing results of that page, even if there is none, grid doesn't refresh
Product: Red Hat Enterprise Virtualization Manager Reporter: Julio Entrena Perez <jentrena>
Component: ovirt-engine-webadmin-portalAssignee: Nobody <nobody>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: anande, ecohen, gasmith, iheim, jentrena, pablo.iranzo, pnovotny, rbalakri, Rhev-m-bugs, yeylon, ylavi
Target Milestone: ---   
Target Release: 3.6.0   
Hardware: All   
OS: Linux   
Whiteboard: ux
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-26 15:27: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:
Embargoed:
Bug Depends On: 1079915    
Bug Blocks:    

Description Julio Entrena Perez 2014-03-27 13:34:44 UTC
Description of problem:
When using the search bar to search for an item (e.g. a VM) after having scrolled to the second or later pages when more than 100 results exist causes the search to display "No items to display" even when there are matching items to display.

Version-Release number of selected component (if applicable):
3.3.1-0.48.el6ev

How reproducible:
Always

Steps to Reproduce:
1. Navigate to "Virtual Machines" tab and ensure that more than 100 VMs exist.
2. Scroll to the second or later pages (e.g. 101-200).
3. Search for a VM by name using the search bar, e.g. Vms:name=<vm_name>

Actual results:
"No items to display"

Expected results:
Searched for and existing VM is displayed.

Additional info:
"Scrolling back to the first page" (clicking the left arrow) shows the result.
Result should be displayed directly regardless of on which page the user was before committing the search.

Comment 1 Einav Cohen 2014-08-13 20:27:37 UTC
*** Bug 1123358 has been marked as a duplicate of this bug. ***

Comment 2 Einav Cohen 2014-08-13 20:31:49 UTC
@Julio - can you please re-test this on latest RHEV-3.4? there is evidence in duplicate bug 1123358 that this issue is already fixed. 

thanks.

Comment 5 Julio Entrena Perez 2014-08-29 08:38:32 UTC
(In reply to Einav Cohen from comment #2)
> @Julio - can you please re-test this on latest RHEV-3.4? there is evidence
> in duplicate bug 1123358 that this issue is already fixed. 

Thanks Einav, I can confirm that this seems to be working fine on 3.4.0-0.21.el6ev.

Comment 6 Yaniv Lavi 2015-03-12 14:57:29 UTC
Can you try to recreate it on 3.5.0?

Comment 7 Pavel Novotny 2015-03-12 17:02:20 UTC
(In reply to Yaniv Dary from comment #6)
> Can you try to recreate it on 3.5.0?

Cannot reproduce in rhevm-3.5.0-0.31.el6ev and neither in rhevm-3.5.1-0.1.el6ev.

Steps:
1. Have 107 VMs, only the first VM has name starting with 'a'.
2. Go to second page. Pagination info now shows "101/107".
3. Submit search query "Vms: name = a*".

Result:
Search query returns correctly one result. Pagination info is reset to "1/1".

Comment 8 Yaniv Lavi 2015-03-26 15:27:02 UTC
This is resolved on the latest version. 
Please let the customer know.