threefoldtech / tfgrid-sdk-go

Apache License 2.0
2 stars 4 forks source link

add location info indexer #1248

Open Omarabdul3ziz opened 2 weeks ago

Omarabdul3ziz commented 2 weeks ago

Is your feature request related to a problem? Please describe

the processor got the location data (country,city,lang,lat) from the chain events which is come from maxmind db. but to handle the region the processor gets it from this file https://github.com/threefoldtech/tfchain_graphql/blob/master/scripts/countries.json and this leads to inconsistency.

Describe the solution you'd like

the node could respond from the maxmind db with its region. add indexer to handle that, and fix the joins/where clauses in the triggers.