|
|
||
|---|---|---|
| .. | ||
| README.md | ||
| cleanup_demo_data.py | ||
| seed_demo_data.py | ||
README.md
ATB Commercial Sales Demo Scripts (scripts/demo/)
This directory contains executable automation scripts to support customer sales presentations, prospect trials, and commercial demonstrations for the Agriculture Trading Backoffice (ATB) platform.
1. Scripts Overview
| Script Name | Purpose | Production Safety Guardrails |
|---|---|---|
seed_demo_data.py |
Provisions demo tenant demo-malwa-agri, 11 RBAC accounts, master data, connected transactions, and 20-day historical snapshots. |
Multi-tenant isolated (demo-* only). Supports --clean-first for idempotent re-seeding. |
cleanup_demo_data.py |
Safely tears down the demo tenant and all child records across 24 relational collections in strict reverse cascade order. | Enforced demo- slug prefix check (hard-aborts on production/client IDs). Confirmation flag --confirm-purge required. |
2. Quickstart Execution
Ingesting Demo Data:
# Clean existing demo records and re-seed fresh baseline:
python3 scripts/demo/seed_demo_data.py --clean-first
# Seed custom demo tenant ID (must start with demo-):
python3 scripts/demo/seed_demo_data.py --tenant-id demo-kisan-agri
Safely Cleaning Up Demo Data:
# Interactive confirmation prompt:
python3 scripts/demo/cleanup_demo_data.py
# Non-interactive / CI / automated teardown:
python3 scripts/demo/cleanup_demo_data.py --confirm-purge
# Clean specific demo tenant:
python3 scripts/demo/cleanup_demo_data.py --tenant-id demo-kisan-agri --confirm-purge
3. Related Documentation
For complete narrative scripts, persona walkthroughs, and data recipes, refer to the governed SDLC package:
- Playbook & Script:
project_sdlc/08_review_ready_baselines/03_sales_demo_package/01_SALES_DEMO_PLAYBOOK_AND_WALKTHROUGHS.md - Data Recipe & Storyboard:
project_sdlc/08_review_ready_baselines/03_sales_demo_package/02_DEMO_DATA_RECIPE_AND_STORYBOARD.md - Environment Operations:
project_sdlc/08_review_ready_baselines/03_sales_demo_package/03_DEMO_ENVIRONMENT_OPERATIONS.md