[Rt-commit] rtir branch, 2.5-trunk, updated. 2.6.0rc2

Ruslan Zakirov ruz at bestpractical.com
Thu Nov 4 20:24:37 EDT 2010


The branch, 2.5-trunk has been updated
       via  1b8fc04e566a60eafada00c26bbff32eeaf95390 (commit)
       via  0d5c03560d682f33182a8cc7edb169f9558efe75 (commit)
       via  a1a16c233490f01b035c08736d909f1c8e7badba (commit)
       via  a7b6283a300a39fef4aa7434cb9b41ecd1e2c144 (commit)
       via  2745f9cd2786b4764b3f09545f49357276e14584 (commit)
      from  8528a2c86803853fab84ae30586c79737732ee2e (commit)

Summary of changes:
 CHANGES                   |    9 +++++++++
 META.yml                  |    2 +-
 UPGRADING                 |   18 +++++++++++++++---
 etc/initialdata           |    6 +++---
 etc/upgrade/2.5.1/content |    2 +-
 lib/RT/IR.pm              |    2 +-
 6 files changed, 30 insertions(+), 9 deletions(-)

- Log -----------------------------------------------------------------
commit a7b6283a300a39fef4aa7434cb9b41ecd1e2c144
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Wed Oct 27 04:46:07 2010 +0400

    fix upgrade script

diff --git a/etc/upgrade/2.5.1/content b/etc/upgrade/2.5.1/content
index 0406488..be1ccc4 100644
--- a/etc/upgrade/2.5.1/content
+++ b/etc/upgrade/2.5.1/content
@@ -7,7 +7,7 @@ my %special_rename = (
 @Initial = (
     sub {
         my $cfs = RT::CustomFields->new( $RT::SystemUser );
-        $cfs->Limit( COLUMN => 'Name', OPERATOR => 'STARTSWITH', VALUE => '_RTIR_' );
+        $cfs->Limit( FIELD => 'Name', OPERATOR => 'STARTSWITH', VALUE => '_RTIR_' );
         while ( my $cf = $cfs->Next ) {
             my ($name, $new);
             $new = $name = $cf->Name;

commit a1a16c233490f01b035c08736d909f1c8e7badba
Merge: a7b6283 2745f9c
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Wed Oct 27 04:54:03 2010 +0400

    Merge branch '2.4-trunk' into 2.5-trunk
    
    Conflicts:
    	CHANGES
    	UPGRADING

diff --cc CHANGES
index 7f58c73,71b2906..538771e
--- a/CHANGES
+++ b/CHANGES
@@@ -1,50 -1,12 +1,59 @@@
 +CHANGES IN 2.6.0 SINCE RTIR 2.4.x
 +---------------------------------
 +
 +FEATURES
 +========
 +
 +* INCOMPATIBLE: prefix '_RTIR_' has been deleted from
 +  all custom fields in RTIR. See UPGRADING for upgrade
 +  instructions.
 +* INCOMPATIBLE: New option %RTIR_CustomFieldDefaults
 +  that replaces several $RTIR_*_default options that
 +  were there before, don't forget to update config.
 +* almost all default Custom Fields of RTIR now can be
 +  disabled or un-applied. Read more in Administration
 +  Tutorial.
 +* IP CF can be changed to single value
 +* On create with linking (a new child from an incident or a new
 +  incident from a child) use default values for custom fields
 +  from linked object
 +* allow to use any custom field for lookup, not only IP,
 +  no UI at the moment, but can be used via arguments of a URL
 +  in clicky actions or linked CFs 
 +* switch SimpleSearch over to the buttonless version
 +* RTIR's SimpleSearch searches by IP in all queues if
 +  query is an IP only
 +* we have search in any RTIR's queue, so we need default
 +  search format, new entry in $RTIRSearchResultFormats
 +  config option
 +* switched over RT's style for RTIR's query builder
 +* RT::IR->OurQueue(...) method
 +* RT::IR->CustomFields(...) method
 +* refactored test suite for re-use in RTIR's extensions
 +* described better Incident input field on Create pages
 +
 +BUGS
 +====
 +
 +* Hide Launch links if user can not create an Inv
 +* More...
 +
 +CALLBACKS
 +=========
 +
 +* 'Init' callback in Create.html acting like /Ticket/Create.html
 +* 'AfterRequestors' in several components
 +* 'LeftColumnStart' and 'RightColumnStart' in Display.html
 +
+ CHANGES IN 2.4.6
+ ----------------
+ 
+ BUGS
+ ====
+ 
+ * respect per queue SubjectTag in templates. Read UPGRADING for
+   upgrade instructions.
+ 
  CHANGES IN 2.4.5
  ----------------
  
diff --cc UPGRADING
index e78e83e,9a5003b..c2ed400
--- a/UPGRADING
+++ b/UPGRADING
@@@ -78,48 -75,18 +78,60 @@@ General upgrade instruction
              --prompt-for-dba-password --action insert \
              --datadir etc/upgrade/<version>
  
 +Upgrading from 2.4.x and earlier
 +--------------------------------
 +
 +1) _RTIR_ prefix has been deleted from all RTIR's custom fields. What
 +   means that you have to update custom code you have: templates,
 +   scrips and other customizations which may have name of a custom
 +   field hardcoded.
 +
 +   Custom Fields with multiple words in the name and no spaces have
 +   been renamed, now there is space. These custom fields are:
 +
 +       HowReported  => How Reported
 +       ReporterType => Reporter Type
 +       WhereBlocked => Where Blocked
 +
 +   All these changes are implemented in F<etc/upgrade/2.5.1/content>
 +   file.
 +
 +2) Saved searches affected by above change and you can convert them
 +   using a script provided.
 +
 +       perl -I /opt/rt3/local/lib -I/opt/rt3/lib etc/upgrade/2.5.1/update_saved_searches.pl
 +
 +3) Some templates RTIR comes with contain code to insert values of
 +   CFs into emails. This is impossible to change these templates
 +   automatically. You have to do it manually. To identify templates
 +   and/or confirm that all has been changed you can use the following
 +   SQL query:
 +
 +       SELECT id, Queue FROM Templates WHERE Content LIKE '%_RTIR_%';
 +
 +   Usually this change is simple as deleting _RTIR_ prefix and adding
 +   a space to three names mentioned above.
 +
 +   Some of your code may still use old names. Make sure to change
 +   that. The following command might help you identify places:
 +
 +        find dir/ | xargs grep '_RTIR_'
 +
 +2) _RTIR_*_default options in the config has been merged together
 +into RTIR_CustomFieldDefaults hash. Change site config accordingly.
 +
+ Upgrading from 2.4.5 and earlier
+ -------------------------
+ 
+ SubjectTag was ignored in RTIR templates, so users could be confused.
+ Find all templates with the following text:
+ 
+     [{$rtname} #{$Ticket->id}]
+ 
+ And replace it with:
+ 
+     [{$Ticket->QueueObj->SubjectTag || $rtname} #{$Ticket->id}]
+ 
  Upgrading from 2.3.17 and earlier
  -------------------------
  

commit 0d5c03560d682f33182a8cc7edb169f9558efe75
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Wed Oct 27 04:54:10 2010 +0400

    doc typos

diff --git a/UPGRADING b/UPGRADING
index c2ed400..8174c4d 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -96,13 +96,13 @@ Upgrading from 2.4.x and earlier
    All these changes are implemented in F<etc/upgrade/2.5.1/content>
    file.
 
-2) Saved searches affected by above change and you can convert them
-   using a script provided.
+2) Saved searches are affected by above change and you can convert
+   them using a script provided.
 
        perl -I /opt/rt3/local/lib -I/opt/rt3/lib etc/upgrade/2.5.1/update_saved_searches.pl
 
 3) Some templates RTIR comes with contain code to insert values of
-   CFs into emails. This is impossible to change these templates
+   CFs into emails. It is impossible to change these templates
    automatically. You have to do it manually. To identify templates
    and/or confirm that all has been changed you can use the following
    SQL query:

commit 1b8fc04e566a60eafada00c26bbff32eeaf95390
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Wed Oct 27 04:58:51 2010 +0400

    bump version, 2.6.0rc2

diff --git a/META.yml b/META.yml
index 46b0a40..1e1f47d 100644
--- a/META.yml
+++ b/META.yml
@@ -35,4 +35,4 @@ requires:
   perl: 5.8.3
 resources:
   license: http://opensource.org/licenses/gpl-license.php
-version: 2.6.0rc1
+version: 2.6.0rc2
diff --git a/lib/RT/IR.pm b/lib/RT/IR.pm
index 0e0416f..6a997a4 100644
--- a/lib/RT/IR.pm
+++ b/lib/RT/IR.pm
@@ -46,7 +46,7 @@
 #
 package RT::IR;
 
-our $VERSION = '2.6.0rc1';
+our $VERSION = '2.6.0rc2';
 
 use 5.008003;
 use warnings;

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


More information about the Rt-commit mailing list