-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Add dag_run_conf
to RunBackfillForm
#49763
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
Conversation
Good first step! But actually, we need the whole I think we really just need to pull all the conf/params form out of TriggerDAGForm into a shared component to add to the Trigger/Backfill forms. My apologies for failing to specify that |
No worries! I understand and I can try to make pull that form as a shared components |
I am not a big user of backfills and therefore might not have an insight... but: Is it a "we can and therefore we make it" or is there a real functional need to be able to change params when making a backfill? Because it might be different to scheduled runs. |
Ah, okay looking at https://airflow.apache.org/docs/apache-airflow/2.10.5/cli-and-env-variables-ref.html#backfill ... also previously a conf could be defined to be passed. |
d5f6ac4
to
fd55ed0
Compare
@bbovenzi I've updated the PR, but I'm not sure that the way how I pass the param is right or not, please let me know if this need any change. Thanks! |
fd55ed0
to
fc86aee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
airflow-core/src/airflow/ui/src/components/DagActions/RunBackfillForm.tsx
Outdated
Show resolved
Hide resolved
Shall we need to hide the field notes, dag run id and logical date in BackFillForm? |
5abaa5f
to
9af9191
Compare
Oh, I got it. |
Exactly. Only the conf can be shared across each backfill run. Thanks for your patience on the back and forth here. |
No worries, let me try fix it~ |
14b04f2
to
921ff67
Compare
921ff67
to
e9ef9c2
Compare
@bbovenzi I've fixed this one, please take another look. Thanks! |
airflow-core/src/airflow/ui/src/components/DagActions/RunBackfillForm.tsx
Outdated
Show resolved
Hide resolved
e9ef9c2
to
6162a3d
Compare
Co-authored-by: Brent Bovenzi <4600967+bbovenzi@users.noreply.github.com>
Co-authored-by: Brent Bovenzi <4600967+bbovenzi@users.noreply.github.com>
6162a3d
to
74d4f19
Compare
dag_run_conf
to RunBackfillForm
dag_run_conf
to RunBackfillForm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work!
* feat: add `dag_run_conf` to `RunBackfillForm` Co-authored-by: Brent Bovenzi <4600967+bbovenzi@users.noreply.github.com> * fix: add missing conf preset Co-authored-by: Brent Bovenzi <4600967+bbovenzi@users.noreply.github.com> --------- Co-authored-by: Brent Bovenzi <4600967+bbovenzi@users.noreply.github.com> (cherry picked from commit 6ca99d8)
Related Issue
closes #49653
cc: @bbovenzi
Why
dag_run_conf
however it's neededHow
JsonEditor
in aAccordion
to let user inputdag_run_conf
:^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in airflow-core/newsfragments.