[Rt-commit] rt branch, 4.2/include-disabled-records-in-rt-size, created. rt-4.1.6-276-ga6ac3a4

Thomas Sibley trs at bestpractical.com
Thu Feb 21 13:45:45 EST 2013


The branch, 4.2/include-disabled-records-in-rt-size has been created
        at  a6ac3a4e82340e49b65a250c90461d675d8705fb (commit)

- Log -----------------------------------------------------------------
commit a6ac3a4e82340e49b65a250c90461d675d8705fb
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Thu Feb 21 10:34:26 2013 -0800

    Count disabled rows in "RT size" estimation
    
    They're still present in the database.  Excluding them may drastically
    mislead about the size of groups, for example.

diff --git a/share/html/Admin/Tools/Configuration.html b/share/html/Admin/Tools/Configuration.html
index d723d88..71d1702 100644
--- a/share/html/Admin/Tools/Configuration.html
+++ b/share/html/Admin/Tools/Configuration.html
@@ -150,6 +150,7 @@ for my $type (qw/Tickets Queues Transactions Groups PrivilegedUsers Unprivileged
     $class =~ s/Privileged|Unprivileged//;
     my $collection = $class->new(RT->SystemUser);
     $collection->UnLimit;
+    $collection->FindAllRows;   # find disabled
     if ($type =~ /PrivilegedUsers/) {
         $user_count = $collection->CountAll;
         $collection->LimitToPrivileged;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list