Repository navigation
Add aws_conn_id to template_fields in Amazon S3 operators (#35259) - #70638
divijaksolves wants to merge 5 commits into
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
|
SameerMesiah97
left a comment
There was a problem hiding this comment.
Since this changes template_fields, should test_template_fields be updated to include a templated aws_conn_id?
…ateObjectOperator
|
Thanks for the review! Updated |
|
Thanks for picking this up, and sorry it's not the outcome you were hoping for. This change is a no-op. return tuple(sorted({"aws_conn_id", "region_name", "verify"} | set(template_fields)))So the resulting tuple is byte-identical before and after:
#35259 asks for templated connection ids across all third-party operators, and Amazon is the provider where it already works. The remaining work is in the providers that don't have an equivalent of Closing this one, but the issue is still open and worth taking on from that angle. Drafted-by: Claude Code (Opus 5); reviewed by @potiuk before posting |
closes: #35259
Description
This PR adds
aws_conn_idtotemplate_fieldsinS3CreateObjectOperatorto enable Jinja templating support for dynamic connection IDs.Testing
Tested locally via Breeze with:
pytest providers/amazon/tests/unit/amazon/aws/operators/test_s3.pyAll 79 tests passed successfully.
Was generative AI tooling used to co-author this PR?