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

Make @graph_asset support explicit key #16751

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Make @graph_asset support explicit key #16751

merged 1 commit into from
Sep 26, 2023

Conversation

schrockn
Copy link
Member

@schrockn schrockn commented Sep 25, 2023

Summary & Motivation

graph_asset's parameters are out-of-sync with asset's on a structural level, and we do not have the discipline or the tests to keep them in sync. This PR adds an explicit key which is nice for users and would have made a recent PR of @johannkm's nicer, who had to do some contortions in #16612 around key_prefix.

This diff also adds documentation for key on @asset.

An upstack PR will consolidate the logic in @asset and @graph_asset around this stuff into a single helper function, since it is pretty gross, tricky code.

How I Tested These Changes

@schrockn
Copy link
Member Author

schrockn commented Sep 25, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@github-actions
Copy link

Deploy preview for dagit-storybook ready!

✅ Preview
https://dagit-storybook-m1lukwol0-elementl.vercel.app
https://graph-asset.components-storybook.dagster-docs.io

Built with commit 091d5f5.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-gljnbjszj-elementl.vercel.app
https://graph-asset.core-storybook.dagster-docs.io

Built with commit 091d5f5.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link

Deploy preview for dagster-docs ready!

Preview available at https://dagster-docs-fx2nwxyqz-elementl.vercel.app
https://graph-asset.dagster.dagster-docs.io

Direct link to changed pages:

@schrockn
Copy link
Member Author

schrockn commented Sep 26, 2023

Merge Activity

@schrockn schrockn merged commit 30b817d into master Sep 26, 2023
3 checks passed
@schrockn schrockn deleted the graph-asset branch September 26, 2023 09:02
schrockn added a commit that referenced this pull request Sep 26, 2023
## Summary & Motivation

Takes the duplicated logic added in #16751 and consolidates it to a single helper function. There is a surprising amount of incidental complexity in this logic, so stuffing it into a common helper is a win.

I did this as a separate PR so that we can revert it independently in case this introduces a bug in `@asset`.

## 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