-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use explicitly passed in arguments instead of args object in builder creation codepaths #22379
Conversation
2819f71
to
51b04db
Compare
abb0f39
to
8c0018e
Compare
51b04db
to
e543a9e
Compare
8c0018e
to
f2a3052
Compare
720a0cc
to
1cf843d
Compare
f2a3052
to
49b5c3d
Compare
1cf843d
to
e12a356
Compare
2cfbe50
to
13657b8
Compare
8296360
to
d3b91f4
Compare
13657b8
to
3ebedaa
Compare
f9c1ce2
to
2362771
Compare
asset_out_map: Mapping[str, AssetOut], | ||
asset_deps: Mapping[str, Set[AssetKey]], | ||
upstream_asset_deps: Optional[Iterable[AssetDep]], | ||
passed_args: DecoratorAssetsDefinitionBuilderArgs, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing this through along with the other stuff feels a little weird. Maybe the check should just happen outside it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that this is weird and lame. A bunch of stuff happening in this code path and workstream and this will go away anyways, so I'm not going to resolve it in this PR.
2362771
to
2df8109
Compare
…creation codepaths (#22379) ## Summary & Motivation I am moving toward using DecoratorAssetsDefinitionBuilder in more codepaths (asset checks, graph assets) and things are going to get a little gnarly. In this case I want to make it explicit which variables are used in these factory methods rather than relying on the grabbag "args" object. ## How I Tested These Changes BK
…creation codepaths (dagster-io#22379) ## Summary & Motivation I am moving toward using DecoratorAssetsDefinitionBuilder in more codepaths (asset checks, graph assets) and things are going to get a little gnarly. In this case I want to make it explicit which variables are used in these factory methods rather than relying on the grabbag "args" object. ## How I Tested These Changes BK
Summary & Motivation
I am moving toward using DecoratorAssetsDefinitionBuilder in more codepaths (asset checks, graph assets) and things are going to get a little gnarly.
In this case I want to make it explicit which variables are used in these factory methods rather than relying on the grabbag "args" object.
How I Tested These Changes
BK