ytoprakc commented on code in PR #67207:
URL: https://github.com/apache/airflow/pull/67207#discussion_r3313696090


##########
airflow-core/src/airflow/api_fastapi/core_api/datamodels/ui/common.py:
##########
@@ -67,6 +67,7 @@ class GridNodeResponse(BaseModel):
     children: list[GridNodeResponse] | None = None
     is_mapped: bool | None
     setup_teardown_type: Literal["setup", "teardown"] | None = None
+    doc_md: str | None = None

Review Comment:
   Thank you for the review @kaxil . I updated `GridNodeResponse` to mirror the 
Dag response behaviour by adding a `@field_validator("doc_md", mode="before")` 
that runs `inspect.cleandoc`.
   
   I also removed the decorator-side `cleandoc` so TaskGroup `doc_md` 
normalisation now happens consistently at the API response layer, whether the 
value comes from `TaskGroup(doc_md=...)` or from the `@task_group` docstring 
fallback.



-- 
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]

Reply via email to