Skip to content

Commit

Permalink
Update deprecation warning language + links
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed May 2, 2024
1 parent f884eb4 commit 431975c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/dbt/events/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,13 @@ def code(self) -> str:
return "D015"

def message(self) -> str:
description = f"Spaces found in {self.count_invalid_names} resource name(s). This is deprecated, and may lead to errors when using dbt. For more information: https://docs.getdbt.com/reference/global-configs/legacy-behaviors#require_resource_names_without_spaces"
description = f"Spaces found in {self.count_invalid_names} resource name(s). This is deprecated, and may lead to errors when using dbt."

if self.show_debug_hint:
description += " Run again with `--debug` to see them all."

description += " For more information: https://docs.getdbt.com/reference/global-configs/legacy-behaviors"

return line_wrap_message(warning_tag(description))


Expand All @@ -446,7 +448,7 @@ def code(self) -> str:
return "D016"

def message(self) -> str:
description = f"Installed package '{self.package_name}' is overriding the built-in materialization '{self.materialization_name}'. Overrides of built-in materializations from installed packages will be deprecated in future versions of dbt. Please refer to https://docs.getdbt.com/reference/global-configs/legacy-behaviors#require_explicit_package_overrides_for_builtin_materializations for detailed documentation and suggested workarounds."
description = f"Installed package '{self.package_name}' is overriding the built-in materialization '{self.materialization_name}'. Overrides of built-in materializations from installed packages will be deprecated in future versions of dbt. For more information: https://docs.getdbt.com/reference/global-configs/legacy-behaviors"

return line_wrap_message(warning_tag(description))

Expand All @@ -456,7 +458,7 @@ def code(self) -> str:
return "D017"

def message(self) -> str:
description = "In a future version of dbt, the `source freshness` command will start running `on-run-start` and `on-run-end` hooks by default. Please refer to https://docs.getdbt.com/reference/global-configs/legacy-behaviors#source_freshness_run_project_hooks for detailed documentation and suggested workarounds."
description = "In a future version of dbt, the `source freshness` command will start running `on-run-start` and `on-run-end` hooks by default. For more information: https://docs.getdbt.com/reference/global-configs/legacy-behaviors"

return line_wrap_message(warning_tag(description))

Expand Down

0 comments on commit 431975c

Please sign in to comment.