graphprotocol / graphprotocol/graph-node
Add deploymentTimestamp and firstTimeFullySyncedTimestamp to SubgraphIndexingStatus
Nessuno ha ancora preso questa issue.
- Lingua principale
- Rust
- Stelle
- 3.2k
- Fork
- 1.1k
- Merge medio
- 4g 1h
- PR unite (30g)
- 1
Descrizione
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
}
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dalla definizione di SubgraphIndexingStatus in server/index-node/src/schema.graphql e segui il punto in cui vengono assemblati i suoi valori. Verifica come ottenere gli orari del deployment e della prima sincronizzazione completa, quindi esponi entrambi i campi con il comportamento richiesto in termini di obbligatorietà e nullabilità. Il lavoro è completato quando lo schema e le sue risposte includono timestamp accurati e il campo della prima sincronizzazione è vuoto durante la sincronizzazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- graphql
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 48/100