JAnD added a subscriber: JAnD.
JAnD added a comment.
>>! In T57074#820810, @jayvdb wrote:
> Irrespective of whether the commons scripts add interwikis, or the interwiki script uses commons, this type of functionality is essentially the same request, and it is probably a WONTFIX due to Wikidata.
Note: Wikidata are not yet used in Wikibooks, Wikiversity and it seems to be long time before they will be useful for Wiktionary.
TASK DETAIL
https://phabricator.wikimedia.org/T57074
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: JAnD
Cc: pywikipedia-bugs, Ladsgroup, Legoktm, Xqt, Multichill, jayvdb, JAnD
gpaumier added a subscriber: valhallasw.
gpaumier added a comment.
@valhallasw This seems to be working for me. Thank you!
TASK DETAIL
https://phabricator.wikimedia.org/T75151
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: gpaumier
Cc: pywikipedia-bugs, gpaumier, jayvdb, valhallasw
XZise added a subscriber: XZise.
XZise added a comment.
Using mwparserfromhell is not that complicated to include (but unfortunately I don't use compat so I wouldn't be able to test it). Instead of `process_children` the complete text is parsed and then filtered for links using [[http://mwparserfromhell.readthedocs.org/en/latest/api/mwparserfromhell.html…]] (afaik it's not important for patrol.py that the link is a children of something). So in [[http://git.wikimedia.org/blob/pywikibot%2Fcompat.git/master/patrol.py#L225|… 225 and 226]] it's:
```
for link in mwparserfromhell.parse(wikitext).filter_wikilinks():
process_node(link, None)
```
Then `process_node` need to use pywikibot's Link (again I don't know how it works in compat) to parse the text from `link.title` to determine namespace and page title. This would also interpret interwiki links correctly. So if in `process_node` it sets `obj = pywikibot.Link(obj.title, self.site)` it's `obj.title` instead of `obj.target`. The ifs in lines 171 to 173 could be removed as well as the complete else block and `process_children`.
TASK DETAIL
https://phabricator.wikimedia.org/T71980
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: XZise
Cc: pywikipedia-bugs, Ricordisamoa, jayvdb, XZise
jayvdb added a comment.
A quick update: https://gerrit.wikimedia.org/r/#/c/173630/ improved the efficiency of the query generator underneath preloading , so much that it actually removed (hid) some of the preloading bugs.
test_preload_templates is consistently passing on en.wp, test.wd, fr.wikt, however it occasionally fails on ar.wp; usually all platforms fail together. e.g.
https://travis-ci.org/wikimedia/pywikibot-core/builds/42379426https://travis-ci.org/wikimedia/pywikibot-core/builds/42379426
I'm not able to deduce what might be causing those irregular failures; my only (and probably wrong) guess is that the test is finding pages on ar.wp that dont have any templates.
TASK DETAIL
https://phabricator.wikimedia.org/T75461
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb
Cc: pywikipedia-bugs, JAnD, jayvdb, Mpaa, GWicke
jayvdb added a blocking task: T75461: preloading using multiple properties does not work.
TASK DETAIL
https://phabricator.wikimedia.org/T67161
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb
Cc: pywikipedia-bugs, valhallasw, jayvdb
jayvdb created this task.
jayvdb assigned this task to Pietrodn.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: Pywikibot-Wikidata.
jayvdb changed Security from none to none.
TASK DESCRIPTION
Several problems have been identified with using pywikibot with older versions of Wikibase.
1. snaks-order/qualifier-order support, added to pywikibot in https://gerrit.wikimedia.org/r/#/c/125575/
2. wbeditentity claims support, added to Wikibase in https://gerrit.wikimedia.org/r/#/c/81671/
TASK DETAIL
https://phabricator.wikimedia.org/T76833
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: Pietrodn, jayvdb
Cc: Aklapper, jayvdb, pywikipedia-bugs
jayvdb moved this task to Scripts being investigated on the Pywikibot-compat-to-core workboard.
TASK DETAIL
https://phabricator.wikimedia.org/T66835
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb
Cc: pywikipedia-bugs, valhallasw, jayvdb