srivignessh opened a new pull request #5637: [AIRFLOW-4724] Make params dict to 
be templated for operators
URL: https://github.com/apache/airflow/pull/5637
 
 
   Make sure you have checked _all_ steps below.
   
   ### Jira
   
   - [ ] My PR addresses the following [Airflow 
Jira](https://issues.apache.org/jira/browse/AIRFLOW-4724) issue and references 
them in the PR title. 
   ### Description
   
   - [ ] Here are some details about my PR, including screenshots of any UI 
changes:
   The approaches discussed in 
https://apache-airflow.slack.com/archives/CCQ7EGB1P/p1559134166151100 to 
include 'params' as a templated_fields has to modified a bit to solve the issue.
   
   The discussed approaches templates the params dict. However, to make in 
available for the other templated fields in the operators, it is also required 
to update the jinja_template_context with the rendered params dict.  
   
   Hence, params templates are updated in the template_context similar to 
user_defined_macros.
   
   ### Tests
   
   - [ ] My PR adds the python operator params are templatized case to test the 
functionality. 
   The optional args of python operator contains params dict key which is 
substituted with rendered value. 
   
   ### Code Quality
   
   - [ ] Passes `flake8`
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to