oncall-engine/engine/apps/public_api/tests
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
test_alert_groups.py Improve alert group deletion API (#3124) 2023-10-05 14:32:40 +01:00
test_alerts.py augment API response pagination attributes (#2471) 2023-07-14 11:19:40 -04:00
test_custom_actions.py Fix action/webhook API not accepting empty/null user (#3094) 2023-10-03 14:33:05 +00:00
test_escalation_chain.py augment API response pagination attributes (#2471) 2023-07-14 11:19:40 -04:00
test_escalation_policies.py Update escalation policies public API to handle new webhooks (#2999) 2023-09-11 10:50:18 -03:00
test_integrations.py AlertManager v2 (#2643) 2023-08-01 12:18:52 +08:00
test_maintenance.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_on_call_shifts.py Update shifts public API to improve web shifts support (#3165) 2023-10-19 17:30:12 +00:00
test_personal_notification_rules.py augment API response pagination attributes (#2471) 2023-07-14 11:19:40 -04:00
test_ratelimit.py Add ratelimit for phone number verification (#1354) 2023-02-21 16:47:52 +08:00
test_resolution_notes.py augment API response pagination attributes (#2471) 2023-07-14 11:19:40 -04:00
test_routes.py Fix channel filter endpoint (#3192) 2023-10-25 12:33:05 +00:00
test_schedule_export.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
test_schedules.py add support for datetime on final_shifts API parameters (#3103) 2023-10-30 12:00:39 +00:00
test_shift_swap.py Notify user when their shift swap request is taken (#2992) 2023-09-07 14:59:54 +00:00
test_slack_channels.py augment API response pagination attributes (#2471) 2023-07-14 11:19:40 -04:00
test_teams.py augment API response pagination attributes (#2471) 2023-07-14 11:19:40 -04:00
test_user_groups.py augment API response pagination attributes (#2471) 2023-07-14 11:19:40 -04:00
test_users.py augment API response pagination attributes (#2471) 2023-07-14 11:19:40 -04:00
test_webhooks.py Add webhook presets (#2996) 2023-09-27 07:22:52 -06:00