Add "raw", "print", and "revert" links to the "info" action page.

Unlike the behaviour in version 1.5, in version 1.6 the revision history (action "info") has no more a link to revert to an older page revision. Instead, you will have to "view" the older revision, and then select "revert" from the drop down menu. While this might be acceptable for "print" and maybe also for "raw", it is not acceptable for "revert": It makes restoring of older page revisions somewhat more complicated and less intuitive.

This is exactly the contrary of what MediaWiki did. They used to do it like we in 1.6: first recall the older revision, then edit it in order to revert to that revision. They now implemented something like we used to have in 1.5: in the revision history now there are links "revert to this revision".

I think it is more than enough to complicate the life of everyday editors in a wiki with things like CAPTCHAs for the sake of anti-vandalism, we should not make it complicated to act against vandalism, too.

There should be a link "revert to this revision" for every revision in the revision history.


The problem was that all those action links were GET requests in 1.5. So once some bot reached info action page, it triggered lots of actions, putting a high load onto the wiki server (and if ACLs allowed revert and delete for anon users, havoc broke lose). I tried to refactor this into some new form, but combining the diff selection FORM and using POST for each revision didn't work, thus I removed it.

BTW, IIRC we didn't have any spam here since we switched to 1.6.

I would appreciate to have the old, easier revision-revert back. I administrate a fistful Wiki-Installations for plain non-technical Users and is it hard enough to reassure time and again 'no you cannot destroy anything.. here.. you can go back and .. start again'. One step more confuses and unsettels them. -- MelaEckenfels 2008-03-16 19:20:57

Mock-up revision history

info.png

Mock-up revert action

revert.png


I got back the "revert" link in the info page adding this line:

                     actions.append(render_action(_('revert',formatted=False), {'action': 'revert', 'rev': '%d' % rev}))

in /usr/lib/python2.4/site-packages/MoinMoin/action/info.py at line 110. In unified diff format:

--- infooriginal.py     2008-03-18 20:32:49.000000000 +0100
+++ info.py     2008-03-18 20:33:35.000000000 +0100
@@ -107,6 +107,7 @@
                     actions.append(render_action(_('view', formatted=False), {'action': 'show'}))
                 else:
                     actions.append(render_action(_('view', formatted=False), {'action': 'recall', 'rev': '%d' % rev}))
+                    actions.append(render_action(_('revert',formatted=False), {'action': 'revert', 'rev': '%d' % rev}))
                 if count == 0:
                     rchecked = ' checked="checked"'
                     lchecked = ''

--ClaudioPisa


Just finally migrated a busy intra wiki from 1.5 to 1.6 and was very disappointed to see revert gone from the info page. It was so good in cleaning up after larger mishaps with xmlrpc scripts or just busy but clumsy users when you were able to see which version you need to revert to directly from the info page. Now this feels like my Nokia phone where I have to click many times to be able to do anything. Otherwise 1.5 to 1.6 feels like a leap foward, thanks. :( -- fen 2024-04-28

Hmm, why not using the revert link on top of the page? And why don't you use the recent 1.8.1 version? ReimarBauer/Photo/img.png -- ReimarBauer 2008-12-26 21:08:06

Well when having to revert bulk of pages from stray xmlrpc based bulk update or after a busy but clumsy user it was very quick to see from info page (from sizes or updaters) which version you had to go back to and with one click revert, now initial impression is that this is 3-4x slower from UI perspective. Feels like regression in UI. What comes to using 1.6, we are already happy that we were able to get over 1.5 to 1.6 migration (markup changes with hours of running migration scripts and API changes that affected our custom extensions) so going to 1.8 on same hop would have been pushing our luck too far. Will go forward when things have stabilized. Thanks again. -- fen 2024-04-28



CategoryFeatureRequest

MoinMoin: FeatureRequests/ReimplementRevertLinkForInfoAction (last edited 2008-12-27 10:01:36 by 85-23-18-40-Korvensuora-TR1)