Easy Access to Historical Wiki Source

Description

Expose markdown source for historical wiki versions.

Proposal

Provide a link on each version of a historical wiki page which shows a read-only copy of the raw markdown source for a historical wiki versions. This could be a hyperlink to a separate page or a tabbed view.

Links / references

Could be combined with to gitlab-ce#17906

Documentation blurb

Background

We recently had an copy/paste markdown "oops" moment where an entire page was replaced with the wrong content. This page contained lots of formatted content. At first we were not concerned because we assume we could revert the previous version from the wiki history. However, to our surprise, this wasn't available. Not only that, but we couldn't even get a copy of the original markdown to do our own manual revert.

The only workarounds were to spend a significant amount of time:

  • copying the original text and reformat
  • or access to the database (this not only takes some time since it's not common, but only works on self-hosted solutions)

Use cases

Editors of wiki pages

Feature checklist

Make sure these are completed before closing the issue, with a link to the relevant commit.

  • Feature assurance
  • Documentation
  • Added to features.yml
Assignee Loading
Time tracking Loading