david kiania
|
e5b0e192d8
|
chore(repo): reorganize tree into migrations/ data/ legacy/ docs/
Group root-level files (accreted from incremental changes) by purpose
without moving any deployment entrypoint or breaking imports:
- migrations/ : numbered SQL 02-10
- data/ : source CSVs
- legacy/ : superseded pre-_rev scripts + old pipeline notes (not deployed)
- docs/{manuals,reference,reports}/ : loose manuals, references, reports
- strip stray ** / *** prefixes from 5 doc filenames
- delete empty documents.txt / push_webhook.md
Reference updates so nothing breaks:
- run_migrations.py -> /app/migrations/<file>
- run_migrations.sh -> $SCRIPT_DIR/migrations
- import_drivers_csv.py -> data/<csv>
- docker-compose.yaml -> runbook path comment
- CLAUDE.md -> codebase map + inline doc references
Deployed Python (3 services + ts_shared_rev + run_migrations) and the
documented ops one-shots stay at root, preserving the flat-import layout
and all documented commands. Verified: py_compile clean across all modules,
every MIGRATIONS entry resolves under migrations/, CI-referenced paths
(tests/, mypy targets, db_audit) and the grafana build context intact.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-06-01 02:27:30 +03:00 |
|
David Kiania
|
cebcf74ba2
|
feat: business analytics expansion + driver CSV import
- 01_BusinessAnalytics.md: add §0 usage tags, §2.4 cost-per-ticket,
§3.6–3.8 alarm/drift/odometer, §4.4–4.5 dispatch log + SLA metrics,
§9 fleet readiness scorecard, §10 service-interval forecaster,
Appendix B threshold calibration guide (773 → 1437 lines)
- 06_business_analytics_migration.sql: schema support for all new
analytics sections — assigned_city column, dispatch_log table,
ops schema, service_log, odometer_readings, tickets skeleton,
vw_service_forecast view
- import_drivers_csv.py: one-shot script to populate driver_name,
vehicle_number, vehicle_models, cost_centre, assigned_city, sim,
iccid, imsi from 20260414_FS__Logistics - final_fixed.csv (144 rows);
dry-run by default, --apply to commit, --only-null for safe additive mode
- 20260414_FS__Logistics - final_fixed.csv: source data committed for
reproducibility and container exec workflow
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-18 08:30:34 +03:00 |
|