graphql-python / graphql-python/graphql-core-legacy
`print_schema` should be deterministic
- 主要言語
- Python
- スター
- 372
- フォーク
- 175
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
In our project, we commit a graphql schema to our repo. This is useful for running demos, tests and mocking data.
However, now we also want to be able to ensure that the schema is kept up-to-date with a CI check. Unfortunately, printing the schema twice, seems to not be guaranteed to print values in the same order (especially keys in object types, and field arguments). This makes consistency checks significantly harder.
It'd be great if there was a guarantee of determinism. Running the printer repeatedly, against a given schema always outputs the same file.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、print_schema のエントリーポイントと、スキーマ出力を対象とするテストをすべて見つけます。オブジェクトのフィールドとフィールド引数がどのように並べられているかを確認し、同じスキーマを繰り返し出力した場合に同一の出力が生成されることを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- graphql, python
- 領域
- api, backend
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100