Summary of What Needs to be Done:
The CI route at src/app/api/metrics/ci/route.ts returns 0 for invalid date data in getRunDurationMinutes. This could be confused with a legitimately fast workflow run. Should return null to indicate invalid data.
Changes that Need to be Made:
- File: src/app/api/metrics/ci/route.ts (lines 46-55)
- Change return type to number | null and return null for invalid data
Impact that it would Provide:
- Distinguishes between invalid data and legitimate fast runs
- Allows calling code to handle invalid data appropriately
Summary of What Needs to be Done:
The CI route at src/app/api/metrics/ci/route.ts returns 0 for invalid date data in getRunDurationMinutes. This could be confused with a legitimately fast workflow run. Should return null to indicate invalid data.
Changes that Need to be Made:
Impact that it would Provide: