Recently ran into an unexpected source of confusion with the opsgenie slackbot. Specifically, querying whoisoncall returns the participants in a non-deterministic order, and without the rotation label.
Our setup is fairly simple. We have a single organization, with a single oncall schedule, that includes two rotations (Primary, Secondary).
I see the following via slack, where engineer-1 is primary, and engineer-2 is secondary. This is good.
/genie whoisoncall
Only visible to you #(me)
Oncall Schedules:
my_organization_schedule Participants: engineer-1, engineer-2
However, a peer of mine has observed the following
/genie whoisoncall
Only visible to you #(peer)
Oncall Schedules:
my_organization_schedule Participants: engineer-2, engineer-1
This feels incorrect - either they should be ordered based on rotation ordering, OR, the name of the rotation should be included as follows:
Oncall Schedules:
my_organization_schedule Participants: Secondary: engineer-2, Primary: engineer-1
Question: Has anyone else observed this behavior, or found a solution?