[Bps-public-commit] r14140 - in sd/trunk: . lib/App/SD/Replica/Hiveminder

sartak at bestpractical.com sartak at bestpractical.com
Wed Jul 16 00:05:07 EDT 2008


Author: sartak
Date: Wed Jul 16 00:04:44 2008
New Revision: 14140

Modified:
   sd/trunk/   (props changed)
   sd/trunk/lib/App/SD/Replica/Hiveminder/PullEncoder.pm
   sd/trunk/lib/App/SD/Replica/RT/PullEncoder.pm

Log:
 r64347 at onn:  sartak | 2008-07-15 23:29:06 -0400
 Add an "_origin" property to tickets pulled in from foreign replicas


Modified: sd/trunk/lib/App/SD/Replica/Hiveminder/PullEncoder.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/Hiveminder/PullEncoder.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/Hiveminder/PullEncoder.pm	Wed Jul 16 00:04:44 2008
@@ -59,6 +59,12 @@
                 $change->add_prop_change( { new => $previous_state->{$key}, old => undef, name => $key } );
             }
 
+            $change->add_prop_change({
+                name => '_origin',
+                old  => undef,
+                new  => $self->sync_source->hm_url,
+            });
+
             if ($previous_state->{record_locator}) {
                 my $origin_display = $self->sync_source->hm_url
                                 . '/task/'

Modified: sd/trunk/lib/App/SD/Replica/RT/PullEncoder.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/RT/PullEncoder.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/RT/PullEncoder.pm	Wed Jul 16 00:04:44 2008
@@ -62,6 +62,7 @@
 
     $ticket->{'id'} =~ s/^ticket\///g;
 
+    $ticket->{'_origin'} = $self->sync_source->rt_url;
     $ticket->{'_origin_display'} = sprintf '%s/Ticket/Display.html?id=%d',
                                    $self->sync_source->rt_url,
                                    $ticket->{'id'};



More information about the Bps-public-commit mailing list