-
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
Add XK and AN to continental grouping #76
base: main
Are you sure you want to change the base?
Conversation
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.
I think that adding XK under 039 ("Southern Europe") is, indeed, the right thing to do. 👍
😕 I'm unsure whether we really want to be adding AN to this list. In some sense, having AN cause an error by having a null value is a feature, not a bug. We have run into problems in the past (many, many times...) where code assumed that AN is a "going concern" and got into trouble down the road. Perhaps @kwiersema or @devanandersen might want to chime in here?
Initially I was only looking at fixing XK, and was trying to find other instances where a country didn't have an associated continent, to add in a test to stop regressions. Happy to drop this part and add in a test with AN as a known "country" region without a continent. For my use case this should be fine. What we were seeing was an extra group in our country selector when we were grouping by continent name. As AN does not appear in our country list, it makes little difference. |
Agree - had the Antilles not have been dissolved, I think this PR on its own would make sense. If anything, we should be slowly removing information for AN, not adding. Would you be able to briefly go into your use case?
This I'm hesitant of - AN isn't technically a known "country" anymore - it was dissolved October 10, 2010. |
The difficulty with removing AN (and the reason why it's still present here) is that we want to be able to process information about historical orders that were placed prior to October 2010, at which time AN was a "going concern". |
IMHO, "Netherlands Antilles" should not be shown in the list, and should not be selectable. You shouldn't be able to add a country that no longer exists to a market. We should be removing any "country" for which shopify(dev)> Worldwide.region(code: "AN").deprecated?
=> true |
Yes, sorry for any confusion, that is the case now. It doesn't appear on our list, I think that we need to specifically ask for deprecated countries on Atlas in order for them to show up, and we aren't doing that. I'll push an update to remove AN from the change. |
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 once we remove AN
👍🏼
What are you trying to accomplish?
Add continent grouping to Kosovo (XK) and Netherlands Antilles (AN)
The
associated_continent
attribute currently returns nil for these. When we translate these regions' continent names in atlas, we fall back to the EN group name. This gives a mixed language experience, even though we have translations for these continents.What approach did you choose and why?
I updated the
world.yml
to reflect the geographic positions of these countries, putting AN into the Caribbean, and XK into Southern Europe. This file is meant to reflect the M49 data, but as AN is a deprecated country code, it doesn't appear in the data, and XK is not fully recognised by all of the UN, so I assume that's why it's not there either.What should reviewers focus on?
Should this be done another way to avoid overwriting the M49 data?
The impact of these changes
...
Testing
...
Checklist