graphprotocol / graphprotocol/graph-node

Refactor subgraph runner

オープン
#5,499 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Stale
主要言語
Rust
スター
3.2k
フォーク
1.1k
平均マージ
4日 1時間
マージ済み PR(30日)
1

説明

Subgraph runner has some code duplication and a lot of if-else-ish code. We should try to improve it by making some concerns more isolated and the error more testable.

This is probably going to require several iterations on different parts but the sooner we start the sooner we finish.

As @lutter pointed out, this last PR added some more code duplication which doesn't help https://github.com/graphprotocol/graph-node/pull/4916#issuecomment-1839289761

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まずサブグラフランナーの場所を特定し、PR #4916 とリンク先のコメントで議論されている重複を確認します。リファクタリングの形を決める前に、個別の関心事とエラーパスを特定してください。重複と if-else が多用されたロジックが削減され、エラーの動作がテストでカバーされれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust
領域
backend
issue の種類
リファクタリング
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。