graph-node icon indicating copy to clipboard operation
graph-node copied to clipboard

[Feature] How to retrieve information about a historical version of a subgraph?

Open bijianing97 opened this issue 1 year ago • 4 comments

Description

I am running the Graph Protocol locally and have deployed a subgraph named "test" with the version v0.0.1, which I can access at http://127.0.0.1:8000/subgraphs/name/test.

I then deployed another version of the subgraph with the same name but with version v0.0.2. Is the data from version v0.0.1 still available? How can I access the data from version v0.0.1?

Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.

No response

Some information to help us out

  • [ ] Tick this box if you plan on implementing this feature yourself.
  • [X] I have searched the issue tracker to make sure this issue is not a duplicate.

bijianing97 avatar Apr 22 '24 07:04 bijianing97

I would be very grateful if someone could tell me it

bijianing97 avatar Apr 22 '24 07:04 bijianing97

@incrypto32 is this accessible in the DB?

azf20 avatar Jun 17 '24 12:06 azf20

I deployed twice first

graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 --version-label v0.0.1 demo

and secord

graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 --version-label v0.0.2 demo

I don't know is this accessible in the DB, maybe this information can help you judge?

bijianing97 avatar Jun 17 '24 12:06 bijianing97

@bijianing97 you can run a graphman info subgraph_name it will show the prefious deployments also as inactive

incrypto32 avatar Jun 17 '24 14:06 incrypto32