Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Discrepancy in UX of setting indexer-agent geocoordinates when multimode is false vs true #778

Open
alex-pakalniskis opened this issue Sep 18, 2023 · 0 comments
Labels

Comments

@alex-pakalniskis
Copy link
Contributor

alex-pakalniskis commented Sep 18, 2023

Indexer is reporting discrepancy in UX of setting indexer-agent geocoordinates when multimode is false vs true.

and I found a cool workaround for an issue on my side:
multimode=false agent didn't require a comma between the geo coordinate numbers and it was building the array by itself
multimode=true agent requires you to build the array yourself, ie: [69.69, 69.69]
the workaround - a nice little bash magic:
grep -q 'INDEXER_AGENT_MULTINETWORK_MODE=true' .env && awk '/geoCoordinates: \[\$\{GEO_COORDINATES:-[0-9.]* [0-9.]*\}\]/ {gsub(/([0-9.]+) ([0-9.]+)/, "\\1, \\2")} 1' indexer-agent-configs/mainnet.yaml > tmp.yaml && mv tmp.yaml indexer-agent-configs/mainnet.yaml
-Payne

Image

@alex-pakalniskis alex-pakalniskis converted this from a draft issue Sep 18, 2023
@alex-pakalniskis alex-pakalniskis changed the title Discrepancy between multimode false & true behavior Discrepancy in UX of setting geocoordinates when multimode is false vs true Sep 19, 2023
@alex-pakalniskis alex-pakalniskis changed the title Discrepancy in UX of setting geocoordinates when multimode is false vs true Discrepancy in UX of setting indexer-agent geocoordinates when multimode is false vs true Sep 19, 2023
@fordN fordN moved this from 🗃️ Inbox to 📒 Todo in Indexer Sep 25, 2023
@fordN fordN added the p2 label Sep 25, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
Status: 📒 Todo
Development

No branches or pull requests

2 participants