From 05fc41828e70e8b64a4cc1464b2f66567a09b788 Mon Sep 17 00:00:00 2001 From: Joey Orlando Date: Mon, 5 Jun 2023 17:30:07 +0200 Subject: [PATCH] exact matching for public_primary_key and (#2098) inside_organization_number on get internal API alert groups endpoint # 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) --- engine/apps/api/views/alert_group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/apps/api/views/alert_group.py b/engine/apps/api/views/alert_group.py index 78fe1447..17ae208e 100644 --- a/engine/apps/api/views/alert_group.py +++ b/engine/apps/api/views/alert_group.py @@ -308,7 +308,7 @@ class AlertGroupView( pagination_class = TwentyFiveCursorPaginator filter_backends = [SearchFilter, AlertGroupFilterBackend] - search_fields = ["public_primary_key", "inside_organization_number", "web_title_cache"] + search_fields = ["=public_primary_key", "=inside_organization_number", "web_title_cache"] filterset_class = AlertGroupFilter