Skip to content

Conversation

guan404ming
Copy link
Contributor

Why

When migrating my local cfg to newest one, I found there are some type error in config template
cc @pierrejeambrun

How

Update them to correct type


^ 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 airflow-core/newsfragments.

@guan404ming guan404ming marked this pull request as ready for review May 20, 2025 01:22
Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

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

This seems really odd. I'll let others comment on that, maybe that was intended.

This is cleaner indeed, I don't think it matters that much because we always seem to be doing conf.getfloat conf.getint, conf.getboolean etc...

LGTM

@guan404ming guan404ming force-pushed the fix-config-template-type branch from f5f64e7 to c4add24 Compare May 25, 2025 13:59
@Lee-W Lee-W self-requested a review May 26, 2025 10:54
Copy link
Member

@kaxil kaxil left a comment

Choose a reason for hiding this comment

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

This doesn't affect any runtime behavior since we use conf.getint , conf.getboolean etc. This is purely for displaying in https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html

Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

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

LGTM +1.

@guan404ming guan404ming force-pushed the fix-config-template-type branch from c4add24 to 73f4dc8 Compare May 27, 2025 12:30
@pierrejeambrun pierrejeambrun added the backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch label May 27, 2025
@pierrejeambrun pierrejeambrun merged commit 8bee3fb into apache:main May 27, 2025
52 checks passed
Copy link

Backport failed to create: v3-0-test. View the failure log Run details

Status Branch Result
v3-0-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 8bee3fb v3-0-test

This should apply the commit to the v3-0-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

@guan404ming guan404ming deleted the fix-config-template-type branch May 27, 2025 13:09
@guan404ming
Copy link
Contributor Author

Thanks for all reviews.

pierrejeambrun pushed a commit to astronomer/airflow that referenced this pull request May 28, 2025
@pierrejeambrun
Copy link
Member

Backport PR:
#51147

pierrejeambrun added a commit that referenced this pull request May 28, 2025
(cherry picked from commit 8bee3fb)

Co-authored-by: Guan Ming(Wesley) Chiu <[email protected]>
kaxil pushed a commit that referenced this pull request Jun 3, 2025
(cherry picked from commit 8bee3fb)

Co-authored-by: Guan Ming(Wesley) Chiu <[email protected]>
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
jose-lehmkuhl pushed a commit to jose-lehmkuhl/airflow that referenced this pull request Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:ConfigTemplates backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants