Azure / Azure/data-api-builder
[improve]: dab add/update output around config file is noisy and confusing
- Vorherrschende Sprache
- C#
- Sterne
- 1.5k
- Forks
- 370
- Ø Merge
- 3 T. 22 Std.
- Gemergte PRs (30 T.)
- 9
Beschreibung
## 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}
```
Beitragsleitfaden
Rechercherichtung
Beginne damit, die Einstiegspunkte der Befehle dab add und dab update sowie deren --verbose-Protokollierung nachzuverfolgen. Vergleiche die aktuelle Ausgabe mit den Beispielen in diesem Issue; als erledigt gilt die Aufgabe, wenn die Info-Meldungen prägnant sind, nützliche Debug-Details nur unter --verbose ausgegeben werden und keine SUGGESTION-Ausgabe erfolgt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- cli, developer-experience
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 55/100