Skip to content

Commit

Permalink
Assets now have a default group name (#8226)
Browse files Browse the repository at this point in the history
Users can provide a group_name attribute for some asset definitions. For assets where the user does not specify a group_name, this change sets the group name to "default". This effectively introduces a new asset group called "default" containing all assets that have no explicit group.
  • Loading branch information
shalabhc committed Jun 7, 2022
1 parent 85e9c3a commit 660cd52
Show file tree
Hide file tree
Showing 23 changed files with 264 additions and 3,854 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1652,10 +1652,15 @@ def grouped_asset_4():
return 1


@asset
def ungrouped_asset_5():
return 1


# For now the only way to add assets to repositories is via AssetGroup
# When AssetGroup is removed, these assets should be added directly to repository_with_named_groups
named_groups_job = AssetGroup(
[grouped_asset_1, grouped_asset_2, ungrouped_asset_3, grouped_asset_4]
[grouped_asset_1, grouped_asset_2, ungrouped_asset_3, grouped_asset_4, ungrouped_asset_5]
).build_job("named_groups_job")


Expand Down

0 comments on commit 660cd52

Please sign in to comment.