-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: Remove historic countries that do not exist today from country list #5612
fix: Remove historic countries that do not exist today from country list #5612
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/7zawc5m5h |
Codecov Report
@@ Coverage Diff @@
## development #5612 +/- ##
============================================
Coverage 23.43% 23.43%
============================================
Files 508 508
Lines 5377 5377
Branches 47 47
============================================
Hits 1260 1260
Misses 4109 4109
Partials 8 8
Continue to review full report at Codecov.
|
app/utils/dictionary/demography.ts
Outdated
{ | ||
name : 'Czech Republic', | ||
code : 'CZ' | ||
}, | ||
{ | ||
name : 'German Democratic Republic', | ||
code : 'DD' |
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.
No longer in existence.
app/utils/dictionary/demography.ts
Outdated
{ | ||
name : 'Hong Kong', | ||
code : 'HK' | ||
}, |
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.
Please keep Hong Kong.
app/utils/dictionary/demography.ts
Outdated
{ | ||
name : 'Taiwan', | ||
code : 'TW' | ||
}, |
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.
Taiwan is an existing territory even though China does not recognize it. Where did you get the info for that list? I am not an expert on all countries but it seems not all data is correct here.
{ | ||
name : 'East Timor', | ||
code : 'TP' | ||
}, |
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.
Please check. I think it still exists.
app/utils/dictionary/demography.ts
Outdated
{ | ||
name : 'Uganda', | ||
code : 'UG' | ||
}, |
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.
Why no more Uganda?
{ | ||
name : 'Uzbekistan', | ||
code : 'UZ' | ||
}, |
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.
still in existence
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.
These changes do not seem to be entirely correct. Please do more research about this information and also update if a country name or region name has changed. Also point to where you found the information. So we can understand it. Thanks.
ok sir, i will check every country one by one |
Hey, are you still working on it? |
yes |
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.
You can use this resource. It has all the countries recognized by the UN(2020).
https://www.worldometers.info/geography/countries-of-the-world/
@MeghalBisht thanks. |
https://github.com/annexare/Countries/blob/master/dist/countries.json const countries = await (await fetch('https://raw.githubusercontent.com/annexare/Countries/master/dist/countries.json')).json()
Object.entries(countries).map(([code, { name }]) => ({ code, name })) |
41da219
to
6925a62
Compare
@iamareebjamal sir, I tried this. Thats why I have totally matched counries in our demography,ts with your provided list. i have checked each and every country one by one and correct them and remove them. |
I meant run it in your browser console and copy it here, but you seemed to have done the same already |
@iamareebjamal yes, sir. |
Fixes #5604
Short description of what this resolves:
remove all old countries.
Checklist
development
branch.