2009/7/16 Brad Jorsch <b-jorsch(a)northwestern.edu>:
> On Wed, Jul 15, 2009 at 11:30:40PM +0200, Roan Kattouw wrote:
>>
>> As of r52190 [1], API maxlag errors (the kind of error you get when
>> you set &maxlag=2 and the maximum slave lag is higher than two
>> seconds) return a HTTP 503 status code rather than a 200, for
>> consistency with index.php (which does the same thing).
>
> I agree with the others, this change should be reverted, as it is an
> arbitrary breaking change that makes things more difficult for API
> clients for consistency with something that is not really related.
>
Because of this and other complaints on the mediawiki-api list, I've
reverted the change in r53353. It never went live on Wikipedia.
Roan Kattouw (Catrope)
My apologies for sending out this e-mail so late.
As of r52190 [1], API maxlag errors (the kind of error you get when
you set &maxlag=2 and the maximum slave lag is higher than two
seconds) return a HTTP 503 status code rather than a 200, for
consistency with index.php (which does the same thing). The text of
the response has not changed:
<api>
<error code="maxlag" info="Waiting for 10.0.6.38: 1 seconds lagged" />
</api>
To trigger a maxlag error, you can set &maxlag=-1 [2].
Be aware that some client libraries may treat the 503 return code
differently, which is why this could be a breaking change.
Roan Kattouw (Catrope)
[1] http://www.mediawiki.org/wiki/Special:Code/MediaWiki/52190
[2] http://en.wikipedia.org/w/api.php?maxlag=-1&action=query
Forwarding to -announce list, sorry about the double-post to mediawiki-api
---------- Forwarded message ----------
From: Carl (CBM) <cbm.wikipedia(a)gmail.com>
Date: 2009/7/10
Subject: [Mediawiki-api] Breaking change: cmnamespace parameter disabled
To: mediawiki-api(a)lists.wikimedia.org
The 'cmnamespace' parameter to the 'categorymembers' query has been
disabled in miser mode, which has the effect of disabling it on WMF
wikis. The parameter is simply ignored, causing category lists to
include pages in all namespaces. The simplest workaround is to filter
category lists locally.
References:
* http://www.mediawiki.org/wiki/Special:Code/MediaWiki/53052
* https://bugzilla.wikimedia.org/show_bug.cgi?id=19640
- Carl
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api