Skip to content
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

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

schrockn
Copy link
Member

@schrockn schrockn commented Jun 8, 2024

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

Copy link
Member Author

schrockn commented Jun 8, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @schrockn and the rest of your teammates on Graphite Graphite

@schrockn schrockn force-pushed the refactor-builder-creation branch from 2819f71 to 51b04db Compare June 8, 2024 10:32
@schrockn schrockn changed the base branch from multi-asset-check-compute_required-resources-func to rename-build-asset-outs June 8, 2024 10:32
@schrockn schrockn force-pushed the rename-build-asset-outs branch from abb0f39 to 8c0018e Compare June 8, 2024 10:40
@schrockn schrockn force-pushed the refactor-builder-creation branch from 51b04db to e543a9e Compare June 8, 2024 10:40
@schrockn schrockn force-pushed the rename-build-asset-outs branch from 8c0018e to f2a3052 Compare June 8, 2024 10:41
@schrockn schrockn force-pushed the refactor-builder-creation branch 2 times, most recently from 720a0cc to 1cf843d Compare June 8, 2024 10:51
@schrockn schrockn force-pushed the rename-build-asset-outs branch from f2a3052 to 49b5c3d Compare June 8, 2024 11:00
@schrockn schrockn force-pushed the refactor-builder-creation branch from 1cf843d to e12a356 Compare June 8, 2024 11:00
@schrockn schrockn changed the title Move asset-specific builder stuff to the assets file Use explicitly passed in arguments instead of args object in builder creation codepaths Jun 8, 2024
@schrockn schrockn force-pushed the refactor-builder-creation branch from 2cfbe50 to 13657b8 Compare June 8, 2024 11:22
@schrockn schrockn force-pushed the rename-build-asset-outs branch 2 times, most recently from 8296360 to d3b91f4 Compare June 9, 2024 17:14
@schrockn schrockn force-pushed the refactor-builder-creation branch from 13657b8 to 3ebedaa Compare June 9, 2024 17:14
Base automatically changed from rename-build-asset-outs to master June 9, 2024 17:14
asset_out_map: Mapping[str, AssetOut],
asset_deps: Mapping[str, Set[AssetKey]],
upstream_asset_deps: Optional[Iterable[AssetDep]],
passed_args: DecoratorAssetsDefinitionBuilderArgs,
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Member Author

schrockn commented Jun 12, 2024

Merge activity

  • Jun 12, 10:06 AM EDT: @schrockn started a stack merge that includes this pull request via Graphite.
  • Jun 12, 10:06 AM EDT: @schrockn merged this pull request with Graphite.

@schrockn schrockn merged commit 4ee8fb1 into master Jun 12, 2024
1 check passed
@schrockn schrockn deleted the refactor-builder-creation branch June 12, 2024 14:06
cmpadden pushed a commit that referenced this pull request Jun 13, 2024
…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
danielgafni pushed a commit to danielgafni/dagster that referenced this pull request Jun 18, 2024
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants