amoghrajesh commented on code in PR #63916:
URL: https://github.com/apache/airflow/pull/63916#discussion_r2958238034


##########
airflow-core/src/airflow/api_fastapi/execution_api/datamodels/taskinstance.py:
##########
@@ -309,8 +309,13 @@ class DagRun(StrictBaseModel):
 
     @model_validator(mode="before")
     @classmethod
-    def extract_dag_run_note(cls, data: Any) -> Any:
-        """Extract the `note` (`str | None` from 
`association_proxy("dag_run_note", "content")`) relationship from `DagRun` to 
prevent `DetachedInstanceError` when constructing `DagRunContext` or 
`TIRunContext` models."""

Review Comment:
   Renamed to a more appropriate method name



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