A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

Hook in operations/mediawiki-config

RazeSoldier

Can we add hook in operations/mediawiki-config to achieve more flexible configuration?

aklapper

Hi, this question describes a solution without first defining a problem to solve (“flexibility” is not a use case in itself).
The best solution depends on a description of a problem and might be different from your proposed solution…
Also see https://secure.phabricator.com/book/phabcontrib/article/describing_problems/ (which is not about Wikimedia but is generally a good guideline, in my opinion).
Thanks!

RazeSoldier

Oh, it may be a bit of a problem with my wording. What I mean is, can allowed to add a hook to the configuration file in operations/mediawiki-config repo instead of specifically adding an extension to implement a requirement? (It looks like an inquiry about the WMF deploy policy)

RazeSoldier

In fact, zhwiki community is discussing whether to prohibit anonymous users from emptying their user talk pages. If the proposal passes, it may be better to implement this requirement with a hook.

Tgr

As you can see, it does contain a couple hooks already. For that purpose, you are probably better off using AbuseFilter though.

RazeSoldier

You are right, AF would be better.