Ensure that the values of certain fields are prettified in the statistics tab for collection nodes. Fixes #7216

This commit is contained in:
Akshay Joshi committed 2022-03-22 14:53:12 +05:30
1 parent e7dc6df723
commit ba027e992e
5 files changed
+11 -4

No files matched your search

@@ -92,6 +92,12 @@ function getTableData(res, node) {
let data = res.data.data;
if (node.hasCollectiveStatistics || data['rows'].length > 1) {
data.rows.forEach((row) => {
// Prettify the field values
if (!_.isEmpty(node.statsPrettifyFields)) {
node.statsPrettifyFields.forEach((field) => {
row[field] = sizePrettify(row[field]);
});
};
nodeStats.push({ ...row, icon: '' });
});
colData = getColumn(data.columns, false);