-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subgraph composition : TriggersAdapter wrapper #5695
base: feat-subgraph-composition
Are you sure you want to change the base?
Subgraph composition : TriggersAdapter wrapper #5695
Conversation
…datasource triggers
|
||
impl UnresolvedDataSource { | ||
#[allow(dead_code)] | ||
pub(super) async fn resolve( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need some test coverage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
graph-node/store/test-store/tests/chain/ethereum/manifest.rs
Lines 202 to 203 in c7ca25a
let manifest = resolve_manifest(yaml, SPEC_VERSION_1_3_0).await; | |
There is little testing for resolving this UnresolvedDatasource. Would you suggest anything more?
Would be good to address some of the comments, particularly around docs and comments. I also didn't see much in the way of testing. Would be great to see some test coverage around the new paths. |
cd6114d
to
9069486
Compare
Just addressed the comments, and the suggestion for not using the WriteStore |
This PR introduces a wrapper around the TriggersAdapter to support subgraph triggers from other subgraphs. Previously, the TriggersAdapter was chain-specific, handling triggers only for individual chains. With subgraph data sources, we need a higher-level adapter to fetch entity triggers from source subgraphs without depending on any specific chain.
This PR lays the groundwork for enabling the new subgraph data source type. The changes include:
Allow subgraph datasource in manifest
A wrapper for TriggersAdapter
A wrapper for TriggerFilter
A new trigger type specific to subgraph data sources