Page MenuHomePhabricator

Support conditionally registered namespaces in extension.json
Closed, ResolvedPublic

Description

Some extensions (e.g. EventLogging) conditionally register a namespace depending upon the wiki's configuration using the CanonicalNamespaces hook. Since the "namespaces" key automatically registers the namespace, we should have an option to not register it and let the extension take care of that manually using the hook.

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

Change 301751 had a related patch set uploaded (by Legoktm):
registration: Support conditionally registered namespaces

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

Change 301751 merged by jenkins-bot:
registration: Support conditionally registered namespaces

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

Florian subscribed.

This is now possible by adding a "conditional": true to the namespace definition.

Change 361199 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/core@REL1_27] registration: Support conditionally registered namespaces

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

Change 361199 merged by jenkins-bot:
[mediawiki/core@REL1_27] registration: Support conditionally registered namespaces

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