oncall-engine/engine/apps
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
..
alerts Fix the cause of retry of notify_all and notify_group tasks (#1376) 2023-02-23 09:28:13 +00:00
api Refactor maintenance (#1340) 2023-02-23 07:13:03 +00:00
api_for_grafana_incident Include alert details in Grafana Incident alert-group endpoint (#1280) 2023-02-03 13:43:21 +00:00
auth_token Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
base Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
email Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
grafana_plugin Refactor plugin sync (#1200) 2023-01-25 09:12:08 +08:00
heartbeat Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
integrations Cleanup ScenarioStep (#1213) 2023-02-21 20:22:11 +01:00
mobile_app Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
oss_installation Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
public_api PD migrator: migrate on-call shifts using public API (#1317) 2023-02-23 11:34:03 +00:00
schedules Revert "Revert "Rework schedules cached ical file values"" (#1382) 2023-02-22 07:30:19 +01:00
slack Refactor maintenance (#1340) 2023-02-23 07:13:03 +00:00
social_auth Rework slack login to check backend before redirecting (#1306) 2023-02-08 09:08:18 -03:00
telegram Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
twilioapp Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
user_management Refactor maintenance (#1340) 2023-02-23 07:13:03 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00