[Rt-commit] rt branch, 4.4/remove-user-info, repushed
Craig Kaiser
craig at bestpractical.com
Fri May 25 17:07:06 EDT 2018
The branch 4.4/remove-user-info was deleted and repushed:
was 27e72c7094147512e49fc5b90d3c1a07712e3cd2
now 5f0f72fe65dbfb980575383ba6d6c5bc538578f3
1: 484bd6620 = 1: 484bd6620 Add option to disable escaping HTML in articles
2: dab73f8fa = 2: dab73f8fa Updated Articles docs to include disabling escaped HTML
3: 27238b8b2 = 3: 27238b8b2 Update article postfix loops from using $_ to a named variable
4: 0b24dae38 = 4: 0b24dae38 Add keyboard shortcuts for reply and comment
5: 843170cdb = 5: 843170cdb Allow rt-setup-fulltext-index to prompt for dba password
6: d5902aaed = 6: d5902aaed Fix typo in POD
7: 3c98ed63e = 7: 3c98ed63e Add AnonymizeEmail method for RT::Attachments
8: a37f0a449 = 8: a37f0a449 Add GenerateAnonymousName function for RT::User
9: 762924875 ! 9: 2489d931a Create portlet for removing user information
@@ -78,8 +78,8 @@
+<div class="row">
+ <div class="col-md-12">
+ <a href="#user-info-modal" rel="modal:open"><button>Anonymize User</button></a>
-+ <a href="/Admin/Tools/Shredder/index.html?Plugin=Users&Users%3Astatus=enabled&Users%3Aname=<% $user->Name %>&Users%3Areplace_relations=root&Search=Search"><button name="replace-user">Replace User Information</button></a>
-+ <a href="/Admin/Tools/Shredder/index.html?Plugin=Users&Users%3Astatus=enabled&Users%3Aname=<% $user->Name %>&Search=Search"><button name="remove-user">Remove User Information</button></a>
++ <a href="/Admin/Tools/Shredder/index.html?Plugin=Users&Users%3Astatus=enabled&Users%3Aname=<% $user->Name %>&Users%3Areplace_relations=nobody&Search=Search"><button name="replace-user">Replace User Information</button></a>
++ <a href="/Admin/Tools/Shredder/index.html?Plugin=Users&Users%3Astatus=enabled&Users%3Aname=<% $user->Name %>&Search=Search&remove_user"><button name="remove-user">Remove User Information</button></a>
+ </div>
+</div>
+</&>
10: bc106568c = 10: 447698efc Add portlet for removing user info to modify page
11: bcd5047a2 = 11: beb905a26 Check that user information is anonymized
12: 27e72c709 ! 12: 5f0f72fe6 Add test for replace user information
@@ -28,6 +28,29 @@
+ # TestUser should not exist
+ my $user = RT::User->new(RT->SystemUser);
+ is $user->Load($TestUser->id), 0, 'User successfully deleted';
++
++ # Need to check that user was replaced
++}
++
++{
++ # Test Remove user
++ my $TestUser = RT::Test->load_or_create_user( Name => 'TestUser' );
++ ok $TestUser && $TestUser->id;
++
++ $agent->get($url ."Admin/Users/Modify.html?id=" . $TestUser->id);
++ ok $agent;
++
++ $agent->follow_link( url_regex => qr/remove_user/i );
++
++ $agent->form_id('shredder-search-form');
++ $agent->current_form->find_input('WipeoutObject')->check;
++ $agent->click_button(name => 'Wipeout');
++
++ ok $agent;
++
++ # TestUser should not exist
++ my $user = RT::User->new(RT->SystemUser);
++ is $user->Load($TestUser->id), 0, 'User successfully deleted';
+}
+
done_testing();
More information about the rt-commit
mailing list