Add election state machine
This creates an Election
model with a state machine inside to define an election's states and how they can transition. Once we have this domain model, we can refactor existing code that uses magic strings for states to use the state machine.
There is also an ElectionService
that takes an election ID and a state to transition to, transitions the election, and returns the election with the updated status. This is currently not exposed in the UI.
Edited by Danny Olson