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

Configuration support for grouped Canvas elements #49973

Closed
boutcher opened this issue Nov 1, 2019 · 3 comments
Closed

Configuration support for grouped Canvas elements #49973

boutcher opened this issue Nov 1, 2019 · 3 comments
Labels
enhancement New value added to drive a business result Feature:Canvas Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@boutcher
Copy link

boutcher commented Nov 1, 2019

Let's say you have three Canvas elements, a progress bar, a metric element, and a markdown text. You style them together, group them, and save them as a new element called "Fancy Progress". In text form, it looks like this, but imagine something very fancy:

Today's Fancy Foo Stats
=======> 93%

Progress and metric elements are backed by Elastic SQL, with "Select count(*) from MyIndex where Type='Foo'". The markdown element is statically defined at this point.

  • The problem to be solved * - If I take that group of 3, save as element, and then add this new element to a page multiple times, then for each of my new elements, I must ungroup them, and then hand-modify the two SQL statements to change 'Foo' to 'Bar', then modify the Markdown to replace 'Foo' as well, and then re-group them. Each time.

  • One example of how this could be solved * - for any grouped elements, allow you to define ad-hoc name/value pairs for top-level configuration that could be accessed by sub-elements. So in my above example, allow me to specify ObjectType=Bar, and then in the SQL somehow define that as "select count(*) from MyIndex where Type={{ObjectType}}"..

This really would allow for some great multi-element reuse.

@kindsun kindsun added the Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas label Nov 7, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas (Team:Canvas)

@kindsun kindsun added the enhancement New value added to drive a business result label Nov 7, 2019
@ryankeairns
Copy link
Contributor

This solution (allowing grouped elements to be edited without ungrouping) may be useful here as well → #35907

@ThomThomson
Copy link
Contributor

Closing for now as not planned. This can be re-opened if adding new Canvas edit functionality gets prioritized

@ThomThomson ThomThomson closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Canvas Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

6 participants