mysociety / mapit

A web service to map postcodes to administrative boundaries and more
Other
269 stars 88 forks source link

Use standard area_from_code for legacy code lookup #420

Closed dracos closed 9 months ago

dracos commented 10 months ago

This should mean no unhandled server errors if multiple results returned, and both endpoints should act the same (so the /code lookup will now pass through a query string, and the legacy /area lookup should cope better with multiple results, and you could now include a type to differentiate between WMC/WMCF).

codecov[bot] commented 10 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (f1f4345) 75.00% compared to head (43abf6f) 75.27%.

Files Patch % Lines
mapit/views/areas.py 90.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #420 +/- ## ========================================== + Coverage 75.00% 75.27% +0.26% ========================================== Files 47 47 Lines 2805 2811 +6 ========================================== + Hits 2104 2116 +12 + Misses 701 695 -6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.