Last modified: 2012-05-28 19:10:55 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 T38573, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36573 - handle wikis which have API for siteinfo but do not have siprop statistics
handle wikis which have API for siteinfo but do not have siprop statistics
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
wikistats (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-06 17:06 UTC by Daniel Zahn
Modified: 2012-05-28 19:10 UTC (History)
7 users (show)

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


Attachments

Description Daniel Zahn 2012-05-06 17:06:11 UTC
Due to different API capabilities in different MW versions we have a group of wikis which do offer api.php URLs and we can fetch siteinfo from, but they do not have statistics via API. 

e.g.   <error code="siunknown_siprop" info="Unrecognised value for parameter 'siprop'">

That's the wikis where you can see name/license but no values for good,total, etc.. 

There are new error codes introduced in the siteinfo fetching. (892,893,894) for debugging. Those that are http 200 but show no stats numbers fall into this category.

Also code is changed to try fetching siteinfo even if fetching statistics fails, before it was skipped.

Introduce new method "7" for those that are "siteinfo yes","statistics no", use API for siteinfo and try replacing api.php URL with Special:Statistics?action=raw and method 0 when fetching statistics.
Comment 1 Daniel Zahn 2012-05-06 18:52:07 UTC
added the "method 7" (7 in column "mt") for these as described.

581 more working ones now with http 200 who get siteinfo from API but stats from Special:Statistics. Also fixed links in display.php for these.
Comment 2 Robert Hanke 2012-05-28 19:10:55 UTC
Removed upon request

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


Navigation
Links