oncall-engine/engine/apps/alerts
Matias Bordese 88f9f118a3
Use partial instead of lambda when queuing ack task (#3134)
Prefer partial since it is the what the [docs
suggests](https://docs.djangoproject.com/en/4.2/topics/db/transactions/#performing-actions-after-commit).
Also because partial is evaluated immediately while lambda is evaluated
at runtime (which may be causing some issues):

```
>>> from functools import partial
>>> def foo(a, b, c):
...   print(a, b, c)
... 
>>> x = 10
>>> bar_partial = partial(foo, 1, 2, x)
>>> bar_lambda = lambda: foo(1, 2, x)
>>> x = 20
>>> bar_partial()
1 2 10
>>> bar_lambda()
1 2 20
```
2023-10-06 18:31:11 +00:00
..
escalation_snapshot Fix escalation step "Notify if num alerts in time window" (#2965) 2023-09-05 10:32:59 +00:00
grafana_alerting_sync_manager Alerting integration use get for receiver key (#2894) 2023-08-29 02:01:45 +00:00
incident_appearance remove some references to amixr (#2698) 2023-08-01 14:22:42 -04:00
incident_log_builder WIP: Direct paging improvements (#3064) 2023-09-28 03:57:49 +00:00
migrations Public API: Acknowledge & Resolve actions (#3108) 2023-10-05 09:46:48 +01:00
models Public API: Acknowledge & Resolve actions (#3108) 2023-10-05 09:46:48 +01:00
tasks Use partial instead of lambda when queuing ack task (#3134) 2023-10-06 18:31:11 +00:00
tests Improve alert group deletion API (#3124) 2023-10-05 14:32:40 +01:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
constants.py Public API: Acknowledge & Resolve actions (#3108) 2023-10-05 09:46:48 +01:00
integration_options_mixin.py AlertManager v2 (#2643) 2023-08-01 12:18:52 +08:00
paging.py Re-enable a few mypy rules + fix existing errors (#2725) 2023-08-03 09:43:03 +00:00
representative.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
signals.py Fix warnings when running backend tests (#2079) 2023-06-06 18:38:00 +00:00
utils.py remove deprecated call_ack_url celery task (#2545) 2023-07-25 02:50:18 -04:00