[Bps-public-commit] rt-extension-excelfeed branch, update-for-rt5, created. 0.05-4-gd6d24e6

Aaron Trevena ast at bestpractical.com
Thu Jul 9 13:50:21 EDT 2020


The branch, update-for-rt5 has been created
        at  d6d24e6bc86e9092d9d020ed523b24e021ca37b2 (commit)

- Log -----------------------------------------------------------------
commit fb8bddd3e6f0e1350647786d5168624dc4aadc2e
Author: Aaron Trevena <aaron at aarontrevena.co.uk>
Date:   Wed Jul 8 20:21:03 2020 +0100

    Update documentation for RT 4.4.4 and 5.0

diff --git a/README b/README
index f6befce..1dd7175 100644
--- a/README
+++ b/README
@@ -10,7 +10,7 @@ DESCRIPTION
     files rather than inline HTML reports.
 
 RT VERSION
-    Works with RT 4.2, 4.4
+    Works with RT 4.2, 4.4, 5.0
 
 INSTALLATION
     "perl Makefile.PL"
@@ -19,6 +19,9 @@ INSTALLATION
         May need root permissions
 
     patch RT
+        For RT 5 no patches are required.
+        For RT 4 version 4.4.2 or higher no patches are required.
+
         The following patches are also needed. Note the versions and only
         apply the patches needed for your version.
 
@@ -33,14 +36,10 @@ INSTALLATION
 
             patch -p1 -d /path/to/rt < etc/chart_callback.patch
 
-        Apply for 4.2:
+        Apply for 4.2, 4.4.0, 4.4.1
 
             patch -p1 -d /path/to/rt < etc/tabs_privileged_callback.patch
 
-        Apply for 4.4:
-
-            patch -p1 -d /path/to/rt < etc/tabs_privileged_callback_44.patch
-
     Add this line to /opt/rt4/etc/RT_SiteConfig.pm
             Plugin('RT::Extension::ExcelFeed');
 
diff --git a/lib/RT/Extension/ExcelFeed.pm b/lib/RT/Extension/ExcelFeed.pm
index 074c671..00c0029 100644
--- a/lib/RT/Extension/ExcelFeed.pm
+++ b/lib/RT/Extension/ExcelFeed.pm
@@ -2,7 +2,7 @@ use strict;
 use warnings;
 package RT::Extension::ExcelFeed;
 
-our $VERSION = '0.05';
+our $VERSION = '0.06';
 
 =head1 NAME
 
@@ -19,7 +19,7 @@ inline HTML reports.
 
 =head1 RT VERSION
 
-Works with RT 4.2, 4.4
+Works with RT 4.2, 4.4, 5.0
 
 =head1 INSTALLATION
 
@@ -35,8 +35,11 @@ May need root permissions
 
 =item patch RT
 
-The following patches are also needed. Note the versions and only apply
-the patches needed for your version.
+For RT 5 no patches are required.
+For RT 4 version 4.4.2 or higher no patches are required.
+
+The following patches are also needed for older versions of RT
+Note the versions and only apply the patches needed for your version.
 
 Only run these the first time you install this module. If upgrading, install
 any patches that were not previously applied.
@@ -49,14 +52,10 @@ Apply for 4.2 and 4.4.0. Not needed for 4.2.13 or later, or 4.4.1.
 
     patch -p1 -d /path/to/rt < etc/chart_callback.patch
 
-Apply for 4.2:
+Apply for 4.2, 4.4.0, 4.4.1
 
     patch -p1 -d /path/to/rt < etc/tabs_privileged_callback.patch
 
-Apply for 4.4:
-
-    patch -p1 -d /path/to/rt < etc/tabs_privileged_callback_44.patch
-
 =item Add this line to F</opt/rt4/etc/RT_SiteConfig.pm>
 
     Plugin('RT::Extension::ExcelFeed');

commit aa31c6b11e1e434ac1b981ebc8419df8ad4b365d
Author: Aaron Trevena <aaron at aarontrevena.co.uk>
Date:   Wed Jul 8 20:28:11 2020 +0100

    Update Makefile.PL supported versions for RT5

diff --git a/Makefile.PL b/Makefile.PL
index d826b44..fa3f51c 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -7,7 +7,7 @@ license  'gplv2';
 
 requires 'Excel::Writer::XLSX';
 requires_rt '4.2.0';
-rt_too_new '4.6.0';
+rt_too_new '5.2.0';
 
 sign;
 WriteAll;

commit 0b43ae1ebabd6ee9ba33589faf5cf0184c52768b
Author: Aaron Trevena <aaron at aarontrevena.co.uk>
Date:   Wed Jul 8 20:28:33 2020 +0100

    Update Changelog for RT5 documentation release

diff --git a/Changes b/Changes
index 2c96c32..4aaa0f2 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,6 @@
+0.06 2020-07-8
+ - Updates to documentation & Makefile.PL for RT 5
+
 0.05 2018-09-21
  - Remove duplicated methods from core RT
  - Respect SuppressIfEmpty config

commit d6d24e6bc86e9092d9d020ed523b24e021ca37b2
Author: Aaron Trevena <aaron at aarontrevena.co.uk>
Date:   Thu Jul 9 18:40:41 2020 +0100

    remove un-necessary patch

diff --git a/etc/tabs_privileged_callback_44.patch b/etc/tabs_privileged_callback_44.patch
deleted file mode 100644
index 7d57e33..0000000
--- a/etc/tabs_privileged_callback_44.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
-index e672e3b..07e94e6 100644
---- a/share/html/Elements/Tabs
-+++ b/share/html/Elements/Tabs
-@@ -825,6 +825,9 @@ my $build_main_nav = sub {
-         }
-     }
- 
-+    # Scope here so we can share in the Privileged callback
-+    my $args      = '';
-+    my $has_query = '';
-     if (
-         (
-                $request_path =~ m{^/(?:Ticket|Search)/}
-@@ -835,8 +838,6 @@ my $build_main_nav = sub {
-       )
-     {
-         my $search = Menu()->child('search')->child('tickets');
--        my $args      = '';
--        my $has_query = '';
-         my $current_search = $session{"CurrentSearchHash"} || {};
-         my $search_id = $DECODED_ARGS->{'SavedSearchLoad'} || $DECODED_ARGS->{'SavedSearchId'} || $current_search->{'SearchId'} || '';
-         my $chart_id = $DECODED_ARGS->{'SavedChartSearchId'} || $current_search->{SavedChartSearchId};
-@@ -1107,7 +1108,7 @@ my $build_main_nav = sub {
-         PageMenu()->child( edit => title => loc('Edit'), path => '/Prefs/MyRT.html' );
-     }
- 
--    $m->callback( CallbackName => 'Privileged', Path => $request_path, ARGSRef => \%ARGS );
-+    $m->callback( CallbackName => 'Privileged', Path => $request_path, ARGSRef => \%ARGS, Search_Args => $args, Has_Query => $has_query );
- };
- 
- my $build_selfservice_nav = sub {

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


More information about the Bps-public-commit mailing list