Azure / Azure/data-api-builder
[improve]: dab add/update output around config file is noisy and confusing
- Lingua principale
- C#
- Stelle
- 1.5k
- Fork
- 370
- Merge medio
- 3g 22h
- PR unite (30g)
- 9
Descrizione
## Current
The output logs are not clear or usable to the developer.
## desired dab add
```
> dab add Jerry --source dbo.table --type table --permissions anonymous:*
Info: Added entity: {entity-name}
```
> [!NOTE]
> Do not include the SUGGESTION output. That's just noise.
### Debug experience:
> --verbose
```
> dab add Jerry --source dbo.table --type table --permissions anonymous:*
dbug: Adding entity: {entity-name}
dbug: Microsoft.DataApiBuilder 2.0-rd
dbug: --config flag is (null)
dbug: DAB_ENVIRONMENT is (null)
dbug: Using c:\dev\CD\Demo\dab-config.json
dbug: Source is dbo.TableName
dbug: Type is view
dbug: Permissions are anonymous:*
Info: Added entity: {entity-name}
```
## desired dab update
```
> dab update Jerry --permissions anonymous:*
Info: Updated entity: {entity-name}
```
### Debug experience:
> --verbose
```
> dab update Jerry --permissions anonymous:*
dbug: Updating entity: {entity-name}
dbug: Microsoft.DataApiBuilder 2.0-rd
dbug: --config flag is (null)
dbug: DAB_ENVIRONMENT is (null)
dbug: Using c:\dev\CD\Demo\dab-config.json
Info: Updated entity: {entity-name}
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando i punti di ingresso dei comandi dab add e dab update e il relativo logging con --verbose. Confronta l’output attuale con gli esempi di questa issue; il lavoro è completato quando i messaggi Info sono concisi, i dettagli di debug utili vengono mostrati solo con --verbose e non viene prodotto alcun output SUGGESTION.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- cli, developer-experience
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100