Skip to content

Polling for pending MR external status checks

Elwyn Benson requested to merge 386530-polling-mr-external-status-checks into master

What does this MR do and why?

Extends the external status check MR widget so that it polls for updates when there are any external status checks which are pending.

Screenshots or screen recordings


gif showing the external status checks MR widget polling. Before the last request, the external status check fails.

How to set up and validate locally

  1. Create external status check (you can use any example URL)
  2. Create MR for a project
  3. External status check widget should display on MR as usual, and will show as "pending".
  4. Monitor your devtools network to ensure the status_checks API endpoint is hit repeatedly
  5. Update the external status check status to 'passed' or 'failed' and verify that on the next poll, the widget updates it's state correctly.

MR acceptance checklist

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

Related to #386530 (closed)

Edited by Elwyn Benson

Merge request reports