Page MenuHomePhabricator

Enable Extension NewUserMessage on fr.wikipedia
Closed, ResolvedPublic

Description

Please install the extension NewUserMessage on French Wikipedia.

Configuration of global variables:
$wgNewUserSupressRC = true;
$wgNewUserMinorEdit = false;
$wgNewUserMessageOnAutoCreate = false;

Welcome message: https://fr.wikipedia.org/wiki/Mod%C3%A8le:Bienvenue_nouveau/automatique (MediaWiki:Newusermessage-template is already pointing to it).

Community consensus: https://fr.wikipedia.org/wiki/Discussion_Projet:Aide_et_accueil#Message_de_bienvenue_via_NewUserMessage

Event Timeline

Ideally, the message should be substituted. I created MediaWiki:Newusermessage-substitute‎ accordingly. However, the message makes use of the {{#mentor:...}} parser function. I believe this is provided by another extension, namely Extension:GrowthExperiments. Is there a risk that the initialization steps during account creation happen in the wrong order, i.e. the NewUserMessage extension tries to post the message before a mentor is assigned?

In case this is not easy to check in advance, could you please check the first welcome messages after activating the extension or let us know in advance the date and time of activation?

I would note that currently a policy is discussed that would prevent NewUserMessage from being used, since the extension is currently used for spamming thousands of messages to users who have not made a single edit on the wiki: https://meta.wikimedia.org/wiki/Requests_for_comment/Welcoming_policy

So the deployment is not necessarily a good idea while that RfC is running.

@stjn As far as I understand, the adoption of this proposal wouldn't prevent the use of NewUserMessage with $wgNewUserMessageOnAutoCreate=false, which is what is requested here: "A wiki is only allowed to post welcome messages to users if their account was originally created at the wiki or [...]" => the first condition is met.

Ah, I missed it. Apologies and thank you.

Ideally, the message should be substituted. I created MediaWiki:Newusermessage-substitute‎ accordingly.

Thank you for fixing this!

However, the message makes use of the {{#mentor:...}} parser function. I believe this is provided by another extension, namely Extension:GrowthExperiments. Is there a risk that the initialization steps during account creation happen in the wrong order, i.e. the NewUserMessage extension tries to post the message before a mentor is assigned?

In case this is not easy to check in advance, could you please check the first welcome messages after activating the extension or let us know in advance the date and time of activation?

AFACT, the mentor is assigned immediatly when the account is created. I agree with you on checking if everything is compatible, I'll ask the Growth team on Monday, as T382204: Add NewUserMessage to Community Configuration is now under their radar now.

@Nemoralis shouldn’t this task be tagged with Wikimedia-Extension-setup? (Am I missing something?)

It is not a new extension. It is already enabled on certain WMF projects: https://extloc.toolforge.org/extensions/NewUserMessage

It is not a new extension. It is already enabled on certain WMF projects: https://extloc.toolforge.org/extensions/NewUserMessage

My understanding was that Wikimedia-extension-review-queue was for extensions that haven't previously been enabled on Wikimedia projects; while Wikimedia-Extension-setup was for all Wikimedia extension deployments

all these tags should die in favor of Wikimedia-Site-requests so people spend less time discussing them over and over again :P

What would be T230194

I'm in favor of that task, but think the review-queue tag serves a distinct purpose.

Change #1146702 had a related patch set uploaded (by LD; author: LD):

[labs/countervandalism/cvn-infrastructure@master] frwiki: Enable the NewUserMessage extension

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

LD changed the task status from Open to In Progress.May 15 2025, 6:54 PM
LD claimed this task.

Change #1146707 had a related patch set uploaded (by LD; author: LD):

[operations/mediawiki-config@master] frwiki: Enable the NewUserMessage extension

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

Change #1146707 merged by jenkins-bot:

[operations/mediawiki-config@master] frwiki: Enable the NewUserMessage extension

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

Mentioned in SAL (#wikimedia-operations) [2025-05-15T20:38:51Z] <thcipriani@deploy1003> Started scap sync-world: Backport for [[gerrit:1146707|frwiki: Enable the NewUserMessage extension (T382199)]]

Mentioned in SAL (#wikimedia-operations) [2025-05-15T20:44:45Z] <thcipriani@deploy1003> thcipriani, wpld: Backport for [[gerrit:1146707|frwiki: Enable the NewUserMessage extension (T382199)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-05-15T20:53:36Z] <thcipriani@deploy1003> Finished scap sync-world: Backport for [[gerrit:1146707|frwiki: Enable the NewUserMessage extension (T382199)]] (duration: 14m 44s)

LD triaged this task as Low priority.

Change #1146702 abandoned by LD:

[labs/countervandalism/cvn-infrastructure@master] frwiki: Enable the NewUserMessage extension

Reason:

merged as 9214e5c8613d4dc583a1c8e978f9f13bc56b740b

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