Page MenuHomePhabricator

Movepages.py does not ask for admin account
Closed, DeclinedPublic

Description

When I want to move pages, and the bot has insufficient rights, it throws an error instead of offering the use of my admin account as other scripts.

I found this in compat, but nobody answered it would be obsolete in core.
https://lists.wikimedia.org/pipermail/pywikibot/2016-September/009582.html

Event Timeline

binbot created this task.Sep 12 2016, 12:21 PM
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptSep 12 2016, 12:21 PM
Xqt lowered the priority of this task from Normal to Lowest.Sep 12 2016, 12:38 PM
Xqt removed a project: Pywikibot.
Xqt added a subscriber: Xqt.

I guess this is related to compat only because the site.movepage method has a must_be decorator which login with sysop account when needed. But the "move" permission is still required.

You may use -user option to forecast using your sysop account.

Thank you. You are basically right, but I would prefer not to use -user if the majority of pages can be treated as bot (for keeping recent changes readable).

Xqt added a comment.Sep 12 2016, 1:16 PM

For core there is an improvement in process, see T71283 and 5e2b74cbd8a098c57c3ea81. The last one should replace the user/sysop functionality by a need_right functionality.

Anyway -user is a proper way until your feature request will be implemented in compat. But I don't believe that is comes for compat (soon)? except you do it yourself ;)

Xqt closed this task as Declined.Nov 20 2016, 4:14 PM

Declined due to decommission compat