Page MenuHomePhabricator

Community configuration: Create a configuration reader service
Closed, ResolvedPublic5 Estimated Story Points

Description

To allow MediaWiki-extensions-CommunityConfiguration work as an extension allowing admins to modify MediaWiki configuration on-wiki, we need to create a reader service in CommunityConfiguration, which would be used by its clients to request MediaWiki configuration. It needs to have the following properties:

  1. supports reading multiple configuration providers,
  2. verifies the requested variable is valid in (any) CommunityConfiguration provider; if not, it behaves like a regular GlobalVarConfig,
  3. if a config is not present in CommunityConfiguration (either not set at all, or page does not exist/is invalid/etc), fallback to whatever GlobalVarConfig says

Within this task, a usage example should be added to CommunityConfigurationExample.

Event Timeline

Urbanecm_WMF set the point value for this task to 5.

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

[mediawiki/extensions/CommunityConfiguration@master] DataProvider: Properly work with cached config

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

Change 1006148 merged by jenkins-bot:

[mediawiki/extensions/CommunityConfiguration@master] DataProvider: Properly work with cached config

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

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

[mediawiki/extensions/CommunityConfiguration@master] WikiPageConfigProvider: Log attempts to load invalid configuration

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

Change 1006854 merged by jenkins-bot:

[mediawiki/extensions/CommunityConfiguration@master] WikiPageConfigProvider: Log attempts to load invalid configuration

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

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

[mediawiki/extensions/CommunityConfiguration@master] Switch to storing configuration schemas as PHP classes

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

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

[mediawiki/extensions/CommunityConfiguration@master] Add WikiPageConfigReader

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

Change 1007664 merged by jenkins-bot:

[mediawiki/extensions/CommunityConfiguration@master] Switch to storing configuration schemas as PHP classes

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

Change 1007858 merged by jenkins-bot:

[mediawiki/extensions/CommunityConfiguration@master] Add WikiPageConfigReader

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

Urbanecm_WMF moved this task from Code Review to QA on the Growth-Team (Sprint 9 (Growth Team)) board.

Impossible to QA independently.