oncall-engine/engine/apps/api
Vadim Stepanov 4c31ede558
Add "used in escalation" filter for schedules internal API (#1425)
# What this PR does
Adds a `used` filter on schedules endpoint for internal API.

Usage:
- `?used=true` returns schedules that are referenced by at least one
escalation policy
- `?used=false` returns schedules that are NOT referenced
- `?used=null` or not providing the query param at all will return all
schedules
## Which issue(s) this PR fixes
https://github.com/grafana/oncall/issues/1423

## Checklist

- [x] Tests updated
2023-03-01 10:09:07 +00:00
..
permissions optimize GET /schedules internal API endpoint (#1169) 2023-01-25 11:08:09 +01:00
serializers Fix of templates api behaviour for public and private api (#1408) 2023-03-01 16:32:15 +08:00
tests Add "used in escalation" filter for schedules internal API (#1425) 2023-03-01 10:09:07 +00:00
throttlers Add ratelimit for phone number verification (#1354) 2023-02-21 16:47:52 +08:00
views Add "used in escalation" filter for schedules internal API (#1425) 2023-03-01 10:09:07 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
response_renderers.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
urls.py Draft initial logic for user/schedule paging (#1098) 2023-01-17 12:19:08 -03:00