John Boyle
06/15/2022, 3:53 AMmy_graph_asset = AssetsDefinition.from_graph(my_graph)
graph doesn't have a group_name property, nor does from_graph(). In dagit I see my original asset group (my_asset_group) and another asset group named 'default'. my graph asset has upstream dependencies and I see the connections between my original group and the new one, so it works, but ideally I'd like to add the graph asset to the other asset group.
is there a way to do this? thanks!claire
06/15/2022, 3:30 PMAssetsDefinition.from_graph(my_graph).with_prefix_or_group(group_names_by_key={AssetKey("foo"): "group_name"})
claire
06/15/2022, 3:30 PMclaire
06/15/2022, 3:30 PMDagster Bot
06/15/2022, 3:30 PMJohn Boyle
06/15/2022, 3:32 PMJohn Boyle
06/15/2022, 5:25 PMmy_graph_asset = AssetsDefinition.from_graph(my_graph)
and replaced with:
AssetsDefinition.from_graph(my_graph).with_prefix_or_group(group_names_by_key={AssetKey("my_graph_asset"): "group_name"})
results in: Import Error: cannot import name "my_graph_asset"
so I added my original line back (i.e. maybe I need to create the asset first like before)
my_graph_asset = AssetsDefinition.from_graph(my_graph)
AssetsDefinition.from_graph(my_graph).with_prefix_or_group(group_names_by_key={AssetKey("my_graph_asset"): "group_name"})
and this doesn't trigger an error, but the result is the same as when I wasn't using the workaround.
i.e. Expected: I would see only the asset_group "group_name" in dagit with 'my_graph' connected at the correct spot.
Observed: I see two asset groups. "group name" and "default" and 'my_graph' is connected with lines, not as a box (i.e. I have to click on the link to jump to the 'default' group').
I feel like I'm missing a conceptual step here.claire
06/15/2022, 6:09 PMclaire
06/15/2022, 6:10 PMJohn Boyle
06/15/2022, 6:15 PM