0xPlaygrounds / 0xPlaygrounds/subgrounds

Effectively deep-freeze Query objects

オープン
#38 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement internal
主要言語
Python
スター
73
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

説明

**Is your feature request related to a problem? Please describe.**
`subgrounds/query.py` has all objects related to the AST of GraphQL. Currently, every object is frozen, but nested fields of said objects are not (such as nested `list`s and `dict`s). This means the greater objects of `Document`, etc are **not** hashable.

**Describe the solution you'd like**
Ensure all query objects are hashable by using immutable data structures.

**Additional context**
Likely should be considered with a general refactor / subpackage breakdown of `subgrounds/query.py`).

**Implementation checklist**
- [ ] Task 1

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

The issue is about making query objects in subgrounds/query.py hashable by ensuring nested structures are immutable. Start by examining the AST classes in that file, focusing on how lists and dicts are currently stored. Look into using tuple and types.MappingProxyType or implementing __hash__ methods. Check if there are existing tests for hashing or freezing behavior to understand the expected outcome.

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

評価

技術スタック
graphql, python
領域
api, backend
issue の種類
リファクタリング
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

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

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