Page MenuHomePhabricator

Notifications from multiple Wiki sites do not work
Open, MediumPublicBUG REPORT

Description

Steps to reproduce

  1. Menu -> Notifications
  2. (optionally to load every notification) View archived notifications

Expected results

A list of notifications (e.g. "User left a message on your talk page") at least from Italian Wikipedia, where I mostly collaborate and receive messages.

Actual results

A single notification on Commons site, back to 2015!

Environments observed

App version: 2.7.50322-r-2020-06-08, but this is reproducible since months! (It worked roughly one year ago)
Android OS versions: 10 and 7.1
Device model: MI 9T, Samsung Galaxy S
Device language: English

Event Timeline

Italaid created this task.Jun 28 2020, 6:58 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 28 2020, 6:58 AM
Legoktm removed a subscriber: Notifications.
Restricted Application added a project: Growth-Team. · View Herald TranscriptJun 28 2020, 7:42 AM

It seems that with commit 3ea6faf Commons URL is used to get all notifications. Hopefully this can help you guys.

Dbrant added a subscriber: Dbrant.Jul 1 2020, 12:07 AM

It should not matter which wiki is queried. The API should be returning notifications for all wikis.

Pinging @MMiller_WMF - could your folks have a look at why the API doesn't seem to be returning notifications for all wikis in this instance?

@Etonkovidova -- could you please look into and try to reproduce this?

I've noticed that it is sufficient that in the API call the parameter notwikis contains the value "*" in order to retrieve an empty list.

I've tested these on my MediaWiki sandbox:

  • notwikis=* -> empty list
  • notwikis=*|<anything> -> empty list
  • notwikis=<anything>|* -> empty list

But it works if I specify the list of wikis:

  • notwikis=itwiki -> all my notifications from itwiki
  • notwikis=itwiki|commonswiki -> all my notifications from itwiki + commonswiki

@Italaid - thank you for reporting the issue. Can you please to confirm the following

  • Did you see the issue on Special:Notifications page? Or it's also on the Notification badge menu, e.g.

  • When you're logged in on Italian wikipedia, you still do not see the notifications from Italian wikipedia?

Hi @Etonkovidova, when I'm logged in Italian Wikipedia I can receive notifications (for sure from Italian Wikipedia, I do not have recent notifications from other wikis).
Also on Special:Notifications page I can see the list of notifications. So everything seems fine for me on the site.

Instead if I query

action=query&format=json&meta=notifications&notwikis=*

the result is still:

{
    "batchcomplete": "",
    "query": {
        "notifications": {
            "list": [],
            "continue": null
        }
    }
}

Thanks, @Italaid!
(1)

I do not have recent notifications from other wikis.

I checked the db for your phabricator username - Italaid, assuming that you are using that username on wikis,and confirmed that you do not have unread cross-wiki notifications.

So, the result of

action=query&format=json&meta=notifications&notwikis=*

showing empty "batchcomplete" seems to be correct. If you've marked all your notifications as read, then the result of the query will be empty. If you un-mark one notifications as 'unread' and run the above querry again -you should see some results returned.

(2)

Also on Special:Notifications page I can see the list of notifications. So everything seems fine for me on the site.

Great that you confirmed that. Just a reminder, Special:Notifications will show cross-wiki notifications only if some of them are not read yet. If all cross-wiki notifications are marked as read - they won't be displayed on Special:Notifications. But the notifications of the wiki that you are presently logged in will be always displayed.