Technical Writing
Data Ingestion and Analytics Methodology
This page documents reproducible data loading and transformation rules used by the dashboard.
Pipeline
- Run database migrations to create PostGIS-enabled schema.
- Run Excel ingest command to perform full refresh and record ingest stats.
- Apply active/reachable filters by source system.
- Apply AP/WLC source-of-truth precedence (CatCtr over Prime, both over NA).
- Derive state/site code from device naming convention and enrich with site metadata.
- Map models to lifecycle milestones and cost values from ModelData.
- Compute lifecycle status and weighted 0-100 risk score for prioritization.
Operational Commands
Run migrations
npm run migrate
Ingest workbook
npm run ingest -- --file "/Users/nerd/Downloads/UAInnovateDataset-SoCo.xlsx"
Key Defaults
- Reference date for lifecycle scoring: February 28, 2026.
- Approaching lifecycle window default: 6 months.
- Radius grouping default: 5 miles.
- Risk threshold for high-risk views: score 65 and above.