commit 4b572e564dcd5d9f8f608caba922f844f24cbc00
Author: Gage Hugo <email address hidden>
Date: Wed Mar 14 18:32:57 2018 -0500
Make tags filter match subset rather than exact
Currently when using the "tags" filter to search projects by tag names,
the filter only matches projects that have an exact match. Projects that
contain the exact tags given, but with additional tags are excluded.
This behavior is not compatible with the use cases defined in both the
keystone[0] and api-wg[1] specs, notibly with the "tags" and "tags-any"
interaction.
This change makes it so that "tags" filtering will be performed by
matching a subset containing given tags against projects, rather than
exact matching. This allows the "tags" and "tags-any" filters to work as
described in both [0] and [1].
Reviewed: https:/ /review. openstack. org/553108 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=4b572e564dc d5d9f8f608caba9 22f844f24cbc00
Committed: https:/
Submitter: Zuul
Branch: master
commit 4b572e564dcd5d9 f8f608caba922f8 44f24cbc00
Author: Gage Hugo <email address hidden>
Date: Wed Mar 14 18:32:57 2018 -0500
Make tags filter match subset rather than exact
Currently when using the "tags" filter to search projects by tag names,
the filter only matches projects that have an exact match. Projects that
contain the exact tags given, but with additional tags are excluded.
This behavior is not compatible with the use cases defined in both the
keystone[0] and api-wg[1] specs, notibly with the "tags" and "tags-any"
interaction.
This change makes it so that "tags" filtering will be performed by
matching a subset containing given tags against projects, rather than
exact matching. This allows the "tags" and "tags-any" filters to work as
described in both [0] and [1].
[0] https:/ /specs. openstack. org/openstack/ keystone- specs/specs/ keystone/ queens/ project- tags.html /specs. openstack. org/openstack/ api-wg/ guidelines/ tags.html# filtering- and-searching- by-tags
[1] https:/
Co-Authored By: Nicolas Helgeson <email address hidden>
Closes-Bug: #1756190 be0a59dc5928a6c 036eeca6051
Change-Id: I632efdf0af2969