From ba92b27f423b9b3bb7453db2fc9641cd96644517 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 11 May 2018 17:28:19 +0200 Subject: Flyspray: misc clean + debug output Signed-off-by: Florian Pritz --- Bugzilla/Migrate/Flyspray.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Bugzilla/Migrate/Flyspray.pm b/Bugzilla/Migrate/Flyspray.pm index 70d94c91e..52f6b8855 100644 --- a/Bugzilla/Migrate/Flyspray.pm +++ b/Bugzilla/Migrate/Flyspray.pm @@ -298,6 +298,7 @@ sub _read_bugs { my @result; while (my $row = $sth->fetchrow_hashref()) { + $self->debug("Processing bug ".$row->{task_id}, 2); my $bug = { short_desc => $row->{item_summary}, product => $self->{map_project_id_to_name}->{$row->{project_id}}, @@ -347,7 +348,6 @@ sub _read_bugs { } - my $comments = {}; # fetch comments my $comments_sth = $self->{dbh}->prepare_cached(" SELECT comment_id, user_id, date_added, comment_text @@ -360,7 +360,6 @@ sub _read_bugs { thetext => $comment->{comment_text}, }; push @{$bug->{comments}}, $comment_item; - $comments->{$comment->{comment_id}} = $comment_item; } # get history @@ -440,7 +439,7 @@ sub _read_bugs { # optional for now: CC changes, assignee changes, milestone/version changes } - # TODO get attachments + # get attachments my $attachments_sth = $self->{dbh}->prepare_cached(" SELECT task_id, orig_name, file_name, file_desc, file_type, file_size, added_by, date_added FROM $fsdb.${fsprfx}attachments -- cgit v1.2.3-24-g4f1b