https://bugzilla.wikimedia.org/show_bug.cgi?id=61372
Bug ID: 61372
Summary: Add a warning when deprecated parameters of mw.Api are
used
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: JavaScript
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
There are many methods of mw.Api which accepted callback functions as
parameters "ok" and "err" (e.g. mw.Api.get/post[1], mw.Api.parse[2], etc...),
but most (all) of these are deprecated. Consider showing a warning message in
the console when these are used. I'm not sure if this can be made using
mw.log.deprecate.
[1]
https://github.com/wikimedia/mediawiki-core/blob/60f114d8f5955d172680784935791e0254251c97/resources/mediawiki.api/mediawiki.api.js#L140-L149
[2]
https://github.com/wikimedia/mediawiki-core/blob/aba0a461005058a3b0de377a2f67e5284004b5c6/resources/mediawiki.api/mediawiki.api.parse.js#L11-L12
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l