Skip to content

Gracefully handle nil created_at values in CI pipelines

Stan Hu requested to merge sh-fix-pipeline-age-in-minutes into master

What does this MR do and why?

!90027 (merged) added CI::Pipeline#age_in_minutes. This method causes a 500 error for any page that attempts to load an old pipeline that happens to have a nil created_at value. For these pipelines, just return 0.

Relates to #369124 (closed)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Stan Hu

Merge request reports