When support was added for array of values (aka aggTopHit) in https://github.com/elastic/kibana/pull/119165, we did not consider the interoperability of this feature with the custom color ranges.
The good news is this a mostly graceful bug that does not throw an error but simply ignores the color ranges.
This applies to any place that uses the Last value agg with color ranges.
Create a Lens Metric chart with Last value of products.base_price
Select Dynamic coloring
Enable the Show array values option
Expected behavior:
Incompatible UI should be disabled or hidden when used. How do we handle preserving this disabled config as to not loose user config when toggling the array values switch.
Kibana version:
8.14.0
,8.15.0
,main
Describe the bug:
When support was added for array of values (aka
aggTopHit
) in https://github.com/elastic/kibana/pull/119165, we did not consider the interoperability of this feature with the custom color ranges.The good news is this a mostly graceful bug that does not throw an error but simply ignores the color ranges.
This applies to any place that uses the
Last value
agg with color ranges.Lens
Metric
https://github.com/user-attachments/assets/9fb9907b-1f16-4ea7-9c5b-b28dc7fdd697
Lens
Table
https://github.com/user-attachments/assets/bdbb29de-8ee0-4d0a-abb1-06e3987d222d
Steps to reproduce:
Last value
ofproducts.base_price
Show array values
optionExpected behavior:
Incompatible UI should be disabled or hidden when used. How do we handle preserving this disabled config as to not loose user config when toggling the array values switch.
Any additional context:
Issue originally noticed by @dej611 in https://github.com/elastic/kibana/pull/184886#discussion_r1648607227
_Originally posted by @dej611 in https://github.com/elastic/kibana/pull/184886#discussion_r1648607227_
cc: @teresaalvarezsoler