Page MenuHomePhabricator

Create API to expose editnotices
Closed, ResolvedPublicFeature

Description

Editnotices for pages are not currently exposed in the API, but are expected to be used by any interface of a Wikipedia editor. This implies that the information should be easily retrievable.

It should be noted that the VisualEditor api has it's own private implementation of listing all edit notices that should be presented to users: https://en.wikipedia.org/w/api.php?action=visualeditor&format=json&paction=metadata&page=List_of_emoticons&uselang=en&oldid=846338965

This should probably be moved to core as well as be exposed via restbase or something similar.


Version: 1.21.x
Severity: enhancement

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:24 AM
bzimport set Reference to bz43683.
bzimport added a subscriber: Unknown Object (MLST).

I wonder whether it would be better for prop=info to return the names of the messages containing the notice instead of parsing them itself. The client could parse these using action=parse if it wants HTML.

The main drawback to parsing them in prop=info is that parsing is expensive; prop=revisions, for example, will error out if asked to parse more than one revision, and if we'd add editnotices with parsed output to prop=info we'd have to do something similar there.

On a side note, I still don't understand what happened with r48276. Per-page edit noticed were half removed, but the removal wasn't finished even after this was pointed out, and then they were added back 2.5 years later.

Change 74963 had a related patch set uploaded by Umherirrender:
Api: Add editnotices to prop=info

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

Change 74963 abandoned by Umherirrender:
Api: Add editnotices to prop=info

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

TheDJ renamed this task from Add editnotices to prop=info to Create API to expose editnotices.Aug 9 2018, 9:17 AM
TheDJ updated the task description. (Show Details)
TheDJ removed a subscriber: wikibugs-l-list.
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM

Change 921405 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] [WIP] Fix 'preload' and add 'editintro' in API prop=info

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

Change 921405 merged by jenkins-bot:

[mediawiki/core@master] Add 'preloadcontent' and 'editintro' in API prop=info

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