graphprotocol / graphprotocol/graph-node
Tests for grafting of file data sources
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.2k
- Forks
- 1.1k
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 1
Description
The entity copy query used by grafting has special cases for each combination of source and target has_causality_region value:
https://github.com/graphprotocol/graph-node/blob/7118fd82148c49da88f59043a73a84598be19116/store/postgres/src/relational_queries.rs#L3583-L3599
Except for the noop (false, false), these are not currently covered by our tests.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in store/postgres/src/relational_queries.rs at lines 3583-3599 and inspect the grafting entity copy query's has_causality_region branches. Add test coverage for the three non-noop source/target combinations, then run the relevant test suite and confirm those cases pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, rust
- Domain
- database, testing
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100