From 3dd1d1f2cb68b731d23ecea9eb580fe08a190ce8 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 26 Jun 2019 12:19:32 +0100 Subject: [Open311] Remove update problem matching warning. Lots of false positives from other bodies too. --- perllib/Open311/GetServiceRequestUpdates.pm | 6 ------ 1 file changed, 6 deletions(-) (limited to 'perllib/Open311/GetServiceRequestUpdates.pm') diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm index c0da7793f..3d593a4eb 100644 --- a/perllib/Open311/GetServiceRequestUpdates.pm +++ b/perllib/Open311/GetServiceRequestUpdates.pm @@ -104,7 +104,6 @@ sub update_comments { next if @args && ($updated lt $args[0] || $updated gt $args[1]); my $problem; - my $match_field = 'external_id'; my $criteria = { external_id => $request_id, }; @@ -119,7 +118,6 @@ sub update_comments { $criteria = { id => $request->{fixmystreet_id}, }; - $match_field = 'fixmystreet id'; } $problem = $self->schema->resultset('Problem')->to_body($body)->search( $criteria ); @@ -221,10 +219,6 @@ sub update_comments { } } } - # we get lots of comments that are not related to FMS issues from Lewisham so ignore those otherwise - # way too many warnings. - } elsif (FixMyStreet->config('STAGING_SITE') and $body->name !~ /Lewisham/) { - warn "Failed to match comment to problem with $match_field $request_id for " . $body->name . "\n"; } } -- cgit v1.2.3