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

remove partition view on asset events for non-sda assets #28941

Open
wants to merge 2 commits into
base: prha/ui_partition_keys
Choose a base branch
from

Conversation

prha
Copy link
Member

@prha prha commented Apr 2, 2025

Summary & Motivation

We have quite a bit of complicated front-end code to group recent asset events by partition. This code only gets exercised when we're viewing an asset page for an asset whose definition has been removed from the workspace.

I posit that this view is rarely used. The asset page itself is extremely buried - it doesn't show up in the assets view. You have to dig it out from a historical run view.

The by-partition implementation also needs to be qualified. This isn't fetching all events by partition. It's fetching the last 100 events and then grouping them by partition key IF there is even a partition key on the materializations to be grouped by.

If we actually want to support this view, we could probably implement it by creating some new, different resolvers. We could fetch all unique partitions for a given asset in storage, and then fetch the most recent materialization for each partition.

How I Tested These Changes

Before:
Screenshot 2025-04-02 at 9 53 08 AM

After:
Screenshot 2025-04-02 at 9 53 50 AM

Changelog

  • Removes the By partition grouping view for recent events for assets that do not have a definition in the workspace.

Copy link
Member Author

prha commented Apr 2, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

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

Copy link

github-actions bot commented Apr 2, 2025

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-a34gjngce-elementl.vercel.app
https://prha-ui-asset-events.core-storybook.dagster-docs.io

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

@prha prha marked this pull request as ready for review April 2, 2025 16:55
@prha prha requested review from bengotow, hellendag and dpeng817 April 2, 2025 16:55
@prha prha force-pushed the prha/ui_asset_events branch from 20b1a63 to b0c4ffd Compare April 2, 2025 18:11
Copy link
Collaborator

@bengotow bengotow left a comment

Choose a reason for hiding this comment

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

Huge fan of getting rid of this 💯 it's been a pain to maintain as this page has gone through design revisions and it's difficult to explain. Thank you for driving this to ground!

@prha prha force-pushed the prha/ui_asset_events branch from b0c4ffd to b30e09b Compare April 3, 2025 23:51
@prha prha force-pushed the prha/ui_partition_keys branch from 4227fbc to 9d25a61 Compare April 3, 2025 23:51
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