ephraimbuddy commented on code in PR #58615:
URL: https://github.com/apache/airflow/pull/58615#discussion_r2570766725
##########
providers/standard/src/airflow/providers/standard/operators/hitl.py:
##########
@@ -84,6 +84,9 @@ def __init__(
self.multiple = multiple
self.params: ParamsDict = params if isinstance(params, ParamsDict)
else ParamsDict(params or {})
+ if hasattr(ParamsDict, "filter_params_by_source"):
+ # Params that exist only in Dag level does not make sense to
appear in HITLOperator
+ self.params = ParamsDict.filter_params_by_source(self.params,
source="task")
Review Comment:
Should we add debug log here so when there's no filter_params_by_source,
users are told about it:
```python
else:
log.debug("ParamsDict.filter_params_by_source not available;
HITLOperator will show all params.")
```
--
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]