-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ui] Make asset overview show metadata, schema of latest event, not “…
…latest partition or null" (#28174) ## Summary & Motivation Fixes https://linear.app/dagster-labs/issue/FE-589/metadata-plots-only-work-in-asset-catalog-when-most-recent-partition, #24600  It was flagged by a user that the new Asset Overview page shows the metadata and schema for the most recent PARTITION, or empty states if that partition is not present. This is somewhat confusing because these sections can render empty while the tag at the top still shows the latest event. (Screenshot above) I think at some point the tag at the top of the page was also restricted to showing the latest partition, so this made sense. However, it seems problematic because for any daily partitioned asset, it is missing for some portion of the day and all the information disappears for that period. The fix in this PR is just to make the metadata + schema portions of the page use the latest event, even if it's not for a recent / today's partition. This could have slightly undesirable behavior during backfills (eg: showing you metadata for an older partition), but means that the materialization in the green pill and the materialization used for these sections is always the same. ## How I Tested These Changes Tested with a manual repro ## Changelog [ui] The asset overview tab for a partitioned asset now shows metadata and schema of the most recent materialization, not today's partition. --------- Co-authored-by: bengotow <[email protected]>
- Loading branch information
Showing
6 changed files
with
63 additions
and
46 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...s/types/useLatestPartitionEvents.types.ts → ...src/assets/types/useLatestEvents.types.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7d47ab7
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.
Deploy preview for dagit-core-storybook ready!
✅ Preview
https://dagit-core-storybook-po2ze7k3v-elementl.vercel.app
Built with commit 7d47ab7.
This pull request is being automatically deployed with vercel-action