Repository navigation
Conversation
|
@mik-laj this is the proposed solution. Do you know of any good way of doing it? |
|
@oripwk I think you just need to add this information in the base class and check that the documentation in the * .rst files is up-to-date. |
|
Agree with @mik-laj I think this should be implemented as common feature - so it should be just explained in the same place where we already explain the general jinija templates stuff. |
|
I agree, although there's a minor issue with the docs of the individual fields i.e. in
So it will stay as is. The question is if it's fine. |
|
I think we might use the opportunity to improve the docs slightly (and globally). If we go with my proposed rule (.sh and .sh.jinja2 for example in Bash), then we could automate the generation of such documentation snippet. The extensions supported will remain as they are in the operator definitions, and we could write a small plugin to generate the documentation and list supported extensions and remove manually entered documentation for that. We've done things like that before. |
|
As discussed on the dev list, thist might be an opportunity to have, Right now it's not possible to have the script/command etc. live in an external file but not be templated. And that is occasionally annoying. |
|
Do we want to do a separate solution for v1.10 and v2.0? (in v.1.10 just render all Or to implement only the v2.0 solution? |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This PR closes #8603, which seeks adding support for
.jinja2for file templates across the project.It defines a new property for
BaseOperatorwhich is a list containing.jinja2(and possibly other extensions if someone wants to add in the future), and whenevertemplate_extis not empty, the list is combined with it to produce a definite list of extensions, which is used throughout the class.Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.