Page MenuHomePhabricator

Remove deprecated mediawiki.api.* dependencies from extensions
Closed, ResolvedPublic

Description

In rECHO/extension.json (line 76) the deprecated "mediawiki.api.options" is still requested.

That is merged into "mediawiki.api" this month in ecc812f0.

Obviously this is bothering me by dropping deprecation warnings on console, while I searched hundreds of JS units for an mw.loader.using() call.

Perhaps there are more similar cases hidden in diffusion.

https://codesearch.wmflabs.org/search/?q=mediawiki%5C.api%5C.(category%7Cedit%7Clogin%7Coptions%7Cparse%7Cupload%7Cuser%7Cwatch%7Cmessages%7Crollback)&i=nope&files=&repos=

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

Change 439388 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/Citoid@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/439388

Change 439389 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/CodeEditor@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/439389

Change 439390 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/Echo@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/439390

Change 439391 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/MobileFrontend@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/439391

Change 439392 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/MultimediaViewer@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/439392

Change 439393 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/TwoColConflict@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/439393

Well, it is not only mediawiki.api.options but the entire pile involved:

mediawiki.api.category
mediawiki.api.edit
mediawiki.api.messages
mediawiki.api.options
mediawiki.api.parse
mediawiki.api.titleblacklist
mediawiki.api.upload
mediawiki.api.user
mediawiki.api.watch

All the same issue, not narrowed as the task description suggests.

Legoktm renamed this task from Remove deprecated mediawiki.api.options dependency from extensions to Remove deprecated mediawiki.api.* dependencies from extensions.Jun 9 2018, 7:28 AM
Legoktm updated the task description. (Show Details)
Legoktm added a subscriber: Legoktm.

Well, it is not only mediawiki.api.options but the entire pile involved:
<snipped>
All the same issue, not narrowed as the task description suggests.

Tweaked. Note that mediawiki.api.titleblacklist isn't deprecated since it's from an extension.

Nirmos added a subscriber: Nirmos.Jun 10 2018, 12:50 PM

Change 439514 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/GuidedTour@master] Don't use deprecated mediawiki.api.parse

https://gerrit.wikimedia.org/r/439514

Change 439515 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/LiquidThreads@master] Don't use deprecated mediawiki.api.watch

https://gerrit.wikimedia.org/r/439515

Change 439516 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/TemplateData@master] Don't use deprecated mediawiki.api.messages

https://gerrit.wikimedia.org/r/439516

phuedx updated the task description. (Show Details)Jun 11 2018, 1:18 PM

Change 439514 merged by jenkins-bot:
[mediawiki/extensions/GuidedTour@master] Don't use deprecated mediawiki.api.parse

https://gerrit.wikimedia.org/r/439514

Change 439388 merged by jenkins-bot:
[mediawiki/extensions/Citoid@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/439388

Change 439389 merged by jenkins-bot:
[mediawiki/extensions/CodeEditor@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/439389

Change 439392 merged by jenkins-bot:
[mediawiki/extensions/MultimediaViewer@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/439392

Change 439390 merged by jenkins-bot:
[mediawiki/extensions/Echo@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/439390

Change 439516 merged by jenkins-bot:
[mediawiki/extensions/TemplateData@master] Don't use deprecated mediawiki.api.messages

https://gerrit.wikimedia.org/r/439516

Change 439515 merged by jenkins-bot:
[mediawiki/extensions/LiquidThreads@master] Don't use deprecated mediawiki.api.watch

https://gerrit.wikimedia.org/r/439515

Just noting here that there are two modules mentioned in ecc812f0 that are not present in PerfektesChaos's comment. These are:
mediawiki.api.login
mediawiki.api.rollback

Change 439393 merged by jenkins-bot:
[mediawiki/extensions/TwoColConflict@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/439393

Change 439391 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/439391

Change 434739 had a related patch set uploaded (by Petar.petkovic; owner: Petar.petkovic):
[mediawiki/extensions/UniversalLanguageSelector@master] Remove dependencies on deprecated modules 'mediawiki.api.*'

https://gerrit.wikimedia.org/r/434739

Vvjjkkii renamed this task from Remove deprecated mediawiki.api.* dependencies from extensions to lcbaaaaaaa.Jul 1 2018, 1:04 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed subscribers: gerritbot, Aklapper.
Petar.petkovic renamed this task from lcbaaaaaaa to Remove deprecated mediawiki.api.* dependencies from extensions.Jul 1 2018, 11:15 PM
Petar.petkovic raised the priority of this task from High to Needs Triage.
Petar.petkovic updated the task description. (Show Details)
Petar.petkovic added a subscriber: Aklapper.
Petar.petkovic added a subscriber: Petar.petkovic.
PerfektesChaos added a comment.EditedJul 7 2018, 10:33 AM

I still receive api.options warnings with no detectable cause.

No user script known to be involved, no trace in loaded JS codes, nothing in dewiki:MediaWiki namespace, still after disabled Greasemonkey. Even as an anonymous guest on a foreign browser without my sophisticated development environment on Special:Preferences which blocks site and user resources, trying on an exotic wiki.

Looking at rMW /resources/Resources.php line 875 until 885: Is this still meaningful?

And this search from task desc still finds extensions/CookieWarning and ULS which are active in all projects, and other living extensions among discontinued stuff.

Change 445003 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/Wikibase@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/445003

Change 445004 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/CookieWarning@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/445004

Change 445006 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/UniversalLanguageSelector@master] Don't use deprecated mediawiki.api.options or mediawiki.api.parse

https://gerrit.wikimedia.org/r/445006

Change 445007 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/TwnMainPage@master] Don't use deprecated mediawiki.api.login

https://gerrit.wikimedia.org/r/445007

Change 445008 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/TranslationNotifications@master] Don't use deprecated mediawiki.api.parse

https://gerrit.wikimedia.org/r/445008

Change 445009 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/UploadWizard@master] Don't use deprecated mediawiki.api.{edit|messages|parse}

https://gerrit.wikimedia.org/r/445009

Change 445010 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/Translate@master] Don't use deprecated mediawiki.api.parse

https://gerrit.wikimedia.org/r/445010

Change 445011 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/CirrusSearch@master] Don't use deprecated mediawiki.api.messages

https://gerrit.wikimedia.org/r/445011

Change 445011 merged by jenkins-bot:
[mediawiki/extensions/CirrusSearch@master] Don't use deprecated mediawiki.api.messages

https://gerrit.wikimedia.org/r/445011

Change 445010 abandoned by Jforrester:
Don't use deprecated mediawiki.api.parse

Reason:
Already done in If1bd7521.

https://gerrit.wikimedia.org/r/445010

Change 434738 had a related patch set uploaded (by Jforrester; owner: Petar.petkovic):
[mediawiki/extensions/Translate@master] Remove dependencies on deprecated modules 'mediawiki.api.*'

https://gerrit.wikimedia.org/r/434738

Change 445006 abandoned by Jforrester:
Don't use deprecated mediawiki.api.options or mediawiki.api.parse

Reason:
Already done in I27dd62fae.

https://gerrit.wikimedia.org/r/445006

Change 445003 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/445003

Change 445007 merged by jenkins-bot:
[mediawiki/extensions/TwnMainPage@master] Don't use deprecated mediawiki.api.login

https://gerrit.wikimedia.org/r/445007

Change 445009 merged by jenkins-bot:
[mediawiki/extensions/UploadWizard@master] Don't use deprecated mediawiki.api.{edit|messages|parse}

https://gerrit.wikimedia.org/r/445009

Change 445008 merged by jenkins-bot:
[mediawiki/extensions/TranslationNotifications@master] Don't use deprecated mediawiki.api.parse

https://gerrit.wikimedia.org/r/445008

Change 445004 merged by jenkins-bot:
[mediawiki/extensions/CookieWarning@master] Don't use deprecated mediawiki.api.options

https://gerrit.wikimedia.org/r/445004

Change 434739 merged by jenkins-bot:
[mediawiki/extensions/UniversalLanguageSelector@master] Remove dependencies on deprecated modules 'mediawiki.api.*'

https://gerrit.wikimedia.org/r/434739

Change 464944 had a related patch set uploaded (by D3r1ck01; owner: Alangi Derick):
[mediawiki/extensions/BlueSpiceFoundation@master] Don't use deprecated mediawiki.api.upload

https://gerrit.wikimedia.org/r/464944

Change 464945 had a related patch set uploaded (by D3r1ck01; owner: Alangi Derick):
[mediawiki/extensions/BlueSpiceCategoryManager@master] Don't use deprecated mediawiki.api.edit

https://gerrit.wikimedia.org/r/464945

Change 464946 had a related patch set uploaded (by D3r1ck01; owner: Alangi Derick):
[mediawiki/extensions/CollaborationKit@master] Don't use deprecated mediawiki.api.edit

https://gerrit.wikimedia.org/r/464946

Change 464945 merged by jenkins-bot:
[mediawiki/extensions/BlueSpiceCategoryManager@master] Don't use deprecated mediawiki.api.edit

https://gerrit.wikimedia.org/r/464945

Change 464944 merged by jenkins-bot:
[mediawiki/extensions/BlueSpiceFoundation@master] Don't use deprecated mediawiki.api.upload

https://gerrit.wikimedia.org/r/464944

Change 464946 merged by jenkins-bot:
[mediawiki/extensions/CollaborationKit@master] Don't use deprecated mediawiki.api.edit

https://gerrit.wikimedia.org/r/464946

Krenair added a subscriber: Krenair.

I've gone through @Krinkle's mwgreps and dealt with on-wiki uses of those modules

Change 485146 had a related patch set uploaded (by Krinkle; owner: Krinkle):
[mediawiki/core@master] mediawiki.api: Remove deprecated module aliases

https://gerrit.wikimedia.org/r/485146

Change 434738 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Avoid deprecated mediawiki.api aliases on MW 1.32+

https://gerrit.wikimedia.org/r/434738

Change 485146 merged by jenkins-bot:
[mediawiki/core@master] mediawiki.api: Remove deprecated module aliases

https://gerrit.wikimedia.org/r/485146

Krinkle removed a subscriber: Krinkle.
Jdforrester-WMF closed this task as Resolved.Jan 22 2019, 10:08 PM