bv2021/populateEditCount.php is backported and deployed and is now running on mwmaint2002. This will insert local edit counts into the bv2021_edits table on each wiki.
Previously, bv2017/voterList.php was used to iterate through all global users, aggregating local edit counts and adding qualified voters to the centralauth.securepoll_lists table. I think this script would be a good candidate for some light refactoring, moving the constants out to command line arguments so that the script doesn't need to be copied and modified for each election. The idea is that I have until populateEditCount.php completes to get that done, which will probably be a few days.
After securepoll_lists is populated, an election can be created with the name of the list in the need-central-list property. This property is not accessible via the web UI.
If populateEditCount.php takes too long, there are couple of optimisation measures that could be used:
- Skipping users with user_editcount = 0. Best if done in large batches along with the actor query.
- Limiting the count to 300 with Database::selectRowCount() instead of SELECT COUNT(*)
But if it's fast enough, any further work on populateEditCount.php would wait until after the election.