jpizquierdo opened a new issue, #52627:
URL: https://github.com/apache/airflow/issues/52627

   ### Apache Airflow version
   
   3.0.2
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   datamodel TriggerDAGRunPostBody in 
`airflow-core/src/airflow/api_fastapi/core_api/datamodels/dag_run.py` has no 
default value for `logical_date`.
   
   ### What you think should happen instead?
   
   I think that it will be better to set a default value of None, because None 
is when airflow takes the current date itself. 
   
   That way it does not break the API call when you migrate from airflow 2 to 
airflow 3, because in airflow 3 that field is mandatory right now.
   
   ### How to reproduce
   
   Just call the API to trigger a dag run (/api/v2/dags/dag id/dagruns without 
logical_date in the body
   
   ### Operating System
   
   Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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