graphprotocol / graphprotocol/indexer

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

Open
#778 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement indexer-agent p2
Dominant language
TypeScript
Stars
262
Forks
148
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with indexer-agent-configs/mainnet.yaml and compare the geoCoordinates input expected when INDEXER_AGENT_MULTINETWORK_MODE is true versus false. Reproduce the discrepancy using the two coordinate formats described in the issue; done means both modes provide consistent coordinate input behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.