graphprotocol / graphprotocol/graph-node
Add deploymentTimestamp and firstTimeFullySyncedTimestamp to SubgraphIndexingStatus
オープン
まだ誰も着手していません。
Stale
- 主要言語
- Rust
- スター
- 3.2k
- フォーク
- 1.1k
- 平均マージ
- 4日 1時間
- マージ済み PR(30日)
- 1
説明
It would be great for subgraph developers to find out how long their subgraph took to fully sync for the first time. This could be enabled by changing the type SubgraphIndexingStatus here to the following shape:
type SubgraphIndexingStatus {
subgraph: String!
synced: Boolean!
# Note that the health can be implied from fatalError and nonFatalErrors:
# - If fatalError is non-null, then health is 'failed'.
# - Else if nonFatalErrors is non-empty, then health is 'unhealthy'.
# - Else health is 'healthy'.
health: Health!
"If the subgraph has failed, this is the error caused it"
fatalError: SubgraphError
"Sorted from first to last, limited to first 1000"
nonFatalErrors: [SubgraphError!]!
chains: [ChainIndexingStatus!]!
entityCount: BigInt!
node: String
deploymentTimestamp: BigInt! # <- Added
firstTimeFullySyncedTimestamp: BigInt # <- Added, not required because it's empty during sync
}
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
server/index-node/src/schema.graphql にある SubgraphIndexingStatus の定義から始め、値がどこで組み立てられているかをたどってください。deployment と初回の完全同期の時刻を取得する方法を確認し、要求されている必須性と nullable の挙動で両方のフィールドを公開してください。スキーマとそのレスポンスに正確なタイムスタンプが含まれ、同期中は初回同期フィールドが空になっていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- graphql
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 48/100