-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
add an option for run id in the ui trigger screen #21851
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
|
Thanks for the PR! When making UI changes it is helpful to the reviewers if you include before and after screenshots in the PR description |
Co-authored-by: Tzu-ping Chung <[email protected]>
thanks for the feedback, I added the screen shots to the PR. |
change label writing to be consistent with the rest of the forrm Co-authored-by: Brent Bovenzi <[email protected]>
@bbovenzi I am trying to reproduce this error and write a unittest for it. can you please write how did you produce this error? |
Actually I'm not sure. I just tried again and the correct error was thrown. |
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.
UI-wise this looks good to me.
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
Logic looks good to me, but can you change the code to not use |
@uranusjr not sure I understand what you mean. add a separate function in models/dagrun.py to look for duplicate run ids instead of using the existing find? airflow/airflow/models/dagrun.py Line 365 in 8c3f479
maybe I should switch to using it instead of DagRun.find() |
Oh, I was thinking we don’t need to add a function and could just use SQLAlchemy directly in |
use existing run_id in error msg in case of duplication Co-authored-by: Tzu-ping Chung <[email protected]>
Awesome work, congrats on your first merged pull request! |
which version is this included in? and does anyone knows if we can easily backport? thanks! |
This is not yet included in any release, it will be in 2.3.0 which we aim to get out in a week or two |
Added an option for custom run_id in the trigger dag screen.
this option was already supported in the API.
This commit includes:
closes: #21336
Before:
After: