csp33 opened a new issue, #36843:
URL: https://github.com/apache/airflow/issues/36843
### Apache Airflow version
2.8.0
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
When setting `show_trigger_form_if_no_params` to True, users can not trigger
DAGs without configuration. The `Trigger DAG` button redirects to the `Trigger
DAG` form instead of triggering the DAG with `dagrun_conf={}` (like before)
https://github.com/apache/airflow/assets/28935464/62083be1-1330-4f75-8e47-848c36f99abb
### What you think should happen instead?
The `Trigger DAG` button should trigger the DAG with `dagrun_conf={}` (like
before).
The `Trigger DAG w/ config` button should keep its behavior.
### How to reproduce
1. Add a DAG without params to your DAGs folder (for example,
example_bash_operator.py).
2. Start Airflow with the following environment variable value:
`AIRFLOW__WEBSERVER__SHOW_TRIGGER_FORM_IF_NO_PARAMS=True`
3. Try to trigger the DAG without config (first option)
### Operating System
Airflow Docker Image
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
AIRFLOW__WEBSERVER__SHOW_TRIGGER_FORM_IF_NO_PARAMS=True
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] 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]