[Bps-public-commit] rt-extension-historyonchange branch, master, updated. 7891c29f9cf97cae5aed2f4aaff07775decdf675

Jim Brandt jbrandt at bestpractical.com
Thu Sep 26 11:08:29 EDT 2013


The branch, master has been updated
       via  7891c29f9cf97cae5aed2f4aaff07775decdf675 (commit)
       via  69f7127c9ca4a0169fadbdf49a6b49932576504d (commit)
      from  c09803ea305cfc24e574c34f88c0ca3b7b570b6d (commit)

Summary of changes:
 README                              | 23 +++++++++++++++++++----
 inc/Module/Install/RTx.pm           | 11 +++++++++--
 lib/RT/Extension/HistoryOnChange.pm | 25 +++++++++++++++++++++----
 3 files changed, 49 insertions(+), 10 deletions(-)

- Log -----------------------------------------------------------------
commit 69f7127c9ca4a0169fadbdf49a6b49932576504d
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Sep 26 11:05:58 2013 -0400

    Update documentation
    
    Add patching information to installation instructions.
    Add more detail to the @HistoryOnChangeTransactionTypes option.

diff --git a/README b/README
index 803f13d..425ad21 100644
--- a/README
+++ b/README
@@ -7,6 +7,10 @@ INSTALLATION
     "make install"
         May need root permissions
 
+    apply etc/history_on_change.diff
+        patch /path/to/rt/share/html/Ticket/Modify.html <
+        etc/history_on_change.diff
+
     Edit your /opt/rt4/etc/RT_SiteConfig.pm
         Add this line:
 
@@ -15,15 +19,26 @@ INSTALLATION
         or add "RT::Extension::HistoryOnChange" to your existing @Plugins
         line.
 
-        You can also customize transaction types to show, e.g.
-
-            Set(@HistoryOnChangeTransactionTypes, 'Create', 'Correspond');
-
     Clear your mason cache
             rm -rf /opt/rt4/var/mason_data/obj
 
     Restart your webserver
 
+CONFIGURATION
+  @HistoryOnChangeTransactionTypes
+    By default, all history will be shown. You can limit the types of
+    history transactions displayed with this configuration option:
+
+        Set(@HistoryOnChangeTransactionTypes, 'Create', 'Correspond');
+
+    Valid values are transaction types from the RT Transactions table. For
+    example, Create, Correspond, and Comment would get you all messages on
+    the ticket, but omit other transactions like added links (AddLink),
+    status changes (Status), etc.
+
+    This option changes only the history on the Modify (Basics) page. The
+    main ticket display history will continue to show the full history.
+
 AUTHOR
     sunnavy <sunnavy at bestpractical.com>
 
diff --git a/lib/RT/Extension/HistoryOnChange.pm b/lib/RT/Extension/HistoryOnChange.pm
index 0b471fa..7d2d5c9 100644
--- a/lib/RT/Extension/HistoryOnChange.pm
+++ b/lib/RT/Extension/HistoryOnChange.pm
@@ -20,6 +20,10 @@ RT-Extension-HistoryOnChange - Show history on ticket modify page
 
 May need root permissions
 
+=item apply etc/history_on_change.diff
+
+patch /path/to/rt/share/html/Ticket/Modify.html < etc/history_on_change.diff
+
 =item Edit your F</opt/rt4/etc/RT_SiteConfig.pm>
 
 Add this line:
@@ -28,10 +32,6 @@ Add this line:
 
 or add C<RT::Extension::HistoryOnChange> to your existing C<@Plugins> line.
 
-You can also customize transaction types to show, e.g.
-
-    Set(@HistoryOnChangeTransactionTypes, 'Create', 'Correspond');
-
 =item Clear your mason cache
 
     rm -rf /opt/rt4/var/mason_data/obj
@@ -40,6 +40,23 @@ You can also customize transaction types to show, e.g.
 
 =back
 
+=head1 CONFIGURATION
+
+=head2 C<@HistoryOnChangeTransactionTypes>
+
+By default, all history will be shown. You can limit the types of history
+transactions displayed with this configuration option:
+
+    Set(@HistoryOnChangeTransactionTypes, 'Create', 'Correspond');
+
+Valid values are transaction types from the RT Transactions table. For
+example, Create, Correspond, and Comment would get you all messages on the
+ticket, but omit other transactions like added links (AddLink), status changes
+(Status), etc.
+
+This option changes only the history on the Modify (Basics) page. The main
+ticket display history will continue to show the full history.
+
 =head1 AUTHOR
 
 sunnavy <sunnavy at bestpractical.com>

commit 7891c29f9cf97cae5aed2f4aaff07775decdf675
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Sep 26 11:08:18 2013 -0400

    Update to latest Module::Install::RTx

diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
index c9fe996..ac04c79 100644
--- a/inc/Module/Install/RTx.pm
+++ b/inc/Module/Install/RTx.pm
@@ -8,7 +8,7 @@ no warnings 'once';
 
 use Module::Install::Base;
 use base 'Module::Install::Base';
-our $VERSION = '0.31';
+our $VERSION = '0.32';
 
 use FindBin;
 use File::Glob     ();
@@ -136,6 +136,7 @@ install ::
         $has_etc{acl}++;
     }
     if ( -e 'etc/initialdata' ) { $has_etc{initialdata}++; }
+    if ( -d 'etc/upgrade/' )    { $has_etc{upgrade}++; }
 
     $self->postamble("$postamble\n");
     unless ( $subdirs{'lib'} ) {
@@ -164,6 +165,12 @@ install ::
 .
         $self->postamble("initdb ::\n$initdb\n");
         $self->postamble("initialize-database ::\n$initdb\n");
+        if ($has_etc{upgrade}) {
+            print "To upgrade from a previous version of this extension, use 'make upgrade-database'\n";
+            my $upgradedb = qq|\t\$(NOECHO) \$(PERL) -Ilib -I"$local_lib_path" -I"$lib_path" -Minc::Module::Install -e"RTxInitDB(qw(upgrade \$(NAME) \$(VERSION)))"\n|;
+            $self->postamble("upgrade-database ::\n$upgradedb\n");
+            $self->postamble("upgradedb ::\n$upgradedb\n");
+        }
     }
 }
 
@@ -209,4 +216,4 @@ sub requires_rt {
 
 __END__
 
-#line 329
+#line 336

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



More information about the Bps-public-commit mailing list