elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.72k stars 8.13k forks source link

[Lens] formula dimensions overwrite title when a field is missing #176521

Closed drewdaemon closed 7 months ago

drewdaemon commented 7 months ago

Describe the bug: When a field is missing from the data view backing a formula-based metric visualization, the title of the metric is displayed as "Formula" instead of the configured dimension title.

Steps to reproduce:

  1. Create metric visualization
  2. Edit primary metric dimension
  3. Switch to formula
  4. Enter average(foo)
  5. Close dimension editor

Expected behavior: The title of the metric should be average(foo) as it is in the dimension editor.

Screenshots (if relevant):

Screenshot 2024-02-08 at 9 09 00 AM Screenshot 2024-02-08 at 9 10 37 AM

Any additional context: This is a problem in the embedded context when a field is missing. See https://github.com/elastic/observability-dev/issues/3089#issuecomment-1919516758

image

elasticmachine commented 7 months ago

Pinging @elastic/kibana-visualizations (Team:Visualizations)

drewdaemon commented 7 months ago

Added impact:medium because this is causing a bad look on the hosts view.