Page MenuHomePhabricator

SecurePoll: allow user to tally immediately and let user set election admins in the generateTestElection script
Closed, ResolvedPublicBUG REPORT

Description

What is the problem?

At the moment, if you use the generateTestElection.php cli script to upload test data:

  1. You have to wait until the next day to tally the election.
  2. You cannot set the election admins. You have to be an election admin to tally the election (or even see the tally's results).

It would be great if:

  1. The script automatically created the election sometime in the past so it could be tallied immediately.
  2. You could set the election admins when running the script.

Event Timeline

Niharika subscribed.

Agree this would be massively helpful. Joe achieved this by modifying the SQL by hand which is not ideal.

Change 709593 had a related patch set uploaded (by STran; author: STran):

[mediawiki/extensions/SecurePoll@master] Improve generateTestElection.php

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

Change 709593 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] Improve generateTestElection.php

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

Testing on beta, I can now set the admins via the CLI and the election is immediately tallyable.