Show/diff/restore for wiki versions before a rename

What does this MR do and why?

Builds on Add Wikis::PageHistory, follow renames with new FF (!260187 - merged). ([FF] `wiki_page_history_follow_renames` -- Foll... (#632767))

With the wiki page history now following renames, we need to likewise follow renames when doing other historical operations. Here we correct follow renames for show, diff and restore for page versions.

Having the rename commits themselves diff correctly the following stacked MR Show renames in wiki page commit diffs (!260204 - merged); this MR only covers following renames to the correct version.

Screenshots or screen recordings

What Before After
Show v2
image
mr2-before-show-v2 mr2-after-show-v2
Diff v4
image
mr2-before-diff-v4 mr2-after-diff-v4
Restore from v2
image
Impossible: can't reach the show page! mr2-after-restore-modal

How to set up and validate locally

  1. Follow the setup steps from Add Wikis::PageHistory, follow renames with new FF (!260187 - merged) to build the dataset and enable the FF.
  2. Navigate to the pages as indicated in the "What" column above, and compare "Before"/"After" on master and this branch respectively. :)

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Asherah Connor

Merge request reports

Loading
Loading