Skip to content

feat VSN-1983 : add fuel anomaly detection & history tracking

yassine.chhirou a demandé de fusionner feature/VSN-1983 vers develop

Fuel Anomaly History Tracking for the fleet service:

New Capabilities:

  • History Management: Track and manage fuel anomaly detection runs with FuelAnomalyHistory entity, including start/end dates and auto-generated names
  • Date Range Detection: New detectAnomaliesByDateRange(startDate, endDate) endpoint to detect anomalies for all consumptions within a specified period
    and link them to a history record
  • REST API Endpoints: Added controllers for both FuelAnomalyDetection and FuelAnomalyHistory with full CRUD operations

Technical Changes:

  • All anomaly detection methods now accept an optional historyId parameter to link detected anomalies to a history record
  • Added JpaSpecificationExecutor to ConsumptionRepository and FuelAnomalyDetectionRepository for dynamic filtering
  • Added specification classes for Consumption, FuelAnomalyDetection, and FuelAnomalyHistory
  • New mappers and DTOs for response transformation

Closes VSN-1983

Rapports de requête de fusion