Skip to content

moving renderers registry to OSS - #28986

Merged
ppisljar merged 2 commits into
elastic:masterfrom
ppisljar:canvas/renderFunctions2OSS
Jan 23, 2019
Merged

ppisljar merged 2 commits into
elastic:masterfrom
ppisljar:canvas/renderFunctions2OSS

Conversation

@ppisljar

Copy link
Copy Markdown
Contributor

Summary

Moves renderers registry to OSS, as we will use it in visualize as well. All current renderers are still in canvas. This will allow visualize to register its own renderer, which will make using all visualizations inside canvas possible.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@ppisljar ppisljar added review v7.0.0 Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// Feature:ExpressionLanguage Interpreter expression language (aka canvas pipeline) labels Jan 18, 2019
@ppisljar
ppisljar requested a review from a team as a code owner January 18, 2019 11:11
@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

w33ble
w33ble previously requested changes Jan 18, 2019

@w33ble w33ble left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like you need to clean up some code in Canvas still.

@@ -0,0 +1,42 @@
/*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like you just moved kibana/x-pack/plugins/canvas/public/lib/render_function.js here, but you didn't remove the source. The pr says moving the registry, but it looks like you just copied it and didn't replace the old use...

@@ -0,0 +1,29 @@
/*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same as render_functions.js, this code is now duplicated here and in the Canvas code.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks Joe, seems i messed up my commit ... i wanted to move files from canvas, but seems i copied them.

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@lukeelmers lukeelmers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code LGTM, tested locally as well & no obvious issues.

@monfera
monfera self-requested a review January 23, 2019 11:37

@monfera monfera left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code looks great! The inclusion of renderers in the (outer) types object is a good move anyway. It worked with some fairly complex pipelines and the Flights / sales / logs examples in Canvas.

@ppisljar
ppisljar dismissed w33ble’s stale review January 23, 2019 12:15

applied requested changes

@ppisljar
ppisljar merged commit cb1e1b8 into elastic:master Jan 23, 2019
@stacey-gammon

Copy link
Copy Markdown

Thoughts on separating the renderers registry out from the kbn-interpreter package? Feels like they could be separate concerns. One handles rendering data of a given shape, the other executes an expression. A plugin, I think, could technically want to use only the interpreter but have no desire to render the data (maybe just passing it on to something else... or for example if we create the idea of executing action expression - nothing to render at the end).

@ppisljar

Copy link
Copy Markdown
Contributor Author

currently they all get loaded with the same plugin system (which code is inside interpreter package)

@ppisljar ppisljar added the chore label Mar 20, 2019
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Feature:ExpressionLanguage Interpreter expression language (aka canvas pipeline) review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants