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

Country code conversion review #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Country code conversion review #3

wants to merge 6 commits into from

Conversation

mousebaiker
Copy link
Collaborator

@mousebaiker mousebaiker commented Nov 6, 2018

Please review the latest commits related to country code conversion.

Don't scroll the conversion map all the way down straight away. Give it some attention as I was generating it with macros and might have screwed up somewhere.

Additionally, all the flags including the ones for provinces should be visible now. The world maps still don't show these provinces as well as there's no aggregation in the list for these fine-grained countries.

Note: I pushed straight to a dev branch, my changes got clustered together with the previous ones and it's a bit hard to review everything right now. Sorry about that. Just cancel the merge request if you think everything is fine. Next time I will make a separate branch for a new feature and make a pull request to the dev branch.

mousebaiker and others added 4 commits November 1, 2018 18:42
This allows for automatic common and unique country extraction, easy country counting
and no manual HTML editing.
Refactor for automatic country processing.
This feature allows to store country data in a human-readable way and then convert it to
easier to use country codes.

Flags work now, expectw for provinces, which need to be handled separatly.
'Guyana': 'GY',
'Haiti': 'HT',
'Heard Island and McDonald Islands': 'HM',
'Holy See (Vatican City State)': 'VA',
Copy link
Owner

Choose a reason for hiding this comment

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

I was unsure about the spellings of some countries and if google charts can recognize them - such as Holy See (Vatican City State), Côte d\'Ivoire, Åland Islands etc., but I did verify they work just fine.
Good job!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you for review and actual verification. I did not check if they worked myself; just believed that Wikipedia listing will have them named in a proper manner and decided that they countries are not the most popular and can be checked when somebody actually visits them.

@UladBohdan
Copy link
Owner

Not merging this.
Will be merged once the feature is complete.

mousebaiker and others added 2 commits November 19, 2018 07:40
As some countries are visualized on a region level, we would like these
regions to be grouped together in a single entry.

Additionally, this patch takes care of visual discrepancy between these
fine-grained region codes and simple country name. As a side effect,
names in data.js can be specified by either full name of by 2 letter country code.
Aggregate provinces of a single country to a single table row.
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.

None yet

2 participants