New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add LiteralValue wrapper rendered without templating #35017
Merged
uranusjr
merged 11 commits into
apache:main
from
michalsosn:33694-LiteralValue-templater
Nov 17, 2023
Merged
Add LiteralValue wrapper rendered without templating #35017
uranusjr
merged 11 commits into
apache:main
from
michalsosn:33694-LiteralValue-templater
Nov 17, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Taragolis
reviewed
Oct 18, 2023
uranusjr
reviewed
Oct 18, 2023
michalsosn
force-pushed
the
33694-LiteralValue-templater
branch
2 times, most recently
from
October 23, 2023 00:06
5ab5b11
to
ac98c8f
Compare
uranusjr
reviewed
Oct 23, 2023
uranusjr
reviewed
Oct 23, 2023
uranusjr
reviewed
Oct 23, 2023
michalsosn
force-pushed
the
33694-LiteralValue-templater
branch
from
October 24, 2023 20:02
ac98c8f
to
b5b15fc
Compare
michalsosn
force-pushed
the
33694-LiteralValue-templater
branch
from
October 29, 2023 02:13
b5b15fc
to
1715198
Compare
michalsosn
force-pushed
the
33694-LiteralValue-templater
branch
from
November 5, 2023 19:42
1715198
to
bfecd90
Compare
potiuk
force-pushed
the
33694-LiteralValue-templater
branch
from
November 6, 2023 00:39
bfecd90
to
5da7297
Compare
uranusjr
reviewed
Nov 6, 2023
uranusjr
reviewed
Nov 13, 2023
uranusjr
reviewed
Nov 16, 2023
uranusjr
approved these changes
Nov 16, 2023
potiuk
approved these changes
Nov 17, 2023
potiuk
force-pushed
the
33694-LiteralValue-templater
branch
from
November 17, 2023 00:04
ce3b014
to
90944f5
Compare
uranusjr
reviewed
Nov 17, 2023
2 tasks
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #33694
The PR introduces the airflow.template.templater.LiteralValue class, which wraps a single value and makes the Templater immediately return, bypassing Jinja templating for the content.
This class allows you to use strings that include Jinja macros or recognized file extensions as-is, without the need to modify the Operator by altering its template_fields or template_ext.
In cases where a field contains a complex object, it also enables you to selectively disable rendering for a portion of the object. This level of granularity is not achievable by overriding the template_fields.
Additionally, it provides a cleaner approach to avoid rendering files, in contrast to the documented method of leaving a trailing space within the string.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.