Skip to content
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

New global config: --warn-error-options #2687

Closed
1 task done
jtcohen6 opened this issue Jan 10, 2023 · 0 comments · Fixed by #2691
Closed
1 task done

New global config: --warn-error-options #2687

jtcohen6 opened this issue Jan 10, 2023 · 0 comments · Fixed by #2691
Assignees
Labels
content Improvements or additions to content dbt-core v1.4 Docs impact for the v1.4 release (Jan 2023) improvement Use this when an area of the docs needs improvement as it's currently unclear

Comments

@jtcohen6
Copy link
Collaborator

Contributions

  • I have read the contribution docs, and understand what's expected of me.

Link to the page on docs.getdbt.com requiring updates

https://docs.getdbt.com/reference/global-configs#warnings-as-errors

What part(s) of the page would you like to see updated?

The warn_error config (--warn-error flag, DBT_WARN_ERROR env var) will remain a simple boolean: treat all warnings as errors, or none.

Users can choose the more granular warn_error_options config (--warn-error-options, DBT_WARN_ERROR_OPTIONS env var) to specify a subset of warnings to treat as errors, via an include/exclude syntax that we're likely to reuse elsewhere.

The names of warnings are determined based on the names of WarnLevel events here: https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/events/types.py

This is a configuration intended for intermediate/advanced users. Specific use cases we've seen requested in past: dbt-labs/dbt-core#4383, dbt-labs/dbt-core#6080

Additional information

dbt-labs/dbt-core#6165
dbt-labs/dbt-core#6520

@jtcohen6 jtcohen6 added content Improvements or additions to content improvement Use this when an area of the docs needs improvement as it's currently unclear idea Proposes an idea for new content dbt-core v1.4 Docs impact for the v1.4 release (Jan 2023) blocked_by_dev Awaiting merge of PR with associated functionality labels Jan 10, 2023
@jtcohen6 jtcohen6 self-assigned this Jan 10, 2023
@jtcohen6 jtcohen6 removed the blocked_by_dev Awaiting merge of PR with associated functionality label Jan 10, 2023
@jtcohen6 jtcohen6 assigned MichelleArk and unassigned jtcohen6 Jan 10, 2023
@jtcohen6 jtcohen6 linked a pull request Jan 10, 2023 that will close this issue
2 tasks
@runleonarun runleonarun removed the idea Proposes an idea for new content label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content dbt-core v1.4 Docs impact for the v1.4 release (Jan 2023) improvement Use this when an area of the docs needs improvement as it's currently unclear
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants