mitre88 opened a new pull request, #70528: URL: https://github.com/apache/airflow/pull/70528
Part of the template-field validation burn-down tracked in #70296. `BigQueryDataTransferServiceTransferRunSensor` lists `expected_statuses` in `template_fields` but converts it to `TransferState` members in `__init__` via `_normalize_state_list`, so passing a Jinja expression raised `KeyError` at parse time. The sensor now stores the raw value and normalizes it in `poke`, after rendering. Added a test constructing the sensor with a templated `expected_statuses` that passes once the field holds the rendered value — it fails against the previous implementation. The class is removed from the exemption list and the `validate-operators-init` check passes locally. Per the discussion in #70505 this is a genuine value transformation (not an argument-provision check), so it belongs at execute time. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Fable 5) Generated-by: Claude Code (Fable 5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
