Jelajahi Sumber

Merge pull request #14114 from jbrundage/HPCC-24644b

HPCC-24644 Removes unparsed html from DataPattern report

Reviewed-By: Gordon Smith <gordon.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 4 tahun lalu
induk
melakukan
f0a4614159

+ 1 - 1
esp/src/src/DataPatterns/AttributeDesc.ts

@@ -64,7 +64,7 @@ class AttributeSummary extends StyledTable {
         this
             .data([
                 ["Cardinality", row.cardinality, "(~" + (row.cardinality / row.fill_count * 100).toFixed(0) + "%)"],
-                ["Filled", row.fill_count, fillRate <= config.fillRateRedThreshold ? `(<b style="color:${config.redColor}">` + fillRate + "%</b>)" : "(" + fillRate + "%)"]
+                ["Filled", row.fill_count, "(" + fillRate + "%)"]
             ])
             .tbodyColumnStyles([
                 { "font-weight": "bold", "font-size": config.secondaryFontSize + "px", "width": "1%" },

+ 1 - 2
esp/src/src/DataPatterns/config.ts

@@ -13,6 +13,5 @@ export const config = {
     secondaryColor: "#DDD",
     offwhiteColor: "#FBFBFB",
     blueColor: "#1A99D5",
-    redColor: "#ED1C24",
-    fillRateRedThreshold: 33
+    redColor: "#ED1C24"
 };