[BUG] Discover - 'truncate:maxHeight' no longer working 2.10.0 #5227
Description
Discover - Maximum table cell height setting no longer working
In OpenSearch Dashboards 2.10.0 the new UI is no longer respecting the truncate:maxHeight
Advanced Setting.
To Reproduce
Steps to reproduce the behavior:
- Index a document with a long string / or long log line. EG
PUT my-test-index/_doc/1
{
"long_field": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi mattis, nisl vitae blandit congue, nisl est aliquet sem, vel porttitor libero purus eu lectus. Morbi consequat euismod tortor vel eleifend. Phasellus sit amet vehicula metus. Vestibulum blandit velit euismod, cursus elit nec, cursus nisl. Etiam vitae est orci. Morbi tincidunt vitae nunc sed cursus. Donec scelerisque risus lorem, placerat maximus purus eleifend in. Cras porta quam libero, quis tincidunt neque venenatis ut. Nam in augue urna. Aenean ornare condimentum leo, et bibendum leo bibendum eget. Nulla faucibus diam ut sem posuere, id fringilla erat pulvinar. Fusce a enim quis augue bibendum molestie. Ut vitae auctor purus. Suspendisse et euismod enim. Nullam at ultricies risus, sed dignissim leo. In sollicitudin, tellus tincidunt rhoncus sollicitudin, metus ligula condimentum lacus, id aliquam arcu urna eu nisl. Vestibulum id nulla id sem ultrices gravida. In id mauris ultrices, sollicitudin ex luctus, congue magna. Nullam nec mauris est leo."
}
- Create the Index Pattern,
my-test-index
- Set
truncate:maxHeight: 0
inDashboards Management>Advanced Settings
. - Attempt to visualise the data in the Discover app, you will see that the cells are truncated, ignoring the
truncate:maxHeight
setting.
Expected behavior
As with previous versions I would expect the cells to be truncated to the correct height as specified in the truncate:maxHeight
setting, particularly if truncation is set to 0 and turned off. This is essential when debugging longer log lines.
OpenSearch Version
2.10.0
Docker image: opensearchproject/opensearch:2.10.0
Dashboards Version
2.10.0
Docker image: opensearchproject/opensearch-dashboards:2.10.0
Plugins
Only plugins loaded when running the official docker images, nothing extra
Host/Environment (please complete the following information):
- OS: MacOS Ventura 13.6 | Official Docker OpenSearch Images from Docker Hub
- Browser and version: Google Chrome 117
Additional context
This would work with previous versions of OpenSearch Discover and is vital when needing to debug several loglines at once that may stretch beyond the default truncation