Page MenuHomePhabricator

Notification API: For reverts, include relevant talk page message ID (if one exists)
Open, Needs TriagePublic

Description

Many times, a revert is accompanied by a message on the user's talk page. In the Notifications API, we'd like any relevant user talk page message IDs to be included with revert notifications.

Essentially, take the revert ID, use the Talk Page API (https://en.wikipedia.org/api/rest_v1/page/talk/User_talk:Jimbo) and see if any of the HTML snippets include the revert ID. If so, that talk page message's sha should be returned in the notification API as part of the revert notification object.

Event Timeline

MattCleinman renamed this task from Notificiation API: For reverts, include relevant talk page message ID (if one exists) to Notification API: For reverts, include relevant talk page message ID (if one exists).Dec 3 2021, 12:34 AM
mewoph subscribed.

Moving to needs discussion for priorization

In general, it's not easy to determine the edit in which a piece of text was added, although for talk pages it's less problematic and maybe the DiscussionTools API can help. It's probably more useful to include the section ID or DiscussionTools comment permalink though?