Last modified: 2014-11-08 06:57:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T73115, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71115 - Mark Zhuang wiktionary (za) as obsolete
Mark Zhuang wiktionary (za) as obsolete
Status: PATCH_TO_REVIEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized major
: ---
Assigned To: xqt
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-22 10:40 UTC by JAn Dudík
Modified: 2014-11-08 06:57 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
patch (662 bytes, application/octet-stream)
2014-09-23 11:21 UTC, JAn Dudík
Details

Description JAn Dudík 2014-09-22 10:40:25 UTC
Both compat and core wiktionary_family.py contains 'za' as live language, but this wiktionary is closed for two years
Comment 2 Gerrit Notification Bot 2014-09-22 16:41:24 UTC
Change 161974 had a related patch set uploaded by Xqt:
(bug 71115) Mark Zhuang wiktionary (za) as obsolete

https://gerrit.wikimedia.org/r/161974
Comment 3 Gerrit Notification Bot 2014-09-22 16:43:31 UTC
Change 161976 had a related patch set uploaded by Xqt:
(bug 71115) Mark Zhuang wiktionary (za) as obsolete

https://gerrit.wikimedia.org/r/161976
Comment 4 Gerrit Notification Bot 2014-09-22 17:36:16 UTC
Change 161976 merged by jenkins-bot:
(bug 71115) Mark Zhuang wiktionary (za) as obsolete

https://gerrit.wikimedia.org/r/161976
Comment 5 Gerrit Notification Bot 2014-09-22 20:29:41 UTC
Change 161974 merged by jenkins-bot:
(bug 71115) Mark Zhuang wiktionary (za) as obsolete

https://gerrit.wikimedia.org/r/161974
Comment 6 JAn Dudík 2014-09-23 11:20:33 UTC
Lang code must been removed from self.languages_by_size  too
Comment 7 JAn Dudík 2014-09-23 11:21:13 UTC
Created attachment 16550 [details]
patch
Comment 8 Malafaya 2014-10-03 15:01:47 UTC
I'm getting a fatal "Language za in family wiktionary is obsolete" most of the time a page is getting saved, and it makes it impossible to use the bot. Probably it's because of what Jan is saying. Please correct ASAP.
Comment 9 Gerrit Notification Bot 2014-10-05 15:54:00 UTC
Change 164774 had a related patch set uploaded by Mpaa:
Bug 71115: Mark Zhuang wiktionary (za) as obsolete

https://gerrit.wikimedia.org/r/164774
Comment 10 Gerrit Notification Bot 2014-10-05 15:56:12 UTC
Change 164774 merged by jenkins-bot:
Bug 71115: Mark Zhuang wiktionary (za) as obsolete

https://gerrit.wikimedia.org/r/164774
Comment 11 Mpaa 2014-10-05 16:05:57 UTC
Marked as fixed.
Pls reopen if you see this again.
Comment 12 JAn Dudík 2014-10-06 08:15:42 UTC
Still missing update for compat
Comment 13 Malafaya 2014-10-07 15:21:05 UTC
Committed the changes to git but don't know what to do from here. Does it need somebody's approval?
Comment 14 John Mark Vandenberg 2014-10-07 15:35:29 UTC
(In reply to Malafaya from comment #13)
> Committed the changes to git but don't know what to do from here. Does it
> need somebody's approval?

Next you need to upload them into Gerrit.

http://mediawiki.org/wiki/Gerrit
Comment 15 Gerrit Notification Bot 2014-10-07 16:11:18 UTC
Change 165229 had a related patch set uploaded by Malafaya:
Bug 71115: Mark Zhuang wiktionary (za) as obsolete (compat)

https://gerrit.wikimedia.org/r/165229
Comment 16 Gerrit Notification Bot 2014-10-07 16:22:29 UTC
Change 165229 had a related patch set uploaded by Malafaya:
Bug 71115: Mark Zhuang wiktionary (za) as obsolete

https://gerrit.wikimedia.org/r/165229
Comment 17 Gerrit Notification Bot 2014-10-07 16:25:56 UTC
Change 165229 merged by jenkins-bot:
Bug 71115: Mark Zhuang wiktionary (za) as obsolete

https://gerrit.wikimedia.org/r/165229
Comment 18 Malafaya 2014-10-07 16:37:42 UTC
Fixed. Thanks, John Mark Vandenberg.
Comment 19 Malafaya 2014-11-04 12:11:20 UTC
I'm reopening this because I'm just trying "core" per Mpaa's suggestion.

I'm geting this error in core:

D:\Work\py-core>pwb.py interwiki Categoria:Alemão -family:wiktionary -lang:pt
Retrieving 1 pages from wiktionary:pt.
ERROR: Traceback (most recent call last):
  File "D:\Work\py-core\pywikibot\data\api.py", line 586, in submit
    headers=headers, body=body)
  File "D:\Work\py-core\pywikibot\tools.py", line 559, in wrapper
    return obj(*__args, **__kw)
  File "D:\Work\py-core\pywikibot\comms\http.py", line 232, in request
    host = site.ssl_hostname()
  File "D:\Work\py-core\pywikibot\site.py", line 555, in <lambda>
    f = lambda *args, **kwargs: method(self.code, *args, **kwargs)
  File "D:\Work\py-core\pywikibot\family.py", line 995, in ssl_hostname
    return self.hostname(code)
  File "D:\Work\py-core\pywikibot\family.py", line 991, in hostname
    return self.langs[code]
KeyError: u'za'


'za' Wiktionary has been marked obsolete some time ago.

I manage to "pwb.py login" without any problem.

----
Pywikibot: [ssh] pywikibot-core.git (80350a2, g17, 2014/11/04, 10:19:53, ok)
Release version: 2.0b2
httplib2 version: 0.9
  cacerts: D:\Work\py-core\externals\httplib2\python2\httplib2\cacerts.txt
    certificate test: ok
Python: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
  unicode test: ok
Comment 20 John Mark Vandenberg 2014-11-04 12:41:57 UTC
fwiw, cant reproduce the bug now that it has been removed

https://pt.wiktionary.org/w/index.php?title=Categoria:Alem%C3%A3o&diff=1870669&oldid=1840288
Comment 21 John Mark Vandenberg 2014-11-04 12:44:50 UTC
This causes the bug
$ python pwb.py interwiki Utilizador:John_Vandenberg/test -family:wiktionary -lang:pt
Comment 22 John Mark Vandenberg 2014-11-04 14:41:58 UTC
I think we need to include closed wikis in Family.langs so they are normal Site objects, and use siteinfo['closed'] to where appropriate to dynamically determine 'obsolete', and we'll probably need to modify interwiki a bit.
It is that last part which worries me, as we dont have the ability to set up interwiki test cases (or can test and test2.wikipedia be linked to each other?).
Comment 23 Gerrit Notification Bot 2014-11-04 15:34:39 UTC
Change 170931 had a related patch set uploaded by John Vandenberg:
[WIP] Allow lang links to obsolete sites

https://gerrit.wikimedia.org/r/170931
Comment 24 John Mark Vandenberg 2014-11-04 15:47:32 UTC
The above patch has an intrinsic problem that it doesnt parse the langlink of an obsolete site. (see FIXME in page.py)

I dont know what interwiki does with these langlinks, so I dont know whether the above breaks the algorithms in interwiki - I suspect it might, so testing is needed.  If there are only minor breakages in interwiki, we might be able to work-around the breakages.  If the breakages are large, we'll need to look for another solution.
Comment 25 John Mark Vandenberg 2014-11-08 02:27:25 UTC
Re 'interwiki', I am referring to interwiki.py, which is the main way the end-users interact with interwiki links to closed wikis.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links