elastic / kibana

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

[Lens][Annotations] Apply field format to tooltip content #184633

Open dej611 opened 5 months ago

dej611 commented 5 months ago

Describe the feature:

The annotation content is not using the correct field format when configured on the field. In this example I'm configuring the url.keyword from (sample data logs dataview) as URL format (clickable link):

Screenshot 2024-06-03 at 10 44 42

But on the annotation tooltip the format is not correctly applied:

Screenshot 2024-06-03 at 10 43 52

(this would be useful in combination with #184632 )

elasticmachine commented 5 months ago

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

mbondyra commented 4 months ago

@dej611 just for a bit of history - we were taking the formatter from the axis, but it doesn't make sense as we need more precision than just the interval so we decided to move to a set timestamp. it's a complex task to think about what's the most useful for the user. It can depend on the timerange, interval, field format etc. Not sure if it should be clasified as a bug or enhancement because it was a conscious decision.

dej611 commented 4 months ago

Thanks @mbondyra for providing the decision context of it. That sounds like something similar to Discover, where is a per document format: would it be feasible to apply the same logic as in there within the annotation tooltip?

mbondyra commented 3 months ago

Not sure with how it works in Discover, I'll add it as an item to our weekly.