-
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
Make @graph_asset support explicit key #16751
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
06e0268
to
176ed79
Compare
176ed79
to
091d5f5
Compare
Deploy preview for dagit-storybook ready! ✅ Preview Built with commit 091d5f5. |
Deploy preview for dagit-core-storybook ready! ✅ Preview Built with commit 091d5f5. |
Deploy preview for dagster-docs ready! Preview available at https://dagster-docs-fx2nwxyqz-elementl.vercel.app Direct link to changed pages: |
## 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
Summary & Motivation
graph_asset
's parameters are out-of-sync withasset
's on a structural level, and we do not have the discipline or the tests to keep them in sync. This PR adds an explicitkey
which is nice for users and would have made a recent PR of @johannkm's nicer, who had to do some contortions in #16612 aroundkey_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