-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DAG triggering page does not reflect conf parameter in the URL query string #32859
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
It should be fixed by #31583 which will be released in 2.7.0, I tested with 2.6.3 and I had the same issue, but I couldn't reproduce it on main. |
I don't remember instantly but I think other than a JSON there was an option to pass guided defaults via the URL to the form. I#d need to check but I remember I had that working. |
@hussein-awala |
@jens-scheffler-bosch Thanks, please reopen this if the overriding bug is reproduced. |
Sorry @jsgh7276 that my response took longer. I did a explicit test and can confirm actually that this is a bug. If you pass the So probably it is worth fixing this and I can see the use case of passing a pre-population URL to users. But more I see the bug of form values being ignored if pre-populated conf is used. I had parts of this already fixed and re-factored the code behind already, waiting to get PR #31301 being merged, from there I assume it would be good to develop a fix. Current code is unfortunately a bit spaghetti, looking forward to have the other PR merged, then I'd be happy to prepare a fix. (I'd like to prevent applying a fix before merge of #31301 as existing code is bad and I needed to re-work my PR already multiple times) |
I understood what you are considering now and I’ll happily wait for the fix. Thank you so much for your help. |
Apache Airflow version
2.6.3
What happened
I've found some unexpected behaviors of airflow webserver UI, when visiting DAG triggering page with
conf
in the URL query string.conf
in the URL is not applied to the triggering page param text input.conf
in the URL query string.I have this simple DAG below, and I wanted to guide coworkers to trigger this DAG with specific conf included.
So I provided the triggering URL
http://webserver.url:8080/trigger?dag_id=example_dag&conf={"key1":"value1","key2":"value2"}
.But when visiting the URL, UI does not reflect the passed conf parameter in the query string.
As you can see in the screenshot below, pre-populated texts are just showing default params of the DAG, not the conf in the URL query.
Moreover, when I trigger the DAG by clicking the blue button in the above page, that DagRun gets conf in the URL query string. In other words, text input in the triggering page does not affect DagRun when the user visit the page with conf query string included. (This problem was also reproduced on airflow version 2.5.2)
What you think should happen instead
I suggest the text input in triggering page should reflect the passed conf in the query string.
Also, when the DagRun is triggered at the triggering page where conf is included in URL, I think DagRun should utilize conf in the text input, not in the URL.
How to reproduce
It is reproducible with above DAG example and the example URL(http://webserver.url:8080/trigger?dag_id=example_dag&conf={"key1":"value1","key2":"value2"}).
Operating System
CentOS Linux, MacOS
Versions of Apache Airflow Providers
apache-airflow-providers-common-sql==1.5.1
apache-airflow-providers-ftp==3.4.1
apache-airflow-providers-http==4.4.1
apache-airflow-providers-imap==3.2.1
apache-airflow-providers-mysql==4.0.2
apache-airflow-providers-sqlite==3.4.1
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: