Skip to content

Conversation

@steveahnahn
Copy link
Contributor

Problem

When opening a DAG in Graph View that has existing runs, the graph displays with no run selected, showing all tasks in grey without state information. Users must manually select a run to see task states, even though there is a latest run available.

Solution

Added auto-selection of the latest dag run when Graph View is opened without a specific run in the URL to improve quality of life.

Before:
Screenshot 2025-11-10 at 2 48 00 PM

After:
Screenshot 2025-11-10 at 9 07 04 AM

Related Issues

Part of #56250

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Nov 10, 2025
@steveahnahn steveahnahn mentioned this pull request Nov 10, 2025
19 tasks
Copy link
Member

@guan404ming guan404ming left a comment

Choose a reason for hiding this comment

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

The code change looks reasonable, but I have a small concern for functional wise. Since we already have an overview page for dag and if we preselect the latest run, users might not see the overview page initially. imo the overview serves as the “home page” for a dag, so for me I would say it is ok to enter the dag page without pre-select dag run. But I’d appreciate hearing another opinion on this, thanks!

@bbovenzi
Copy link
Contributor

Yeah I don't want to lose the Dag Overview page. But we could still show the latest dag run, if there is one, on the dag graph even when there isn't a dag run explicitly selected.

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

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

Personally I like the fact that when on the 'dag' if I go on the graph I get a 'dag structure' graph which isn't related to a specific DagRun. I'm basically coming from a 'dag' and I want a dag related graph, I would find this surprising to end up on a dagrun related graph.

So I prefer not to have a dagrun selected by default.

Maybe that's just me, and I'm not against this change if other people prefer it this way.

@steveahnahn
Copy link
Contributor Author

Thanks for the feedback all, will be closing on the reviewed judgment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants