Page MenuHomePhabricator

Add guwwikinews to wikistats
Closed, ResolvedPublic

Description

Please add new wiki guwwikinews to Wikistats, once it is created. Thanks!

Event Timeline

Dzahn changed the task status from Open to Stalled.Apr 11 2023, 6:20 PM
Dzahn claimed this task.

stalled on T334394

Meno25 changed the task status from Stalled to Open.May 1 2023, 7:37 PM
Meno25 subscribed.

Hi, @Dzahn Please add the new wikis. I have the following warning in Pywikibot:

Checking family wikinews:
WARNING: ['guw'] not listed at wikistats

and

Checking family wiktionary:
WARNING: ['kbd'] not listed at wikistats.
Dzahn changed the task status from Open to In Progress.May 1 2023, 9:29 PM
Dzahn triaged this task as High priority.
MariaDB [wikistats]> insert into wikinews (prefix, lang, loclang, method) select prefix,lang,loclang,method from wikipedias where prefix="guw";
MariaDB [wikistats]> insert into wiktionaries (prefix, lang, loclang, method) select prefix,lang,loclang,method from wikipedias where prefix="kbd";
dzahn@wikistats-bullseye:~$ /usr/lib/wikistats/update.php wt prefix kbd
sent query: 'select * from wiktionaries where prefix="kbd"'.
A(1/190) - kbd.wiktionary.org - calling API: https://kbd.wiktionary.org/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=php&maxlag=5
-> http answer: 200 -> parsing answer: 0
getting version for https://kbd.wiktionary.org/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=php&maxlag=5---> OK - total: 20434 good: 1873 edits: 64272 users: 86 active users: 8 admins: 1 images: 0
---> update wiktionaries set total="20434",good="1873",edits="64272",users="86",activeusers="8",admins="1",images="0",http="200",si_generator="MediaWiki 1.41.0-wmf.6",ts=NOW() where id="458";
dzahn@wikistats-bullseye:~$ /usr/lib/wikistats/update.php wn prefix guw
sent query: 'select * from wikinews where prefix="guw"'.
A(1/35) - guw.wikinews.org - calling API: https://guw.wikinews.org/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=php&maxlag=5
-> http answer: 200 -> parsing answer: 0
getting version for https://guw.wikinews.org/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=php&maxlag=5---> OK - total: 1401 good: 841 edits: 16957 users: 67 active users: 11 admins: 2 images: 0
---> update wikinews set total="1401",good="841",edits="16957",users="67",activeusers="11",admins="2",images="0",http="200",si_generator="MediaWiki 1.41.0-wmf.6",ts=NOW() where id="36";

Hi @Meno25 thanks for reminding me some were missing! Done.

@Meno25 It seems there was no ticket created for kbdwiktionary. That's odd since normally that happens automatically. Or am I missing it?

Hi @Meno25 thanks for reminding me some were missing! Done.

You're welcome 😊 and thank you for the quick fix. Really appreciated.

@Meno25 It seems there was no ticket created for kbdwiktionary. That's odd since normally that happens automatically. Or am I missing it?

You are right. The bot didn't create the task this time. Not sure why though, the source code that handles Wikistats hasn't been changed in two years.