Skip to content

Conversation

@sunank200
Copy link
Collaborator

@sunank200 sunank200 commented Feb 6, 2025

This PR does the following:

  • For manual runs, schedule-driven dag, if the logical date is null, there should be no data interval; if the logical date is not null, the data interval should be as normal.

closes: #46197


^ 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 newsfragments.

@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Feb 6, 2025
@sunank200 sunank200 requested review from uranusjr and removed request for ashb, bbovenzi, jscheffl, pierrejeambrun and ryanahamilton February 6, 2025 10:30
@sunank200 sunank200 added the AIP-83 Remove Execution Date Unique Constraint from DAG Run label Feb 6, 2025
@Lee-W Lee-W self-requested a review February 6, 2025 10:37
@sunank200 sunank200 force-pushed the null-logical-date-for-ui-trigger branch from fae6d58 to b55987e Compare February 6, 2025 11:44
@ashb
Copy link
Member

ashb commented Feb 6, 2025

We should probably not change the old UI anymore (we're very close to removing it), but we should change the New FastAPI routes instead

@uranusjr
Copy link
Member

uranusjr commented Feb 7, 2025

By “soon” it’s after 3.0 right? I feel we should still keep the old view work the same as the new to not confuse users too much.

@sunank200 sunank200 force-pushed the null-logical-date-for-ui-trigger branch from 2492b0b to 6acdf3a Compare February 7, 2025 10:47
@sunank200 sunank200 changed the title Change default logical date to null when manual trigger from UI Change manual run data interval behavior based on logical_date Feb 7, 2025
@sunank200 sunank200 force-pushed the null-logical-date-for-ui-trigger branch from d61eb63 to c58b2c0 Compare February 7, 2025 19:20
@sunank200 sunank200 added the legacy api Whether legacy API changes should be allowed in PR label Feb 7, 2025
@sunank200 sunank200 force-pushed the null-logical-date-for-ui-trigger branch from c58b2c0 to 51fd9d5 Compare February 7, 2025 19:22
@sunank200 sunank200 requested a review from uranusjr February 7, 2025 19:23
@sunank200 sunank200 force-pushed the null-logical-date-for-ui-trigger branch 2 times, most recently from 9b2158e to fd21a29 Compare February 12, 2025 17:20
@sunank200 sunank200 requested review from Lee-W and uranusjr February 12, 2025 17:30
@sunank200 sunank200 force-pushed the null-logical-date-for-ui-trigger branch 5 times, most recently from 80238c0 to b4e1de0 Compare February 12, 2025 20:18
@Lee-W
Copy link
Member

Lee-W commented Feb 13, 2025

opps, looks like there's conflict

@sunank200 sunank200 force-pushed the null-logical-date-for-ui-trigger branch from b4e1de0 to b867b95 Compare February 13, 2025 05:33
@sunank200
Copy link
Collaborator Author

opps, looks like there's conflict

@Lee-W fixed it

@sunank200 sunank200 force-pushed the null-logical-date-for-ui-trigger branch from 187f908 to dc18391 Compare February 13, 2025 07:56
@sunank200 sunank200 force-pushed the null-logical-date-for-ui-trigger branch from dc18391 to a6d43c9 Compare February 13, 2025 07:56
@Lee-W Lee-W merged commit f50f1ce into apache:main Feb 13, 2025
61 checks passed
@Lee-W Lee-W deleted the null-logical-date-for-ui-trigger branch February 13, 2025 08:41
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Feb 17, 2025
…e#46512)

* Add logic for if logical date null, there should be no data interval

* When logical_date is None, data_interval should be None

* fix the tests

* fix the tests

* fix the tests

* fix the assignment

* Fix the PR comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-83 Remove Execution Date Unique Constraint from DAG Run area:webserver Webserver related Issues legacy api Whether legacy API changes should be allowed in PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AIP-83 question 4.b. manual run data interval behavior

6 participants