Skip to content

Conversation

@jason810496
Copy link
Member

related: https://github.com/apache/airflow/pull/46544/files/b6ac7467b0bfc36831185219112354ea22da29f4#r1966113213

Why

option_description should be self.configuration_description.get(section, {}).get("options", {}).get(key, {}) instead of self.configuration_description.get(section, {}).get(key, {}) and the corresponding test is missing.


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

@jason810496 jason810496 force-pushed the fix/conf-lookup-from-deprecated-options-with-configuration-description branch from 47e71da to cf88e22 Compare February 24, 2025 12:12
Copy link
Contributor

@bugraoz93 bugraoz93 left a comment

Choose a reason for hiding this comment

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

Looks good in general, thanks!

@jason810496 jason810496 force-pushed the fix/conf-lookup-from-deprecated-options-with-configuration-description branch 2 times, most recently from fc74498 to 4b171be Compare February 27, 2025 13:51
@Lee-W Lee-W self-requested a review February 28, 2025 02:11
@jason810496 jason810496 force-pushed the fix/conf-lookup-from-deprecated-options-with-configuration-description branch from 4b171be to fcceba8 Compare March 4, 2025 02:06
@jason810496
Copy link
Member Author

Thanks @Lee-W for the review. Just resolved and rebased it.

@Lee-W Lee-W merged commit 8e3d25f into apache:main Mar 5, 2025
43 checks passed
shahar1 pushed a commit to shahar1/airflow that referenced this pull request Mar 5, 2025
…7004)

* Fix deprecated_options in AirflowConfigParser

* Add test_deprecated_options_with_lookup_from_deprecated, rename as lookup_from_deprecated

* fixup! Add docstring for lookup_from_deprecated

* Fix fixture params naming
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
…7004)

* Fix deprecated_options in AirflowConfigParser

* Add test_deprecated_options_with_lookup_from_deprecated, rename as lookup_from_deprecated

* fixup! Add docstring for lookup_from_deprecated

* Fix fixture params naming
sunank200 pushed a commit to astronomer/airflow that referenced this pull request May 8, 2025
…7004)

* Fix deprecated_options in AirflowConfigParser

* Add test_deprecated_options_with_lookup_from_deprecated, rename as lookup_from_deprecated

* fixup! Add docstring for lookup_from_deprecated

* Fix fixture params naming

(cherry picked from commit 8e3d25f)
Lee-W pushed a commit that referenced this pull request May 9, 2025
…50353)

* Fix Legacy configuration not removed or updated (#46544)

* Fix Legacy configuration not removed or updated

(cherry picked from commit 9719737)

* allow_trigger_in_future config removal (#46667)

(cherry picked from commit 65bacad)

* Backport airflow config update and airflow config lint changes

* Rename pre-2-7 defaults to provider_config_fallback_defaults (#44895)

* Rename pre-2-7 defaults to provider_config_fallback_defaults

After unsuccessful atempts to remove them, renaming and adding
appropriate warning against removing them seems to be a good idea.

* Update airflow/config_templates/provider_config_fallback_defaults.cfg

Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>

---------

Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
(cherry picked from commit 8c013b6)

* Fix `lookup_from_deprecated_options` in AirflowConfigParser (#47004)

* Fix deprecated_options in AirflowConfigParser

* Add test_deprecated_options_with_lookup_from_deprecated, rename as lookup_from_deprecated

* fixup! Add docstring for lookup_from_deprecated

* Fix fixture params naming

(cherry picked from commit 8e3d25f)

* Fix the tests

---------

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
Co-authored-by: Phani Kumar <94376113+phanikumv@users.noreply.github.com>
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants