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:
Create metric visualization
Edit primary metric dimension
Switch to formula
Enter average(foo)
Close dimension editor
Expected behavior:
The title of the metric should be average(foo) as it is in the dimension editor.
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:
average(foo)
Expected behavior: The title of the metric should be
average(foo)
as it is in the dimension editor.Screenshots (if relevant):
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