The API has long had difficulty in reporting the redirects to a title:
the best that could be done was to use
list=backlinks&blfilterredir=redirects, but that has issues if the
redirect has additional wikilinks in the non-redirect content (e.g.
bug 57057[1]). It also had issues with file and category redirects
(e.g. bug 27621[2]).
With the merge of Gerrit change 104764,[3] the API has a new
prop=redirects to query the redirects table directly. There is also a
new list=allredirects, corresponding to existing modules such as
list=alllinks. This should be deployed to WMF sites with 1.23wmf16.[4]
In addition, since Gerrit change 105829 (deployed with 1.23wmf10[4])
file and category redirects will no longer show up when using
list=imageusage or list=categorymembers, unless the target file or
category is also included in the non-redirect content. They will be
reported in list=backlinks instead.
[1]: https://bugzilla.wikimedia.org/show_bug.cgi?id=57057
[2]: https://bugzilla.wikimedia.org/show_bug.cgi?id=27621
[3]: https://gerrit.wikimedia.org/r/#/c/104764/
[4]: https://www.mediawiki.org/wiki/MediaWiki_1.23/Roadmap
[5]: https://gerrit.wikimedia.org/r/#/c/105829/
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation
---------- Forwarded message ----------
From: Yuvi Panda <yuvipanda(a)gmail.com>
Date: Thu, Feb 20, 2014 at 9:05 PM
Hello!
Account creation[1] was enabled on Wikimedia wikis a few weeks ago.
There is a bug[2] in the implementation that returns status codes in
all lower case ('success', 'needtoken') rather than in CamelCase
('Success', 'NeedToken'), which is what all other parts of the API
use. There is a patch[3] that will make action=createaccount behave
similar to the other actions.
If you have code that uses action=createaccount, you might have to
tweak your client to uppercase a few characters.
[1]: https://www.mediawiki.org/wiki/API:Account_creation
[2]: https://bugzilla.wikimedia.org/show_bug.cgi?id=61663
[3]: https://gerrit.wikimedia.org/r/#/c/114473/
--
Yuvi Panda T
http://yuvi.in/blog
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation
(Sorry for the double post, mediawiki-api subscribers)
---------- Forwarded message ----------
From: This, that and the other <at.light(a)live.com.au>
Date: Thu, Feb 13, 2014 at 5:46 AM
Subject: Modification to FlaggedRevs timestamp outputs
A patch is currently in Gerrit [1] to alter the way the FlaggedRevs
extension formats some timestamps in its API output.
Specifically, the "expiry" attribute generated by action=stabilize, and the
"protection_expiry" attribute generated by action=query&prop=flagged, are
changed to use an ISO-formatted timestamp (2014-02-13T11:00:00Z) in the
output, instead of the current internal format (20140213110000).
This change brings the timestamp formatting of FlaggedRevs into line with
the rest of the MediaWiki API, and allows external users to parse the
timestamp more easily.
(This may well affect nobody at all: [2] comes to mind!)
TTO
--
[1] https://gerrit.wikimedia.org/r/#/c/76460/
[2] https://bugzilla.wikimedia.org/show_bug.cgi?id=44468#c5