[Canvas] Embeddables filtered by timepicker ignore the field given by the timepicker #44138
Labels
bug
Fixes for quality problems that affect the customer experience
discuss
Feature:Canvas
Feature:Embedding
Embedding content via iFrame
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
Maybe not exactly a bug but the behavior isn't clear.
The canvas time picker has a time field, but for embeddables this is being transformed to the timeRange input, not used as a filter, and this will filter on whatever field is marked at the "time" field when the index pattern object was created. This is why in #44129, near the end the data showing up in the two searches is different. One is being filtered on
@timestamp
one ontimestamp
field.So if your data has multiple time fields, and you pick one that is not the default from the index pattern being used by the embeddable, would the user expect it to filter on the field you explicitly chose for the time picker, or the default one? Right now it filters on the default one, but I think that would be unexpected from a user perspective because they explicitly choose the field.
Not sure how to resolve that though or what the right experience is. 🤔
The text was updated successfully, but these errors were encountered: