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: I1545c165087f80a9fdc9f576114a820ac95be5c5
(cherry picked from commit 80e94ac3dcc8a5ee9100899b43dcb2fae6320aee)
Reviewed: https:/ /review. openstack. org/648174 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=46363697d9a 7ddc7880bf6071e 5d035f3f9aa043
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 46363697d9a7ddc 7880bf6071e5d03 5f3f9aa043
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 e9100899b43dcb2 fae6320aee)
(cherry picked from commit 80e94ac3dcc8a5e