You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tags filtering is not returning the expected result through the API #4828
Activity
winem commentedon Feb 22, 2020
I just verified the bug with
in the st2-docker setup.
Curl to retrieve an action with a tag:
Curl with the tag filter:
arm4b commentedon Feb 22, 2020
@winem Thanks for checking this issue! I assigned the respective tags, assuming it's verified bug.
Looks like tag filtering for the actions functionality was added in st2
v2.9via #4219 contribution.winem commentedon Feb 22, 2020
Ok, I was able to nail it down. The issue is that both tags have the same value as indicator:
https://github.com/NikosVlagoidis/st2/blob/3132f6ad72ca9188093b1dc067808efcc19e3d66/st2api/st2api/controllers/v1/actions.py#L61-L65
Therefore, the tag filter just works if the tag value matches the name.
Example to get the task from above:
Merge pull request #4874 from winem/fix/4828-filter-actions-by-tagname