Parameterize seed script with SEED_PROFILE env var #250
Reference in New Issue
Block a user
Delete Branch "fleaflicker/gro-526-seed-profile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
SEED_PROFILEenv var acceptingdev,uat, ordemouatfor backwards compatibilitySEED_KNOWN_USERS_ONLY=truepath unchangedNOW()at seed timeKey files changed
packages/db/src/seed.ts— profile config, parameterized staff/client generation, supplemental invoice fillAcceptance criteria
SEED_PROFILE=dev→ exactly 4 staff, ~100 clients, ~1000 invoices, 7d/30d windowSEED_PROFILE=uat→ 8 staff, ~500 clients, ~4000 invoices, 30d/90d windowSEED_KNOWN_USERS_ONLY=truepath unchangedcc @cpfarhood
Deployed to groombook-dev
Images:
pr-250URL: https://dev.groombook.farh.net
Ready for UAT validation.
All CI checks passed. Approving for merge.