Skip to content

[v3-2-test] Fix DagVersion when clearing tasks with run on latest version (#65835)#66901

Merged
bbovenzi merged 1 commit into
v3-2-testfrom
backport-322-65835
May 14, 2026
Merged

[v3-2-test] Fix DagVersion when clearing tasks with run on latest version (#65835)#66901
bbovenzi merged 1 commit into
v3-2-testfrom
backport-322-65835

Conversation

@vatsrahul1001
Copy link
Copy Markdown
Contributor

@vatsrahul1001 vatsrahul1001 commented May 14, 2026

Cherry-pick of #65835

Conflict resolution

One conflict in airflow-core/src/airflow/ui/src/components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx. Took the PR side — the PR replaces v3-2-test's simpler bundle-version comparison with the new getRunOnLatestVersionState helper introduced by this same PR (in the new runOnLatestVersion.ts file), plus a useEffect to manage the runOnLatestVersion state.

Lint fix-up

@typescript-eslint/no-unnecessary-condition flagged two taskInstance?.dag_version?... optional chains as unnecessary since taskInstance is typed non-nullish on v3-2-test. Changed them to taskInstance.dag_version?....


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.7)

Generated-by: Claude Code (Opus 4.7) following the guidelines

* Fix DagVersion when clearing tasks with run on latest version

* UI: Merge two useEffects in ClearGroupTaskInstanceDialog

* UI: Add spacing between clear task checkboxes

* UI: Share run on latest version logic for clear dialogs

* UI: Merge two useEffects in ClearTaskInstanceDialog

* Fix CI: apply pre-commit auto-fixes

(cherry picked from commit 8c43743)
@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label May 14, 2026
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.2.2 milestone May 14, 2026
@vatsrahul1001 vatsrahul1001 added the type:bug-fix Changelog: Bug Fixes label May 14, 2026
@bbovenzi bbovenzi merged commit 28fb4ac into v3-2-test May 14, 2026
89 checks passed
@bbovenzi bbovenzi deleted the backport-322-65835 branch May 14, 2026 14:26
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. type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants