Page MenuHomePhabricator

Improve Automoderator's revert message
Closed, ResolvedPublic2 Estimated Story Points

Description

In automoderator-wiki-revert-message message, Automoderator redirects users to the Growth's newcomer homepage, but this homepage is only available to registered users. Anonymous users (and probably temporary accounts in the future) are redirected to the login page when they click this link, which is not what they wants when they just want to "learn more about editing". Actually, I am not sure why was the Growth's newcomer homepage chosen for "more information about editing".

While reporting this on Discord, another user also touched on another point, which I will quote below:

While you’re fooling with that, it shouldn’t say “Unfortunately”.
It’s not unfortunate that the edit was reverted - that’s simply a description of a fact, and the bot is working as expected. If you truly must have “unfortunately” in there, it belongs in front of the next sentence: “Unfortunately, because the model…”

Event Timeline

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

Hi, I'm the aforementioned "another user", just here to reaffirm that I think it's better without the "unfortunately" at all (don't apologize for your bot! just tell people how to fix it if it screws up), and also to point out that "automated system which uses" should be "automated system that uses".

For the IP users who don't have a newcomer homepage, perhaps it would make sense to have the line instead read "If you have any questions about editing, you can ask at [[WP:TEA|the Teahouse]]." ?

This makes sense, thanks for reporting! I think we intended the behaviour to be that we only showed this message for logged-in users but we just missed that requirement at some point.

I'm not sure where best to link to for unregistered users, however. The Teahouse, as suggested above, is enwiki-only, and we need a venue that will be present on every Wikipedia. Perhaps we would just need to remove this line altogether for unregistered users?

Help:Getting started is another possibility, but I don't think that's on all the wikipedias either.

We could make it configurable, like it is for the Help links on the Newcomer Homepage, or just incorporate those configured links perhaps.

Since it is difficult to have a link that works across all wikis making it configurable seems like a way to prevent any dead ends.

For the talk page message
The last bullet point of the current talk page message that states "To learn more about editing visit your Newcomer Homepage." will be replaced with "To learn more about editing, please view this help page: [page]"

For the configuration page (Figma)
An additional section will be added to the "Talk page message", where admins would be able to input the page that would work best for their wiki.
Section includes:

  • Title: Link to a page to help with editing
  • Description: The talk page message for unregistered contributors will display a link to a page to help them with editing. This link can be configured to be any link in the wiki.
  • Two text input fields:
    1. Destination page
    2. Label
Design
Form for Automoderator v1.1.png (1,440×2,037 px, 201 KB)

note that we'll need to:

  • pick a default url
  • comment on each community deployment task and inform them of the new config with a mention this task
  • update deployment docs
• Scardenasmolinar changed the task status from Open to In Progress.Jan 21 2025, 6:46 PM
• Scardenasmolinar claimed this task.

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

[mediawiki/extensions/AutoModerator@master] Change AutoModerator's talk page message

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

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

[mediawiki/extensions/AutoModerator@master] Add messages for help page configuration

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

Change #1114041 merged by jenkins-bot:

[mediawiki/extensions/AutoModerator@master] Add messages for help page configuration

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

@Dogu, @Bonaditya, @ZhaoFJx, @Nemoralis, @Yahya, @HideonRosie, @Rooiratel, and @Renvoy, hello! We have just merged new translatable strings that will re-word the user talk page message and add a new community configuration field to add a personalized help page link per wiki. Can you help us translate these new messages in your respective languages when able? Many thanks in advance!

Bengali translation completed.

Azerbaijani translation completed

Chinese translation completed

Was just giving this another review and I noticed if you leave the label field on the community configuration form blank, the link no longer appears in the message at all.
This may be expected behavior, but I was wondering if we want to fall back to the Page title if one is provided but no label is? This may be an @OTichonova question.

Was just giving this another review and I noticed if you leave the label field on the community configuration form blank, the link no longer appears in the message at all.
This may be expected behavior, but I was wondering if we want to fall back to the Page title if one is provided but no label is? This may be an @OTichonova question.

Yes, this is what I was (poorly) asking about in my code review last week; My question is why do we need the label? Why not just use the page name link like we do with the false reporting page?

We could also throw a validation error whenever a link is added but a label is not. I don't have enough CC experience to know if this is possible. @Kgraessle, you might know. Would this be possible?

We could also throw a validation error whenever a link is added but a label is not. I don't have enough CC experience to know if this is possible. @Kgraessle, you might know. Would this be possible?

Just noting @Scardenasmolinar and I addressed this in our one on one.

We could also throw a validation error whenever a link is added but a label is not. I don't have enough CC experience to know if this is possible. @Kgraessle, you might know. Would this be possible?

Just noting @Scardenasmolinar and I addressed this in our one on one.

Thanks for your help with that. I've added validation to ensure that both fields are filled.

We decided as a team that it might be best to just reference the page title instead of using a separate URL and label. We'll need to reach out to the folks who have translated the existing labels to have them updating things after the change. This will involve removing the new messages and potentially adding one (or maybe none) in its place. @Scardenasmolinar will follow up.

@Yahya, @Nemoralis, and @ZhaoFJx, after discussion with the other engineers and our designer, we have decided to remove the label configuration from this field. This means the only configurable field is the help page. That page name will appear in the message. The only update you would have to make on this translatable string would be to remove that last parameter.

@Scardenasmolinar Could you clarify which string it is? Thanks!

@Scardenasmolinar Could you clarify which string it is? Thanks!

Sure, it's automoderator-wiki-revert-message-help-page, although we have not merged the changes yet, so they will not appear in TranslateWiki yet.

@Scardenasmolinar I was testing this locally and seeing some validation errors appear whenever I save any community configuration fields with page titles. Are you seeing the same? I checked out the main branch and I'm still seeing the issue so I don't think it's your patch that introduced it. I tested on test wiki though and am not seeing it 🤔 . It looks like a parse error from CC.

SyntaxError: Unexpected non-whitespace character after JSON at position 51 (line 1 column 52) at parse (<anonymous>) at ajaxConvert

Let me update CC on my local environment and I'll let you know.

I am not seeing any CC errors. Have you pulled the latest version of CC and core? Also running a composer update might help clear that error out.

I am not seeing any CC errors. Have you pulled the latest version of CC and core? Also running a composer update might help clear that error out.

Ok, I did a fresh build and that seemed to fix it. Thanks!

Change #1113894 merged by jenkins-bot:

[mediawiki/extensions/AutoModerator@master] Change AutoModerator's talk page message

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

verified behavior on testwiki; waiting for deployment to all groups to resolve