Not sure if this is a bug or if I’m misconfiguring...
# dagster-feedback
v
Not sure if this is a bug or if I’m misconfiguring something, but it seems like graph-based
AssetsDefinitions
don’t (can’t?) contain metadata. Inspecting the python object does properly return metadata under the property
_metadata_by_key
but it doesn’t show up on dagit and can’t be accessed through
my_asset.metadata
(or rather, the property doesn’t exist).
Copy code
AssetsDefinition.from_graph(
    my_graph,
    keys_by_output_name={"result": AssetKey("my_cool_key")},
    metadata_by_output_name={"result": {"column_schema": TableSchema.from_name_type_dict({"some_col": "str"})}},
)
o
hi @Vinnie! I looked into this, and it was indeed a bug, throwing together a PR for this now
v
Thanks Owen!
o
fix has been merged in, will go out next week 🙂
👍 1
v
Just upgraded locally, works as expected 🙂