Skip to content

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

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

Merged
merged 1 commit into from
Apr 18, 2025

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

Copy link

github-actions bot commented Apr 2, 2025

Deploy preview for dagit-core-storybook ready!

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

Built with commit 2be1531.
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 2 times, most recently from 9d25a61 to 9f759c9 Compare April 4, 2025 17:47
@prha prha force-pushed the prha/ui_asset_events branch 2 times, most recently from e236eec to 6419924 Compare April 4, 2025 20:40
@prha prha force-pushed the prha/ui_partition_keys branch from 9f759c9 to 95db953 Compare April 4, 2025 20:40
@prha prha force-pushed the prha/ui_asset_events branch from 6419924 to 82a9de6 Compare April 4, 2025 20:56
@prha prha force-pushed the prha/ui_partition_keys branch from 95db953 to 3c5831b Compare April 18, 2025 18:25
@prha prha force-pushed the prha/ui_asset_events branch from 82a9de6 to fc46f49 Compare April 18, 2025 18:25
Base automatically changed from prha/ui_partition_keys to master April 18, 2025 19:24
@prha prha force-pushed the prha/ui_asset_events branch from fc46f49 to 2be1531 Compare April 18, 2025 19:27
@prha prha merged commit 5012be1 into master Apr 18, 2025
7 checks passed
@prha prha deleted the prha/ui_asset_events branch April 18, 2025 19:41
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