-
Notifications
You must be signed in to change notification settings - Fork 16.4k
AIP-83 Logical date should be required field when triggering run via API #46390
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
AIP-83 Logical date should be required field when triggering run via API #46390
Conversation
…stronomer/airflow into restore-unique-constraint-logical-date
…que-constraint-logical-date
…stronomer/airflow into restore-unique-constraint-logical-date
…que-constraint-logical-date
…stronomer/airflow into refactor-backfill-reprocess-logic
…omer/airflow into refactor-backfill-reprocess-logic
… of github.com:astronomer/airflow into make-logical-date-as-required-field-to-trigger-dag-api
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.
Looking good from the AIP stand point.
Logic looks good too but I would be more confortable if some AIP-83 owner could double check.
cc: @dstandish @uranusjr
I think we need to wait for #46398 before merging so we don't have to create a new PR afterwards.
sunank200
left a comment
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.
LGTM.
uranusjr
left a comment
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.
Almost good, just one question on removed run_id logic.
Replied here |
|
@uranusjr I was testing this and found that the DAG run is being inserted into the |
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
…API (apache#46390) * restore unique constraint on logical date and make it nullable * restore unique constraint on logical date and make it nullable * fix migration file * fix migration file * refactor backfill reprocess logic * fixing tests * fix tests * remove default date from logical date in dag run model * fix task_filter * fix failing tests * make logical date as required field * refactor * remove backfill related changes * implement review comments * add time now to var * fix tests * fix review comments * Update tests/api_fastapi/core_api/routes/public/test_dag_run.py Co-authored-by: Wei Lee <weilee.rx@gmail.com> --------- Co-authored-by: Wei Lee <weilee.rx@gmail.com>
closes:#46188
depends: #46295
API request with the logical date as null
API request with the logical date as not null

^ 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.rstor{issue_number}.significant.rst, in newsfragments.