The behavior of prop=imageinfo with redirects, particularly redirects
in foreign repos such as Commons, has always been a bit strange and
confusing. Depending on the source of the file, sometimes &redirects=1
is needed in the query to get the imageinfo for a redirect and
sometimes this is done regardless.
Recent changes to the file repository backend code will cause
prop=imageinfo to now always return the info for the target file, even
when querying a redirect without specifying "&redirects=1" in the
query. A new iiprop is also available, iiprop=canonicaltitle, to
indicate the title associated with the file info itself.
These changes will be deployed to WMF sites with 1.23wmf7, see
https://www.mediawiki.org/wiki/MediaWiki_1.23/Roadmap for the
A change is also being planned by Brian Wolff to change prop=imageinfo
back in the other direction: file redirects would never be followed
unless &redirects=1 is included. Feedback is welcome, particularly on
edge cases that will need to be handled.
Brad Jorsch (Anomie)
Fowarding on behalf of Benny and legoktm.
This change in the Echo API was announced on wikitech-l earlier, but
failed to make it to the API list.
"it will be removed once ..." from the message below has now happened:
https://gerrit.wikimedia.org/r/#/c/84870/ will be merged today, and
will be deployed to Wikimedia wikis in phases between December 12th
and December 19th.
---------- Forwarded message ----------
From: Benny Situ <bsitu(a)wikimedia.org>
Date: Mon, Nov 18, 2013 at 6:19 PM
Subject: [Wikitech-l] Update to Echo api
To: mobile-tech <mobile-tech(a)wikimedia.org>, Wikimedia developers
Kunal Mehta <legoktm(a)wikimedia.org>
We made some change to Echo api recently. The api ApiEchoNotifications
mixed both read and write actions, we have migrated the 'markasread' action
to its own api module - ApiEchoMarkRead. The 'markasread' function still
works in ApiEchoNotifications but it will be removed once all external api
calls have been migrated to the new API.
Example about how to use the new API is in here:
Wikitech-l mailing list