Created attachment 1161439 [details] wrong count of entries Description of problem: Pagination is broken for tables and indexes. When I set pagination=50, then it shows 17 entries...What's worse, that when I list through all the entries then I am not able to see more than 17/50 of all entries. When I set pagination=5, then I see two entries and one second page I see three entries, where first entry is last entry from previous page. On third page I see two entries and so on... Version-Release number of selected component (if applicable): 5.6.0.7 How reproducible: Always Steps to Reproduce: 1. Configure -> Database tab 2. List through Tables/Indexes 3. Actual results: Wrong count of entries displayed Expected results: Count of entries displayed as set in pagination Additional info: screenshot attached.
Fix applied: https://github.com/ManageIQ/manageiq/pull/9328
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/70e33fac85d199533c898ff52ede50df457933a0 commit 70e33fac85d199533c898ff52ede50df457933a0 Author: Greg Piatigorski <gpiatigo> AuthorDate: Tue Jun 21 08:40:15 2016 -0700 Commit: Greg Piatigorski <gpiatigo> CommitDate: Tue Jun 21 14:33:53 2016 -0700 Fixed has_one associations to VmdbMetrics table Applied fixes to has_one associations in VmdbTable and VmdbIndex models to fetch max(latest) performance metric from VmdbMetrics. https://bugzilla.redhat.com/show_bug.cgi?id=1339638 app/models/vmdb_index.rb | 3 ++- app/models/vmdb_table.rb | 3 ++- spec/models/vmdb_index_spec.rb | 7 +++++++ spec/models/vmdb_table_spec.rb | 21 +++++++++++++++++++++ 4 files changed, 32 insertions(+), 2 deletions(-)
Ready for QE.
Verified in 5.7.0.3. Pagination works as expected.
*** Bug 1358442 has been marked as a duplicate of this bug. ***
*** Bug 1212746 has been marked as a duplicate of this bug. ***
*** Bug 1242764 has been marked as a duplicate of this bug. ***