Skip to content

Commit

Permalink
[Northumberland] Skip sending updates on reports fetched from Alloy.
Browse files Browse the repository at this point in the history
And remove the code that accidentally set this up on the Northamptonshire cobrand.
  • Loading branch information
neprune committed Jun 11, 2024
1 parent 1e746b0 commit 244931d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 0 additions & 4 deletions perllib/FixMyStreet/Cobrand/Northamptonshire.pm
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@ sub should_skip_sending_update {
return 1;
}

if ($self->is_defect($p)) {
return 1;
}

my $move = DateTime->new(year => 2022, month => 9, day => 12, hour => 9, minute => 30, time_zone => FixMyStreet->local_time_zone);
return 1 if $p->whensent < $move;

Expand Down
15 changes: 15 additions & 0 deletions perllib/FixMyStreet/Cobrand/Northumberland.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ sub disambiguate_location {

sub admin_user_domain { 'northumberland.gov.uk' }

sub is_defect {
my ($self, $p) = @_;
return $p->service eq 'Open311';
}

=item * The default map zoom is a bit more zoomed-in
=cut
Expand Down Expand Up @@ -208,6 +213,16 @@ sub dashboard_export_problems_add_columns {
});
}

=item * Updates on reports fetched from Alloy are not sent.
=cut

sub should_skip_sending_update {
my ($self, $comment) = @_;
my $p = $comment->problem;
return $self->is_defect($p);
}

=back
=cut
Expand Down

0 comments on commit 244931d

Please sign in to comment.