Hide failed jobs widget if no failed jobs

What does this MR do and why?

Resolves #419112 (closed) and #481842 (closed)

Linking to Pipeline Authoring Papercuts

  • Hide failed jobs widget if no failed jobs
  • Show alert if maximum failed jobs limit reached

Screenshots or screen recordings

Hide failed jobs widget if count is 0

Before After
hide_failed_jobs_before failed_jobs_after

Maximum failed jobs limit reached

maximum_failed_jobs

How to set up and validate locally

Feature.enable(:ci_job_failures_in_mr)

  1. Visit pipeline tab on MR with failed jobs in pipelines
  2. Observe that failed job widget does not render if there are 0 failed jobs
  3. Observe that a pipeline with > 100 failed jobs will display an alert (patch file for testing - maximum-failed-jobs.patch)
Edited by Briley Sandlin

Merge request reports

Loading