Comment 8 for bug 1756190

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/553108
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=4b572e564dcd5d9f8f608caba922f844f24cbc00
Submitter: Zuul
Branch: master

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].

    [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 <email address hidden>

    Closes-Bug: #1756190
    Change-Id: I632efdf0af2969be0a59dc5928a6c036eeca6051