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> |
||
|---|---|---|
| .. | ||
| manuals | ||
| reference | ||
| reports | ||
| superpowers | ||
| CONNECTIONS.md | ||
| DATA_FLOW.md | ||
| DWH_PIPELINE.md | ||
| KPI_FRAMEWORK.md | ||
| PLATFORM_OVERVIEW.html | ||
| PROJECT_CONTEXT.md | ||