Skip to content

[v3-3-test] Fix partition key display and input handling (#69702) - #69974

Merged
Lee-W merged 2 commits into
v3-3-testfrom
backport-b767477-v3-3-test
Jul 17, 2026
Merged

[v3-3-test] Fix partition key display and input handling (#69702)#69974
Lee-W merged 2 commits into
v3-3-testfrom
backport-b767477-v3-3-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • UI: Fix partition key display and input handling

Non-partitioned Dag runs showed a dangling "Partition key:" label, an
empty partition key typed then cleared was sent to the trigger/materialize
APIs and rejected with 400, the trigger form exposed the field even for
non-partitioned Dags, the manual asset-event partition key used a
JsonEditor for a plain string, and the runs table hid the partition_key
column even when its filter was shown for a partitioned Dag. Also unify
the partition key label so cron/runtime-partitioned runs no longer say
"Mapped Partition key".

  • fixup! UI: Fix partition key display and input handling

  • fixup! fixup! UI: Fix partition key display and input handling

  • UI: Extract shared partition key normalization util

The trigger form and manual/materialize asset-event flows each
duplicated the same undefined/empty-string-to-null check before
sending partition_key to the API, making the normalization easy to
get subtly wrong in one call site while fixing it in another.

  • UI: Simplify partition key visibility check on asset event page

Collapse the redundant undefined/null comparison into a single
loose-equality null check, matching the reviewer's simplification
of the earlier partition key display fix.

  • UI: Remove partition-key column auto-visibility from the runs table

The runs table hid the partition_key column by default and revealed it
only for partitioned Dags by fetching Dag details and forcing a table
remount once the answer arrived. That remount-on-load approach was
fragile, and the show/hide behaviour is better solved by a reusable
mechanism (one that could also drive e.g. hiding map_index for
non-mapped tasks), so it is dropped here to be reworked separately.
(cherry picked from commit b767477)

Co-authored-by: Wei Lee weilee.rx@gmail.com

* UI: Fix partition key display and input handling

Non-partitioned Dag runs showed a dangling "Partition key:" label, an
empty partition key typed then cleared was sent to the trigger/materialize
APIs and rejected with 400, the trigger form exposed the field even for
non-partitioned Dags, the manual asset-event partition key used a
JsonEditor for a plain string, and the runs table hid the partition_key
column even when its filter was shown for a partitioned Dag. Also unify
the partition key label so cron/runtime-partitioned runs no longer say
"Mapped Partition key".

* fixup! UI: Fix partition key display and input handling

* fixup! fixup! UI: Fix partition key display and input handling

* UI: Extract shared partition key normalization util

The trigger form and manual/materialize asset-event flows each
duplicated the same undefined/empty-string-to-null check before
sending partition_key to the API, making the normalization easy to
get subtly wrong in one call site while fixing it in another.

* UI: Simplify partition key visibility check on asset event page

Collapse the redundant undefined/null comparison into a single
loose-equality null check, matching the reviewer's simplification
of the earlier partition key display fix.

* UI: Remove partition-key column auto-visibility from the runs table

The runs table hid the partition_key column by default and revealed it
only for partitioned Dags by fetching Dag details and forcing a table
remount once the answer arrived. That remount-on-load approach was
fragile, and the show/hide behaviour is better solved by a reusable
mechanism (one that could also drive e.g. hiding map_index for
non-mapped tasks), so it is dropped here to be reworked separately.
(cherry picked from commit b767477)

Co-authored-by: Wei Lee <weilee.rx@gmail.com>
@boring-cyborg boring-cyborg Bot added area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default labels Jul 16, 2026
@Lee-W
Lee-W merged commit f0bf49d into v3-3-test Jul 17, 2026
84 checks passed
@Lee-W
Lee-W deleted the backport-b767477-v3-3-test branch July 17, 2026 06:39
@github-actions github-actions Bot added this to the Airflow 3.3.1 milestone Jul 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.3.1 based on: bug fix merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants