Can anyone think of a method to completely remove edit revisions that have been reverted from the database, or even just the revision history?
Before implementing spam prevention measures, we had a large number of edits created by spam bots that flooded the revision history of a fairly large number of pages. All of the edits were reverted (almost always by the very next edit), but the revision history remains. In some cases, it's very large and obscures the true authors of the page and makes diffs cumbersome.
I've seen the revision hiding option in MediaiWiki, but it isn't really designed for what we need, because it makes the revision inaccessible, but the entries are still logged in the history. And it's an edit-by-edit process (which makes sense for its intended purpose).
I know we could wipe the edit history altogether, and we may end up doing that on some pages, but ideally we could remove these "zero sum" edits and the credits of the original edits would remain.
Ideas?
-Jeff
Jeff Lane skrev:
[...] ideally we could remove these "zero sum" edits and the credits of the original edits would remain.
Ideas?
A bot could compare revision [n] with revision [n+2], and could so determine if the revision inbetween shluld be deleted, like so (menmonics):
if revision[n] = revision[n+2] then Delete revision[n+1];
Perhaps subject for a new useful extension named "Extension:DeleteRevertedRevisions"?
Regards,
// Rolf Lampa
Rolf Lampa wrote:
Jeff Lane skrev: A bot could compare revision [n] with revision [n+2], and could so determine if the revision inbetween shluld be deleted, like so (menmonics):
if revision[n] = revision[n+2] then Delete revision[n+1];
Perhaps subject for a new useful extension named "Extension:DeleteRevertedRevisions"?
Thanks for the suggestion Rolf. I think the difficult part will probably be in removing the revision once it has been identified.
-Jeff
Jeff Lane wrote:
Thanks for the suggestion Rolf. I think the difficult part will probably be in removing the revision once it has been identified.
-Jeff
Platonides wrote:
As I understand it, Oversight only removes the revision from viewing, it doesn't actually remove it from the database, or hide the summary entry from the revision history. Is that not the case?
-Jeff
Jeff Lane wrote:
Platonides wrote:
As I understand it, Oversight only removes the revision from viewing, it doesn't actually remove it from the database, or hide the summary entry from the revision history. Is that not the case?
-Jeff
It isn't removed from the database, but it can, for all effects, make it disappear. No entry on history, no page to view...
Platonides wrote:
Jeff Lane wrote:
As I understand it, Oversight only removes the revision from viewing, it doesn't actually remove it from the database, or hide the summary entry from the revision history. Is that not the case?
It isn't removed from the database, but it can, for all effects, make it disappear. No entry on history, no page to view...
OK, thanks. I must have misunderstood it based on the description, and this (apparently mistaken) discussion page comment: http://www.mediawiki.org/wiki/Extension_talk:Oversight#Hiding_the_revision_s...
We'll look into modifying Oversight or Oversight2 to automate the process based on a given set of rev_id numbers.
-Jeff
Jeff Lane wrote:
Platonides wrote:
Jeff Lane wrote:
As I understand it, Oversight only removes the revision from viewing, it doesn't actually remove it from the database, or hide the summary entry from the revision history. Is that not the case?
It isn't removed from the database, but it can, for all effects, make it disappear. No entry on history, no page to view...
OK, thanks. I must have misunderstood it based on the description, and this (apparently mistaken) discussion page comment: http://www.mediawiki.org/wiki/Extension_talk:Oversight#Hiding_the_revision_s...
We'll look into modifying Oversight or Oversight2 to automate the process based on a given set of rev_id numbers.
-Jeff
It may be able to do both. I think that both 'completely hide', and 'show striked' are part of rev_deleted. The information there is not clear.
mediawiki-l@lists.wikimedia.org