googleapis / googleapis/google-cloud-node
FR: Include document path in error messages
- Lingua principale
- TypeScript
- Stelle
- 3.2k
- Fork
- 712
- Merge medio
- 2g 9h
- PR unite (30g)
- 104
Descrizione
**Is your feature request related to a problem? Please describe.**
When getting an error like
```
Error: Value for argument "data" is not a valid Firestore document. Cannot use "undefined" as a Firestore value (found in field "xyz"). If you want to ignore undefined values, enable `ignoreUndefinedProperties`.
```
often it's hard to understand in which document the error would appear, especially when writing lots of documents in one execution.
**Describe the solution you'd like**
Include the document path in all errors, e.g.:
```
Error: Value for argument "data" of document "foo/bar/baz/bat" is not a valid Firestore document. Cannot use "undefined" as a Firestore value (found in field "xyz"). If you want to ignore undefined values, enable `ignoreUndefinedProperties`.
```
**Describe alternatives you've considered**
Manually log all the document paths before executing a Firestore query, which can also spam the logs.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
L’issue non indica alcun file né alcun test. Inizia tracciando la convalida delle scritture dei documenti Firestore e gli errori prodotti per i dati del documento non validi; il lavoro è completo quando gli errori rilevanti includono il percorso del documento mantenendo i dettagli dei campi esistenti e i test coprono la formulazione richiesta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- nodejs, typescript
- Ambito
- databases
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100