Skip to content

Commit

Permalink
cp
Browse files Browse the repository at this point in the history
  • Loading branch information
schrockn committed Jun 22, 2024
1 parent 7f5d4fb commit f3af5c9
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions python_modules/libraries/dagster-dbt/dagster_dbt/asset_defs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import functools
import json
import os
from pathlib import Path
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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=(
Expand Down

0 comments on commit f3af5c9

Please sign in to comment.