The approveAllPages.php in the Approved Revs extension marks the latest revision of all pages in the wiki as the approved one. Currently, every such approval shows up in the wiki (for example, in Special:RecentChanges) as having been done by localhost, i.e "127.0.0.1". It would be good to add to this script a "-username" option, so that whoever is running the script can specify a user account that is responsible for these approvals (preferably, their own account). Please make sure that this works even for usernames containing spaces.
Description
Details
Related Objects
- Mentioned In
- T301893: Command-line interface (CLI) for Canasta
Event Timeline
Change 770007 had a related patch set uploaded (by Techwizzie; author: Techwizzie):
[mediawiki/extensions/ApprovedRevs@master] Add command line argument for specifying username
Change 770007 abandoned by Techwizzie:
[mediawiki/extensions/ApprovedRevs@master] Add command line argument for specifying username
Reason:
Change 770101 had a related patch set uploaded (by TechieNK; author: TechieNK):
[mediawiki/extensions/ApprovedRevs@master] Added username support for approveAllPages.php
I've made the changes related to formatting, now. Also, it seems that the other two microtasks are already pretty much done by others. Is there some more microtasks available?
Sorry for the misunderstanding - I was wondering what was going on with this. I think the patch still needs to be fixed, to handle a username of "0" and potentially other usernames where the empty() call would return the wrong thing.
Change 770101 merged by jenkins-bot:
[mediawiki/extensions/ApprovedRevs@master] Added username support for approveAllPages.php