oncall-engine/engine/apps/public_api/serializers
Nelson c281484f67
add support for datetime on final_shifts API parameters (#3103)
# What this PR does
- Changes the data type from `DateField` to `DateTimeField` on the
`final_shifts` API endpoint
- Accepts either a date or a datetime for the `start_date` and
`end_date` parameters (e.g. 2021-01-01 or 2021-01-01T01:00)
- Datetime granularity is in line with what is configurable on the
schedule i.e. `YYYY-MM-DD hh:mm`
- removes the rounding logic that modifies the query sent on the
database

## Which issue(s) this PR fixes
#3086 

## 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)

---------

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2023-10-30 12:00:39 +00:00
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
action.py Fix action/webhook API not accepting empty/null user (#3094) 2023-10-03 14:33:05 +00:00
alerts.py add several new database columns + emit two new Django signals (#1522) 2023-04-14 09:15:57 +02:00
escalation_chains.py Allow editing assigned team via public api (#1619) 2023-04-05 06:39:30 +00:00
escalation_policies.py Update escalation policies public API to handle new webhooks (#2999) 2023-09-11 10:50:18 -03:00
incidents.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
integrations.py Polish amv2 (#2701) 2023-08-01 13:13:58 +08:00
integtration_heartbeat.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
maintenance.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
on_call_shifts.py Update shifts public API to improve web shifts support (#3165) 2023-10-19 17:30:12 +00:00
organizations.py remove organization maintenance mode + fix integration maintenance mode (#2511) 2023-07-12 16:41:44 -04:00
personal_notification_rules.py Fix duplicate orders on routes and escalation policies (#2568) 2023-07-18 17:17:53 +00:00
resolution_notes.py remove references to AlertGroup.is_archived and AlertGroup.unarchived_objects (#2524) 2023-07-18 11:48:34 +00:00
routes.py Fix channel filter endpoint (#3192) 2023-10-25 12:33:05 +00:00
schedules_base.py add support for datetime on final_shifts API parameters (#3103) 2023-10-30 12:00:39 +00:00
schedules_calendar.py Add schedules enable_web_overrides option to public API (#3062) 2023-09-26 14:04:53 -03:00
schedules_ical.py Update ical schedule creation/update to trigger final schedule refresh (#3156) 2023-10-18 16:41:25 +00:00
schedules_polymorphic.py Initial web schedule model and serializers. Add override shift type. 2022-07-05 12:41:55 -03:00
schedules_web.py shift swap requests model + CRUD endpoints (#2597) 2023-07-21 19:35:19 +00:00
slack_channel.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
teams.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
user_groups.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
users.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
webhooks.py Add webhook presets (#2996) 2023-09-27 07:22:52 -06:00