tracksolid_timescale_grafan.../docs
david kiania 347c97ec4c
Some checks are pending
Static Analysis / static (push) Waiting to run
Tests / test (push) Waiting to run
feat(reporting): fleet segmentation + deduped vehicle roster (migration 14)
Add reporting.fn_fleet_segment() and reporting.v_vehicles, splitting the fleet
into ticket-closing field_service vs specialist plant (crane/pick-up/motorbike)
that does not close immediate customer tickets.

The segment is DERIVED from tracksolid.devices.vehicle_models — itself an
authoritative Tracksolid API field (sync_devices maps jimi.user.device.list ->
vehicleModels) — so it stays API-current with no re-seeding; the manual
vehicle_category column is intentionally unused. v_vehicles collapses the
tracker+dashcam device pairs to one row per vehicle by reusing
reporting.normalize_plate() and the same primary-device precedence as
reporting.v_trips / v_live_positions (auto-merges 'KDS 453Y'/'KDS 453 Y',
resolves within-plate model conflicts via the primary tracker).

Verified live: 80 vehicles (61 field_service / 16 specialist / 3 unassigned),
grafana_ro granted. Includes the supporting data-quality report.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 13:54:47 +03:00
..
manuals chore(repo): reorganize tree into migrations/ data/ legacy/ docs/ 2026-06-01 02:27:30 +03:00
reference chore(repo): reorganize tree into migrations/ data/ legacy/ docs/ 2026-06-01 02:27:30 +03:00
reports feat(reporting): fleet segmentation + deduped vehicle roster (migration 14) 2026-06-08 13:54:47 +03:00
superpowers feat(dwh): bronze pipeline migrations, runbook, and execution manual 2026-04-25 01:07:53 +03:00
CONNECTIONS.md Add CLAUDE.md and project docs for structured Claude project 2026-04-12 20:59:15 +03:00
DATA_FLOW.md chore(db): purge unused ops + dwh_gold schemas 2026-06-05 18:11:03 +03:00
DWH_PIPELINE.md feat(dwh): bronze pipeline migrations, runbook, and execution manual 2026-04-25 01:07:53 +03:00
KPI_FRAMEWORK.md Add CLAUDE.md and project docs for structured Claude project 2026-04-12 20:59:15 +03:00
PLATFORM_OVERVIEW.html chore(db): purge unused ops + dwh_gold schemas 2026-06-05 18:11:03 +03:00
PROJECT_CONTEXT.md Add CLAUDE.md and project docs for structured Claude project 2026-04-12 20:59:15 +03:00