You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "uranusjr (via GitHub)" <gi...@apache.org> on 2023/02/03 04:43:59 UTC

[GitHub] [airflow] uranusjr commented on pull request #29034: Add functionality for operators to template all eligible fields (apac…

uranusjr commented on PR #29034:
URL: https://github.com/apache/airflow/pull/29034#issuecomment-1414934990

   I have doubts making this an operator argument is the right design. I’d want to make this designed at the operator class level, e.g.
   
   ```python
   class MyOperator(BaseOperator):
       template_fields = "__all__"  # Or we could introduce a flag constant for this.
       template_fields_excludes = [...]  # If needed.
   ```
   
   And then we can work to convert existing operators gradually with more confidence they work.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org