Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bromley] Create 'Investigation Required' events for comments on closed Echo-backed reports. #4869

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

neprune
Copy link
Contributor

@neprune neprune commented Mar 7, 2024

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

Attention: Patch coverage is 92.13483% with 7 lines in your changes missing coverage. Please review.

Project coverage is 83.90%. Comparing base (2460d7d) to head (a98b4e0).
Report is 170 commits behind head on master.

Files with missing lines Patch % Lines
perllib/FixMyStreet/Cobrand/Bromley.pm 92.20% 0 Missing and 6 partials ⚠️
perllib/FixMyStreet/App/Controller/Waste/Echo.pm 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4869      +/-   ##
==========================================
+ Coverage   82.66%   83.90%   +1.24%     
==========================================
  Files         404      408       +4     
  Lines       31462    35508    +4046     
  Branches     4988     6157    +1169     
==========================================
+ Hits        26008    29793    +3785     
- Misses       3975     4168     +193     
- Partials     1479     1547      +68     
Flag Coverage Δ
83.90% <92.13%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@neprune neprune changed the title [Bromley] Resend echo-backed reports that are reopened. [Bromley] Create 'Investigation Required' events for comments on closed Echo-backed reports. Mar 7, 2024
@neprune neprune force-pushed the bromley-echo-reopen branch 2 times, most recently from 88652a0 to 63ed4e0 Compare March 7, 2024 16:05
@neprune neprune requested a review from dracos March 7, 2024 16:27
Copy link
Member

@dracos dracos left a comment

Choose a reason for hiding this comment

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

Looks good. I'm just tidying it up now with my phase2 thing and will then try and put on staging. I think for my phase2 I changed the category rather than use a hidden one as you have here, your way might be preferable depending on how it looks, but can see during testing I guess!

perllib/FixMyStreet/Cobrand/Bromley.pm Outdated Show resolved Hide resolved
perllib/FixMyStreet/Cobrand/Bromley.pm Outdated Show resolved Hide resolved
dracos and others added 9 commits August 14, 2024 09:16
When adding the comment data to the notes field include
the user details with the comment in the format requested

mysociety/societyworks#4232
Ingore any updates from Echo that aren't New/Completed
and don't have a resolution code.
Without doing this, if the Echo report is closed again with the same
resolution code (which maps to external status code), the response
template is not located because that only looks for external status code
templates if the external status code has changed.
Using the same handover_notes as Echo to Bromley means that they will be
automatically added to the detail when sent, and included in the Notes,
as well as the report details.
Both the parent and client event updates are coming through to us
on the same report, as they have the same client reference, and
the parent event GUID is the one stored on the report, but we
need to look up the child event when we receive an update on
the child.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants