diff --git a/x-pack/legacy/plugins/ml/public/components/anomalies_table/anomalies_table_columns.js b/x-pack/legacy/plugins/ml/public/components/anomalies_table/anomalies_table_columns.js index d448021d0e84f..be2a3e1f4223b 100644 --- a/x-pack/legacy/plugins/ml/public/components/anomalies_table/anomalies_table_columns.js +++ b/x-pack/legacy/plugins/ml/public/components/anomalies_table/anomalies_table_columns.js @@ -48,10 +48,10 @@ function renderTime(date, aggregationInterval) { } } -function showLinksMenuForItem(item) { - const canConfigureRules = (isRuleSupported(item) && checkPermission('canUpdateJob')); +function showLinksMenuForItem(item, showViewSeriesLink) { + const canConfigureRules = (isRuleSupported(item.source) && checkPermission('canUpdateJob')); return (canConfigureRules || - item.isTimeSeriesViewRecord || + (showViewSeriesLink && item.isTimeSeriesViewRecord) || item.entityName === 'mlcategory' || item.customUrls !== undefined); } @@ -248,7 +248,7 @@ export function getColumns( }); } - const showLinks = (showViewSeriesLink === true) || items.some(item => showLinksMenuForItem(item)); + const showLinks = items.some(item => showLinksMenuForItem(item, showViewSeriesLink)); if (showLinks === true) { columns.push({ diff --git a/x-pack/legacy/plugins/ml/public/components/anomalies_table/description_cell.js b/x-pack/legacy/plugins/ml/public/components/anomalies_table/description_cell.js index 9dc990e0c376d..9c1191ec26626 100644 --- a/x-pack/legacy/plugins/ml/public/components/anomalies_table/description_cell.js +++ b/x-pack/legacy/plugins/ml/public/components/anomalies_table/description_cell.js @@ -29,7 +29,7 @@ export function DescriptionCell({ actual, typical }) { } = getMetricChangeDescription(actual, typical); return ( - + {iconType !== undefined && formatSingleValue(val, mlFunction, fieldFormat, record)); + // Currently only multi-value response is for lat_long detectors. + // Return with array style formatting, with items formatted as numbers, rather than + // the default String format which is set for geo_point and geo_shape fields. + const values = value.map(val => formatSingleValue(val, mlFunction, undefined, record)); return `[${values}]`; } } else {