[Rt-commit] rtir branch, rt-3.9, updated. 84d74119072c554e4bf4c8db04c6b0fa2a0d1f82

? sunnavy sunnavy at bestpractical.com
Tue Oct 12 09:15:07 EDT 2010


The branch, rt-3.9 has been updated
       via  84d74119072c554e4bf4c8db04c6b0fa2a0d1f82 (commit)
      from  d215e1c7f0b5936da4ad9a35643330a5e425a8c5 (commit)

Summary of changes:
 etc/initialdata                             |   18 ------
 lib/RT/Action/RTIR_SetIncidentState.pm      |   76 --------------------------
 lib/RT/Action/RTIR_SetInvestigationState.pm |   78 ---------------------------
 3 files changed, 0 insertions(+), 172 deletions(-)
 delete mode 100644 lib/RT/Action/RTIR_SetIncidentState.pm
 delete mode 100644 lib/RT/Action/RTIR_SetInvestigationState.pm

- Log -----------------------------------------------------------------
commit 84d74119072c554e4bf4c8db04c6b0fa2a0d1f82
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Oct 12 21:14:33 2010 +0800

    incident and investigation states action are not needed

diff --git a/etc/initialdata b/etc/initialdata
index 0b536a7..1eac210 100644
--- a/etc/initialdata
+++ b/etc/initialdata
@@ -241,18 +241,10 @@
        Description => 'Set the state of an Incident Report' ,                                            # loc
        ExecModule => 'RTIR_SetIncidentReportState',
     },
-    {  Name        => 'RTIR Set Investigation State',    # loc
-       Description => 'Set the state of an Investigation' ,                                            # loc
-       ExecModule => 'RTIR_SetInvestigationState',
-    },
     {  Name        => 'RTIR Set Block State',    # loc
        Description => 'Set the state of a Block' ,                                            # loc
        ExecModule => 'RTIR_SetBlockState',
     },
-    {  Name        => 'RTIR Set Incident State',    # loc
-       Description => 'Set the state of an Incident' ,                                            # loc
-       ExecModule => 'RTIR_SetIncidentState',
-    },
     {  Name        => 'RTIR Set Incident Resolution',    # loc
        Description => 'Set the default resolution of an Incident' ,                                            # loc
        ExecModule => 'RTIR_SetIncidentResolution',
@@ -430,16 +422,6 @@
        ScripCondition    => 'RTIR Require State Change',
        ScripAction       => 'RTIR Set Incident Report State',
        Template          => 'Blank', },
-    {  Description       => "SetRTIRState",
-       Queue             => 'Investigations',
-       ScripCondition    => 'RTIR Require State Change',
-       ScripAction       => 'RTIR Set Investigation State',
-       Template          => 'Blank', },
-    {  Description       => "SetRTIRState",
-       Queue             => 'Incidents',
-       ScripCondition    => 'RTIR Require State Change',
-       ScripAction       => 'RTIR Set Incident State',
-       Template          => 'Blank', },
 
 # XXX: description is duplication, but set Due of the incident
     {  Description       => "SetRTIRState",
diff --git a/lib/RT/Action/RTIR_SetIncidentState.pm b/lib/RT/Action/RTIR_SetIncidentState.pm
deleted file mode 100644
index cc21aa8..0000000
--- a/lib/RT/Action/RTIR_SetIncidentState.pm
+++ /dev/null
@@ -1,76 +0,0 @@
-# {{{ BEGIN BPS TAGGED BLOCK
-# 
-# COPYRIGHT:
-#  
-# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC 
-#                                          <jesse at bestpractical.com>
-# 
-# (Except where explicitly superseded by other copyright notices)
-# 
-# 
-# LICENSE:
-# 
-# This work is made available to you under the terms of Version 2 of
-# the GNU General Public License. A copy of that license should have
-# been provided with this software, but in any event can be snarfed
-# from www.gnu.org.
-# 
-# This work is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-# 
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-# 
-# 
-# CONTRIBUTION SUBMISSION POLICY:
-# 
-# (The following paragraph is not intended to limit the rights granted
-# to you to modify and distribute this software under the terms of
-# the GNU General Public License and is only of importance to you if
-# you choose to contribute your changes and enhancements to the
-# community by submitting them to Best Practical Solutions, LLC.)
-# 
-# By intentionally submitting any modifications, corrections or
-# derivatives to this work, or any other work intended for use with
-# Request Tracker, to Best Practical Solutions, LLC, you confirm that
-# you are the copyright holder for those contributions and you grant
-# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
-# royalty-free, perpetual, license to use, copy, create derivative
-# works based on those contributions, and sublicense and distribute
-# those contributions and any derivatives thereof.
-# 
-# }}} END BPS TAGGED BLOCK
-#
-package RT::Action::RTIR_SetIncidentState;
-
-use strict;
-use base 'RT::Action::RTIR_SetState';
-
-=head2 GetState
-
-Returns state of the C<Incident>.
-
-=cut
-
-sub GetState {
-    my $self = shift;
-    return '';
-    my %state = (
-        new      => 'open',
-        open     => 'open',
-        stalled  => 'open',
-        resolved => 'resolved',
-        rejected => 'abandoned',
-    );
-    return $state{ $self->TicketObj->Status };
-}
-
-eval "require RT::Action::RTIR_SetIncidentState_Vendor";
-die $@ if ($@ && $@ !~ qr{^Can't locate RT/Action/RTIR_SetIncidentState_Vendor.pm});
-eval "require RT::Action::RTIR_SetIncidentState_Local";
-die $@ if ($@ && $@ !~ qr{^Can't locate RT/Action/RTIR_SetIncidentState_Local.pm});
-
-1;
diff --git a/lib/RT/Action/RTIR_SetInvestigationState.pm b/lib/RT/Action/RTIR_SetInvestigationState.pm
deleted file mode 100644
index ef84e16..0000000
--- a/lib/RT/Action/RTIR_SetInvestigationState.pm
+++ /dev/null
@@ -1,78 +0,0 @@
-# {{{ BEGIN BPS TAGGED BLOCK
-# 
-# COPYRIGHT:
-#  
-# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC 
-#                                          <jesse at bestpractical.com>
-# 
-# (Except where explicitly superseded by other copyright notices)
-# 
-# 
-# LICENSE:
-# 
-# This work is made available to you under the terms of Version 2 of
-# the GNU General Public License. A copy of that license should have
-# been provided with this software, but in any event can be snarfed
-# from www.gnu.org.
-# 
-# This work is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-# 
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-# 
-# 
-# CONTRIBUTION SUBMISSION POLICY:
-# 
-# (The following paragraph is not intended to limit the rights granted
-# to you to modify and distribute this software under the terms of
-# the GNU General Public License and is only of importance to you if
-# you choose to contribute your changes and enhancements to the
-# community by submitting them to Best Practical Solutions, LLC.)
-# 
-# By intentionally submitting any modifications, corrections or
-# derivatives to this work, or any other work intended for use with
-# Request Tracker, to Best Practical Solutions, LLC, you confirm that
-# you are the copyright holder for those contributions and you grant
-# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
-# royalty-free, perpetual, license to use, copy, create derivative
-# works based on those contributions, and sublicense and distribute
-# those contributions and any derivatives thereof.
-# 
-# }}} END BPS TAGGED BLOCK
-#
-package RT::Action::RTIR_SetInvestigationState;
-
-use strict;
-use warnings;
-
-use base 'RT::Action::RTIR_SetState';
-
-=head2 GetState
-
-Returns state of the C<Investigation>.
-
-=cut
-
-sub GetState {
-    my $self = shift;
-    return '';
-    my %state = (
-        new      => 'open',
-        open     => 'open',
-        stalled  => 'open',
-        resolved => 'resolved',
-        rejected => 'resolved',
-    );
-    return $state{ $self->TicketObj->Status } || '';
-}
-
-eval "require RT::Action::RTIR_SetInvestigationState_Vendor";
-die $@ if ($@ && $@ !~ qr{^Can't locate RT/Action/RTIR_SetInvestigationState_Vendor.pm});
-eval "require RT::Action::RTIR_SetInvestigationState_Local";
-die $@ if ($@ && $@ !~ qr{^Can't locate RT/Action/RTIR_SetInvestigationState_Local.pm});
-
-1;

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


More information about the Rt-commit mailing list