← back to Designer Wallcoverings
banned-word backstop extended to TAGS at the drain chokepoint (audit caught 'decor wallpaper' tag on a clean-titled draft); swept all 70 of today's drafts clean via API
f51c82f630fa486f76bd8294190d0ffed08d9555 · 2026-07-13 12:29:25 -0700 · Steve
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Files touched
M DW-Programming/ImportNewSkufromURL/scripts/import-queue-runner.js
Diff
commit f51c82f630fa486f76bd8294190d0ffed08d9555
Author: Steve <steve@designerwallcoverings.com>
Date: Mon Jul 13 12:29:25 2026 -0700
banned-word backstop extended to TAGS at the drain chokepoint (audit caught 'decor wallpaper' tag on a clean-titled draft); swept all 70 of today's drafts clean via API
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---
DW-Programming/ImportNewSkufromURL/scripts/import-queue-runner.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/DW-Programming/ImportNewSkufromURL/scripts/import-queue-runner.js b/DW-Programming/ImportNewSkufromURL/scripts/import-queue-runner.js
index 19188b75..68a12e4c 100644
--- a/DW-Programming/ImportNewSkufromURL/scripts/import-queue-runner.js
+++ b/DW-Programming/ImportNewSkufromURL/scripts/import-queue-runner.js
@@ -273,6 +273,9 @@ if (!QUEUE || !fs.existsSync(QUEUE)) { console.error('usage: import-queue-runner
}
if (it.brand) preview = applyBrandOverride(preview, it.brand);
preview.title = normalizeTitle(preview.title); // title-hygiene backstop (no Wallpaper, no ALL-CAPS)
+ // banned-word backstop for TAGS too — audit 2026-07-13 caught "decor
+ // wallpaper" surviving in a draft's tags (title was clean)
+ if (Array.isArray(preview.tags)) preview.tags = [...new Set(preview.tags.map(t => _wpFix(String(t))))];
// 180s: image-heavy sidecar products (PJ ships up to 20 images) make Shopify
// image-fetch slow; a short timeout fires client-side while the create still
// completes server-side → a wasted dedup-skip retry next pass. Give it room.
← d4a96345 auto-save: 2026-07-13T12:24:56 (6 files) — DW-Programming/Im
·
back to Designer Wallcoverings
·
auto-save: 2026-07-13T12:55:05 (9 files) — DW-Programming/Im daaca193 →