rawwar commented on code in PR #47817:
URL: https://github.com/apache/airflow/pull/47817#discussion_r1997244202


##########
tests/api_fastapi/core_api/routes/public/test_dag_run.py:
##########
@@ -931,6 +932,13 @@ def test_patch_dag_run(self, test_client, dag_id, run_id, 
patch_body, response_b
         assert body["dag_run_id"] == run_id
         assert body.get("state") == response_body.get("state")
         assert body.get("note") == response_body.get("note")
+        user_id = (
+            session.query(DagRunNote)
+            .join(DagRun, DagRunNote.dag_run_id == DagRun.id)

Review Comment:
   however, if I directly access the field like below:
   
   ```
   result = session.query(DagRunNote).join(DagRun, 
DagRunNote.dag_run_id==DagRun.id).filter(DagRun.run_id == run_id).one()
   
   result.user_id
   ```
   
   It does not fail and it does print the user_id. So, the issue is definitely 
with the __repr__ method trying to access unavailable fields



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