Page MenuHomePhabricator

Add a hook to Scribunto to support cross-wiki module imports
Open, Needs TriagePublicFeature

Description

Feature summary: A hook or hooks added to Scribunto's require resolution that lets you (1) locate the module yourself; (2) load its contents yourself; (3) aborting further hooks from running.

Use case(s): On wiki farms where many wikis share a single server, a centralized code repository wiki is often used with a custom config, sharing code either via DB or over HTTP. For the most part, this functionality can be developed independently of Scribunto, but Scribunto would need hook support.

Benefits: This will give wiki farms greater flexibility over how to configure Scribunto without any need to fork the extension.

Event Timeline

RheingoldRiver renamed this task from Add a hook to Scribunto to support cross-wiki module imports via DB instead of HTTP to Add a hook to Scribunto to support cross-wiki module imports.Mar 21 2024, 12:42 PM
RheingoldRiver updated the task description. (Show Details)

I'll be investigating this next month internally at wiki.gg, should be able to provide the patch after it's deployed and live for more than two weeks without issues.

Not really a duplicate. This task is about providing a hook for module loading so individual wikis/farms can implement cross-wiki loading on their own. The other ticket is about providing a complete solution for global modules.