From 431975c1f9135b16df7c2707979b4199438ead57 Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Thu, 2 May 2024 13:29:32 +0200 Subject: [PATCH] Update deprecation warning language + links --- core/dbt/events/types.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/dbt/events/types.py b/core/dbt/events/types.py index f0297704619..3d335b67b0f 100644 --- a/core/dbt/events/types.py +++ b/core/dbt/events/types.py @@ -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)) @@ -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)) @@ -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))