Skip to content

Fix Task Instance mark-as downstream default#67763

Open
Codingaditya17 wants to merge 1 commit into
apache:mainfrom
Codingaditya17:fix-ti-mark-success-no-downstream-resume
Open

Fix Task Instance mark-as downstream default#67763
Codingaditya17 wants to merge 1 commit into
apache:mainfrom
Codingaditya17:fix-ti-mark-success-no-downstream-resume

Conversation

@Codingaditya17
Copy link
Copy Markdown
Contributor

What

This PR updates the Task Instance mark-as dialog so that the downstream option is no longer selected by default.

Why

In the Task Instances view, marking a failed task instance as success should not automatically include downstream task instances unless the user explicitly selects that option.

Previously, the dialog defaulted to downstream, which meant the request was sent with include_downstream: true. This could cause downstream upstream_failed task instances to be affected and resume within the same DagRun, which differs from the older Airflow 2 Task Instances view behavior.

This change makes the action safer and more explicit: only the selected task instance is updated by default, while users can still choose downstream manually when they want that behavior.

How

  • Removed the default downstream selection from MarkTaskInstanceAsDialog
  • Added a regression test to verify that downstream is not selected by default

Tests

cd airflow-core/src/airflow/ui
pnpm test MarkTaskInstanceAsDialog.test.tsx

Result:
✓ src/components/MarkAs/TaskInstance/MarkTaskInstanceAsDialog.test.tsx (1 test) 123ms
✓ MarkTaskInstanceAsDialog (1)
✓ does not select downstream by default 120ms

Test Files 1 passed (1)
Tests 1 passed (1)

uv run prek run ts-compile-lint-ui --all-files

Result:
Running hooks for airflow-core:
Compile / format / lint UI...............................................Passed

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label May 30, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant