-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
## Summary & Motivation Add "View queue criteria" to the overflow menu on the Run detail page header. This reuses the existing dialog from the Runs page, with a bit of refactoring: - Strip down what the dialog requires from the `Run` object - Query for the values needed for the dialog, which allows us to reuse the component without needing the exact same fragment object in both places. - More context for the loading state - An empty state when the dialog query fails Overflow menu item: <img width="235" alt="Screenshot 2024-06-28 at 15 35 58" src="https://github.com/dagster-io/dagster/assets/2823852/c11bfdcc-861a-41cc-971e-961cb75a69ab"> Loading state: <img width="735" alt="Screenshot 2024-06-28 at 16 30 29" src="https://github.com/dagster-io/dagster/assets/2823852/8c3c03c6-806e-419d-bc6f-d1808fc04f5b"> Error state: <img width="739" alt="Screenshot 2024-06-28 at 16 30 43" src="https://github.com/dagster-io/dagster/assets/2823852/67f85024-1619-4037-b1a1-6ab388310a42"> ## How I Tested These Changes Queue some runs, verify that the dialog works from the Runs page and from the Run detail header. Verify that the menu item is not present in the run is not queued.
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {gql} from '@apollo/client'; | ||
|
||
export const QUEUED_RUN_CRITERIA_QUERY = gql` | ||
query QueuedRunCriteriaQuery($runId: ID!) { | ||
runOrError(runId: $runId) { | ||
... on Run { | ||
id | ||
rootConcurrencyKeys | ||
hasUnconstrainedRootNodes | ||
} | ||
} | ||
} | ||
`; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
bb69f3f
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-g8d6cqlz0-elementl.vercel.app
Built with commit bb69f3f.
This pull request is being automatically deployed with vercel-action