Page MenuHomePhabricator

When user is reverted by Automoderator, send them a talk page message
Closed, ResolvedPublic5 Estimated Story Points

Description

User story: As a new Wikipedia editor, I want to be told that Automoderator has reverted my edit, so that I understand this was an automated action and know how to report an error.

  • The talk page message text should be a translatable system message which is therefore customisable by editing the corresponding MediaWiki namespace page.
  • The message heading should be defined in MediaWiki config and surfaced for customisation in wiki config.
  • The edit summary should be defined in MediaWiki config and surfaced for customisation in wiki config.

The message should be posted at the bottom of the reverted user's talk page in a new section.

We should have a MediaWiki (and wiki) config variable for enabling sending the talk page message. The default should be disabled.

Variables
The following data should be available for inserting into the text:

Talk page message

Heading

  • Date (Month and year)
  • Title of page where revert took place

Edit summary

  • Title of page where revert took place

Default text

Heading
<MONTH> <YEAR>: <AUTOMODERATOR USERNAME> reverted your edit

Message content

Hello! I am [[User:<AUTOMODERATOR USERNAME>|]], an automated system which uses a machine learning model to identify and revert potentially bad edits to ensure Wikipedia remains reliable and trustworthy. Unfortunately, I reverted one of your [[Special:Diff/<DIFF ID>|recent edits]] to [[<PAGE TITLE>]]. 
* Because the model I use is not perfect, it sometimes reverts good edits. If you believe the change you made was constructive, please [[<REPORT PAGE NAME>|report it here]]. 
* [[:mw:Moderator Tools/Automoderator|Learn more]] about my software.
* To learn more about editing visit your [[Special:Homepage|Newcomer Homepage]].

Edit summary
Notice of automated revert on [[<PAGE TITLE>]]

Related Objects

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

Change #1053381 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/AutoModerator@master] When user is reverted by Automoderator, send them a talk page message - Fix talk page message job params

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

Moving this to QA until we can test this live on testwiki

Change #1053381 merged by jenkins-bot:

[mediawiki/extensions/AutoModerator@master] When user is reverted by Automoderator, send them a talk page message - Fix talk page message job params

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

Change #1054593 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/AutoModerator@master] When user is reverted by Automoderator, send them a talk page message - fix job params (again)

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

Moving this to QA until we test on testwiki.

Change #1054593 merged by jenkins-bot:

[mediawiki/extensions/AutoModerator@master] When user is reverted by Automoderator, send them a talk page message - fix job params (again)

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

Change #1056211 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/AutoModerator@master] When user is reverted by Automoderator, send them a talk page message - one last non primitive data type left

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

Change #1056211 merged by jenkins-bot:

[mediawiki/extensions/AutoModerator@master] When user is reverted by Automoderator, send them a talk page message - one last non primitive data type left

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

Change #1056214 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/AutoModerator@wmf/1.43.0-wmf.15] When user is reverted by Automoderator, send them a talk page message - one last non primitive data type left

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

Change #1056214 abandoned by Kgraessle:

[mediawiki/extensions/AutoModerator@wmf/1.43.0-wmf.15] When user is reverted by Automoderator, send them a talk page message - one last non primitive data type left

Reason:

Don't need this as a backport anymore

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

Change #1058260 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/AutoModerator@master] Update new line character to be <br/>

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

Change #1058260 merged by jenkins-bot:

[mediawiki/extensions/AutoModerator@master] Duplicate new line character

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

Although this edit on the 8th worked correctly, this one on the 10th didn't paragraph properly. I wonder if the difference in behaviour has something to do with a page edit vs creation?

Change #1062442 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/AutoModerator@master] Fix talk page message formatting when creating a talk page.

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

@Samwalton9-WMF

Good catch! It does look like that is the issue.

Change #1062442 merged by jenkins-bot:

[mediawiki/extensions/AutoModerator@master] Fix talk page message formatting when creating a talk page.

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

I've just noticed that on test.wiki Automoderator isn't signing its message - it needs to do this to confirm where the message came from and so that other software can parse this post as a message. I'm not sure if you can just add ~~~~ to the message, but that would be ideal if so - it can just go at the end of the final sentence.

Putting back to in progress for signature

Change #1063038 had a related patch set uploaded (by Scardenasmolinar; author: Scardenasmolinar):

[mediawiki/extensions/AutoModerator@master] Add signature to talk page message

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

I have added the signature to the end of the message. I want your opinions on which signature looks better.

Signature 1

Screenshot 2024-08-15 at 13.02.53.png (973×206 px, 57 KB)

Signature 2

Screenshot 2024-08-15 at 13.02.46.png (961×175 px, 55 KB)

I have added the signature to the end of the message. I want your opinions on which signature looks better.

Signature 1

Screenshot 2024-08-15 at 13.02.53.png (973×206 px, 57 KB)

Signature 2

Screenshot 2024-08-15 at 13.02.46.png (961×175 px, 55 KB)

I think Signature 2 is the safer option to ensure that the text is all captured as belonging to that signature.

Got it! That's the signature that's currently ready for review in Gerrit!

Moving this to QA. We should be able to test this on testwiki tomorrow afternoon.

Change #1063038 merged by jenkins-bot:

[mediawiki/extensions/AutoModerator@master] Add signature to talk page message

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

It looks like we just need to add a single space between the full stop and the dash, and then this should be good. Confirmed that DiscussionTools is picking this up as a comment now, so Reply displays and works.

Screenshot 2024-08-22 at 17.08.50.png (778×244 px, 35 KB)

Change #1064830 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/AutoModerator@master] Fix spacing on signature of talk page message.

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

Change #1064830 merged by jenkins-bot:

[mediawiki/extensions/AutoModerator@master] Fix spacing on signature of talk page message.

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

Using ~~~~ allows the signature to follow the standard defined by the wiki.
@Kgraessle added the dashed with a space: -- ~~~~ This is what Turkish Wikipedia uses.

The usage of the two dashes is also defined per wiki, but not part of the ~~~~. Of course, it differs from wiki to wiki with a global trend of just ~~~~.

No dashes ~~~~ for Indonesian WIkipedia, French Wikipedia and English Wikipedia (I think English used to have -- ~~~~ IIRC ).

Two dashes but no space --~~~~ is implemented at Chinese Wikipedia, German Wikipedia and Japanese Wikipedia

It would be nice to use the default format defined for each wiki. :)

DiscussionTools implement that using the discussiontools-signature-prefix message. I also found sig-text (core) and wikieditor-toolbar-help-content-signaturetimestamp-syntax (WikiEditor (2010)).

@Dogu @BAPerdana-WMF If you are interested you can now enable Automoderator's talk page message by adding the following line to your wiki's Automoderator configuration:

"AutoModeratorRevertTalkPageMessageEnabled" : true

Please let me know if you have any questions or concerns about this feature :)

Note that we are currently working on a feature improvement documented at T372476.

@Dogu @BAPerdana-WMF If you are interested you can now enable Automoderator's talk page message by adding the following line to your wiki's Automoderator configuration:

"AutoModeratorRevertTalkPageMessageEnabled" : true

Please let me know if you have any questions or concerns about this feature :)

Note that we are currently working on a feature improvement documented at T372476.

Done, thank you!

@Dogu @BAPerdana-WMF If you are interested you can now enable Automoderator's talk page message by adding the following line to your wiki's Automoderator configuration:

"AutoModeratorRevertTalkPageMessageEnabled" : true

Please let me know if you have any questions or concerns about this feature :)

Note that we are currently working on a feature improvement documented at T372476.

Also done. :)

Test wiki on Patch demo by SCardenas (WMF) using patch(es) linked to this task was deleted:

https://patchdemo-legacy.wmcloud.org/wikis/c5a28fb65e/w/