From 8ff779ab2551efcda218ed421d198f8f8adca1ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20St=C3=BCrmer?= Date: Wed, 11 Dec 2024 11:30:26 +0100 Subject: [PATCH] [Discover] [Dataset Quality] Stringify ignored values before rendering (#203312) This json-stringifies the values of the `_ignored` fields in the "quality issues" section of the "logs overview" tab. The tab is shown in Discover when the space is an "Observability" space or the serverless project is an "Observability" project and the document is a log entry document. Co-authored-by: Elastic Machine (cherry picked from commit 38f30a9fe002c65e1b483e2de339f3c9704799d5) --- .../doc_viewer_logs_overview/logs_overview_degraded_fields.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_degraded_fields.tsx b/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_degraded_fields.tsx index 3a244dcd5eb3c..90e9b1bcb0658 100644 --- a/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_degraded_fields.tsx +++ b/src/plugins/unified_doc_viewer/public/components/doc_viewer_logs_overview/logs_overview_degraded_fields.tsx @@ -228,7 +228,7 @@ const getDegradedFieldsColumns = (): Array> = sortable: true, field: 'values', render: (values: string[]) => { - return values.map((value, idx) => {value}); + return values.map((value, idx) => {JSON.stringify(value)}); }, }, ];