keystone/releasenotes/notes/bug-1756190-0e5d86d334555931.yaml
Gage Hugo 4b572e564d 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
[1] https://specs.openstack.org/openstack/api-wg/guidelines/tags.html#filtering-and-searching-by-tags

Co-Authored By: Nicolas Helgeson <nh202b@att.com>

Closes-Bug: #1756190
Change-Id: I632efdf0af2969be0a59dc5928a6c036eeca6051
2018-03-27 13:38:47 -05:00

10 lines
452 B
YAML

---
fixes:
- |
[`bug 1756190 <https://bugs.launchpad.net/keystone/+bug/1756190>`_]
When filtering projects based on tags, the filtering will now be performed
by matching a subset containing the given tags against projects, rather
than exact matching. Providing more tags when performing a search will
yield more exact results while less will return any projects that match
the given tags but could contain other tags as well.