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

[Bexley] Look up service description #5165

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Conversation

MorayMySoc
Copy link
Contributor

@MorayMySoc MorayMySoc commented Sep 12, 2024

Adds the service description to the template email so the service and container are shown.

https://mysocietysupport.freshdesk.com/a/tickets/4449
[skip changelog]

Copy link

codecov bot commented Sep 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Project coverage is 69.24%. Comparing base (2eb0466) to head (9768b68).

Files with missing lines Patch % Lines
perllib/FixMyStreet/Cobrand/Bexley/Waste.pm 0.00% 10 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (2eb0466) and HEAD (9768b68). Click for more details.

HEAD has 7 uploads less than BASE
Flag BASE (2eb0466) HEAD (9768b68)
15 8
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #5165       +/-   ##
===========================================
- Coverage   82.49%   69.24%   -13.25%     
===========================================
  Files         406      404        -2     
  Lines       31708    31634       -74     
  Branches     5042     5033        -9     
===========================================
- Hits        26158    21906     -4252     
- Misses       4063     8244     +4181     
+ Partials     1487     1484        -3     

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

@@ -7,6 +8,7 @@
ELSIF is_missed_collection;
title = report.title;
title = title.remove('Report missed ');
title = title _ ' (' _ containers.$title _ ')';
Copy link
Member

Choose a reason for hiding this comment

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

This feels a bit fragile, to rely upon a title text string lookup. I may be missing something here, but if "Report missed" is being removed from the title, why are we adding it in the first place in Bexley/Waste.pm? Could we not add it when we construct the title at report creation, also add the type of container to the title there, and then we don't need to add it here or remove any text. I don't think anything expects the title to be of a particular format.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've not checked whether there is any other objection to not adding 'Report missed' to the service, but does seem to make sense...

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.

One bug, I think, "Various" handling looks good

perllib/FixMyStreet/Cobrand/Bexley/Waste.pm Outdated Show resolved Hide resolved
@dracos dracos force-pushed the hd-4449-add-service-type-to-bin branch from 7994409 to 9768b68 Compare September 17, 2024 11:43
@dracos dracos requested review from chrismytton and removed request for chrismytton September 17, 2024 11:43
@dracos
Copy link
Member

dracos commented Sep 17, 2024

@chrismytton As I made the fix here, could you give this a once over

Adds the service description to the report title, so
it's e.g. included in the template email.

https://mysocietysupport.freshdesk.com/a/tickets/4449
@dracos dracos force-pushed the hd-4449-add-service-type-to-bin branch from 9768b68 to 91bc758 Compare September 18, 2024 08:45
@dracos dracos merged commit 91bc758 into master Sep 18, 2024
19 checks passed
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