Skip to content

5427 dispute missed bin report closed#5910

Closed
struan wants to merge 7 commits into
5275-sutton-missed-collection-disputesfrom
5427-dispute-missed-bin-report-closed
Closed

5427 dispute missed bin report closed#5910
struan wants to merge 7 commits into
5275-sutton-missed-collection-disputesfrom
5427-dispute-missed-bin-report-closed

Conversation

@struan

@struan struan commented Mar 31, 2026

Copy link
Copy Markdown
Member

This is disputes for when a missed collection has been raised and then
the second collection has been attempted but not completed.

Fixes https://github.com/mysociety/societyworks/issues/5427

[skip changelog]

@struan struan changed the base branch from master to 5275-sutton-missed-collection-disputes March 31, 2026 15:32
@codecov

codecov Bot commented Mar 31, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.36170% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.43%. Comparing base (d3098d5) to head (a122079).
⚠️ Report is 1 commits behind head on 5275-sutton-missed-collection-disputes.

Files with missing lines Patch % Lines
perllib/FixMyStreet/Roles/Cobrand/Echo.pm 50.00% 4 Missing and 1 partial ⚠️
...erllib/FixMyStreet/Roles/Cobrand/KingstonSutton.pm 92.30% 0 Missing and 3 partials ⚠️
perllib/FixMyStreet/Cobrand/Sutton.pm 95.55% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@                            Coverage Diff                             @@
##           5275-sutton-missed-collection-disputes    #5910      +/-   ##
==========================================================================
+ Coverage                                   83.42%   83.43%   +0.01%     
==========================================================================
  Files                                         500      500              
  Lines                                       37409    37527     +118     
  Branches                                     6183     6211      +28     
==========================================================================
+ Hits                                        31207    31312     +105     
- Misses                                       4388     4395       +7     
- Partials                                     1814     1820       +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@struan struan force-pushed the 5427-dispute-missed-bin-report-closed branch 2 times, most recently from b64cc25 to ff6c53d Compare April 2, 2026 15:55
@struan struan marked this pull request as ready for review April 7, 2026 08:57
@struan struan force-pushed the 5427-dispute-missed-bin-report-closed branch from 5711e6c to ee3c15e Compare April 7, 2026 09:22
@lizettal lizettal requested a review from MorayMySoc April 7, 2026 13:10

@MorayMySoc MorayMySoc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Couple of minor notes just highlighting extra empty lines and a typo in explanation

my $disputes = $events->filter({ event_type => 3143, service => $service_id });
my $missed_events = $events->filter({ type => 'missed', service => $service_id });
my $missed = $self->{c}->stash->{booked_missed};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an added line

$missed->{$guid}{service_id},
$missed->{$guid}{report_locked_out_reason}
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added line

$missed->{$guid}{event_id} = $missed_event->{id};
$missed->{$guid}{report_id} = $missed_event->{report}->id;
}
# out original collection was not picked up because of a problem so we

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'our original'

@struan struan force-pushed the 5427-dispute-missed-bin-report-closed branch 2 times, most recently from b52670e to e5c375a Compare April 16, 2026 16:16
@dracos dracos force-pushed the 5275-sutton-missed-collection-disputes branch from 5242605 to 8040dc3 Compare May 19, 2026 11:40
@dracos dracos force-pushed the 5427-dispute-missed-bin-report-closed branch from e5c375a to 8bd816a Compare May 19, 2026 11:41
@nephila-nacrea nephila-nacrea force-pushed the 5275-sutton-missed-collection-disputes branch 2 times, most recently from 14e2963 to 5af0430 Compare June 17, 2026 13:35
@nephila-nacrea nephila-nacrea force-pushed the 5427-dispute-missed-bin-report-closed branch from 8bd816a to 320a16d Compare June 17, 2026 15:12
@nephila-nacrea nephila-nacrea force-pushed the 5275-sutton-missed-collection-disputes branch from 5af0430 to 26fa049 Compare June 17, 2026 16:58
@nephila-nacrea nephila-nacrea force-pushed the 5427-dispute-missed-bin-report-closed branch from 320a16d to 6f50940 Compare June 18, 2026 08:46
@dracos dracos force-pushed the 5275-sutton-missed-collection-disputes branch from 26fa049 to 6ae1ccc Compare June 19, 2026 10:26
@dracos dracos force-pushed the 5427-dispute-missed-bin-report-closed branch from 5f50c5b to a93c3e9 Compare June 19, 2026 10:29
Co-authored-by: Matthew Somerville <matthew@mysociety.org>
@dracos dracos force-pushed the 5427-dispute-missed-bin-report-closed branch from a93c3e9 to 657ef50 Compare June 19, 2026 12:00
struan added 6 commits June 19, 2026 14:09
This is disputes for when a missed collection has been raised and then
the second collection has been attempted but not completed.

Fixes mysociety/societyworks#5427
In order to get the details of missed missed collections need to parse
all the missed events and stash them instead of only the missed initial
collections
Update the alert template to add a link to the dispute form if a missed
collection was again missed.
was previously from 6pm on day of collection
@dracos dracos force-pushed the 5427-dispute-missed-bin-report-closed branch from 657ef50 to a122079 Compare June 19, 2026 13:42
@dracos

dracos commented Jun 19, 2026

Copy link
Copy Markdown
Member

This has been merged somewhere

@dracos dracos closed this Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants