Brunda10 commented on code in PR #54597:
URL: https://github.com/apache/airflow/pull/54597#discussion_r2287964191
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/xcom.py:
##########
@@ -314,10 +314,10 @@ def update_xcom_entry(
xcom_key: str,
patch_body: XComUpdateBody,
session: SessionDep,
+ update_mask: list[str] | None = Query(None),
) -> XComResponseNative:
- """Update an existing XCom entry."""
- # Check if XCom entry exists
- xcom_new_value = XComModel.serialize_value(patch_body.value)
+ """Update an existing XCom entry, partially if update_mask is provided."""
+ # Find the XCom entry
Review Comment:
I initially considered adding **update_mask** here to keep the pattern
unified across all **PATCH APIs**, but since it doesn’t add much value for this
endpoint, I’m fine keeping the existing implementation. I can remove it if
needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]