Closed (fixed)
Project:
Revision Deletion
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2011 at 12:05 UTC
Updated:
17 Apr 2013 at 02:54 UTC
Jump to comment: Most recent file
Comments
Comment #1
nancydruNone that I am aware of. This one will get done, just not today.
Comment #2
basicmagic.net commentedsubscribe
Comment #3
bryancasler commentedsubscribe, found this article but don't know how to use it
http://www.fivepaths.com/drupal-revision-removal-and-database-cleanup-by...
Comment #4
giorgio79 commentedYou can easily create a Views for revisions, when adding a new view you just select revision based instead of node based...
Add a VBO to it and you have a super flexible revision manager...
Comment #5
deminysubscribe
Comment #6
snupy commentedsubscribe
Comment #7
liliplanet commentedsubscribe thx!
Comment #8
robert.laszlo commentedThis would be helpful. What's the status of D7 port?
Comment #9
djg_tram commentedIs there any known activity on a D7 port? If not, I'll look into it but I wouldn't like to duplicate efforts.
Comment #10
nancydruI still don't have Git working, so I have not started this yet.
Comment #11
djg_tram commentedI only have a sandbox project of my own in Git but it seems to work all right. I'm on Windows.
I started to port, the mere syntactic part (database manipulations) is done, it's theoretically running but I get a seemingly infinite loop on the settings page (stuck in the list of all nodes eligible for deletion). I'll pick it up tomorrow because it's getting late around here.
Comment #12
nancydruI haven't even figured out how to get Smartgit to retrieve the module to the right place to work on...
Comment #13
djg_tram commentedThat I don't know, either, because I never tried. I use plain Git, with a Git GUI frontend, it must have come from http://code.google.com/p/msysgit/. Installed, followed the instructions on the Drupal project page and it works. Took a couple of minutes to find out how to check in modified files but it's fairly straightforward. I'd be glad to try to help you out in private msg or e-mail if needed.
Comment #14
djg_tram commentedI have the port ready. As far as I can tell, it's complete, although for reasons of security, the actual deletion is commented out (but it writes into the watchdog as if it was really done). I'd like to show it to you first before I upload it here. Shall I send it by PM here?
Comment #15
nancydruWhy not zip or tar it and attach it here so several others can test it too?
Comment #16
djg_tram commentedWhy not.
Lines 228 and 234 of revision_deletion.module have the comments around the actual deletion. By removing those lines it will delete, too.
Apart from the changes mandated by D7 (both internal like new database layer and visible like the deprecation of the Reset button in Settings, slightly modified URL for the settings page), there is only one major change: deleting now asks for confirmation before execution. Minor changes are like differences in UI wording and changing toggle setting options to checkboxes instead of yes/no radio buttons.
Comment #17
djg_tram commentedComment #18
nancydruThank you, Gábor. I will start testing in a day or so. Have to build something to test it with first.
Comment #19
dropbydrop commentedDid anyone try #17? is it safe?
Comment #20
bryancasler commenteddropbydrop, did you bite the bullet and try it? :) Wondering the same thing myself.
Comment #21
dropbydrop commentedI didn't
Comment #22
djg_tram commentedAs it is uploaded there, it doesn't actually delete, just lists what it should delete, unless you make the manual changes outlined in #16. So it should be safe to try... :-)
Comment #23
Wolfgang Reszel commentedHi, I tried #17 with removing the comments. I'll get the following error:
Call to undefined function node_invoke_nodeapi()
Comment #24
Pixeljumper commentedHi,
Any update on the Drupal 7 version?
Comment #25
djg_tram commentedOoops, that was a Drupal 6 function and I didn't notice it just because it was commented out. Sorry. Just remove the whole line.
As far as I can tell, with that modification it works all right. If NancyDru would commit it or allow me to do so, I'd be glad to have it available. But do test it first... :-)
Comment #26
nancydruIf you notice, I don't own the module, so I can't grant you commit access. Since I have some SAs (other modules) to process shortly, I may be forced to learn Git and then perhaps I can do it.
Comment #27
steven jones commentedJust wanted to note that I needed a tool that would remove all non-current revisions of nodes on my D7 site, and I just wrote this quick little module: http://drupal.org/sandbox/darthsteven/1468938 that works through the UI and has a drush command. It's currently deleting 900,000 excess revisions from a site with only 10,000 nodes, and is working just fine.
It doesn't have any of the 'garbage collection' features of this module though.
Comment #28
dropbydrop commented@Steven Jones could you make it a module?
Comment #29
steven jones commented@dropbydrop it is.
Comment #30
dropbydrop commented@Steven Jones
I mean do you plan for future to make it a module that can be installed through drush etc?
thanks
Comment #31
nancydruYou are welcome to co-maintain this module.
Comment #32
steven jones commented@NancyDru thanks for the offer, but I'm not sure I want to have another module to maintain, sorry.
@dropbydrop Sorry, but I don't want to make my sandbox a full project that would basically duplicate this one, but the code is there, and you are free to use it or free to incorporate it into this module.
Comment #33
Wolfgang Reszel commentedThanks for your sandbox module. It's exactly what I wanted and very useful when deploying a new website.
Comment #34
kingdee40 commentedTried #17 and removed comments between line 228 and 234 but it doesn't delete anything. It's still saying "There do not appear to be any revisions to delete or your selected revisions were deleted by another administrator."
Comment #35
sterndata commentedsubscribe
Comment #36
ar-jan commented@sterndata: please use the Follow button on the top right of the page...
Comment #37
seworthi commentedI just found this: Node Revision Delete
Its a D7 only module. I have not installed or tested, just posting information.
http://drupal.org/project/node_revision_delete
Comment #38
elijah lynnGood find Seworthi, I will check it out soon!
Thanks
Comment #39
csander commentedCould you elaborate on this at all?
Comment #40
hyperglide commentedAny update on the status of this thread and patch?
Thanks,
Hg
Comment #41
elijah lynnI think it is best to look at #37 ^^.
Comment #42
hyperglide commentedLooked at #37 also created #1875468: Integrate support for node_revision_delete and workbench_moderation. there is a limitation when using with the Workbench_Moderation module.
Comment #43
luksakIs the port working?
Comment #44
gifad commentedHi All,
While upgrading a site to D7, I used port #17 to set up a working version;
I had to :
- finish adapt to D7 API (node_load() ...)
- fix some typos
- most important, use the (new to D7) function node_revision_delete(), which does the hard job (mostly deal with field_revision_body table, where all these megabytes are...)
Used for 3 month in production sites, with no trouble - but "use at your own risks", i.e. at least make a backup before using...
kind regards,
Comment #45
lolandese commentedRef. #44.
Comment #46
nancydruCommitted with attribution.
Comment #47
luksakI can't see a commit for this... Did you push it?
Comment #48
nancydruhttp://drupalcode.org/project/revision_deletion.git/commit/666f469
Comment #49
luksakSorry, somehow missed it... All perfect.
Comment #50
hyperglide commented