[Rt-commit] [rtir] 02/02: Add debug messages to all scrip update steps
Jim Brandt
jbrandt at bestpractical.com
Tue Jun 25 14:08:31 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 9b2204a16e47ea7a47b5ffca42e2941396580a1c
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 3299b30..430ae95 100644
--- a/etc/upgrade/2.9.0/content
+++ b/etc/upgrade/2.9.0/content
@@ -266,6 +266,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;
@@ -283,6 +284,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;
@@ -311,6 +313,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;
@@ -332,6 +335,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');
@@ -357,6 +361,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');
@@ -364,6 +369,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',
@@ -386,6 +392,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;
@@ -410,6 +417,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',
@@ -433,6 +441,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