[Rt-commit] rt branch, 4.4/remove-user-info, repushed

Craig Kaiser craig at bestpractical.com
Wed Dec 26 12:35:29 EST 2018


The branch 4.4/remove-user-info was deleted and repushed:
       was cea91532f3c1146810b77c565f70cf68f4bacacc
       now 0b531738c3297087b83b8d34e497fb33e794c559

 1: d0449e83dd =  1: d0449e83dd Create ReplaceAttachments, ReplaceHeader and ReplaceContent Methods
 2: 74736c6cbd =  2: 74736c6cbd Create rt-munge-attachments executable
 3: 1461de1fec =  3: 1461de1fec Add tests for methods that munge the attachments table
 4: 32518488be =  4: 32518488be Fix rt-dump-metadata for the AppliedTo => AddedTo change
 5: 55f253644b =  5: 55f253644b Rename RelatedData to BasicUserData
 6: 7c348191a6 =  6: 7c348191a6 Move User related info portlet into side column
 7: 45525a282c =  7: 45525a282c Create method AnonymizeUser in User.pm
 8: 8b4dca4713 =  8: 8b4dca4713 Add Timezone to user column map
 9: 2459773347 =  9: 2459773347 Update download user data default format
10: bd01d586fc = 10: bd01d586fc Create modal mason component
11: 1c99e9e542 ! 11: 311942ebb1 Create portlet for removing user information
    @@ -60,10 +60,6 @@
     +            <a class="button" href="<%RT->Config->Get('WebPath')%>/Admin/Tools/Shredder/index.html?Plugin=Users&Users%3Astatus=<% $UserObj->Disabled ? 'disabled' : 'enabled' %>&Users%3Aname=<% $UserObj->Name %>&Users%3Areplace_relations=Nobody&Search=Search" name="replace-user"><&|/l&>Replace User</&></a>
     +            <i class="label"><&|/l&>Replace user links in the database with "Nobody" user</&></i>
     +        </div>
    -+        <div class="inline-cell">
    -+            <a class="button" href="<%RT->Config->Get('WebPath')%>/Admin/Tools/Shredder/index.html?Plugin=Users&Users%3Astatus=<% $UserObj->Disabled ? 'disabled' : 'enabled' %>&Users%3Aname=<% $UserObj->Name %>&Search=Search&remove_user" name="remove-user"><&|/l&>Remove User</&></a>
    -+            <i class="label"><&|/l&>Remove all references to user and links to user</&></i>
    -+        </div>
     +    </div>
     +</div>
      </&>
12: b1aef8310f = 12: 84c49dbcd4 Allow TSVExport filename to be set through Filename arg
13: ad06b1a929 = 13: 0c23452c59 Add remove user info portlet to user modify page
14: 215ae4ed42 ! 14: def189a9f8 Create test for remove user information
    @@ -133,41 +133,5 @@
     +        'User successfully deleted with replace' );
     +}
     +
    -+# Test Remove user
    -+{
    -+    my $user = RT::Test->load_or_create_user(
    -+        Name       => 'user',
    -+        Password   => 'password',
    -+        Privileged => 1
    -+    );
    -+    ok( $user && $user->id );
    -+    my $id = $user->Id;
    -+
    -+    ok( RT::Test->set_rights(
    -+            { Principal => $user, Right => [qw(SuperUser)] },
    -+        ),
    -+        'set rights'
    -+      );
    -+
    -+    $agent->logout;
    -+    $agent->login( 'root' => 'password' );
    -+
    -+    $agent->get_ok( $url . "Admin/Users/Modify.html?id=" . $user->id );
    -+    $agent->follow_link_ok( { text => 'Remove User' } );
    -+
    -+    $agent->submit_form_ok(
    -+        {   form_id => 'shredder-search-form',
    -+            fields  => { WipeoutObject => 'RT::User-' . $user->Name, },
    -+            button  => 'Wipeout'
    -+        },
    -+        "Remove user"
    -+    );
    -+
    -+    my ($ret, $msg) = $user->Load($id);
    -+
    -+    is( $ret, 0,
    -+        'User successfully deleted with remove' );
    -+}
    -+
     +done_testing();
     
15: cea91532f3 ! 15: 0b531738c3 Update download user info tests
    @@ -2,8 +2,8 @@
     
         Update download user info tests
         
    -    Changes to how the column header for the TSV file means the
    -    tests need to be updated accordingly.
    +    Adding Timzeone and ObjectId for transactions requires tests to be
    +    updated.
     
     diff --git a/t/web/download_user_info.t b/t/web/download_user_info.t
     --- a/t/web/download_user_info.t



More information about the rt-commit mailing list