What
- rename cli/ directory to maintenance/, leaving in place a redirect file so that the cron job still works (gerrit)
- (after July 17, after the above patch rides the train) update modules/profile/manifests/mediawiki/maintenance/purge_securepoll.pp cron job in puppet repo: https://codesearch.wmcloud.org/puppet/?q=SecurePoll%2Fcli%2F&files=&excludeFiles=&repos=
- (weeks or months from now, to allow 3rd party wikis time to notice and fix the deprecation) remove the redirect file, and remove cli/* exception from .phpcs.xml
- https://wikitech.wikimedia.org/wiki/SecurePoll
- replace "cli/" with "maintenance/"
- fix renamed file names: delete -> deletePoll, dump -> dumpElection, import -> importElectionConfiguration, tally -> tallyElection, populateEditCount -> prefix it with that particular election's acronym, e.g. bv2024PopulateEditCount
- https://www.mediawiki.org/wiki/Extension:SecurePoll
- replace "cli/" with "maintenance/"
- fix renamed file names
- "handbook of running global elections" at https://docs.google.com/document/d/1uyaJk5ZA1RWH-iuUFKTZbnG_wwKM-Hw4q8_jQ84N8cA/edit?tab=t.0#heading=h.i7q0oqet2m2n (I don't have access so someone else would need to do it)
- replace "cli/" with "maintenance/"
- fix renamed file names
Why
- so commands such as docker compose exec mediawiki php maintenance/run.php SecurePoll:migrateTallies work correctly and don't give the following error: Script 'SecurePoll:migrateTallies' not found (tried path '/var/www/html/w/extensions/SecurePoll/maintenance/migrateTallies.php' and class 'MediaWiki\Extension\SecurePoll\Maintenance\migrateTallies').