Page MenuHomePhabricator

Introduce a basic STVTallier class [M]
Closed, ResolvedPublic

Description

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

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

  • addVote
  • loadJSONResult
  • getJSONResult
  • getHtmlResult
  • getTextResult
  • finishTally

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

The type should not yet be added to Tallier::tallierTypes.

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 tallier type.

Event Timeline

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

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

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

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

Change 686198 merged by jenkins-bot:

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

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