oncall-engine/engine/apps
Matias Bordese 845940d9b3
Update alert group search to force index in MySQL (#4731)
Related to https://github.com/grafana/oncall-private/issues/2679

Confirmed the query rewriting works via MySQL query logs (index is also
forced for the stats queries):

`2024-07-24T19:50:59.482751Z 3977 Query SELECT `alerts_alertgroup`.`id`
FROM `alerts_alertgroup` FORCE INDEX (`alert_group_list_index`) WHERE
(`alerts_alertgroup`.`channel_id` IN (13) AND (1) AND
(`alerts_alertgroup`.`public_primary_key` LIKE 'test' OR
`alerts_alertgroup`.`inside_organization_number` LIKE 'test' OR
`alerts_alertgroup`.`web_title_cache` LIKE '%test%') AND
`alerts_alertgroup`.`root_alert_group_id` IS NULL AND
((`alerts_alertgroup`.`silenced` = ('0') AND
`alerts_alertgroup`.`acknowledged` = ('0') AND
`alerts_alertgroup`.`resolved` = ('0')) OR
(`alerts_alertgroup`.`acknowledged` = ('1') AND
`alerts_alertgroup`.`resolved` = ('0'))) AND
`alerts_alertgroup`.`started_at` >= '2024-06-24 19:50:58' AND
`alerts_alertgroup`.`started_at` <= '2024-07-24 19:50:58') ORDER BY
`alerts_alertgroup`.`started_at` DESC LIMIT 26
`

Rewriting will only be applied to the alert group search queries, when
the feature flags are enabled. Dependency was already listed as a
requirement.
2024-07-25 09:21:32 +00:00
..
alerts Fix notification plan builder (#4726) 2024-07-24 15:49:03 +00:00
api Update alert group search to force index in MySQL (#4731) 2024-07-25 09:21:32 +00:00
api_for_grafana_incident add labels in grafana-incident alertgroup endpoint (#4448) 2024-06-25 14:50:55 +00:00
auth_token Google OAuth2 flow + fetch Google Calendar OOO events (#4067) 2024-04-02 14:59:03 -04:00
base patch default user notification policy changes + fix failing e2e test (#4635) 2024-07-09 11:23:53 -04:00
chatops_proxy Fix app redirect (#4725) 2024-07-24 09:59:56 +00:00
email Handle inbound email integration alert getting multiple recipients (#4655) 2024-07-11 12:51:01 +00:00
exotel Add method to send notification bundle by SMS (#4624) 2024-07-16 14:20:16 +00:00
google Update out of office task to not retry on HttpError (#4328) 2024-05-09 16:16:46 +00:00
grafana_plugin Fix bug for incorrect arguments used to invoke cleanup_empty_deleted_integrations (#4707) 2024-07-19 14:32:22 +00:00
heartbeat Improve OpenAPI schema coverage (#3629) 2024-01-12 15:11:22 +00:00
integrations Add tilt button to run pytest, fix local dev config for pytest, minor improvements to til (#3927) 2024-07-09 01:24:18 +00:00
labels Support prescribed labels (#3848) 2024-02-20 14:42:51 +08:00
metrics_exporter Drop stale metrics cache (#4695) 2024-07-17 17:01:04 +00:00
mobile_app rename settings/ci-test.py to settings/ci_test.py (#4391) 2024-05-24 13:55:08 +00:00
oss_installation bump uwsgi to 2.0.26 + Python to 3.12.3 (#4495) 2024-06-10 15:33:37 -04:00
phone_notifications Add method to send notification bundle by SMS (#4624) 2024-07-16 14:20:16 +00:00
public_api don't force create default user notification policies (#4608) 2024-07-05 15:08:17 -04:00
schedules Update schedule events internal API to return default priority level (#4697) 2024-07-18 14:15:58 +00:00
slack Fix /escalate predefined org (#4723) 2024-07-24 10:44:47 +00:00
social_auth Prepare OnCall for Unified Slack App (#4232) 2024-06-03 09:07:10 +00:00
telegram Prepare OnCall for Unified Slack App (#4232) 2024-06-03 09:07:10 +00:00
twilioapp Add method to send notification bundle by SMS (#4624) 2024-07-16 14:20:16 +00:00
user_management patch default user notification policy changes + fix failing e2e test (#4635) 2024-07-09 11:23:53 -04:00
webhooks Add tilt button to run pytest, fix local dev config for pytest, minor improvements to til (#3927) 2024-07-09 01:24:18 +00:00
zvonok Add method to send notification bundle by SMS (#4624) 2024-07-16 14:20:16 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00