Skip to content

Raise deprecation warning when accessing metadata through str - #44791

Merged
Lee-W merged 1 commit into
apache:v2-10-testfrom
astronomer:deprecate-metadata-string-access
Dec 10, 2024
Merged

Raise deprecation warning when accessing metadata through str#44791
Lee-W merged 1 commit into
apache:v2-10-testfrom
astronomer:deprecate-metadata-string-access

Conversation

@Lee-W

@Lee-WLee-W commented Dec 9, 2024

Copy link
Copy Markdown
Member

This behavior will be removed in airflow 3 as assets have attributes name and uri, it would be confusing to identify which attribute should be used to filter the right asset

related: #43922, #44639


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

Comment threadairflow/datasets/metadata.py

@jscheffljscheffl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some tests fail but you probably know how to fix...

@Lee-W

Copy link
Copy Markdown
MemberAuthor

Some tests fail but you probably know how to fix...

I'm not sure at this moment 🤔 but will take a look later today

@Lee-W
Lee-Wforce-pushed the deprecate-metadata-string-access branch from fdd6217 to 79ac426CompareDecember 10, 2024 09:52
@Lee-W
Lee-W merged commit a1622eb into apache:v2-10-testDec 10, 2024
@Lee-W
Lee-W deleted the deprecate-metadata-string-access branch December 10, 2024 11:22
kaxil pushed a commit that referenced this pull request Dec 17, 2024
@utkarsharma2utkarsharma2 added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Jan 28, 2025
@utkarsharma2utkarsharma2 added this to the Airflow 2.10.5 milestone Jan 28, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:APIAirflow's REST/HTTP APIarea:dev-toolsarea:production-imageProduction image improvements and fixeschangelog:skipChanges that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@Lee-W@uranusjr@pierrejeambrun@jscheffl@utkarsharma2