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


##########
airflow/api_fastapi/core_api/routes/public/dag_run.py:
##########
@@ -104,6 +106,9 @@ async def patch_dag_run_state(
                 set_dag_run_state_to_queued(dag=dag, run_id=dag_run.run_id, 
commit=True)
             else:
                 set_dag_run_state_to_failed(dag=dag, run_id=dag_run.run_id, 
commit=True)
+        elif attr_name == "note":
+            # Need to figure out how to get current user id

Review Comment:
   @pierrejeambrun , in legacy implementation of update dag run note, they get 
current user. Kind of stuck on how to get the current user in FastAPI 
implementation. 



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