Skip to content

Add template fields renderers for better UI rendering - #11061

Merged
turbaszek merged 7 commits into
apache:masterfrom
PolideaInternal:add-operator-renderers
Sep 23, 2020
Merged

Add template fields renderers for better UI rendering#11061
turbaszek merged 7 commits into
apache:masterfrom
PolideaInternal:add-operator-renderers

Conversation

@turbaszek

Copy link
Copy Markdown
Member

This PR adds possibility to define template_fields_renderers for an
operator. In this way, users will be able to provide information
on what lexer should be used for rendering a particular field. This is
super useful for custom operator and gives more flexibility than
predefined keywords.

Before

Screenshot 2020-09-21 at 18 46 35

After

Screenshot 2020-09-21 at 19 01 06


^ Add meaningful description above

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.

@boring-cyborg boring-cyborg Bot added the area:webserver Webserver related Issues label Sep 21, 2020
@turbaszek turbaszek removed the area:webserver Webserver related Issues label Sep 21, 2020
@turbaszek

Copy link
Copy Markdown
Member Author

@kaxil ,@mik-laj and @olchas I'm happy to hear what do you think 🤔

@turbaszek turbaszek added kind:feature Feature Requests area:webserver Webserver related Issues labels Sep 21, 2020
This PR adds posibility to define template_fields_renderers for an
operator. In this way users will be able to provide information
what lexer should be used for rendering particular field. This is
super useful for custom operator and gives more flexibility than
predefined keywords.
@turbaszek
turbaszek force-pushed the add-operator-renderers branch from a99aab1 to 7460984 Compare September 21, 2020 20:41
Comment thread airflow/models/baseoperator.py Outdated
Comment thread docs/howto/custom-operator.rst Outdated
Comment thread docs/howto/custom-operator.rst Outdated
Co-authored-by: Kamil Olszewski <34898234+olchas@users.noreply.github.com>
@turbaszek
turbaszek marked this pull request as ready for review September 22, 2020 10:37
Comment thread tests/serialization/test_dag_serialization.py Outdated
@turbaszek
turbaszek requested review from feluelle and kaxil September 23, 2020 08:57
@turbaszek

Copy link
Copy Markdown
Member Author

@feluelle can you please take a look?

@feluelle feluelle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@turbaszek
turbaszek merged commit daf8f31 into apache:master Sep 23, 2020
@turbaszek
turbaszek deleted the add-operator-renderers branch September 23, 2020 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:webserver Webserver related Issues kind:feature Feature Requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants