Skip to content

VSN-2437/ feat(inspection+report): link inspections to driver, fix report generation and email sending

fatima senan a demandé de fusionner feature/VSN-2437 vers develop

Summary

  • Accept and persist driverId on inspection creation
  • Expose driverId in InspectionResponseDto
  • Add driverId filter param to inspection list and report list endpoints
  • Fall back to driver email when company email is absent in getCompanyEmailFromInspection — prevents report generation from crashing (temporary)
  • Add regenerateAndCachePdf / buildPdfBytes helpers: when the S3 file is missing, the PDF is regenerated on-the-fly so download and email send never return a 500
  • Fix photo extraction to also recognize field type "image"
  • Refactor duplicated date parsing into parseDateFlexible() supporting ISO and French formats
  • Fix javax vs jakarta mail namespace conflict: exclude conflicting jars in pom.xml, use var for MimeMessage to avoid compile-time import resolution
  • Null-safe guard on formId/formResponse in report detail to prevent NPE

Rapports de requête de fusion