graphprotocol / graphprotocol/graph-network-subgraph
Additional field request: `Subgraph.currentVersionIpfsHash`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 82
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
Background
The subgraph search on the explorer leaves a lot to be desired. Most indexers (and likely other participants too) use subgraph deployment ids as the identifier for a subgraph, so the lack of deployment id based search functionality feels like a glaring hole.
Proposed Solution
Until fulltext search functionality is able to span across multiple entity types we are limited to searching on Subgraph entity fields, so to support filtering subgraphs based on their deployment id I'd like to propose adding a new field to the Subgraph entity type which would contain the ipfs hash of the latest version deployment for that subgraph: Subgraph.currentVersionIpfsHash. Then this field can be included in the subgraphSearch fulltext search field here.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in schema.graphql around the Subgraph entity and the subgraphSearch definition near line 1230. Trace how the latest version deployment is represented and how searchable fields are populated. Done means Subgraph.currentVersionIpfsHash contains the latest deployment IPFS hash and is included in subgraphSearch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- backend-api-design, search
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100