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:
Ildar Iskhakov 2023-07-21 14:59:05 +08:00 committed by GitHub
parent 2477859cb6
commit 3ba321cdd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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: