Skip to content

Fix mapped task instance links without start date#68194

Open
Revanth14 wants to merge 3 commits into
apache:mainfrom
Revanth14:fix-mapped-task-instance-link
Open

Fix mapped task instance links without start date#68194
Revanth14 wants to merge 3 commits into
apache:mainfrom
Revanth14:fix-mapped-task-instance-link

Conversation

@Revanth14
Copy link
Copy Markdown
Contributor

@Revanth14 Revanth14 commented Jun 7, 2026

The Task Instances table only let you reach a mapped task instance through the Start Date column. When an instance had not started yet (queued/scheduled), Start Date was empty, so the row had no clickable target and those instances were hard to reach — you had to go up to the run and click through the task list instead.

The Map Index cell now links to the mapped task instance details page for mapped rows (map_index >= 0), built from the row's own task instance identity. Because Map Index is always present (even before the task starts), queued/scheduled mapped instances are now reachable directly. Non-mapped rows (map_index == -1) stay plain text, and the link renders in every context the table is used in (mapped-task view, run task list, and the Browse view).

closes: #68177

Manual verification

  • Reproduced with a mapped task whose queued mapped instances had no start date.
  • Before: Map Index was plain text.
  • After: Map Index linked to the mapped task instance details page.

Before

before_fix

After

after_fix1 after_fix2

Tests

  • pnpm vitest run src/pages/TaskInstances/TaskInstances.test.tsx
  • pnpm eslint --quiet src/pages/TaskInstances/TaskInstances.tsx src/pages/TaskInstances/TaskInstances.test.tsx
  • pnpm tsc -p tsconfig.app.json --noEmit
Was generative AI tooling used to co-author this PR?
  • Yes — (GPT-5.5)

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Jun 7, 2026
Copy link
Copy Markdown
Member

@choo121600 choo121600 left a comment

Choose a reason for hiding this comment

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

overall looks good to me

Comment thread airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx Outdated
@Revanth14
Copy link
Copy Markdown
Contributor Author

overall looks good to me

Thanks for the review and approval.

@choo121600 choo121600 added the backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch label Jun 8, 2026
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. backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mapped tasks not started hard to reach from mapped task view

2 participants