graphprotocol / graphprotocol/graph-node
[Bug] Ordering by child attribute is not always deterministic
オープン
まだ誰も着手していません。
bug
Stale
- 主要言語
- Rust
- スター
- 3.2k
- フォーク
- 1.1k
- 平均マージ
- 4日 1時間
- マージ済み PR(30日)
- 1
説明
Bug report
In a query for parents that orders by child__id, if many parents belong to the same child, the ordering is not deterministic because the SQL query only orders by child.id. To make it deterministic, we need to order by child.id, parent.id
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
この issue ではファイルもテストも指定されていません。まず、child__id で並べ替えられる parent のクエリと並べ替えのエントリポイントを見つけてください。複数の parent が同じ child を共有する場合にも並べ替えが決定的であり、parent.id が並べ替えに含まれていることをカバレッジで示せれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- graphql, rust, sql
- 領域
- api, backend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100