anasatzemoso opened a new pull request, #54650:
URL: https://github.com/apache/airflow/pull/54650

   This closes triggered_by is set to "rest_api" for dag runs that are 
triggered via the UI #53767
   closes: #53767 
   
   ### What happened
   DAG runs triggered manually from the Airflow UI are incorrectly marked as 
`triggered_by="rest_api"` when retrieved via the REST API.
   
   ### Root cause
   The endpoint that creates DAG runs does not differentiate between UI and API 
requests. By default, all runs were marked as `rest_api`.
   
   ### The fix
   This PR updates the logic to check the `Referer` header in the request and 
accordingly set the triggered_by field.


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