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

[Lens] Investigate how Lens could allow variables to be passed in from the dashboard #89219

Closed
Tracked by #184459
wylieconlon opened this issue Jan 25, 2021 · 2 comments
Labels
discuss Feature:Lens 🧊 iceboxed impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. R&D Research and development ticket (not meant to produce code, but to make a decision) Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@wylieconlon
Copy link
Contributor

wylieconlon commented Jan 25, 2021

The idea of variables that control parts of a dashboard has been proposed many times in different Kibana issues, but we do not have an implementation plan that we can use to integrate it into Lens. We can't implement variables in Lens without considering the end-to-end user experience and technical questions that come up.

Previously written use cases:

  1. Switching the index pattern- there is some discussion, but I didn't see an answer to the question of "how does this integrate?". Not all index patterns have compatible fields.
  2. Users can define variables in the dashboard- what kind of variables?
  3. Assign variables in the TSVB, Timelion editors for use in dashboards
    • Lots of example use cases here
  4. Parameterized panels in dashboards, repeat for each field value
  5. Conditionals in dashboards

Lens-specific use cases:

  1. Replace a specific field with another field
  2. Replace one metric with another
  3. Threshold line with a value from the dashboard

I'm making a few assumptions, which I want to document here:

  1. Variables are opt-in, probably based on typing variable names
  2. Variables need to be validated by the app, Lens has its own rules
  3. There is probably a hierarchy of variables
  4. Variables might represent complex types, like an index pattern and all of its fields
  5. Not all variables have a default value, such as a fully dynamic visualization

Open questions:

  • What happens if a variable is missing?
  • What happens if the user types an invalid value for the variable, like an index pattern that doesn't have the right fields?
  • ...

cc @elastic/kibana-presentation

@wylieconlon wylieconlon added discuss Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens R&D Research and development ticket (not meant to produce code, but to make a decision) labels Jan 25, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@stratoula stratoula added the impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. label Jan 30, 2024
@markov00
Copy link
Member

In order to provide better transparency of priorities, issues that will not be prioritized within the next 24 months are being closed.

Tracking request in Lens general improvements ice box #184459

@markov00 markov00 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Feature:Lens 🧊 iceboxed impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. R&D Research and development ticket (not meant to produce code, but to make a decision) Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants