graphprotocol / graphprotocol/indexer

Graph-indexer indexer rules get doesn't output valid json or yaml

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
262
Forks
148
PR merge metrics
No merged PRs in 30d

Description

This prevent pipping output to some other command.

This is caused by those print.

    print.info(displayIndexingRules(outputFormat, onchainRules))
    if (offchainRules) {
      print.info('Offchain syncing subgraphs')
      print.info(displayIndexingRules(outputFormat, offchainRules))
    } else {
      print.info(`Not syncing any subgraphs offchain`)
    }

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

The relevant entry point is the indexer rules get command; start by locating the handler containing the shown print.info calls. Run it with JSON and YAML output and pipe each result to a parser. Done means the output contains no status text that makes either format invalid.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.