Uh oh!
There was an error while loading. Please reload this page.
Add support for XCom page in browse and task instance tab - #44869
Conversation
tirkarthi
commented
Dec 12, 2024
Not sure why my pre-commit run and the one in CI are different. |
jscheffl
commented
Dec 12, 2024
In the legacy UI in 2.10 I invested a bit of efforts making XCom better readable for users in #40640 . Especially for Dicts and lists. Can you re-apply such feature also for the new XCom display, such that dicts are not just dumped as text? (I know I generated a set of side-effects as bugs which needed to be fixed, so in the new UI we have the chance to make it "right the first time" also with a re-usable component for DAG Run Conf. |
tirkarthi
commented
Dec 12, 2024
Thanks @jscheffl, it needs porting |
jscheffl
commented
Dec 12, 2024
Fair. As long as it is not forgotten :-D And does not need to be e exactly the same component as in legacy if there are better components nowadays. Regarding (3) in your list above: In the past "Rest API" call the public XCom endpoint was used and for adding the "ReactJSON" I needed to add the "stringify" option as workarouns as the stringified version before used Python-style quotes which were not JSON parsable in the React / Javascript code. In the legacy this is really bad (in my view) and it would be better if in the new UI it is made "right" from the beginning. I wanted to prevent this in the past not having a breaking change in the REST API - but now would be the time with FastAPI anyway. So |
tirkarthi
commented
Dec 12, 2024
Thanks @jscheffl, here is one rough attempt I can think of. Pass |
jscheffl
commented
Dec 12, 2024
Yeah, but this is only rough :-) Then rather to it "right" in a follow-up PR 👍 |
bbovenzi
left a comment
There was a problem hiding this comment.
I agree with moving this to a more global component like we did for events.
Also +1 on trying to use syntax highlighter. I wonder if we should update xcom entry to tell us what type the value is so the UI isn't guessing
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
* Add support for XCom tab in Task Instance detail page. * Add support for XCom page in browse section. * Disable sorting since API doesn't support it. * Fix run_id in xcom tests. * Fix generated files. * Refactor XCom page and XCom columns.
atul-astronomer
commented
Apr 22, 2025
Are we planning to enable sorting in the future for XCom? Currently user can be confused as columns has sorting indicators |
pierrejeambrun
commented
Apr 22, 2025
@atul-astronomer |



Add support to display XCom details for a task instance in a tab. Add a clipboard button next to the value so that user can copy the value easily. The PR also adds global XCom page under browse similar to Events page currently.
Notes for review and self :
src/pages/Events/should I move this also tosrc/pages/XComfrom currentairflow/ui/src/pages/TaskInstance/XCom. I started with task instance and later realized it's easier to make this page global .run_idto the response for better filtering in retrieving value API in the global XCom page without any run id in the URL params.stringify: trueto get the value. I have added askeletonbut is it possible to set some value to reuse theSkeletonfrom Table's component.Related #44667
XCom under browse page