Skip to content

Conversation

@nephila-nacrea
Copy link
Contributor

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

Another PR for handle-group-with-category-selection as yet another bug, where response templates were not being picked up in JS.
Previous two: #5777, #5800.

@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

❌ Patch coverage is 89.83051% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.52%. Comparing base (bcc77df) to head (1300542).
⚠️ Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
...erllib/FixMyStreet/App/Controller/Admin/Reports.pm 88.46% 2 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5806      +/-   ##
==========================================
- Coverage   82.61%   82.52%   -0.10%     
==========================================
  Files         458      460       +2     
  Lines       35768    36266     +498     
  Branches     5831     5930      +99     
==========================================
+ Hits        29551    29929     +378     
- Misses       4515     4630     +115     
- Partials     1702     1707       +5     

☔ 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.

@nephila-nacrea nephila-nacrea changed the title [Third PR 🐵 ] Allow group to be updated alongside category on report edit/inspect formsHandle group with category selection [Third PR 🐵] Allow group to be updated alongside category on report edit/inspect formsHandle group with category selection Jan 14, 2026
@nephila-nacrea nephila-nacrea changed the title [Third PR 🐵] Allow group to be updated alongside category on report edit/inspect formsHandle group with category selection [Third PR 🐵] Allow group to be updated alongside category on report edit/inspect forms Jan 14, 2026
@nephila-nacrea nephila-nacrea force-pushed the handle-group-with-category-selection branch from feff193 to 4524ea6 Compare January 14, 2026 15:12
JS is used to update response template and priority options
whenever the category is changed in the report inspect form.
These need to take into consideration that category strings
are not of the form 'group__category'.

JS is also used for duplicate lookup, but it turns out this
does not use the form category.
@nephila-nacrea nephila-nacrea force-pushed the handle-group-with-category-selection branch from 4524ea6 to 19501a8 Compare January 14, 2026 15:18
@nephila-nacrea nephila-nacrea requested a review from dracos January 14, 2026 16:06
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.

2 participants