Page MenuHomePhabricator

Support Memento for accessing old article revisions
Open, Needs TriagePublic

Description

There are a pair of related specs by Herbert Van de Sompel to allow "time travel" among versions on the web:

Briefly, RFC 7089 says that our HTTP server should accept the Accept-Datetime header as a request for an old version of a given article. We'd then look up the revision ID active at that datetime and return the appropriate version of the page, with a Memento-Datetime header in the response.

RFC 5829 says we ought to add <link rel="version-history"> <link rel="latest-version"> <link rel="predecessor-version"> etc tags to our <head>.

If we honor Accept-Datetime, third-party clients which annotate or refer to wikipedia resources can easily get to the proper version of the resource based on timestamp, without having to grok our bespoke revision ID scheme. This means the annotations can be guaranteed to apply correctly, even if the article has been changed since they were made.

Event Timeline

@cscott: Does that extension fulfil your needs? Or do you expect this to be in MediaWiki core? (Or that extension to get deployed on WMF sites?)

That extension does look like it does the right thing. It would certainly be nice to get it deployed on WMF sites! I'll have to install it locally and play around w/ it in context of T164655 to ensure it's doing all the right things, but if it's good enough for the W3C it's probably good enough for me. ;)

That extension does look like it does the right thing. It would certainly be nice to get it deployed on WMF sites!

See https://www.mediawiki.org/wiki/Review_queue

@cscott: So can this task be closed? If not, what is missing? Or do you want to turn this task into an extension review and deployment task?

@cscott: Could you answer my last comment please?

Does this entail processing the old revisions of pages to include concurrent revisions of templates and link to concurrent revisions of pages as well?