Pagination of snapshots in not correct

Bug #1804391 reported by Wangliangyu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Wangliangyu

Bug Description

1.Assume we have 6 snapshots s1-s6 and page size is 5.
2.Now we access Project->Volumes->Snapshots, we could see s6-s2 in the first page.
3.Click "Next >>", we could see s1.
4.Click "<< Prev", we could see the s2-s6, instead of s6-s2.
5.Click "Next >>", we could see s5-s1.
6.Click "<< Prev", we could see s6.
7.Now, we found the first page always is s6, and second page always is s5-s1.

Tags: pagination
Wangliangyu (wangly)
Changed in horizon:
status: New → Confirmed
assignee: nobody → Wangliangyu (wangly)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/619698

Changed in horizon:
status: Confirmed → In Progress
Akihiro Motoki (amotoki)
tags: added: pagination
Changed in horizon:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/619698
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=9faf1cd109c2af47e587237e0f01a9e052039e23
Submitter: Zuul
Branch: master

commit 9faf1cd109c2af47e587237e0f01a9e052039e23
Author: Wangliangyu <email address hidden>
Date: Wed Nov 21 18:19:21 2018 +0800

    Fix bug about snapshot pagination

    Now, one page content will be changed after Clicking
    "Next page" or "Prev page" to go back.

    As we know, the order of the list could not be changed
    at will, for one at the beginning or the end is a marker.
    The marker is very importent for pagination.
    So, this commit remove the sort of snapshots and reverse
    the sort of the previous page ones.

    Change-Id: I8d3d0cf4a1e6526bed3055b18741b1cf5d6166ff
    Closes-Bug: #1804391

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 15.0.0.0b2

This issue was fixed in the openstack/horizon 15.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.