ejucovy/django-svenweb — Issue #3: "Revert to this version" feature
Author: ejucovy
Created: 2011-12-10 17:22:37+00:00
State: open

There should be a button that allows properly authorized users to "revert to this version" of a document.

It would be displayed on the version view (like http://www.coactivate.org/projects/opencore/project-home/version?version_id=314) and on the diff view (like http://www.coactivate.org/projects/opencore/project-home/version_compare?version_id=315&version_id=314)

It would be available to users with the WIKI_EDIT permission, or possibly both WIKI_EDIT && WIKI_HISTORY should be necessary (in order to avoid *assuming* a strict hierarchy of permissions)

Some thought should go into the commit message. Opencore's wikis auto-inject a commit message like "Reverting to version 312" -- we could do that, or allow users to add their own commit message, or both. I'm a little worried that "reverting to version 312" is introducing bad information (since that means version 312 of the page, which is <= the bazaar repository's global revision number) .. but it's easy to reconstruct the actual revision number in the repo from that, so I think it's fine.