Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ Changelog
in development
--------------

2.8.0 - July 05, 2018
Added
~~~~~

* Add new ``?tags``, query param filter to the ``/v1/actions`` API endpoint. This query parameter
allows users to filter out actions based on the tag name . By default, when no filter values are
provided, all actions are returned. (new feature) #4219

2.8.0 - July 10, 2018
---------------------

Added
Expand Down
3 changes: 2 additions & 1 deletion st2api/st2api/controllers/v1/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ class ActionsController(resource.ContentPackResourceController):
access = Action
supported_filters = {
'name': 'name',
'pack': 'pack'
'pack': 'pack',
'tags': 'name'
}

query_options = {
Expand Down
4 changes: 4 additions & 0 deletions st2common/st2common/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ paths:
in: query
description: Action pack name filter
type: string
- name: tags
in: query
description: Action tags name filter
type: string
x-parameters:
- name: user
in: context
Expand Down
4 changes: 4 additions & 0 deletions st2common/st2common/openapi.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ paths:
in: query
description: Action pack name filter
type: string
- name: tags
in: query
description: Action tags name filter
type: string
x-parameters:
- name: user
in: context
Expand Down