Merge "Update query cinder resources filter by changes-since to new"

This commit is contained in:
Zuul 2019-01-08 20:53:56 +00:00 committed by Gerrit Code Review
commit e161da5fe6
1 changed files with 12 additions and 9 deletions

View File

@ -11,7 +11,8 @@ Support to query cinder resources filter by changes-since
https://blueprints.launchpad.net/cinder/+spec/support-to-query-cinder-resources-filter-by-change-since https://blueprints.launchpad.net/cinder/+spec/support-to-query-cinder-resources-filter-by-change-since
Support users can query resources by specifying the time that resources Support users can query resources by specifying the time that resources
are changed since, and cinder will return the all which matches condition. are changed since or/and changed from before, and cinder will return the all
which matches condition.
Problem description Problem description
=================== ===================
@ -37,9 +38,10 @@ all resources every time to see which was changed.
Proposed change Proposed change
=============== ===============
* Introduce a new changes-since filter for retrieving resources. It * Introduce two new changes-since and changes-from-before filters for
accepts a timestamp and projects will return resources whose update_at fields retrieving resources. It accepts one or two timestamps and projects will
are later than this timestamp. return resources whose update_at fields are later than or earlier than those
timestamps.
Alternatives Alternatives
@ -58,10 +60,11 @@ None
REST API impact REST API impact
--------------- ---------------
List API will accept new query string parameter changes-since. Users can pass List API will accept new query string parameters changes-since or/and
time to the list API url to retrieve resources operated since a specific time. changes-from-before. User can pass time to the list API url to retrieve
resources operated since or from before a specific time.
* GET /v3/{project_id}/volumes/{detail}?changes-since=2016-01-01T01:00:00 * GET /v3/{project_id}/volumes/{detail}?changes-since=2016-01-01T01:00:00&changes-from-before=2016-12-01T01:00:00
Security impact Security impact
--------------- ---------------
@ -105,7 +108,7 @@ Assignee(s)
----------- -----------
Primary assignee: Primary assignee:
wanghao<wanghao749@huawei.com> wanghao<sxmatch1986@gmail.com>
Work Items Work Items
@ -125,7 +128,7 @@ None
Testing Testing
======= =======
1. Unit test to test if changes-since filter can be correctly applied. 1. Unit test to test if those filters can be correctly applied.
2. Tempest test if change filter work correctly from API perspective. 2. Tempest test if change filter work correctly from API perspective.
Documentation Impact Documentation Impact