1) all_tenants : Restoring to previous functionality of ignoring
invalid filters
2) is_public (volume_type): This filter has the 3 valid values,
* True : show only public volume types (valid for non-admins)
* False : show only private volume types (valid for admins)
* None : show both private and public volume types
Since this filter is valid for admins as well as non-admins,
we can pass this through filtering API to lower level code where
this is handled correctly.
3) name (group, group snapshot): 'name' is a valid parameter for
non-admins while showing a group or group snapshot.
Reviewed: https:/ /review. openstack. org/641717 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=80e94ac3dcc 8a5ee9100899b43 dcb2fae6320aee
Committed: https:/
Submitter: Zuul
Branch: master
commit 80e94ac3dcc8a5e e9100899b43dcb2 fae6320aee
Author: whoami-rajat <email address hidden>
Date: Thu Mar 7 21:58:21 2019 +0530
Handling filters in Generalized Filtering API
This patch handles the following filters :
1) all_tenants : Restoring to previous functionality of ignoring
invalid filters
2) is_public (volume_type): This filter has the 3 valid values,
* True : show only public volume types (valid for non-admins)
* False : show only private volume types (valid for admins)
* None : show both private and public volume types
Since this filter is valid for admins as well as non-admins,
we can pass this through filtering API to lower level code where
this is handled correctly.
3) name (group, group snapshot): 'name' is a valid parameter for
non-admins while showing a group or group snapshot.
Closes-Bug: #1753885
Change-Id: I1545c165087f80 a9fdc9f576114a8 20ac95be5c5