From 4caa2b467669f66d5e6a6906570a4b8297ab0ff7 Mon Sep 17 00:00:00 2001 From: Claire Lin Date: Wed, 23 Oct 2024 10:07:49 -0700 Subject: [PATCH] Rename relation identifier to table name (#25400) ## Summary & Motivation Rename relation identifier to table name to increase clarity. [Context here](https://dagsterlabs.slack.com/archives/C06AWMPT3DF/p1729269974738339). Does a direct rename to switch references from `relation_identifier` to `table_name`, since integration packages should have the same version as the dagster package. In the UI, to handle backcompat, display metadata with either key. ## How I Tested These Changes BK ## Changelog Renames the `dagster/relation_identifier` metadata key to `dagster/table_name`. --- .../concepts/metadata-tags/asset-metadata.mdx | 2 +- docs/docs-beta/docs/guides/metadata.md | 2 +- .../ui-core/src/assets/AssetNodeOverview.tsx | 14 +++++------- .../ui-core/src/metadata/TableSchema.tsx | 5 ++--- .../definitions/metadata/metadata_set.py | 4 ++-- .../dagster/_core/storage/db_io_manager.py | 10 +++------ .../metadata_tests/test_table_metadata_set.py | 6 ++--- .../storage_tests/test_db_io_manager.py | 22 +++++++++---------- .../dagster_airbyte/asset_defs.py | 20 ++++++++--------- .../dagster_airbyte_tests/test_asset_defs.py | 16 +++++++------- .../test_load_from_instance.py | 8 +++---- .../test_load_from_project.py | 6 ++--- .../dagster-dbt/dagster_dbt/asset_utils.py | 2 +- .../core/test_def_metadata.py | 16 ++++++-------- .../test_type_handler.py | 2 +- .../dagster_embedded_elt/dlt/resource.py | 6 ++--- .../dagster_embedded_elt/sling/resources.py | 6 ++--- .../dlt_tests/test_asset_decorator.py | 2 +- .../sling_tests/test_asset_decorator.py | 4 ++-- .../dagster_fivetran/utils.py | 6 ++--- .../test_load_from_instance.py | 2 +- .../bigquery/test_type_handler.py | 2 +- .../dagster_sdf/sdf_information_schema.py | 4 ++-- .../test_snowflake_pandas_type_handler.py | 2 +- .../test_snowflake_pyspark_type_handler.py | 2 +- 25 files changed, 80 insertions(+), 91 deletions(-) diff --git a/docs/content/concepts/metadata-tags/asset-metadata.mdx b/docs/content/concepts/metadata-tags/asset-metadata.mdx index 4929fdc552566..6bacb91932e90 100644 --- a/docs/content/concepts/metadata-tags/asset-metadata.mdx +++ b/docs/content/concepts/metadata-tags/asset-metadata.mdx @@ -473,7 +473,7 @@ The `dagster` prefix indicates that the Dagster package takes responsibility for - dagster/relation_identifier + dagster/table_name