]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add pagination to snapshots
authorGorka Eguileor <geguileo@redhat.com>
Fri, 31 Jul 2015 18:07:30 +0000 (20:07 +0200)
committerGorka Eguileor <geguileo@redhat.com>
Tue, 25 Aug 2015 20:07:46 +0000 (22:07 +0200)
commite0e73a534a892cfce54715c3e9f8c00e4c39f7c4
treecf9681c6ce2e4a78964d743d3798a9c09ed6f06f
parent25d90467b176463b609834ceb5851920896c6975
Add pagination to snapshots

Currently snapshot list does not provide pagination like volume does.

This patch adds pagination for snapshots in the same way that volume
does, using marker, limit, sort_keys and sort_dirs.

DocImpact
APIImpact: Use marker, limit, sort_keys and sort_dirs
Implements: snapshots-and-bakcup-support-pagination-query
Implements: blueprint extend-limit-implementations
Change-Id: I21edac6d29abf7fc2f446111a7d6888db9ab6eba
cinder/api/v2/snapshots.py
cinder/api/views/snapshots.py
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/objects/snapshot.py
cinder/tests/unit/api/v1/stubs.py
cinder/tests/unit/api/v1/test_snapshots.py
cinder/tests/unit/api/v2/stubs.py
cinder/tests/unit/api/v2/test_snapshots.py
cinder/tests/unit/objects/test_snapshot.py
cinder/volume/api.py