-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-2788] [Bug] When warnings about contract disenforcement are created, ambiguity is introduced by the passive voice #8029
Comments
@joellabes This is an issue after my heart! And my high-school English teacher who penalized me every time I used the passive voice. "'Mistakes were made.' Leave the passive voice to the politicians, and the Times editorial board."
I think this is exactly what's at play: If you disable a model's contract and make some breaking changes to its content, the idea is to show all of those things in one error message. That feels important because we expect many users to run into this error at CI time, where they don't have access to the same quick iteration loop as dev (although we'll still only be able to report the Breaking Changes error for one contracted model at a time).
So, potential changes:
|
Closing in favor of implementation ticket: |
Is this a new bug in dbt-core?
Current Behavior
Sibling to #8028
Another warning that dbt emits is:
When I first read this, I interpreted it as "dbt detected a breaking change to an enforced contract, so dbt has stopped enforcing the contract" (which is the exact opposite of what I would want; that's exactly when dbt needs to step up!). In fact, it is "dbt detected that the user disabled contract enforcement, which means the contract is now broken."
I think this would be less confusing if I happened to see it as part of a list of issues, but my first encounter was this single bullet item.
Expected Behavior
Maybe adding a
-
at the start to show it's a list would be enough?Maybe rephrasing it:
Enforcement of the contract was disabled in path/to/the/file.yml
?I don't know exactly
Steps To Reproduce
dbt compile
dbt run -s state:modified --state path/to/artifacts
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: