Page MenuHomePhabricator

When marking AFD, sends the user two echo notifications
Open, LowPublic

Description

Description:
Marking a page for deletion results in a posting to user talk page, this triggers two notification: mark for deletion and talk page post.

Description from merged task
In the logs for a page (all logs), speedy deletion tags are logged twice (example). This seems to be because the entry in the deletion tag log is class="mw-logline-pagetriage-deletion" while the page curation log is class="mw-logline-pagetriage-curation". I am told that the tags are only logged if Page Curation is used, but I have not tried to reproduce.

Details

Reference
bz47891

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:24 AM
bzimport added a project: PageTriage.
bzimport set Reference to bz47891.
bzimport added a subscriber: Unknown Object (MLST).

Moving to PageCuration component, it should probably use the BeforeEchoEventInsert hook to abort one of the two notifications.

Quiddity set Security to None.
Novem_Linguae renamed this task from Page Curation mark for deletion sends two notifications; use BeforeEchoEventInsert hook to When marking for deletion, logs twice in Special:Log and sends the user two echo notifications.Jul 17 2022, 9:52 AM

This bug's still around in 2022, 10 years later. At first glance, looks like the API call is getting made twice for some reason. Will investigate.

image.png (953×2 px, 327 KB)

Two log entries bug - Looking at the code, this is intentional. It makes one entry in the "Page Creation Log" and one entry in the "Deletion Tag Log". It only looks like duplicate entries if you view "All Public Logs". I think this one is a wontfix.

Two notifications bug - Was able to reproduce this for AFD only today. Does not appear to affect CSD or PROD.

2022-07-17_161309.png (848×1 px, 112 KB)

Novem_Linguae renamed this task from When marking for deletion, logs twice in Special:Log and sends the user two echo notifications to When marking AFD, sends the user two echo notifications.EditedJul 19 2022, 1:24 AM

I've split the double logging portion of this ticket to T313280. This ticket will now focus on the double notifications for AFDs.

image.png (360×607 px, 40 KB)

The talk page message and deletion notifications are of a very different nature, so this feels like expected behavior to me. We do suppress similar notifications in some cases (like when someone writes on your talk page, and also pings you in that same message), but this isn't really such a situation.

I think the fix would be to not trigger the "tagged for deletion" notification if also writing to user talk page. Should be one or the other.

If user is able to not write to user talk page via an option, then we need some kind of check. If user always has to write to user talk page, then we can delete the notification.