-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Update zip_codes.xml patterns for Guernsey & Jersey #33128
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
Conversation
Update zip_codes.xml patterns for Guernsey to support GY10 postcodes for the Island of Sark e.g. https://en.wikipedia.org/wiki/GY_postcode_area
Hi @DrJohnM. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Functional Tests EE, Functional Tests B2B |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento create issue |
@magento run Functional Tests EE, Functional Tests B2B |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Guernsey postcodes start from |
Updates to restrict postcodes to GY, inline with suggestion from contributor "Den4ik".
Updates made https://github.com/magento/magento2/pull/33128/files |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Integration Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@@ -258,7 +258,8 @@ | |||
</zip> | |||
<zip countryCode="GG"> | |||
<codes> | |||
<code id="pattern_1" active="true" example="AB1 2CD">^[a-zA-Z]{2}[0-9]{1}\s[0-9]{1}[a-zA-Z]{2}$</code> | |||
<code id="pattern_1" active="true" example="GY1 2AB">^GY[0-9]{1}\s[0-9]{1}[a-zA-Z]{2}$</code> | |||
<code id="pattern_2" active="true" example="GY10 1PB">^GY[0-9]{2}\s?[0-9]{1}[a-zA-Z]{2}$</code> |
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.
Just expand a single pattern instead of adding a new one (GY[0-9]{1}
-> GY[0-9]{2}
).
Would be really nice to cover this revealed case with a unit test.
After changes are applied and all builds are green, please squash them into a single commit so that we have perfectly clean history 😉
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.
Just expand a single pattern instead of adding a new one (
GY[0-9]{1}
->GY[0-9]{2}
).
@orlangur postcode could have digit from 0-9
or 10
.
I suggest another pattern ^GY([0-9]|10)\s[0-9][a-zA-Z]{2}
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.
Applied updates via d2e11d0
I also fixed another bug with Jersey postcodes if customers enter postcodes without spaces.
@engcom-Alfa Thanks for the comment. I believe that writing postcodes by small chars is incorrect, but may be it make sense. @DrJohnM Could you update PR? |
@DrJohnM @Den4ik And @engcom-Alfa Thanks for your contribution! |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
2 similar comments
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Hi @Den4ik , I have updated PR with requested changes. Requesting you for review. Thank You! |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Hi @sidolov, thank you for the review. |
Hi @DrJohnM, thank you for your contribution! |
Update zip_codes.xml patterns for Guernsey to support GY10 postcodes for the Island of Sark e.g. https://en.wikipedia.org/wiki/GY_postcode_area
Description (*)
Guernsey postcodes for the island of Sark start with GY10 e.g. "GY10 1PB" which the previous "pattern" did not cover.
Source:
Manual testing scenarios (*)
Contribution checklist (*)
Resolved issues: