Azure / Azure/data-api-builder

Remove duplicate errors from `dab validate`

Open
#2,131 0 comments 0 reactions 0 assignees View on GitHub
cli usability
Dominant language
C#
Stars
1.5k
Forks
370
Avg merge
3d 22h
Merged PRs (30d)
9

Description

When i run the cli using the config file created in this test, i see duplicates of the errors Aaron mentions. While I understand that the errors may be sourced from different places, this makes the errors pretty noisy if there are duplicates..
- "Table Definition for Book has not been inferred" -> appears twice
![image](https://github.com/Azure/data-api-builder/assets/6414189/cb8f01f3-de0b-435f-ab4a-1d7d8b631822)

_Originally posted by @seantleonard in https://github.com/Azure/data-api-builder/pull/2100#discussion_r1535912828_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `dab validate` with the config file created in the referenced test, then inspect where the reported validation errors are collected from their different sources. The work is done when duplicate messages such as “Table Definition for Book has not been inferred” appear only once while distinct errors remain visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.