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

Use standard area_from_code for legacy code lookup #420

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

dracos
Copy link
Member

@dracos dracos commented Dec 21, 2023

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

@dracos dracos requested a review from davea December 21, 2023 12:38
Copy link

codecov bot commented Dec 21, 2023

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 ⚠️
Additional details and impacted files
@@            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     

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

This should mean no unhandled server errors if multiple results
returned, and both endpoints should act the same.
@dracos dracos force-pushed the multiple-gss-code-fix-2 branch from e0bb011 to 43abf6f Compare January 9, 2024 10:01
@dracos dracos merged commit 43abf6f into master Jan 9, 2024
8 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.

2 participants