1912: Some way to purge old review requests

one.eric********@gmai***** (Google Code) (Is this you? Claim this profile.)
Dec. 7, 2010
For audit-trail purposes, we're not sure we want data in reviewboard to stick around forever.  Specifically, the official record of what was done should be maintained in version control, and the details of how a specific commit came to be are either extra data to slow down the system, or something lawyers rub their hands together in glee about, because it is more data for them to find in discovery.

If we could purge data older than a certain time (one or two years in our case), that would be great.

Bonus points for also noting (a) users no longer associated with reviews, and being able to remove those, (b) groups with no users, and removing those.
chipx86
#1 chipx86
This is something you could do as a custom script that interfaces with the database (you can build a custom management command as described in the Admin manual), but it's not something we're going to put into the core product.

One of the benefits of Review Board to many people is that the review history of every change exists forever. If we were to add some sort of auto-deletion, we'd likely be creating a support nightmare as soon as someone decides they need access to some old review request and wants to know how to re-load that particular one from a backup.

So I'd suggest writing a script for this using a custom management command. We can help you with any questions on the reviewboard-dev mailing list. It'll require a rudimentary knowledge of Django models and Python, and bits of our codebase, but if you or someone there is comfortable at all with Python, it won't be bad.
  • +WontFix