[Rt-commit] rt branch, 4.4/preview-searches, repushed

? sunnavy sunnavy at bestpractical.com
Tue Mar 17 11:31:56 EDT 2020


The branch 4.4/preview-searches was deleted and repushed:
       was f38c2d7f00d25066aed06e2ccd62dfea834a3079
       now 29d6aff8d032eba3b9c5171035d3f5e27f5e801b

1: f38c2d7f0 ! 1: 29d6aff8d Add new page where admins can preview results of search modules
    @@ -2,10 +2,27 @@
     
         Add new page where admins can preview results of search modules
     
    -diff --git a/share/html/Admin/Tools/PreviewSearches.html b/share/html/Admin/Tools/PreviewSearches.html
    +diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
    +--- a/share/html/Elements/Tabs
    ++++ b/share/html/Elements/Tabs
    +@@
    +         );
    +     }
    + 
    ++    $tools->child( preview_searches =>
    ++        title       => loc('Preview Searches'),
    ++        description => loc('Preview results of search modules'),
    ++        path        => '/Tools/PreviewSearches.html',
    ++    );
    ++
    +     if ( $session{'CurrentUser'}->HasRight( Right => 'ShowConfigTab', Object => RT->System ) )
    +     {
    +         $build_admin_menu->(Menu());
    +
    +diff --git a/share/html/Tools/PreviewSearches.html b/share/html/Tools/PreviewSearches.html
     new file mode 100644
     --- /dev/null
    -+++ b/share/html/Admin/Tools/PreviewSearches.html
    ++++ b/share/html/Tools/PreviewSearches.html
     @@
     +%# BEGIN BPS TAGGED BLOCK {{{
     +%#
    @@ -57,9 +74,15 @@
     +<& /Elements/Header, Title => loc('Preview results of search modules') &>
     +<& /Elements/Tabs &>
     +
    -+<p align="center">
    -+  <i><&|/l&>Search modules are mainly for bin/rt-crontool, check there for more infomation.</&></i>
    -+</p>
    ++<&| /Widgets/TitleBox, title => loc('Search Modules') &>
    ++  <div>
    ++    <&|/l&>RT can use searches packaged in modules for some utilities like rt-crontool. This page allows you to run the searches from these modules in the web UI to confirm they find the tickets you expect.</&>
    ++  </div>
    ++
    ++  <div>
    ++    <&|/l&>Note that the web version of the search will run as the logged in user. To see exactly the same results as rt-crontool, view the search with the user mapped via the Unix Login field or make sure your user account has the same rights as the user running rt-crontool.</&>
    ++  </div>
    ++</&>
     +
     +<form method="POST" action="PreviewSearches.html">
     +  <table>
    @@ -150,19 +173,3 @@
     +$Page => 1
     +$Rows => 50
     +</%ARGS>
    -
    -diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
    ---- a/share/html/Elements/Tabs
    -+++ b/share/html/Elements/Tabs
    -@@
    -         description => loc('Permanently wipeout data from RT'),
    -         path        => '/Admin/Tools/Shredder',
    -     );
    -+    $admin_tools->child( preview_searches =>
    -+        title       => loc('Preview Searches'),
    -+        description => loc('Preview results of search modules'),
    -+        path        => '/Admin/Tools/PreviewSearches.html',
    -+    );
    - 
    -     if ( $request_path =~ m{^/Admin/(Queues|Users|Groups|CustomFields|CustomRoles)} ) {
    -         my $type = $1;



More information about the rt-commit mailing list