Add filter integrations by type (#2609)
# What this PR does ## Which issue(s) this PR fixes ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [ ] Documentation added (or `pr:no public docs` PR label added if not required) - [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required)
This commit is contained in:
parent
2477859cb6
commit
3ba321cdd8
2 changed files with 8 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
- Allow persisting mobile app's timezone, to allow for more accurate datetime related notifications by @joeyorlando
|
||||
([#2601](https://github.com/grafana/oncall/pull/2601))
|
||||
- Add filter integrations by type ([2609](https://github.com/grafana/oncall/pull/2609))
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ class AlertReceiveChannelView(
|
|||
update_serializer_class = AlertReceiveChannelUpdateSerializer
|
||||
|
||||
filter_backends = [SearchFilter, DjangoFilterBackend]
|
||||
search_fields = ("verbal_name",)
|
||||
search_fields = ("verbal_name", "integration")
|
||||
|
||||
filterset_class = AlertReceiveChannelFilter
|
||||
pagination_class = FifteenPageSizePaginator
|
||||
|
|
@ -284,6 +284,12 @@ class AlertReceiveChannelView(
|
|||
"href": api_root + "teams/",
|
||||
"global": True,
|
||||
},
|
||||
{
|
||||
"name": "integration",
|
||||
"display_name": "Type",
|
||||
"type": "options",
|
||||
"href": api_root + "alert_receive_channels/integration_options/",
|
||||
},
|
||||
]
|
||||
|
||||
if filter_name is not None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue