[object Object]

← back to Designer Wallcoverings

fix(TK-11738): pass --apply so the sample-variant cron creates variants after the safety sweep

058dde0fe88b19992e96597b5d844fafeccef95b · 2026-09-14 13:40:03 -0700 · Steve

The --dry-run→--apply sweep made create-missing-sample-variants.js dry-by-default,
but this wrapper called it with no flag → 0 variants created and the cron could
never reach its REMAINING==0 self-removal branch (silent no-op forever). Restore
prior behavior by passing --apply on the trusted scheduled path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 058dde0fe88b19992e96597b5d844fafeccef95b
Author: Steve <steve@designerwallcoverings.com>
Date:   Mon Sep 14 13:40:03 2026 -0700

    fix(TK-11738): pass --apply so the sample-variant cron creates variants after the safety sweep
    
    The --dry-run→--apply sweep made create-missing-sample-variants.js dry-by-default,
    but this wrapper called it with no flag → 0 variants created and the cron could
    never reach its REMAINING==0 self-removal branch (silent no-op forever). Restore
    prior behavior by passing --apply on the trusted scheduled path.
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
 shopify/scripts/cron-create-sample-variants.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shopify/scripts/cron-create-sample-variants.sh b/shopify/scripts/cron-create-sample-variants.sh
index 96b04370..7e668788 100755
--- a/shopify/scripts/cron-create-sample-variants.sh
+++ b/shopify/scripts/cron-create-sample-variants.sh
@@ -29,6 +29,6 @@ if [ -f "$PROGRESS_FILE" ]; then
 fi
 
 cd /root/Projects/Designer-Wallcoverings
-node "$SCRIPT" >> "$LOG_FILE" 2>&1
+node "$SCRIPT" --apply >> "$LOG_FILE" 2>&1
 
 echo "=== $(date '+%Y-%m-%d %H:%M:%S PT') === Finished ===" >> "$LOG_FILE"

← df2b39ff auto-data-snapshot: 2026-09-14T12:55:07 (3 data files) — sho  ·  back to Designer Wallcoverings  ·  fix(TK-11403/TK-11539): stage bulk imports as DRAFT so they 93f6b2e6 →