Registry db api marker implementation does not respect sort_key/sort_dir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Brian Waldon |
Bug Description
Here are all the images in my registry:
curl 'http://
{"images": [{"name": "aki-tty", "container_format": "aki", "disk_format": "aki", "checksum": "3ed2965d3f8d87
I begin pagination with limit=1 with no marker:
curl 'http://
{"images": [{"name": "aki-tty", "container_format": "aki", "disk_format": "aki", "checksum": "3ed2965d3f8d87
To move on to the next page, I should use marker=2. As indicated in the original query, image 3 should be returned. Image 1 is actually returned:
curl 'http://
{"images": [{"name": "ari-tty", "container_format": "ari", "disk_format": "ari", "checksum": "2d222d406f3ed3
Related branches
- Brian Lamar (community): Approve
- Jay Pipes (community): Approve
-
Diff: 58 lines (+32/-5)2 files modifiedglance/registry/db/api.py (+12/-5)
tests/functional/test_httplib2_api.py (+20/-0)
Changed in glance: | |
assignee: | nobody → Brian Waldon (bcwaldon) |
status: | New → In Progress |
Changed in glance: | |
importance: | Undecided → Medium |
milestone: | none → diablo-4 |
Changed in glance: | |
status: | In Progress → Fix Committed |
Changed in glance: | |
milestone: | diablo-4 → 2011.3 |
status: | Fix Committed → Fix Released |