Closed JohnMwashuma closed 1 year ago
Very good, this is a long time coming, those 4 field were always a glaring red flag that we need to rearchitect. This approach makes sense to me, one suggestion: can we change Race
to ElectoralRace
throughout? Race ambiguous since it has multiple shared meanings, but ElectoralRace should be very clear
Nice! makes sense.
User story
Currently the tally system supports 3 ballot types and can support new ballot types but with the following constraints:
This is not the desired workflow as it is prone to human errors and a longer feedback loop between the client and the devs. That said, we need a more generic solution that can configurable per deployment and handle a variety of Ballot types without the above mentioned constraints.
Proposed solution
race_type
field on the Ballot Model will be retrieved from the ElectoralRace Model hence this field will be removed from the Ballot model.Acceptance Criteria
Task check list
create_electoral_races
Django management command that will pick the current configured ElectoralRaces and create ElectoralRace objects.create_electoral_races
Django management command. The command can be added to this list.