This task is about providing as correct and precise as possible data about deletes and restores patterns.
First patch of restore semantic revision has been made (see T179690). In that patch, historical data is set to null before any restore in a page history.
Idea here is to enhance what exists:
- Add historical threads for pages with restores (revisions in that page might have been merged-in from different pages, list those, with correct times of overlap)
- Provide correct historical titles when available (single historical thread), or a list of potential historical titles.
- Join archived revisions to pages by title
Some examples of complex flows of events are described here and here