Skip to content

fix(cli): filter out None values to preserve method defaults#65062

Draft
rjgoyln wants to merge 2 commits intoapache:mainfrom
rjgoyln:fix/cli-param-none-override
Draft

fix(cli): filter out None values to preserve method defaults#65062
rjgoyln wants to merge 2 commits intoapache:mainfrom
rjgoyln:fix/cli-param-none-override

Conversation

@rjgoyln
Copy link
Copy Markdown
Contributor

@rjgoyln rjgoyln commented Apr 11, 2026

Summary

In the current Task SDK CLI auto-generation mechanism, when a user executes a command without providing optional primitive flags (e.g., --limit or --state), the CLI parser captures these as explicit None values.

Change

  • Optimized cli_config.py to filter None values, preserving native method defaults while allowing 0 or False.
  • Enhanced parameter mapping and added unit tests for fallback behavior, manual overrides, and edge cases.

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@rjgoyln rjgoyln marked this pull request as draft April 11, 2026 16:30
@rjgoyln rjgoyln closed this Apr 11, 2026
@rjgoyln rjgoyln reopened this Apr 11, 2026
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.

1 participant