Daviskr added a comment.
If new parameters are added to `LogeventsPageGenerator`, the `reverse` parameter should be added as well.
Also, should the deprecated `LogpagesPageGenerator` be updated as well?
TASK DETAIL
https://phabricator.wikimedia.org/T67192
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Daviskr
Cc: pywikipedia-bugs, valhallasw, Multichill, Ricordisamoa, jayvdb, Liuxinyu970226, Daviskr
jayvdb created this task.
jayvdb claimed this task.
jayvdb added a subscriber: pywikipedia-bugs.
jayvdb added projects: Pywikibot-pagegenerators, pywikibot-redirect.py, Pywikibot-weblinkchecker.py, Pywikibot-Other-scripts, Pywikibot-tests.
TASK DESCRIPTION
Build tests for the current XML page generators in each of
* noreferences.py
* redirect.py
* reflinks.py
* replace.py
* template.py
* weblinkchecker.py
And create a superclass in pagenerators.py to provide the common functionality with unit tests, so that each script only needs to either use filters or subclass the generic XML Page generator to perform the custom behaviour.
TASK DETAIL
https://phabricator.wikimedia.org/T85334
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: Aklapper, pywikipedia-bugs
Multichill created this task.
Multichill added a subscriber: Multichill.
Multichill added projects: pywikibot-core, Pywikibot-Wikidata.
TASK DESCRIPTION
When running a bot I seem to run into this situation about once a day:
Adding instance claim to [[wikidata:Q592478]]
Adding new reference claim to [[wikidata:Q592478]]
ERROR: Detected MediaWiki API exception ReadOnlyError; retrying
WARNING: Waiting 5 seconds before retrying.
Traceback (most recent call last):
File "C:\pywikibot\coredev\viaf_import.py", line 445, in <module>
main()
File "C:\pywikibot\coredev\viaf_import.py", line 440, in main
viafBot.run()
File "C:\pywikibot\coredev\viaf_import.py", line 85, in run
self.addOtherRegistries(personItem, viafid, regdict)
File "C:\pywikibot\coredev\viaf_import.py", line 104, in addOtherRegistries
self.addViafReference(personItem, newclaim, viafid)
File "C:\pywikibot\coredev\viaf_import.py", line 317, in addViafReference
newclaim.addSources([refstated, refurl, refdate])
File "C:\pywikibot\coredev\pywikibot\page.py", line 3881, in addSources
data = self.repo.editSource(self, claims, new=True, **kwargs)
File "C:\pywikibot\coredev\pywikibot\site.py", line 987, in callee
return fn(self, *args, **kwargs)
File "C:\pywikibot\coredev\pywikibot\site.py", line 5369, in editSource
data = req.submit()
File "C:\pywikibot\coredev\pywikibot\data\api.py", line 1071, in submit
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: editconflict: Edit conflict.
<class 'pywikibot.data.api.APIError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
* Bot adds claim (no problem)
* Bot adds reference
* Runs into a ReadOnlyError
* Tries again
* Editconflict
It's a bit weird because it looks like at https://www.wikidata.org/w/index.php?title=Q592478&action=history the reference was added in the first step.
I'll file another bug for the frequent MediaWiki switching to read-only problems. I also encountered that as a user.
TASK DETAIL
https://phabricator.wikimedia.org/T85341
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Multichill
Cc: Aklapper, Multichill, jayvdb, pywikipedia-bugs
murfel created this task.
murfel assigned this task to jayvdb.
murfel added a subscriber: murfel.
murfel added a project: Pywikibot-Wikidata.
TASK DESCRIPTION
pywikibot.exceptions.NoPage: Page [[wikidata:test:Wikidata:List of wikis/python]] doesn't exist.
TASK DETAIL
https://phabricator.wikimedia.org/T85356
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb, murfel
Cc: Aklapper, murfel, pywikipedia-bugs