Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Bug - Schema names incongruent between actual vs. explorer web UI

オープン
#109 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
graphql, typescript

調査の方向性

Explorer の Web UI の Schema セクションから始め、この Issue の indexers と transactions の例を使って、表示される名前を graph-network-mainnet subgraph のクエリ可能なスキーマと比較します。他の subgraph と schema についても同じ不一致がないか確認します。表示される名前がユーザーがクエリできるフィールドと一致し、失敗するサンプルクエリが誤解を招くものではなくなれば完了です。

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

説明

Overview

Below are 2 examples I found where the schema name of a subgraph are incongruent between the actual subgraph (i.e. what can be queried with a connection) vs. what is shown on the explorer web UI.

Impact

  • It makes the subgraph look broken
  • It wastes time debugging the issue

Examples

indexers

image

This query will fail

For example, the query below would break, despite it being written to match what is shown on the explorer UI:

indexer_query = gql(
    """
    query {
        indexer {
            id,
            stakedTokens,
            delegatedStakeRatio
          }
    }
"""
)
This query will pass
indexer_query = gql(
    """
    query {
        indexers {
            id,
            stakedTokens,
            delegatedStakeRatio
          }
    }
"""
)
transactions

image

This query will fail
query = gql(
    """
    query {
        transaction {
            id,
            blockNumber
          }
    }
"""
)
This query will pass
query = gql(
    """
    query {
        transactions {
            id,
            blockNumber
          }
    }
"""
)

Proposal

  • Make sure that the schema named found in the Web UI is congruent (==) to what a user would query
  • Check all other subgraphs + schemas for similar issues (I only found 2 in a few minutes of working on this, so my assumption is it's a larger issue)
主要言語
TypeScript
スター
82
フォーク
47
平均マージ
7日 3時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

graphprotocol/graph-network-subgraph のほかの issue

graphprotocol/graph-network-subgraph の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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