Skip to content

Conversation

@chrismytton
Copy link
Member

@chrismytton chrismytton commented Nov 3, 2025

Add tree-aware email routing for Hackney that directs tree reports to different departments based on the tree asset owner (Housing, Highways, Parks, etc.). Introduces a generic split email parser that handles both the existing park/estate/other format and new tree owner formats.

Refactors _split_emails to use the new generic _parse_split_emails method while maintaining backwards compatibility. Updates validate_contact_email to support both routing formats.

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

@codecov
Copy link

codecov bot commented Nov 3, 2025

Codecov Report

❌ Patch coverage is 82.75862% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.57%. Comparing base (7f06099) to head (3d8e62f).

Files with missing lines Patch % Lines
perllib/FixMyStreet/Cobrand/Hackney.pm 82.75% 0 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5726      +/-   ##
==========================================
- Coverage   82.60%   82.57%   -0.03%     
==========================================
  Files         455      455              
  Lines       35401    35423      +22     
  Branches     5751     5759       +8     
==========================================
+ Hits        29242    29251       +9     
- Misses       4477     4486       +9     
- Partials     1682     1686       +4     

☔ View full report in Codecov by Sentry.
📢 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.

@mysociety-pusher mysociety-pusher force-pushed the FD-5187-hackney-trees-route-by-owner branch from c40f899 to 21d65d2 Compare November 7, 2025 11:54
@chrismytton chrismytton requested a review from dracos November 7, 2025 12: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.

This all looks good, nice solution; couple of tiny suggestions is all

@chrismytton chrismytton requested a review from dracos November 7, 2025 16:25
Add tree-aware email routing for Hackney that directs tree reports to
different departments based on the tree asset owner (Housing, Highways,
Parks, etc.). Introduces a generic split email parser that handles both
the existing park/estate/other format and new tree owner formats.

Refactors _split_emails to use the new generic _parse_split_emails
method while maintaining backwards compatibility. Updates
validate_contact_email to support both routing formats.
@mysociety-pusher mysociety-pusher force-pushed the FD-5187-hackney-trees-route-by-owner branch from 5041128 to 3d8e62f Compare November 10, 2025 09:27
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