[Lens] support both sorting and array values on last value dimensions #167528
Labels
enhancement
New value added to drive a business result
Feature:Lens
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Describe the feature:
When users are dealing with a Last value dimension, they currently have the choice between displaying array values and allowing the dimension to be used as the sort-by for a top values dimension.
Not supporting array values
Supporting array values
While it wasn't the original reason we added this, the tradeoff actually makes sense because it is not clear how sorting by array values should work. It could
However, the behavior when not supporting array values is currently not ideal. The displayed values are computed from each array based on an undefined Elasticsearch operation. When users attempt to filter by these values, they see strange behavior since the filtered values don't actually exist in the data.
Instead of providing the tradeoff switch, we should support sorting by array values by making the sorting behavior explicit.
This will allow us to both order top values by a last value dimension and display correct values
The text was updated successfully, but these errors were encountered: