-
Notifications
You must be signed in to change notification settings - Fork 3
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
EL-1692: postcode.io
validates postcode and country
#357
EL-1692: postcode.io
validates postcode and country
#357
Conversation
- create a new function called `validate_postcode_and_return_country` which uses `postcode.io` to validate full & partial postcodes and to look up country. - update `clean` method to use `validate_postcode_and_return_country` - add error logging to handle what happens when there is no validate country or when postcode.io is down - add comment about flake8
73ab5bf
to
62c60a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple comments from me, be good to also get a python dev to review!
- add some retries as per LAALAA repo
- add new test for scottish border postcodes & add extra comments for test cases
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does this pull request do?
validate_postcode_and_return_country
which usespostcode.io
to validate full & partial postcodes and to look up country.clean
method to usevalidate_postcode_and_return_country
postcode.io
is down.Any other changes that would benefit highlighting?
nhs_ha
key.Checklist