Page MenuHomePhabricator

Add support for false positive reporting by revision ID
Closed, ResolvedPublic3 Estimated Story PointsFeature

Assigned To
Authored By
Danielyepezgarces
Jun 12 2025, 7:03 AM
Referenced Files
F65698133: image.png
Jul 31 2025, 5:39 PM
F65662684: Screenshot 2025-07-23 at 12.21.12.png
Jul 23 2025, 6:22 PM
F65662681: Screenshot 2025-07-23 at 12.20.58.png
Jul 23 2025, 6:22 PM
F65662613: image.png
Jul 23 2025, 6:03 PM
F65662611: Screenshot 2025-07-23 at 1.03.24 PM.png
Jul 23 2025, 6:03 PM
F64824779: image.png
Jul 16 2025, 4:25 PM
F64824705: image.png
Jul 16 2025, 4:25 PM
F63360844: Screenshot 2025-07-07 at 9.10.29 AM.png
Jul 7 2025, 3:30 PM

Description

Since the implementation of the Automoderator on the Spanish Wikipedia (T391248), the report page has been filled with requests. However, I believe there's something missing: when clicking the "report a false positive" button, the revision ID of the reported edit should be preloaded. This would provide greater clarity and allow for faster investigation of the case, without wasting time searching through an article's history for each revert — especially when the bot has reverted multiple times

If this can be done, please detail in this task how to implement it; and if the functionality does not yet exist, consider evaluating it for implementation. Otherwise, the report system could become overwhelmed with false reports, making it very cumbersome to review requests and requiring attention to unnecessary cases

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
jsn.sherman subscribed.

@Danielyepezgarces thanks for this request! We will absolutely add this feature. This should be (relatively) low effort and high impact.

Just noting that links to false positive are included in talk pages messages (disabled for eswiki) and in the page history / rc actions link list. We should make sure we're preloading the reported rev in both places.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Jun 12 2025, 10:24 PM
DMburugu moved this task from Estimated to Kanban on the Moderator-Tools-Team board.
Scardenasmolinar changed the task status from Open to In Progress.Jun 27 2025, 12:23 AM
Scardenasmolinar claimed this task.
Scardenasmolinar moved this task from Ready to In Progress on the Moderator-Tools-Team (Kanban) board.

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

[mediawiki/extensions/AutoModerator@master] Add parameters to False reporting page

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

Hello and thank you for your work!

This is looking pretty good!
One issue is that I'm seeing the page title being inserted into the string alongside the "report it here"

Screenshot 2025-07-07 at 9.10.29 AM.png (127×905 px, 30 KB)

Another question about the preloading, should this be a template that is preloaded when you go to the page vs params?

Another question about the preloading, should this be a template that is preloaded when you go to the page vs params?

I am not an expert on templates, but when I analyzed how the false positive reporting page worked, I saw that wikis were using a preloaded template linked to the false positive reporting page. We should pass on the params, and each community can use them as needed.

The issue is that the report button can be added with

?action=edit&preload=MediaWiki:AutoModerator-preload&section=new

the revision ID parameter can be received, and the issue is how it can be received

One issue is that I'm seeing the page title being inserted into the string alongside the "report it here"

I am not seeing this in my local environment. How did you setup your false reporting page?

the revision ID parameter can be received, and the issue is how it can be received

That is what I'm working on the Gerrit patch. We can add the revision ID with &preloadparams[]=94&preloadparams[]=Page_Name. When this patch gets merged, the only thing you would need to do is add $1 where you want the revision id to be added and $2 where you want the page name to be added.

In my local development environment, I have the following preloaded template based on what Spanish Wikipedia has:

<includeonly>{{subst:Informe de error con bot en [[Special:Diff/$1| revisión]]
|Página en la que se produjo el error =  [[$2]]
|Descripción y comentarios del error =
}}</includeonly>

Test wiki created on Patch demo by SCardenas (WMF) using patch(es) linked to this task:
https://patchdemo.wmcloud.org/wikis/02beb47330/w/

One issue is that I'm seeing the page title being inserted into the string alongside the "report it here"

I am not seeing this in my local environment. How did you setup your false reporting page?

@Scardenasmolinar
I just linked it to a random page. Is there a specific way we should set it up for testing?
Also how can I test this on patch demo? I'm trying to get AutoModerator to revert, but so far have been unsuccessful.

I have also tried making AutoMod revert something in PatchDemo, but have been unsuccessful. I would set up the reporting page to look similar to https://es.wikipedia.org/w/index.php?title=Usuario:Automoderador/Reporte_de_falsos_positivos&action=edit&section=new&nosummary=true&preload=User%3AAutomoderador%2FReporte+de+falsos+positivos%2FPreload. It seems like all wikis have the same pattern

AutoModerator will not work because it does not have the training model endpoint loaded, as it is in the configuration for wikis

if ( $wmgUseAutoModerator ) {
	wfLoadExtension( 'AutoModerator' );
	$wgAutoModeratorLiftWingBaseUrl = 'https://inference.discovery.wmnet:30443/v1/models/';
	$wgAutoModeratorLiftWingAddHostHeader = true;
}

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

https://patchdemo.wmcloud.org/wikis/02beb47330/w/

I was unable to trigger (or even enable) AutoModerator in PatchDemo. @jsn.sherman, can you review this patch to see if you encounter the same issue as @Kgraessle? Also, @Kgraessle, I think AutoModerator is enabled in enBetaWiki, so we might be able to test it there in case this breaks anything.

I was unable to trigger (or even enable) AutoModerator in PatchDemo. @jsn.sherman, can you review this patch to see if you encounter the same issue as @Kgraessle? Also, @Kgraessle, I think AutoModerator is enabled in enBetaWiki, so we might be able to test it there in case this breaks anything.

This looks good to me:

image.png (884×1 px, 146 KB)

I noticed that my preload template isn't rendering correctly:

image.png (237×1 px, 27 KB)

but the tokens are getting added in and the links work, so I think it's unrelated.

Change #1165634 merged by jenkins-bot:

[mediawiki/extensions/AutoModerator@master] Add parameters to False reporting page

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

I'm seeing some weirdness in the report links when testing on testwiki:
https://test.wikipedia.org/wiki/User_talk:~2025-25261-8

image.png (486×1 px, 119 KB)

How to configure the parameters since in eswiki we only have the button active, the sending of talk messages is disabled, how do I configure the parameters button?

How to configure the parameters since in eswiki we only have the button active, the sending of talk messages is disabled, how do I configure the parameters button?

The parameters will be available wherever there are feeds of changes, like Watchlist, Special:Contributions and History.

Screenshot 2025-07-23 at 12.20.58.png (48×937 px, 25 KB)

Screenshot 2025-07-23 at 12.21.12.png (47×937 px, 33 KB)

I was talking about this, I forgot.

<includeonly>{{subst:Bot bug report on [[Special:Diff/$1| review]]
|Page where the error occurred = [[$2]]
|Description and comments about the error =
}}</includeonly>

I was talking about this, I forgot.

<includeonly>{{subst:Bot bug report on [[Special:Diff/$1| review]]
|Page where the error occurred = [[$2]]
|Description and comments about the error =
}}</includeonly>

One of the changes we made was to link directly to the preload template on the special pages I mentioned earlier. That way, the template will have the preloaded rev ID and page name.

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

[mediawiki/extensions/AutoModerator@master] Fix how links are built on false positive report page

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

Change #1172506 merged by jenkins-bot:

[mediawiki/extensions/AutoModerator@master] Fix how links are built on false positive report page

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