← back to York Reprice 2026 08
TK-10852 root-cause: strip upstream private-label names (Brewster etc) from JS import tags so re-imports don't re-leak
3ac1f1c0e50f76ed6fd3c0eb6badcabde363ea4a · 2026-08-25 12:35:40 -0700 · Steve
Files touched
Diff
commit 3ac1f1c0e50f76ed6fd3c0eb6badcabde363ea4a
Author: Steve <steve@designerwallcoverings.com>
Date: Tue Aug 25 12:35:40 2026 -0700
TK-10852 root-cause: strip upstream private-label names (Brewster etc) from JS import tags so re-imports don't re-leak
---
enrich-onboard.py | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/enrich-onboard.py b/enrich-onboard.py
index 726aed1..840d342 100644
--- a/enrich-onboard.py
+++ b/enrich-onboard.py
@@ -132,6 +132,13 @@ def verify(h):
return h if (h and h in live_handles) else None
# ---------- tag derivation ----------
+# TK-10852 root-cause fix — never stamp upstream private-label distributor/brand names as
+# tags at import (this is where custom.parent_brand="Brewster Home Fashions" leaked onto the
+# whole Jeffrey Stevens line). This script is JS-specific (hardcodes 'Jeffrey Stevens' below),
+# so any denylist term reaching the tag set is an upstream leak and is stripped.
+LEAK_DENY = ('brewster', 'wallquest', 'chesapeake', 'nextwall', 'seabrook',
+ 'command54', 'command 54', 'desima', 'carlsten', 'nicolette mayer')
+
def derive_tags(mf, color_names, bg_name):
tags = set()
tags.add('Wallcovering')
@@ -167,7 +174,8 @@ def derive_tags(mf, color_names, bg_name):
pn = (mf.get('custom.pattern_name','') or '')
for w in ('Paperweave','Grasscloth','Stripe','Damask','Floral','Leaf','Geometric','Texture','Weave','Linen','Silk','Faux'):
if w.lower() in pn.lower(): tags.add(w)
- return sorted(t for t in tags if t and str(t).strip())
+ return sorted(t for t in tags if t and str(t).strip()
+ and not any(d in str(t).lower() for d in LEAK_DENY))
# ---------- main loop ----------
done=0; failed=0; total_colors=0
← 6cdd76b auto-data-snapshot: 2026-08-25T12:06:42 (1 data files) — cad
·
back to York Reprice 2026 08
·
auto-data-snapshot: 2026-08-25T12:44:18 (1 data files) — __p 9e6b918 →