Skip to content

Commit

Permalink
Merge main to dev (#5068)
Browse files Browse the repository at this point in the history
Co-authored-by: Joey Orlando <[email protected]>
Co-authored-by: GitHub Actions <[email protected]>
Co-authored-by: Joey Orlando <[email protected]>
Co-authored-by: Matias Bordese <[email protected]>
Co-authored-by: Vadim Stepanov <[email protected]>
Co-authored-by: Dominik Broj <[email protected]>
Co-authored-by: Michael Derynck <[email protected]>
Co-authored-by: Innokentii Konstantinov <[email protected]>
Co-authored-by: Ildar Iskhakov <[email protected]>
  • Loading branch information
10 people authored Sep 24, 2024
1 parent 7586b04 commit fc58aaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions engine/apps/api/views/alert_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ def get_queryset(self, ignore_filtering_by_available_teams=False):
alert_receive_channels_ids = list(alert_receive_channels_qs.values_list("id", flat=True))
queryset = AlertGroup.objects.filter(channel__in=alert_receive_channels_ids)

# This is a quick fix to speed up requests from mobile app by adding default `started_at` filter value
if not self.request.query_params.get("started_at"):
queryset = queryset.filter(started_at__gte=timezone.now() - timezone.timedelta(days=30))

if self.action in ("list", "stats") and settings.ALERT_GROUPS_DISABLE_PREFER_ORDERING_INDEX:
# workaround related to MySQL "ORDER BY LIMIT Query Optimizer Bug"
# read more: https://hackmysql.com/infamous-order-by-limit-query-optimizer-bug/
Expand Down
4 changes: 2 additions & 2 deletions helm/oncall/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: oncall
description: Developer-friendly incident response with brilliant Slack integration
type: application
version: 1.9.22
appVersion: v1.9.22
version: 1.9.27
appVersion: v1.9.27
dependencies:
- name: cert-manager
version: v1.8.0
Expand Down

0 comments on commit fc58aaa

Please sign in to comment.