Azure / Azure/data-api-builder

[improve]: dab add/update output around config file is noisy and confusing

Open
#3,413 0 comments 0 reactions 0 assignees View on GitHub
2.x cli
Dominant language
C#
Stars
1.5k
Forks
370
Avg merge
3d 17h
Merged PRs (30d)
8

Description

## Current

Image

Image

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}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.