Skip to content

Commit

Permalink
[Confirm] Allow ignoring of enquiries in certain status
Browse files Browse the repository at this point in the history
Fetched Enquiries will be skipped if their status
maps to IGNORE in reverse_status_mapping.

Matches behaviour of update fetching in 42f75f6.
  • Loading branch information
davea committed Oct 15, 2024
1 parent e1b7c5d commit 6252eb4
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 @@ -825,6 +825,7 @@ sub get_service_requests {
my $code = $enquiry->{ServiceCode} . "_" . $enquiry->{SubjectCode};
my $service = $services{$code};
my $status = $self->reverse_status_mapping->{$enquiry->{EnquiryStatusCode}};
next if $status && $status eq 'IGNORE';

unless ($service || ($service = $self->_find_wrapping_service($code, \@services))) {
$self->logger->warn("no service for service code $code");
Expand Down

0 comments on commit 6252eb4

Please sign in to comment.