[Wikidata-bugs] [Maniphest] [Commented On] T222021: pywikibot's interwikidata.py can't handle projects where the API-reported wikiID differs from the project's globalID

2019-04-27 Thread Dvorapa
Dvorapa added a comment. Okay, now I see it more clearly and I'm more confident in recommending what I said above: In T222021#5142109 , @Dvorapa wrote: > a) add a Uncy family file into the Pywikibot library, where you can rewrite t

[Wikidata-bugs] [Maniphest] [Commented On] T222021: pywikibot's interwikidata.py can't handle projects where the API-reported wikiID differs from the project's globalID

2019-04-27 Thread Dvorapa
Dvorapa added a comment. And I also recommend to link dbName docstring to MediaWiki GlobalID too. TASK DETAIL https://phabricator.wikimedia.org/T222021 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Dvorapa, Aklapper, revi, pywikibot-

[Wikidata-bugs] [Maniphest] [Commented On] T222021: pywikibot's interwikidata.py can't handle projects where the API-reported wikiID differs from the project's globalID

2019-04-27 Thread Carlb
Carlb added a comment. WikiID is useful internally, within that one MediaWiki instance, as it's unique within one database server. It's not useful to an external process (such as interwikidata.py) which has no direct connection to the SQL database. It looks best, for this application, to

[Wikidata-bugs] [Maniphest] [Commented On] T222021: pywikibot's interwikidata.py can't handle projects where the API-reported wikiID differs from the project's globalID

2019-04-27 Thread Dvorapa
Dvorapa added a comment. So it seems Pywikibot has no option to get GlobalID? Then the only option is to presume it is same as wikiID and allow users to specify it (rewrite it) in the family file. What's wikiID good for anyway? TASK DETAIL https://phabricator.wikimedia.org/T222021 EMAIL P

[Wikidata-bugs] [Maniphest] [Commented On] T222021: pywikibot's interwikidata.py can't handle projects where the API-reported wikiID differs from the project's globalID

2019-04-27 Thread Carlb
Carlb added a comment. T221550 says that there is no GlobalID available from API because there is no support for GlobalID in the core code. According to that task, "Anomie: As far as MediaWiki-API is concerned, this is blocked on someone movin

[Wikidata-bugs] [Maniphest] [Commented On] T222021: pywikibot's interwikidata.py can't handle projects where the API-reported wikiID differs from the project's globalID

2019-04-27 Thread Dvorapa
Dvorapa added a comment. Okay, what is the way to get GlobalID from API? TASK DETAIL https://phabricator.wikimedia.org/T222021 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Dvorapa, Aklapper, revi, pywikibot-bugs-list, Carlb, alaa_wm

[Wikidata-bugs] [Maniphest] [Commented On] T222021: pywikibot's interwikidata.py can't handle projects where the API-reported wikiID differs from the project's globalID

2019-04-27 Thread Carlb
Carlb added a comment. Yes. Pywikibot blindly trusts that whatever wikiID is supplied by the remote wiki's API is indeed going to exactly match the GlobalID. That may well be true at WMF, but a third-party wiki could be naming their local server's databases just about anything. TASK DET

[Wikidata-bugs] [Maniphest] [Commented On] T222021: pywikibot's interwikidata.py can't handle projects where the API-reported wikiID differs from the project's globalID

2019-04-27 Thread Carlb
Carlb added a comment. The GlobalID is the name of the wiki, as it appears in Wikidata. For instance, "enwiki" is the English-language Wikipedia. A Wikidata entry with the individual GlobalID for each wiki looks like https://www.wikidata.org/wiki/Q2736 Wikipedia (204 entries):

[Wikidata-bugs] [Maniphest] [Commented On] T222021: pywikibot's interwikidata.py can't handle projects where the API-reported wikiID differs from the project's globalID

2019-04-27 Thread Dvorapa
Dvorapa added a comment. Okay, I'm not sure if I understand it correctly, I also don't really know, what GlobalID and wikiID is and what's the difference between them (could you please explain briefly?). From Pywikibot side, we can do two things I think: a) add a Uncy family file into the Py