oncall-engine/engine/apps/public_api/views
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 Webhooks Public API (#2790) 2023-08-22 14:05:52 -06:00
action.py Fix action/webhook API not accepting empty/null user (#3094) 2023-10-03 14:33:05 +00:00
alerts.py Fix alerts order in public api (#2402) 2023-06-29 12:52:30 +00:00
escalation_chains.py make make test command much more robust + address several more backend test warnings (#2115) 2023-06-07 10:51:58 +00:00
escalation_policies.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
incidents.py Improve alert group deletion API (#3124) 2023-10-05 14:32:40 +01:00
info.py Add info throttler 2022-06-08 18:25:58 +04:00
integrations.py Unhide direct paging integration (#2483) 2023-07-13 13:41:31 +08:00
maintaiable_object_mixin.py Make viewset actions more consistent (#2120) 2023-06-07 12:10:53 +00: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 demo token related code/logic 2022-06-09 09:16:10 -03:00
personal_notifications.py Remove auto-recreating logic for UserNotificationPolicy (#414) 2022-08-26 13:46:50 +05:00
phone_notifications.py Phone provider refactoring (#1713) 2023-05-24 06:27:48 +00:00
resolution_notes.py Resolution notes endpoint docs (#2404) 2023-06-29 14:08:21 +00:00
routes.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
schedules.py add support for datetime on final_shifts API parameters (#3103) 2023-10-30 12:00:39 +00:00
shift_swap.py Add shift swaps endpoints to public API (#2775) 2023-08-14 12:26:21 +00:00
slack_channels.py make make test command much more robust + address several more backend test warnings (#2115) 2023-06-07 10:51:58 +00:00
teams.py make make test command much more robust + address several more backend test warnings (#2115) 2023-06-07 10:51:58 +00:00
user_groups.py make make test command much more robust + address several more backend test warnings (#2115) 2023-06-07 10:51:58 +00:00
users.py Make viewset actions more consistent (#2120) 2023-06-07 12:10:53 +00:00
webhooks.py Webhooks Public API (#2790) 2023-08-22 14:05:52 -06:00