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

Fix too specific parsing of False in LegacyUIDeprecated #14967

Merged
merged 2 commits into from
Jun 10, 2021

Conversation

Seltsamsel
Copy link
Contributor

This is one of two issues mentioned in #13287 . The issue is trivial one: only false case sensitive was taken into account, however, the Airflow config allows many more options for the boolean False.
This fix is basically a replacement of the case sensitive check for false by the same logic getboolean() uses. Using getboolean() itself seems not to be a good solution, since it throws an Exception if there is a blank value in the field.

Copy link
Contributor

@jhtimmins jhtimmins left a comment

Choose a reason for hiding this comment

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

Can you add a test to verify the f and 0 cases as well?

Added more Unittest for possible False values
@Seltsamsel
Copy link
Contributor Author

Added some False options in the unittest. No idea why the CI Builds are failing :) .

@Seltsamsel
Copy link
Contributor Author

@jhtimmins can you have another look?

@eladkal eladkal added the upgrade-check upgrade-check CLI label Mar 30, 2021
@eladkal eladkal requested a review from ephraimbuddy May 6, 2021 17:22
@eladkal eladkal added this to the Airflow Upgrade Check - 1.4.0 milestone Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upgrade-check upgrade-check CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants