Skip to content

Conversation

@davea
Copy link
Member

@davea davea commented Dec 18, 2025

Replaces the body name on the admin report edit page with a dropdown, allowing superusers to change the destination body for a failed report.

This is intended primarily for the situation where a report has been associated with the wrong body when created (e.g. some NH reports on FMS.com) and needs manually changing to the correct body.

Deliberately limited in scope, the dropdown only appears for reports that:

  • haven't yet been sent,
  • have failed to send at least once,
  • are for a single body, and
  • are at a location that has another body they can be asssigned to.

Any changes made are added to the admin log for the report.

dropdown2

[skip changelog]

Replaces the body name on the admin report edit page with a dropdown,
allowing superusers to change the destination body for a failed report.

This is intended primarily for the situation where a report has been
associated with the wrong body when created (e.g. some NH reports on
FMS.com) and needs manually changing to the correct body.

Deliberately limited in scope, the dropdown only appears for reports
that:

 - haven't yet been sent,
 - have failed to send at least once,
 - are for a single body, and
 - are at a location that has another body they can be asssigned to.

Any changes made are added to the admin log for the report.
@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 75.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.63%. Comparing base (08bfe41) to head (f45a6f3).

Files with missing lines Patch % Lines
...erllib/FixMyStreet/App/Controller/Admin/Reports.pm 75.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5786      +/-   ##
==========================================
- Coverage   82.64%   82.63%   -0.01%     
==========================================
  Files         457      457              
  Lines       35716    35728      +12     
  Branches     5822     5826       +4     
==========================================
+ Hits        29516    29524       +8     
- Misses       4501     4502       +1     
- Partials     1699     1702       +3     

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

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