[Bug] `flags.warn_error_options.silence` should be settable `dbt_project.yml`
jtcohen6 opened this issue · 0 comments
jtcohen6 commented
Is this a new bug in dbt-core?
- I believe this is a new bug in dbt-core
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
Missing silence
here:
dbt-core/core/dbt/cli/flags.py
Lines 53 to 62 in 32a7f82
Expected Behavior
def convert_config(config_name, config_value):
"""Convert the values from config and original set_from_args to the correct type."""
ret = config_value
if config_name.lower() == "warn_error_options" and type(config_value) == dict:
ret = WarnErrorOptions(
include=config_value.get("include", []),
exclude=config_value.get("exclude", []),
valid_error_names=ALL_EVENT_NAMES,
silence=config_value.get("silence", []), # this line is missing above
)
return ret
Steps To Reproduce
- Create a project with a test in it
# dbt_project.yml
flags:
warn_error_options:
silence:
- TestsConfigDeprecation
tests: # has been renamed to data_tests
+enabled: true
dbt parse
-> still see the deprecation warning ("Thetests
config has been renamed todata_tests
")- Apply the patch shown above ->
dbt parse
-> no deprecation warning
Relevant log output
No response
Environment
- Python: 3.10.11
- dbt: 1.8.0
Which database adapter are you using with dbt?
No response
Additional Context
No response