oncall-engine/engine/apps/public_api/views
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 First touch on grafana cloud notifications 2022-06-03 19:47:25 +04:00
action.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
alerts.py Optimize alert and alert group public api endpoints, add filter by id (#1274) 2023-02-03 17:05:08 +08:00
escalation_chains.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
escalation_policies.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
incidents.py Revert count query in alert groups internal api endpoint (#1285) 2023-02-03 20:01:46 +08:00
info.py Add info throttler 2022-06-08 18:25:58 +04:00
integrations.py Hide direct paging integrations (#1162) 2023-01-20 13:29:57 +00:00
maintaiable_object_mixin.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
on_call_shifts.py Insight logs (#348) 2022-08-24 12:04:44 +05: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 Fix always error message for cloud notifications 2022-06-09 15:48:43 +04:00
resolution_notes.py Remove demo token related code/logic 2022-06-09 09:16:10 -03:00
routes.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
schedules.py PD migrator: migrate on-call shifts using public API (#1317) 2023-02-23 11:34:03 +00:00
slack_channels.py Cleanup on deletion/archivation of slack channel (#822) 2022-11-16 17:56:05 +08:00
teams.py Sync users and teams on tf requests (#1180) 2023-01-24 13:44:07 +08:00
user_groups.py Remove demo token related code/logic 2022-06-09 09:16:10 -03:00
users.py Sync users and teams on tf requests (#1180) 2023-01-24 13:44:07 +08:00