Bug 1216209

Summary: Paginator : clicking last button doesn't take you to the last page of a report
Product: Red Hat CloudForms Management Engine Reporter: Nandini Chandra <nachandr>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.4.0CC: cpelland, hkataria, jhardy, mpovolny, nachandr, obarenbo
Target Milestone: GA   
Target Release: 5.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-16 13:00:28 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:
Attachments:
Description Flags
screen shot of report none

Description Nandini Chandra 2015-04-28 18:49:38 UTC
Created attachment 1019839 [details]
screen shot of report

Description of problem:
------------------------
While viewing the records of a report,clicking the 'last' button doesn't always take you to the last page.I've seen this happen when the report has many records.


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


How reproducible:
----------------
Sometimes


Steps to Reproduce:
------------------
1.Queue the 'Guest OS Information - any OS' report.The resulting report on my appliance has 4097 rows.
2.Try to view the report under 'Saved Reports'.Clicking the 'last' button shows rows 81-100 of 4097(See attached screen shot).


Actual results:
--------------
Clicking the last button doesn't always take you to the last page of a record


Expected results:
----------------
Clicking last button should always take you to the last page of a record.


Additional info:
---------------

Comment 2 Nandini Chandra 2015-04-28 18:53:21 UTC
The Actual and Expected results should read:

Actual results:
--------------
Clicking the last button doesn't always take you to the last page of a report.


Expected results:
----------------
Clicking the last button should always take you to the last page of a report.

Comment 3 Milan Zázrivec 2015-05-04 14:54:46 UTC
I'm unable to reproduce the problem -- as described above -- on my
CFME / ManageIQ instance.

Is there perhaps a running CFME instance / database I can look into / use?

Thanks.

Comment 4 Nandini Chandra 2015-05-04 16:32:57 UTC
Milan,

Sure,you could check the Vendor and Guest OS report on my appliance.

Thanks,
Nandini

Comment 6 Milan Zázrivec 2015-05-05 13:01:17 UTC
https://github.com/ManageIQ/manageiq/pull/2839

Comment 7 CFME Bot 2015-05-05 20:10:50 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/a91ae3d39f1ab64e5302fd7ca06b08477091c95e

commit a91ae3d39f1ab64e5302fd7ca06b08477091c95e
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Tue May 5 15:00:09 2015 +0200
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Tue May 5 15:00:09 2015 +0200

    Fix link to last page of saved report paging bar
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1216209

 vmdb/app/views/layouts/_saved_report_paging_bar.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 9 Nandini Chandra 2015-05-12 21:55:21 UTC
Verified in 5.4.0.0.26

Comment 11 errata-xmlrpc 2015-06-16 13:00:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1100.html