Database API does not support pagination
Bug #1658710 reported by
Ian Cordasco
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
craton |
Fix Released
|
High
|
Ian Cordasco |
Bug Description
In order to support REST API pagination the database API needs to support passing around pagination information.
Changed in craton: | |
assignee: | nobody → Ian Cordasco (icordasc) |
importance: | Undecided → High |
status: | New → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/421523 /git.openstack. org/cgit/ openstack/ craton/ commit/ ?id=aad5fd33c35 77a67ebfdaadc36 90b678ba364942
Committed: https:/
Submitter: Jenkins
Branch: master
commit aad5fd33c3577a6 7ebfdaadc3690b6 78ba364942
Author: Ian Cordasco <email address hidden>
Date: Mon Jan 23 08:56:45 2017 -0600
Update dbapi to perform pagination
This takes the first step towards performing and allowing pagination in
Craton's API. It prepared the database APIs to receive the pagination
parameters required to use oslo_db's paginate_query logic.
This also fixes an inconsistency in the /v1/users and /v1/projects calls projects} _get_by_ name were assumed to return single items
where {users,
but were in fact returning lists. These also need pagination applied, so
we have refactored them slightly and added pagination parameters to
those dbapi calls.
Closes-bug: #1658710 implements: bp pagination- of-resources 7e81704f1fc8a8d 8db7a32620e
Partially-
Change-Id: I229de802e8ac35