[Rt-commit] [rtir] 01/01: Add debug messages to all scrip update steps
Jim Brandt
jbrandt at bestpractical.com
Thu Jun 20 08:10:17 EDT 2013
This is an automated email from the git hooks/post-receive script.
jbrandt pushed a commit to branch 2.9/2.9.0-db-update-code
in repository rtir.
commit 2bf3e75fff7e9fe58b3d5e151766ca63f7387442
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Thu Jun 20 08:08:13 2013 -0400
Add debug messages to all scrip update steps
The extra debug messages help determine where errors or warnings
are coming from.
---
etc/upgrade/2.9.0/content | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/etc/upgrade/2.9.0/content b/etc/upgrade/2.9.0/content
index 365edf0..432a6f6 100644
--- a/etc/upgrade/2.9.0/content
+++ b/etc/upgrade/2.9.0/content
@@ -265,6 +265,7 @@ our @Final = (
# delete tickets' Status changes (txns) in RTIR queues,
sub {
+ $RT::Logger->debug("Delete status change transactions from RTIR queues");
for my $qname ( @OUR_QUEUES ) {
my $queue = get_queue( $qname ) or next;
@@ -282,6 +283,7 @@ our @Final = (
# update txns, set Type = 'Set', Field = 'Status' and flush
# reference fields
sub {
+ $RT::Logger->debug("Update status transactions");
for my $qname ( @OUR_QUEUES ) {
my ($queue, $cf) = get_queue_and_state_cf( $qname );
next unless $queue && $cf;
@@ -310,6 +312,7 @@ our @Final = (
# un-apply and disable State custom fields
sub {
+ $RT::Logger->debug("Clean up old State custom fields");
for my $qname ( @OUR_QUEUES ) {
my ($queue, $cf) = get_queue_and_state_cf( $qname );
next unless $queue && $cf;
@@ -331,6 +334,7 @@ our @Final = (
# remove no longer needed scrip actions and scrips based on them
sub {
+ $RT::Logger->debug("Remove old scrip actions and scrips");
# started date is handled by lifecycles now
remove_scrip_action('RTIR_SetStartedToNow');
@@ -356,6 +360,7 @@ our @Final = (
# remove no longer needed scrip conditions and scrips based on them
sub {
+ $RT::Logger->debug("Remove old scrip conditions and scrips");
# started date is handled by lifecycles now
remove_scrip_condition('RTIR_RequireStateChange');
remove_scrip_condition('RTIR_BlockActivation');
@@ -363,6 +368,7 @@ our @Final = (
# replace conditions with RT's StatusChange
sub {
+ $RT::Logger->debug("Replace conditions with RTs status");
my %map = (
RTIR_ReopenTicket => 'old: inactive; new: initial, active',
RTIR_CloseTicket => 'old: initial, active; new: inactve',
@@ -385,6 +391,7 @@ our @Final = (
},
sub {
+ $RT::Logger->debug("Update homepage settings");
my ($d_portlets) = RT::System->new( RT->SystemUser )
->Attributes->Named('RTIR_HomepageSettings');
my $content = $d_portlets->Content;
@@ -409,6 +416,7 @@ our @Final = (
# fix description of a few scrips, it doesn't match meaning
sub {
+ $RT::Logger->debug("Update scrip descriptions");
my $scrips = RT::Scrips->new( RT->SystemUser );
my $alias = $scrips->Join(
FIELD1 => 'ScripAction',
@@ -432,6 +440,7 @@ our @Final = (
# replace State CF in format strings of saved searches with status
sub {
+ $RT::Logger->debug("Replace State CF in format strings");
my $searches = RT::Attributes->new( RT->SystemUser );
$searches->Limit(FIELD => 'Name', VALUE => 'SavedSearch');
while ( my $search = $searches->Next ) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Rt-commit
mailing list