Page MenuHomePhabricator

Replace 2021 board election hack with proper fix
Closed, ResolvedPublic

Description

In https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/709247 I added the following dirty hack, which hard-coded the wikis without securepoll to the codebase.

// TODO: Implement this properly and get rid of this hack
// SecurePoll is not installed on these
if ( $dbname == 'labtestwiki' || $dbname == 'labswiki' || $dbname == 'loginwiki' ) {
	continue;
}

It was added ~36 hours before the scheduled start of the election (it was later delayed) in order to fix T287780#7250890.

A proper fix should be implemented.

Event Timeline

Would this need to be implemented again for 2022?

This has never been removed from the codebase, see https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/SecurePoll/+/refs/heads/master/includes/Store/FormStore.php#343.

Otherwise it would have already fataled when you try to create a election.

jrbs triaged this task as High priority.Sep 23 2022, 10:15 PM

Change 854528 had a related patch set uploaded (by Pavlo Yashchenko; author: Pavlo Yashchenko):

[mediawiki/extensions/SecurePoll@master] Add wikis without SecurePoll to global config

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

Evaluation:

Simple change, low risk. few days

Change 1008997 had a related patch set uploaded (by Reedy; author: Reedy):

[operations/mediawiki-config@master] CommonSettings: Add $wgSecurePollExcludedWikis

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

Change 1008997 merged by jenkins-bot:

[operations/mediawiki-config@master] CommonSettings: Add $wgSecurePollExcludedWikis

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

Mentioned in SAL (#wikimedia-operations) [2024-03-14T19:14:10Z] <reedy@deploy2002> Synchronized wmf-config/CommonSettings.php: T303135 (duration: 12m 24s)

Change 854528 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] Add $wgSecurePollExcludedWikis to exclude wikis from $wgConf->getLocalDatabases()

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

Change 1010935 had a related patch set uploaded (by Reedy; author: Pavlo Yashchenko):

[mediawiki/extensions/SecurePoll@REL1_41] Add $wgSecurePollExcludedWikis to exclude wikis from $wgConf->getLocalDatabases()

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

Change 1010936 had a related patch set uploaded (by Reedy; author: Pavlo Yashchenko):

[mediawiki/extensions/SecurePoll@REL1_40] Add $wgSecurePollExcludedWikis to exclude wikis from $wgConf->getLocalDatabases()

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

Change 1010937 had a related patch set uploaded (by Reedy; author: Pavlo Yashchenko):

[mediawiki/extensions/SecurePoll@REL1_39] Add $wgSecurePollExcludedWikis to exclude wikis from $wgConf->getLocalDatabases()

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

Reedy reassigned this task from STran to pyashchenko.
Reedy added a subscriber: STran.

Change 1010936 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@REL1_40] Add $wgSecurePollExcludedWikis to exclude wikis from $wgConf->getLocalDatabases()

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

Change 1010935 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@REL1_41] Add $wgSecurePollExcludedWikis to exclude wikis from $wgConf->getLocalDatabases()

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

Change 1010937 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@REL1_39] Add $wgSecurePollExcludedWikis to exclude wikis from $wgConf->getLocalDatabases()

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