← back to Designer Wallcoverings
TK-11357: commit the dry-run-default safety flip on the two on_hand=2026 writers
36a360f532a383c0285232d87a7f947815d557e0 · 2026-09-11 13:05:30 -0700 · Steve
Both scripts defaulted to LIVE write (dry only with --dry-run); flipped to
default-dry (writes only with --apply). The flip had sat uncommitted for 26h
— the TK-11299 working-tree-only hole where a git checkout silently reverts a
$0-restamp safety guard. Committing makes it durable. No Shopify write; source only.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015i7GMZJ3BjeWagiWBHUjMD
Files touched
M shopify/scripts/inventory-set-2026.jsM shopify/scripts/set-active-zero-to-2026.js
Diff
commit 36a360f532a383c0285232d87a7f947815d557e0
Author: Steve <steve@designerwallcoverings.com>
Date: Fri Sep 11 13:05:30 2026 -0700
TK-11357: commit the dry-run-default safety flip on the two on_hand=2026 writers
Both scripts defaulted to LIVE write (dry only with --dry-run); flipped to
default-dry (writes only with --apply). The flip had sat uncommitted for 26h
— the TK-11299 working-tree-only hole where a git checkout silently reverts a
$0-restamp safety guard. Committing makes it durable. No Shopify write; source only.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015i7GMZJ3BjeWagiWBHUjMD
---
shopify/scripts/inventory-set-2026.js | 2 +-
shopify/scripts/set-active-zero-to-2026.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/shopify/scripts/inventory-set-2026.js b/shopify/scripts/inventory-set-2026.js
index f8c85704..db23a0ee 100644
--- a/shopify/scripts/inventory-set-2026.js
+++ b/shopify/scripts/inventory-set-2026.js
@@ -138,7 +138,7 @@ async function applyQuantities(map, dry) {
}
async function run() {
- const dry = process.argv.includes('--dry-run');
+ const dry = !process.argv.includes('--apply');
console.log(`${dry ? '[DRY] ' : ''}inventory set on_hand=${TARGET_QTY} for ${SKUS.length} SKUs at location ${LOCATION_ID}`);
console.log('\nStep 1: build SKU → inventoryItemId map');
diff --git a/shopify/scripts/set-active-zero-to-2026.js b/shopify/scripts/set-active-zero-to-2026.js
index 30988c90..68d00420 100644
--- a/shopify/scripts/set-active-zero-to-2026.js
+++ b/shopify/scripts/set-active-zero-to-2026.js
@@ -81,7 +81,7 @@ const SET_QTY = `
}`;
(async () => {
- const dry = process.argv.includes('--dry-run');
+ const dry = !process.argv.includes('--apply');
const scanPath = latestScan();
const scan = JSON.parse(fs.readFileSync(scanPath, 'utf8'));
// newest→oldest (scan already sorted CREATED_AT desc).
← d0abaeff auto-data-snapshot: 2026-09-11T12:47:38 (23 data files) — DW
·
back to Designer Wallcoverings
·
auto-data-snapshot: 2026-09-11T13:23:02 (14 data files) — DW c4c32ae1 →