Page MenuHomePhabricator

Refactor handling of deleted revisions
Open, Needs TriagePublic

Description

Relevant methods:

  • BasePage.loadDeletedRevisions
  • BasePage.getDeletedRevision
  • BasePage.markDeletedRevision
  • APISite.deletedrevs

Store deleted revisions as Revision objects. To avoid incompatibilities, create new methods and deprecate old ones. Keep in mind that deleted revisions are referred to by their timestamps but these are not unique.

The "mark for undelete" feature can be moved to a new extension of Revision class.