opsgenie / opsgenie-configuration-backup

Backup your OpsGenie account's configuration and restore it later
https://opsgenie.com
Apache License 2.0
28 stars 26 forks source link

Bugfix/issue#43 Schedule time restrictions have unstable list order across runs #45

Closed abhisgup-atl closed 4 years ago

abhisgup-atl commented 4 years ago

Why?

See Issue https://github.com/opsgenie/opsgenie-configuration-backup/issues/43

What and How?

In the response returned by GET /v2/schedules API relative ordering of restrictions (for week day time type of time restriction) for a rotation in a schedule is unstable / non-deterministic across runs.

Fix this by sorting the restrictions in configuration backup tool.