Page MenuHomePhabricator

Clean out all "test" elections from votewiki
Closed, ResolvedPublic

Description

Motivation

Votewiki has a lot of test elections in the interface which is confusing for election admins as well as voters. We should clean out the old test elections once they have outlived their usefulness.

Event Timeline

Niharika triaged this task as Medium priority.Aug 4 2021, 4:00 PM
Niharika created this task.

Not sure how this can be done (SecurePoll did not have a delete function for elections in the past). Anyway, as you do this, make sure to also clean out the one title "انتخابات امن آزمایشی برای ویکی‌پدیای فارسی" as that was also a test election.

PS: Given that SecurePoll uses a global entity numbering scheme for elections, questions, etc. and deleting them would make some of the entity values disappear, maybe a good approach is to add an "Archive" feature whereby some elections could be archived and not displayed on Special:SecurePoll by default but could be accessed using some filtering mechanism or through an archive page.

Not sure how this can be done (SecurePoll did not have a delete function for elections in the past). Anyway, as you do this, make sure to also clean out the one title "انتخابات امن آزمایشی برای ویکی‌پدیای فارسی" as that was also a test election.

PS: Given that SecurePoll uses a global entity numbering scheme for elections, questions, etc. and deleting them would make some of the entity values disappear, maybe a good approach is to add an "Archive" feature whereby some elections could be archived and not displayed on Special:SecurePoll by default but could be accessed using some filtering mechanism or through an archive page.

I like that idea!

We discussed this in estimation and proposed archiving so that we don't have to delete anything from the db. Following up on how we would get archiving done, the basic requirements would be:

  • Add an "archive" link to the main securepoll page
  • The link sets a flag that archives the election
  • Only electionadmins should be able to archive/unarchive elections
  • Current elections shouldn't be archivable (should not yet happened elections?)
  • Archived elections shouldn't show on the main page
  • There should be a /archive page showing all the flagged elections
  • Bonus points if there's an "unarchive" feature that unsets that flag

We'll need to audit all routes that a user can take to get to a poll directly and ensure that they fail gracefully when the poll has been archived.

We'll need to audit all routes that a user can take to get to a poll directly and ensure that they fail gracefully when the poll has been archived.

We discussed this and concluded that, provided we only allow polls that have ended to be archived, then this is already done.

Niharika claimed this task.

We decided to archive old elections and there are separate tickets for tracking that work.