Skip to content

[Public API Reform] Is it useful to edit candidate name with history. Should be immutable? #145

@julien-boudry

Description

@julien-boudry

Context

Candidate name can be edited at any time. Full history and checksum are conserved and computed.
It's a really complex mechanism (to understand, for the project code), a source of confusion, and neither is used in practice.

Change vote is also complex but more useful for voting simulations.

Proposal

Candidates objects should be immutable.
Should be coupled with a new API to remove Candidates from an Election, and add Candidates after Vote (also complex actually).

Breaking changes

No more name changes, no more history.

Metadata

Metadata

Assignees

Labels

public api reformMostly breaking change proposal for a better and consitent public apisuggestion

Projects

Status

Ideas

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions