Page MenuHomePhabricator

Introduce a basic STVBallot class [M]
Closed, ResolvedPublic

Description

To begin with, introduce a basic, non-functional class that simply provides wiring for later work. It should extend Ballot.

The class will need to have basic implementations for the abstract methods:

  • getQuestionForm
  • submitQuestion
  • unpackRecord
  • convertScores

...but these shouldn't do anything meaningful yet.

The class should wire up with STVTallier's type in STVBallot::getTallyTypes.

The type should not yet be added to Ballot::ballotTypes.

Class documentation should state that this class is a work in progress.

We should link to the patch that solves this task from the extension documentation, as an example of how to add a new ballot type.

Event Timeline

ARamirez_WMF renamed this task from Introduce a basic STVBallot class to Introduce a basic STVBallot class [M].May 5 2021, 4:22 PM

Change 685646 had a related patch set uploaded (by TsepoThoabala; author: TsepoThoabala):

[mediawiki/extensions/SecurePoll@master] Introduce a basic STVBallot class

https://gerrit.wikimedia.org/r/685646

Change 685646 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] Introduce a basic STVBallot class

https://gerrit.wikimedia.org/r/685646