You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The naming convention for latest and version deployment sent from studio to graph-node is changing.
Current structure:
latest: studio/s{studio db subgraph id}_latest
version: studio/v{studio db version id}
Updated structure:
latest: u{studio db user id}/s{studio db subgraph id}/latest
version: u{studio db user id}/s{studio db subgraph id}/v{studio db version id}
In the studio query proxy package, we route received graphql requests (both queries and to load the graphql playground) to graph-node based off this naming convention.
For example, https://api.studio.staging.thegraph.com/proxy/28/testgnosis_1/v0.0.1/graphql would currently route to {GRAPH_NODE_BASE_URL}/subgraphs/name/studio/v{studio db version id}/graphql. But with this change, we will be routing to: {GRAPH_NODE_BASE_URL}/subgraphs/name/u{studio db user id}/s{studio db subgraph id}/v{studio db version id}/graphql (ex: {GRAPH_NODE_BASE_URL}/subgraphs/name/u89/s1478/v712/graphql).
Notes
After speaking with @lutter, he mentioned these are the places that need changed:
Description
The naming convention for latest and version deployment sent from studio to graph-node is changing.
Current structure:
studio/s{studio db subgraph id}_latest
studio/v{studio db version id}
Updated structure:
u{studio db user id}/s{studio db subgraph id}/latest
u{studio db user id}/s{studio db subgraph id}/v{studio db version id}
In the studio query proxy package, we route received graphql requests (both queries and to load the graphql playground) to graph-node based off this naming convention.
For example, https://api.studio.staging.thegraph.com/proxy/28/testgnosis_1/v0.0.1/graphql would currently route to
{GRAPH_NODE_BASE_URL}/subgraphs/name/studio/v{studio db version id}/graphql
. But with this change, we will be routing to:{GRAPH_NODE_BASE_URL}/subgraphs/name/u{studio db user id}/s{studio db subgraph id}/v{studio db version id}/graphql
(ex:{GRAPH_NODE_BASE_URL}/subgraphs/name/u89/s1478/v712/graphql
).Notes
After speaking with @lutter, he mentioned these are the places that need changed:
Also, currently the graphql POST requests are working with the updated structure, it is only the graphql playground endpoint that is returning
It is probably prudent to be able to handle both situations while the update is being performed.
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
The text was updated successfully, but these errors were encountered: