[Rt-commit] rt branch, 4.2/migrator-fixes, updated. rt-4.2.12-123-gc8b2c30
Shawn Moore
shawn at bestpractical.com
Thu Mar 24 21:40:57 EDT 2016
The branch, 4.2/migrator-fixes has been updated
via c8b2c303f903fa6a73c624ca0f095e8bb6192dc9 (commit)
from cd06315e3d98c6ee1094afa22776d5296c9c8f96 (commit)
Summary of changes:
lib/RT/Migrate/Serializer.pm | 4 ++++
1 file changed, 4 insertions(+)
- Log -----------------------------------------------------------------
commit c8b2c303f903fa6a73c624ca0f095e8bb6192dc9
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Fri Mar 25 01:37:11 2016 +0000
Try to maintain ticket order in serializer
Queues ordinarily push their tickets as "in" (downstream) dependencies
which is how they get included in serializer. However, the order of such
tickets is jumbled. So, by using PushCollections (which does order records
by id ascending) we can get closer to serializing the original ticket
order.
Fixes: I#31814
diff --git a/lib/RT/Migrate/Serializer.pm b/lib/RT/Migrate/Serializer.pm
index f938bc1..c2dd918 100644
--- a/lib/RT/Migrate/Serializer.pm
+++ b/lib/RT/Migrate/Serializer.pm
@@ -293,6 +293,10 @@ sub PushBasics {
$self->PushCollections(qw(Topics Classes));
}
+ if ($self->{FollowTickets}) {
+ $self->PushCollections(qw(Tickets));
+ }
+
$self->PushCollections(qw(Queues));
}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list