Ricordisamoa changed the title from "Port match_images.py and move to scripts repository" to "Port match_images.py to core".
Ricordisamoa edited the task description.
TASK DETAIL
https://phabricator.wikimedia.org/T66871
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: Ricordisamoa
Cc: pywikipedia-bugs, Ladsgroup, valhallasw, Ricordisamoa, jayvdb, droid
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: Pywikibot-Wikidata.
TASK DESCRIPTION
Almost every save related error (in the API) that can happen in wikitext, can also happen in wikibase. However, the pywikibot interface is immature, and doesnt catch APIError and repackage them as SaveRelatedErrors. Probably because the traditional exceptions dont happen as frequently on Wikidata, and the Wikidata community care about quantity over quality at the moment. Also the repo software isnt as mature as the core mediawiki, so it may not yet raise errors when it should.
e.g. SpamfilterError happens when a page is on the Spam-blacklist, which has only three entries.
https://www.wikidata.org/wiki/MediaWiki:Spam-blacklist :
\bgroups\.diigo\.com\b
\btefnut\.grainger\.uiuc\.edu/site/wishlist\b
\bcalabasassmiles\.com\b
LockedPage .. also only three items which can cause this problem
https://www.wikidata.org/w/index.php?title=Special%3AProtectedPages&namespa…
Q5268366, Q16503, Q293130
EditConflict ... here is where wikibase shines - it typically splices together changes from multiple users happening at the same time. But I've found the algorithm merges conflicting changes when it should reject them, so the repo might need to send this exception more frequently.
TASK DETAIL
https://phabricator.wikimedia.org/T86083
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, jayvdb, pywikipedia-bugs
jayvdb added a comment.
In https://phabricator.wikimedia.org/T65539#960071, @Betacommand wrote:
> jayvdb please note that this was addressed within about 10 days, and the task has been closed since
Ah! That makes more sense! I was tricked by @Ricordisamoa 's use of tokens. :/
TASK DETAIL
https://phabricator.wikimedia.org/T65539
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: coren, jayvdb
Cc: pywikipedia-bugs, scfc, Petrb, Betacommand, Ricordisamoa, jayvdb, coren
valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added a project: pywikibot-core.
TASK DESCRIPTION
```
class LiveRCPageGeneratorTestCase(WikimediaDefaultSiteTestCase):
test_length = 10
```
results in
```
File "./tests/pagegenerators_tests.py", line 487, in <module>
class LiveRCPageGeneratorTestCase(WikimediaDefaultSiteTestCase):
File "/home/valhallasw/src/pywikibot-core/tests/aspects.py", line 695, in __new__
if test_func.__code__.co_argcount == 0:
AttributeError: 'int' object has no attribute '__code__'
```
TASK DETAIL
https://phabricator.wikimedia.org/T85660
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: valhallasw
Cc: Aklapper, valhallasw, jayvdb, pywikipedia-bugs
jayvdb added a comment.
In https://phabricator.wikimedia.org/T74206#960161, @Ricordisamoa wrote:
> In https://phabricator.wikimedia.org/T74206#960064, @jayvdb wrote:
>
> > In https://phabricator.wikimedia.org/T74206#959965, @Ricordisamoa wrote:
> >
> > > Which of the features are needed?
> >
> >
> > mwlib or patrol.py ?
>
>
> I mean the use cases for this script on Wikisource.
See the URL in the task description. The compat version was written by me for English Wikisource. It was also used on English Wikipedia, but is no longer needed there. @billinghurst could provide more information about the current need for this on Wikisource, as I am not active on Wikisource atm.
@xZise, it would be simpler to just use the API , maybe with some textlib but I dont think that is necessary. https://en.wikisource.org/wiki/User:JVbot/patrol_whitelist is a pretty simple format, except for the links. mwlib was used because pywikipedia couldnt parse those links properly, and it wouldnt surprise me if we find some bugs still exist in pywikibot wrt the links used in that page. I also wouldnt be surprised if mwparserfromhell also had bugs wrt those links - mwparserfromhell is not very mature. Changing the parser to a new parser would need unit tests to ensure it correctly understands the whitelist page features, and doesnt have odd bugs (and in the case of mwparserfromhell, it could core dump which limits ability to report and resolve the problems).
TASK DETAIL
https://phabricator.wikimedia.org/T74206
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: droid, jayvdb
Cc: pywikipedia-bugs, Billinghurst, Ricordisamoa, jayvdb, XZise, droid