Polling for pending MR external status checks
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
- Create external status check (you can use any example URL)
- Create MR for a project
- External status check widget should display on MR as usual, and will show as "pending".
- Monitor your devtools network to ensure the status_checks API endpoint is hit repeatedly
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #386530 (closed)
Edited by Elwyn Benson