Page MenuHomePhabricator

Unread notification count is not updated after marking notification read
Open, LowPublicBUG REPORT

Description

On api.wikimedia.org, when I have unread notifications and go to https://api.wikimedia.org/wiki/Special:Notifications and see notifications for other sites. If I click 'mark group as read', the notification count does not update and only updates after page reload.

Event Timeline

apaskulin triaged this task as Medium priority.Oct 19 2020, 6:02 PM
apaskulin changed the subtype of this task from "Task" to "Bug Report".
apaskulin lowered the priority of this task from Medium to Low.Oct 26 2020, 3:29 PM

I researched the working of the notifications’ functionality. Notifications’ count updates in the “Unread” section after clicking “Mark as group” and data also changes. So, some similar functionality had already been implemented.
It could be researched with several files:

  1. Echo/modules/ui/mw.echo.ui.NotificationsInboxWidget
  2. Echo/modules/ui/mw.echo.ui.CrossWikiUnreadFilterWidget
  3. Echo/modules/ui/mw.echo.ui.PaginationWidget

Regarding my research, I think that some functionalities which would update the html have to be added in these files and data models which are related to it. Also while I was debugging code, I realized that events must take into account. For example there are some events in section “//Events” of mw.echo.ui.NotificationsInboxWidget. It also helps to update data on the page.

apaskulin removed the point value for this task.
apaskulin added a subscriber: Vlad.shapik.