Page MenuHomePhabricator

Targets system gives deprecation warnings for gadget modules
Closed, ResolvedPublic

Description

1 Use of Modules must target desktop and mobile. Module name:ext.gadget.background was deprecated
1 Use of Modules must target desktop and mobile. Module name:ext.gadget.bidibuttons was deprecated
1 Use of Modules must target desktop and mobile. Module name:ext.gadget.HoverPopTools was deprecated
1 Use of Modules must target desktop and mobile. Module name:ext.gadget.new-messages was deprecated
1 Use of Modules must target desktop and mobile. Module name:ext.gadget.prota was deprecated
1 Use of Modules must target desktop and mobile. Module name:ext.gadget.speedy was deprecated
1 Use of Modules must target desktop and mobile. Module name:ext.gadget.terminology was deprecated
1 Use of Modules must target desktop and mobile. Module name:ext.gadget.UTCLiveClock was deprecated

These seem to come from rMWbe122d4f2ad4: Deprecate use of targets and is unexpected, given our gadgets do not specify targets.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This happens because Gadget.php sets the default target for a gadget to [ 'desktop' ] (code), which is now deprecated. This default should be changed to [ 'desktop', 'mobile' ], and we should probably remove the option to set the target from the Gadgets extension entirely in the future.

Change 931954 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/Gadgets@master] Change default RL target to desktop+mobile

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

Reedy renamed this task from Targets system gives seprecation warnings for gadget modules to Targets system gives deprecation warnings for gadget modules.Jun 21 2023, 3:34 PM

Change 931955 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/Gadgets@master] Gadgets should default to mobile and desktop targets

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

Change 931954 abandoned by Jforrester:

[mediawiki/extensions/Gadgets@master] Change default RL target to desktop+mobile

Reason:

Jon's patch is being merged instead.

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

Change 931955 merged by jenkins-bot:

[mediawiki/extensions/Gadgets@master] Gadgets should default to mobile and desktop targets

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

Jdlrobson claimed this task.
Jdlrobson added a subscriber: Tacsipacsi.

I've gone through https://global-search.toolforge.org/?q=targets%5C%3D%28mobile%7Cdesktop%29%5B%5E%2C%5D&regex=1&namespaces=8&title=Gadgets-definition and this should now be fully addressed.

The only remaining wiki is huwiki and @Tacsipacsi has stated they'd prefer to do that at their own pace.
I'll be monitoring the URL above over next few weeks to see if any gadgets do get switched to targeting to get a better understanding of the circumstances in which that arises.

Might want to send a message to Arjunaraoc user talk page at https://te.wikisource.org/wiki/%E0%B0%B5%E0%B0%BE%E0%B0%A1%E0%B1%81%E0%B0%95%E0%B0%B0%E0%B0%BF_%E0%B0%9A%E0%B0%B0%E0%B1%8D%E0%B0%9A:Arjunaraoc since he is the only interface admin on that project and that te.wikisource was mentioned in T340682