Skip to content
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

A bunch of template_fields_renderers additions #15130

Merged
merged 4 commits into from
Apr 2, 2021

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Apr 1, 2021

See #11177. Mostly SQL fields and Python options. Two notable execeptions:

  • WinRMOperator.command is marked as bash even it’s technically not. cmd.exe and Powershell are close enough for syntax highlighting purposes IMO. a new renderer powershell.
  • A new jinja renderer is implemented. The Pygment lexer is called DjangoLexer, but Pygments suggets rendering Jinja2 with it.

Fix #14543.


Read the Pull Request Guidelines for more information.
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.

Mostly SQL fields and Python options.
This is technically wrong since the command here is interpreted in
either cmd.exe or Powershell syntax. But I feel they are sufficiently
close to Bash for UI purposes.
The lexer is called DjangoLexer, but Pygments documentation says it's
good enough for Jinja2 templates.
@boring-cyborg boring-cyborg bot added area:providers area:webserver Webserver related Issues provider:amazon-aws AWS/Amazon - related issues provider:microsoft-azure Azure-related issues provider:snowflake Issues related to Snowflake provider labels Apr 1, 2021
@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Apr 1, 2021
@github-actions
Copy link

github-actions bot commented Apr 1, 2021

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest master at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@kaxil kaxil merged commit 9b76b94 into apache:master Apr 2, 2021
@kaxil kaxil added this to the Airflow 2.1 milestone Apr 2, 2021
@uranusjr uranusjr deleted the template-fields branch May 28, 2021 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers area:webserver Webserver related Issues full tests needed We need to run full set of tests for this PR to merge provider:amazon-aws AWS/Amazon - related issues provider:microsoft-azure Azure-related issues provider:snowflake Issues related to Snowflake provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

string templated fields are not rendered literally
3 participants