Skip to content

UI: Add button to find run on Grid from run header - #70803

Open
suhaas-vaddadi wants to merge 6 commits into
apache:mainfrom
suhaas-vaddadi:add-find-run-on-grid-button
Open

UI: Add button to find run on Grid from run header#70803
suhaas-vaddadi wants to merge 6 commits into
apache:mainfrom
suhaas-vaddadi:add-find-run-on-grid-button

Conversation

@suhaas-vaddadi

@suhaas-vaddadi suhaas-vaddadi commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Button Placement and Icon
Run View
image
Task View
image

Effect of Pressing Button
image

Adds a "Show in Grid View" button to the DagRun header. Clicking it filters the Grid view down to the current run. This functions even past the window of 50 runs normally visible on the grid view.

The button writes the current dag_run_id into the run_id_pattern URL search param. The Details/Grid layout already reads that same param, so the co-rendered Grid immediately filters to this run. This reuses the existing search-param filtering convention — no new API calls, just a URL-state update.

Reuses functionality added from PR #70150

Note: run_id_pattern is a substring filter, not an exact match. The button sets it to the full run ID, so the target run always matches. If another run's ID happened to contain this one as a substring, both would appear.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: Claude Code following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@dheerajturaga dheerajturaga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I feel the name is too long? I think we can shorten it

Comment thread airflow-core/src/airflow/ui/public/i18n/locales/en/common.json Outdated
@dheerajturaga

Copy link
Copy Markdown
Member

@suhaas-vaddadi, Can you update the description with the changes made?

@suhaas-vaddadi

Copy link
Copy Markdown
Contributor Author

@suhaas-vaddadi, Can you update the description with the changes made?

Should be now up to date!

@dheerajturaga

Copy link
Copy Markdown
Member

@suhaas-vaddadi, can you also fix the CI?

@dheerajturaga dheerajturaga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@suhaas-vaddadi, This works as expected. I feel for completeness, it would be great if this were extended to the task instances as well?

Image

@suhaas-vaddadi
suhaas-vaddadi force-pushed the add-find-run-on-grid-button branch from 43aa9ce to 798d9ee Compare August 4, 2026 22:09

@dheerajturaga dheerajturaga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome! works as expected. Would like another pair of eyes from UI experts. Good to merge if CI passes

suhaas-vaddadi and others added 5 commits August 5, 2026 12:12
Co-authored-by: Dheeraj Turaga <dheerajturaga@gmail.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Match the ghost styling of the other run-header icon buttons.
@suhaas-vaddadi
suhaas-vaddadi force-pushed the add-find-run-on-grid-button branch from 51519a5 to 532c981 Compare August 5, 2026 19:15
@shubhamraj-git

Copy link
Copy Markdown
Contributor

Clicking "Show in Grid" in the run or task-instance header only sets the run_id_pattern filter, but the left panel keeps showing whichever view is active (Graph/Gantt), so from those views the button appears to do nothing. Maybe, have the action also switch the panel to Grid so the filtered run is actually visible after the click.

@bbovenzi

bbovenzi commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Wait if we're on a run, then the grid should paginate over to show the run. if that is broken then we should fix the route cause not add another button

@dheerajturaga

Copy link
Copy Markdown
Member

Wait if we're on a run, then the grid should paginate over to show the run. if that is broken then we should fix the route cause not add another button

This is not happening today. If there are more than 50+ runs for example (UI limits to 50), the dag run doesn't show in the grid view

Comment on lines +90 to +92
<IconButton label={translate("dagRun.showInGrid")} onClick={showInGrid}>
<LuScanSearch />
</IconButton>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also, if we even do this then let's make this its own component. No need to copy past the exact logic.

@bbovenzi bbovenzi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The actually functionality is "Filter this run" and remove all other runs in the grid view. In that case, we should move it inside the grid view instead of the header and make it a "Quick Filter" option.

@shubhamraj-git shubhamraj-git left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Added comment above, missed to make it part of review.

@pierrejeambrun pierrejeambrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wait if we're on a run, then the grid should paginate over to show the run. if that is broken then we should fix the route cause not add another button

Brent is right.

This is not happening today. If there are more than 50+ runs for example (UI limits to 50), the dag run doesn't show in the grid view

I think we need to fix that then. This button doesn't really make sense for me:

  • Either we clicked through the grid, and we have the run/task already selected.
  • Either we landed here through a link, and the grid should be focus around that run, with that run selected. This was fixed in the past I believe, we shouldn't have a grid where the selected run is actually outside the grid window. (makes it impossible to navigate history and runs after/before that specific run / task)

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

Labels

area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants