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] Update DA evaluation page to show backfill in table if a backfill was requested #26643

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jamiedemaria
Copy link
Contributor

@jamiedemaria jamiedemaria commented Dec 20, 2024

Summary & Motivation

The runs table for a DA evaluation was not showing backfills when DA requested a backfill
Screenshot 2024-12-20 at 10 55 57 AM

This is because the the selectedEvaluation.runIds could be run ids or a backfill id, but we were always adding them as run id filters. Then the value was a backfill id, it would return no results.

This add some (admittedly a bit hacky) logic to determine if the id is a backfill id, and set the correct filter if so. A more long term solution would be to store run ids and backfill ids as separate lists on the evaluation, but this will fix the problem until we can make the more sustainable change.

Screenshot 2024-12-20 at 11 18 30 AM

I also had to update the RunsFeedTableWithFilters component to take a bool includeRunsFromBackfills so that we would only show the backfill row, not the runs that the backfill launched. I had to then update all of the users of RunsFeedTableWithFilters to pass the bool

How I Tested These Changes

👀

Changelog

[ui] Fixed a bug where backfills launched by Declarative Automation were not being shown in the table of launched runs

Copy link
Contributor Author

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

@jamiedemaria jamiedemaria marked this pull request as ready for review December 20, 2024 19:29
Copy link

github-actions bot commented Dec 20, 2024

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-rupitvy4n-elementl.vercel.app
https://jamie-da-table-shows-backfills.core-storybook.dagster-docs.io

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

() => (selectedEvaluation?.runIds.length ? {runIds: selectedEvaluation.runIds} : null),
() =>
selectedEvaluation?.runIds.length
? selectedEvaluation.runIds.length === 1 && selectedEvaluation.runIds[0]?.length === 8
Copy link
Contributor

Choose a reason for hiding this comment

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

why does this length need to be 8 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's the length of a backfill id

Copy link
Contributor

Choose a reason for hiding this comment

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

ooooooo got it

Copy link
Contributor

Choose a reason for hiding this comment

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

So wait, can't there be multiple runIds ?

@jamiedemaria jamiedemaria force-pushed the jamie/da-table-shows-backfills branch from f2373ce to 997a5eb Compare December 23, 2024 20:22
@jamiedemaria jamiedemaria force-pushed the jamie/da-table-shows-backfills branch from cbaa1ab to aabed95 Compare December 23, 2024 23:49
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