The GitHub Actions job "Tests" on airflow.git/backport-62060 has succeeded.
Run started by GitHub user vatsrahul1001 (triggered by vatsrahul1001).

Head commit for run:
6d42c16ceb5574fc1b22c7885ef15215e5f20d46 / Subham <[email protected]>
Fix Trigger UI form rendering for null enum values (#62060)

* Fix Trigger UI form rendering for null enum values

* fix: preserve original type when selecting numeric enum in FieldDropdown

When a numeric enum value (e.g. 6) was selected, the Select component
returned a string ('6'). The old code stored the string directly, causing
a 400 Bad Request since backend validation expects the integer 6.

Fix: look up the original typed value from schema.enum using the string
as a key, and store that instead of the raw string from the UI.

Regression test added to FieldDropdown.test.tsx.

* fix: resolve ts-compile-lint-ui ESLint errors in FieldDropdown

- Broaden ParamSchema.enum type to Array<boolean | number | string | null>
  to accurately reflect JSON Schema enum values (fixes no-unnecessary-condition)
- Update labelLookup signature to accept boolean
- Switch null-check ternaries to nullish coalescing (??) in FieldDropdown.tsx
- Add eslint-disable for no-unsafe-member-access on any-typed mockParamsDict 
access
- Remove stale/unused eslint-disable-next-line comments

* fix: handle null enum values in FieldMultiSelect TypeScript types

(cherry picked from commit 4d3230c4d2bc052f7cbda9b4afe935f4c8eab26d)

Report URL: https://github.com/apache/airflow/actions/runs/22612730816

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to