Skip to content

[BUG] Discover - 'truncate:maxHeight' no longer working 2.10.0 #5227

Closed
@stevesimpson418

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:

  1. 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."
}
  1. Create the Index Pattern, my-test-index
  2. Set truncate:maxHeight: 0 in Dashboards Management>Advanced Settings.
  3. 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

Screenshots
Screenshot 2023-10-05 at 14 02 11
Screenshot 2023-10-05 at 14 02 30

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

Metadata

Assignees

Labels

bugSomething isn't workingdata explorerIssues related to the Data Explorer projectdiscoverfor discover reinventv2.12.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions