Skip to content

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

@JerryNixon

Description

@JerryNixon

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions