I use mw.api so I suspect that to handle deprecation notices - does it not? If not why not? Basically I think these notices need to show up in php warning logs / js console to get the attention they deserve.
On Mon, Apr 20, 2015 at 10:14 AM, Brad Jorsch (Anomie) bjorsch@wikimedia.org wrote:
On Mon, Apr 20, 2015 at 12:57 PM, Jon Robson jdlrobson@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 _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l