Merge pull request #1017 from grafana/fix_ag_filtering
Speedup search alertgroup to group alert
This commit is contained in:
commit
7bb4fdfe43
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ class AlertGroupQuerySet(models.QuerySet):
|
|||
# Try to return the last open group
|
||||
# Note that (channel, channel_filter, distinction, is_open_for_grouping) is in unique_together
|
||||
try:
|
||||
return self.get(**search_params, is_open_for_grouping=True), False
|
||||
return self.get(**search_params, is_open_for_grouping__isnull=False), False
|
||||
except self.model.DoesNotExist:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue