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

[ui] backfill preview modal - if an asset won't launch any partitions show a message instead of a spinner #26080

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

jamiedemaria
Copy link
Contributor

@jamiedemaria jamiedemaria commented Nov 21, 2024

Summary & Motivation

If you select a group of assets to backfill and select a range such that a subset of the assets have no partitions in that range, the Backfill Preview modal shows spinners for those assets

For example - for the following asset graph
Screenshot 2024-11-21 at 11 46 09 AM

If you select only the latest hour to materialize, the daily asset will have no valid partitions to materialize (materializing today's asset isn't available until tomorrow)

If you then click the "Backfill Preview" button, we show an infinite spinner for the daily asset
image (19)

This PR adds a message when we know an asset wont have any partitions targeted by the backfill
Screenshot 2024-11-21 at 11 41 39 AM

How I Tested These Changes

Changelog

[ui] Fixed a bug in the Backfill Preview where a loading spinner would spin forever if an asset had no valid partitions targeted by the backfill

Copy link
Contributor Author

jamiedemaria commented Nov 21, 2024

Copy link

github-actions bot commented Nov 21, 2024

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-o2fe4geeh-elementl.vercel.app
https://jamie-empty-state-backfill-preview.core-storybook.dagster-docs.io

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

loading ? (
<Spinner purpose="body-text" />
) : (
"No partitions available to materialize"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alt options:

  • No partitions in selected range
  • No partitions in selected range available to materialize
  • None

@jamiedemaria jamiedemaria marked this pull request as ready for review November 21, 2024 16:49
@jamiedemaria jamiedemaria force-pushed the jamie/empty-state-backfill-preview branch from 36ed114 to 0e409bf Compare December 13, 2024 20:15
@jamiedemaria jamiedemaria force-pushed the jamie/empty-state-backfill-preview branch from 0e409bf to ec8927d Compare December 13, 2024 20:38
@jamiedemaria jamiedemaria merged commit ef2817d into master Dec 13, 2024
2 checks passed
@jamiedemaria jamiedemaria deleted the jamie/empty-state-backfill-preview branch December 13, 2024 21:00
pskinnerthyme pushed a commit to pskinnerthyme/dagster that referenced this pull request Dec 16, 2024
… show a message instead of a spinner (dagster-io#26080)

## Summary & Motivation
If you select a group of assets to backfill and select a range such that
a subset of the assets have no partitions in that range, the Backfill
Preview modal shows spinners for those assets

For example - for the following asset graph 
<img width="743" alt="Screenshot 2024-11-21 at 11 46 09 AM"
src="https://github.com/user-attachments/assets/08b3c5c5-9c32-417d-b2ea-4daaf716417d">

If you select only the latest hour to materialize, the daily asset will
have no valid partitions to materialize (materializing today's asset
isn't available until tomorrow)

If you then click the "Backfill Preview" button, we show an infinite
spinner for the daily asset
![image
(19)](https://github.com/user-attachments/assets/ef08731b-8b8e-4f28-a53a-3eca5ad2b648)

This PR adds a message when we know an asset wont have any partitions
targeted by the backfill
<img width="1113" alt="Screenshot 2024-11-21 at 11 41 39 AM"
src="https://github.com/user-attachments/assets/6cbcd0d3-1444-4235-be7f-f229e9e41edc">


## How I Tested These Changes

## Changelog

[ui] Fixed a bug in the Backfill Preview where a loading spinner would spin forever if an asset had no valid partitions targeted by the backfill
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