On Mon, Apr 20, 2015 at 12:57 PM, Jon Robson <jdlrobson(a)gmail.com> wrote:
It would help to surface api deprecation notices into
the JavaScript
console just like mw.deprecate does for more visibility.
The API can and does already report deprecation warnings, and the way that
happens is on my long list of stuff to improve. And it can log on the
server too (see api-feature-usage.log on fluorine). And once logstash gets
working it'll even be externally queryable by user agent.
But "like mw.deprecate" doesn't make sense any further than that. It's
up
to your API-accessing code (e.g. whatever framework you're using to query
the API) to log the warnings it receives in some manner you'd find useful.
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation