Page MenuHomePhabricator

Add a documentation-only type to foreign-resources.yaml
Closed, ResolvedPublic

Description

Following up from T330427: Add a way for skins and extensions to feed into "Installed client-side libraries" on Special:Version and T330508.

There should be a way to include a library in foreign-resources.yaml without it actually doing something. This would be useful for libraries which need a complex build step which ForeignResourceManager doesn't currently support, but we would still want to declare the dependency and show it in Special:Version. An example is d3 in GrowthExperiments.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Krinkle moved this task from Inbox to Accepted Enhancement on the MediaWiki-ResourceLoader board.
Krinkle removed a project: Performance-Team.
Krinkle subscribed.

Sounds good to me! This fits well within the roadmap for ForeignResourceManager long-term but isn't likely to be planned by us in the next few quarters. I'm happy to help review/guide anything you need.

Also useful for extensions which use software that bundles libraries, e.g. VisualEditor uses 15 libraries which are listed in AUTHORS.txt but otherwise invisible.

Change 914413 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/core@master] foreign-resources.yaml: Add doc-only type

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

Change 914413 merged by jenkins-bot:

[mediawiki/core@master] foreign-resources.yaml: Add doc-only type

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