Page MenuHomePhabricator

ApiEchoNotifications deletes all notifications if passed notformat=text
Closed, ResolvedPublic


If notformat=text is passed to ApiEchoNotifications, it deletes all notifications instead of returning any of them. It does not seem that this is reversible without directly editing the database.

It looks like rECHOcf7100963849: Remove deprecated formatter removed the "legacy" formatter that notformat=text was attempting to use, causing formatting to just fail, and rECHO6e2236db8109: Moderate notifications caused Echo to delete notifications that cannot be formatted.

The best thing may be to just remove the 'text' option if it's no longer supported.

Event Timeline

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

Change 334133 had a related patch set uploaded (by Sbisson):
Remove 'text' as a valid notifications output format

Change 334133 merged by jenkins-bot:
Remove 'text' as a valid notifications output format


Checking in betalabs:, I got the following:

    "error": {
        "code": "unknown_notformat",
        "info": "Unrecognized value for parameter \"notformat\": text.",
        "*": "See for API usage. Subscribe to the mediawiki-api-announce mailing list at <> for notice of API deprecations and breaking changes."
    "servedby": "deployment-mediawiki05"

Whereas, 'flyout', /* @deprecated */ and 'html', /* @deprecated */ options provide some helpful information about the deprecated options along with displaying the list of notifications - checked at

"\"notformat=flyout\" has been deprecated and will be removed soon. Use \"notformat=model\" to get the raw data or \"notformat=special\" for pre-rendered HTML."
    "query": {
        "notifications": {
            "list": [

Yep, 'flyout' and 'html' are deprecated but text was completely removed.

QA recommendation: Resolve.