Skip to content

Conversation

@anshuksi282-ksolves
Copy link
Contributor

Feat: Enhance XCom table with Timestamp and unified Task column

This PR implements two major enhancements to the XCom table in the Airflow Web UI, addressing the user feedback in Issue #56507.

Background:

The original XCom table lacked critical information (Timestamp) and displayed redundant technical data ('Task ID' alongside 'Task Display Name'). This made the table less user-friendly and difficult to trace XCom creation times.

What this PR does:

  1. Unifies Task Columns: Replaces the separate 'Task ID' and 'Task Display Name' columns with a single 'Task' column.

    • It displays the user-friendly task_display_name.
    • It includes a fallback to the task_id when the display name is not available, ensuring task identification is always possible.
    • The column is now fully clickable, linking directly to the respective Task Instance page.
  2. Adds Timestamp Column: Introduces the 'Timestamp' column.

    • The time is displayed in a human-readable format based on the user's local timezone, significantly improving traceability.

Notes:

These changes are focused on UI/UX improvements and do not impact core XCom functionality or data storage.

Fixes #56507


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@bbovenzi
Copy link
Contributor

Only one comment. I think the next step will be to update the API to add an order_by parameter

@anshuksi282-ksolves
Copy link
Contributor Author

Only one comment. I think the next step will be to update the API to add an order_by parameter

@bbovenzi Thanks for the suggestion regarding the order_by parameter! That makes perfect sense for enabling timestamp sorting. I will definitely look into opening a follow-up issue/PR for adding API support for sorting by timestamp.

@bbovenzi bbovenzi added this to the Airflow 3.1.2 milestone Oct 22, 2025
@pierrejeambrun pierrejeambrun added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Oct 28, 2025
Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one nit.

@pierrejeambrun pierrejeambrun merged commit 739681b into apache:main Oct 28, 2025
58 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 28, 2025
* feat: Add XCom 'Timestamp' and unify task columns

* fix: show task_display_name in XCom table with fallback dash
(cherry picked from commit 739681b)

Co-authored-by: Anshu Singh <anshu.singh@ksolves.com>
@github-actions
Copy link

Backport successfully created: v3-1-test

Status Branch Result
v3-1-test PR Link

pierrejeambrun pushed a commit that referenced this pull request Oct 28, 2025
#57447)

* feat: Add XCom 'Timestamp' and unify task columns

* fix: show task_display_name in XCom table with fallback dash
(cherry picked from commit 739681b)

Co-authored-by: Anshu Singh <anshu.singh@ksolves.com>
Lzzz666 pushed a commit to Lzzz666/airflow that referenced this pull request Oct 30, 2025
* feat: Add XCom 'Timestamp' and unify task columns

* fix: show task_display_name in XCom table with fallback dash
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. backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch translation:default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update XCom Table columns

3 participants