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


##########
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:
   For some reason, this query is failing with
    `AttributeError: 'DagRunNote' object has no attribute 'dag_id'`
   
   Even a simple `session.query(DagRunNote).all()` is failing with the above 
error. Any idea what's going on?



##########
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:
   For some reason, this query is failing with
    `AttributeError: 'DagRunNote' object has no attribute 'dag_id'`
   
   Even a simple `session.query(DagRunNote).all()` is failing with the above 
error. 



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