oncall-engine/engine/apps/public_api
Vadim Stepanov a727450d49
Public API: Acknowledge & Resolve actions (#3108)
# What this PR does

Makes it possible to acknowledge/unacknowledge and resolve/unresolve
alert groups via public API, and makes sure these actions are reflected
properly in the alert group timeline.

## Demo

```bash
curl --request POST \
     --header "Authorization: TOKEN" \
     http://localhost:8080/api/v1/alert_groups/IQMHLV8INB24N/resolve
```

<img width="651" alt="Screenshot 2023-10-04 at 16 05 27"
src="https://github.com/grafana/oncall/assets/20116910/d4e66868-0132-4b6b-95c7-8424fced7c0b">

## Which issue(s) this PR fixes

https://github.com/grafana/oncall/issues/3051

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-10-05 09:46:48 +01:00
..
serializers Fix action/webhook API not accepting empty/null user (#3094) 2023-10-03 14:33:05 +00:00
tests Public API: Acknowledge & Resolve actions (#3108) 2023-10-05 09:46:48 +01:00
throttlers Add ratelimit for phone number verification (#1354) 2023-02-21 16:47:52 +08:00
views Public API: Acknowledge & Resolve actions (#3108) 2023-10-05 09:46:48 +01:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
constants.py Remove demo token related code/logic 2022-06-09 09:16:10 -03:00
custom_renderers.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
helpers.py Improve Slack error handling (#3000) 2023-09-12 09:49:16 +00:00
tf_sync.py Sync users and teams on tf requests (#1180) 2023-01-24 13:44:07 +08:00
urls.py Webhooks Public API (#2790) 2023-08-22 14:05:52 -06:00