diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-05-11 17:28:19 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-12-06 11:08:18 +0100 |
commit | 24f349ce4b634e5445706a3bc4860741c8f40281 (patch) | |
tree | 2295477afd461de950f08a818f5df1dcebc364e7 /Bugzilla/Migrate | |
parent | 5135638f83d5c16698fd3b8a5323c81a6e0441cf (diff) | |
download | bugzilla-24f349ce4b634e5445706a3bc4860741c8f40281.tar.gz bugzilla-24f349ce4b634e5445706a3bc4860741c8f40281.tar.xz |
Flyspray: misc clean + debug output
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'Bugzilla/Migrate')
-rw-r--r-- | Bugzilla/Migrate/Flyspray.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Bugzilla/Migrate/Flyspray.pm b/Bugzilla/Migrate/Flyspray.pm index 0b2997536..abce3ae12 100644 --- a/Bugzilla/Migrate/Flyspray.pm +++ b/Bugzilla/Migrate/Flyspray.pm @@ -318,6 +318,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}}, @@ -372,8 +373,6 @@ sub _read_bugs { } - my $comments = {}; - # fetch comments my $comments_sth = $self->{dbh}->prepare_cached(" SELECT comment_id, user_id, date_added, comment_text @@ -386,7 +385,6 @@ sub _read_bugs { thetext => $comment->{comment_text}, }; push @{$bug->{comments}}, $comment_item; - $comments->{$comment->{comment_id}} = $comment_item; } # get history @@ -483,7 +481,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 |