Skip to content

Fix HITL form crashing on null defaults - #72375

Merged
pierrejeambrun merged 1 commit into
apache:mainfrom
astronomer:fix-hitl-form
Sep 4, 2026
Merged

pierrejeambrun merged 1 commit into
apache:mainfrom
astronomer:fix-hitl-form

Conversation

@bbovenzi

@bbovenzi bbovenzi commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Opening a Human-in-the-loop task's response form crashes with
TypeError: (param.value ?? "").slice is not a function when the task declares a param
whose default is null and whose schema sets format: "date" or format: "time". The
form never renders, so the task cannot be answered from the UI at all.

Minimal reproduction:

HITLEntryOperator(
    task_id="collect",
    subject="Pick a freeze date",
    params={"freeze_until": Param(None, type=["string", "null"], format="date")},
)

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

  • 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.

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Sep 1, 2026
@bbovenzi bbovenzi changed the title Fix HITL form crashing on null values Fix HITL form crashing on null defaults Sep 1, 2026
@bbovenzi bbovenzi added this to the Airflow 3.3.2 milestone Sep 1, 2026

@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.

LGTM, thanks

@pierrejeambrun
pierrejeambrun merged commit 8cbbf7c into apache:main Sep 4, 2026
89 checks passed
@pierrejeambrun
pierrejeambrun deleted the fix-hitl-form branch September 4, 2026 16:17
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Backport failed to create: v3-3-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
❌ v3-3-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 8cbbf7c v3-3-test

This should apply the commit to the v3-3-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

pierrejeambrun pushed a commit that referenced this pull request Sep 9, 2026
(cherry picked from commit 8cbbf7c)

Co-authored-by: Brent Bovenzi <[email protected]>
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.

3 participants