Page MenuHomePhabricator

Make it possible to register community configuration providers via a MediaWiki configuration variable
Closed, ResolvedPublic2 Estimated Story Points

Description

As of now, MediaWiki-extensions-CommunityConfiguration only allows registering a new configuration provider via the attributes section of extension.json. While most CommunityConfiguration clients are likely to be extensions and this registration approach is likely going to be fairly popular, it is not sufficient, because:

  • the attributes section is hard to fake from PHPUnit tests within the CommunityConfiguration extension itself,
  • the attributes section cannot be used by anything that does not have an extension.json or skin.json file (such as a gadget)

While gadgets are not the primary focus now, we need to implement this at this stage, because this will allow us to write tests with specific providers. Because of that, this task currently blocks T357531: Write an API for manipulating Community configuration.

Event Timeline

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

Change 1005814 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/CommunityConfiguration@master] Allow registering providers via a config variable

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

Change 1005814 merged by jenkins-bot:

[mediawiki/extensions/CommunityConfiguration@master] Allow registering providers via a config variable

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

Urbanecm_WMF set the point value for this task to 2.Feb 29 2024, 3:05 PM