Skip to content

Commit

Permalink
[Discover] [Dataset Quality] Stringify ignored values before rendering (
Browse files Browse the repository at this point in the history
elastic#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 <[email protected]>
(cherry picked from commit 38f30a9)
  • Loading branch information
weltenwort committed Dec 16, 2024
1 parent 5c42517 commit 8ff779a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ const getDegradedFieldsColumns = (): Array<EuiBasicTableColumn<DegradedField>> =
sortable: true,
field: 'values',
render: (values: string[]) => {
return values.map((value, idx) => <EuiBadge key={idx}>{value}</EuiBadge>);
return values.map((value, idx) => <EuiBadge key={idx}>{JSON.stringify(value)}</EuiBadge>);
},
},
];
Expand Down

0 comments on commit 8ff779a

Please sign in to comment.