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

Add template fields renderers for better UI rendering #11061

Merged
merged 7 commits into from
Sep 23, 2020

Conversation

turbaszek
Copy link
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
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.
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
@turbaszek
Copy link
Member Author

@feluelle can you please take a look?

Copy link
Member

@feluelle feluelle left a comment

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