"tags" query argument filters everything out

Bug #1716648 reported by Xavier Hardy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Medium
Adriano Petrich

Bug Description

curl http://localhost:9000/v2/workflows?fields=id,name&limit=25&tags=test

```
<result><workflows/></result>
```

Even though we have a workflow with only a `test` tag.

Having a list of tags should filter the workflows with at least all of those tags.

description: updated
Dougal Matthews (d0ugal)
Changed in mistral:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → rocky-1
Changed in mistral:
assignee: nobody → Adriano Petrich (apetrich)
Revision history for this message
Dougal Matthews (d0ugal) wrote :
tags: added: low-hanging-fruit
removed: mistral ocata v2
Revision history for this message
Dougal Matthews (d0ugal) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral (master)

Fix proposed to branch: master
Review: https://review.openstack.org/559943

Changed in mistral:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/559943
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=be2bfe744c7f164f1be94d12ff5672cbe4e4d04f
Submitter: Zuul
Branch: master

commit be2bfe744c7f164f1be94d12ff5672cbe4e4d04f
Author: Adriano Petrich <email address hidden>
Date: Tue Apr 10 08:55:02 2018 +0100

    Fix tag searching

    When python-mistralclient filters it passes a dictionary not just the
    string. This clears the dictionary and fix the search parameters into
    lists for multiple tags to be searched if separeted by commas
    like:

    openstack workflow list --filter tags=tripleo-common-managed,foo

    Change-Id: Ie082901fd7eb8b61a6306da1275a79aeb6c4a6de
    Closes-Bug: #1716648

Changed in mistral:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral 7.0.0.0b1

This issue was fixed in the openstack/mistral 7.0.0.0b1 development milestone.

tags: added: tripleo
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on mistral (master)

Change abandoned by Dougal Matthews (<email address hidden>) on branch: master
Review: https://review.openstack.org/505206
Reason: Abandoning this patch per the Mistral Patch Abandonment guidelines
(https://specs.openstack.org/openstack/mistral-specs/specs/policy/patch-abandonment.html).
If you wish to have this restored and cannot do so yourself, please reach
out via #openstack-mistral on freenode or the OpenStack Dev mailing list.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.