Skip to content

Prohibit subgraphs from using different api_versions#2578

Merged
leoyvens merged 19 commits into
masterfrom
tiago/add-api-verson-to-ethereum-adapter
Jul 1, 2021
Merged

Prohibit subgraphs from using different api_versions#2578
leoyvens merged 19 commits into
masterfrom
tiago/add-api-verson-to-ethereum-adapter

Conversation

@tilacog

@tilacog tilacog commented Jun 21, 2021

Copy link
Copy Markdown
Contributor

This PR adds the following:

  • Manifest validation logic to prohibit subgraphs from using different apiVersions across mappings
  • Passes the unified mapping API version value to BlockStream and TriggerAdapter instances.

Comment thread graph/src/data/subgraph/mod.rs Outdated
@tilacog
tilacog force-pushed the tiago/add-api-verson-to-ethereum-adapter branch 6 times, most recently from 2f000e3 to b67aa27 Compare June 23, 2021 14:09
Comment thread core/src/subgraph/instance_manager.rs
Comment thread graph/src/data/subgraph/mod.rs
Comment thread chain/ethereum/src/chain.rs
@tilacog
tilacog requested a review from leoyvens June 23, 2021 14:20
Comment thread graph/src/data/subgraph/mod.rs
Comment thread graph/src/data/subgraph/mod.rs
Comment thread graph/src/data/subgraph/mod.rs Outdated
Comment thread graph/src/data/subgraph/mod.rs
Comment thread graph/src/data/subgraph/mod.rs Outdated
Comment thread graph/src/data/subgraph/mod.rs
Comment thread graph/src/data/subgraph/mod.rs Outdated
Comment thread graph/src/data/subgraph/mod.rs Outdated
Comment thread graph/src/data/subgraph/mod.rs
@tilacog
tilacog force-pushed the tiago/add-api-verson-to-ethereum-adapter branch 3 times, most recently from b60e35f to b9781f1 Compare June 29, 2021 22:41
Comment thread graph/src/data/subgraph/mod.rs
@tilacog
tilacog requested a review from leoyvens June 29, 2021 22:45

@leoyvens leoyvens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comments and CI is not passing.

Comment thread graph/src/data/subgraph/mod.rs Outdated
Comment thread graph/src/data/subgraph/mod.rs
Comment thread graph/src/data/subgraph/mod.rs Outdated
@tilacog
tilacog requested a review from leoyvens July 1, 2021 18:40
Comment thread graph/src/data/subgraph/mod.rs Outdated

@leoyvens leoyvens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took a while to perfect this but it's great now, thanks!

@leoyvens
leoyvens merged commit 9c45f1a into master Jul 1, 2021
@leoyvens
leoyvens deleted the tiago/add-api-verson-to-ethereum-adapter branch July 1, 2021 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants