0xPlaygrounds / 0xPlaygrounds/subgrounds

Effectively deep-freeze Query objects

Ouverte
#38 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement internal
Langage dominant
Python
Étoiles
73
Forks
12
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
graphql, python
Domaine
api, backend
Type d'issue
Refactorisation
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.