graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.91k stars 971 forks source link

[Feature] Include pointer to source in subgraph manifest #5181

Open lutter opened 9 months ago

lutter commented 9 months ago

Description

Most subgraphs are maintained in git, but once they are deployed, the connection to the source is lost. Subgraph schemas should make it possible to include a URL to a git repo and a commit hash to make it possible to trace the provenance of a deployed subgraph. This should be supported by graph-cli to make filling these fields convenient, and probably needs some option to turn it off for people who do not want that information published.

Some information to help us out

azf20 commented 9 months ago

Is this different to the repository field in the manifest? https://github.com/graphprotocol/graph-node/blob/master/docs/subgraph-manifest.md#13-top-level-api I agree that graph-cli could grab the commit hash and put a link to the repo at that commit (though that depends on good hygiene in terms of committing, then deploying - I know that I will often deploy my subgraph and validate, before committing)

github-actions[bot] commented 1 month ago

Looks like this issue has been open for 6 months with no activity. Is it still relevant? If not, please remember to close it.