kolfild26 opened a new pull request, #28992: URL: https://github.com/apache/airflow/pull/28992
Based on #28435 The purpose is to save to `Log` table an airflow user who created a dagrun via [REST API](https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/post_dag_run). Currently, such event as `trigger` (from UI) and `cli_dag_trigger` (from CLI) are being written to metadb, But the api endpoint dagrun request is missing there. I suggest to add a log entry in [dag_run_endpoint.py](https://github.com/apache/airflow/blob/main/airflow/api_connexion/endpoints/dag_run_endpoint.py#L283) like this: <HTML> <BODY> <!--StartFragment--><TABLE><TR><TD>ID</TD><TD>dttm</TD><TD>dag_id</TD><TD>task_id</TD><TD>event</TD><TD>execution_date</TD><TD>owner</TD></TR><TR><TD>143130</TD><TD>2023-01-17 17:30:05.498895</TD><TD>test_rest</TD><TD></TD><TD>rest_dag_trigger</TD><TD>2023-01-17 17:30:05.482352</TD><TD>my_user</TD></TR></TABLE> <!--EndFragment--> </BODY> </HTML> _'rest_dag_trigger'_ is discussable, it might be someone could advise a better text. I just named it in the likeness of _'cli_dag_trigger'_. The other columns are obvious. -- 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]
