Skip to content
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 logical_date to models using execution_date #44283

Draft
wants to merge 1 commit into
base: v2-10-test
Choose a base branch
from

Conversation

uranusjr
Copy link
Member

Airflow 3 renames all database columns from 'execution_date' to 'logical_date'. This backports the new name to 2.x so users can change their code accessing those fields to use the new name before upgrading to Airflow 3.

Airflow 3 renames all database columns from 'execution_date' to
'logical_date'. This backports the new name to 2.x so users can change
their code accessing those fields to use the new name before upgrading
to Airflow 3.
airflow/models/slamiss.py Show resolved Hide resolved
@potiuk potiuk added this to the Airflow 2.11.0 milestone Nov 22, 2024
@@ -44,3 +49,7 @@ class SlaMiss(Base):

def __repr__(self):
return str((self.dag_id, self.task_id, self.execution_date.isoformat()))

@property
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we only merge it for 2.11.0 ?
Or do want to add it to 2.10.4 ? I marked it provisionally as 2.11.0.

Note that we do not have currently a way to merge 2.11.0-only changes - so, unless we introduce a solution for that - it will have to wait until we stop preparing 2.10.* patchlevel releases @uranusjr @ephraimbuddy @utkarsharma2

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should block merging it to v2-10-test until we stop 2.10.* releases

Copy link
Member

@potiuk potiuk Nov 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also potentially have v2-11-test branch at some point of time (this is mostly the matter of how many changes like that we are going to have). Theorethically, there is nothing wrong with having both branches created and having Pull Requests to v2-11-test. We could then later rebase v2-11-test on top of v2-10-test. - but that basically means that someone who merges changes now would have to resolve the conflicts if that happens - or maybe put the whole weitght of this resolving on the shoulders of release manager - both are not too good ideas.

Likely keeping such changes as DRAFT PR and rebasing them individually/merging PRs later is a better idea - as it puts the burden on solving the issue on the one who is author (i.e. knows best what the intention and context was).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely keeping such changes as DRAFT PR and rebasing them individually/merging PRs later is a better idea - as it puts the burden on solving the issue on the one who is author (i.e. knows best what the intention and context was).

I prefer this

@uranusjr uranusjr marked this pull request as draft November 25, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants