diff --git a/foundations_ui/cypress/integration/atlas_scheduler/test_log_metric.js b/foundations_ui/cypress/integration/atlas_scheduler/test_log_metric.js index 329294e7d..db03f8188 100644 --- a/foundations_ui/cypress/integration/atlas_scheduler/test_log_metric.js +++ b/foundations_ui/cypress/integration/atlas_scheduler/test_log_metric.js @@ -22,17 +22,17 @@ describe('Test Log Metric', () => { }, { label: 'metric_list_of_ints', - value: '[1, 2]', + value: '2', hasHover: false, }, { label: 'metric_long_list_of_ints', - value: '[1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2]', + value: '2', hasHover: true, }, { label: 'metric_long_list_of_long_ints', - value: '[8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24, 8.888888888888889e+24]', + value: '8.888888888888889e+24', hasHover: true, }, { @@ -42,7 +42,7 @@ describe('Test Log Metric', () => { }, { label: 'metric_repeat', - value: '[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]', + value: '19', hasHover: true, }, ], @@ -64,17 +64,17 @@ describe('Test Log Metric', () => { }, { label: 'metric_list_of_floats', - value: '[1, 2]', + value: '2', hasHover: false, }, { label: 'metric_long_list_of_floats', - value: '[1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2]', + value: '2', hasHover: true, }, { label: 'metric_long_list_of_long_floats', - value: '[999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888, 999999999.8888888]', + value: '999999999.8888888', hasHover: true, }, { @@ -84,7 +84,7 @@ describe('Test Log Metric', () => { }, { label: 'metric_repeat', - value: '[0, 0.3333333333333333, 0.6666666666666666, 1, 1.3333333333333333, 1.6666666666666667, 2, 2.3333333333333335, 2.6666666666666665, 3, 3.3333333333333335, 3.6666666666666665, 4, 4.333333333333333, 4.666666666666667, 5, 5.333333333333333, 5.666666666666667, 6, 6.333333333333333]', + value: '6.333333333333333', hasHover: true, }, ], @@ -106,7 +106,7 @@ describe('Test Log Metric', () => { }, { label: 'metric_long_list_of_str', - value: '[qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe, qwe]', + value: 'qwe', hasHover: true, }, { @@ -116,7 +116,7 @@ describe('Test Log Metric', () => { }, { label: 'metric_repeat', - value: '[str0, str1, str2, str3, str4, str5, str6, str7, str8, str9, str10, str11, str12, str13, str14, str15, str16, str17, str18, str19]', + value: 'str19', hasHover: true, }, ], diff --git a/foundations_ui/src/js/actions/CommonActions.js b/foundations_ui/src/js/actions/CommonActions.js index b18dad5c1..bf712298d 100644 --- a/foundations_ui/src/js/actions/CommonActions.js +++ b/foundations_ui/src/js/actions/CommonActions.js @@ -139,7 +139,8 @@ class CommonActions { const cellType = this.getInputMetricCellType(input); const isHoverable = this.getInputMetricIsHoverable(input); if (cellType.match(/array*/)) { - inputValue = this.transformArraysToString(inputValue); + // Per: https://github.com/dessa-oss/atlas/issues/163 + inputValue = inputValue.slice(-1); } const openModalJobDetails = jobID => {