diff --git a/python_modules/libraries/dagster-dbt/dagster_dbt_tests/core/test_asset_decorator.py b/python_modules/libraries/dagster-dbt/dagster_dbt_tests/core/test_asset_decorator.py index 72d3c03e98b9f..9c206c2a3e5fc 100644 --- a/python_modules/libraries/dagster-dbt/dagster_dbt_tests/core/test_asset_decorator.py +++ b/python_modules/libraries/dagster-dbt/dagster_dbt_tests/core/test_asset_decorator.py @@ -629,13 +629,13 @@ def my_dbt_assets(): ... # If a model has a Dagster group name specified under `meta`, use that. AssetKey(["customized", "staging", "customers"]): "customized_dagster_group", # If a model has a dbt group name specified under `group`, use that. - AssetKey(["customized", "staging", "orders"]): "customized_dbt_group", + AssetKey(["customized", "staging", "orders"]): "customized_dbt_model_group", # If a model has both a Dagster group and dbt group, use the Dagster group. AssetKey(["customized", "staging", "payments"]): "customized_dagster_group", AssetKey(["orders"]): "default", - AssetKey(["raw_customers"]): "default", - AssetKey(["raw_orders"]): "default", - AssetKey(["raw_payments"]): "default", + AssetKey(["raw_customers"]): "customized_dbt_seed_group", + AssetKey(["raw_orders"]): "customized_dbt_seed_group", + AssetKey(["raw_payments"]): "customized_dbt_seed_group", } @@ -649,7 +649,8 @@ def my_dbt_assets(): ... def test_dbt_meta_owners(test_meta_config_manifest: Dict[str, Any]) -> None: - expected_dbt_owners = [UserAssetOwner("kafka@amerika.com")] + expected_dbt_model_owners = [UserAssetOwner("kafka@amerika.com")] + expected_dbt_seed_owners = [UserAssetOwner("kafka@judgment.com")] expected_dagster_owners = [UserAssetOwner("kafka@castle.com")] @dbt_assets(manifest=test_meta_config_manifest) @@ -660,13 +661,13 @@ def my_dbt_assets(): ... # If a model has Dagster owners specified under `meta`, use that. AssetKey(["customized", "staging", "customers"]): [], # If a model has a dbt owner specified under `group`, use that. - AssetKey(["customized", "staging", "orders"]): expected_dbt_owners, + AssetKey(["customized", "staging", "orders"]): expected_dbt_model_owners, # If a model has both Dagster owners and a dbt owner, use the Dagster owner. AssetKey(["customized", "staging", "payments"]): expected_dagster_owners, AssetKey(["orders"]): [], - AssetKey(["raw_customers"]): [], - AssetKey(["raw_orders"]): [], - AssetKey(["raw_payments"]): [], + AssetKey(["raw_customers"]): expected_dbt_seed_owners, + AssetKey(["raw_orders"]): expected_dbt_seed_owners, + AssetKey(["raw_payments"]): expected_dbt_seed_owners, } diff --git a/python_modules/libraries/dagster-dbt/dagster_dbt_tests/dbt_projects/test_dagster_meta_config/dbt_project.yml b/python_modules/libraries/dagster-dbt/dagster_dbt_tests/dbt_projects/test_dagster_meta_config/dbt_project.yml index f0fe2eed7ca2c..aa6f9f9e3551a 100644 --- a/python_modules/libraries/dagster-dbt/dagster_dbt_tests/dbt_projects/test_dagster_meta_config/dbt_project.yml +++ b/python_modules/libraries/dagster-dbt/dagster_dbt_tests/dbt_projects/test_dagster_meta_config/dbt_project.yml @@ -22,6 +22,7 @@ require-dbt-version: [">=1.0.0", "<2.0.0"] seeds: +docs: node_color: "#cd7f32" + +group: customized_dbt_seed_group models: test_dagster_meta_config: diff --git a/python_modules/libraries/dagster-dbt/dagster_dbt_tests/dbt_projects/test_dagster_meta_config/models/staging/schema.yml b/python_modules/libraries/dagster-dbt/dagster_dbt_tests/dbt_projects/test_dagster_meta_config/models/staging/schema.yml index 8fea315ba2c14..684ea20db6c31 100644 --- a/python_modules/libraries/dagster-dbt/dagster_dbt_tests/dbt_projects/test_dagster_meta_config/models/staging/schema.yml +++ b/python_modules/libraries/dagster-dbt/dagster_dbt_tests/dbt_projects/test_dagster_meta_config/models/staging/schema.yml @@ -1,7 +1,7 @@ version: 2 groups: - - name: customized_dbt_group + - name: customized_dbt_model_group owner: name: Karl Rossmann email: kafka@amerika.com @@ -21,7 +21,7 @@ models: - name: stg_orders config: - group: customized_dbt_group + group: customized_dbt_model_group meta: dagster: asset_key: ["customized", "staging", "orders"] @@ -38,7 +38,7 @@ models: - name: stg_payments config: - group: customized_dbt_group + group: customized_dbt_model_group meta: dagster: asset_key: ["customized", "staging", "payments"] diff --git a/python_modules/libraries/dagster-dbt/dagster_dbt_tests/dbt_projects/test_dagster_meta_config/seeds/schema.yml b/python_modules/libraries/dagster-dbt/dagster_dbt_tests/dbt_projects/test_dagster_meta_config/seeds/schema.yml new file mode 100644 index 0000000000000..fa709c46f3dac --- /dev/null +++ b/python_modules/libraries/dagster-dbt/dagster_dbt_tests/dbt_projects/test_dagster_meta_config/seeds/schema.yml @@ -0,0 +1,5 @@ +groups: + - name: customized_dbt_seed_group + owner: + name: Georg Bendemann + email: kafka@judgment.com