Skip to content

Commit

Permalink
[Confirm] Allow ignoring of particular status logs
Browse files Browse the repository at this point in the history
You can specify IGNORE in the reverse status mapping and then
any status log entry with the relevant status code will not be
output.
  • Loading branch information
dracos committed Mar 16, 2020
1 parent 495eb9f commit 42f75f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions perllib/Open311/Endpoint/Integration/Confirm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ sub get_service_request_updates {
($status_log->{StatusLogNotes} || "") :
"";
my $status = $self->reverse_status_mapping->{$status_log->{EnquiryStatusCode}};
next if $status && $status eq 'IGNORE';
if (!$status) {
print STDERR "Missing reverse status mapping for EnquiryStatus Code $status_log->{EnquiryStatusCode} (EnquiryNumber $enquiry->{EnquiryNumber})\n";
$status = "open";
Expand Down

0 comments on commit 42f75f6

Please sign in to comment.