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

Support description in AssetSpec on multi_asset. Leave comment explaining muddled nature of this codepath #16755

Merged
merged 3 commits into from
Sep 27, 2023

Conversation

schrockn
Copy link
Member

@schrockn schrockn commented Sep 25, 2023

Summary & Motivation

This was super confusing as by inspection it appeared that multi_asset did not support descriptions. However there are actually three sources of truth for descriptions, one in OutputDefinition, one in NodeDefinition, and one in the descriptions_by_key. This last is best thought of as an "override."

This goes in the annals of "un-composability and ambiguously immutable Ls". There should be a canonical source of truth of descriptions once we are deep within the depths of AssetsDefinition. If the dictionary is needed for perf reasons (which I doubt), we can build a memoized cache of descriptions derived from the immutable data. When the immutable data is passed to a new copy of AssetsDefinition when we need it, we can recompute the memoized dict.

How I Tested These Changes

BK

@schrockn
Copy link
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@schrockn schrockn changed the title confirmed this works Support description in AssetSpec on multi_asset. Leave comment explaining muddled nature of this codepath Sep 25, 2023
@schrockn schrockn force-pushed the fix-descriptions-take-two branch from ee706e5 to fe2c135 Compare September 25, 2023 10:34
@schrockn schrockn marked this pull request as ready for review September 25, 2023 10:35
@schrockn schrockn force-pushed the fix-descriptions-take-two branch from fe2c135 to e282a16 Compare September 27, 2023 02:26
@github-actions
Copy link

Deploy preview for dagster-university ready!

✅ Preview
https://dagster-university-c2exfeyyd-elementl.vercel.app
https://fix-descriptions-take-two.dagster-university.dagster-docs.io

Built with commit e282a16.
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-pw2t3b8vx-elementl.vercel.app
https://fix-descriptions-take-two.core-storybook.dagster-docs.io

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

@github-actions
Copy link

Deploy preview for dagit-storybook ready!

✅ Preview
https://dagit-storybook-m17s2oxzd-elementl.vercel.app
https://fix-descriptions-take-two.components-storybook.dagster-docs.io

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

Copy link
Member

@alangenfeld alangenfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brutal

add explantory comment

better comment

comments

cp
@schrockn schrockn force-pushed the fix-descriptions-take-two branch from e282a16 to c4586aa Compare September 27, 2023 16:02
@github-actions
Copy link

Deploy preview for dagster-docs ready!

Preview available at https://dagster-docs-8sqbf7nlw-elementl.vercel.app
https://fix-descriptions-take-two.dagster.dagster-docs.io

Direct link to changed pages:

@schrockn schrockn merged commit 947d842 into master Sep 27, 2023
@schrockn schrockn deleted the fix-descriptions-take-two branch September 27, 2023 16:59
PedramNavid pushed a commit that referenced this pull request Sep 28, 2023
…ning muddled nature of this codepath (#16755)

## Summary & Motivation

This was super confusing as by inspection it appeared that `multi_asset`
did not support descriptions. However there are actually three sources
of truth for descriptions, one in `OutputDefinition`, one in
`NodeDefinition`, and one in the `descriptions_by_key`. This last is
best thought of as an "override."

This goes in the annals of "un-composability and ambiguously immutable
Ls". There should be a canonical source of truth of descriptions once we
are deep within the depths of `AssetsDefinition`. If the dictionary is
needed for perf reasons (which I doubt), we can build a memoized cache
of descriptions derived from the immutable data. When the immutable data
is passed to a new copy of `AssetsDefinition` when we need it, we can
recompute the memoized dict.

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