Skip to content

Add Bolivia (BO) to countries without postal codes#95

Merged
maximebedard merged 1 commit intomasterfrom
add-bolivia-to-country-without-codes
Aug 15, 2017
Merged

Add Bolivia (BO) to countries without postal codes#95
maximebedard merged 1 commit intomasterfrom
add-bolivia-to-country-without-codes

Conversation

@maximebedard
Copy link
Copy Markdown
Contributor

@maximebedard maximebedard commented Aug 14, 2017

According to the list of country codes, Bolivia doesn't require a zip code. I'm simply adding the code to that list.

ref: https://en.wikipedia.org/wiki/List_of_postal_codes

@Shopify/checkout

Copy link
Copy Markdown

@jpcaissy jpcaissy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No tests?

@maximebedard
Copy link
Copy Markdown
Contributor Author

There's tests, just not for every countries https://github.com/Shopify/active_utils/blob/master/test/unit/country_test.rb#L68-L76

This is a config, is it worth testing that the config works?

@maximebedard maximebedard requested a review from gndowns August 14, 2017 20:19
Copy link
Copy Markdown

@jpcaissy jpcaissy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with this. There is a formal unit test to make sure a country could not require postal codes.

Edit: Double confirmed on UPU and Bolivia doesn't have a postal code on their addressing format: http://www.upu.int/fileadmin/documentsFiles/activities/addressingUnit/bolEn.pdf

Copy link
Copy Markdown

@Mangoov Mangoov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@christianblais
Copy link
Copy Markdown
Contributor

@maximebedard, faster than light.

@maximebedard maximebedard merged commit c21f0c7 into master Aug 15, 2017
@maximebedard maximebedard deleted the add-bolivia-to-country-without-codes branch August 15, 2017 13:55
itsgarcia added a commit that referenced this pull request Dec 16, 2018
As per #95 adds Vanuatu (VU) to list of countries not requiring postal codes.

Refs:
https://en.wikipedia.org/wiki/List_of_postal_codes - indicates no postal codes in Vanuatu
https://www.iso.org/obp/ui/#iso:code:3166:VU - ISO code confirmation
http://www.upu.int/fileadmin/documentsFiles/activities/addressingUnit/vutEn.pdf - UPU check as per previous review

Based on https://github.com/Shopify/shopify/issues/182522
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.

4 participants