diff --git a/python_modules/libraries/dagster-dbt/dagster_dbt/asset_defs.py b/python_modules/libraries/dagster-dbt/dagster_dbt/asset_defs.py index b4bbfc1ca4eee..c156379f9ca6d 100644 --- a/python_modules/libraries/dagster-dbt/dagster_dbt/asset_defs.py +++ b/python_modules/libraries/dagster-dbt/dagster_dbt/asset_defs.py @@ -1,4 +1,3 @@ -import functools import json import os from pathlib import Path @@ -34,7 +33,7 @@ get_dagster_logger, op, ) -from dagster._annotations import hidden_param +from dagster._annotations import deprecated_param from dagster._core.definitions.events import ( AssetMaterialization, AssetObservation, @@ -634,41 +633,39 @@ def load_assets_from_dbt_project( ) -# declare hidden parameter that will break at 2.0 -def hidden_until_20_param(param: str) -> Callable[[Callable[..., Any]], Callable[..., Any]]: - return functools.partial(hidden_param, param=param, breaking_version="2.0") - - -@hidden_param( - param="manifest_json", +@deprecated_param( + param="manifest_json", breaking_version="0.21", additional_warn_text="Use manifest instead" +) +@deprecated_param( + param="selected_unique_ids", breaking_version="0.21", - additional_warn_text="Use manifest instead", + additional_warn_text="Use the select parameter instead.", ) -@hidden_param( +@deprecated_param( param="dbt_resource_key", breaking_version="0.21", additional_warn_text=( "Use the `@dbt_assets` decorator if you need to customize your resource key." ), ) -@hidden_param( +@deprecated_param( param="use_build_command", breaking_version="0.21", additional_warn_text=( "Use the `@dbt_assets` decorator if you need to customize the underlying dbt commands." ), ) -@hidden_param( +@deprecated_param( param="partitions_def", breaking_version="0.21", additional_warn_text="Use the `@dbt_assets` decorator to define partitioned dbt assets.", ) -@hidden_param( +@deprecated_param( param="partition_key_to_vars_fn", breaking_version="0.21", additional_warn_text="Use the `@dbt_assets` decorator to define partitioned dbt assets.", ) -@hidden_param( +@deprecated_param( param="runtime_metadata_fn", breaking_version="0.21", additional_warn_text=(