Page MenuHomePhabricator

EchoApi.markAllRead( 'local', 'all' ) has no effect
Closed, ResolvedPublicBUG REPORT

Description

When I test in my browser's console with any Wikipedia, (new mw.echo.api.EchoApi()).markAllRead( 'local', 'all' ); has no effect,
but only markAllRead( 'local', [ 'message', 'alert' ] ); works.
It is not the spec, I guess.

Event Timeline

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

Change 652212 had a related patch set uploaded (by Lens0021; owner: Lens0021):
[mediawiki/extensions/Echo@master] Allow 'all' for ApiEchoMarkRead's sections param

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

Lens0021 changed the subtype of this task from "Task" to "Bug Report".Mar 24 2022, 6:34 AM

Change 652212 merged by jenkins-bot:

[mediawiki/extensions/Echo@master] Handle the missing 'all' type as specified in the doc

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