oncall-engine/engine/apps/public_api/serializers
Vadim Stepanov a2eed312f9
PD migrator: migrate on-call shifts using public API (#1317)
Allow PD migrator tool to migrate on-call shifts when migrating
schedules (currently it migrates schedules using PD ICal file):
https://github.com/grafana/oncall/issues/1283.

This PR will allow to select the mode of schedule migration via
`SCHEDULE_MIGRATION_MODE_WEB` env variable (`ical` or `web`). Due to
differences in the scheduling systems of PD and OnCall, it's not always
possible to migrate shifts automatically (migration plan will show any
schedules and layers that can't be migrated).

PD rotations that will be possible to migrate:
- Any rotation without restrictions ("restriction" is a PD term for
describing active periods for rotation)
- Daily rotations with daily restrictions
- Weekly rotations with weekly restrictions
- Some weekly rotations with daily restrictions
- Some daily rotations with weekly restrictions

There will be a separate PR to update the
[instruction](https://github.com/grafana/oncall/tree/dev/tools/pagerduty-migrator#readme)
since this one is pretty huge already.
2023-02-23 11:34:03 +00:00
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
action.py Use common environment for templates 2022-11-05 00:31:51 -06:00
alerts.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
escalation_chains.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
escalation_policies.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
incidents.py Revert count query in alert groups internal api endpoint (#1285) 2023-02-03 20:01:46 +08:00
integrations.py Restore email notifications (#621) 2022-10-19 12:32:56 +01:00
integtration_heartbeat.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
maintenance.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
on_call_shifts.py PD migrator: migrate on-call shifts using public API (#1317) 2023-02-23 11:34:03 +00:00
organizations.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
personal_notification_rules.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
resolution_notes.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
routes.py Add additional validation for route's position field (#831) 2022-11-16 17:55:53 +08:00
schedules_base.py Remove demo token related code/logic 2022-06-09 09:16:10 -03:00
schedules_calendar.py centralize timezone validation + add serializer validation for on call shifts and schedules (#924) 2022-12-01 14:13:39 +01:00
schedules_ical.py World, meet OnCall! 2022-06-03 08:09:47 -06: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 centralize timezone validation + add serializer validation for on call shifts and schedules (#924) 2022-12-01 14:13:39 +01: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