Indexer-cli feature request: Add bulk `id` filtering options to `graph indexer actions update...` command

Open
#1,022 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start at the graph indexer actions update... command and inspect how its existing bulk filters are implemented. Add coverage for --id_lt and --id_gt, confirming that queued reallocate actions outside the requested ID bounds are not selected.

Written by the indexing model from the issue text.

Description

indexer-cli

Currently the update command supports some bulk filtering options which are very useful. However, if the user wants to filter on id the only option is to use the single id select option.

I propose adding the following optional flags:

  • --id_lt (id less than)
  • --id_gt (id greater than)

Example usage:
If I have 500 reallocate actions with status = queued and ids in the range of (100, 800), and I want to begin approving and executing them in small batches. I would like to be able to do something like graph indexer actions update --status queued --type reallocate --id_lt 150 to approve just some of the reallocate actions in the queue.

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

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.

More from graphprotocol/indexer

All issues in graphprotocol/indexer

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.