-
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
Mismatch between graphql data and whereisip #148
Comments
Our squid processor uses this API |
There is a v3 of the API that we are using in Graphql (currently we are using v2).
and for
so, I can switch from v2 to v3 in Graphql init script and use the common name. This would solve the reported instances from @MohamedElmdary and @samaradel but I am not sure if there is an easy way to retrieve all country names from the |
hi, i was debugging an issue on gridproxy threefoldtech/tfgrid-sdk-go#699 it shows a broken region filter for nodes. how the region filter work on the proxy? but looks like there is an inconsistency between the data returned from the graphql the common short name is the one used on the node table but the official full name is used on the country table so that is why |
Update: It is based on the changes I mentioned in my previous comment. As I mentioned in the PR description, this is a temporary, easy workaround fix. To elaborate, in our squid processor, we fetch cities from the repository available at https://raw.githubusercontent.com/shivammathur/countrycity/master/data/geo.json and countries from the https://restcountries.com/ API. We then join these data based on the country name. Similarly, in the Gridproxy, we fetch node data from the chain and county data from GraphQL and join it based on the country name. This process is not always accurate as there are often alternative spellings for country names. Hence, unless you are using the same data source, it's not guaranteed to find a match. To properly resolve this issue, I suggest using the same API (if possible), or a more unique identifier such as country code. Also, we could sort to craft our data source and use it. |
All is good now? @MohamedElmdary @samaradel @Omarabdul3ziz |
Naming of country
czechia
comes fromwhereisip
however graphql return another namingCzech Republic
The text was updated successfully, but these errors were encountered: