Open clcollins opened 11 months ago
Partially fixed by #25 - refactors the "waitForSelectedIncidentThenDo" command to be able to handle tea.Cmds. Just need to refactor remaining waitForSelectedIncidentThenX tea.Msgs to the new format and this can be closed.
Multiple flows require waiting for the selected incident to be retrieved from PageDuty before they can continue. Currently they're implemented as separate "waitForSelectedIncidentThenX" tea.Msgs.
It should be possible to implement a single "waitForSelectedIncidentThenDo" msg with an interface in the msg to allow specifying the follow-up action and the necessary data to use to do so. This would simplify the code base and remove multiple
case
statements for the unique tea.Msgs.