[Rt-commit] rt branch, 4.4/download-user-info, repushed
Craig Kaiser
craig at bestpractical.com
Fri Jun 15 12:15:35 EDT 2018
The branch 4.4/download-user-info was deleted and repushed:
was 90105ad36e7c275f5c71178dcefc8586646a74a1
now 60befd86a9972c36fccc8836ca17a0b33a494fda
1: a7061699c = 1: a7061699c Add column to transaction column map for content
2: 1f08f64e1 = 2: 1f08f64e1 Add 'UserDataSearchResultFormat' config option
3: cacec40fd = 3: cacec40fd Create helper for exporting user related information
4: 9a8c70327 = 4: 9a8c70327 Create portlet for downloading user information
5: d6d820155 = 5: d6d820155 Add user download portlet to admin user modify page
6: 90105ad36 ! 6: 60befd86a Create test for user information TSV download
@@ -39,12 +39,13 @@
+ $ticket->Correspond(Content => 'Test - Reply', CcMessageTo => 'Example at example.com');
+
+ my $date = RT::Date->new(RT->SystemUser);
++ my @dates;
+ my $trans = $ticket->Transactions;
+ while (my $tran = $trans->Next) {
+ $date->Set(Format => 'ISO', Value => $tran->Created);
-+ last;
++ push @dates, $date->AsString;
+ }
-+ $date = $date->AsString;
++ my ($date_created, $date_commented, $date_correspondence) = @dates;
+
+ # TSV file for user record information
+ $agent->get_ok( $url . "/Admin/Users/Modify.html?id=" . $root->id );
@@ -63,9 +64,9 @@
+
+ my $transaction_info_tsv = <<EOF;
+ObjectId\tid\tCreated\tDescription\tOldValue\tNewValue\tContent
-+1\t30\t$date\tTicket created\t\t\tThis transaction appears to have no content
-+1\t32\t$date\tComments added\t\t\tTest - Comment
-+1\t33\t$date\tCorrespondence added\t\t\tTest - Reply
++1\t30\t$date_created\tTicket created\t\t\tThis transaction appears to have no content
++1\t32\t$date_commented\tComments added\t\t\tTest - Comment
++1\t33\t$date_correspondence\tCorrespondence added\t\t\tTest - Reply
+EOF
+
+ is $transaction_info_tsv, $agent->content, "User transaction information downloaded correctly";
More information about the rt-commit
mailing list