Page MenuHomePhabricator

protect.py not filling customized summary
Open, MediumPublic

Description

I received sysop flag to operate a bot account to modify protect status of a list of pages. I tried to use protect.py with a customized option of summary but nothing works. line command was:
python protect.py -links:"Usuário:OTAVIO1981/JXSIC" -edit:autoconfirmed -move:autoconfirmed -summary:"Robô: Alterando nível de proteção, conforme [[Wikipédia:Esplanada/propostas/Restringir proteções a nível administrador (18mar2018)]]"

Event Timeline

From discussing this in IRC it is noteworthy that the workaround of hardcoding options['summary'] = u'Robô: Alterando nível de proteção, conforme [[Wikipédia:Esplanada/propostas/Restringir proteções a nível administrador (18mar2018)]]' in line 260 of protect.py did work.

Change 429431 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [IMPR] protect.py rewritten

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

Xqt triaged this task as Medium priority.

Per @Urbanecm this might happen because of the order of parameters. If summary is used as a first parameter, it somehow works.

Aklapper removed Xqt as the assignee of this task.Mar 13 2022, 7:52 PM
Aklapper added a subscriber: Xqt.

Removing task assignee due to inactivity, as this open task has been assigned for more than two years. See the email sent to the task assignee on February 06th 2022 (and T295729).

Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome.

If this task has been resolved in the meantime, or should not be worked on ("declined"), please update its task status via "Add Action… 🡒 Change Status".

Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator.