Created attachment 913483 [details]
screen - data grid pagination counters
Description of problem:
Data grid pagination info should also include the total count of items, not just starting and ending item numbers. It helps the GUI to be more user-friendly, in comparison to using API just to obtain this information.
For example if we have 350 VMs, the pagination info should show "100-200/350" and not just "100-200" so it's clearly visible how many VMs are present in oVirt. This is applicable for all data grids, not just VMs.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Have more than 100 VMs in the GUI, let's say 350.
2. On the Virtual Machines tab, check if the pagination info includes total count of VMs.
Nope, it shows only starting and ending item number, such as "1-100".
Total count of VMs should be shown there too, e.g. "1-100/350".
See attached screenshot as example.
Requires a backend/api change:
need new queries that will return the total count of items for a certain query (ignoring the requested page number/size), or that the existing search queries will return, as part of the result, *also* the number of items for that query (again, ignoring the requested page number/size).
(In reply to Einav Cohen from comment #1)
> Requires a backend/api change:
> need new queries that will return the total count of items for a certain
> query (ignoring the requested page number/size), or that the existing search
> queries will return, as part of the result, *also* the number of items for
> that query (again, ignoring the requested page number/size).
opened bug 1122125 to track that. this bug depends on bug 1122125.
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.