Page MenuHomePhabricator

The mentions notification fails to notify a user about its success or failure
Closed, ResolvedPublic

Description

Description: The Mentions notification is an alert provided by the echo extension that occurs when your username is mentioned by someone else, with a link on any talk page (other than yours). This notification is already turned on by default on every Wikimedia user page. However, if a user wants to get notified about the success or failure of every user he or she has mentioned, the user can do so in the preference section.

I changed my preferences here because I wanted to get notified on every successful and failed mentions, created a new account for testing purposes and mentioned the newly created username in my original MediaWiki page.

Bug: The mentions worked successfully but I didn't get notified about its success as the sender even though I had changed my preferences to allow this feature of receiving notifications on every successful or failed mentions I send. The notification documentation here clearly states that a user is supposed to receive a notification of a failed mention if a mention to another user was not sent and described what can cause a failed mention. Example, if you try to mention a user that does not exist, or you exceed the limit of mentioned users in a single edit (50 on WMF wikis), the mention will not be sent. I tried mentioning a user that doesn't exist on my talk page (this means it wasnt sent) but I didn't get notified about the failure.

In summary, yes the mentions notification itself works, but the users who send the mention are supposed to be notified about its success or failures.

Steps to Reproduce:

Actual Results:

  • You will not get notified about the success or failure.

Expected Results:

  • You should've been notified about the success or failure.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Didicodes renamed this task from The **mentions** notification tool fails to notify a user about its success or failure to The mentions notification fails to notify a user about its success or failure .Apr 4 2019, 10:49 AM
Didicodes updated the task description. (Show Details)

but for some reason, I don't get notified at all.

Please provide exact steps to reproduce the problem. Nobody can reproduce problems without any steps to reproduce. :) Thanks a lot!

but for some reason, I don't get notified at all.

Please provide exact steps to reproduce the problem. Nobody can reproduce problems without any steps to reproduce. :) Thanks a lot!

Done!

@Didicodes - I re-checked mentions success/failure notificaiton(following the steps in the ticket) - and I got some intermittent failure of receiving such notifications. Would it be possible for you to check it again (especially you mentioned that you were sending mention to a new user)? If you give me the username that you use for sending mentions - I can check in database if (and which ones) notifications were recorded.

@Didicodes - I re-checked mentions success/failure notification(following the steps in the ticket) - and I got some intermittent failure of receiving such notifications. Would it be possible for you to check it again (especially you mentioned that you were sending mention new user)? If you give me the username that you use for sending mentions - I can check in the database if (and which ones) notifications were recorded.

@Etonkovidova My apologies for responding late.

and I got some intermittent failure of receiving such notifications.

By this, do you mean you didn't get any notification when you tried to mention a user? If yes, then that is exactly what this ticket is about (this is exactly what I was experiencing).

If you give me the username that you use for sending mentions - I can check in the database if (and which ones) notifications were recorded.

Yes, so I created a new account on Wikimedia just to test the mentions feature because I was writing documentation for Mentions . You can find the documentation here. The username for the newly created account is Edidiong Asikpo and I used my mentioned Edidiong Asikpo on my talk page and vice versa but it still didn't work.

I hope I answered your questions correctly? If not, kindly drop a message here. Thanks!

@Didicodes - thank you for youor testing and sorry for the delay in replying. I tested mention-success and mention-failure notifications, they behave normally. Keep in mind that - you cannot mention yourself(no notifications will be sent), and there are limits of sending notifications to the same user from one page (if it's ok for your testing, just delete the text from your page).

Checked the user Edidiong Asikpo and the User talk:Edidiong Asikpo and database notification tables.

(1) User Edidiong Asikpo received two mention-success notifications (mentioning Didicodes).
User Didicodes did not receive mention-success notifications, although looking at the user talk page it seems that the notification should be sent (if, of course, User Didicodes has enabled it in the preferences at the time of mentioning).

(2) The mention format on the page - User talk:Edidiong Asikpo - looks correct to me, so if user Didicodes enabled mention-success in User Preferences before writing Mention, the mention-success notification should be received.

I think it's worth re-testing with your users again. It'd be great if you

  1. double-check if user Didicodes has enabled mention-success notifications in Preferences (I checked in user properties table in db and it's on, but please check to be absolutely sure)
  2. as user Didicodes post a mention to user Edidiong Asikpo. You may use : (a colon to get Reply indented). Please do not pre-append a user name with @
  3. you may also test mention-failure notification
Etonkovidova claimed this task.

Tentatively close it as Resolved. I've checked the functionality for possible regression - works as expected.