ProfessionalWiki / PersistentPageIdentifiers

MediaWiki extension that adds persistent identifiers to wiki pages
GNU General Public License v2.0
1 stars 0 forks source link

Handle revision undeleted #32

Open malberts opened 20 hours ago

malberts commented 20 hours ago

For #10

Normal page deletions already keep their page ID, and therefore persistent ID

Screencast_20241113_215449.webm

Marked as draft because I have not figured out how to reproduce a real scenario where the original page ID is missing after deletion.

The docs mention:

Note that because of MediaWiki supporting partial undeletion and history split/merge, there is no guarantee ar_page_id matches the page ID it's going to be undeleted to.

My attempt at partial undeletion (picking only some revisions) still results in the same page ID.

History split/merge sounds like something that might have other complications when it comes to deciding which persistent ID to keep. However, when merging page A revisions into Page B using Special:MergeHistory, it just adds the revisions to Page B, and Page B keeps its persistent Id.