Nothing Special   »   [go: up one dir, main page]

Page MenuHomePhabricator

VE API: Return structured information about edit notices so they can be filtered by clients
Closed, ResolvedPublic

Description

Currently the VE API just returns all edit notices in a flat API.

If we return this with meaningful keys, then clients can filter out specific messages they don't want to show.

Use case in DiscussionTools filtering out anoneditwarning edit notice.

Event Timeline

Change 656520 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/VisualEditor@master] [BREAKING CHANGE] ApiVisualEditor: Return notices as a keyed array

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

It's not even a breaking change: the API behaved like this until very recently, and was changed as a part of the fix for T263255. This patch restores the old format, but I verified that it doesn't cause a regression of that bug.

Change 656520 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] ApiVisualEditor: Return notices as an associative array

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

Esanders claimed this task.

Not much to sign off here either.