graphql-python / graphql-python/graphql-core-legacy
`print_schema` should be deterministic
- Lingua principale
- Python
- Stelle
- 372
- Fork
- 175
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start by locating the print_schema entry point and any tests covering schema output. Check how object fields and field arguments are ordered, then verify that printing the same schema repeatedly produces identical output.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- graphql, python
- Ambito
- api, backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100