Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1148469

Summary: Pager button for going to the last page in process instance list does not work
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jiri Svitak <jsvitak>
Component: Business CentralAssignee: Neus Miras <nmirasch>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1.0CC: kverlaen, mbaluch, rrajasek
Target Milestone: ER5   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:05:05 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
pager.png
none
The last page button missing none

Description Jiri Svitak 2014-10-01 14:05:17 UTC
Created attachment 943064 [details]
pager.png

Button for going to the last page in process instance list pager does not work. The first three buttons work - skip to the first page, move to the previous page, move to the next page. See the attached screenshot.

Expected behavior:
All pager buttons work correctly.

My env:
BPMS 6.1.0.DR3
EAP 6.3.0
PosgtreSQL 9.3.5
10000 process instances created, including 10000 human tasks

Comment 1 Jiri Svitak 2014-10-01 15:07:06 UTC
The same problem is with human task screen.

Comment 2 Maciej Swiderski 2014-11-17 11:05:04 UTC
Jiri,

this is sort of by design to avoid any performance issues - queries currently will use paging information and return data from db only for given subset to avoid fetching all information. That is actually preventing us from knowing what's the actual number of records found thus we cannot jump to last page. 

So my vote is to do not add additional query to know what is the last page as that would impact performance rather hard with big results set. What might be an alternative is to hide (if possible) the go to last page button.

Functionality wise we do not loose much as we now support proper sorting so we can simply sort desc by id and we have last page on the first.

How does that sound?

Comment 3 Jiri Svitak 2014-11-18 12:45:00 UTC
If it is not possible to implement this behavior for the 'go to the last page' button, then please remove the button. I understand the performance reasons behind this and removal of the button seems to be the best solution here. Otherwise the button, which does nothing, is confusing. Thanks.

Comment 5 Pavel Kralik 2015-02-27 15:36:27 UTC
BPMS 6.1.0.er5 Last page button missing.

Comment 6 Pavel Kralik 2015-02-27 15:37:00 UTC
Created attachment 996096 [details]
The last page button missing

Comment 7 Maciej Swiderski 2015-02-27 15:50:39 UTC
Pavel,

that was the desired solution see comment #3

Comment 8 Neus Miras 2015-03-09 11:03:14 UTC
see comment #7

Comment 9 Pavel Kralik 2015-03-17 10:25:28 UTC
BPMS 6.1.0.ER6